/* Ampliação da demonstração PEDIZA — interface adaptável e dados locais fictícios. */
.system-sidebar{max-height:740px;overflow:auto;scrollbar-width:thin}
.system-nav button:hover{color:var(--demo-orange)}
.system-nav button:hover b{color:var(--demo-orange)}
.system-nav button.active span{color:var(--demo-orange)}
.system-workspace{min-height:620px}
.system-metrics{grid-template-columns:repeat(4,minmax(0,1fr))}
.system-metrics article{min-height:96px;display:flex;flex-direction:column;gap:8px}
.system-metrics article b{font-size:1.08rem}
.system-metrics article em{font-size:.62rem;color:#7b8087;font-style:normal}
.metric-up{color:#14854b!important}
.overview-grid{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(220px,.8fr);gap:14px;margin-top:15px}
.chart-card,.quick-card,.demo-subpanel{padding:16px;border:1px solid var(--demo-line);border-radius:13px;background:#fff}
.chart-title{display:flex;justify-content:space-between;align-items:center;font-size:.7rem}
.chart-title span{font-size:.6rem;color:var(--demo-muted)}
.demo-bars{height:130px;display:flex;align-items:end;gap:9px;padding:12px 8px 0;border-bottom:1px solid var(--demo-line)}
.demo-bars i{flex:1;min-width:7px;border-radius:6px 6px 0 0;background:linear-gradient(180deg,#ff916e,var(--demo-orange))}
.chart-labels{display:flex;justify-content:space-between;margin-top:7px;color:var(--demo-muted);font-size:.56rem}
.quick-card{display:grid;align-content:start;gap:6px}
.quick-card>b{font-size:.7rem;margin-bottom:4px}
.quick-card button{border:0;background:#f7f7f8;padding:11px;border-radius:9px;text-align:left;color:#42454a;font:700 .64rem Poppins;cursor:pointer}
.quick-card button span{float:right;color:var(--demo-orange);font-size:.9rem}
.quick-card button:hover{color:var(--demo-orange);background:#fff0eb}
.demo-notice{display:flex;gap:12px;align-items:center;margin-top:15px;padding:11px 13px;border:1px solid #f3d7c9;border-radius:10px;background:#fff8f4;font-size:.62rem;color:#66554d}
.demo-notice b{white-space:nowrap;color:#a54320}
.demo-notice span{line-height:1.5}
.table-legend{display:flex;flex-wrap:wrap;gap:16px;margin:0 0 13px;color:#62666d;font-size:.62rem}
.table-legend span{display:flex;align-items:center;gap:6px}
.table-legend i{width:9px;height:9px;border-radius:50%;background:#27a267}
.table-legend i.busy{background:#ef8424}.table-legend i.closing{background:#e7473d}
.table-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.table-tile{display:grid;gap:6px;min-height:100px;padding:12px;border:1px solid var(--demo-line);border-radius:12px;background:#fff;text-align:left;color:#26282b;cursor:pointer}
.table-tile b{font-size:.72rem;color:var(--demo-orange)}
.table-tile span{font-size:.62rem;font-weight:800}
.table-tile small,.table-tile em{font-size:.57rem;color:#777d84;font-style:normal}
.table-tile.occupied{border-left:3px solid #ef8424}
.table-tile.closing{border-left:3px solid #e7473d;background:#fff9f8}
.table-tile.free:hover{border-color:#e94316;transform:translateY(-1px)}
.demo-subpanel{margin-top:14px}
.demo-subpanel>b{font-size:.7rem}
.demo-outline{margin-top:12px;border:1px solid #dedfe2;border-radius:8px;background:#fff;color:#42454a;padding:8px 12px;font:700 .62rem Poppins;cursor:pointer}
.kitchen-board .order-lane{min-height:0;align-self:start}
.kitchen-board .order-ticket{height:auto;min-height:0;display:flex;gap:9px;padding:13px}
.kitchen-board .order-ticket>strong{font-size:.68rem}
.kitchen-board .order-ticket span{line-height:1.55}
.kitchen-board .order-ticket span small{display:block;color:#a54531}
.kitchen-board .order-ticket button{margin-top:2px}
.kds-received{border-top:3px solid #e7473d}
.kds-making{border-top:3px solid #ef8424}
.kds-ready{border-top:3px solid #24a36a}
.channel-label{align-self:flex-start;padding:4px 7px;border-radius:5px;background:#fff0e8;color:var(--demo-orange);font-size:.52rem;letter-spacing:.04em}
.settings-tabs{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 14px;border-bottom:1px solid var(--demo-line)}
.settings-tabs button{padding:9px 12px;border:0;border-bottom:2px solid transparent;background:transparent;color:#74777d;font:700 .63rem Poppins;cursor:pointer}
.settings-tabs button.active{border-color:var(--demo-orange);color:var(--demo-orange)}
.settings-pane{display:none}
.settings-pane.active{display:block}
.settings-user-head{display:flex;align-items:center;justify-content:space-between;margin:5px 0 10px}
.settings-user-head b{font-size:.72rem}
.settings-user-head p{margin:4px 0;color:var(--demo-muted);font-size:.6rem}
.settings-cards select{padding:8px;border:1px solid var(--demo-line);border-radius:8px;background:#fff}
.whatsapp-grid{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(220px,.9fr);gap:14px}
.whatsapp-preview{display:grid;align-content:start;gap:12px;min-height:275px;padding:14px;border:1px solid var(--demo-line);border-radius:14px;background:#f3f6f4}
.wa-top{display:flex;align-items:center;gap:9px;padding-bottom:10px;border-bottom:1px solid #dfe5e0}
.wa-mark{width:34px;height:34px;display:grid;place-items:center;border-radius:50%;background:#fff0eb;color:var(--demo-orange)}
.wa-top>div{display:grid;gap:2px}
.wa-top b{font-size:.67rem}.wa-top small{color:#777;font-size:.56rem}
.wa-state{margin-left:auto;color:#7e8580;font-size:.5rem}
.wa-message{max-width:85%;padding:10px;border-radius:10px;background:#fff;color:#333;font-size:.61rem;line-height:1.5;box-shadow:0 1px 2px #0001}
.wa-message small{display:block;margin-top:4px;color:#89908a;font-size:.48rem;text-align:right}
.wa-message.client{justify-self:end;background:#dcf7c8}
.wa-compose{display:flex;gap:6px;margin-top:auto}
.wa-compose input{min-width:0;flex:1;padding:9px;border:1px solid #dde2df;border-radius:8px;background:#fff;font: .58rem Poppins}
.wa-compose button{border:0;border-radius:8px;background:var(--demo-orange);color:#fff;padding:0 12px;font:700 .59rem Poppins;cursor:pointer}
.integration-state{display:inline-flex;padding:5px 7px;border-radius:20px;font-size:.52rem;font-style:normal}
.demo-offline{background:#f1f1f2;color:#656970}
.integration-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.integration-grid article{display:grid;grid-template-columns:38px 1fr auto;gap:10px;align-items:start;padding:14px;border:1px solid var(--demo-line);border-radius:12px;background:#fff}
.integration-icon{width:34px;height:34px;display:grid;place-items:center;border-radius:10px;background:#f4f4f5;color:var(--demo-orange);font-size:.95rem}
.whatsapp-icon{background:#fff0eb;color:var(--demo-orange)}.wa-mark{display:grid;place-items:center;width:32px;height:32px;color:var(--demo-orange)}.wa-mark svg,.whatsapp-icon svg{display:block;width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2.1;stroke-linecap:round;stroke-linejoin:round}
.integration-grid article b{font-size:.66rem}
.integration-grid article p{margin:5px 0 9px;color:var(--demo-muted);font-size:.56rem;line-height:1.5}
.integration-grid article button{border:1px solid var(--demo-line);border-radius:7px;background:#fff;padding:7px 9px;font:700 .54rem Poppins;cursor:pointer}
.planned{background:#fff4df;color:#8d600c}
.order-board .order-lane header{border-top:3px solid transparent}
.order-board .kds-received header{border-color:#e7473d}
.order-board .kds-making header{border-color:#ef8424}
.order-board .kds-ready header{border-color:#24a36a}
.order-board .kds-received .channel-label{color:#d53e36;background:#fff0ef}
.order-board .kds-making .channel-label{color:#d97218;background:#fff4e9}
.order-board .kds-ready .channel-label{color:#13834f;background:#e9f8ef}
:root[data-theme="dark"] .device-frame{background:#0b0c0d;border-color:#292b2e}
:root[data-theme="dark"] .pediza-demo-app{--demo-ink:#eee;--demo-muted:#aaaeb4;--demo-line:#303236;background:#171819;color:#eee}
:root[data-theme="dark"] .system-sidebar,:root[data-theme="dark"] .system-topbar,:root[data-theme="dark"] .chart-card,:root[data-theme="dark"] .quick-card,:root[data-theme="dark"] .demo-subpanel,:root[data-theme="dark"] .table-tile,:root[data-theme="dark"] .integration-grid article,:root[data-theme="dark"] .settings-cards article{background:#202123;color:#eee}
:root[data-theme="dark"] .system-nav button{color:#b8bbc0}
:root[data-theme="dark"] .system-nav button:hover,:root[data-theme="dark"] .quick-card button{background:#292a2c}
:root[data-theme="dark"] .system-nav button.active{background:#342722;color:#ff7546}
:root[data-theme="dark"] .system-topbar,:root[data-theme="dark"] .system-sidebar{border-color:#303236}
:root[data-theme="dark"] .system-topbar strong,:root[data-theme="dark"] .panel-heading h2,:root[data-theme="dark"] .settings-user-head b,:root[data-theme="dark"] .quick-card>b{color:#f4f4f4}
:root[data-theme="dark"] .quick-card button,:root[data-theme="dark"] .demo-outline,:root[data-theme="dark"] .settings-cards button,:root[data-theme="dark"] .settings-cards select,:root[data-theme="dark"] .integration-grid article button{background:#292a2c;color:#ddd;border-color:#3a3c40}
:root[data-theme="dark"] .table-tile.closing{background:#302120}
:root[data-theme="dark"] .demo-notice{background:#2c211c;border-color:#563a2d;color:#ddd}
:root[data-theme="dark"] .demo-notice b{color:#ff9c72}
:root[data-theme="dark"] .demo-table>div{border-color:#3a3c40}
:root[data-theme="dark"] .demo-table>div:first-child{background:#28292b}
:root[data-theme="dark"] .whatsapp-preview{background:#202522}:root[data-theme="dark"] .whatsapp-icon{background:#4a2a20;color:#ff865f}:root[data-theme="dark"] .wa-mark{background:#4a2a20;color:#ff865f}
:root[data-theme="dark"] .wa-top{border-color:#38413b}
:root[data-theme="dark"] .wa-message{background:#303330;color:#eee}
:root[data-theme="dark"] .wa-message.client{background:#25452e}
:root[data-theme="dark"] .wa-compose input{background:#171819;color:#eee;border-color:#424640}
:root[data-theme="dark"] .channel-label{background:#342722;color:#ff9c72}
:root[data-theme="dark"] .demo-bars{border-color:#3a3c40}
:root[data-theme="dark"] .chart-labels{color:#a2a6ac}
@media(max-width:1080px){.system-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.system-sidebar{overflow:auto}.table-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){.system-workspace{min-height:0}.system-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.overview-grid,.whatsapp-grid{grid-template-columns:1fr}.integration-grid{grid-template-columns:1fr}.table-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.kitchen-board .order-lane{min-height:0}.demo-notice{align-items:flex-start;flex-direction:column;gap:4px}.settings-user-head{align-items:flex-start;gap:9px}.integration-grid article{grid-template-columns:35px 1fr}.integration-grid article button{grid-column:2;justify-self:start}.settings-tabs{overflow:auto;flex-wrap:nowrap}.settings-tabs button{white-space:nowrap}}

