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

:root {
  --accent:    #fd7e14;
  --accent2:   #e8670a;
  --bg:        #0f1117;
  --surface:   #1a1d27;
  --surface2:  #252836;
  --border:    #2e3248;
  --text:      #f1f1f3;
  --text-muted:#8a8fa8;
  --success:   #28a745;
  --error:     #dc3545;
  --free:      #28a745;
  --occupied:  var(--accent);
  --radius:    12px;
  --radius-sm: 8px;
  --font: 'Segoe UI', system-ui, sans-serif;
}

html, body { height: 100%; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 16px; -webkit-font-smoothing: antialiased; overscroll-behavior: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }

.view { display: none; position: fixed; inset: 0; height: 100dvh; width: 100%; flex-direction: column; overflow: hidden; z-index: 1; }
.view.active { display: flex; }

#loading { position: fixed; inset: 0; z-index: 9999; background: rgba(15,17,23,.8); display: none; align-items: center; justify-content: center; }
.spinner { width: 40px; height: 40px; border: 3px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(80px); z-index: 1000; background: var(--surface2); color: var(--text); padding: 12px 20px; border-radius: 999px; font-size: 14px; border: 1px solid var(--border); transition: transform .3s ease; white-space: nowrap; }
.toast.show { transform: translateX(-50%) translateY(0); }
.toast--success { border-color: var(--success); color: var(--success); }
.toast--error   { border-color: var(--error);   color: var(--error);   }

/* ── LOGIN ── */
#view-login { background: #f5f0e8; align-items: center; justify-content: center; padding: 32px 24px; }
.login-logo-wrap { margin-bottom: 32px; text-align: center; }
.login-brand { font-size: 28px; font-weight: 900; color: #1a1a1a; letter-spacing: -1px; }
.login-brand span { color: var(--accent); }
.login-tagline { font-size: 13px; color: #888; margin-top: 4px; }
.login-card { background: #fff; border-radius: 16px; padding: 32px 28px; width: 100%; max-width: 380px; box-shadow: 0 4px 32px rgba(0,0,0,.10); }
.login-card h2 { font-size: 22px; font-weight: 800; color: #1a1a1a; margin-bottom: 4px; }
.login-card p { font-size: 14px; color: #888; margin-bottom: 24px; }
.input-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.input-group label { font-size: 13px; font-weight: 600; color: #444; }
.input-group input { background: #f5f5f5; border: 1.5px solid #e0e0e0; border-radius: 8px; color: #1a1a1a; padding: 13px 16px; font-size: 16px; outline: none; transition: border-color .2s; }
.input-group input:focus { border-color: var(--accent); background: #fff; }
.btn-primary { width: 100%; background: var(--accent); color: #fff; font-size: 16px; font-weight: 700; padding: 15px; border-radius: 8px; margin-top: 8px; transition: background .2s, transform .1s; letter-spacing: .02em; }
.btn-primary:hover { background: var(--accent2); }
.btn-primary:active { transform: scale(.97); }
.login-footer { margin-top: 20px; text-align: center; font-size: 12px; color: #aaa; }

/* ── HEADER ── */
.app-header { display: flex; align-items: center; justify-content: space-between; padding: 0 20px; height: 56px; background: var(--accent); flex-shrink: 0; }
.app-header h1 { font-size: 18px; font-weight: 700; color: #fff; }
.header-right { display: flex; align-items: center; gap: 10px; }
.waiter-name { font-size: 13px; color: rgba(255,255,255,.8); }
.btn-refresh { font-size: 18px; color: #fff; width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: background .2s; }
.btn-refresh:hover { background: rgba(255,255,255,.15); }
.btn-logout { font-size: 13px; color: #fff; padding: 6px 12px; border: 1.5px solid rgba(255,255,255,.4); border-radius: var(--radius-sm); transition: background .2s; }
.btn-logout:hover { background: rgba(255,255,255,.15); }

/* ── TABLES ── */
#view-tables { background: #f0f0f0; }
.tables-scroll { flex: 1; overflow-y: auto; padding: 16px; }
.tables-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; }
.table-card { background: #fff; border-radius: var(--radius); padding: 18px 12px; display: flex; flex-direction: column; align-items: center; gap: 5px; cursor: pointer; border: 2px solid transparent; transition: transform .15s, border-color .2s, box-shadow .2s; min-height: 100px; justify-content: center; box-shadow: 0 2px 8px rgba(0,0,0,.07); }
.table-card:active { transform: scale(.95); }
.table-card--free { border-color: transparent; }
.table-card--occupied { border-color: var(--accent); box-shadow: 0 2px 12px rgba(253,126,20,.2); }
.table-number { font-size: 28px; font-weight: 800; color: #1a1a1a; }
.table-status { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.table-card--free  .table-status { color: var(--success); }
.table-card--occupied .table-status { color: var(--accent); }
.table-total  { font-size: 13px; color: #333; font-weight: 600; }
.table-people { font-size: 11px; color: #888; }

/* ── ORDER ── */
#view-order { background: #f0f0f0; }
.order-header { display: flex; align-items: center; gap: 12px; padding: 0 16px; height: 56px; background: var(--accent); flex-shrink: 0; }
.btn-back { font-size: 26px; color: #fff; padding: 0 4px 0 0; }
.order-header h2 { font-size: 18px; font-weight: 700; color: #fff; flex: 1; }
.btn-add-product { background: rgba(255,255,255,.2); color: #fff; width: 34px; height: 34px; border-radius: 50%; font-size: 22px; display: flex; align-items: center; justify-content: center; transition: background .2s; }
.btn-add-product:hover { background: rgba(255,255,255,.35); }
.order-scroll { flex: 1; overflow-y: auto; padding: 16px; }
.order-item { display: flex; justify-content: space-between; align-items: flex-start; padding: 14px; background: #fff; border-radius: var(--radius-sm); margin-bottom: 8px; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.order-item__info { display: flex; flex-direction: column; gap: 3px; }
.order-item__name { font-size: 15px; font-weight: 600; color: #1a1a1a; }
.order-item__qty  { font-size: 13px; color: #888; }
.order-item__note { font-size: 12px; color: var(--accent); font-style: italic; }
.order-item__right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex-shrink: 0; margin-left: 12px; }
.order-item__total { font-size: 15px; font-weight: 700; color: #1a1a1a; }
.btn-remove { font-size: 12px; color: #bbb; width: 24px; height: 24px; border-radius: 50%; border: 1px solid #e0e0e0; display: flex; align-items: center; justify-content: center; transition: color .2s, border-color .2s; }
.btn-remove:hover { color: var(--error); border-color: var(--error); }
.order-footer { padding: 14px 16px; background: #fff; border-top: 1px solid #e8e8e8; flex-shrink: 0; box-shadow: 0 -2px 8px rgba(0,0,0,.06); }
.order-total-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.order-total-bar span:first-child { font-size: 14px; color: #888; }
#order-total { font-size: 22px; font-weight: 800; color: var(--accent); }
.btn-close-order { width: 100%; background: var(--accent); color: #fff; font-size: 16px; font-weight: 700; padding: 14px; border-radius: var(--radius-sm); transition: background .2s; }
.btn-close-order:hover { background: var(--accent2); }
.btn-cancel-order { width: 100%; background: transparent; color: var(--error); font-size: 14px; font-weight: 500; padding: 11px; border-radius: var(--radius-sm); margin-top: 8px; border: 1.5px solid var(--error); transition: background .2s; }
.btn-cancel-order:active { background: rgba(220,53,69,.08); }

/* ── PRODUCTS ── */
#view-products { background: #f0f0f0; }
.categories-bar { display: flex; overflow-x: auto; gap: 8px; padding: 12px 16px; background: #fff; border-bottom: 1px solid #e8e8e8; flex-shrink: 0; scrollbar-width: none; }
.categories-bar::-webkit-scrollbar { display: none; }
.category-btn { white-space: nowrap; font-size: 13px; font-weight: 600; padding: 8px 16px; border-radius: 999px; flex-shrink: 0; border: 1.5px solid #e0e0e0; color: #666; background: #fff; transition: all .15s; }
.category-btn.active, .category-btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.products-scroll { flex: 1; overflow-y: auto; padding: 14px 16px; }
.products-list { display: flex; flex-direction: column; gap: 10px; }
.product-card { background: #fff; border-radius: var(--radius-sm); padding: 16px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; border: 1.5px solid #e8e8e8; box-shadow: 0 1px 4px rgba(0,0,0,.05); transition: border-color .15s, transform .1s; }
.product-card:active { transform: scale(.98); border-color: var(--accent); }
.product-name  { font-size: 15px; font-weight: 600; color: #1a1a1a; }
.product-price { font-size: 15px; font-weight: 800; color: var(--accent); flex-shrink: 0; margin-left: 10px; }

/* ── CLOSE ── */
#view-close { background: #f0f0f0; }
.close-scroll { flex: 1; overflow-y: auto; padding: 16px; }
.close-card { background: #fff; border-radius: var(--radius); padding: 20px; margin-bottom: 14px; box-shadow: 0 1px 6px rgba(0,0,0,.07); }
.close-card h3 { font-size: 13px; font-weight: 700; color: #888; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 14px; }
.close-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid #f0f0f0; }
.close-row:last-child { border-bottom: none; }
.close-row label { font-size: 14px; color: #666; }
.close-row span  { font-size: 15px; font-weight: 700; color: #1a1a1a; }
.close-row input, .close-row select { background: #f5f5f5; border: 1.5px solid #e0e0e0; border-radius: var(--radius-sm); color: #1a1a1a; padding: 8px 12px; font-size: 15px; text-align: right; width: 150px; outline: none; }
.close-row input:focus, .close-row select:focus { border-color: var(--accent); }
.close-result { color: var(--accent) !important; font-size: 20px !important; }
.close-change  { color: var(--success) !important; }
.btn-confirm-close { width: 100%; background: var(--success); color: #fff; font-size: 16px; font-weight: 700; padding: 16px; border-radius: var(--radius-sm); margin-top: 4px; transition: background .2s; }
.btn-confirm-close:hover { background: #218838; }

/* ── MODAIS ── */
.modal-overlay { position: fixed; inset: 0; z-index: 999; display: none; background: rgba(0,0,0,.5); align-items: flex-end; justify-content: center; }
.modal-overlay.open { display: flex; }
.modal { background: #fff; border-radius: 16px 16px 0 0; padding: 24px 20px 32px; width: 100%; max-width: 480px; }
.modal h3 { font-size: 18px; font-weight: 800; color: #1a1a1a; margin-bottom: 16px; }
.modal-price-tag { font-size: 14px; color: #888; margin-bottom: 16px; }
.modal-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.modal-row label { font-size: 15px; color: #666; }
.modal-row input, .modal-row textarea { background: #f5f5f5; border: 1.5px solid #e0e0e0; border-radius: 8px; color: #1a1a1a; padding: 10px 14px; font-size: 15px; outline: none; flex: 1; margin-left: 12px; }
.modal-row textarea { min-height: 60px; resize: none; }
.qty-control { display: flex; align-items: center; gap: 12px; }
.qty-btn { width: 36px; height: 36px; border-radius: 50%; background: #f5f5f5; border: 1.5px solid #e0e0e0; font-size: 20px; color: #333; display: flex; align-items: center; justify-content: center; transition: all .15s; }
.qty-btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.qty-display { font-size: 20px; font-weight: 800; color: #1a1a1a; min-width: 32px; text-align: center; }
.modal-actions { display: flex; gap: 10px; margin-top: 20px; }
.btn-cancel { flex: 1; padding: 14px; border-radius: 8px; border: 1.5px solid #e0e0e0; color: #666; font-size: 15px; font-weight: 600; }
.btn-confirm { flex: 2; padding: 14px; border-radius: 8px; background: var(--accent); color: #fff; font-size: 15px; font-weight: 700; transition: background .2s; }
.btn-confirm:hover { background: var(--accent2); }

/* ── Utils ── */
.loading-text, .empty-text, .error-text { text-align: center; padding: 40px 20px; font-size: 15px; color: #888; }
.error-text { color: var(--error); }

.product-info { display: flex; flex-direction: column; gap: 4px; }
.stock-badge { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.stock-badge--low { background: #fff3cd; color: #856404; }
.stock-badge--out { background: #f8d7da; color: #842029; }
.product--unavailable { opacity: 0.5; cursor: not-allowed; }
.toast--warning { border-color: #ffc107; color: #856404; }

.item-qty-control { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; justify-content: flex-end; }
.item-qty-btn { width: 28px; height: 28px; border-radius: 50%; background: #f0f0f0; border: 1.5px solid #e0e0e0; font-size: 16px; color: #333; display: flex; align-items: center; justify-content: center; transition: all .15s; }
.item-qty-btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.item-qty-display { font-size: 14px; font-weight: 700; color: #333; min-width: 28px; text-align: center; }

.btn-transfer-order { width: 100%; background: transparent; color: #464e5f; font-size: 14px; font-weight: 500; padding: 11px; border-radius: var(--radius-sm); margin-top: 8px; border: 1.5px solid #464e5f; transition: background .2s; }
.btn-transfer-order:active { background: rgba(70,78,95,.08); }
.transfer-table-btn { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; background: #f5f5f5; border-radius: var(--radius-sm); border: 1.5px solid #e0e0e0; width: 100%; transition: all .15s; }
.transfer-table-btn:hover { border-color: var(--accent); background: #fff; }

/* ── MENU ── */
#view-menu { background: #f5f0e8; }
.menu-btn { width: 100%; max-width: 320px; padding: 18px; border-radius: var(--radius); font-size: 18px; font-weight: 700; background: #fff; border: 2px solid #e0e0e0; color: #1a1a1a; box-shadow: 0 2px 8px rgba(0,0,0,.07); transition: all .15s; }
.menu-btn:hover { border-color: var(--accent); color: var(--accent); }
.menu-btn:active { transform: scale(.97); }
.menu-btn--logout { color: var(--error); border-color: var(--error); margin-top: 16px; }

/* ── COZINHA ── */
#view-kitchen { background: #1a1a1a; flex-direction: column; }
#view-kitchen .app-header { background: var(--accent); }
.kitchen-grid { flex: 1; overflow-y: auto; padding: 16px; }
.kitchen-card { background: #2d2d2d; border-radius: var(--radius); border: 2px solid #3d3d3d; overflow: hidden; margin-bottom: 14px; }
.kitchen-card--urgent { border-color: var(--error); }
.kitchen-card__header { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; background: #3d3d3d; }
.kitchen-table { font-size: 18px; font-weight: 800; color: #fff; }
.kitchen-elapsed { font-size: 13px; font-weight: 600; color: #aaa; background: #2d2d2d; padding: 4px 10px; border-radius: 999px; }
.kitchen-elapsed--urgent { color: var(--error); background: rgba(220,53,69,.15); }
.kitchen-items { padding: 12px 16px; display: flex; flex-direction: column; gap: 10px; }
.kitchen-item { display: flex; align-items: flex-start; gap: 12px; }
.kitchen-item__qty { font-size: 20px; font-weight: 800; color: var(--accent); min-width: 36px; }
.kitchen-item__info { display: flex; flex-direction: column; gap: 2px; }
.kitchen-item__name { font-size: 15px; font-weight: 600; color: #fff; }
.kitchen-item__note { font-size: 12px; color: #aaa; font-style: italic; }
.kitchen-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; gap: 16px; color: #666; }
.kitchen-empty span { font-size: 48px; }
.kitchen-empty p { font-size: 16px; }

.kitchen-status { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; display: inline-block; }
.kitchen-status--new  { background: rgba(253,126,20,.2); color: var(--accent); }
.kitchen-status--prep { background: rgba(255,193,7,.2); color: #ffc107; }
.kitchen-card__footer { padding: 12px 16px; border-top: 1px solid #3d3d3d; }
.btn-ready { width: 100%; padding: 12px; background: var(--success); color: #fff; font-size: 15px; font-weight: 700; border-radius: var(--radius-sm); transition: background .2s; }
.btn-ready:hover { background: #218838; }

.table-card--ready { border-color: var(--success); box-shadow: 0 2px 12px rgba(40,167,69,.3); animation: pulse-ready 2s infinite; }
.table-card--ready .table-status { color: var(--success); }
@keyframes pulse-ready { 0%,100% { box-shadow: 0 2px 12px rgba(40,167,69,.3); } 50% { box-shadow: 0 2px 20px rgba(40,167,69,.6); } }

/* ── HISTÓRICO ── */
#view-history { background: #f0f0f0; }
.history-filters { background: #fff; border-bottom: 1px solid #e0e0e0; flex-shrink: 0; overflow-x: hidden; }
.date-shortcuts { display: flex; gap: 8px; padding: 12px 16px; overflow-x: auto; scrollbar-width: none; }
.date-shortcuts::-webkit-scrollbar { display: none; }
.date-btn { white-space: nowrap; font-size: 13px; font-weight: 600; padding: 8px 16px; border-radius: 999px; border: 1.5px solid #e0e0e0; color: #666; background: #fff; transition: all .15s; flex-shrink: 0; }
.date-btn.active, .date-btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
#custom-date-row { display: none; padding: 0 16px 12px; gap: 8px; align-items: center; }
.date-input { border: 1.5px solid #e0e0e0; border-radius: 8px; padding: 8px 12px; font-size: 14px; color: #333; outline: none; flex: 1; }
.date-input:focus { border-color: var(--accent); }
.status-tabs { display: flex; overflow-x: auto; gap: 6px; padding: 10px 16px; scrollbar-width: none; }
.status-tabs::-webkit-scrollbar { display: none; }
.status-tab { white-space: nowrap; font-size: 12px; font-weight: 600; padding: 6px 14px; border-radius: 999px; border: 1.5px solid #e0e0e0; color: #666; background: #fff; transition: all .15s; flex-shrink: 0; display: flex; align-items: center; gap: 6px; }
.status-tab.active, .status-tab:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.status-tab__count { background: rgba(0,0,0,.1); border-radius: 999px; padding: 1px 7px; font-size: 11px; }
.history-summary { padding: 12px 16px 0; flex-shrink: 0; }
.history-total-bar { display: flex; justify-content: space-between; align-items: center; background: #fff; border-radius: var(--radius-sm); padding: 12px 16px; margin-bottom: 4px; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.history-total-bar span:first-child { font-size: 14px; color: #888; }
.history-total-value { font-size: 20px; font-weight: 800; color: var(--accent); }
.history-list { flex: 1; overflow-y: auto; padding: 12px 16px; }
.history-card { background: #fff; border-radius: var(--radius); box-shadow: 0 1px 6px rgba(0,0,0,.07); overflow: hidden; margin-bottom: 10px; }
.history-card__header { display: flex; justify-content: space-between; align-items: flex-start; padding: 14px 16px 10px; border-bottom: 1px solid #f0f0f0; }
.history-table { font-size: 16px; font-weight: 800; color: #1a1a1a; display: block; }
.history-date { font-size: 12px; color: #888; margin-top: 2px; display: block; }
.history-status { font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.history-card__body { padding: 10px 16px 14px; display: flex; flex-direction: column; gap: 6px; }
.history-info-row { display: flex; justify-content: space-between; font-size: 14px; color: #666; }
.history-info-row span:last-child { font-weight: 600; color: #333; }
.history-info-row--total { border-top: 1px solid #f0f0f0; padding-top: 8px; margin-top: 4px; }
.history-info-row--total span { font-size: 16px !important; font-weight: 800 !important; color: var(--accent) !important; }

.kitchen-item--ready { opacity: 0.5; }
.kitchen-item--ready .kitchen-item__name { text-decoration: line-through; }
.btn-item-ready { font-size: 12px; font-weight: 700; padding: 6px 12px; border-radius: var(--radius-sm); background: var(--accent); color: #fff; flex-shrink: 0; margin-left: 8px; transition: background .2s; }
.btn-item-ready--done { background: #3d3d3d; color: #666; cursor: not-allowed; }

/* ── ESTOQUE ── */
#view-stock { background: #f0f0f0; }
.stock-filters { background: #fff; border-bottom: 1px solid #e0e0e0; flex-shrink: 0; }
.stock-search-row { padding: 12px 16px 8px; }
.stock-search { width: 100%; border: 1.5px solid #e0e0e0; border-radius: 8px; padding: 10px 14px; font-size: 15px; color: #333; outline: none; }
.stock-search:focus { border-color: var(--accent); }
.stock-list { flex: 1; overflow-y: auto; padding: 12px 16px; }
.stock-card { background: #fff; border-radius: var(--radius-sm); padding: 14px 16px; display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.stock-card__info { display: flex; flex-direction: column; gap: 3px; flex: 1; }
.stock-card__name { font-size: 15px; font-weight: 600; color: #1a1a1a; }
.stock-card__cat  { font-size: 12px; color: #888; }
.stock-card__right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.stock-card__qty { font-size: 16px; font-weight: 800; color: #1a1a1a; display: block; text-align: right; }
.stock-badge-sm { font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 999px; display: block; text-align: center; margin-top: 2px; }
.btn-replenish { background: var(--accent); color: #fff; font-size: 13px; font-weight: 700; padding: 8px 14px; border-radius: var(--radius-sm); white-space: nowrap; transition: background .2s; }
.btn-replenish:hover { background: var(--accent2); }

/* ── GESTÃO DE PERFIS ── */
#view-users { background: #f0f0f0; }
.users-list { flex: 1; overflow-y: auto; padding: 12px 16px; }
.user-card { background: #fff; border-radius: var(--radius-sm); padding: 16px; display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; box-shadow: 0 1px 4px rgba(0,0,0,.06); cursor: pointer; transition: border-color .15s; border: 1.5px solid transparent; }
.user-card:hover { border-color: var(--accent); }
.user-card--inactive { opacity: 0.6; }
.user-card__info { display: flex; flex-direction: column; gap: 3px; }
.user-card__name  { font-size: 15px; font-weight: 600; color: #1a1a1a; }
.user-card__login { font-size: 12px; color: #888; }
.user-profile-badge { font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 999px; white-space: nowrap; flex-shrink: 0; }
.profile-btn { width: 100%; padding: 14px 16px; background: #f5f5f5; border-radius: var(--radius-sm); border: 1.5px solid #e0e0e0; font-size: 15px; font-weight: 600; color: #333; text-align: left; transition: all .15s; }
.profile-btn:hover { border-color: var(--accent); color: var(--accent); background: #fff; }
.profile-btn--active { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ── DASHBOARD ── */
#view-dashboard { background: #f0f0f0; }
.dash-periods { display: flex; gap: 8px; padding: 12px 16px; background: #fff; border-bottom: 1px solid #e0e0e0; flex-shrink: 0; }
.dash-scroll { flex: 1; overflow-y: auto; padding: 16px; }
.dash-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 4px; }
.dash-card { background: #fff; border-radius: var(--radius-sm); padding: 16px; display: flex; flex-direction: column; gap: 4px; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.dash-card__icon  { font-size: 20px; }
.dash-card__label { font-size: 12px; color: #888; font-weight: 500; }
.dash-card__value { font-size: 20px; font-weight: 800; }
.dash-section { margin-top: 16px; }
.dash-section__title { font-size: 13px; font-weight: 700; color: #888; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 10px; }
.dash-hours { display: flex; align-items: flex-end; gap: 4px; height: 80px; background: #fff; border-radius: var(--radius-sm); padding: 10px; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.dash-hour-bar { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 4px; }
.dash-hour-fill { width: 100%; background: var(--accent); border-radius: 3px 3px 0 0; min-height: 2px; transition: height .3s; }
.dash-hour-label { font-size: 9px; color: #aaa; }
.dash-rank-item { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: var(--radius-sm); padding: 12px; margin-bottom: 8px; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.dash-rank-pos { font-size: 16px; font-weight: 800; color: var(--accent); min-width: 24px; text-align: center; }
.dash-rank-info { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.dash-rank-name { font-size: 13px; font-weight: 600; color: #1a1a1a; }
.dash-rank-bar { height: 4px; background: #f0f0f0; border-radius: 2px; }
.dash-rank-fill { height: 100%; background: var(--accent); border-radius: 2px; }
.dash-rank-stats { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.dash-rank-qty { font-size: 12px; color: #888; }
.dash-rank-rev { font-size: 13px; font-weight: 700; color: #1a1a1a; }
.dash-waiter-list { display: flex; flex-direction: column; gap: 8px; }
.dash-waiter-item { background: #fff; border-radius: var(--radius-sm); padding: 14px 16px; display: flex; justify-content: space-between; align-items: center; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.dash-waiter-info { display: flex; flex-direction: column; gap: 3px; }
.dash-waiter-name { font-size: 15px; font-weight: 600; color: #1a1a1a; }
.dash-waiter-sub  { font-size: 12px; color: #888; }
.dash-waiter-rev  { font-size: 16px; font-weight: 800; color: var(--accent); }

/* ── CADASTROS ── */
#view-catalog { background: #f0f0f0; }
.catalog-tabs { display: flex; background: #fff; border-bottom: 1px solid #e0e0e0; flex-shrink: 0; }
.catalog-tab { flex: 1; padding: 14px; font-size: 14px; font-weight: 600; color: #888; border-bottom: 2px solid transparent; transition: all .15s; }
.catalog-tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.catalog-list { flex: 1; overflow-y: auto; padding: 12px 16px; }
.catalog-card { background: #fff; border-radius: var(--radius-sm); padding: 14px 16px; display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.catalog-card--inactive { opacity: 0.6; }
.catalog-card__info { display: flex; flex-direction: column; gap: 3px; flex: 1; }
.catalog-card__name { font-size: 15px; font-weight: 600; color: #1a1a1a; }
.catalog-card__sub  { font-size: 12px; color: #888; }
.btn-edit   { font-size: 18px; padding: 4px 8px; }
.btn-delete { font-size: 18px; padding: 4px 8px; }
.catalog-fab { position: fixed; bottom: 24px; right: 24px; width: 56px; height: 56px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 28px; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 16px rgba(0,0,0,.2); z-index: 10; transition: transform .2s; }
.catalog-fab:active { transform: scale(.92); }
