/* ========== EMPLOYEES MODULE ========== */

.container {
    max-width: none !important;
    width: 100% !important;
}

.field-label.required::after {
    content: ' *';
    color: #c62828;
    font-weight: 700;
}

/* ========== HEADER BADGES ========== */
.registration-badge, .waiting-badge, .error-badge, .stats-badge {
    padding: 8px 18px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 14px;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.15);
}
.registration-badge { background: #22c55e; color: white; }
.registration-badge:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(34,197,94,0.4); }
.waiting-badge { background: #f59e0b; color: white; }
.waiting-badge:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(245,158,11,0.4); }
.error-badge { background: #ef4444; color: white; }
.error-badge:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(239,68,68,0.4); }
.stats-badge {
    background: rgba(255,255,255,0.12);
    color: white;
    backdrop-filter: blur(8px);
}

/* ========== TABLE ========== */
.table-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    margin: 0 28px 20px 28px;
}
.table-container {
    flex: 1;
    overflow: auto;
    border-radius: 20px;
    background: white;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 16px rgba(0,0,0,0.05);
}
.table-container::-webkit-scrollbar { width: 8px; height: 8px; }
.table-container::-webkit-scrollbar-track { background: #f1f5f9; margin-top: 46px; }
.table-container::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }

#employeeTable {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.85rem;
    min-width: 2400px;
}
#employeeTable thead {
    background: var(--primary);
}
#employeeTable tbody tr {
    cursor: pointer;
    transition: all 0.15s ease;
}
#employeeTable th {
    position: sticky;
    top: 0;
    background: var(--primary);
    color: #ffffff;
    font-weight: 600;
    padding: 12px 10px;
    border-bottom: 2px solid rgba(255,255,255,0.1);
    border-right: none;
    z-index: 10;
    cursor: pointer;
    user-select: none;
    white-space: normal;
    word-break: keep-all;
    text-align: center;
    vertical-align: middle;
    font-size: 0.78rem;
    letter-spacing: 0.3px;
    transition: background 0.2s;
}
#employeeTable th:last-child { border-right: none; }
#employeeTable th:hover { background: var(--primary-dark); }
#employeeTable th.sorted-asc { background: #8a0000; }
#employeeTable th.sorted-asc::after { content: "\f0dd"; font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: 0.75rem; margin-left: 6px; }
#employeeTable th.sorted-desc { background: #8a0000; }
#employeeTable th.sorted-desc::after { content: "\f0de"; font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: 0.75rem; margin-left: 6px; }

#employeeTable td {
    padding: 12px 10px;
    border-bottom: 1px solid #f0f2f5;
    vertical-align: middle;
    white-space: nowrap;
    color: #1e293b;
    font-size: 0.82rem;
    transition: background 0.15s;
}
#employeeTable tbody tr:nth-child(even) { background-color: #fafbfc; }
#employeeTable tbody tr:hover { background: rgba(var(--primary-rgb),0.06) !important; }
#employeeTable th:first-child { background: var(--primary); color: white; }
#employeeTable th:first-child:hover { background: var(--primary-dark); }

/* Sticky first column */
#employeeTable th:first-child,
#employeeTable td:first-child {
    position: sticky;
    left: 0;
    background: white;
    z-index: 20;
    min-width: 240px;
    box-shadow: 3px 0 12px rgba(0,0,0,0.08);
}
#employeeTable th:first-child { z-index: 25; background: var(--primary); color: white; }
#employeeTable tbody tr:nth-child(even) td:first-child { background-color: #fafbfc; }
#employeeTable tbody tr:nth-child(odd) td:first-child { background-color: #ffffff; }
#employeeTable tbody tr:hover td:first-child { background: #f5eeee !important; }

/* ========== BADGES ========== */
.badge-goodt-added, .badge-goodt-error, .badge-goodt-waiting,
.badge-status-gph, .badge-status-cash, .badge-status-self,
.badge-status-contract, .badge-status-notwork, .badge-status-labour,
.badge-status-noshift, .badge-status-forbid,
.badge-consent-received, .badge-consent-sent, .badge-consent-no,
.badge-medbook-active, .badge-medbook-missing, .badge-medbook-expired, .badge-medbook-working,
.badge-account-registration, .badge-account-active, .badge-account-disabled {
    padding: 5px 12px;
    border-radius: 20px;
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.badge-goodt-added { background: #dcfce7; color: #166534; }
.badge-goodt-error { background: #fce4ec; color: #b71c1c; }
.badge-goodt-waiting { background: #fff3e0; color: #e65100; }
.badge-status-gph { background: #e3f2fd; color: #0d47a1; }
.badge-status-cash { background: #fff3e0; color: #e65100; }
.badge-status-self { background: #fffde7; color: #92400e; }
.badge-status-contract { background: #f1f8e9; color: #33691e; }
.badge-status-notwork { background: #fce4ec; color: #880e4f; }
.badge-status-labour { background: white; color: #1e293b; border: 2px solid #cbd5e1; }
.badge-status-noshift { background: #f3e5f5; color: #6a1b9a; }
.badge-status-forbid { background: #e0e0e0; color: #424242; }
.badge-consent-received { background: #dcfce7; color: #166534; }
.badge-consent-sent { background: #fff3e0; color: #e65100; }
.badge-consent-no { background: #fce4ec; color: #b71c1c; }
.badge-medbook-active { background: #dcfce7; color: #166534; }
.badge-medbook-missing { background: #fce4ec; color: #b71c1c; }
.badge-medbook-expired { background: #fff3e0; color: #e65100; }
.badge-medbook-working { background: white; color: #1e293b; border: 2px solid #cbd5e1; }

/* ========== ACCOUNT STATUS BADGES ========== */
.badge-account-registration { background: #fef9c3; color: #854d0e; }
.badge-account-active { background: #dcfce7; color: #166534; }
.badge-account-disabled { background: #fce4ec; color: #b71c1c; }

/* ========== DADATA ========== */
.autocomplete-container { position: relative; display: flex; flex-direction: column; width: 100%; }
.autocomplete-container .form-control { z-index: 1; position: relative; }
.autocomplete-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin-top: 6px;
    max-height: 280px;
    overflow-y: auto;
    z-index: 10001 !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    display: none;
}
.autocomplete-list.show { display: block; animation: slideDown 0.2s ease; }
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
.autocomplete-item {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f1f5f9;
    font-size: 13px;
    color: #1e293b;
    background: white;
    transition: all 0.15s;
    border-radius: 8px;
    margin: 4px;
}
.autocomplete-item:hover { background: #f8fafc; transform: translateX(4px); }
.autocomplete-item:last-child { border-bottom: none; margin-bottom: 4px; }

/* ========== TABLE LOADER ========== */
.table-loader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.98);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    gap: 20px;
}
.table-loader .spinner {
    width: 70px;
    height: 70px;
    border: 6px solid #f3f4f6;
    border-top: 6px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
.table-loader span { font-size: 1.2rem; color: #1e293b; font-weight: 600; letter-spacing: 0.5px; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* ========== EXPORT / TEMPLATE BUTTONS ========== */
.filters-card .export-btn,
.filters-card .template-btn,
.filters-card .download-template-btn {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.9);
    height: 34px;
    padding: 0 16px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.filters-card .export-btn:hover,
.filters-card .template-btn:hover,
.filters-card .download-template-btn:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.15);
    box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}

/* ========== FILTER DROPDOWNS ========== */
.filter-dropdown {
    z-index: 10001 !important;
    position: absolute;
    box-shadow: 0 4px 24px rgba(0,0,0,0.15), 0 0 0 1px rgba(0,0,0,0.04);
    border-radius: 16px;
    background: white;
    max-height: 320px;
    overflow-y: auto;
    display: none;
    animation: fadeIn 0.15s ease;
    min-width: 220px;
    padding: 8px;
}
.filter-dropdown.show { display: block; }
.filter-option {
    padding: 10px 14px;
    cursor: pointer;
    border-bottom: 1px solid #f1f5f9;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #1e293b;
    font-size: 0.85rem;
}
.filter-option:hover { background: #f8fafc; padding-left: 18px; }
.filter-option input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--primary); cursor: pointer; margin: 0; }

/* ========== SIDEBAR BUTTONS ========== */
.sidebar .btn-primary {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 12px 24px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.9rem;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 12px;
    width: 100%;
    box-shadow: 0 4px 12px rgba(var(--primary-rgb),0.2);
}
.sidebar .btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(var(--primary-rgb),0.3); }
.sidebar .btn-primary:active { transform: translateY(0); }
.sidebar .btn-primary:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.sidebar .btn-secondary {
    background: white;
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: 12px;
    padding: 11px 22px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.85rem;
    transition: all 0.25s;
    margin-top: 10px;
}
.sidebar .btn-secondary:hover { background: #fff5f5; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(var(--primary-rgb),0.1); }
.sidebar .btn-small { padding: 8px 16px; font-size: 0.8rem; border-radius: 10px; }

/* ========== ADD SIDEBAR ========== */
#addSidebar .sidebar-header {
    background: var(--primary);
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}
#addSidebar .sidebar-content { padding: 20px; background: #f8fafc; }
#addSidebarTitle { font-size: 1.3rem; font-weight: 700; }
#addSidebarTitle span { font-size: 0.85rem; font-weight: 500; opacity: 0.9; }

/* ========== FIELD GROUPS ========== */
.field-group {
    background: white;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
    border: 1px solid #e8ecf0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.field-group:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.07);
    border-color: #d0d5db;
    transform: translateY(-1px);
}
.field-group h4 {
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: #1e293b;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f2f5;
    display: flex;
    align-items: center;
    gap: 8px;
}
.field-group .grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.field-group .field-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
    margin-bottom: 8px;
    display: block;
}
.field-group .field-label.required::after { content: ' *'; color: #ef4444; font-weight: 700; }
.field-group .form-control {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 0.88rem;
    line-height: 1.5;
    height: auto;
    min-height: 42px;
    background: white;
    transition: all 0.2s;
    box-sizing: border-box;
    font-weight: 500;
}
.field-group .form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(var(--primary-rgb),0.1); }
.field-group .form-control:disabled { background: #f8fafc; color: #94a3b8; cursor: not-allowed; border-color: #f1f5f9; }
.field-group .form-control::placeholder { color: #cbd5e1; }
.field-group select.form-control { cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; }

.field-group .checkbox-wrapper { margin-top: 8px; font-size: 0.8rem; color: #475569; display: flex; align-items: center; gap: 8px; cursor: pointer; }
.field-group .checkbox-wrapper input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--primary); cursor: pointer; margin: 0; }
.field-group .checkbox-wrapper label { margin: 0; cursor: pointer; }

.field-group .field-value {
    font-weight: 500;
    color: #0f172a;
    word-break: break-word;
    background: #f8fafc;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.88rem;
    border: 1px solid #f0f2f5;
}
.field-group .field-value a { color: var(--primary); text-decoration: none; font-weight: 600; transition: all 0.2s; }
.field-group .field-value a:hover { color: var(--primary-dark); text-decoration: underline; }

/* ========== DOCUMENT CARDS ========== */
.doc-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}
.doc-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #e2e8f0;
    background: white;
    position: relative;
    flex-wrap: wrap;
}
.doc-card:hover {
    border-color: var(--primary);
    background: #fff5f5;
    box-shadow: 0 2px 8px rgba(var(--primary-rgb),0.1);
}
.doc-card.uploaded {
    border-color: #22c55e;
    background: #f0fdf4;
    cursor: pointer;
}
.doc-card.reviewed-approved {
    border-color: #22c55e;
    background: #f0fdf4;
}
.doc-card.reviewed-rejected {
    border-color: #ef4444;
    background: #fef2f2;
}
.doc-card .doc-icon {
    font-size: 1.1rem;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #f1f5f9;
    color: #64748b;
    flex-shrink: 0;
}
.doc-card.uploaded .doc-icon,
.doc-card.reviewed-approved .doc-icon {
    background: #dcfce7;
    color: #166534;
}
.doc-card.reviewed-rejected .doc-icon {
    background: #fef2f2;
    color: #991b1b;
}
.doc-card .doc-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}
.doc-card .doc-info .doc-name {
    display: block;
    color: #1e293b;
    font-weight: 600;
    font-size: 0.82rem;
}
.doc-card .doc-info .doc-file {
    display: block;
    font-size: 0.72rem;
    color: #64748b;
    font-weight: 400;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-top: 2px;
}
.doc-card .doc-info .doc-status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    margin-top: 4px;
}
.doc-card .doc-info .doc-status.status-pending { background: #fef9c3; color: #854d0e; }
.doc-card .doc-info .doc-status.status-approved { background: #dcfce7; color: #166534; }
.doc-card .doc-info .doc-status.status-rejected { background: #fef2f2; color: #991b1b; }
.doc-card .doc-info .doc-status.status-empty { background: #f1f5f9; color: #94a3b8; }
.doc-card .doc-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
    align-items: center;
    margin-left: auto;
}
.doc-card .doc-files {
    display: none;
    width: 100%;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #e2e8f0;
    order: 10;
}
.doc-card.expanded .doc-files { display: block; }
.doc-card .doc-file-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 10px;
    border-radius: 8px;
    transition: background 0.15s;
    gap: 8px;
}
.doc-card .doc-file-row:hover { background: #f1f5f9; }
.doc-card .doc-file-row .file-info {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}
.doc-card .doc-file-row .file-info .file-icon {
    font-size: 0.85rem;
    color: #64748b;
    flex-shrink: 0;
}
.doc-card .doc-file-row .file-info .file-name {
    font-size: 0.78rem;
    color: #1e293b;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 500;
}
.doc-card .doc-file-row .file-info .file-size {
    font-size: 0.7rem;
    color: #94a3b8;
    flex-shrink: 0;
}
.doc-card .doc-file-row .file-actions {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}
.doc-card .doc-file-row .file-actions button {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: #64748b;
    transition: all 0.15s;
}
.doc-card .doc-file-row .file-actions button:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}
.doc-card .doc-file-row .file-actions .file-review-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    font-size: 0.85rem;
}
.doc-card .doc-file-row .file-actions .file-review-badge.approved {
    color: #16a34a;
    background: #dcfce7;
}
.doc-card .doc-file-row .file-actions .file-review-badge.rejected {
    color: #dc2626;
    background: #fee2e2;
}
.doc-card .doc-expand-hint {
    font-size: 0.68rem;
    color: #94a3b8;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
    user-select: none;
}
.doc-card .doc-expand-hint:hover { color: var(--primary); }
.doc-card .doc-expand-hint i {
    transition: transform 0.2s;
    font-size: 0.6rem;
}
.doc-card.expanded .doc-expand-hint i {
    transform: rotate(90deg);
}
.doc-card .doc-actions .doc-action-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: #64748b;
    transition: all 0.15s;
}
.doc-card .doc-actions .doc-action-btn:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}
.doc-card .doc-actions .doc-action-btn.btn-review-ok {
    color: #166534;
    border-color: #bbf7d0;
    background: #f0fdf4;
}
.doc-card .doc-actions .doc-action-btn.btn-review-ok:hover {
    background: #dcfce7;
}
.doc-card .doc-actions .doc-action-btn.btn-review-no {
    color: #991b1b;
    border-color: #fecaca;
    background: #fef2f2;
}
.doc-card .doc-actions .doc-action-btn.btn-review-no:hover {
    background: #fef2f2;
}
.doc-card .doc-actions .doc-action-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}
.doc-card .doc-actions .doc-action-btn.btn-active {
    opacity: 1;
}
.doc-card .doc-actions .doc-action-btn.btn-active.btn-review-ok {
    background: #22c55e;
    color: white;
    border-color: #22c55e;
}
.doc-card .doc-actions .doc-action-btn.btn-active.btn-review-no {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}
.doc-card .doc-check {
    display: none;
    position: absolute;
    top: -6px;
    right: -6px;
    width: 20px;
    height: 20px;
    background: #22c55e;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.65rem;
    box-shadow: 0 2px 6px rgba(34,197,94,0.3);
    z-index: 1;
}
.doc-card.uploaded .doc-check { display: flex; }
.doc-card .doc-action {
    font-size: 0.7rem;
    color: #94a3b8;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 4px;
}
.doc-card.uploaded .doc-action { color: #22c55e; }
.doc-reject-comment {
    font-size: 0.72rem;
    color: #991b1b;
    background: #fef2f2;
    padding: 6px 10px;
    border-radius: 8px;
    margin-top: 6px;
    border: 1px solid #fecaca;
}

/* ========== DOCUMENT BUTTONS ========== */
.btn-doc {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
    cursor: pointer;
    border: none;
}
.btn-doc-primary { background: var(--primary); color: white; box-shadow: 0 2px 8px rgba(var(--primary-rgb),0.2); }
.btn-doc-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(var(--primary-rgb),0.3); }
.btn-doc-secondary { background: #f1f5f9; color: #475569; border: 1px solid #e2e8f0; }
.btn-doc-secondary:hover { background: #e2e8f0; }
.btn-doc-folder { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.btn-doc-folder:hover { background: #bbf7d0; }
.btn-doc-upload { background: #eff6ff; color: #1d4ed8; border: 1px dashed #93c5fd; padding: 10px 16px; }
.btn-doc-upload:hover { background: #dbeafe; border-style: solid; }
.doc-download-all-btn {
    background: none;
    border: 1px solid #e2e8f0;
    color: #475569;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 8px;
    transition: all 0.15s;
    vertical-align: middle;
}
.doc-download-all-btn:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #1e293b;
}

/* ========== FILE ROW ========== */
.file-row {
    cursor: default;
    transition: all 0.15s;
}
.file-row:hover { background: #f1f5f9 !important; }
.file-row button { transition: all 0.15s; }

/* ========== HISTORY TABLE ========== */
.field-group table { width: 100%; border-collapse: collapse; font-size: 0.78rem; }
.field-group table thead th { padding: 8px 6px; text-align: left; font-weight: 600; color: #64748b; border-bottom: 2px solid #f0f2f5; white-space: nowrap; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.5px; }
.field-group table tbody td { padding: 7px 6px; border-bottom: 1px solid #f5f6f8; color: #1e293b; }
.field-group table tbody tr:last-child td { border-bottom: none; }

/* ========== GOODT TIME BUTTON ========== */
.field-value .btn-doc { font-size: 0.72rem; padding: 4px 10px; }

/* ========== FILE LIST SCROLLBAR ========== */
#employeeFilesList::-webkit-scrollbar { width: 6px; }
#employeeFilesList::-webkit-scrollbar-track { background: #f1f5f9; border-radius: 3px; }
#employeeFilesList::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }

/* ========== EMPLOYEE SUBINFO ========== */
.employee-subinfo { font-size: 0.72rem; color: #64748b; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 5px; }
.employee-subinfo span { background: #f1f5f9; padding: 2px 8px; border-radius: 10px; font-weight: 500; }

/* ========== PAGINATION ========== */
.pagination {
    position: fixed;
    bottom: 16px;
    right: 16px;
    z-index: 300;
    display: flex;
    justify-content: flex-end;
}

.pagination-inner {
    display: flex;
    align-items: center;
    gap: 3px;
    background: white;
    padding: 5px 10px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    font-size: 12px;
}

.pagination-inner button {
    padding: 4px 9px;
    border: 1px solid transparent;
    border-radius: 6px;
    background: transparent;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.15s;
    color: #475569;
    min-width: 28px;
    text-align: center;
    line-height: 1.3;
}

.pagination-inner button:hover {
    background: #f1f5f9;
    border-color: #e2e8f0;
}

.pagination-inner button.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    font-weight: 700;
}

.pagination-inner button:disabled {
    opacity: 0.3;
    cursor: default;
    background: transparent;
}

.pagination-inner .page-dots {
    color: #94a3b8;
    font-size: 11px;
    letter-spacing: 1px;
    padding: 0 1px;
}

.pagination-inner .page-info {
    font-size: 11px;
    color: #94a3b8;
    font-weight: 500;
    margin: 0 2px;
    white-space: nowrap;
}

.pagination-inner .page-size-select {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    margin-left: 4px;
    padding-left: 6px;
    border-left: 1px solid #e2e8f0;
    font-size: 11px;
    color: #94a3b8;
}

.pagination-inner .page-size-select i {
    font-size: 10px;
}

.pagination-inner .page-size-select select {
    padding: 2px 4px;
    border: 1px solid #e2e8f0;
    border-radius: 5px;
    font-size: 11px;
    background: white;
    cursor: pointer;
    color: #1e293b;
    font-weight: 500;
}

.pagination-inner .page-size-select select:focus {
    outline: none;
    border-color: var(--primary);
}

/* ========== DOCUMENT REVIEW ========== */
.doc-card .review-comment {
    font-size: 0.72rem;
    color: #991b1b;
    background: #fef2f2;
    padding: 6px 10px;
    border-radius: 8px;
    margin-top: 6px;
    border: 1px solid #fecaca;
}
.doc-card .review-btn {
    flex: 1;
    padding: 6px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.15s;
    min-width: 0;
}
.doc-card .review-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.doc-card .review-btn-ok { background: #dcfce7; color: #166534; border-color: #bbf7d0; }
.doc-card .review-btn-ok:hover:not(:disabled) { background: #bbf7d0; }
.doc-card .review-btn-no { background: #fef2f2; color: #991b1b; border-color: #fecaca; }
.doc-card .review-btn-no:hover:not(:disabled) { background: #fecaca; }
