/* Painel administrativo (/dashboard, /admin/*). Classes prefixadas com adm- para não colidir com o site público. */
/* Os modais são renderizados fora de .adm; por isso as variáveis também ficam no fundo do modal. */
.adm, .adm-modal-backdrop {
    --adm-bg: #f4f6fb;
    --adm-surface: #ffffff;
    --adm-surface-2: #f8fafc;
    --adm-border: #e2e8f0;
    --adm-text: #0f172a;
    --adm-muted: #64748b;
    --adm-primary: #6d28d9;
    --adm-primary-soft: #ede9fe;
    --adm-accent: #0891b2;
    --adm-success: #15803d;
    --adm-success-soft: #dcfce7;
    --adm-warning: #b45309;
    --adm-warning-soft: #fef3c7;
    --adm-danger: #b91c1c;
    --adm-danger-soft: #fee2e2;
    --adm-side: #0b1023;
}

.adm {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    min-height: 100vh;
    background: var(--adm-bg);
    color: var(--adm-text);
    font-family: "Roboto", system-ui, sans-serif;
    font-size: 14px;
    line-height: 1.5;
}

.adm *, .adm *::before, .adm *::after,
.adm-modal-backdrop *, .adm-modal-backdrop *::before, .adm-modal-backdrop *::after { box-sizing: border-box; }
.adm h1, .adm h2, .adm h3, .adm h4, .adm p,
.adm-modal-backdrop h2, .adm-modal-backdrop p { margin: 0; color: inherit; letter-spacing: normal; text-transform: none; }
.adm a { text-decoration: none; }
.adm button, .adm-modal-backdrop button { font: inherit; }

/* Menu lateral */
.adm-side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 24px; padding: 22px 16px; background: radial-gradient(circle at 0 0, rgba(124, 58, 237, .35), transparent 45%), var(--adm-side); color: #e2e8f0; overflow-y: auto; }
.adm-brand { display: flex; align-items: center; gap: 10px; padding: 0 8px; color: #fff; font-size: 18px; font-weight: 800; }
.adm-brand img { width: 34px; height: 34px; border-radius: 10px; background: #fff; object-fit: contain; }
.adm-brand small { display: block; color: #a5b4fc; font-size: 11px; font-weight: 700; letter-spacing: .12em; }
.adm-nav { display: flex; flex-direction: column; gap: 18px; }
.adm-nav-group > span { display: block; padding: 0 10px 6px; color: #94a3b8; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.adm-nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; color: #cbd5e1; font-weight: 600; transition: background .15s ease, color .15s ease; }
.adm-nav a i { width: 18px; text-align: center; color: #94a3b8; }
.adm-nav a:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.adm-nav a.active { background: linear-gradient(135deg, rgba(109, 40, 217, .9), rgba(8, 145, 178, .75)); color: #fff; }
.adm-nav a.active i { color: #fff; }
.adm-side-footer { margin-top: auto; padding: 12px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 12px; background: rgba(255, 255, 255, .05); }
.adm-side-footer > span { display: block; overflow: hidden; color: #e9d5ff; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.adm-side-footer button { width: 100%; margin-top: 10px; padding: 8px; border: 1px solid #475569; border-radius: 8px; background: #1e293b; color: #fff; font-weight: 700; cursor: pointer; }
.adm-side-footer button:hover { background: #334155; }
.adm-menu-toggle { display: none; }

/* Conteúdo */
.adm-main { min-width: 0; padding: 28px clamp(16px, 3vw, 40px) 48px; }
.adm-header { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.adm-eyebrow { display: block; margin-bottom: 4px; color: var(--adm-primary); font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.adm-header h1 { font-size: 28px; font-weight: 800; line-height: 1.2; }
.adm-header p { margin-top: 6px; max-width: 720px; color: var(--adm-muted); }
.adm-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.adm-card { padding: 20px; border: 1px solid var(--adm-border); border-radius: 14px; background: var(--adm-surface); box-shadow: 0 1px 2px rgba(15, 23, 42, .04); }
.adm-card + .adm-card { margin-top: 16px; }
.adm-card-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.adm-card-head h2 { font-size: 18px; font-weight: 800; }
.adm-card-head p { margin-top: 2px; color: var(--adm-muted); }
.adm-card.inactive { background: var(--adm-surface-2); }
.adm-card.inactive .adm-card-head h2 { color: var(--adm-muted); }

.adm-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin-bottom: 18px; }
.adm-stat { padding: 16px 18px; border: 1px solid var(--adm-border); border-radius: 14px; background: var(--adm-surface); }
.adm-stat span { display: block; color: var(--adm-muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.adm-stat strong { display: block; margin-top: 4px; font-size: 24px; font-weight: 800; }
.adm-stat small { color: var(--adm-muted); }

/* Botões */
.adm-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 36px; padding: 0 14px; border: 1px solid var(--adm-border); border-radius: 9px; background: var(--adm-surface); color: var(--adm-text); font-weight: 700; cursor: pointer; white-space: nowrap; transition: background .15s ease, border-color .15s ease; }
.adm-btn:hover:not(:disabled) { border-color: #cbd5e1; background: var(--adm-surface-2); }
.adm-btn:disabled { opacity: .55; cursor: not-allowed; }
.adm-btn:focus-visible, .adm-input:focus-visible, .adm-nav a:focus-visible { outline: 3px solid rgba(109, 40, 217, .35); outline-offset: 1px; }
.adm-btn.primary { border-color: transparent; background: linear-gradient(135deg, var(--adm-primary), var(--adm-accent)); color: #fff; }
.adm-btn.primary:hover:not(:disabled) { filter: brightness(1.06); background: linear-gradient(135deg, var(--adm-primary), var(--adm-accent)); }
.adm-btn.danger { border-color: #fecaca; color: var(--adm-danger); }
.adm-btn.danger:hover:not(:disabled) { background: var(--adm-danger-soft); }
.adm-btn.danger-solid { border-color: transparent; background: var(--adm-danger); color: #fff; }
.adm-btn.small { min-height: 30px; padding: 0 10px; font-size: 13px; }
.adm-btn.link { min-height: auto; padding: 0; border: 0; background: none; color: var(--adm-primary); }

/* Tags de status */
.adm-tag { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px; background: var(--adm-surface-2); color: var(--adm-muted); font-size: 12px; font-weight: 700; white-space: nowrap; }
.adm-tag.ok { background: var(--adm-success-soft); color: var(--adm-success); }
.adm-tag.off { background: #e2e8f0; color: #475569; }
.adm-tag.warn { background: var(--adm-warning-soft); color: var(--adm-warning); }
.adm-tag.info { background: var(--adm-primary-soft); color: var(--adm-primary); }
.adm-tag.danger { background: var(--adm-danger-soft); color: var(--adm-danger); }

/* Tabelas */
.adm-table-wrap { overflow-x: auto; border: 1px solid var(--adm-border); border-radius: 12px; }
.adm-table { width: 100%; min-width: 640px; border-collapse: collapse; background: var(--adm-surface); }
.adm-table th { padding: 10px 12px; border-bottom: 1px solid var(--adm-border); background: var(--adm-surface-2); color: var(--adm-muted); font-size: 12px; font-weight: 800; letter-spacing: .04em; text-align: left; text-transform: uppercase; white-space: nowrap; }
.adm-table td { padding: 12px; border-bottom: 1px solid var(--adm-border); vertical-align: middle; }
.adm-table tr:last-child td { border-bottom: 0; }
.adm-table tr.inactive td { color: var(--adm-muted); background: var(--adm-surface-2); }
.adm-table tbody tr.clickable { cursor: pointer; }
.adm-table tbody tr.clickable:hover td { background: #faf5ff; }
.adm-table .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.adm-table .row-actions { display: flex; justify-content: flex-end; gap: 6px; }
.adm-sub { display: block; color: var(--adm-muted); font-size: 12px; }
.adm-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.adm-chip { padding: 2px 8px; border-radius: 6px; background: #f1f5f9; color: #334155; font-size: 12px; font-weight: 600; white-space: nowrap; }

/* Filtros e formulários */
.adm-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 14px; }
.adm-toolbar .adm-search { flex: 1 1 260px; }
.adm-field { display: flex; flex-direction: column; gap: 6px; }
.adm-field label, .adm-label { color: #334155; font-size: 13px; font-weight: 700; }
.adm-field small { color: var(--adm-muted); font-size: 12px; }
.adm-input { width: 100%; min-height: 38px; padding: 8px 12px; border: 1px solid #cbd5e1; border-radius: 9px; background: #fff; color: var(--adm-text); }
.adm-input:focus { border-color: var(--adm-primary); outline: none; box-shadow: 0 0 0 3px rgba(109, 40, 217, .12); }
textarea.adm-input { min-height: 80px; resize: vertical; }
.adm-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.adm-grid .full { grid-column: 1 / -1; }
.adm-fieldset { margin: 4px 0 0; padding: 14px; border: 1px dashed #cbd5e1; border-radius: 12px; }
.adm-fieldset legend { float: none; width: auto; margin: 0; padding: 0 6px; color: var(--adm-muted); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.adm-check { display: flex; align-items: center; gap: 8px; color: var(--adm-text); font-weight: 600; cursor: pointer; }
.adm-check input { width: 16px; height: 16px; accent-color: var(--adm-primary); }
.adm-segment { display: inline-flex; padding: 3px; border: 1px solid var(--adm-border); border-radius: 10px; background: var(--adm-surface); }
.adm-segment button { padding: 6px 12px; border: 0; border-radius: 7px; background: transparent; color: var(--adm-muted); font-weight: 700; cursor: pointer; }
.adm-segment button.active { background: var(--adm-primary-soft); color: var(--adm-primary); }

/* Seleção de planos (combos e troca de contratação) */
.adm-picker { display: flex; flex-direction: column; gap: 10px; max-height: 340px; overflow-y: auto; padding-right: 4px; }
.adm-picker-group { padding: 10px 12px; border: 1px solid var(--adm-border); border-radius: 10px; }
.adm-picker-group > strong { display: block; margin-bottom: 6px; }
.adm-picker-options { display: flex; flex-wrap: wrap; gap: 6px; }
.adm-option { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid var(--adm-border); border-radius: 8px; background: var(--adm-surface); color: var(--adm-text); cursor: pointer; }
.adm-option.selected { border-color: var(--adm-primary); background: var(--adm-primary-soft); color: var(--adm-primary); font-weight: 700; }
.adm-option small { color: var(--adm-muted); }

/* Mensagens e estados */
.adm-alert { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 16px; padding: 12px 14px; border: 1px solid; border-radius: 10px; }
.adm-alert.error { border-color: #fecaca; background: #fef2f2; color: var(--adm-danger); }
.adm-alert.success { border-color: #bbf7d0; background: #f0fdf4; color: var(--adm-success); }
.adm-alert.info { border-color: #ddd6fe; background: #f5f3ff; color: #5b21b6; }
.adm-alert.warn { border-color: #fde68a; background: #fffbeb; color: var(--adm-warning); }
.adm-alert button { margin-left: auto; border: 0; background: none; color: inherit; cursor: pointer; }
.adm-state { display: grid; place-items: center; gap: 8px; min-height: 220px; padding: 32px; border: 1px dashed #cbd5e1; border-radius: 14px; background: var(--adm-surface); color: var(--adm-muted); text-align: center; }
.adm-state i { font-size: 28px; color: #94a3b8; }
.adm-skeleton { height: 64px; border-radius: 12px; background: linear-gradient(90deg, #eef2f7 25%, #f8fafc 37%, #eef2f7 63%); background-size: 400% 100%; animation: adm-shimmer 1.3s ease infinite; }
.adm-skeleton + .adm-skeleton { margin-top: 10px; }
@keyframes adm-shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* Detalhes chave/valor */
.adm-kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.adm-kv div span { display: block; color: var(--adm-muted); font-size: 12px; font-weight: 700; }
.adm-kv div strong { display: block; margin-top: 2px; overflow-wrap: anywhere; }
.adm-price-old { color: var(--adm-muted); text-decoration: line-through; font-size: 12px; }
.adm-pager { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; color: var(--adm-muted); }

/* Modal (sem diálogos nativos) */
.adm-modal-backdrop { position: fixed; inset: 0; z-index: 1050; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(15, 23, 42, .55); }
.adm-modal { display: flex; flex-direction: column; width: min(640px, 100%); max-height: calc(100vh - 32px); border-radius: 16px; background: var(--adm-surface); color: var(--adm-text); font-family: "Roboto", system-ui, sans-serif; font-size: 14px; line-height: 1.5; box-shadow: 0 24px 60px rgba(15, 23, 42, .35); }
.adm-modal.wide { width: min(860px, 100%); }
.adm-modal.narrow { width: min(460px, 100%); }
.adm-modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 18px 20px 12px; border-bottom: 1px solid var(--adm-border); }
.adm-modal-head h2 { font-size: 18px; font-weight: 800; }
.adm-modal-head p { margin-top: 2px; color: var(--adm-muted); }
.adm-modal-close { width: 32px; height: 32px; border: 0; border-radius: 8px; background: transparent; color: var(--adm-muted); cursor: pointer; }
.adm-modal-close:hover { background: var(--adm-surface-2); }
.adm-modal-body { padding: 18px 20px; overflow-y: auto; }
.adm-modal-foot { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; padding: 12px 20px 18px; border-top: 1px solid var(--adm-border); }

/* Dashboard SFU dentro do painel */
.adm-sfu { max-width: 900px; color: #e5e7eb; }
/* StatusPanel usa a classe genérica .panel; garante o fundo escuro dele dentro do painel claro. */
.adm .adm-sfu .panel { border-color: #334155; background: #111827; color: #e5e7eb; }
.adm .adm-sfu .panel h2, .adm .adm-sfu .panel h3, .adm .adm-sfu .panel strong { color: #f8fafc; }

/* Tema escuro: mesma chave e classe do OmniGestor (body.dark-mode). */
body.dark-mode .adm, body.dark-mode .adm-modal-backdrop {
    --adm-bg: #0b1120;
    --adm-surface: #111827;
    --adm-surface-2: #0f172a;
    --adm-border: #263247;
    --adm-text: #e5e7eb;
    --adm-muted: #94a3b8;
    --adm-primary: #a78bfa;
    --adm-primary-soft: rgba(139, 92, 246, .18);
    --adm-accent: #22d3ee;
    --adm-success: #4ade80;
    --adm-success-soft: rgba(34, 197, 94, .16);
    --adm-warning: #fbbf24;
    --adm-warning-soft: rgba(245, 158, 11, .16);
    --adm-danger: #f87171;
    --adm-danger-soft: rgba(239, 68, 68, .16);
    --adm-side: #070b16;
    color-scheme: dark;
}
body.dark-mode .adm-modal-backdrop { background: rgba(0, 0, 0, .7); }
body.dark-mode .adm-card, body.dark-mode .adm-stat { box-shadow: none; }
body.dark-mode .adm-btn:hover:not(:disabled) { border-color: #3b4a63; }
body.dark-mode .adm-btn.primary { background: linear-gradient(135deg, #6d28d9, #0891b2); }
body.dark-mode .adm-btn.danger { border-color: rgba(248, 113, 113, .4); }
body.dark-mode .adm-btn.danger-solid { background: #dc2626; }
body.dark-mode .adm-tag.off { background: #1f2937; color: #9ca3af; }
body.dark-mode .adm-table tbody tr.clickable:hover td { background: rgba(139, 92, 246, .1); }
body.dark-mode .adm-chip { background: #1e293b; color: #cbd5e1; }
body.dark-mode .adm-field label, body.dark-mode .adm-label { color: #cbd5e1; }
body.dark-mode .adm-input { border-color: #334155; background: #0b1120; }
body.dark-mode .adm-input::placeholder { color: #64748b; }
body.dark-mode .adm-input:focus { box-shadow: 0 0 0 3px rgba(167, 139, 250, .25); }
body.dark-mode .adm-fieldset, body.dark-mode .adm-state { border-color: #334155; }
body.dark-mode .adm-state i { color: #64748b; }
body.dark-mode .adm-alert.error { border-color: rgba(248, 113, 113, .35); background: rgba(239, 68, 68, .12); }
body.dark-mode .adm-alert.success { border-color: rgba(74, 222, 128, .3); background: rgba(34, 197, 94, .1); }
body.dark-mode .adm-alert.info { border-color: rgba(167, 139, 250, .35); background: rgba(139, 92, 246, .12); color: #c4b5fd; }
body.dark-mode .adm-alert.warn { border-color: rgba(251, 191, 36, .35); background: rgba(245, 158, 11, .1); }
body.dark-mode .adm-skeleton { background: linear-gradient(90deg, #1e293b 25%, #273449 37%, #1e293b 63%); background-size: 400% 100%; }
body.dark-mode .adm-option.selected { border-color: #8b5cf6; }

/* Toggle dia/noite copiado de OmniGestor/Layout/DarkModeComponent.razor.css. */
.adm-side-theme { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; color: #94a3b8; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.adm .theme-toggle { --tt-duration: .6s; --tt-ease: cubic-bezier(.56, 1.35, .52, 1); position: relative; width: 64px; height: 30px; padding: 0; border: 2px solid #1d1f24; border-radius: 999px; overflow: hidden; cursor: pointer; background: linear-gradient(180deg, #3f8fd9 0%, #74b6ef 100%); box-shadow: inset 0 2px 5px rgba(0, 0, 0, .35), 0 1px 2px rgba(0, 0, 0, .15); transition: background var(--tt-duration) ease, box-shadow var(--tt-duration) ease; -webkit-tap-highlight-color: transparent; }
.adm .theme-toggle.is-dark { background: linear-gradient(180deg, #050608 0%, #1b1e25 100%); }
.adm .theme-toggle:focus { outline: none; }
.adm .theme-toggle:focus-visible { outline: 2px solid #74b6ef; outline-offset: 2px; }
.adm .theme-toggle-knob { position: absolute; top: 3px; left: 3px; z-index: 2; width: 20px; height: 20px; border-radius: 50%; background: #f8c640; transform: translateX(34px) rotate(0deg); box-shadow: inset -2px -2px 3px rgba(181, 120, 10, .45), inset 2px 2px 3px rgba(255, 245, 200, .7), 0 0 0 6px rgba(255, 255, 255, .18), 0 0 0 12px rgba(255, 255, 255, .1), 0 0 0 18px rgba(255, 255, 255, .06); transition: transform var(--tt-duration) var(--tt-ease), background var(--tt-duration) ease, box-shadow var(--tt-duration) ease; }
.adm .theme-toggle.is-dark .theme-toggle-knob { background: #c8c8c8; transform: translateX(0) rotate(-270deg); box-shadow: inset -2px -2px 3px rgba(80, 80, 80, .45), inset 2px 2px 3px rgba(255, 255, 255, .6), 0 0 0 6px rgba(255, 255, 255, .07), 0 0 0 12px rgba(255, 255, 255, .045), 0 0 0 18px rgba(255, 255, 255, .025); }
.adm .theme-toggle-knob .crater { position: absolute; border-radius: 50%; background: #9a9a9a; box-shadow: inset 1px 1px 1px rgba(0, 0, 0, .25); opacity: 0; transform: scale(.4); transition: opacity calc(var(--tt-duration) * .6) ease, transform calc(var(--tt-duration) * .6) ease; }
.adm .theme-toggle.is-dark .theme-toggle-knob .crater { opacity: 1; transform: scale(1); transition-delay: calc(var(--tt-duration) * .3); }
.adm .crater-1 { top: 4px; left: 5px; width: 6px; height: 5px; }
.adm .crater-2 { top: 11px; left: 11px; width: 4px; height: 4px; }
.adm .crater-3 { top: 13px; left: 4px; width: 3px; height: 3px; }
.adm .theme-toggle-stars { position: absolute; inset: 0; z-index: 1; opacity: 0; transform: translateY(-26px); transition: opacity var(--tt-duration) ease, transform var(--tt-duration) var(--tt-ease); }
.adm .theme-toggle.is-dark .theme-toggle-stars { opacity: 1; transform: translateY(0); }
.adm .theme-toggle-stars i { position: absolute; width: 2px; height: 2px; border-radius: 50%; background: #fff; box-shadow: 0 0 3px rgba(255, 255, 255, .9); }
.adm .theme-toggle.is-dark .theme-toggle-stars i { animation: adm-theme-twinkle 2.4s ease-in-out infinite; }
.adm .theme-toggle-stars i:nth-child(1) { top: 4px; left: 30px; }
.adm .theme-toggle-stars i:nth-child(2) { top: 6px; left: 44px; width: 3px; height: 3px; animation-delay: .6s !important; }
.adm .theme-toggle-stars i:nth-child(3) { top: 12px; left: 37px; animation-delay: 1.2s !important; }
.adm .theme-toggle-stars i:nth-child(4) { top: 3px; left: 53px; animation-delay: 1.8s !important; }
.adm .theme-toggle-stars i:nth-child(5) { top: 11px; left: 50px; width: 1px; height: 1px; animation-delay: .9s !important; }
@keyframes adm-theme-twinkle { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .3; transform: scale(.6); } }
.adm .theme-toggle-clouds { position: absolute; left: 20px; bottom: -3px; z-index: 3; width: 40px; height: 16px; transform: translateX(-20px); transition: transform var(--tt-duration) var(--tt-ease); }
.adm .theme-toggle.is-dark .theme-toggle-clouds { transform: translateX(4px); }
.adm .theme-toggle-clouds i { position: absolute; width: 12px; height: 12px; border-radius: 50%; background: currentColor; transition: color var(--tt-duration) ease; box-shadow: 8px -4px 0 1px currentColor, 17px -1px 0 2px currentColor, 26px 2px 0 1px currentColor, 10px 5px 0 2px currentColor; }
.adm .theme-toggle-clouds .cloud-back { left: 6px; bottom: 6px; color: rgba(255, 255, 255, .55); }
.adm .theme-toggle-clouds .cloud-front { left: 0; bottom: 0; color: #fff; }
.adm .theme-toggle.is-dark .theme-toggle-clouds .cloud-back { color: rgba(150, 150, 150, .8); }
.adm .theme-toggle.is-dark .theme-toggle-clouds .cloud-front { color: #d2d2d2; }

@media (prefers-reduced-motion: reduce) {
    .adm .theme-toggle, .adm .theme-toggle * { transition-duration: .01ms !important; animation: none !important; }
}

@media (max-width: 960px) {
    .adm { grid-template-columns: 1fr; }
    .adm-side { position: static; height: auto; gap: 12px; padding: 14px 16px; }
    .adm-side-top { display: flex; align-items: center; justify-content: space-between; }
    .adm-menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border: 1px solid #334155; border-radius: 9px; background: #111827; color: #fff; cursor: pointer; }
    .adm-side:not(.open) .adm-nav, .adm-side:not(.open) .adm-side-footer { display: none; }
    .adm-main { padding: 20px 16px 40px; }
    .adm-header h1 { font-size: 24px; }
}

@media (max-width: 600px) {
    .adm-grid { grid-template-columns: 1fr; }
    .adm-card { padding: 16px; }
    .adm-actions { width: 100%; }
    .adm-actions .adm-btn { flex: 1 1 auto; }
    .adm-modal-foot .adm-btn { flex: 1 1 auto; }
}

/* Consumo do Agent de IA */
.adm-usage-date { flex: 0 0 160px; flex-direction: row; align-items: center; gap: 8px; }
.adm-usage-title { margin: 22px 0 10px; font-size: 16px; font-weight: 700; }
.adm-usage-toggle { margin-right: 6px; padding: 2px 6px; border: 0; background: transparent; color: var(--adm-muted); cursor: pointer; }
.adm-table tr.adm-usage-subrow td:first-child { padding-left: 40px; }
.adm-table tr.adm-usage-subrow td { font-size: 13px; }
@media (max-width: 720px) {
    .adm-usage-date { flex: 1 1 140px; }
}
