/* =============================================
   NEO CROP SOLUTIONS — Task Management
   Primary: #004000 (Deep Forest Green)
   Dark:    #002800 (Sidebar Brand)
   Accent:  #8BC34A (Lime Green)
   ============================================= */

:root {
    --brand-primary: #004000;
    --brand-dark: #002800;
    --brand-gold: #8BC34A;
    --brand-gold-hover: #7CB342;
    --brand-accent: #2E7D32;
    --body-bg: #F4F7F6;
    --sidebar-width: 250px;
}

/* ── Body ──────────────────────────────────── */
body {
    background-color: var(--body-bg);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* ── Sidebar ───────────────────────────────── */
.sidebar {
    width: var(--sidebar-width);
    min-height: 100vh;
    background: var(--brand-primary);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.sidebar-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px 16px;
    background: var(--brand-dark);
    text-decoration: none;
    border-bottom: 2px solid var(--brand-gold);
    text-align: center;
}

.sidebar-brand img {
    width: 160px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 0;
}

.sidebar-brand-text {
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.4px;
    line-height: 1.2;
}

.sidebar-nav {
    padding: 12px 0;
    flex: 1;
}

.sidebar-section-title {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
    padding: 8px 16px 4px;
    margin-top: 8px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: rgba(255,255,255,0.82);
    text-decoration: none;
    font-size: 14px;
    transition: background 0.15s, color 0.15s;
    border-left: 3px solid transparent;
}

.sidebar-link:hover {
    background: rgba(255,255,255,0.08);
    color: #fff;
    border-left-color: var(--brand-gold);
}

.sidebar-link.active {
    background: var(--brand-dark);
    color: var(--brand-gold);
    border-left-color: var(--brand-gold);
    font-weight: 600;
}

.sidebar-link i {
    width: 18px;
    text-align: center;
    font-size: 15px;
}

.sidebar-submenu-toggle {
    width: 100%;
    background: none;
    border: none;
    border-left: 3px solid transparent;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
}

.sidebar-submenu-toggle .sidebar-submenu-chevron {
    margin-left: auto;
    width: auto;
    font-size: 11px;
    opacity: 0.7;
    transition: transform 0.2s ease;
}

.sidebar-submenu.open > .sidebar-submenu-toggle .sidebar-submenu-chevron {
    transform: rotate(180deg);
}

.sidebar-submenu-items {
    display: none;
    padding-bottom: 4px;
}

.sidebar-submenu.open > .sidebar-submenu-items {
    display: block;
}

.sidebar-sublink {
    padding-left: 42px;
    font-size: 13px;
}

.sidebar-sublink i {
    font-size: 13px;
}

/* ── Topbar ────────────────────────────────── */
.topbar {
    height: 60px;
    background: var(--brand-primary);
    display: flex;
    align-items: center;
    padding: 0 20px;
    position: fixed;
    top: 0;
    left: var(--sidebar-width);
    right: 0;
    z-index: 999;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.topbar-title {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    flex: 1;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-right: 12px;
}

.sop-info-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: var(--brand-gold);
    font-size: 16px;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.sop-info-btn:hover,
.sop-info-btn:focus {
    background: rgba(255, 255, 255, 0.22);
    border-color: var(--brand-gold);
    color: #fff;
    outline: none;
}

.topbar-user {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255,255,255,0.9);
    font-size: 14px;
}

.topbar-settings-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.topbar-settings-btn:hover,
.topbar-settings-btn:focus,
.topbar-settings-btn.active {
    background: rgba(255, 255, 255, 0.22);
    border-color: var(--brand-gold);
    color: var(--brand-gold);
    outline: none;
}

.topbar-user .role-badge {
    background: var(--brand-gold);
    color: var(--brand-dark);
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    text-transform: uppercase;
}

/* ── Main Content ──────────────────────────── */
.main-content {
    margin-left: var(--sidebar-width);
    margin-top: 60px;
    padding: 24px;
    min-height: calc(100vh - 60px);
}

/* ── Page Header ───────────────────────────── */
.page-header {
    margin-bottom: 24px;
}

.page-header h1 {
    font-size: 22px;
    font-weight: 700;
    color: var(--brand-primary);
    margin: 0;
}

.page-header p {
    color: #666;
    margin: 4px 0 0;
    font-size: 14px;
}

/* ── Cards ─────────────────────────────────── */
.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.card-header {
    border-radius: 10px 10px 0 0 !important;
    font-weight: 600;
}

/* Stat Cards (Cashier Dashboard) */
.stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    border-radius: 12px;
    padding: 18px 14px;
    min-height: 116px;
    overflow: hidden;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
}

.stat-card-link {
    cursor: pointer;
}

a:hover > .stat-card-link {
    transform: translateY(-3px);
}

.stat-card-cash-in {
    background: linear-gradient(135deg, #28a745, #20c763);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.35);
}

.stat-card-cash-out {
    background: linear-gradient(135deg, #dc3545, #e85563);
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.35);
}

.stat-card-opening {
    background: linear-gradient(135deg, #fd7e14, #e8690b);
    box-shadow: 0 4px 15px rgba(253, 126, 20, 0.35);
}

.stat-card-closing {
    background: linear-gradient(135deg, #007bff, #0069d9);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.35);
}

/* Negative closing balance gets an alert treatment */
.stat-card-closing.stat-card-negative {
    background: linear-gradient(135deg, #b02a37, #7a1d26);
    box-shadow: 0 4px 15px rgba(176, 42, 55, 0.4);
}

.stat-card-icon {
    font-size: 20px;
    line-height: 1;
    opacity: 0.85;
    margin-bottom: 8px;
}

.stat-card-amount {
    font-size: clamp(18px, 2.2vw, 30px);
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1.15;
    max-width: 100%;
    word-break: break-word;
}

.stat-card-label {
    font-size: 12px;
    font-weight: 600;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 6px;
}

/* Status Circles */
.status-circle {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    font-weight: 700;
    box-shadow: 0 3px 12px rgba(0,0,0,0.2);
    cursor: pointer;
    transition: transform 0.15s;
}

.status-circle:hover { transform: scale(1.05); }

.status-circle-num {
    font-size: 24px;
    line-height: 1;
    max-width: 90%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.status-circle-label {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
    opacity: 0.9;
}

.circle-approved { background: #28a745; }
.circle-rejected { background: #dc3545; }
.circle-pending  { background: #007bff; }
.circle-resubmit { background: #fd7e14; }

/* ── Password show/hide toggle ─────────────── */
.password-field {
    position: relative;
}

.password-field .has-password-toggle {
    padding-right: 44px;
}

.password-toggle-btn {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 44px;
    padding: 0;
    border: none;
    background: transparent;
    color: #8a8a8a;
    font-size: 15px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0 0.375rem 0.375rem 0;
    cursor: pointer;
    transition: color 0.15s ease;
}

.password-toggle-btn:hover,
.password-toggle-btn:focus {
    color: var(--brand-primary);
    outline: none;
}

/* The toggle wraps the input in .password-field, which breaks Bootstrap's
   `.is-invalid ~ .invalid-feedback` sibling rule. Re-show the validation
   message when the wrapped input is invalid. */
.password-field:has(.is-invalid) ~ .invalid-feedback {
    display: block;
}

/* ── Buttons ───────────────────────────────── */
.btn.btn-brand {
    background-color: var(--brand-primary);
    border-color: var(--brand-primary);
    color: #fff;
    transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.btn.btn-brand:hover {
    background-color: var(--brand-dark);
    border-color: var(--brand-dark);
    color: var(--brand-gold);
}

.btn-gold {
    background: var(--brand-gold);
    color: var(--brand-dark);
    border: none;
    font-weight: 600;
    transition: background 0.15s;
}

.btn-gold:hover {
    background: var(--brand-gold-hover);
    color: var(--brand-dark);
}

/* ── Forms ─────────────────────────────────── */
.form-label {
    font-weight: 600;
    font-size: 13px;
    color: #444;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--brand-gold);
    box-shadow: 0 0 0 0.2rem rgba(201, 168, 76, 0.25);
}

.required > label::after {
    content: " *";
    color: #dc3545;
    font-weight: 700;
}

/* ── Tables ────────────────────────────────── */
.table th {
    background: var(--brand-primary);
    color: #fff;
    font-weight: 600;
    font-size: 13px;
    white-space: nowrap;
    border: none;
}

.table td {
    vertical-align: middle;
    font-size: 13px;
}

.table-striped > tbody > tr:nth-of-type(odd) {
    background-color: rgba(107, 27, 43, 0.04);
}

/* ── Calendar Header Card ───────────────────── */
.cal-header-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    background: var(--brand-primary);
    color: #fff;
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 0 4px 16px rgba(107,27,43,0.25);
}

.cal-header-card--compact {
    gap: 10px 16px;
}

.cal-header-stats {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
}

.cal-header-card--compact .cal-header-nav {
    flex: 1;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 6px;
}

.cal-header-card--compact .cal-legend-item {
    font-size: 11px;
    color: rgba(255,255,255,0.9);
}

.cal-header-card--compact .cal-stat-pill {
    padding: 4px 8px;
}

.cal-header-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.cal-header-icon {
    font-size: 28px;
    color: var(--brand-gold);
    opacity: 0.9;
}

.cal-header-title {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.3px;
    line-height: 1.1;
}

.cal-header-sub {
    font-size: 12px;
    color: rgba(255,255,255,0.65);
    margin-top: 2px;
}

.cal-header-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.cal-nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255,255,255,0.15);
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    transition: background 0.15s;
}

.cal-nav-btn:hover {
    background: rgba(255,255,255,0.28);
    color: #fff;
}

.cal-nav-select {
    height: 32px;
    font-size: 13px;
    background: rgba(255,255,255,0.15);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 8px;
    padding: 0 8px;
}

.cal-nav-select option { background: var(--brand-dark); color: #fff; }

.cal-nav-today-btn {
    display: inline-flex;
    align-items: center;
    padding: 0 12px;
    height: 32px;
    border-radius: 8px;
    background: var(--brand-gold);
    color: var(--brand-dark);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.15s;
}

.cal-nav-today-btn:hover {
    background: var(--brand-gold-hover);
    color: var(--brand-dark);
}

/* ── Calendar Summary Strip ─────────────────── */
.cal-summary-strip {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.cal-stat-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    min-width: 110px;
}

.cal-stat-pill > i {
    font-size: 16px;
    opacity: 0.8;
}

.cal-stat-body {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.cal-stat-num {
    font-size: 18px;
    font-weight: 800;
    line-height: 1;
}

.cal-stat-lbl {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    opacity: 0.8;
}

.cal-stat-empty    { background: #fde8eb; color: #8b1a2a; }
.cal-stat-uploaded { background: #fff3cd; color: #7a5a00; }
.cal-stat-published{ background: #d4f5e2; color: #1a6b3a; }

.cal-legend-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-left: auto;
    font-size: 11px;
    color: #555;
}

.cal-legend-item {
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.cal-legend-swatch {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 2px;
    border: 1px solid;
    flex-shrink: 0;
}

.cal-legend-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.cal-legend-sep {
    color: #ccc;
    font-size: 16px;
    line-height: 1;
}

/* ── Calendar Grid ──────────────────────────── */
.calendar-grid {
    width: 100%;
    border-collapse: collapse;
}

.calendar-grid th {
    background: var(--brand-primary);
    color: #fff;
    text-align: center;
    padding: 8px 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.calendar-grid td {
    width: calc(100% / 7);
    vertical-align: top;
    border: 1px solid #e8e0e0;
    padding: 0;
}

.cal-cell {
    min-height: 110px;
    height: 100%;
    padding: 6px 7px 5px;
    display: flex;
    flex-direction: column;
    background: #fff;
    transition: background 0.15s, box-shadow 0.15s;
    cursor: default;
}

.cal-cell:hover {
    box-shadow: inset 0 0 0 2px rgba(107,27,43,0.15);
    z-index: 1;
    position: relative;
}

.cal-cell.cal-empty-blank { background: #f8f6f6; }
.cal-cell.cal-empty       { background: #fafafa; }
.cal-cell.cal-today       { background: #fffbe8; box-shadow: inset 0 0 0 2px var(--brand-gold); }
.cal-cell.cal-published   { background: #edfaf3; }
.cal-cell.cal-uploaded    { background: #fffaed; }

.cal-day-num {
    font-size: 13px;
    font-weight: 700;
    color: var(--brand-primary);
    margin-bottom: 3px;
    line-height: 1;
}

.cal-cell.cal-today .cal-day-num {
    background: var(--brand-gold);
    color: #fff;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
}

.cal-cell.cal-empty-blank .cal-day-num { color: #ccc; }

.cal-icons {
    display: flex;
    gap: 3px;
    margin-top: auto;
    padding-top: 4px;
}

.cal-icon-btn {
    font-size: 12px;
    cursor: pointer;
    padding: 3px 5px;
    border-radius: 5px;
    transition: background 0.1s, transform 0.1s;
    text-decoration: none;
    border: none;
    background: transparent;
    line-height: 1;
}

.cal-icon-btn:hover {
    background: rgba(0,0,0,0.07);
    transform: scale(1.1);
}

/* Cash In / Out rows inside calendar cell */
.cal-amounts {
    margin: 3px 0 2px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cal-cash-row {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.3;
    padding: 1px 4px;
    border-radius: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cal-cash-in-row {
    background: rgba(40, 167, 69, 0.12);
    color: #1a6b2a;
}

.cal-cash-in-row i {
    color: #28a745;
    font-size: 8px;
}

.cal-cash-out-row {
    background: rgba(220, 53, 69, 0.10);
    color: #9e1f2e;
}

.cal-cash-out-row i {
    color: #dc3545;
    font-size: 8px;
}

/* Status dot badges */
.cal-status-dots {
    display: flex;
    gap: 3px;
    flex-wrap: wrap;
    margin: 2px 0 3px;
}

.cal-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    font-size: 9px;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.18);
}

.cal-dot-approved { background: #28a745; }
.cal-dot-rejected { background: #dc3545; }
.cal-dot-pending  { background: #2e7be5; }
.cal-dot-resubmit { background: #fd7e14; }

/* keep old badge classes for cashier calendar */
.cal-summary-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.badge-empty    { background: #f8d7da; color: #721c24; }
.badge-uploaded { background: #fff3cd; color: #856404; }
.badge-published{ background: #d4edda; color: #155724; }

/* ── Auth Pages ────────────────────────────── */
.auth-wrapper {
    min-height: 100vh;
    background: var(--brand-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 14px;
    padding: 36px 32px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.auth-logo {
    width: 200px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    margin-bottom: 12px;
}

.auth-title {
    color: var(--brand-primary);
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 4px;
}

.auth-subtitle {
    color: #888;
    font-size: 13px;
    margin-bottom: 24px;
}

/* ── Alert / Flash ─────────────────────────── */
.alert-flash {
    border-radius: 8px;
}

.alert-flash .alert-icon {
    margin-right: 0.5rem;
}

/* ── Toast notifications ───────────────────── */
.app-toast-container {
    max-width: 420px;
}

.app-toast {
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.app-toast .toast-body {
    font-size: 14px;
    font-weight: 500;
}

/* ── Transaction Status Badges ─────────────── */
.badge-status-pending      { background: #ffc107; color: #333; }
.badge-status-approved     { background: #28a745; }
.badge-status-rejected     { background: #dc3545; }
.badge-status-resubmit     { background: #fd7e14; }
.badge-status-bill_missing { background: #dc3545; }
.badge-status-okay         { background: #28a745; }

/* ── Audit Report ──────────────────────────── */
.report-header {
    background: var(--brand-primary);
    color: #fff;
    padding: 20px 24px;
    border-radius: 10px 10px 0 0;
    text-align: center;
}

.report-header h4 {
    margin: 0;
    font-weight: 800;
    font-size: 18px;
}

.audit-okay { color: #28a745; font-weight: 600; }
.audit-pending { color: #856404; font-weight: 600; }
.audit-missing { color: #dc3545; font-weight: 600; }

.balance-negative { color: #dc3545; font-weight: 600; }
.balance-positive { color: #28a745; font-weight: 600; }

/* ── Recurring Expenses Status ───────────── */
.status-bill-received,
.badge.status-bill-received {
    background-color: #ffc107 !important;
    color: #333 !important;
}

.status-bill-verified,
.badge.status-bill-verified {
    background-color: #0d6efd !important;
    color: #fff !important;
}

.status-bill-paid,
.badge.status-bill-paid {
    background-color: #28a745 !important;
    color: #fff !important;
}

.re-status-legend .badge {
    font-size: 11px;
    font-weight: 600;
}

/* ── Expense Calendar Grid ───────────────── */
.expense-calendar-grid th,
.expense-calendar-grid td {
    vertical-align: middle;
    font-size: 12px;
}

.expense-calendar-grid .exp-cal-row-header {
    min-width: 200px;
    max-width: 280px;
    white-space: nowrap;
    background: #f8f9fa;
    position: sticky;
    left: 0;
    z-index: 1;
}

.exp-cal-cell {
    min-width: 72px;
    padding: 8px 6px !important;
    font-weight: 600;
    transition: opacity 0.15s;
}

.exp-cal-cell:hover {
    opacity: 0.85;
}

.exp-cal-cell.status-bill-received {
    background-color: #fff3cd;
}

.exp-cal-cell.status-bill-verified {
    background-color: #cfe2ff;
    color: #084298;
}

.exp-cal-cell.status-bill-paid {
    background-color: #d1e7dd;
    color: #0f5132;
}

/* ── Settings Hub ─────────────────────────── */
.settings-hub-card {
    transition: box-shadow 0.2s, transform 0.2s;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.settings-hub-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.settings-hub-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--brand-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.settings-section-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--brand-primary);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--brand-gold);
}

.payroll-settings-action-btn {
    width: 34px;
    height: 34px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ── Company Letterhead ─────────────────────── */
.company-letterhead {
    width: 100%;
    margin-bottom: 8px;
}

.company-letterhead__table {
    width: 100%;
    border-collapse: collapse;
}

.company-letterhead__logo {
    width: 64px;
    vertical-align: top;
    padding: 0;
}

.company-letterhead__logo img {
    width: 54px;
    height: 54px;
    object-fit: contain;
    border-radius: 6px;
    display: block;
}

.company-letterhead__body {
    vertical-align: top;
    padding: 0 0 0 14px;
}

.company-letterhead__name {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    line-height: 1.2;
}

.company-letterhead__line {
    font-size: 12px;
    color: #555;
    margin-top: 2px;
}

.company-letterhead__subtitle {
    font-size: 13px;
    font-weight: 600;
    margin-top: 6px;
    color: var(--brand-primary);
}

.company-letterhead__rule {
    border: none;
    border-top: 1px solid #444;
    margin: 8px 0 12px;
}

.btn-icon-only {
    width: 34px;
    height: 34px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.expense-detail-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.expense-detail-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    line-height: 1.35;
}

.expense-detail-row .detail-label {
    flex: 0 0 30%;
    max-width: 30%;
    color: #6c757d;
    font-weight: 600;
}

.expense-detail-row .detail-value {
    flex: 0 0 70%;
    max-width: 70%;
}

/* ── Monthly Expenses Print ────────────────── */
@media print {
    .sidebar,
    .topbar,
    .no-print,
    .alert-flash,
    .app-toast-container {
        display: none !important;
    }

    .main-content {
        margin: 0 !important;
        padding: 0 !important;
    }

    .monthly-expenses-print {
        border: none !important;
        box-shadow: none !important;
    }

    .monthly-expenses-print .table {
        font-size: 11px;
    }

    .expense-calendar-print {
        border: none !important;
        box-shadow: none !important;
    }

    .expense-calendar-print .table {
        font-size: 10px;
    }

    .exp-cal-cell {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

/* ── File Preview ──────────────────────────── */
.file-preview__toolbar {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding-bottom: 0.5rem;
}

.file-preview__new-tab {
    white-space: nowrap;
}

.file-preview__media {
    background: #f8f9fa;
    border-radius: 0.375rem;
}

.file-preview__image-link,
.file-preview__iframe {
    width: 100%;
}

.file-preview__image {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.file-preview__iframe {
    display: block;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: #f8f9fa;
}

.file-preview--compact .file-preview__iframe {
    height: 280px;
    min-height: 280px;
}

.file-preview--default .file-preview__iframe {
    height: 480px;
    min-height: 480px;
}

.file-preview--large .file-preview__iframe {
    height: min(80vh, 960px);
    min-height: 520px;
}

.file-attachments-card .card-body {
    padding-bottom: 1.25rem;
}

.file-attachments-card .file-preview:last-child {
    margin-bottom: 0 !important;
}

.detail-view-split {
    display: flex;
    flex-wrap: wrap;
    margin-left: calc(var(--bs-gutter-x, 1rem) * -0.5);
    margin-right: calc(var(--bs-gutter-x, 1rem) * -0.5);
}

.detail-view-split > .detail-view-split__left,
.detail-view-split > .detail-view-split__right {
    padding-left: calc(var(--bs-gutter-x, 1rem) * 0.5);
    padding-right: calc(var(--bs-gutter-x, 1rem) * 0.5);
    margin-bottom: var(--bs-gutter-y, 1rem);
}

.detail-view-split__left {
    flex: 0 0 30%;
    max-width: 30%;
}

.detail-view-split__right {
    flex: 0 0 70%;
    max-width: 70%;
}

@media (max-width: 991.98px) {
    .detail-view-split__left,
    .detail-view-split__right {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* ── Mobile Responsive ─────────────────────── */
.sidebar-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    margin-right: 12px;
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .topbar {
        left: 0;
    }

    .main-content {
        margin-left: 0;
    }

    .sidebar-toggle {
        display: block;
    }

    .status-circle {
        width: 72px;
        height: 72px;
    }

    .status-circle-num {
        font-size: 20px;
    }

    .cal-header-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .cal-header-nav {
        flex-wrap: wrap;
    }

    .cal-legend-group {
        margin-left: 0;
    }

    .cal-cell {
        min-height: 80px;
    }

    .cal-amounts { display: none; }

    .calendar-grid th {
        font-size: 9px;
        padding: 6px 2px;
    }

    .stat-card-amount {
        font-size: clamp(15px, 4.6vw, 22px);
    }

    .stat-card {
        min-height: 104px;
        padding: 14px 10px;
    }

    .stat-card-icon {
        font-size: 18px;
        margin-bottom: 6px;
    }
}

/* Date range picker — brand theme */
.daterangepicker td.active,
.daterangepicker td.active:hover {
    background-color: var(--brand-primary);
    border-color: var(--brand-primary);
}

.daterangepicker td.in-range {
    background-color: rgba(107, 27, 43, 0.12);
    color: #333;
}

.daterangepicker .ranges li.active {
    background-color: var(--brand-primary);
}

.daterangepicker .drp-buttons .btn-primary {
    background-color: var(--brand-primary);
    border-color: var(--brand-primary);
}

/* Filter toolbar — single-line layout */
.filter-toolbar-card .card-body {
    padding: 8px 12px;
    overflow-x: auto;
}

.filter-toolbar {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    min-width: min-content;
}

.filter-toolbar .form-select,
.filter-toolbar .date-range-filter,
.filter-toolbar .date-range-filter input.date-range-picker {
    flex-shrink: 0;
}

.filter-toolbar-actions {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 4px;
    margin-left: auto;
    flex-shrink: 0;
}

.filter-toolbar .btn-export-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
}

.filter-toolbar .btn-export-icon .btn-label {
    display: none !important;
}

.filter-toolbar-secondary {
    padding: 6px 12px 8px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    overflow-x: auto;
}

/* Calendar header — single row */
.cal-header-card--compact {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 10px 14px;
}

.cal-header-card--compact .cal-header-stats {
    flex-shrink: 0;
}

.cal-header-card--compact .cal-header-nav {
    flex: 1;
    flex-wrap: nowrap;
    justify-content: flex-end;
    overflow-x: auto;
    min-width: 0;
}

.cal-header-card--compact .cal-legend-item {
    white-space: nowrap;
}

/* Clickable table rows */
.table-row-clickable tbody tr[data-href] {
    cursor: pointer;
}

.table-row-clickable tbody tr[data-href]:hover {
    background-color: rgba(0, 64, 0, 0.04);
}

/* ── SOP modal content ─────────────────────── */
.sop-content {
    font-size: 14px;
    line-height: 1.6;
    color: #333;
}

.sop-content h2,
.sop-content h3,
.sop-content h4 {
    color: var(--brand-primary);
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.sop-content h2 { font-size: 1.25rem; }
.sop-content h3 { font-size: 1.1rem; }
.sop-content h4 { font-size: 1rem; }

.sop-content ul,
.sop-content ol {
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
}

.sop-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 0.75rem;
}

.sop-content table th,
.sop-content table td {
    border: 1px solid #dee2e6;
    padding: 0.4rem 0.6rem;
}

.sop-content table th {
    background: #f8f9fa;
}

.sop-content a {
    color: var(--brand-primary);
}

.sop-section-title {
    color: var(--brand-primary);
    font-weight: 600;
}

.sop-section:last-child {
    border-bottom: none !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* ── Employee Form (full-width structured) ── */
.employee-form-page,
.standard-form-page {
    width: 100%;
    max-width: 100%;
}

.employee-form-page > .card,
.standard-form-page > .card {
    width: 100%;
}

.emp-form-section {
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #e8e0db;
}

.emp-form-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.emp-form-section-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--brand-primary);
    margin: 0 0 0.25rem;
    display: flex;
    align-items: center;
}

.emp-form-section-hint {
    color: #7a6f68;
    font-size: 0.875rem;
    margin: 0 0 1rem;
}

.emp-subsection {
    background: #faf7f5;
    border: 1px solid #eee6e0;
    border-radius: 8px;
    padding: 1rem 1.15rem;
    margin-bottom: 1rem;
}

.emp-subsection-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--brand-dark);
    margin: 0 0 0.85rem;
    letter-spacing: 0.01em;
}

.emp-inline-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #6c5f57;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.emp-photo-upload {
    text-align: center;
}

.emp-photo-preview {
    width: 140px;
    height: 140px;
    margin: 0 auto 0.75rem;
    border-radius: 12px;
    overflow: hidden;
    border: 2px dashed #d4c4ba;
    background: #f8f3ef;
    display: flex;
    align-items: center;
    justify-content: center;
}

.emp-photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.emp-photo-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    color: #9a8b82;
    font-size: 0.8rem;
}

.emp-photo-placeholder i {
    font-size: 1.75rem;
}

.emp-advanced-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: transparent;
    border: none;
    padding: 0;
    color: var(--brand-primary);
    font-size: 1.05rem;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
}

.emp-advanced-toggle:hover {
    color: var(--brand-dark);
}

.emp-advanced-toggle-label {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.emp-advanced-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--brand-dark);
    background: rgba(201, 168, 76, 0.25);
    border: 1px solid var(--brand-gold);
    border-radius: 4px;
    padding: 0.15rem 0.45rem;
}

.emp-advanced-chevron {
    transition: transform 0.2s ease;
    color: #9a8b82;
}

.emp-advanced-toggle:not(.collapsed) .emp-advanced-chevron {
    transform: rotate(180deg);
}

.emp-advanced-body {
    margin-top: 1.25rem;
}

.emp-form-actions .btn-brand {
    min-width: 140px;
}

.emp-view-photo {
    width: 96px;
    height: 96px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e0d5ce;
    background: #f8f3ef;
}

.emp-view-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.emp-view-photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9a8b82;
    font-size: 2rem;
}

.emp-education-text {
    white-space: pre-wrap;
    background: #faf7f5;
    border-radius: 6px;
    padding: 0.75rem 1rem;
    border: 1px solid #eee6e0;
}

/* ── Employee ledger / profile tooltips ─────── */
.tooltip-inner {
    background-color: var(--brand-dark);
    color: #fff;
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 6px;
}

.bs-tooltip-top .tooltip-arrow::before,
.bs-tooltip-auto[data-popper-placement^="top"] .tooltip-arrow::before {
    border-top-color: var(--brand-dark);
}

.bs-tooltip-bottom .tooltip-arrow::before,
.bs-tooltip-auto[data-popper-placement^="bottom"] .tooltip-arrow::before {
    border-bottom-color: var(--brand-dark);
}

.bs-tooltip-start .tooltip-arrow::before,
.bs-tooltip-auto[data-popper-placement^="left"] .tooltip-arrow::before {
    border-left-color: var(--brand-dark);
}

.bs-tooltip-end .tooltip-arrow::before,
.bs-tooltip-auto[data-popper-placement^="right"] .tooltip-arrow::before {
    border-right-color: var(--brand-dark);
}

.emp-view-actions .btn {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.emp-ledger-table .badge {
    font-size: 11px;
    font-weight: 600;
    padding: 0.35em 0.65em;
}

.emp-ledger-table tbody tr:hover {
    background-color: rgba(107, 27, 43, 0.07);
}

tr.payroll-txn-row {
    cursor: pointer;
}

tr.payroll-txn-row:hover {
    background-color: rgba(107, 27, 43, 0.07);
}

/* ── Payroll audit trail ────────────────────── */
.payroll-audit-trail {
    padding: 12px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.payroll-audit-entry {
    border: 1px solid rgba(107, 27, 43, 0.12);
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
}

.payroll-audit-entry-header {
    background: rgba(107, 27, 43, 0.04);
    border-bottom: 1px solid rgba(107, 27, 43, 0.08);
    padding: 10px 14px;
}

.payroll-audit-entry-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    font-size: 13px;
    color: #555;
}

.payroll-audit-entry-meta time {
    font-weight: 600;
    color: #333;
}

.payroll-audit-actor {
    color: #666;
}

.payroll-audit-actor i {
    margin-right: 4px;
    opacity: 0.7;
}

.payroll-audit-empty {
    padding: 12px 14px;
}

.payroll-audit-snapshot {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0;
    margin: 0;
    padding: 4px 0;
}

.payroll-audit-snapshot-row {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 14px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.payroll-audit-snapshot-row dt {
    margin: 0;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #888;
}

.payroll-audit-snapshot-row dd {
    margin: 0;
    font-size: 14px;
    color: #222;
    word-break: break-word;
}

.payroll-audit-diff {
    margin: 0;
}

.payroll-audit-diff thead th {
    background: transparent;
    color: #888;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    border-bottom-color: rgba(0, 0, 0, 0.08);
    padding: 8px 14px;
}

.payroll-audit-diff td {
    padding: 8px 14px;
    vertical-align: top;
    border-color: rgba(0, 0, 0, 0.05);
    font-size: 13px;
}

.payroll-audit-label {
    font-weight: 600;
    color: #444;
    white-space: nowrap;
    width: 28%;
}

.payroll-audit-old {
    color: #a94442;
    text-decoration: line-through;
    text-decoration-thickness: 1px;
    opacity: 0.85;
}

.payroll-audit-new {
    color: #1e7e34;
    font-weight: 600;
}

#emp-attachments-table td {
    vertical-align: middle;
}

@media (max-width: 767.98px) {
    .emp-photo-preview {
        width: 120px;
        height: 120px;
    }

    .emp-form-actions {
        flex-direction: column;
    }

    .emp-form-actions .btn {
        width: 100%;
    }
}

/* ── Employee transaction form ──────────────── */
.emp-txn-page {
    width: 100%;
    max-width: 100%;
}

.emp-txn-page > .card {
    width: 100%;
}

.emp-txn-form-compact .mb-3 {
    margin-bottom: 0.75rem !important;
}

.emp-txn-form-compact .form-label {
    margin-bottom: 0.2rem;
    font-size: 0.8125rem;
}

.emp-txn-choice-grid {
    display: grid;
    gap: 0.5rem;
}

.emp-txn-type-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 991.98px) {
    .emp-txn-type-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .emp-txn-type-grid {
        grid-template-columns: 1fr;
    }
}

.emp-txn-choice-card {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    width: 100%;
    padding: 0.55rem 0.75rem;
    border: 2px solid #e8e0db;
    border-radius: 0.5rem;
    background: #fff;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    position: relative;
}

.emp-txn-choice-card-compact {
    min-height: 2.75rem;
}

.emp-txn-choice-card:hover {
    border-color: rgba(107, 27, 43, 0.35);
}

.emp-txn-choice-card.is-active {
    border-color: var(--brand-primary);
    background: rgba(107, 27, 43, 0.04);
}

.emp-txn-choice-card:focus-visible {
    outline: 2px solid var(--brand-gold);
    outline-offset: 2px;
}

.emp-txn-choice-icon {
    flex: 0 0 1.75rem;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 0.4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(107, 27, 43, 0.08);
    color: var(--brand-primary);
    font-size: 0.85rem;
}

.emp-txn-choice-card.is-active .emp-txn-choice-icon {
    background: var(--brand-primary);
    color: #fff;
}

.emp-txn-choice-title {
    font-weight: 700;
    color: #2c1810;
    font-size: 0.9rem;
    line-height: 1.2;
    flex: 1;
}

.emp-txn-choice-badge {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.15rem 0.4rem;
    border-radius: 999px;
    white-space: nowrap;
}

.emp-txn-badge-credit {
    background: rgba(40, 167, 69, 0.12);
    color: #1e7e34;
}

.emp-txn-badge-debit {
    background: rgba(220, 53, 69, 0.12);
    color: #b02a37;
}

.emp-txn-badge-salary {
    background: rgba(13, 110, 253, 0.12);
    color: #0a58ca;
}

.emp-txn-inline-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #7a6f68;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.emp-txn-amount-box {
    background: rgba(107, 27, 43, 0.04);
    border: 1px solid rgba(107, 27, 43, 0.12);
}

.emp-txn-freq-toggle .btn {
    min-width: 6.5rem;
}

.emp-txn-freq-toggle .btn-check:checked + .btn-outline-secondary {
    background: var(--brand-primary);
    border-color: var(--brand-primary);
    color: #fff;
}

.emp-txn-emi-preview {
    padding: 0.45rem 0.65rem;
    border-radius: 0.4rem;
    background: #fff;
    border: 1px dashed rgba(107, 27, 43, 0.25);
    color: #5c4f48;
    font-size: 0.8125rem;
}

[data-bs-theme="dark"] .emp-txn-choice-card {
    background: var(--bs-body-bg);
    border-color: var(--bs-border-color);
}

[data-bs-theme="dark"] .emp-txn-choice-title {
    color: var(--bs-body-color);
}

[data-bs-theme="dark"] .emp-txn-amount-box,
[data-bs-theme="dark"] .emp-txn-emi-preview {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--bs-border-color);
}

@media (max-width: 767.98px) {
    .emp-txn-type-grid {
        grid-template-columns: 1fr;
    }

    .emp-txn-actions {
        flex-direction: column;
        margin-top: 0.5rem;
    }

    .emp-txn-actions .btn {
        width: 100%;
    }
}

/* ── Task Management ───────────────────────── */
.page-header-title {
    color: var(--brand-primary);
    font-weight: 800;
    font-size: 1.5rem;
}

.page-header-subtitle {
    font-size: 0.95rem;
}

.dashboard-stat-card {
    border: none;
    border-left: 4px solid var(--brand-gold);
    box-shadow: 0 2px 8px rgba(0, 64, 0, 0.08);
}

.dashboard-stat-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #666;
    margin-bottom: 4px;
}

.dashboard-stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--brand-primary);
}

.task-badge-pending {
    background: #fff3cd;
    color: #856404;
}

.task-badge-progress {
    background: rgba(46, 125, 50, 0.15);
    color: var(--brand-accent);
}

.task-badge-completed {
    background: rgba(139, 195, 74, 0.2);
    color: #33691e;
}

.task-badge-cancelled {
    background: #f8d7da;
    color: #842029;
}

.detail-field {
    background: #f8faf8;
    border: 1px solid rgba(0, 64, 0, 0.08);
    border-radius: 8px;
    padding: 12px 14px;
    height: 100%;
}

.detail-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: #666;
    margin-bottom: 4px;
}

.detail-value {
    display: block;
    font-size: 14px;
    color: #222;
    font-weight: 600;
}

.topbar-settings-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    margin-right: 8px;
}

.topbar-settings-btn:hover,
.topbar-settings-btn.active {
    background: rgba(255, 255, 255, 0.12);
    color: var(--brand-gold);
}

.page-toolbar {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 4px;
    overflow-x: auto;
    min-width: 0;
}

.page-toolbar-actions {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 4px;
    margin-left: auto;
    flex-shrink: 0;
}

.btn-icon-only {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    line-height: 1;
}

.btn-icon-only.btn-sm {
    width: 32px;
    height: 32px;
    font-size: 14px;
}

.card-header .header-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.form-actions-icon {
    display: flex;
    align-items: center;
    gap: 6px;
}

