:root {
    --t: #0d9488;
    --t2: #0f766e;
    --t3: #134e4a;
    --t4: #042f2e;
    --tl: #ccfbf1;
    --tm: #5eead4;
    --tp: #f0fdfa;
    --g: #d4a843;
    --g2: #b8902e;
    --bg: #f0fdf9;
    --sf: #fff;
    --bd: #99f6e4;
    --tx: #0c1f1f;
    --tx2: #155e5e;
    --tx3: #5eab9e;
    --er: #dc2626;
    --ep: #fee2e2;
    --ok: #059669;
    --op: #d1fae5;
    --wn: #d97706;
    --wp: #fef3c7;
    --ip: #e0f2fe;
    --ip2: #0369a1;
    --sh: 0 1px 4px rgba(13, 148, 136, .1), 0 4px 16px rgba(13, 148, 136, .06);
    --sha: 0 4px 24px rgba(13, 148, 136, .18), 0 12px 40px rgba(13, 148, 136, .1);
    --r: 12px;
    --rs: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--t3), var(--t));
    box-shadow: 0 4px 14px rgba(13, 148, 136, .4);
}

.text-primary{
    color:var(--t3) !important;
}

body{
    background: var(--bg) !important;
}

.form-check-input:checked {
    background-color: var(--t);
    border-color: #2c7be5;
}

.form-control:focus {
    -webkit-box-shadow: var(--falcon-box-shadow-inset), 0 0 0 0.25rem rgba(204, 251, 241);
    box-shadow: var(--falcon-box-shadow-inset), 0 0 0 0.25rem rgba(204, 251, 241);
}

.bg-card-gradient {
    background-image: linear-gradient(-45deg, var(--t), var(--t3))!important;
}

.navbar-vertical.navbar-vibrant .navbar-collapse {
    background-image: linear-gradient(-45deg, var(--t), var(--t3)) !important;
}
.navbar-glass {
    background: var(--bg) !important;
}

.mycard-border {
    border-top: 4px solid var(--t);
}

.navbar-vertical.navbar-vibrant .navbar-vertical-label {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.7rem;
    letter-spacing: 0.02em;
}

.navbar-vertical.navbar-vibrant .nav-link.sidebar-nav-active {
    background-color: rgba(255, 255, 255, 0.12);
    border-radius: var(--rs, 8px);
    border-left: 4px solid var(--g);
    font-weight: 600;
}

.navbar-vertical.navbar-vibrant .nav-link.sidebar-nav-active .nav-link-icon,
.navbar-vertical.navbar-vibrant .nav-link.sidebar-nav-active .nav-link-text {
    color: #fff;
}

/* Request print sheet */
.request-print-sheet {
    display: none;
}

.print-office-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--tx, #0c1f1f);
    margin-bottom: 0.35rem;
}

.print-subtitle {
    font-size: 0.9rem;
    color: var(--tx2, #155e5e);
    margin-bottom: 0.75rem;
}

.print-header-line {
    border: 0;
    border-top: 3px solid var(--t, #0d9488);
    margin: 0 auto 1.25rem;
    max-width: 100%;
}

.print-section {
    margin-bottom: 1.25rem;
}

.print-section-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--tx, #0c1f1f);
    border-right: 4px solid var(--t, #0d9488);
    padding-right: 0.65rem;
    margin-bottom: 0.65rem;
}

.print-table {
    width: 100%;
    border-collapse: collapse;
}

.print-table th,
.print-table td {
    padding: 0.45rem 0;
    text-align: right;
    vertical-align: top;
    border-bottom: 1px solid #e5e7eb;
    font-size: 0.92rem;
}

.print-table th {
    width: 28%;
    font-weight: 600;
    color: var(--tx2, #155e5e);
}

.print-table td {
    color: var(--tx, #0c1f1f);
}

.print-status-value {
    color: var(--t, #0d9488) !important;
    font-weight: 700;
}

.print-reply-body {
    white-space: pre-wrap;
    word-break: break-word;
    font-size: 0.92rem;
    color: var(--tx, #0c1f1f);
    padding: 0.25rem 0.65rem 0 0;
}

.print-footer {
    margin-top: 2rem;
    padding-top: 0.75rem;
}

.print-footer-text {
    font-size: 0.75rem;
    color: #9ca3af;
}

@media print {
    .navbar-vertical,
    .navbar-top,
    .no-print {
        display: none !important;
    }

    .content {
        padding: 0 !important;
        margin: 0 !important;
    }

    .request-print-sheet {
        display: block !important;
        padding: 0;
        max-width: 100%;
    }

    @page {
        margin: 1.2cm 1.5cm;
    }

    body {
        background: #fff !important;
    }
}

/* Authorized portal */
.auth-portal-body {
    background: #f0fdf9;
}

.auth-portal-header {
    background: linear-gradient(135deg, var(--t4, #042f2e), var(--t2, #0f766e));
    color: #fff;
}

.auth-portal-logo,
.auth-portal-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.auth-portal-title {
    font-size: 1.15rem;
    font-weight: 700;
}

.auth-portal-office,
.auth-portal-role {
    font-size: 0.8rem;
    opacity: 0.9;
}

.auth-btn-photos {
    background: var(--t, #0d9488);
    color: #fff;
    border: none;
}

.auth-btn-logout {
    background: rgba(0, 0, 0, 0.25);
    color: #fff;
    border: none;
}

.auth-alert-overdue {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    padding: 0.75rem 1rem;
}

.auth-stat-card {
    background: #fff;
    border-radius: var(--r, 12px);
    border: 1px solid #e8ecef;
    padding: 1rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.auth-stat-icon {
    font-size: 1.25rem;
    display: block;
    margin-bottom: 0.35rem;
}

.auth-stat-pending .auth-stat-icon { color: #d97706; }
.auth-stat-processing .auth-stat-icon { color: #0284c7; }
.auth-stat-completed .auth-stat-icon { color: #059669; }
.auth-stat-rejected .auth-stat-icon { color: #dc2626; }

.auth-stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--t3, #134e4a);
    line-height: 1.1;
}

.auth-stat-label {
    font-size: 0.85rem;
    color: var(--tx2, #155e5e);
}

.auth-portal-tabs .nav-link {
    color: var(--tx2, #155e5e);
    border-radius: var(--rs, 8px);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.5rem 0.85rem;
}

.auth-portal-tabs .nav-link.active {
    background: var(--t3, #134e4a);
    color: #fff;
}

.auth-request-card {
    background: #fff;
    border: 1px solid #e8ecef;
    border-radius: var(--r, 12px);
    padding: 1rem 1.25rem;
}

.auth-request-card-late {
    border-color: #fecaca;
    background: #fffbfb;
}

.auth-request-name {
    color: #b91c1c;
    font-size: 1.05rem;
    font-weight: 700;
}

.auth-badge-delayed {
    background: #fee2e2;
    color: #b91c1c;
}

.auth-badge-waiting {
    background: #fef3c7;
    color: #92400e;
}

.auth-badge-pending { background: #fef3c7; color: #92400e; }
.auth-badge-processing { background: #e0f2fe; color: #0369a1; }
.auth-badge-completed { background: #d1fae5; color: #047857; }
.auth-badge-rejected { background: #fee2e2; color: #b91c1c; }
.auth-badge-muted { background: #f1f5f9; color: #64748b; }

.auth-request-body {
    background: #f8fafc;
    border: 1px solid #f1f5f9;
}

.auth-btn-start { background: #ea580c; color: #fff; border: none; }
.auth-btn-reject { background: #dc2626; color: #fff; border: none; }
.auth-btn-details { background: #fff; color: #b91c1c; border: 1px solid #fca5a5; }
.auth-btn-reply-manager { background: #1e3a5f; color: #fff; border: none; }
.auth-btn-info { background: #e0f2fe; color: #0369a1; border: 1px solid #bae6fd; }
.auth-btn-print { background: #fff; color: var(--tx2); border: 1px solid #cbd5e1; }

/* Followup portal */
.followup-portal-body {
    background: #f5f3ff;
}

.followup-hero {
    background: linear-gradient(135deg, #4c1d95, #7c3aed);
    color: #fff;
}

.followup-logo,
.followup-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.followup-title {
    font-size: 1.15rem;
    font-weight: 700;
}

.followup-subtitle,
.followup-role {
    font-size: 0.8rem;
    opacity: 0.9;
}

.followup-btn-logout {
    background: rgba(0, 0, 0, 0.25);
    color: #fff;
    border: none;
}

.followup-btn-primary {
    background: #7c3aed;
    color: #fff;
    border: none;
}

.followup-btn-primary:hover {
    background: #6d28d9;
    color: #fff;
}

.followup-btn-outline {
    background: #fff;
    color: #6d28d9;
    border: 1px solid #c4b5fd;
}

.followup-btn-reply {
    background: #5b21b6;
    color: #fff;
    border: none;
    position: relative;
}

.followup-reply-count {
    position: absolute;
    top: -6px;
    left: -6px;
    background: #f59e0b;
    color: #fff;
    font-size: 0.65rem;
    min-width: 16px;
    height: 16px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

.followup-summary-card {
    background: linear-gradient(135deg, #5b21b6, #7c3aed);
    color: #fff;
    border-radius: var(--r, 12px);
    padding: 1.25rem 1.5rem;
}

.followup-summary-title {
    font-size: 1.25rem;
    font-weight: 700;
}

.followup-summary-date {
    font-size: 0.9rem;
    opacity: 0.9;
}

.followup-progress-ring {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: conic-gradient(#fbbf24 calc(var(--pct, 0) * 1%), rgba(255, 255, 255, 0.2) 0);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.followup-progress-ring::before {
    content: "";
    position: absolute;
    inset: 8px;
    border-radius: 50%;
    background: rgba(91, 33, 182, 0.85);
}

.followup-progress-value,
.followup-progress-label {
    position: relative;
    z-index: 1;
    line-height: 1.2;
    text-align: center;
}

.followup-progress-value {
    font-size: 1.1rem;
    font-weight: 700;
}

.followup-progress-label {
    font-size: 0.65rem;
    opacity: 0.9;
}

.followup-mini-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.15);
}

.followup-stat-card {
    background: #fff;
    border-radius: var(--r, 12px);
    border: 1px solid #e8ecef;
    padding: 1rem;
    text-align: center;
}

.followup-stat-icon {
    font-size: 1.2rem;
    display: block;
    margin-bottom: 0.35rem;
}

.followup-stat-total .followup-stat-icon { color: #7c3aed; }
.followup-stat-completed .followup-stat-icon { color: #059669; }
.followup-stat-processing .followup-stat-icon { color: #0284c7; }
.followup-stat-pending .followup-stat-icon { color: #d97706; }
.followup-stat-overdue .followup-stat-icon { color: #dc2626; }

.followup-stat-value {
    font-size: 1.6rem;
    font-weight: 700;
    color: #5b21b6;
    line-height: 1.1;
}

.followup-stat-label {
    font-size: 0.8rem;
    color: #6b7280;
}

.followup-alert-overdue {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    padding: 0.75rem 1rem;
}

.followup-tabs .nav-link {
    color: #6d28d9;
    border-radius: var(--rs, 8px);
    font-weight: 600;
    font-size: 0.85rem;
}

.followup-tabs .nav-link.active {
    background: #7c3aed;
    color: #fff;
}

.followup-filter-card,
.followup-table-card,
.followup-chart-card {
    border: 1px solid #e8ecef;
    border-radius: var(--r, 12px);
}

.followup-requests-table thead {
    background: #f5f3ff;
}

.followup-row-overdue {
    background: #fffbfb;
}

.followup-subject-cell {
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.followup-badge-delayed {
    background: #fee2e2;
    color: #b91c1c;
    font-size: 0.7rem;
}