:root {
    --company-primary: #1E429B;
    --company-primary-hover: #16357C;
    --company-primary-light: rgba(30, 66, 155, 0.1);
    --company-primary-border: rgba(30, 66, 155, 0.2);
}

/* ─── Toolbar Grid — IN 201files.blade.php ──────────────────────────── */

.parent {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 8px;
}

/* (1) Search bar — spans all 5 cols, row 2 */
.div1 {
    grid-column: 1 / span 5;
    grid-row-start: 2;
}

/* (2) Company selector — col 5, row 1 */
.div2 {
    grid-column-start: 5;
    grid-row-start: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}


.toolbar-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ─── Search Bar ─────────────────iN 201files.blade.php ─────────────────────────── */

.search-wrapper {
    position: relative;
    width: 100%;
}

.search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 0.9rem;
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 10px 16px 10px 40px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fff;
}

.search-input:focus {
    border-color: var(--company-primary);
    box-shadow: 0 0 0 3px var(--company-primary-light);
}


/* ─── 201 File Panel ──────────────────────────────────────── */

.file-panel {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

/* Tab bar row */
.file-panel__tabbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    border-bottom: 1px solid #e5e7eb;
    padding: 0 16px;
    background: #fff;
    flex-wrap: wrap;
}

/* Tab list */
.file-tabs {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2px;
}

/* Individual tab button */
.file-tab {
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    padding: 12px 16px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    white-space: nowrap;
    transition: color 0.15s, border-color 0.15s;
    margin-bottom: -1px;
    /* overlap panel border */
}

.file-tab:hover {
    color: var(--company-primary);
}

.file-tab.active {
    color: var(--company-primary);
    border-bottom-color: var(--company-primary);
    font-weight: 600;
}

.btn-file-save {
    padding: 7px 20px;
    background: var(--company-primary);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-file-save:hover {
    background: #219a52;
}

.btn-file-save:focus,
.btn-file-save:active {
    background-color: var(--company-primary-hover) !important;
    box-shadow: 0 0 0 3px var(--company-primary-light) !important;
    outline: none !important;
}

.btn-file-close {
    padding: 7px 20px;
    background: #6b7280;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-file-close:hover {
    background: #4b5563;
}

.btn-brand {
    background: var(--company-primary);
    color: #fff;
    border: none;
    font-weight: 600;
    font-size: 0.85rem;
    border-radius: 4px;
    /* match context */
    transition: background 0.2s, transform 0.15s;
}

.btn-brand:hover {
    background: var(--company-primary-hover);
    color: #fff;
    transform: translateY(-1px);
}

.btn-brand:focus,
.btn-brand:active {
    background-color: var(--company-primary-hover) !important;
    box-shadow: 0 0 0 3px var(--company-primary-light) !important;
    outline: none !important;
}

/* Panel body */
.file-panel__body {
    padding: 24px;
}

/* Panel section title (e.g. "PROFILE") */
.panel-section-title {
    color: var(--company-primary);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

/* Field inputs */
.field-input {
    border-radius: 8px;
    border: 1px solid #d1d5db;
    font-size: 0.875rem;
    padding: 9px 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.field-input:focus {
    border-color: var(--company-primary);
    box-shadow: 0 0 0 3px rgba(30, 66, 155, 0.12);
    outline: none;
}

/* ─── Select2 Overrides (Match .field-input) ───────────────────────── */

.select2-container--default .select2-selection--single {
    border-radius: 8px;
    border: 1px solid #d1d5db;
    height: 40px;
    /* match field input total height */
    padding: 5px 6px;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 38px;
    right: 8px;
}

.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single {
    border-color: var(--company-primary) !important;
    box-shadow: 0 0 0 3px rgba(30, 66, 155, 0.12) !important;
}

.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
    background-color: var(--company-primary) !important;
    color: #ffffff !important;
}

#select2-folderCodeSelect-container {
    color: #212529 !important;
}

.select2-results__option.select2-results__option--selectable {
    color: #212529;
}

/* ─── Documents Tab For 201files.blade.php ────────────────────────────────────────── */

/* Upload button */
.btn-doc-upload {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: var(--company-primary);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 0.83rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
}

.btn-doc-upload:hover {
    background: var(--company-primary-hover);
    transform: translateY(-1px);
}

.btn-doc-upload:focus,
.btn-doc-upload:active {
    background-color: var(--company-primary-hover) !important;
    box-shadow: 0 0 0 3px var(--company-primary-light) !important;
    outline: none !important;
}

/* Document search */
.doc-search-wrapper {
    position: relative;
    width: 220px;
}

.doc-search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 0.8rem;
    pointer-events: none;
}

.doc-search-input {
    width: 100%;
    padding: 7px 12px 7px 30px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.83rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.doc-search-input:focus {
    border-color: var(--company-primary);
    box-shadow: 0 0 0 3px var(--company-primary-light);
}

/* Table wrapper */
.doc-table-wrapper {
    overflow-x: auto;
    overflow-y: visible;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

/* Table */
.doc-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.83rem;
}

.doc-table thead tr {
    background: #f9fafb;
    border-bottom: 2px solid #e5e7eb;
}

.doc-table th {
    padding: 10px 12px;
    text-align: left;
    font-weight: 600;
    color: #6b7280;
    white-space: nowrap;
    border-right: 1px solid #e5e7eb;
}

.doc-table th:last-child {
    border-right: none;
}

.doc-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #f0f0f0;
    border-right: 1px solid #f0f0f0;
    vertical-align: middle;
    color: #374151;
    position: relative;
}

.doc-table tbody tr {
    position: relative;
}

.doc-table tbody tr.row-dropdown-open {
    z-index: 60;
}

.doc-table tbody tr.row-dropdown-open>td {
    z-index: 60;
}

.doc-table td:last-child {
    border-right: none;
}

.doc-table tbody tr:last-child td {
    border-bottom: none;
}

.doc-table tbody tr:hover {
    background: #fafafa;
}

/* Document type cell — red link style like reference */
.doc-type-cell {
    color: #1E429B;
    font-weight: 600;
    font-size: 0.78rem;
    text-transform: uppercase;
    line-height: 1.3;
    cursor: pointer;
}

.doc-type-cell:hover {
    text-decoration: underline;
}

/* Action icon button */
.btn-doc-action {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1.5px solid var(--company-primary);
    border-radius: 6px;
    color: var(--company-primary);
    font-size: 0.8rem;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.btn-doc-action:hover {
    background: var(--company-primary);
    color: #fff;
}

.btn-doc-action:focus,
.btn-doc-action:active {
    background-color: var(--company-primary) !important;
    color: #fff !important;
    box-shadow: 0 0 0 3px var(--company-primary-light) !important;
    outline: none !important;
}

/* Global Bootstrap overrides for red buttons to fix blue click color */
.btn-danger:focus,
.btn-danger:active,
.btn-outline-danger:focus,
.btn-outline-danger:active {
    box-shadow: 0 0 0 3px var(--company-primary-light) !important;
    border-color: var(--company-primary) !important;
}

/* ─── Flash Alert Messages ────────────────────────────────────────── */

.alert-flash {
    position: fixed;
    top: 70px;
    right: 24px;
    z-index: 9999;
    padding: 14px 22px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    min-width: 320px;
    max-width: 450px;
    animation: flashSlideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transition: all 0.3s ease;
    cursor: default;
    border-left-width: 5px !important;
}

@keyframes flashSlideIn {
    from {
        transform: translateX(120%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.alert-flash:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.alert-flash--success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
    border-left: 5px solid #22c55e !important;
}

.alert-flash--error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
    border-left: 5px solid #ef4444 !important;
}

/* Close button for flash messages */
.btn-close-flash {
    background: transparent;
    border: none;
    color: inherit;
    font-size: 1rem;
    cursor: pointer;
    margin-left: auto;
    padding: 0 0 0 16px;
    opacity: 0.5;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-close-flash:hover {
    opacity: 1;
    transform: scale(1.1);
}

.alert-flash span {
    flex: 1;
}

/* ─── New Button (tab bar) ─────────────────────────────────────────── */

.btn-file-new {
    padding: 7px 18px;
    background: #e5e7eb;
    color: #374151;
    border: none;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: background 0.2s;
}

.btn-file-new:hover {
    background: #d1d5db;
    color: #111827;
}

/* ─── Error Pages ─────────────────────────────────────────── */

.error-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background-color: #f8fafc;
    padding: 20px;
    text-align: center;
}

.error-card {
    background: #fff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    max-width: 500px;
    width: 100%;
}

.error-icon {
    font-size: 3rem;
    color: rgb(30, 66, 155);
    margin-bottom: 20px;
    opacity: 0.9;
}

.error-code {
    font-size: 4rem;
    font-weight: 800;
    color: #1e293b;
    line-height: 1;
    margin-bottom: 10px;
}

.error-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #334155;
    margin-bottom: 15px;
}

.error-message {
    font-size: 1rem;
    color: #64748b;
    margin-bottom: 30px;
    line-height: 1.6;
}

.btn-error-home {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background-color: rgb(30, 66, 155);
    color: #fff;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s;
}

.btn-error-home:hover {
    background-color: #16357C;
    color: #fff;
}

/* ─── Employee Summary Tab ─────────────────────────────────────────── */

.emp-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.emp-summary-card {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.emp-summary-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #9ca3af;
}

.emp-summary-value {
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
    word-break: break-all;
}

.emp-summary-mono {
    font-size: 1rem;
    font-weight: 600;
    color: var(--company-primary);
}

/* Status badges */
.emp-status-badge {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.emp-status-badge--active {
    background: #d1fae5;
    color: #065f46;
}

.emp-status-badge--resigned {
    background: #fee2e2;
    color: #991b1b;
}

.emp-status-badge--awol {
    background: #fef3c7;
    color: #92400e;
}

/* ─── Meili-Search dropdown ────────────────────────────────────────── */

.meili-results-container {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    z-index: 999;
    max-height: 280px;
    overflow-y: auto;
}

.meili-item {
    padding: 10px 14px;
    border-bottom: 1px solid #f3f4f6;
    font-size: 0.875rem;
    transition: background 0.12s;
}

.meili-folder-code {
    color: var(--company-primary);
    font-weight: 700;
    font-size: 0.85rem;
}

.meili-item:last-child {
    border-bottom: none;
}

.meili-item:hover,
.meili-item.active {
    background: #fef2f2;
    color: var(--company-primary);
    cursor: pointer;
    border-left: 3px solid var(--company-primary);
    padding-left: 11px;
    /* offset border to prevent jumping */
}

/* ─── Profile Header Redesign ─────────────────────────────────────── */

.profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    background: #f0d6d6;
    color: #b91c1c;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.profile-info h2 {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 800;
    color: #111827;
    letter-spacing: -0.02em;
}

.profile-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 5px;
    color: #6b7280;
    font-size: 0.95rem;
    font-weight: 600;
}

.profile-meta .dot {
    width: 4px;
    height: 4px;
    background: #d1d5db;
    border-radius: 50%;
}

/* ─── Profile Cards ──────────────────────────────────────────────── */

.profile-grid {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.profile-card {
    flex: 1;
    min-width: 300px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
}

.profile-card__header {
    background: #f9fafb;
    padding: 12px 20px;
    border-bottom: 1px solid #e5e7eb;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #374151;
}

.profile-card__body {
    padding: 0;
}

.profile-field {
    padding: 15px 20px;
    border-bottom: 1px solid #f3f4f6;
}

.profile-field:last-child {
    border-bottom: none;
}

.profile-field__label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 4px;
}

.profile-field__value {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: #111827;
}

.profile-field__value--red {
    color: #b91c1c;
}

.text-full-limit {
    color: #dc2626 !important;
    font-weight: 700;
}

.profile-field__value--mono {
    font-family: 'Monaco', 'Consolas', monospace;
}

/* ─── Dashboard Styles ─────────────────────────────────────────────── */

.stat-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid #eef0f3;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
    min-height: 140px;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Status Card Header */
.stat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* Changed to center for better alignment with circle */
    margin-bottom: 8px;
}

.stat-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #4b5563;
}

.stat-icon-wrap {
    display: none;
    /* Hide old icon style */
}

.stat-icon-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--company-primary), var(--company-primary-hover));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.25rem;
    box-shadow: 0 4px 10px var(--company-primary-light);
    flex-shrink: 0;
}

.stat-body {
    display: flex;
    align-items: center;
    gap: 12px;
}

.stat-value-large {
    font-size: 2.25rem;
    font-weight: 800;
    color: #111827;
    line-height: 1;
}

.trend-pill {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.trend-pill--up {
    background: #ecfdf5;
    color: #059669;
}

.trend-pill--down {
    background: #fef2f2;
    color: #dc2626;
}

.year-selection-pill {
    background: #f3f4f6;
    color: #4b5563;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 4px 12px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.year-selection-pill:hover {
    background-color: rgba(30, 66, 155, 0.1);
    color: var(--primary-red, rgb(30, 66, 155));
    border-color: rgba(30, 66, 155, 0.3);
}

.year-selection-pill.active {
    background-color: rgb(30, 66, 155);
    border-color: rgb(30, 66, 155);
    color: #fff;
    box-shadow: 0 4px 6px -1px rgba(30, 66, 155, 0.2), 0 2px 4px -1px rgba(30, 66, 155, 0.1);
}

.see-more-pill {
    background: transparent;
    border: none;
    color: rgb(30, 66, 155);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 4px 8px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.see-more-pill:hover {
    opacity: 0.7;
    text-decoration: underline;
}

.dashboard-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.recent-uploads-table th {
    background: #f9fafb;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #6b7280;
    padding: 12px 16px;
    border-bottom: 1px solid #e5e7eb;
}

.recent-uploads-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #f3f4f6;
}

.graph-container {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    height: 100%;
}

.filter-wrapper {
    display: flex;
    gap: 8px;
}

/* Date Pill Styles */
.date-pill {
    background: #fff;
    border: 1px solid #eef0f3;
    border-radius: 100px;
    padding: 10px 20px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 0.875rem;
    color: #111827;
    font-weight: 600;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: background 0.2s;
}

.date-pill:hover {
    background: #f9fafb;
}

.date-pill i.fa-calendar-alt {
    color: #4b5563;
    font-size: 1rem;
}

.date-pill i.fa-chevron-down {
    font-size: 0.75rem;
    color: #9ca3af;
}

/* ─── Login Page Redesign ─────────────────────────────────────────── */

.login-page-wrapper {
    background: #f6f5f7 url('../image/sunstar_2026-01-15_phjjbo9m_Untitled-1.jpg') no-repeat center center fixed;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
}

.login-container {
    background-color: #fff;
    border-radius: 20px;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);
    position: relative;
    overflow: hidden;
    width: 850px;
    max-width: 100%;
    min-height: 520px;
    display: flex;
}

.overlay-panel {
    background: #f6f7fb;
    color: #1f2937;
    width: 45%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 40px;
    text-align: center;
}

.form-panel {
    width: 55%;
    background-color: #f6f7fb;
    padding: 40px 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.form-panel h1 {
    font-weight: 800;
    margin: 10px 0;
    font-size: 2.2rem;
    color: #333;
}

.social-container {
    margin: 15px 0;
}

.social-container a {
    border: 1px solid #DDDDDD;
    border-radius: 50%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin: 0 5px;
    height: 40px;
    width: 40px;
    color: #333;
    font-size: 14px;
    transition: background 0.2s, color 0.2s;
}

.social-container a:hover {
    background-color: #fcebeb;
    color: var(--company-primary);
    border-color: var(--company-primary);
}

.form-panel span {
    font-size: 12px;
    color: #777;
    margin-bottom: 15px;
}


.form-panel input {
    background-color: #eee;
    border: none;
    padding: 12px 15px;
    margin: 8px 0;
    width: 100%;
    border-radius: 8px;
    outline: none;
    font-size: 0.9rem;
}

.form-panel input:focus {
    box-shadow: 0 0 0 2px rgba(30, 66, 155, 0.2);
}

.form-panel a {
    color: #777;
    font-size: 14px;
    text-decoration: none;
    margin: 15px 0;
}

.form-panel a:hover {
    text-decoration: underline;
}

.btn-signin {
    border-radius: 20px;
    border: 1px solid var(--company-primary);
    background-color: var(--company-primary);
    color: #FFFFFF;
    font-size: 12px;
    font-weight: bold;
    padding: 12px 45px;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: transform 80ms ease-in;
    cursor: pointer;
    margin-top: 10px;
}

.btn-signin:active {
    transform: scale(0.95);
}

.btn-signin:hover {
    background-color: var(--company-primary);
    border-color: var(--company-primary);
}

.overlay-panel h1,
.overlay-panel h2 {
    font-weight: bold;
    margin: 1;
    font-size: 2.2rem;
    color: #1f2937;
}

.overlay-panel p {
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    letter-spacing: 0.5px;
    margin: 5px 0 0;
    color: #374151;
}

/* Responsiveness */
@media (max-width: 768px) {
    .login-container {
        flex-direction: column;
        width: 100%;
        min-height: auto;
    }

    .overlay-panel,
    .form-panel {
        width: 100%;
        padding: 40px 20px;
    }

    .overlay-panel {
    background: #f6f7fb;
    color: #1f2937;
    width: 45%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 40px;
    text-align: center;
}
}

/* Upload Zone / Dropzone */
.upload-zone {
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    padding: 32px 24px;
    text-align: center;
    background: #fdfdfd;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
}

.upload-zone:hover,
.upload-zone--dragover {
    border-color: var(--brand-red, var(--company-primary));
    background: rgba(30, 66, 155, 0.02);
    box-shadow: 0 4px 12px rgba(30, 66, 155, 0.08);
}

.upload-zone__icon {
    font-size: 2.5rem;
    color: #9ca3af;
    margin-bottom: 12px;
    transition: transform 0.3s ease;
}

.upload-zone:hover .upload-zone__icon {
    transform: translateY(-5px);
    color: var(--brand-red, var(--company-primary));
}

.upload-zone__text {
    font-size: 0.95rem;
    font-weight: 500;
    color: #4b5563;
}

.upload-zone__subtext {
    font-size: 0.8rem;
    color: #9ca3af;
    margin-top: 4px;
}

.upload-zone input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

/* Document Cards & refined List */
.doc-list-card {
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    background: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    overflow: hidden;
}

.doc-table th {
    background: #f8fafc;
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 0.05em;
    padding: 14px 16px;
    color: #64748b;
    border-bottom: 1px solid #e2e8f0;
}

.doc-table td {
    padding: 14px 16px;
    vertical-align: middle;
    border-bottom: 1px solid #f1f5f9;
}

/* File Type Icons */
.file-icon-wrapper {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    margin-right: 12px;
    flex-shrink: 0;
}

.file-icon--pdf {
    background: #ffeeee;
    color: #e11d48;
}

.file-icon--img {
    background: #f0f9ff;
    color: #0ea5e9;
}

.file-icon--doc {
    background: #eff6ff;
    color: #2563eb;
}

.file-icon--xls {
    background: #f0fdf4;
    color: #16a34a;
}

.file-icon--csv {
    background: #ecfdf5;
    color: #059669;
}

.file-icon--generic {
    background: #f8fafc;
    color: #64748b;
}

/* Status Pill Badges */
.status-pill {
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: capitalize;
    display: inline-block;
}

.status-pill--active {
    background: #dcfce7;
    color: #166534;
}

.status-pill--archived {
    background: #f1f5f9;
    color: #475569;
}

/* Action Buttons */
.btn-action-round {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #64748b;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-action-round:hover {
    background: #f8fafc;
    color: var(--brand-red, var(--company-primary));
    border-color: var(--brand-red, var(--company-primary));
    transform: scale(1.05);
}

/* Staggered Entry Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

.stagger-1 {
    animation-delay: 0.1s;
}

.stagger-2 {
    animation-delay: 0.2s;
}

.stagger-3 {
    animation-delay: 0.3s;
}

.stagger-4 {
    animation-delay: 0.4s;
}

.stagger-5 {
    animation-delay: 0.5s;
}

@media (max-width: 992px) {
    .explorer-grid {
        grid-template-columns: 1fr;
    }
}

/* Department Documents Explorer */
.explorer-grid {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 16px;
}

.explorer-sidebar {
    min-height: 420px;
}

.folder-tree {
    max-height: 360px;
    overflow: auto;
    border: 1px solid #eef2f7;
    border-radius: 8px;
    padding: 8px;
    background: #fcfdff;
}

.folder-node {
    margin-bottom: 2px;
}

.folder-node__row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.folder-node__row.active {
    background: rgba(30, 66, 155, 0.06);
    border-radius: 8px;
}

.folder-node__menu {
    margin-left: auto;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.folder-node__row:hover .folder-node__menu,
.folder-node__row.active .folder-node__menu {
    opacity: 1;
}

.btn-action-round--xs {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    font-size: 0.72rem;
}

/* ─── Sidebar Nav Buttons (Root, History) ─────────────────────────── */
.btn-sidebar-nav {
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: transparent;
    border: none;
    color: #94a3b8;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.8rem;
    text-decoration: none !important;
}

.btn-sidebar-nav:hover {
    background: #f1f5f9;
    color: var(--company-primary);
    transform: translateY(-1px);
}

.btn-sidebar-nav--history:hover {
    color: #0ea5e9; /* Sky Blue for history */
}

.folder-node__link {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 8px;
    border-radius: 6px;
    color: #475569;
    text-decoration: none;
    font-size: 0.82rem;
    flex: 1;
}

.folder-node__link:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.folder-node__link.active {
    background: rgba(30, 66, 155, 0.12);
    color: #9a1d0c;
    font-weight: 600;
}

.explorer-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    font-size: 0.82rem;
}

.explorer-breadcrumb a {
    color: #475569;
    text-decoration: none;
}

.explorer-breadcrumb a.active {
    color: var(--company-primary);
    font-weight: 700;
}

.folder-toolbar .btn {
    border-radius: 6px;
    font-size: 0.78rem;
}

.upload-zone {
    padding: 20px 16px;
    min-height: 160px;
}

.upload-zone__icon {
    font-size: 2rem;
    margin-bottom: 8px;
}

.upload-zone__text {
    font-size: 0.88rem;
}

.upload-zone__subtext {
    font-size: 0.75rem;
}

.explorer-main .card .card-body {
    padding: 1rem !important;
}

.explorer-main .card .card-header {
    padding: 0.9rem 1rem !important;
}

.explorer-main .doc-list-card {
    overflow: visible;
}

.explorer-main .doc-table-wrapper {
    overflow: visible;
}

.explorer-main .doc-table th,
.explorer-main .doc-table td {
    padding: 10px 12px;
}

@media (max-width: 992px) {
    .explorer-grid {
        grid-template-columns: 1fr;
    }
}

/* ─── Google Drive-Style Fullscreen Preview ──────────────────────── */
.preview-overlay {
    position: fixed;
    inset: 0;
    z-index: 2050;
    display: flex;
    flex-direction: column;
}

.preview-overlay[hidden] {
    display: none !important;
}

.preview-overlay__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    cursor: pointer;
}

/* ── Top Toolbar ── */
.preview-overlay__toolbar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    height: 56px;
    background: transparent;
    color: #e8eaed;
    flex-shrink: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.preview-overlay__toolbar-left,
.preview-overlay__toolbar-right {
    display: flex;
    align-items: center;
    gap: 4px;
    pointer-events: auto;
}

.preview-overlay__toolbar-center {
    position: fixed;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(32, 33, 36, 0.86);
    backdrop-filter: blur(8px);
    pointer-events: auto;
    transition: opacity 0.25s ease;
}

.preview-overlay--controls-hidden .preview-overlay__toolbar-center {
    opacity: 0;
}

.preview-overlay--controls-hidden .preview-overlay__toolbar {
    opacity: 0;
}

.preview-overlay__pager {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #d9dee3;
    font-size: 0.85rem;
}

.preview-overlay__pager-input {
    width: 48px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #fff;
    border-radius: 6px;
    padding: 2px 6px;
    text-align: center;
}

.preview-overlay__pager-input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.45);
}

.preview-overlay__zoom {
    display: flex;
    align-items: center;
    gap: 6px;
}

.preview-overlay__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: #e8eaed;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
    text-decoration: none;
}

.preview-overlay__btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.preview-overlay__btn:active {
    background: rgba(255, 255, 255, 0.2);
}

.preview-overlay__filename {
    font-size: 0.95rem;
    font-weight: 500;
    color: #e8eaed;
    margin-left: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 500px;
    background: rgba(0, 0, 0, 0.38);
    border-radius: 999px;
    padding: 3px 10px;
}

/* ── Scrollable Content Area ── */
.preview-overlay__content {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: auto;
    padding: 24px;
    padding-top: 56px;
    cursor: pointer;
}

.preview-overlay--paged .preview-overlay__content {
    align-items: flex-start;
}

.preview-overlay__body {
    position: relative;
    width: 100%;
    max-width: 1000px;
    max-height: none;
    overflow: visible;
    cursor: default;
    background: transparent;
    border-radius: 4px;
}

.preview-overlay__body::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.preview-overlay__body::-webkit-scrollbar-track {
    background: transparent;
}

.preview-overlay__body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.preview-overlay__body::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.35);
}

/* ── Content Types ── */
.preview-overlay__iframe {
    width: 100%;
    min-height: calc(100vh - 150px);
    border: 0;
    border-radius: 4px;
    background: #ffffff;
}

.preview-overlay__image {
    display: block;
    max-width: 100%;
    max-height: calc(100vh - 130px);
    margin: 0 auto;
    border-radius: 4px;
    background: repeating-conic-gradient(#e0e0e0 0% 25%, transparent 0% 50%) 50%/16px 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
    object-fit: contain;
}

.preview-overlay__image-canvas {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    background: repeating-conic-gradient(#e0e0e0 0% 25%, transparent 0% 50%) 50%/16px 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.preview-overlay__hint {
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}

.preview-overlay__unsupported {
    padding: 2rem;
    border-radius: 12px;
    background: #2d2e30;
    color: #e8eaed;
    text-align: center;
}

.preview-overlay__unsupported .btn {
    color: #8ab4f8;
    border-color: rgba(138, 180, 248, 0.3);
}

.preview-overlay__unsupported .btn:hover {
    background: rgba(138, 180, 248, 0.1);
}

.preview-overlay__loading {
    padding: 2rem;
    border-radius: 12px;
    background: #2d2e30;
    color: #e8eaed;
    font-size: 0.9rem;
    text-align: center;
}

.preview-overlay__pdf-stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    width: 100%;
}

.preview-overlay__pdf-canvas {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 2px;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.preview-overlay__docx {
    background: transparent;
    border-radius: 4px;
    padding: 0;
    min-height: 360px;
}

.preview-overlay__docx .docx-wrapper {
    background: transparent;
    padding: 16px 0;
}

.preview-overlay__sheet-wrap {
    background: #ffffff;
    border-radius: 4px;
    padding: 0.5rem;
    overflow-x: auto;
    overflow-y: auto;
    max-width: 100%;
    max-height: calc(100vh - 170px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}


.preview-overlay__sheet-wrap::-webkit-scrollbar {
    height: 10px;
}

.preview-overlay__sheet-wrap::-webkit-scrollbar-track {
    background: #eef1f4;
    border-radius: 999px;
}

.preview-overlay__sheet-wrap::-webkit-scrollbar-thumb {
    background: #b0b7c3;
    border-radius: 999px;
}

.preview-overlay__sheet-wrap::-webkit-scrollbar-thumb:hover {
    background: #8f99a8;
}

.preview-overlay__sheet-table {
    width: max-content;
    min-width: 100%;
    font-size: 0.8rem;
}

.preview-overlay__sheet-table th,
.preview-overlay__sheet-table td {
    vertical-align: top;
    white-space: nowrap;
    word-break: normal;
    min-width: 120px;
}

.preview-overlay__sheet-note {
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}

body.preview-overlay-open {
    overflow: hidden;
}

@media (max-width: 768px) {
    .preview-overlay__content {
        padding: 12px;
    }

    .preview-overlay__filename {
        max-width: 200px;
        font-size: 0.85rem;
    }

    .preview-overlay__image {
        max-height: calc(100vh - 120px);
    }
}

/* 201 Files Custom Styles */

.atm-status--on-process {
    color: #dc3545 !important;
    /* Red */
    font-weight: 600;
}

.atm-status--for-releasing {
    color: #fd7e14 !important;
    /* Orange */
    font-weight: 600;
}

.atm-status--received {
    color: #198754 !important;
    /* Green */
    font-weight: 600;
}

/* Add any other 201files specific styles here */

/* Document table dropdown fix */
.explorer-main .doc-table td .dropdown-menu {
    z-index: 5000 !important;
}

/* Fix dropdown item active (click) color */
.dropdown-item:active,
.dropdown-item.active {
    background-color: #f3f4f6 !important;
    color: #111827 !important;
}

/* Specifically for danger dropdown items (like Delete) — keeps brand red */
.dropdown-item.text-danger:active {
    background-color: var(--company-primary) !important;
    color: #fff !important;
}

@media (max-width: 992px) {
    .explorer-main .doc-table-wrapper {
        overflow-x: auto;
    }
}

/* ─── Department Access — User Management ─────────────────────────── */

/* Badge shown in user table */
.dept-badges-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.dept-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 600;
    background: rgba(37, 99, 235, 0.08);
    color: #2563eb;
    border: 1px solid rgba(37, 99, 235, 0.15);
    white-space: nowrap;
}

.dept-badge--all {
    background: rgba(220, 38, 38, 0.08);
    color: #dc2626;
    border-color: rgba(220, 38, 38, 0.15);
}

/* Panel inside modals */
.dept-access-panel {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 16px 18px;
}

.dept-access-header {
    font-size: 0.8rem;
    font-weight: 700;
    color: #334155;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 8px;
}

/* Checkbox grid layout */
.dept-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 6px;
    max-height: 240px;
    overflow-y: auto;
    padding: 4px 0;
}

/* Scrollbar styling for the grid */
.dept-checkbox-grid::-webkit-scrollbar {
    width: 5px;
}

.dept-checkbox-grid::-webkit-scrollbar-track {
    background: transparent;
}

.dept-checkbox-grid::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

/* Individual checkbox item */
.dept-checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s;
    user-select: none;
}

.dept-checkbox-item:hover {
    background: #e2e8f0;
}

.dept-checkbox-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--company-primary);
    cursor: pointer;
    flex-shrink: 0;
}

.dept-checkbox-label {
    font-size: 0.83rem;
    font-weight: 500;
    color: #334155;
    line-height: 1.2;
}

.dept-checkbox-item:has(input:checked) {
    background: rgba(30, 66, 155, 0.06);
}

.dept-checkbox-item:has(input:checked) .dept-checkbox-label {
    color: var(--company-primary);
    font-weight: 600;
}

/* ─── Pagination Red Override ─── */
.pagination .page-item .page-link {
    color: var(--company-primary);
    border-color: #dee2e6;
    transition: all 0.2s;
}

.pagination .page-item .page-link:hover {
    color: var(--company-primary-hover, #16357C);
    background-color: var(--company-primary-light, rgba(30, 66, 155, 0.1));
    border-color: #dee2e6;
}

.pagination .page-item .page-link:focus {
    box-shadow: 0 0 0 0.25rem var(--company-primary-light, rgba(30, 66, 155, 0.25));
    color: var(--company-primary);
}

.pagination .page-item.active .page-link {
    background-color: var(--company-primary);
    border-color: var(--company-primary);
    color: #fff;
}

.pagination .page-item.active .page-link:hover {
    background-color: var(--company-primary-hover, #16357C);
    border-color: var(--company-primary-hover, #16357C);
    color: #fff;
}

