/* ============================================
   Karigar — Tailor Work Management
   Clean Modern Theme v2.0
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

/* ---------- Design Tokens ---------- */
:root {
    /* Brand */
    --primary: #2563EB;
    --primary-hover: #1D4ED8;
    --primary-light: #3B82F6;
    --primary-50: #EFF6FF;
    --primary-100: #DBEAFE;
    --primary-200: #BFDBFE;
    --primary-900: #1E3A5F;

    /* Semantic */
    --success: #059669;
    --success-bg: #ECFDF5;
    --success-text: #065F46;
    --error: #DC2626;
    --error-bg: #FEF2F2;
    --error-text: #991B1B;
    --warning: #D97706;
    --warning-bg: #FFFBEB;
    --warning-text: #92400E;
    --info: #2563EB;
    --info-bg: #EFF6FF;
    --info-text: #1E40AF;

    /* Neutrals */
    --white: #FFFFFF;
    --gray-25: #FCFCFD;
    --gray-50: #F9FAFB;
    --gray-100: #F2F4F7;
    --gray-200: #EAECF0;
    --gray-300: #D0D5DD;
    --gray-400: #98A2B3;
    --gray-500: #667085;
    --gray-600: #475467;
    --gray-700: #344054;
    --gray-800: #1D2939;
    --gray-900: #101828;

    /* Surfaces */
    --bg: #F8FAFC;
    --surface: #FFFFFF;
    --surface-raised: #FFFFFF;

    /* Effects */
    --shadow-xs: 0 1px 2px rgba(16, 24, 40, .05);
    --shadow-sm: 0 1px 3px rgba(16, 24, 40, .1), 0 1px 2px rgba(16, 24, 40, .06);
    --shadow-md: 0 4px 8px -2px rgba(16, 24, 40, .1), 0 2px 4px -2px rgba(16, 24, 40, .06);
    --shadow-lg: 0 12px 16px -4px rgba(16, 24, 40, .08), 0 4px 6px -2px rgba(16, 24, 40, .03);
    --shadow-focus: 0 0 0 4px rgba(37, 99, 235, .12);

    /* Borders */
    --border: #EAECF0;
    --border-dark: #D0D5DD;

    /* Radius */
    --r-sm: 6px;
    --r-md: 8px;
    --r-lg: 12px;
    --r-xl: 16px;
    --r-full: 9999px;

    /* Typography */
    --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Layout */
    --header-h: 56px;
    --nav-h: 60px;
    --page-px: 16px;
    --max-w: 768px;

    /* Motion */
    --ease: cubic-bezier(.4, 0, .2, 1);
    --dur: .2s;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--gray-700);
    font-size: 14px;
    line-height: 1.5;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--dur) var(--ease);
}

a:hover {
    color: var(--primary-hover);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

table {
    border-collapse: collapse;
    width: 100%;
}

input,
select,
textarea,
button {
    font-family: inherit;
    font-size: inherit;
}

/* ---------- LOGIN ---------- */
.login-body {
    background: var(--gray-50);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 24px;
}

.login-container {
    width: 100%;
    max-width: 380px;
}

.login-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    padding: 40px 32px;
    box-shadow: var(--shadow-lg);
    animation: fadeUp .4s var(--ease);
}

.login-logo {
    text-align: center;
    margin-bottom: 32px;
}

.login-logo img {
    width: 56px;
    height: 56px;
    border-radius: var(--r-lg);
    margin: 0 auto 14px;
    object-fit: contain;
}

.login-logo h1 {
    font-size: 24px;
    font-weight: 800;
    color: var(--gray-900);
    letter-spacing: -.5px;
}

.login-subtitle {
    font-size: 14px;
    color: var(--gray-500);
    margin-top: 4px;
    font-weight: 400;
}

.login-form .form-group {
    margin-bottom: 14px;
}

.input-icon-wrap {
    position: relative;
}

.input-icon-wrap .material-icons-round {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    font-size: 20px;
    pointer-events: none;
    transition: color var(--dur) var(--ease);
}

.input-icon-wrap input {
    width: 100%;
    padding: 10px 14px 10px 42px;
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    background: var(--white);
    color: var(--gray-800);
    font-size: 14px;
    transition: all var(--dur) var(--ease);
    outline: none;
}

.input-icon-wrap input:focus {
    border-color: var(--primary);
    box-shadow: var(--shadow-focus);
}

.input-icon-wrap:has(input:focus) .material-icons-round {
    color: var(--primary);
}

/* ---------- BUTTONS ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 18px;
    border: 1px solid transparent;
    border-radius: var(--r-md);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all var(--dur) var(--ease);
    text-decoration: none;
    line-height: 1;
    white-space: nowrap;
}

.btn .material-icons-round {
    font-size: 18px;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-hover);
    color: #fff;
    box-shadow: var(--shadow-sm);
}

.btn-success {
    background: var(--success);
    color: #fff;
    border-color: var(--success);
}

.btn-success:hover {
    background: #047857;
    color: #fff;
}

.btn-warning {
    background: var(--warning);
    color: #fff;
    border-color: var(--warning);
}

.btn-warning:hover {
    background: #B45309;
    color: #fff;
}

.btn-danger {
    background: var(--error);
    color: #fff;
    border-color: var(--error);
}

.btn-danger:hover {
    background: #B91C1C;
    color: #fff;
}

.btn-outline {
    background: var(--white);
    border-color: var(--border);
    color: var(--gray-700);
}

.btn-outline:hover {
    background: var(--gray-50);
    border-color: var(--gray-300);
    color: var(--gray-800);
}

.btn-ghost {
    background: transparent;
    color: var(--gray-600);
    border: none;
    padding: 8px;
}

.btn-ghost:hover {
    background: var(--gray-100);
    color: var(--gray-800);
}

.btn-sm {
    padding: 8px 14px;
    font-size: 13px;
}

.btn-sm .material-icons-round {
    font-size: 16px;
}

.btn-full {
    width: 100%;
}

.btn-icon {
    width: 36px;
    height: 36px;
    padding: 0;
}

/* ---------- ALERTS ---------- */
.alert {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: var(--r-md);
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 16px;
    border: 1px solid transparent;
    animation: fadeDown .3s var(--ease);
}

.alert .material-icons-round {
    font-size: 18px;
    flex-shrink: 0;
}

.alert-success {
    background: var(--success-bg);
    color: var(--success-text);
    border-color: #A7F3D0;
}

.alert-error {
    background: var(--error-bg);
    color: var(--error-text);
    border-color: #FCA5A5;
}

.alert-warning {
    background: var(--warning-bg);
    color: var(--warning-text);
    border-color: #FCD34D;
}

.alert-info {
    background: var(--info-bg);
    color: var(--info-text);
    border-color: #93C5FD;
}

/* ---------- LAYOUT ---------- */
.app-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-h);
    background: var(--white);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    padding: 0 var(--page-px);
    z-index: 100;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-left img {
    width: 28px;
    height: 28px;
    border-radius: var(--r-sm);
    object-fit: contain;
}

.header-title {
    font-size: 17px;
    font-weight: 800;
    color: var(--gray-900);
    letter-spacing: -.3px;
}

.header-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 4px;
}

.page-content {
    padding: calc(var(--header-h) + 16px) var(--page-px) calc(var(--nav-h) + 24px);
    max-width: var(--max-w);
    margin: 0 auto;
    min-height: 100vh;
}

/* ---- Bottom Nav ---- */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--nav-h);
    background: var(--white);
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-around;
    z-index: 100;
    padding-bottom: env(safe-area-inset-bottom, 0);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 4px 10px;
    border-radius: var(--r-md);
    color: var(--gray-400);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .3px;
    text-transform: uppercase;
    transition: all var(--dur) var(--ease);
    text-decoration: none;
    min-width: 52px;
    position: relative;
}

.nav-item .material-icons-round {
    font-size: 22px;
}

.nav-item:hover {
    color: var(--gray-600);
}

.nav-item.active {
    color: var(--primary);
}

.nav-item.active::after {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: var(--primary);
    border-radius: 0 0 2px 2px;
}

/* ---------- PAGE HEADER ---------- */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.page-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--gray-900);
    letter-spacing: -.3px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-500);
    margin-bottom: 2px;
}

.back-link:hover {
    color: var(--primary);
}

.back-link .material-icons-round {
    font-size: 16px;
}

/* ---------- CARDS ---------- */
.card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 16px;
    margin-bottom: 12px;
    transition: box-shadow var(--dur) var(--ease);
}

.card:hover {
    box-shadow: var(--shadow-xs);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--gray-100);
}

.card-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--gray-900);
    text-transform: uppercase;
    letter-spacing: .3px;
}

/* ---- Stats Grid ---- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 16px;
}

.stat-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all var(--dur) var(--ease);
    animation: fadeUp .35s var(--ease) backwards;
}

.stat-card:nth-child(2) {
    animation-delay: .04s;
}

.stat-card:nth-child(3) {
    animation-delay: .08s;
}

.stat-card:nth-child(4) {
    animation-delay: .12s;
}

.stat-card:nth-child(5) {
    animation-delay: .16s;
}

.stat-card:nth-child(6) {
    animation-delay: .2s;
}

.stat-card:hover {
    border-color: var(--gray-300);
    box-shadow: var(--shadow-sm);
}

.stat-icon {
    width: 38px;
    height: 38px;
    border-radius: var(--r-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon .material-icons-round {
    font-size: 20px;
}

.stat-icon.blue {
    background: var(--primary-50);
    color: var(--primary);
}

.stat-icon.green {
    background: var(--success-bg);
    color: var(--success);
}

.stat-icon.amber {
    background: var(--warning-bg);
    color: var(--warning);
}

.stat-icon.red {
    background: var(--error-bg);
    color: var(--error);
}

.stat-icon.purple {
    background: #F5F3FF;
    color: #7C3AED;
}

.stat-icon.teal {
    background: #F0FDFA;
    color: #0D9488;
}

.stat-info {
    flex: 1;
    min-width: 0;
}

.stat-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: .5px;
}

.stat-value {
    font-size: 20px;
    font-weight: 800;
    color: var(--gray-900);
    letter-spacing: -.5px;
    line-height: 1.2;
    margin-top: 2px;
}

/* ---------- FORMS ---------- */
.form-group {
    margin-bottom: 14px;
}

.form-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-600);
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: .4px;
}

.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    background: var(--white);
    color: var(--gray-800);
    font-size: 14px;
    transition: all var(--dur) var(--ease);
    outline: none;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: var(--shadow-focus);
}

.form-control::placeholder {
    color: var(--gray-400);
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23667085' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}

textarea.form-control {
    resize: vertical;
    min-height: 72px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.form-actions {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

.form-hint {
    font-size: 12px;
    color: var(--gray-500);
    margin-top: 4px;
}

/* ---------- TABLES ---------- */
.table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    background: var(--white);
}

.data-table {
    font-size: 13px;
}

.data-table th {
    text-align: left;
    padding: 10px 14px;
    background: var(--gray-50);
    font-size: 11px;
    font-weight: 700;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: .5px;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.data-table td {
    padding: 11px 14px;
    border-bottom: 1px solid var(--gray-100);
    color: var(--gray-600);
    vertical-align: middle;
}

.data-table tr:last-child td {
    border-bottom: none;
}

.data-table tr:hover td {
    background: var(--gray-25);
}

.data-table .text-right {
    text-align: right;
}

.data-table .text-center {
    text-align: center;
}

.data-table .font-bold {
    font-weight: 700;
    color: var(--gray-900);
}

/* ---------- BADGES ---------- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: var(--r-full);
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

.badge-success {
    background: var(--success-bg);
    color: var(--success-text);
}

.badge-warning {
    background: var(--warning-bg);
    color: var(--warning-text);
}

.badge-error {
    background: var(--error-bg);
    color: var(--error-text);
}

.badge-info {
    background: var(--info-bg);
    color: var(--info-text);
}

/* ---------- LIST ITEMS ---------- */
.list-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    overflow: hidden;
    margin-bottom: 12px;
}

.list-item {
    display: flex;
    align-items: center;
    padding: 12px 14px;
    gap: 10px;
    border-bottom: 1px solid var(--gray-100);
    transition: background var(--dur) var(--ease);
    text-decoration: none;
    color: inherit;
}

.list-item:last-child {
    border-bottom: none;
}

.list-item:hover {
    background: var(--gray-25);
}

.list-item-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--r-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 16px;
    font-weight: 800;
}

.list-item-icon .material-icons-round {
    font-size: 20px;
    color: inherit;
}

.list-item-body {
    flex: 1;
    min-width: 0;
}

.list-item-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-900);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.list-item-sub {
    font-size: 12px;
    color: var(--gray-500);
    margin-top: 1px;
}

.list-item-right {
    text-align: right;
    flex-shrink: 0;
}

.list-item-amount {
    font-size: 14px;
    font-weight: 700;
    color: var(--gray-900);
}

.list-item-meta {
    font-size: 11px;
    color: var(--gray-400);
    margin-top: 1px;
}

/* ---------- EMPTY STATE ---------- */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--gray-400);
}

.empty-state .material-icons-round {
    font-size: 48px;
    margin-bottom: 10px;
    opacity: .4;
}

.empty-state h3 {
    font-size: 16px;
    color: var(--gray-600);
    margin-bottom: 4px;
    font-weight: 700;
}

.empty-state p {
    font-size: 13px;
    margin-bottom: 16px;
}

/* ---------- MODAL ---------- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .3);
    z-index: 200;
    display: none;
    align-items: flex-end;
    justify-content: center;
    animation: fadeIn .15s;
}

.modal-overlay.open {
    display: flex;
}

.modal-sheet {
    background: var(--white);
    border-radius: var(--r-xl) var(--r-xl) 0 0;
    width: 100%;
    max-width: 480px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 20px;
    animation: slideUp .25s var(--ease);
}

.modal-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 16px;
}

/* ---------- CONFIRM MODAL ---------- */
.confirm-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .4);
    z-index: 300;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.confirm-modal.open {
    display: flex;
}

.confirm-box {
    background: var(--white);
    border-radius: var(--r-lg);
    padding: 24px;
    max-width: 320px;
    width: 100%;
    text-align: center;
    animation: scaleIn .2s var(--ease);
}

.confirm-box .material-icons-round {
    font-size: 40px;
    color: var(--error);
    margin-bottom: 10px;
}

.confirm-box h3 {
    font-size: 16px;
    margin-bottom: 6px;
    color: var(--gray-900);
}

.confirm-box p {
    font-size: 13px;
    color: var(--gray-500);
    margin-bottom: 16px;
}

.confirm-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
}

/* ---------- SEARCH ---------- */
.search-wrap {
    position: relative;
    margin-bottom: 12px;
}

.search-wrap .material-icons-round {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    font-size: 18px;
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 10px 12px 10px 40px;
    border: 1px solid var(--border);
    border-radius: var(--r-full);
    background: var(--white);
    font-size: 14px;
    outline: none;
    transition: all var(--dur) var(--ease);
}

.search-input:focus {
    border-color: var(--primary);
    box-shadow: var(--shadow-focus);
}

/* ---------- FILTER BAR ---------- */
.filter-bar {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 2px;
    margin-bottom: 12px;
}

.filter-bar::-webkit-scrollbar {
    display: none;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    border-radius: var(--r-full);
    background: var(--white);
    border: 1px solid var(--border);
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-600);
    cursor: pointer;
    transition: all var(--dur) var(--ease);
    white-space: nowrap;
    text-decoration: none;
}

.filter-chip:hover,
.filter-chip.active {
    background: var(--primary-50);
    border-color: var(--primary-200);
    color: var(--primary);
}

/* ---------- TABS ---------- */
.tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 16px;
    overflow-x: auto;
}

.tab-item {
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-500);
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    cursor: pointer;
    transition: all var(--dur) var(--ease);
    white-space: nowrap;
    text-decoration: none;
}

.tab-item:hover {
    color: var(--gray-700);
}

.tab-item.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

/* ---------- ACTIVITY ---------- */
.activity-list {
    list-style: none;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-100);
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-dot {
    width: 8px;
    height: 8px;
    border-radius: var(--r-full);
    margin-top: 5px;
    flex-shrink: 0;
}

.activity-dot.assigned {
    background: var(--primary);
}

.activity-dot.returned {
    background: var(--success);
}

.activity-dot.paid {
    background: var(--warning);
}

.activity-text {
    font-size: 13px;
    color: var(--gray-600);
}

.activity-text strong {
    color: var(--gray-800);
    font-weight: 600;
}

.activity-time {
    font-size: 11px;
    color: var(--gray-400);
    margin-top: 2px;
}

/* ---- Quick Actions Grid ---- */
.quick-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.quick-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 10px;
    border-radius: var(--r-md);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--dur) var(--ease);
    border: 1px solid transparent;
}

.quick-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.quick-btn.q-primary {
    background: var(--primary-50);
    color: var(--primary);
    border-color: var(--primary-100);
}

.quick-btn.q-primary:hover {
    background: var(--primary-100);
}

.quick-btn.q-success {
    background: var(--success-bg);
    color: var(--success);
    border-color: #A7F3D0;
}

.quick-btn.q-success:hover {
    background: #D1FAE5;
}

.quick-btn.q-warning {
    background: var(--warning-bg);
    color: var(--warning);
    border-color: #FCD34D;
}

.quick-btn.q-warning:hover {
    background: #FEF3C7;
}

.quick-btn.q-outline {
    background: var(--white);
    color: var(--gray-600);
    border-color: var(--border);
}

.quick-btn.q-outline:hover {
    background: var(--gray-50);
}

.quick-btn .material-icons-round {
    font-size: 18px;
}

/* ---- Total Amount Display ---- */
.total-display {
    background: var(--primary-50);
    border: 1px solid var(--primary-100);
    border-radius: var(--r-md);
    padding: 14px;
    text-align: center;
    margin-bottom: 14px;
}

.total-label {
    font-size: 11px;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: .5px;
    font-weight: 600;
}

.total-value {
    font-size: 26px;
    font-weight: 800;
    color: var(--primary);
    margin-top: 2px;
    letter-spacing: -.5px;
}

/* ---------- ANIMATIONS ---------- */
@keyframes fadeIn {
    from {
        opacity: 0
    }

    to {
        opacity: 1
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(12px)
    }

    to {
        opacity: 1;
        transform: none
    }
}

@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateY(-8px)
    }

    to {
        opacity: 1;
        transform: none
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(24px)
    }

    to {
        opacity: 1;
        transform: none
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(.95)
    }

    to {
        opacity: 1;
        transform: none
    }
}

/* ---------- UTILITIES ---------- */
.text-success {
    color: var(--success) !important;
}

.text-error {
    color: var(--error) !important;
}

.text-warning {
    color: var(--warning) !important;
}

.text-muted {
    color: var(--gray-500) !important;
}

.text-right {
    text-align: right !important;
}

.text-center {
    text-align: center !important;
}

.font-bold {
    font-weight: 700 !important;
}

.mt-8 {
    margin-top: 8px;
}

.mt-16 {
    margin-top: 16px;
}

.mb-8 {
    margin-bottom: 8px;
}

.mb-16 {
    margin-bottom: 16px;
}

/* ---------- RESPONSIVE ---------- */
@media (min-width: 600px) {
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    :root {
        --page-px: 24px;
    }
}

@media (min-width: 900px) {
    .bottom-nav {
        top: 0;
        bottom: auto;
        left: 0;
        width: 200px;
        height: 100vh;
        flex-direction: column;
        justify-content: flex-start;
        padding: 72px 10px 20px;
        border-top: none;
        border-right: 1px solid var(--border);
        gap: 2px;
    }

    .nav-item {
        flex-direction: row;
        justify-content: flex-start;
        width: 100%;
        padding: 10px 14px;
        font-size: 13px;
        text-transform: none;
        letter-spacing: 0;
        min-width: unset;
    }

    .nav-item .material-icons-round {
        font-size: 20px;
    }

    .nav-item.active::after {
        top: 50%;
        left: 0;
        transform: translateY(-50%);
        width: 3px;
        height: 20px;
        border-radius: 0 3px 3px 0;
    }

    .page-content {
        margin-left: 200px;
        padding-bottom: 24px;
        max-width: 860px;
    }
}

@media print {

    .app-header,
    .bottom-nav {
        display: none;
    }

    .page-content {
        padding: 0;
        max-width: none;
        margin: 0;
    }

    .card {
        border: 1px solid #ddd;
    }
}