/* Task management specific styles */
:root {
    --banner-color: #5f4648;       /* color 01 */
    --primary-color: #786364;      /* color 02 */
    --secondary-color: #A79192;    /* color 03 */
    --thirth-color: #D2AEAD;       /* color 04 */
    --background-light: #fff3ec;   /* color 05 */
    
    --danger-color: #D27276;
    --success-color: #067B5A;
    --message-color: #3456AF;
    
    --border-color: #dee2e6;
    --disabled-color: #d2d1d1;     
    
    --text-dark: #333;
    --text-muted: #666;
}


body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: var(--background-light);
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th, 
.table td {
    padding: 12px;
    border-bottom: 1px solid #ddd;
    text-align: left;
    vertical-align: middle;
}

.table th {
    background: #f8f9fa;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    cursor: pointer;
    border: none;
    font-size: 16px;
    margin-left: 3px;
    width: auto;
    margin-top: 3px;
}

.btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.2);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-secondary {
    background: var(--secondary-color);
    color: white;
}

.btn-thirth {
    background: var(--thirth-color);
    color: white;
}

.btn-danger {
    background: var(--danger-color);
    color: white;
}


.btn-intable {
    margin: 5px;
    padding: 3px 20px;
    font-size: 0.9em;
    height: 36px;
}

.btn-icon {
    vertical-align: middle;
    margin-bottom: 8px;
    height: 16px;
    width: 16px;
    margin-right: 10px;
}

.btn[data-tooltip] {
    position: relative;
    white-space: nowrap; /* 防止換行 */
    max-width: none; /* 移除最大寬度限制 */
    overflow: visible; /* 確保內容不會被隱藏 */
}

.btn[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 16px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    white-space: nowrap;
    z-index: 20;
}

.btn:hover[data-tooltip]::after {
    opacity: 1;
    visibility: visible;
    z-index: 20;
}


.btn-container {
    margin-top: 20px;
    text-align: right;
}

.input-box {
    width: 100%;
    height: 40px;
    font-size: 16px;
    margin-bottom: 5px;
    border-radius: 5px;
    border: 1px solid #cecece;
}



.form-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}
.form-group {
    margin-bottom: 20px;
}

/* Link styles */
.link-intable {
    height: 19px;
    font-size: 15px;
    padding-top: 7px;
}

.auto-length {
	white-space: nowrap;
	overflow: hidden;
    text-overflow: ellipsis;
}

/* 註解框的樣式 */
.comment-container {
    margin: 20px;
    font-family: Arial, sans-serif;
  }

  .comment-box {
    position: relative;
    padding: 15px 20px;
    background: #fff;
    border: 2px solid #c0bebe;
    border-radius: 6px;
    margin-left: auto;
    margin-right: auto;
    width:inherit;
  }

  .comment-box::before {
    content: 'Comment';
    position: absolute;
    top: -12px;
    left: 10px;
    background: #fff;
    padding: 0 10px;
    font-size: 16px;
    color: #c0bebe;
  }

  .comment-content {
    position: relative;
    min-height: 20px;
    color: #f97878;
  }

  .comment-content a {
    text-decoration: none;
    color: inherit;

  }

  .anchor { text-decoration: none; color: inherit; }
  .anchor:hover { font-weight: bold; color: var(--primary-color); }