/* ============================================================
   Rania's Cake & Bakery v2.0 — Enhanced Stylesheet
   Palette: Warm Caramel · Dusty Rose · Cream · Espresso
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,600;0,700;1,600&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --caramel:       #C4813A;
    --caramel-dark:  #A06828;
    --caramel-light: #F0D5B0;
    --caramel-ultra: #FDF0DF;
    --rose:          #D4788A;
    --rose-dark:     #B5566C;
    --rose-light:    #F5D9DF;
    --rose-ultra:    #FDF0F3;
    --cream:         #FDF6EE;
    --cream-dark:    #F5EBDC;
    --espresso:      #1E1008;
    --espresso-mid:  #3D2212;
    --espresso-soft: #5C3D2A;
    --text-main:     #2C1A10;
    --text-muted:    #8B6B57;
    --text-light:    #B89A86;
    --white:         #FFFFFF;
    --green:         #2E7D52;
    --green-light:   #D4EDDA;
    --blue:          #2563EB;
    --blue-light:    #DBEAFE;
    --sidebar-w:     270px;
    --navbar-h:      64px;
    --radius:        14px;
    --radius-sm:     8px;
    --radius-lg:     20px;
    --shadow-sm:     0 2px 8px rgba(44,26,14,.07);
    --shadow-md:     0 4px 20px rgba(44,26,14,.11);
    --shadow-lg:     0 8px 40px rgba(44,26,14,.15);
    --shadow-glow:   0 0 0 3px rgba(196,129,58,.2);
    --transition:    .22s ease;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    background: var(--cream);
    color: var(--text-main);
    font-size: 14px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--caramel-light); border-radius: 99px; }

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar {
    position: fixed;
    top: 0; left: 0;
    width: var(--sidebar-w);
    height: 100vh;
    background: linear-gradient(180deg, var(--espresso) 0%, var(--espresso-mid) 100%);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    transition: transform var(--transition);
    overflow: hidden;
    box-shadow: 4px 0 24px rgba(0,0,0,.18);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 28px 22px 22px;
    border-bottom: 1px solid rgba(255,255,255,.08);
    text-decoration: none;
}

.brand-icon {
    width: 46px; height: 46px;
    background: linear-gradient(135deg, var(--caramel), #E09040);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 12px rgba(196,129,58,.4);
    flex-shrink: 0;
}

.brand-text { display: flex; flex-direction: column; }
.brand-name {
    font-family: 'Playfair Display', serif;
    font-size: 17px;
    font-weight: 700;
    color: var(--caramel-light);
    line-height: 1.2;
}
.brand-sub {
    font-size: 9.5px;
    color: rgba(255,255,255,.4);
    letter-spacing: .1em;
    text-transform: uppercase;
    margin-top: 2px;
}

/* Nav */
.sidebar-nav {
    flex: 1;
    padding: 18px 14px;
    overflow-y: auto;
    overflow-x: hidden;
}

.nav-section-label {
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(255,255,255,.3);
    padding: 0 10px;
    margin-bottom: 6px;
    margin-top: 8px;
}

.sidebar-nav .nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border-radius: 10px;
    color: rgba(255,255,255,.65);
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 500;
    transition: all var(--transition);
    margin-bottom: 3px;
    position: relative;
}

.sidebar-nav .nav-link i {
    font-size: 17px;
    flex-shrink: 0;
    opacity: .8;
    transition: opacity var(--transition);
}

.sidebar-nav .nav-link:hover {
    background: rgba(255,255,255,.08);
    color: var(--white);
}

.sidebar-nav .nav-link.active {
    background: linear-gradient(135deg, rgba(196,129,58,.35), rgba(196,129,58,.2));
    color: var(--caramel-light);
    border: 1px solid rgba(196,129,58,.3);
}
.sidebar-nav .nav-link.active i { opacity: 1; }

.sidebar-nav .nav-link.active::before {
    content: '';
    position: absolute;
    left: 0; top: 20%; bottom: 20%;
    width: 3px;
    background: var(--caramel);
    border-radius: 0 3px 3px 0;
}

/* Badge in nav */
.nav-badge {
    margin-left: auto;
    background: var(--rose);
    color: white;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 99px;
    letter-spacing: .02em;
}

/* Sidebar footer */
.sidebar-footer {
    padding: 16px 18px;
    border-top: 1px solid rgba(255,255,255,.08);
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-info { flex: 1; min-width: 0; }
.admin-avatar {
    width: 36px; height: 36px;
    background: linear-gradient(135deg, var(--caramel), #E09040);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: white;
    font-size: 16px;
    flex-shrink: 0;
}
.admin-name {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,.85);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.admin-role { font-size: 10.5px; color: rgba(255,255,255,.4); }

.btn-logout {
    width: 34px; height: 34px;
    background: rgba(255,255,255,.07);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,.5);
    text-decoration: none;
    font-size: 17px;
    transition: all var(--transition);
    flex-shrink: 0;
}
.btn-logout:hover { background: rgba(212,120,138,.25); color: var(--rose-light); }

/* Overlay mobile */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 999;
    backdrop-filter: blur(2px);
}

/* ============================================================
   MAIN WRAPPER
   ============================================================ */
.main-wrapper {
    margin-left: var(--sidebar-w);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: margin-left var(--transition);
}

/* Top Navbar */
.top-navbar {
    position: sticky;
    top: 0;
    height: var(--navbar-h);
    background: rgba(253,246,238,.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(196,129,58,.12);
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0 24px;
    z-index: 900;
    box-shadow: 0 2px 12px rgba(44,26,14,.06);
}

.btn-toggle-sidebar {
    background: none;
    border: none;
    font-size: 22px;
    color: var(--espresso-soft);
    cursor: pointer;
    padding: 4px;
    border-radius: 8px;
    display: none;
    transition: background var(--transition);
}
.btn-toggle-sidebar:hover { background: var(--cream-dark); }

.navbar-title {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--espresso-mid);
    flex: 1;
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.date-display {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12.5px;
    color: var(--text-muted);
    background: var(--cream-dark);
    padding: 7px 14px;
    border-radius: 99px;
    border: 1px solid rgba(196,129,58,.12);
}

/* Page content */
.page-content { padding: 28px 28px 48px; flex: 1; }

/* Page header */
.page-header {
    margin-bottom: 28px;
}
.page-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    font-weight: 700;
    color: var(--espresso-mid);
    line-height: 1.2;
}
.page-header p {
    color: var(--text-muted);
    font-size: 13.5px;
    margin-top: 4px;
}

/* ============================================================
   CARDS
   ============================================================ */
.card-custom {
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid rgba(196,129,58,.1);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: box-shadow var(--transition);
}

.card-custom:hover { box-shadow: var(--shadow-md); }

.card-header-custom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    border-bottom: 1px solid rgba(196,129,58,.1);
    background: rgba(253,246,238,.5);
}

.card-header-custom h5 {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--espresso-mid);
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0;
}

.card-header-custom h5 i { color: var(--caramel); font-size: 16px; }

.card-body-custom { padding: 22px; }

/* ── Stat Cards ── */
.stat-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 22px;
    display: flex;
    align-items: center;
    gap: 18px;
    box-shadow: var(--shadow-sm);
    border: 1px solid transparent;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 80px; height: 80px;
    border-radius: 0 0 0 80px;
    opacity: .06;
}

.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.card-caramel { border-color: rgba(196,129,58,.2); }
.card-caramel::before { background: var(--caramel); }
.card-rose    { border-color: rgba(212,120,138,.2); }
.card-rose::before { background: var(--rose); }
.card-green   { border-color: rgba(46,125,82,.2); }
.card-green::before { background: var(--green); }
.card-blue    { border-color: rgba(37,99,235,.2); }
.card-blue::before { background: var(--blue); }

.stat-icon {
    width: 54px; height: 54px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 23px;
    flex-shrink: 0;
}

.icon-caramel { background: var(--caramel-ultra); color: var(--caramel); }
.icon-rose    { background: var(--rose-ultra);    color: var(--rose); }
.icon-green   { background: var(--green-light);   color: var(--green); }
.icon-blue    { background: var(--blue-light);     color: var(--blue); }

.stat-info { flex: 1; min-width: 0; }
.stat-label { font-size: 11.5px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 4px; }
.stat-value { font-size: 22px; font-weight: 700; color: var(--text-main); line-height: 1.2; }
.stat-sub   { font-size: 11px; color: var(--text-light); margin-top: 2px; }

/* ============================================================
   FORMS & INPUTS
   ============================================================ */
.form-label-custom {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--espresso-soft);
    margin-bottom: 7px;
    letter-spacing: .01em;
}

.form-control-custom {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #E8D5C0;
    border-radius: 9px;
    font-size: 13.5px;
    color: var(--text-main);
    background: var(--cream);
    outline: none;
    transition: all var(--transition);
    font-family: 'Inter', sans-serif;
    -webkit-appearance: none;
}

.form-control-custom:focus {
    border-color: var(--caramel);
    background: white;
    box-shadow: var(--shadow-glow);
}

.form-control-custom::placeholder { color: var(--text-light); }

select.form-control-custom {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238B6B57' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 38px;
    cursor: pointer;
}

.input-group-custom {
    position: relative;
    display: flex;
    align-items: center;
}
.input-group-custom i {
    position: absolute;
    left: 14px;
    color: var(--text-muted);
    font-size: 16px;
    pointer-events: none;
}
.input-group-custom .form-control-custom { padding-left: 42px; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-caramel {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--caramel), var(--caramel-dark));
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition);
    box-shadow: 0 3px 10px rgba(196,129,58,.3);
    font-family: 'Inter', sans-serif;
}
.btn-caramel:hover {
    background: linear-gradient(135deg, #D08E47, var(--caramel));
    transform: translateY(-1px);
    box-shadow: 0 5px 16px rgba(196,129,58,.4);
    color: white;
}
.btn-caramel:active { transform: translateY(0); }

.btn-rose {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--rose), var(--rose-dark));
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition);
    box-shadow: 0 3px 10px rgba(212,120,138,.3);
    font-family: 'Inter', sans-serif;
}
.btn-rose:hover { transform: translateY(-1px); box-shadow: 0 5px 16px rgba(212,120,138,.4); color: white; }

.btn-outline-caramel {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    background: transparent;
    color: var(--caramel);
    border: 1.5px solid var(--caramel);
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition);
    font-family: 'Inter', sans-serif;
}
.btn-outline-caramel:hover {
    background: var(--caramel-ultra);
    color: var(--caramel-dark);
}

.btn-green {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #2E7D52, #1E5C3A);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition);
    box-shadow: 0 3px 10px rgba(46,125,82,.3);
    font-family: 'Inter', sans-serif;
}
.btn-green:hover { transform: translateY(-1px); box-shadow: 0 5px 16px rgba(46,125,82,.4); color: white; }

/* Action buttons */
.btn-action {
    width: 32px; height: 32px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all var(--transition);
}
.btn-edit   { background: var(--caramel-ultra); color: var(--caramel); }
.btn-edit:hover   { background: var(--caramel); color: white; }
.btn-delete { background: #FEE2E2; color: #DC2626; }
.btn-delete:hover { background: #DC2626; color: white; }

/* ============================================================
   TABLES
   ============================================================ */
.table-custom {
    width: 100%;
    border-collapse: collapse;
}

.table-custom thead tr {
    background: rgba(253,246,238,.8);
}

.table-custom th {
    padding: 13px 16px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--text-muted);
    border-bottom: 2px solid rgba(196,129,58,.12);
    white-space: nowrap;
}

.table-custom td {
    padding: 13px 16px;
    border-bottom: 1px solid rgba(196,129,58,.08);
    font-size: 13.5px;
    color: var(--text-main);
    vertical-align: middle;
}

.table-custom tbody tr { transition: background var(--transition); }
.table-custom tbody tr:hover { background: rgba(253,246,238,.5); }
.table-custom tbody tr:last-child td { border-bottom: none; }

.table-custom tfoot tr { background: rgba(240,213,176,.25); }
.table-custom tfoot td {
    border-top: 2px solid var(--caramel-light);
    font-weight: 700;
    font-size: 13.5px;
    color: var(--caramel-dark);
    padding: 14px 16px;
}

.total-row td { font-weight: 700; color: var(--caramel-dark) !important; }

/* ============================================================
   BADGES
   ============================================================ */
.badge-custom {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 99px;
    font-size: 11.5px;
    font-weight: 600;
}
.badge-caramel { background: var(--caramel-ultra); color: var(--caramel-dark); }
.badge-rose    { background: var(--rose-ultra); color: var(--rose-dark); }
.badge-green   { background: var(--green-light); color: var(--green); }
.badge-blue    { background: var(--blue-light); color: var(--blue); }

/* ============================================================
   ALERTS
   ============================================================ */
.alert-custom {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 16px;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 500;
    margin-bottom: 18px;
}
.alert-success-custom { background: #D1FAE5; color: #065F46; border: 1px solid #6EE7B7; }
.alert-error-custom   { background: #FEE2E2; color: #991B1B; border: 1px solid #FCA5A5; }
.alert-warning-custom { background: var(--caramel-ultra); color: var(--caramel-dark); border: 1px solid var(--caramel-light); }

/* ============================================================
   CHART
   ============================================================ */
.chart-container {
    position: relative;
    height: 260px;
}

/* ============================================================
   EMPTY STATE
   ============================================================ */
.empty-state {
    text-align: center;
    padding: 48px 20px;
    color: var(--text-muted);
}
.empty-icon { font-size: 44px; margin-bottom: 12px; opacity: .6; }
.empty-state p { font-size: 13.5px; }

/* ============================================================
   LOGIN PAGE
   ============================================================ */
.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--espresso) 0%, var(--espresso-mid) 50%, #6B3A20 100%);
    position: relative;
    overflow: hidden;
}

.login-wrapper::before {
    content: '';
    position: absolute;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(196,129,58,.15) 0%, transparent 70%);
    top: -100px; right: -100px;
    border-radius: 50%;
}

.login-wrapper::after {
    content: '';
    position: absolute;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(212,120,138,.1) 0%, transparent 70%);
    bottom: -80px; left: -80px;
    border-radius: 50%;
}

.login-card {
    background: white;
    border-radius: 24px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 24px 80px rgba(0,0,0,.3);
    overflow: hidden;
    position: relative;
    z-index: 1;
    margin: 20px;
}

.login-header {
    background: linear-gradient(135deg, var(--espresso) 0%, var(--espresso-mid) 100%);
    padding: 40px 36px 32px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.login-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 70% 30%, rgba(196,129,58,.2) 0%, transparent 60%);
}

.login-logo {
    font-size: 54px;
    margin-bottom: 14px;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,.3));
    position: relative;
    z-index: 1;
}

.login-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--caramel-light);
    margin-bottom: 6px;
    position: relative;
    z-index: 1;
}

.login-header p {
    font-size: 12px;
    color: rgba(255,255,255,.5);
    position: relative;
    z-index: 1;
}

.login-body { padding: 32px 36px; }
.login-body h2 {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 600;
    color: var(--espresso-mid);
    margin-bottom: 22px;
}

.btn-login {
    width: 100%;
    padding: 13px;
    background: linear-gradient(135deg, var(--caramel), var(--caramel-dark));
    color: white;
    border: none;
    border-radius: 11px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all var(--transition);
    box-shadow: 0 4px 16px rgba(196,129,58,.35);
    font-family: 'Inter', sans-serif;
}
.btn-login:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(196,129,58,.45); }
.btn-login:active { transform: translateY(0); }

.login-footer {
    text-align: center;
    padding: 18px 36px;
    background: var(--cream);
    font-size: 11.5px;
    color: var(--text-light);
    border-top: 1px solid rgba(196,129,58,.1);
}

/* ============================================================
   KALKULATOR KASIR
   ============================================================ */
.kasir-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(30,16,8,.6);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(4px);
    animation: fadeIn .2s ease;
}

.kasir-modal {
    background: white;
    border-radius: 22px;
    width: 100%;
    max-width: 860px;
    max-height: 92vh;
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(0,0,0,.3);
    display: flex;
    flex-direction: column;
    animation: slideUp .25s ease;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.kasir-header {
    background: linear-gradient(135deg, var(--espresso), var(--espresso-mid));
    padding: 20px 26px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.kasir-header h3 {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    color: var(--caramel-light);
    display: flex;
    align-items: center;
    gap: 10px;
}

.kasir-close {
    width: 34px; height: 34px;
    background: rgba(255,255,255,.1);
    border: none;
    border-radius: 8px;
    color: rgba(255,255,255,.7);
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}
.kasir-close:hover { background: rgba(212,120,138,.3); color: white; }

.kasir-body {
    display: grid;
    grid-template-columns: 1fr 340px;
    flex: 1;
    overflow: hidden;
    min-height: 0;
}

.kasir-products {
    padding: 20px;
    overflow-y: auto;
    border-right: 1px solid rgba(196,129,58,.1);
}

.kasir-search-wrap {
    position: relative;
    margin-bottom: 16px;
}
.kasir-search-wrap i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 15px;
}
.kasir-search {
    width: 100%;
    padding: 9px 14px 9px 38px;
    border: 1.5px solid #E8D5C0;
    border-radius: 9px;
    font-size: 13px;
    outline: none;
    font-family: 'Inter', sans-serif;
    transition: all var(--transition);
    background: var(--cream);
}
.kasir-search:focus { border-color: var(--caramel); box-shadow: var(--shadow-glow); background: white; }

.kasir-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
    gap: 10px;
}

.kasir-product-card {
    background: var(--cream);
    border: 1.5px solid rgba(196,129,58,.1);
    border-radius: 12px;
    padding: 14px 12px;
    cursor: pointer;
    transition: all var(--transition);
    text-align: center;
    user-select: none;
}

.kasir-product-card:hover {
    border-color: var(--caramel);
    background: var(--caramel-ultra);
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(196,129,58,.2);
}

.kasir-product-card:active { transform: translateY(0); }

.kasir-product-icon { font-size: 28px; margin-bottom: 8px; }
.kasir-product-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-main);
    line-height: 1.3;
    margin-bottom: 5px;
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.kasir-product-price {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--caramel);
}

/* Kasir cart */
.kasir-cart {
    display: flex;
    flex-direction: column;
    background: var(--cream);
    overflow: hidden;
}

.kasir-cart-title {
    padding: 16px 20px;
    font-size: 13px;
    font-weight: 700;
    color: var(--espresso-mid);
    border-bottom: 1px solid rgba(196,129,58,.1);
    background: white;
    display: flex;
    align-items: center;
    gap: 8px;
}

.kasir-cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    min-height: 0;
}

.kasir-cart-empty {
    text-align: center;
    padding: 40px 16px;
    color: var(--text-muted);
}
.kasir-cart-empty .empty-icon { font-size: 40px; opacity: .5; margin-bottom: 8px; }
.kasir-cart-empty p { font-size: 12.5px; }

.cart-item {
    background: white;
    border-radius: 10px;
    padding: 10px 12px;
    margin-bottom: 8px;
    border: 1px solid rgba(196,129,58,.1);
    transition: all var(--transition);
}

.cart-item:hover { border-color: rgba(196,129,58,.25); }

.cart-item-name {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-qty-controls {
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-qty {
    width: 26px; height: 26px;
    border-radius: 6px;
    border: 1.5px solid var(--caramel-light);
    background: white;
    color: var(--caramel);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: all var(--transition);
    font-family: 'Inter', sans-serif;
}
.btn-qty:hover { background: var(--caramel); color: white; border-color: var(--caramel); }

.cart-qty-num {
    min-width: 28px;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-main);
}

.cart-item-total {
    margin-left: auto;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--caramel-dark);
}

.btn-remove-item {
    background: none;
    border: none;
    color: #DC2626;
    font-size: 14px;
    cursor: pointer;
    padding: 2px;
    border-radius: 4px;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    opacity: .6;
}
.btn-remove-item:hover { opacity: 1; background: #FEE2E2; }

/* Kasir summary */
.kasir-summary {
    background: white;
    border-top: 1px solid rgba(196,129,58,.12);
    padding: 16px 20px;
    flex-shrink: 0;
}

.kasir-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 13px;
    color: var(--text-muted);
}

.kasir-grand-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: linear-gradient(135deg, var(--caramel-ultra), var(--cream));
    border-radius: 12px;
    border: 1.5px solid var(--caramel-light);
    margin-bottom: 12px;
}

.kasir-grand-total .label {
    font-size: 13px;
    font-weight: 700;
    color: var(--espresso-mid);
}

.kasir-grand-total .amount {
    font-size: 22px;
    font-weight: 700;
    color: var(--caramel-dark);
    font-family: 'Playfair Display', serif;
}

/* Bayar section */
.kasir-bayar-section { margin-bottom: 12px; }
.kasir-bayar-section label {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 6px;
    display: block;
}
.kasir-bayar-input {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #E8D5C0;
    border-radius: 9px;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
    background: white;
    outline: none;
    transition: all var(--transition);
    font-family: 'Inter', sans-serif;
    text-align: right;
}
.kasir-bayar-input:focus { border-color: var(--caramel); box-shadow: var(--shadow-glow); }

.kasir-kembalian {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: var(--green-light);
    border-radius: 9px;
    margin-bottom: 12px;
    border: 1px solid rgba(46,125,82,.2);
}
.kasir-kembalian .label { font-size: 12px; font-weight: 600; color: var(--green); }
.kasir-kembalian .amount { font-size: 16px; font-weight: 700; color: var(--green); }
.kasir-kembalian.kurang { background: #FEE2E2; border-color: rgba(220,38,38,.2); }
.kasir-kembalian.kurang .label,
.kasir-kembalian.kurang .amount { color: #DC2626; }

.btn-proses-bayar {
    width: 100%;
    padding: 13px;
    background: linear-gradient(135deg, var(--green), #1E5C3A);
    color: white;
    border: none;
    border-radius: 11px;
    font-size: 14.5px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all var(--transition);
    box-shadow: 0 4px 16px rgba(46,125,82,.3);
    font-family: 'Inter', sans-serif;
}
.btn-proses-bayar:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(46,125,82,.4); }
.btn-proses-bayar:disabled {
    opacity: .5;
    cursor: not-allowed;
    transform: none;
}

/* Struk sukses */
.kasir-sukses {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 30px;
    text-align: center;
    gap: 16px;
}
.kasir-sukses-icon {
    width: 80px; height: 80px;
    background: var(--green-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
    animation: popIn .3s cubic-bezier(.34,1.56,.64,1);
}
@keyframes popIn {
    from { transform: scale(0); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
.kasir-sukses h3 { font-family: 'Playfair Display', serif; font-size: 22px; color: var(--green); }
.kasir-sukses .struk {
    background: var(--cream);
    border-radius: 14px;
    padding: 20px 24px;
    width: 100%;
    max-width: 320px;
    text-align: left;
    border: 1.5px dashed var(--caramel-light);
    font-size: 12.5px;
}
.struk-row {
    display: flex;
    justify-content: space-between;
    padding: 3px 0;
    color: var(--text-muted);
}
.struk-row strong { color: var(--text-main); }
.struk-divider { border-top: 1px dashed var(--caramel-light); margin: 8px 0; }
.struk-total { font-size: 15px; font-weight: 700; color: var(--caramel-dark); }

/* ============================================================
   PDF BULANAN - Laporan
   ============================================================ */
.month-selector {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 22px;
    background: var(--cream-dark);
    border-radius: 12px;
    border: 1px solid rgba(196,129,58,.15);
    margin-bottom: 20px;
}
.month-selector label { font-size: 12.5px; font-weight: 600; color: var(--espresso-soft); min-width: fit-content; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.show { transform: translateX(0); }
    .sidebar-overlay.show { display: block; }
    .main-wrapper { margin-left: 0 !important; }
    .btn-toggle-sidebar { display: flex; }
    .page-content { padding: 20px 16px 40px; }
    .kasir-body { grid-template-columns: 1fr; }
    .kasir-cart { max-height: 340px; }
    .top-navbar { padding: 0 16px; }
    .navbar-title { font-size: 15px; }
    .date-display { display: none; }
}

@media (max-width: 991px) {
    .kasir-modal { max-width: 100%; border-radius: 20px 20px 0 0; align-self: flex-end; max-height: 90vh; }
}

/* ============================================================
   PRINT STYLES
   ============================================================ */
@media print {
    .sidebar, .top-navbar, .no-print { display: none !important; }
    .main-wrapper { margin-left: 0 !important; }
    .page-content { padding: 0 !important; }
    .print-header { display: block !important; }
    .card-custom { box-shadow: none !important; border: 1px solid #ddd !important; }
    body { background: white !important; }
}
