/* ============ ADMIN THEME ============ */
/* Nuansa terang, hijau-kopi, profesional */

:root {
    --bg-page: #f3f4f6;
    --bg-card: #ffffff;
    --bg-sidebar: #0f766e;
    --bg-sidebar-soft: #115e59;
    --primary: #22c55e;
    --primary-soft: #bbf7d0;
    --primary-dark: #15803d;
    --accent: #f97316;
    --border-soft: #e5e7eb;
    --text-main: #111827;
    --text-muted: #6b7280;
    --radius-lg: 14px;
    --radius-md: 10px;
    --shadow-soft: 0 12px 30px rgba(15, 23, 42, 0.12);
    --shadow-strong: 0 24px 70px rgba(15, 23, 42, 0.22);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg-page);
    color: var(--text-main);
}

/* ============ LAYOUT ============ */

.admin-layout {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    min-height: 100vh;
}

/* Sidebar */

.admin-sidebar {
    background: linear-gradient(180deg, #0f766e, #0f766e 45%, #115e59);
    color: #ecfdf5;
    padding: 18px 18px 24px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.admin-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-brand-logo {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: radial-gradient(circle at 30% 0, #fbbf24, #f97316);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 18px;
    box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.25);
}

.admin-brand-text {
    display: flex;
    flex-direction: column;
}

.admin-brand-title {
    font-size: 16px;
    font-weight: 600;
}

.admin-brand-sub {
    font-size: 11px;
    opacity: 0.8;
}

/* Sidebar menu */

.admin-nav {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 13px;
}

.admin-nav a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 999px;
    color: #ecfdf5;
    text-decoration: none;
    opacity: 0.9;
}

.admin-nav a:hover {
    background: rgba(15, 23, 42, 0.25);
    opacity: 1;
}

.admin-nav a.active {
    background: #ecfdf5;
    color: #0f766e;
}

.admin-nav a.is-disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.nav-icon {
    width: 22px;
    height: 22px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.14);
}

.admin-nav a.active .nav-icon {
    background: rgba(15, 118, 110, 0.12);
}

/* Sidebar footer */

.admin-sidebar-footer {
    margin-top: auto;
    font-size: 11px;
    opacity: 0.8;
}

/* Content area */

.admin-content-wrap {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Topbar */

.admin-topbar {
    height: 56px;
    padding: 12px 22px;
    background: #ffffff;
    border-bottom: 1px solid var(--border-soft);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.admin-page-title {
    font-size: 16px;
    font-weight: 600;
}

.admin-user-box {
    font-size: 13px;
    color: var(--text-muted);
}

.admin-user-box a {
    color: var(--accent);
    text-decoration: none;
    margin-left: 6px;
}

/* Main content */

.admin-main {
    padding: 20px 22px 28px;
}

/* Cards & tables */

.card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 18px 18px 14px;
    box-shadow: var(--shadow-soft);
    border: 1px solid #e5e7eb;
    margin-bottom: 18px;
    overflow-x: auto;
}

.enterprise-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) auto;
    gap: 18px;
    align-items: end;
    padding: 22px;
    margin-bottom: 18px;
    border-radius: 20px;
    background:
        linear-gradient(135deg, rgba(240, 253, 244, 0.96), rgba(255, 255, 255, 0.98) 52%, rgba(255, 247, 237, 0.96));
    border: 1px solid #d1fae5;
    box-shadow: var(--shadow-soft);
}

.enterprise-hero h1 {
    margin: 4px 0 6px;
    font-size: 25px;
    line-height: 1.15;
}

.enterprise-hero p {
    margin: 0;
    max-width: 720px;
    color: var(--text-muted);
    font-size: 13px;
}

.enterprise-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.stat-card {
    padding: 13px 14px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.07);
}

.stat-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #94a3b8;
}

.stat-value {
    margin-top: 5px;
    font-size: 22px;
    font-weight: 800;
}

.stat-sub {
    margin-top: 2px;
    font-size: 11px;
    color: var(--text-muted);
}

.table-card {
    overflow: hidden;
    padding: 0;
}

.table-card .card-header {
    padding: 18px 18px 10px;
}

.table-card .table {
    border-collapse: separate;
    border-spacing: 0;
}

.table-card .table th,
.table-card .table td {
    border-width: 0 0 1px 0;
    vertical-align: middle;
}

.table-card .table th {
    color: #475569;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.table-card .table tr:last-child td {
    border-bottom: 0;
}

.thumb {
    width: 54px;
    height: 42px;
    border-radius: 10px;
    object-fit: cover;
    background: #f1f5f9;
    border: 1px solid #e5e7eb;
}

.thumb-empty {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 11px;
}

.profile-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 16px;
}

.profile-card {
    padding: 18px;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.profile-title {
    margin: 0 0 6px;
    font-size: 18px;
    font-weight: 800;
}

.profile-meta {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.profile-row {
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr);
    gap: 10px;
    font-size: 13px;
}

.profile-row span {
    color: var(--text-muted);
}

.brand-preview {
    display: grid;
    place-items: center;
    min-height: 220px;
    border-radius: 16px;
    background: linear-gradient(135deg, #0f766e, #115e59);
    color: #ecfdf5;
    text-align: center;
    padding: 18px;
}

.brand-preview img {
    max-width: 130px;
    max-height: 130px;
    border-radius: 24px;
    object-fit: cover;
    background: #ffffff;
    padding: 6px;
}

.brand-preview strong {
    display: block;
    margin-top: 12px;
    font-size: 16px;
}

.card-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 10px;
}

.card-title {
    font-size: 16px;
    font-weight: 600;
}

.card-subtitle {
    font-size: 12px;
    color: var(--text-muted);
}

/* Dashboard grid */

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 14px;
}

.dashboard-card-link {
    display: block;
    text-decoration: none;
    color: var(--text-main);
    background: linear-gradient(135deg, #f0fdf4, #ecfeff);
    border-radius: var(--radius-lg);
    padding: 14px;
    border: 1px solid #bbf7d0;
    box-shadow: 0 10px 22px rgba(16, 185, 129, 0.12);
}

.dashboard-card-link h3 {
    margin: 0 0 6px;
    font-size: 14px;
    font-weight: 600;
}

.dashboard-card-link p {
    margin: 0;
    font-size: 12px;
    color: var(--text-muted);
}

/* ============ EXECUTIVE DASHBOARD ============ */

.dash-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: end;
    padding: 24px;
    margin-bottom: 16px;
    border-radius: 22px;
    color: #ecfdf5;
    background:
        linear-gradient(135deg, rgba(15, 118, 110, 0.96), rgba(20, 83, 45, 0.95)),
        radial-gradient(circle at 82% 12%, rgba(251, 191, 36, 0.22), transparent 30%);
    border: 1px solid rgba(16, 185, 129, 0.35);
    box-shadow: var(--shadow-soft);
}

.dash-hero .eyebrow {
    color: #bbf7d0;
}

.dash-hero h1 {
    margin: 5px 0 7px;
    font-size: 30px;
    line-height: 1.12;
}

.dash-hero p {
    margin: 0;
    max-width: 720px;
    color: rgba(236, 253, 245, 0.84);
    font-size: 13px;
}

.dash-hero-side {
    min-width: 160px;
    padding: 13px 15px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    text-align: right;
}

.dash-hero-side span,
.dash-hero-side strong {
    display: block;
}

.dash-hero-side span {
    font-size: 12px;
    color: rgba(236, 253, 245, 0.78);
}

.dash-hero-side strong {
    margin-top: 4px;
    font-size: 22px;
}

.dash-kpi-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(150px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.dash-kpi {
    min-height: 128px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 15px;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.dash-kpi.is-primary {
    color: #ecfdf5;
    background: linear-gradient(135deg, #0f766e, #16a34a);
    border-color: rgba(16, 185, 129, 0.4);
}

.dash-kpi.is-warning {
    background: linear-gradient(135deg, #fff7ed, #ffffff);
    border-color: #fed7aa;
}

.dash-kpi span {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #64748b;
}

.dash-kpi.is-primary span,
.dash-kpi.is-primary small {
    color: rgba(236, 253, 245, 0.82);
}

.dash-kpi strong {
    margin: 10px 0 4px;
    font-size: 25px;
    line-height: 1.05;
}

.dash-kpi small {
    color: var(--text-muted);
    font-size: 12px;
}

.dash-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.8fr);
    gap: 16px;
    margin-bottom: 16px;
}

.dash-panel {
    padding: 18px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: var(--shadow-soft);
}

.dash-panel-wide {
    min-width: 0;
}

.dash-panel-head {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 14px;
}

.dash-panel-head h2 {
    margin: 0 0 4px;
    font-size: 17px;
}

.dash-panel-head p {
    margin: 0;
    color: var(--text-muted);
    font-size: 12px;
}

.dash-panel-head > strong {
    white-space: nowrap;
    color: #0f766e;
}

.sales-chart {
    height: 250px;
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 12px;
    align-items: end;
    padding-top: 10px;
}

.sales-bar {
    min-width: 0;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto auto;
    gap: 6px;
    height: 100%;
    text-align: center;
}

.sales-bar-track {
    position: relative;
    display: flex;
    align-items: end;
    justify-content: center;
    min-height: 0;
    border-radius: 14px;
    background: #f1f5f9;
    overflow: hidden;
}

.sales-bar-track span {
    width: 100%;
    display: block;
    border-radius: inherit inherit 0 0;
    background: linear-gradient(180deg, #22c55e, #0f766e);
}

.sales-bar strong,
.sales-bar small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sales-bar strong {
    font-size: 11px;
}

.sales-bar small {
    color: var(--text-muted);
    font-size: 11px;
}

.status-stack,
.top-menu-list {
    display: grid;
    gap: 12px;
}

.status-row {
    display: grid;
    gap: 7px;
}

.status-row > div:first-child,
.top-menu-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
}

.status-row strong,
.top-menu-row b {
    font-size: 18px;
}

.mini-progress {
    grid-column: 1 / -1;
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: #e5e7eb;
}

.mini-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #22c55e, #14b8a6);
}

.hour-chart {
    height: 190px;
    display: grid;
    grid-template-columns: repeat(24, minmax(0, 1fr));
    gap: 4px;
    align-items: end;
    padding-top: 12px;
}

.hour-bar {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    gap: 5px;
}

.hour-bar span {
    width: 100%;
    min-height: 4px;
    border-radius: 999px 999px 0 0;
    background: linear-gradient(180deg, #f97316, #f59e0b);
}

.hour-bar small {
    min-height: 12px;
    color: var(--text-muted);
    font-size: 9px;
}

.top-menu-row {
    padding: 10px 0;
    border-bottom: 1px solid #e5e7eb;
}

.top-menu-row:last-child {
    border-bottom: 0;
}

.top-menu-row strong,
.top-menu-row span {
    display: block;
}

.top-menu-row strong {
    overflow-wrap: anywhere;
}

.top-menu-row span {
    margin-top: 2px;
    color: var(--text-muted);
    font-size: 12px;
}

.dash-empty {
    padding: 18px;
    border-radius: 14px;
    background: #f8fafc;
    color: var(--text-muted);
    text-align: center;
    font-size: 13px;
}

.recent-panel {
    margin-bottom: 18px;
}

.dash-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.recent-table-wrap {
    overflow-x: auto;
}

.recent-table td strong {
    white-space: nowrap;
}

.page-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    padding: 20px;
    margin-bottom: 18px;
    border-radius: 18px;
    background: linear-gradient(135deg, #f0fdf4, #ffffff 55%, #fff7ed);
    border: 1px solid #d1fae5;
    box-shadow: var(--shadow-soft);
}

.page-hero h1 {
    margin: 4px 0 6px;
    font-size: 24px;
    line-height: 1.2;
}

.page-hero p {
    margin: 0;
    max-width: 680px;
    color: var(--text-muted);
    font-size: 13px;
}

.eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #0f766e;
}

.flow-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 10px;
}

.flow-steps div {
    display: flex;
    gap: 10px;
    padding: 12px;
    border-radius: 12px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    font-size: 13px;
}

.flow-steps strong {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    background: #0f766e;
    color: #ecfdf5;
}

/* Table */

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    background: #ffffff;
}

.table th,
.table td {
    border: 1px solid #e5e7eb;
    padding: 8px 10px;
    text-align: left;
}

.table th {
    background: #f9fafb;
    font-weight: 600;
}

/* Buttons */

.btn,
button,
input[type="submit"] {
    border-radius: 999px;
    border: none;
    background: var(--primary);
    color: #ecfdf5;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 10px 20px rgba(34, 197, 94, 0.25);
}

.btn-secondary {
    background: #e5e7eb;
    color: #111827;
    box-shadow: none;
}

.btn:disabled,
button:disabled {
    cursor: not-allowed;
    background: #d1d5db;
    color: #6b7280;
    box-shadow: none;
}

.btn-small {
    padding: 5px 10px;
    font-size: 12px;
}

.btn + .btn {
    margin-left: 6px;
}

/* Forms */

.form-box {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 760px;
}

.form-box label {
    font-size: 13px;
    font-weight: 500;
}

.form-box input[type="text"],
.form-box input[type="number"],
.form-box input[type="file"],
.form-box input[type="password"],
.form-box select,
.form-box textarea {
    border-radius: var(--radius-md);
    border: 1px solid #d1d5db;
    padding: 9px 11px;
    font-size: 13px;
    width: 100%;
    background: #ffffff;
}

.form-box textarea {
    min-height: 80px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.form-section {
    padding: 14px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #ffffff;
}

.form-section + .form-section {
    margin-top: 12px;
}

.form-section-title {
    margin-bottom: 12px;
    font-size: 13px;
    font-weight: 800;
    color: #0f766e;
}

.success {
    background: #ecfdf5;
    border: 1px solid #bbf7d0;
    color: #166534;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 12px;
    margin-bottom: 12px;
}

.error {
    background: #fee2e2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 12px;
    margin-bottom: 12px;
}

/* Images preview */

.img-preview {
    margin-top: 6px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    padding: 4px;
    background: #f9fafb;
}

/* ============ LOGIN PAGE ============ */

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ecfccb, #fef3c7);
}

.login-box {
    width: 320px;
    background: #ffffff;
    padding: 22px 20px 18px;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    border: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.login-box h2 {
    margin: 0 0 6px;
    font-size: 18px;
    text-align: center;
}

.login-box p {
    margin: 0 0 8px;
    font-size: 12px;
    text-align: center;
    color: var(--text-muted);
}

.login-box input {
    border-radius: 999px;
    border: 1px solid #d1d5db;
    padding: 8px 12px;
    font-size: 13px;
}

.login-box button {
    margin-top: 6px;
    width: 100%;
}

.login-box .error {
    margin-bottom: 0;
}

/* ============ RESPONSIVE ============ */

@media (max-width: 900px) {
    .admin-layout {
        grid-template-columns: 70px minmax(0, 1fr);
    }

    .admin-brand-text,
    .admin-nav span.nav-label,
    .admin-sidebar-footer {
        display: none;
    }

    .admin-nav a {
        justify-content: center;
        border-radius: 16px;
    }

    .dash-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dash-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .admin-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .admin-sidebar {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 10px 14px;
    }

    .admin-nav {
        flex-direction: row;
    }

    .admin-sidebar-footer {
        display: none;
    }

    .admin-topbar {
        padding-inline: 14px;
    }

    .admin-main {
        padding-inline: 14px;
    }

    .page-hero {
        align-items: stretch;
        flex-direction: column;
        padding: 16px;
    }

    .dash-hero {
        grid-template-columns: 1fr;
        padding: 18px;
    }

    .dash-hero h1 {
        font-size: 24px;
    }

    .dash-hero-side {
        text-align: left;
    }

    .dash-kpi-grid {
        grid-template-columns: 1fr;
    }

    .dash-panel {
        padding: 15px;
    }

    .dash-panel-head {
        flex-direction: column;
    }

    .sales-chart {
        height: 220px;
        gap: 7px;
    }

    .sales-bar strong {
        font-size: 10px;
    }

    .hour-chart {
        gap: 3px;
        overflow-x: auto;
        min-width: 560px;
    }

    .ops-board {
        grid-template-columns: minmax(0, 1fr);
    }

    .ticket-item,
    .ticket-item-actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .ticket-serve-form .btn,
    .ticket-item-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

body.modal-form-page {
    background: #f8fafc;
}

.modal-form-wrap {
    padding: 16px;
}

.modal-form-card {
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.modal-form-card .card-header {
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e7eb;
}

.modal-form-card .form-box,
.modal-form-card .form {
    max-width: none;
}

.status-NEW {
    background: #fee2e2;
    color: #b91c1c;
}
.status-PROCESSING {
    background: #dbeafe;
    color: #1d4ed8;
}
.status-IN_PROGRESS {
    background: #dbeafe;
    color: #1d4ed8;
}
.status-DONE,
.status-ready {
    background: #dcfce7;
    color: #166534;
}
.status-SERVED {
    background: #fef3c7;
    color: #92400e;
}
.status-PAID {
    background: #dcfce7;
    color: #166534;
}
.status-CANCELLED {
    background: #e5e7eb;
    color: #4b5563;
}

.status {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
}
.status-active {
    background: rgba(16, 185, 129, 0.12);
    color: #059669;
}
.status-inactive {
    background: rgba(239, 68, 68, 0.12);
    color: #dc2626;
}

.role {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
}
.role-admin {
    background: rgba(59, 130, 246, 0.12);
    color: #1d4ed8;
}
.role-kasir {
    background: rgba(234, 179, 8, 0.12);
    color: #b45309;
}
.role-pelayanan {
    background: rgba(16, 185, 129, 0.12);
    color: #047857;
}
.role-kitchen {
    background: rgba(96, 165, 250, 0.12);
    color: #1d4ed8;
}

.text-muted {
    color: #9ca3af;
    font-size: 13px;
}

.text-mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 13px;
}

/* ============ FORM LAYOUT BARU (untuk .form di table_form & user_form) ============ */

.form {
    margin-top: 8px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px 14px;
    margin-bottom: 14px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 13px;
}

.form-group label {
    font-weight: 500;
    font-size: 13px;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group input[type="password"],
.form-group select,
.form-group textarea {
    border-radius: var(--radius-md);
    border: 1px solid #d1d5db;
    padding: 8px 10px;
    font-size: 13px;
    width: 100%;
    background: #ffffff;
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.25);
}

.form-hint {
    font-size: 11px;
    color: var(--text-muted);
}

/* Checkbox inline di dalam form-group */
.checkbox-inline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
}

/* Input readonly khusus QR token */
.input-readonly {
    background: #f9fafb;
    color: #6b7280;
    cursor: not-allowed;
}

/* Tombol simpan / batal di bagian bawah form */
.form-actions {
    display: flex;
    gap: 8px;
    margin-top: 6px;
}

/* ============ ALERT (untuk .alert .alert-danger) ============ */

.alert {
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 12px;
    margin: 10px 0 12px;
}

.alert-danger {
    background: #fee2e2;
    border: 1px solid #fecaca;
    color: #b91c1c;
}

/* (opsional) kalau mau .alert-success juga dipakai ke depan */
.alert-success {
    background: #ecfdf5;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.form-group textarea {
    min-height: 80px;
    resize: vertical;
}

/* ============ OPS BOARD ============ */

.empty-state {
    padding: 34px 24px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px dashed #cbd5e1;
    text-align: center;
    color: var(--text-muted);
}

.empty-state h2 {
    margin: 0 0 6px;
    color: var(--text-main);
    font-size: 18px;
}

.ops-board {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 14px;
}

.ops-ticket {
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-radius: 16px;
    padding: 14px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: var(--shadow-soft);
}

.ops-ticket.is-ready {
    border-color: #86efac;
    background: #f0fdf4;
}

.ops-ticket-head,
.ticket-item,
.ticket-item-main,
.ticket-item-actions {
    display: flex;
    align-items: center;
}

.ops-ticket-head {
    justify-content: space-between;
    gap: 12px;
}

.ticket-number {
    font-size: 15px;
    font-weight: 800;
}

.ticket-meta,
.ticket-note,
.ticket-progress small,
.ticket-item small {
    font-size: 12px;
    color: var(--text-muted);
}

.ticket-note {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px;
    border-radius: 12px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
}

.ticket-progress-bar {
    height: 8px;
    border-radius: 999px;
    overflow: hidden;
    background: #e5e7eb;
    margin-bottom: 5px;
}

.ticket-progress-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #22c55e, #14b8a6);
}

.ticket-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ticket-item {
    justify-content: space-between;
    gap: 10px;
    padding: 10px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
}

.ticket-item-main {
    align-items: flex-start;
    gap: 10px;
}

.ticket-item .qty {
    min-width: 34px;
    padding: 4px 7px;
    border-radius: 999px;
    background: #fef3c7;
    color: #92400e;
    font-size: 12px;
    font-weight: 800;
    text-align: center;
}

.ticket-item-main strong,
.ticket-item-main small {
    display: block;
}

.ticket-item-actions {
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.ticket-item-actions form,
.ticket-serve-form {
    margin: 0;
}

.ticket-serve-form {
    display: flex;
    justify-content: flex-end;
    padding-top: 4px;
}

/* ============ POS KASIR ============ */

.pos-hero {
    align-items: center;
}

.pos-layout {
    display: grid;
    grid-template-columns: minmax(300px, 380px) minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

.pos-queue,
.pos-checkout {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.pos-panel-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    padding: 16px;
    border-bottom: 1px solid #e5e7eb;
}

.pos-search,
.pos-payment-form input,
.pos-payment-form select {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 9px 11px;
    font-size: 13px;
    background: #ffffff;
}

.pos-search {
    border-radius: 999px;
}

.pos-order-list {
    display: flex;
    flex-direction: column;
    max-height: 640px;
    overflow: auto;
}

.pos-order-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    padding: 13px 16px;
    border-bottom: 1px solid #e5e7eb;
    color: var(--text-main);
    text-decoration: none;
}

.pos-order-card:hover,
.pos-order-card.is-active {
    background: #f0fdf4;
}

.pos-order-card.is-active {
    box-shadow: inset 4px 0 0 #22c55e;
}

.pos-order-card.is-filtered {
    display: none;
}

.pos-order-card strong,
.pos-order-card span,
.pos-order-card small,
.pos-item-row strong,
.pos-item-row span,
.pos-item-row small {
    display: block;
}

.pos-order-card span,
.pos-order-card small,
.pos-order-total small,
.pos-checkout-head p,
.pos-item-row span,
.pos-item-row small,
.pos-payment-form label,
.pos-total-box span,
.pos-change span {
    color: var(--text-muted);
    font-size: 12px;
}

.pos-order-total {
    text-align: right;
    white-space: nowrap;
}

.pos-checkout {
    padding: 18px;
}

.pos-checkout-head {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 14px;
}

.pos-checkout-head h2 {
    margin: 3px 0 3px;
    font-size: 22px;
}

.pos-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 14px;
}

.pos-item-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #f9fafb;
}

.pos-payment-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pos-payment-form label {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-weight: 700;
}

.pos-money-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.pos-total-box {
    display: grid;
    gap: 6px;
    padding: 12px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
}

.pos-total-box div,
.pos-received-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}

.pos-total-box .is-grand {
    padding-top: 8px;
    border-top: 1px dashed #cbd5e1;
    font-size: 18px;
}

.pos-total-box .is-grand strong {
    font-size: 22px;
    color: #0f766e;
}

.pos-received-row {
    align-items: stretch;
}

.pos-received-row label {
    flex: 1;
}

.pos-change {
    min-width: 190px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 10px 12px;
    border-radius: 14px;
    background: #ecfdf5;
    border: 1px solid #bbf7d0;
}

.pos-change strong {
    font-size: 20px;
    color: #166534;
}

.pos-change strong.is-short {
    color: #b91c1c;
}

.pos-note input {
    border-radius: 12px;
}

.pos-pay-button {
    justify-content: center;
    min-height: 42px;
}

.pos-empty {
    margin: 16px;
    box-shadow: none;
}

.pos-print-frame {
    position: fixed;
    right: 0;
    bottom: 0;
    width: 1px;
    height: 1px;
    border: 0;
    opacity: 0;
    pointer-events: none;
}

/* ============ MODAL ============ */

.modal-lock {
    overflow: hidden;
}

.admin-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
}

.admin-modal.is-open {
    display: block;
}

.admin-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(4px);
}

.admin-modal-panel {
    position: absolute;
    inset: 4vh 4vw;
    display: flex;
    flex-direction: column;
    max-width: 980px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    background: #f8fafc;
    border: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow: var(--shadow-strong);
}

.admin-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 15px 18px;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}

.admin-modal-kicker {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #0f766e;
}

.admin-modal-title {
    margin-top: 2px;
    font-size: 16px;
    font-weight: 800;
}

.admin-modal-close {
    width: 34px;
    height: 34px;
    padding: 0;
    justify-content: center;
    border-radius: 999px;
    background: #f1f5f9;
    color: #0f172a;
    box-shadow: none;
}

.admin-modal-frame {
    width: 100%;
    flex: 1;
    border: 0;
    background: #f8fafc;
}

@media (max-width: 760px) {
    .enterprise-hero {
        grid-template-columns: 1fr;
        padding: 18px;
    }

    .enterprise-actions {
        justify-content: flex-start;
    }

    .profile-panel {
        grid-template-columns: 1fr;
    }

    .profile-row {
        grid-template-columns: 1fr;
        gap: 3px;
    }

    .admin-modal-panel {
        inset: 2vh 10px;
        border-radius: 16px;
    }

    .admin-modal-head {
        padding: 12px 14px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .pos-layout {
        grid-template-columns: 1fr;
    }

    .pos-order-list {
        max-height: none;
    }

    .pos-money-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pos-received-row,
    .pos-checkout-head {
        flex-direction: column;
    }

    .pos-change {
        width: 100%;
        min-width: 0;
    }
}
