:root {
    --dt-primary: #ff6b00;
    --dt-primary-dark: #e85d00;
    --dt-sidebar: #141b24;
}

body {
    background: #f4f6f9;
    color: #2b3440;
}

/* ===== Layout admin (mobile-first) =====
   Mobile: sidebar é um drawer (offcanvas-lg). Desktop (>=lg): sidebar fixa. */
.dt-shell { display: flex; min-height: 100vh; }
.dt-main { flex: 1 1 auto; min-width: 0; width: 100%; display: flex; flex-direction: column; }
.dt-topbar { background: #fff; border-bottom: 1px solid #e6e9ee; position: sticky; top: 0; z-index: 1020; }
.dt-content { padding: 1rem; flex: 1; }

/* Aparência do drawer/sidebar */
.dt-sidebar { --bs-offcanvas-width: 264px; --bs-offcanvas-bg: var(--dt-sidebar); }
/* O Bootstrap força "background: transparent !important" no .offcanvas-lg a partir do
   breakpoint; reforçamos o fundo escuro (com !important) para o texto claro ficar legível. */
.dt-sidebar.offcanvas-lg { background: var(--dt-sidebar) !important; }
.dt-sidebar .offcanvas-header { background: var(--dt-sidebar); color: #fff; }
.dt-sidebar .offcanvas-body { background: var(--dt-sidebar); color: #c8d0da; }
.dt-sidebar a.nav-link, .dt-sidebar .brand { color: #c8d0da; text-decoration: none; border-radius: .5rem; }
.dt-sidebar a.nav-link:hover, .dt-sidebar a.nav-link.active { background: rgba(255,255,255,.08); color: #fff; }
.dt-sidebar a.nav-link .fa-fw { width: 1.4rem; }

@media (min-width: 992px) {
    .dt-sidebar { width: 264px; flex-shrink: 0; }
    .dt-content { padding: 1.5rem; }
}

/* Barra de impersonate (Login-As) fixa no topo da área principal. */
.dt-impersonate {
    position: sticky;
    top: 0;
    z-index: 1060;
    background: #b45309;            /* âmbar escuro, alto contraste */
    color: #fff;
    border-bottom: 1px solid rgba(0,0,0,.15);
}
.dt-impersonate strong { color: #ffe8c2; }

.btn-primary { background: var(--dt-primary); border-color: var(--dt-primary); }
.btn-primary:hover { background: var(--dt-primary-dark); border-color: var(--dt-primary-dark); }
.text-primary { color: var(--dt-primary) !important; }
.card { border: none; box-shadow: 0 1px 3px rgba(16,24,40,.08); border-radius: .75rem; }
.is-warning { border-color: #ffc107 !important; box-shadow: 0 0 0 .15rem rgba(255,193,7,.25); }

/* Badges de status do pedido */
.badge.status-criado { background:#6c757d; }
.badge.status-preparando { background:#0d6efd; }
.badge.status-pronto { background:#0dcaf0; color:#06303a; }
.badge.status-despachado { background:#6610f2; }
.badge.status-entregando { background:#fd7e14; }
.badge.status-entregue { background:#198754; }
.badge.status-cancelado { background:#dc3545; }
