/* Design reference: Ciutat app family and club web. */
:root{--navy:#0d3155;--blue:#174ea6;--blue2:#2376aa;--lilac:#cec5f2;--gold:#f5c542;--paper:#f3f6fc;--white:#fff;--ink:#173c61;--muted:#627b91;--line:#d7e3ef;--soft:#edf4fc;--shadow:0 12px 30px #0d31550e;--red:#b42337;--radius:20px;color-scheme:light}
html[data-theme=dark]{--paper:#081524;--white:#102238;--ink:#e4eef9;--muted:#9db0c8;--line:#2a405b;--soft:#182f4d;--shadow:0 12px 30px #0003;color-scheme:dark}
*{box-sizing:border-box}html,body{height:100%;margin:0}body{height:100dvh;display:flex;flex-direction:column;overflow:hidden;background:radial-gradient(ellipse at 10% 0%,#e8f0fa80,transparent 60%),var(--paper);color:var(--ink);font:14px/1.5 'Segoe UI',system-ui,-apple-system,sans-serif}button,input,textarea,select{font:inherit}button,a{touch-action:manipulation;-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:var(--ink);background:var(--white);border:1px solid var(--line);border-radius:12px;padding:11px 15px;font-weight:700;min-height:44px;transition:background .15s,box-shadow .15s,transform .15s}button:hover:not(:disabled){border-color:#8fb5dc;box-shadow:0 5px 16px #174ea60c}button:active:not(:disabled){transform:translateY(1px) scale(.985)}button:disabled{opacity:.48;cursor:default}button:focus-visible,a:focus-visible{outline:3px solid #b4a3e7;outline-offset:3px}a{color:var(--blue);text-underline-offset:3px}svg{width:24px;height:24px;flex-shrink:0}h1,h2,h3,p{margin:0 0 12px}h1,h2,h3{line-height:1.2;letter-spacing:-.6px;font-weight:800}h1{font-size:28px}h2{font-size:22px}h3{font-size:16px}p{line-height:1.6}small{font-size:11px}[hidden]{display:none!important}.primary{color:#fff;background:linear-gradient(125deg,var(--navy),#164e7c);border-color:transparent;box-shadow:0 7px 18px #0d31551a}.primary:hover:not(:disabled){background:linear-gradient(125deg,#143e67,#206b9e);color:#fff}.quiet{background:transparent;box-shadow:none}.danger{color:var(--red)}.hint,.muted{color:var(--muted)}.hint{font-size:12px;line-height:1.55}.eyebrow{font-size:9px;letter-spacing:1.5px;font-weight:850;color:var(--muted);text-transform:uppercase;margin-bottom:8px}.pill{display:inline-flex;align-items:center;border:1px solid var(--line);padding:5px 9px;background:var(--soft);border-radius:9px;font-size:11px;font-weight:700;white-space:nowrap}.split{display:flex;align-items:center;gap:8px;min-width:0}.split select{margin:0;max-width:250px}.button-link{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:10px 14px;border:1px solid var(--line);border-radius:12px;font-weight:700;font-size:12px;background:var(--white);text-decoration:none;color:var(--ink);white-space:nowrap}.wide-button{width:100%}
.topbar{flex:0 0 74px;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:10px max(24px,calc((100vw - 1120px)/2));border-bottom:1px solid var(--line);background:var(--white);z-index:15}.brand{display:flex;gap:11px;align-items:center;text-decoration:none;color:var(--ink);font-size:20px;font-weight:850;line-height:1.1}.brand-icon{width:43px;height:43px;display:grid;place-items:center;border-radius:14px;background:var(--navy);color:#f4d992;border:1px solid #ffffff20;font:30px Georgia,serif;box-shadow:0 5px 14px #0d315518}.brand small{display:block;font-size:8px;letter-spacing:1.7px;margin-top:5px;color:var(--muted);font-weight:750}.top-actions{display:flex;gap:8px;align-items:center}.top-actions button{min-height:37px;font-size:11px;padding:7px 11px}.icon-button{width:37px;padding:0!important;font-size:20px!important;background:var(--soft)}#root{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding-bottom:92px}.modal-open #root{overflow:hidden}body>footer{display:none}.workspace{width:min(1120px,100%);margin:auto;padding:25px 24px 24px}.title-row{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:22px}.title-row h1{margin-bottom:5px}.title-row p{margin-bottom:0}.title-row .eyebrow{font-size:8px}.title-row .muted{font-size:12px}.title-row>.split{flex-wrap:wrap;justify-content:flex-end}.title-row select{font-size:12px}.title-row .button-link{font-size:11px}
.app-nav{position:fixed;z-index:18;bottom:12px;left:50%;transform:translateX(-50%);display:flex;align-items:center;justify-content:center;gap:6px;width:min(870px,calc(100% - 32px));padding:8px 10px;border:1px solid var(--line);border-radius:22px;background:var(--white);box-shadow:0 -6px 30px #0d315510}.app-nav:before{content:'';position:absolute;top:0;left:24px;right:24px;height:2px;background:linear-gradient(90deg,transparent,#abc5e4,var(--gold),#cec5f2,transparent)}.app-nav button{display:flex;align-items:center;justify-content:center;gap:8px;flex:1 1 0;border:1px solid transparent;min-width:0;min-height:52px;padding:8px 10px;background:transparent;box-shadow:none;color:var(--muted);font-size:12px}.app-nav button>span{display:grid;place-items:center}.app-nav button strong{font-size:11px;font-weight:700}.app-nav button.selected{background:linear-gradient(135deg,var(--navy),#216b9a);color:white;border-color:#ffffff20;box-shadow:0 6px 16px #0d315520}.app-nav i{display:inline-grid;place-items:center;min-width:17px;height:17px;padding:0 3px;font:700 10px 'Segoe UI',sans-serif;font-style:normal;border-radius:6px;background:#d9d3f0;color:#143b62}.tabs{display:flex;gap:8px;overflow:auto;scrollbar-width:none}.tabs::-webkit-scrollbar{display:none}
.home-welcome,.hero{position:relative;overflow:hidden;border:1px solid #214e78;border-radius:23px;padding:25px 28px;background:linear-gradient(125deg,#0b2f53,#15517f 74%,#34679d);color:white;box-shadow:var(--shadow)}.home-welcome{display:flex;align-items:center;justify-content:space-between;gap:18px}.home-welcome h2,.hero h1{color:white}.home-welcome .eyebrow,.hero .eyebrow{color:#c9daef}.home-welcome p,.hero p{color:#dae6f3;max-width:680px}.home-welcome p:last-child,.hero p:last-child{margin:0}.welcome-symbol{display:grid;place-items:center;flex:0 0 82px;height:82px;border-radius:24px;background:#ffffff0e;border:1px solid #ffffff22;transform:rotate(-7deg)}.welcome-symbol svg{width:42px;height:42px;color:#e1daf5}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:13px;margin:18px 0}.stat{padding:17px 20px;background:var(--white);border:1px solid var(--line);border-radius:16px;box-shadow:0 4px 14px #0d315504}.stat small{display:block;color:var(--muted);margin-bottom:6px;font-size:11px}.stat strong{font-size:26px;line-height:1.1;letter-spacing:-.8px}.home-action-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.action-tile{position:relative;display:grid;grid-template-columns:48px minmax(0,1fr) auto;align-items:center;gap:15px;padding:19px;text-align:left;min-height:94px;border:1px solid #ccdeee;background:linear-gradient(135deg,var(--white),#f1f7fe);border-radius:19px;overflow:hidden;box-shadow:0 4px 16px #0d315503}.action-tile:before{content:'';position:absolute;top:0;left:16px;right:16px;height:3px;background:#85b1df;border-radius:0 0 5px 5px}.tone-lilac{background:linear-gradient(135deg,var(--white),#f2eefc);border-color:#e1d8f7}.tone-lilac:before{background:#b3a2e0}.tone-cyan{background:linear-gradient(135deg,var(--white),#edf8fb);border-color:#d0e8ee}.tone-cyan:before{background:#7bc4d1}.tone-sand{background:linear-gradient(135deg,var(--white),#fdf7e9);border-color:#ede1c8}.tone-sand:before{background:#ddc27a}.tile-icon{display:grid;place-items:center;width:44px;height:44px;border:1px solid #cfe0f2;border-radius:14px;background:#fff;color:#215c91}.tone-lilac .tile-icon{color:#75609f;border-color:#dfd5f0}.tile-copy{display:block;min-width:0}.tile-copy strong{display:block;font-size:17px;line-height:1.25;margin-bottom:6px}.tile-copy small{display:block;color:var(--muted);font-size:11px;line-height:1.45}.tile-arrow{display:grid;place-items:center;width:30px;height:30px;border-radius:10px;background:#edf4fc;color:#3e719e}.tile-arrow svg{width:17px;height:17px}.tile-badge{display:grid;place-items:center;min-width:26px;height:26px;border-radius:9px;font-size:11px;background:#e9e3f6;color:#5c4d86}.home-status{display:flex;align-items:center;gap:8px;margin-top:17px;font-size:11px;color:var(--muted)}.home-status small{margin-left:auto;font-size:10px}.status-dot{width:7px;height:7px;border-radius:50%;background:#ba9d62}.status-dot.live{background:#329a78}.section-head,.order-head,.dialog-head,.dialog-head>div{min-width:0}.section-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:18px}.section-head h2{margin:0}.section-intro{margin:0 0 20px}.section-intro h2{margin-bottom:8px}.section-intro p{color:var(--muted);font-size:13px;margin-bottom:0}.count{font-size:12px;color:var(--muted);font-weight:500;margin-left:8px}.settings-menu{display:grid;grid-template-columns:1fr 1fr;gap:12px}.settings-menu .action-tile{min-height:94px}
label{display:block;font-size:12px;font-weight:650;margin-bottom:15px;line-height:1.4}input,textarea,select{display:block;width:100%;min-width:0;margin-top:7px;padding:11px 12px;border:1px solid var(--line);border-radius:11px;background:var(--white);color:var(--ink);outline:none;font-size:14px;min-height:44px}textarea{resize:vertical}input:focus,textarea:focus,select:focus{border-color:#87abd6;box-shadow:0 0 0 3px #174ea60d}input[type=checkbox]{width:20px;height:20px;min-height:20px;margin:0;accent-color:var(--blue);flex-shrink:0}.check{display:flex;align-items:flex-start;gap:10px;padding:10px 0;line-height:1.55}.check input{margin-top:1px}.check .hint{font-weight:400}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.panel{padding:22px;border:1px solid var(--line);border-radius:18px;background:var(--white);box-shadow:var(--shadow)}.notice,.success{padding:16px;border:1px solid var(--line);background:var(--soft);border-radius:14px;margin:16px 0}.notice strong,.success strong{font-size:13px}.notice p,.success p{font-size:12px;color:var(--muted);margin:6px 0 0}.notice button{margin-top:10px}.link-box{display:flex;flex-wrap:wrap;gap:12px;align-items:center;margin-top:18px;padding:16px;border:1px solid var(--line);border-radius:14px;background:var(--soft);word-break:break-word}.shop-qr{display:block;width:164px;height:164px;margin:18px auto;background:white;padding:6px;border:1px solid var(--line);border-radius:14px}.config-page label:has(input[name^=hours_]){display:grid;grid-template-columns:90px minmax(0,1fr);align-items:center;gap:10px;margin-bottom:10px}.config-page label:has(input[name^=hours_]) input{margin:0}
dialog{width:min(650px,calc(100vw - 40px));max-width:none;max-height:calc(100dvh - 40px);margin:auto;padding:0;border:1px solid var(--line);border-radius:23px;background:var(--white);color:var(--ink);box-shadow:0 25px 90px #06172d40;overflow:hidden}dialog[open]{display:flex;flex-direction:column}dialog:not([open]){display:none}dialog::backdrop{background:#142e4b80;backdrop-filter:blur(5px)}.task-modal{height:min(740px,calc(100dvh - 40px))}.wide-modal{width:min(1120px,calc(100vw - 40px));height:calc(100dvh - 40px)}.modal-bar,.dialog-head{display:flex;align-items:center;justify-content:space-between;gap:15px;flex-shrink:0;padding:18px 23px;border-bottom:1px solid var(--line);background:linear-gradient(115deg,var(--white),var(--soft));z-index:2}.modal-bar .eyebrow,.dialog-head .eyebrow{font-size:8px;color:#597fa7;margin:0 0 5px}.modal-bar h2,.dialog-head h2{font-size:21px;margin:0;overflow-wrap:anywhere}.modal-bar button,.dialog-head button{font-size:11px;min-height:40px;white-space:nowrap;flex-shrink:0;box-shadow:0 4px 12px #0d315505}.bar-actions{display:flex;gap:7px}.modal-body{padding:24px;flex:1;min-height:0;overflow:auto;overscroll-behavior:contain}.form-modal-body{display:flex;flex-direction:column;min-height:0;flex:1;overflow:hidden}.form-modal-body>form{display:flex;flex-direction:column;min-height:0;flex:1;margin:0}.config-page,.product-page,.cart-stage{flex:1;min-height:0;overflow:auto;padding:23px;overscroll-behavior:contain}.modal-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;padding:15px 23px;flex-shrink:0;border-top:1px solid var(--line);background:var(--white);z-index:3}.modal-actions>.primary{min-width:170px}.step-nav{display:flex;gap:5px;flex-shrink:0;padding:12px 20px;border-bottom:1px solid var(--line);background:var(--white)}.step-nav button{display:flex;align-items:center;justify-content:center;gap:8px;flex:1;min-width:0;min-height:40px;padding:8px;border-color:transparent;background:transparent;color:var(--muted);font-size:11px}.step-nav button span{display:grid;place-items:center;width:22px;height:22px;font-size:10px;border-radius:7px;background:var(--soft)}.step-nav button.selected{background:var(--navy);color:#fff}.step-nav button.selected span{background:#ffffff1a;color:#e5dff4}#product-dialog{height:min(690px,calc(100dvh - 40px))}#product-form{display:flex;flex:1;min-height:0;flex-direction:column}.photo-upload{padding:18px;border:1px dashed #9cb8d7;border-radius:15px;background:var(--soft)}.photo-upload input{margin-bottom:12px;font-size:12px}.photo-preview{display:block;width:100%;height:230px;object-fit:contain;background:var(--soft);border-radius:15px;margin:15px 0}.business-form{margin:0}.business-form>h2{display:none}.business-form>.primary{width:100%;margin-top:10px}.business-form>.quiet{width:100%;margin-top:8px}#confirm-dialog{width:min(460px,calc(100vw - 32px))}#confirm-form{padding:25px}#confirm-form h2{font-size:23px}#confirm-form>p:not(.eyebrow){font-size:13px;color:var(--muted)}#confirm-form .order-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:24px}#payment-dialog{max-height:calc(100dvh - 40px)}#payment-content{padding:23px;overflow:auto;min-height:0}#payment-content>p.price{font-size:35px;letter-spacing:-1px}#payment-content>button{margin:4px 0}#checkout-link img{display:block;margin:12px auto;max-width:100%;border-radius:12px}#receipt-content{padding:23px;overflow:auto;min-height:0}#print-receipt{margin:0 23px 20px}#store-preview{flex:1;min-height:0;width:100%;border:0;background:var(--paper)}#open-client-app{width:100%}.receipt{padding:5px 0}.receipt p{font-size:13px}.receipt-line{display:flex;justify-content:space-between;gap:20px}.receipt .total{font-size:24px}hr{border:0;border-top:1px solid var(--line);margin:18px 0}
.filters{display:flex;gap:10px;margin-bottom:18px}.filters input,.filters select{margin:0}.filters input{flex:1}.filters select{max-width:200px;font-size:12px}.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(175px,1fr));gap:14px;min-width:0}.product{display:flex;flex-direction:column;min-width:0;border:1px solid var(--line);background:var(--white);border-radius:18px;overflow:hidden;box-shadow:0 5px 16px #0d315504}.photo{display:grid;place-items:center;height:132px;background:linear-gradient(140deg,#e3edf8,#edf2fb);overflow:hidden}.photo img{width:100%;height:100%;object-fit:cover}.initial{font:55px Georgia,serif;color:#88a5c6}.product:nth-child(3n+2) .photo{background:linear-gradient(140deg,#e9e3f5,#f3effb)}.product:nth-child(3n+2) .initial{color:#aa99c9}.product:nth-child(3n+3) .photo{background:linear-gradient(140deg,#deeff4,#ecf7fa)}.product-peek{display:block;padding:0;border:0;border-radius:0;text-align:left;width:100%;box-shadow:none;background:transparent;font-weight:700}.product-body{display:flex;flex-direction:column;gap:6px;padding:14px;flex:1}.product-body .category{font-size:8px;letter-spacing:1.2px;text-transform:uppercase;color:#6686a7;font-weight:800}.product-body>strong,.product-body h3{font-size:15px;line-height:1.25;margin:0;overflow-wrap:anywhere}.product-body p{color:var(--muted);font-size:12px;margin:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.product-buy{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:0 14px 14px;margin-top:auto}.product-buy>span{min-width:0}.price{font-size:21px;font-weight:800;letter-spacing:-.4px}.stock{display:block;font-size:10px;color:var(--muted);line-height:1.5}.add-product{width:38px;min-height:38px;display:grid;place-items:center;padding:8px;border-color:#c5d7eb;color:#174ea6;background:#edf4fc;border-radius:12px}.add-product svg{width:19px;height:19px}.product-bottom{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:auto;padding-top:10px}.product-bottom button{font-size:11px;min-height:35px;padding:7px 10px}.shop-layout{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:20px;align-items:start}.shop-layout>section{min-width:0}.basket{position:sticky;top:0;padding:20px}.basket>h2{font-size:19px}.basket>p.hint{font-size:11px}.basket-row{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;padding:14px 0;border-bottom:1px solid var(--line)}.basket-row h3{font-size:13px;margin:0}.basket-row>strong{font-size:13px}.stepper{display:flex;gap:10px;align-items:center;margin-top:8px}.stepper button{display:grid;place-items:center;min-height:29px;height:29px;width:29px;padding:0;border-radius:8px}.total,.checkout-amount{display:flex;align-items:center;justify-content:space-between;gap:12px;font-weight:800;margin:18px 0;font-size:23px}.checkout-amount{padding:16px;border:1px solid var(--line);border-radius:13px;background:var(--soft)}.checkout-amount>span{font-size:12px;font-weight:600}.checkout-amount>strong{font-size:25px}#cart-dialog #basket{padding:0;display:flex;flex-direction:column;min-height:0;flex:1;overflow:hidden}#cart-dialog #basket>h2,#cart-dialog #basket>p{display:none}#cart-dialog #basket>div.notice{margin:12px 20px}.cart-stage>p.hint{margin-bottom:16px}.cart-stage .total{margin-top:22px}.basket-shortcut{position:fixed;z-index:19;right:26px;bottom:104px;padding:11px 18px;font-size:12px;box-shadow:0 8px 25px #0d31552b}#detail-body .photo{height:230px;border-radius:17px;margin-bottom:18px}#detail-body>.pill{margin-bottom:14px}
.order-summary{width:100%;display:grid;grid-template-columns:44px minmax(0,1fr) auto;gap:15px;align-items:center;text-align:left;padding:18px;border-radius:18px;margin-bottom:12px;background:var(--white);box-shadow:0 4px 15px #0d315503}.order-summary-icon{width:42px;height:44px;border-radius:13px;display:grid;place-items:center;background:var(--soft);color:#3c6d9d}.order-summary-copy{min-width:0}.order-summary-copy>strong{display:block;font-size:14px;line-height:1.4}.order-summary-copy>small{display:block;color:var(--muted);font-size:11px;margin-top:4px}.order-state{display:inline-block;color:#577392;font-size:10px;font-weight:700;margin-top:7px}.order-summary-end{display:flex;align-items:center;gap:12px}.order-summary-end>strong{font-size:18px}.order-summary-end>svg{width:18px;color:#8ca7c3}.order{padding:0;border:0;border-radius:0;box-shadow:none;margin:0;background:transparent}.order-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;flex-wrap:wrap}.order-head h3{font-size:18px;margin-bottom:6px}.order-head .hint{font-size:11px;margin:3px 0}.order-head .eyebrow{font-size:8px}.order-head .pill{margin-bottom:5px}.order-lines{padding:15px 0;margin:15px 0;border-block:1px solid var(--line)}.order-lines p{font-size:14px;margin:6px 0}.order-actions{display:flex;flex-wrap:wrap;gap:8px}.order .section-head{flex-wrap:wrap;margin:15px 0 0}.order .section-head .order-actions{justify-content:flex-end}.order-actions button{font-size:12px}.status-NEW{background:#fff5dc;color:#87631d;border-color:#ecdfb8}.status-PREPARING{background:#eaf2fd;color:#275e9c}.status-READY{background:#e8f6f0;color:#286f56}.status-CANCELLED{background:#fceff0;color:#a04b57}.pre-line{white-space:pre-line}.overview-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.overview-grid .panel p{font-size:13px}.mode-pills{display:flex;gap:7px;flex-wrap:wrap;margin-top:16px}.hero .pill{background:#ffffff10;border-color:#ffffff2a;color:white}.catalog-panel>.section-head h2{font-size:19px}#client-content{margin-top:20px}#client-content>.section-head h2{font-size:20px}#client-content>.section-head button{font-size:11px}.hero h1{font-size:28px;margin-bottom:12px}.empty{padding:30px 20px;text-align:center;border:1px dashed #bacce0;border-radius:17px;background:var(--white);color:var(--muted)}.empty h3{color:var(--ink)}.empty p{font-size:13px;margin:0}.loading{padding:60px;text-align:center;color:var(--muted)}.message{position:fixed;z-index:10000;top:86px;right:20px;width:max-content;max-width:min(440px,calc(100vw - 32px));padding:14px 18px;background:var(--navy);border:1px solid #ffffff20;color:white;font-size:13px;border-radius:14px;box-shadow:0 12px 35px #08263f30;pointer-events:none}.message.error{background:#983d4c}.auth{width:min(980px,100%);margin:30px auto;display:grid;grid-template-columns:1fr 1fr;gap:25px;align-items:center;padding:20px}.auth .hero{padding:35px;min-height:380px;display:flex;flex-direction:column;justify-content:center}.auth h1{font-size:34px}.auth .features{font-size:12px;line-height:2.1;padding-left:18px;color:#dbe8f6;margin-bottom:0}.auth .panel{padding:28px}.auth .primary{width:100%}.auth .panel>.muted{font-size:13px}.auth .quiet{margin-top:10px}
html[data-theme=dark] .action-tile{background:linear-gradient(135deg,#142942,#102238);border-color:var(--line)}html[data-theme=dark] .tile-icon{background:#1b3554;border-color:#36506e;color:#b8d6f3}html[data-theme=dark] .tone-lilac .tile-icon{color:#dbd0f4}html[data-theme=dark] .tile-arrow{background:#213d5d;color:#b4d1ef}html[data-theme=dark] .photo{background:linear-gradient(140deg,#182e49,#243e60)}html[data-theme=dark] .product:nth-child(3n+2) .photo{background:linear-gradient(140deg,#2b2b49,#342e53)}html[data-theme=dark] .product:nth-child(3n+3) .photo{background:linear-gradient(140deg,#163449,#1b4856)}html[data-theme=dark] .product-body .category{color:#a5bedc}html[data-theme=dark] .add-product{color:#b9d9f9;background:#1b3759;border-color:#36516f}html[data-theme=dark] .brand-icon{border-color:#526d8c}html[data-theme=dark] .home-welcome,html[data-theme=dark] .hero{border-color:#355477}html[data-theme=dark] .order-state{color:#a9bfda}html[data-theme=dark] .button-link{color:var(--ink)}html[data-theme=dark] a{color:#a9c7f5}
@media(max-width:900px){.shop-layout{grid-template-columns:minmax(0,1fr) 280px}.workspace{padding:22px 20px}.title-row{align-items:flex-start}.title-row>.split{max-width:45%}.overview-grid{grid-template-columns:1fr}.welcome-symbol{width:65px;height:65px;flex-basis:65px}.home-welcome{padding:22px}.home-status small{display:none}}
@media(max-width:650px){.topbar{flex-basis:66px;padding:9px 17px}.brand{font-size:18px;gap:9px}.brand-icon{width:37px;height:37px;border-radius:12px;font-size:26px}.brand small{font-size:7px}.top-actions{gap:5px}.top-actions button{font-size:10px;padding:6px 8px;min-height:34px}.top-actions .icon-button{width:33px}.workspace{padding:19px 17px 24px}.title-row{flex-wrap:wrap;gap:12px;margin-bottom:18px}.title-row h1{font-size:24px}.title-row>.split{max-width:none;width:100%;justify-content:flex-start}.title-row>.split select{flex:1;max-width:none;min-width:0;width:100px}.title-row>.split button{padding:8px 10px;font-size:11px}.title-row .eyebrow{display:none}.title-row .muted{font-size:10px}.home-welcome{padding:21px 19px;border-radius:20px}.home-welcome .eyebrow{font-size:8px}.home-welcome h2{font-size:22px;margin-bottom:8px}.home-welcome p{font-size:12px}.welcome-symbol{display:none}.stats{gap:8px;margin:13px 0}.stat{padding:13px 11px;border-radius:13px}.stat small{font-size:9px;margin-bottom:7px}.stat strong{font-size:22px}.home-action-grid{gap:10px}.action-tile{padding:15px 13px;min-height:113px;grid-template-columns:1fr auto;gap:10px;align-items:start;border-radius:17px}.tile-icon{width:34px;height:34px;border-radius:11px}.tile-icon svg{width:22px;height:22px}.tile-copy{grid-column:1/-1;grid-row:2}.tile-copy strong{font-size:14px;margin-bottom:4px}.tile-copy small{font-size:10px}.tile-arrow,.tile-badge{grid-column:2;grid-row:1;width:24px;height:24px}.tile-arrow svg{width:14px;height:14px}.home-status{font-size:10px;margin-top:13px}.app-nav{bottom:0;left:0;transform:none;width:100%;padding:7px 6px calc(8px + env(safe-area-inset-bottom));gap:2px;border-radius:22px 22px 0 0;border-bottom:0;border-inline:0;box-shadow:0 -8px 24px #0d315510}.app-nav button{flex-direction:column;gap:4px;padding:6px 2px;min-height:57px;border-radius:15px}.app-nav button strong{font-size:9px}.app-nav button svg{width:21px;height:21px}.app-nav button>span{width:29px;height:26px}.app-nav .nav-refresh{display:none}.app-nav i{font-size:8px;min-width:13px;height:13px;border-radius:4px}#root{padding-bottom:84px}.section-head{gap:8px;margin-bottom:15px;flex-wrap:wrap}.section-head h2{font-size:19px}.section-head .primary{font-size:11px;padding:10px 12px}.section-intro h2{font-size:20px}.section-intro p{font-size:12px}.section-intro{margin-bottom:16px}.settings-menu{gap:10px}.settings-menu .action-tile{min-height:127px}.settings-menu .tile-copy strong{font-size:14px}.settings-menu .tile-copy small{font-size:10px}.notice{padding:14px;margin:15px 0}.filters{gap:8px;flex-wrap:wrap}.filters input{width:100%;flex:auto}.filters select{width:100%;max-width:none}.grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.photo{height:112px}.product{border-radius:16px}.product-body{padding:12px 12px 8px}.product-body>strong,.product-body h3{font-size:14px}.product-body .category{font-size:7px;letter-spacing:.8px}.product-body p{font-size:11px}.product-buy{padding:6px 12px 13px}.price{font-size:19px}.stock{font-size:9px}.add-product{width:33px;min-height:33px;padding:6px;border-radius:10px}.product-bottom{flex-wrap:wrap;padding-top:5px}.product-bottom button{font-size:10px}.shop-layout{display:block}.basket{margin-top:16px;position:static;padding:16px}.basket-row{padding:12px 0}.basket-shortcut{left:17px;right:17px;width:calc(100% - 34px);bottom:90px;padding:12px;font-size:12px}.hero{padding:22px 20px;border-radius:20px}.hero h1{font-size:25px}.hero p{font-size:12px}.mode-pills{gap:6px;margin-top:14px}.mode-pills .pill{font-size:9px;padding:4px 8px}#client-content{margin-top:19px}.overview-grid{gap:12px}.panel{padding:18px}.order-summary{padding:15px 12px;gap:10px;grid-template-columns:35px minmax(0,1fr) auto;border-radius:16px}.order-summary-icon{width:34px;height:38px;border-radius:11px}.order-summary-icon svg{width:21px;height:21px}.order-summary-copy>strong{font-size:12px}.order-summary-copy>small{font-size:10px}.order-summary-end{gap:5px;flex-direction:column;align-items:flex-end}.order-summary-end>strong{font-size:15px}.order-state{font-size:9px}.order-summary-end>svg{width:14px;height:14px}.order .section-head .order-actions{width:100%;justify-content:flex-start}.order-actions button{flex:1;min-width:90px;font-size:11px}.order-head h3{font-size:17px}.order-head .hint{font-size:10px}.order-head .pill{font-size:10px}.auth{display:block;margin:0 auto;padding:20px 17px}.auth .hero{min-height:0;padding:24px;margin-bottom:16px}.auth h1{font-size:28px}.auth .hero .features{display:none}.auth .panel{padding:24px}.auth .hero p{font-size:12px}.auth .hero p:not(.eyebrow){margin:0}.message{top:75px;left:16px;right:16px;width:auto;max-width:none;font-size:12px}
dialog,.wide-modal,.task-modal,#product-dialog{width:calc(100vw - 16px);max-height:calc(100dvh - 16px);height:calc(100dvh - 16px);border-radius:21px;margin:auto}.modal-bar,.dialog-head{padding:15px 16px;gap:10px;min-height:77px}.modal-bar h2,.dialog-head h2{font-size:18px;letter-spacing:-.4px}.modal-bar .eyebrow,.dialog-head .eyebrow{font-size:7px;letter-spacing:1.1px}.modal-bar button,.dialog-head button{font-size:10px;padding:8px 10px;min-height:37px}.modal-body,.config-page,.product-page,.cart-stage{padding:18px 16px}.modal-actions{padding:13px 16px calc(13px + env(safe-area-inset-bottom));gap:8px}.modal-actions>button{font-size:12px}.modal-actions>.primary{min-width:0;flex:1}.step-nav{padding:10px 12px;gap:3px}.step-nav button{font-size:10px;gap:6px;padding:8px 5px;min-height:38px}.step-nav button span{width:20px;height:20px;font-size:9px}.form-grid{gap:11px}.config-page label:has(input[name^=hours_]){grid-template-columns:80px minmax(0,1fr)}input,textarea,select{font-size:14px;padding:11px 10px}label{font-size:11px;margin-bottom:13px}.check{font-size:12px;padding:9px 0}#payment-dialog,#receipt-dialog{height:auto;max-height:calc(100dvh - 16px)}#payment-content,#receipt-content{padding:19px 16px}#confirm-dialog{height:auto;width:calc(100vw - 28px);max-height:calc(100dvh - 32px)}#confirm-form{padding:24px 21px}#print-receipt{margin-inline:16px}.photo-preview{height:220px}.photo-upload{padding:15px}#detail-body .photo{height:225px}.cart-stage .checkout-amount{padding:13px}.checkout-amount>strong{font-size:24px}.checkout-amount>span{font-size:11px}.receipt-line{gap:10px}.link-box{padding:13px;gap:9px}.button-link{font-size:11px}.home-welcome h1{font-size:27px}}
@media(max-width:350px){.topbar{padding-inline:12px}.top-actions button{font-size:9px;padding-inline:6px}.brand{font-size:16px;gap:7px}.workspace{padding-inline:13px}.stat strong{font-size:19px}.stat small{font-size:8px}.tile-copy strong{font-size:13px}.tile-copy small{font-size:9px}.settings-menu .tile-copy strong{font-size:13px}.top-actions .icon-button{width:28px}.modal-bar h2,.dialog-head h2{font-size:16px}.bar-actions{gap:4px}.modal-bar button{padding:7px}.product-body>strong{font-size:13px}.product-buy{flex-wrap:wrap;gap:5px}.form-grid{grid-template-columns:1fr}.modal-actions{padding-inline:13px}.modal-actions button{font-size:11px}.title-row h1{font-size:22px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;scroll-behavior:auto!important}}
@media print{body{height:auto;background:white;overflow:visible}body>*{display:none!important}#receipt-dialog{display:block!important;position:static;height:auto;width:100%;max-height:none;overflow:visible;border:0;box-shadow:none;margin:0;border-radius:0;color:#000;background:white}#receipt-dialog .no-print{display:none!important}#receipt-dialog::backdrop{display:none}#receipt-content{overflow:visible;padding:0}}
 dialog>.message{position:absolute;top:84px;left:16px;right:16px;width:auto;max-width:none}#confirm-dialog>.message{top:12px}#payment-dialog>.message{top:80px}
 @media(min-width:900px){.workspace{padding-top:18px}.title-row{margin-bottom:15px}.title-row>.split select{max-width:190px}#home-content{display:grid;grid-template-columns:1fr 1fr;gap:14px}#home-content>.home-welcome{padding:21px 23px;min-height:122px}#home-content .home-welcome h2{font-size:23px}#home-content .home-welcome p{font-size:12px}#home-content .welcome-symbol{display:none}#home-content>.stats{margin:0;align-items:stretch;gap:10px}#home-content .stat{display:flex;flex-direction:column;justify-content:center;padding:15px}#home-content .stat strong{font-size:25px}#home-content>.home-action-grid,#home-content>.home-status{grid-column:1/-1}#home-content .home-status{margin-top:0}#home-content .action-tile{min-height:84px;padding:16px 18px}}
.client-home-actions{margin-top:2px}.empty-cart{margin:24px;border:0;padding:28px 15px;background:transparent}.empty-cart .tile-icon{margin:0 auto 20px;width:58px;height:58px}.empty-cart .primary{margin-top:22px}#client-task>.section-head h2{display:none}#client-task>.section-head{justify-content:flex-end}.client-home-actions+.notice{margin-bottom:0}@media(max-width:650px){#root .hero>p:not(.eyebrow){display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.client-home-actions .action-tile{min-height:118px}.client-home-actions .tile-copy strong{font-size:15px}}
@media(max-width:650px) and (max-height:740px){.workspace{padding-top:13px;padding-bottom:16px}.title-row{margin-bottom:13px;gap:8px}.title-row .muted{display:none}.home-welcome{padding:15px 17px}.home-welcome p:not(.eyebrow){display:none}.home-welcome h2{margin:0;font-size:21px}.stats{margin:10px 0;gap:7px}.stat{padding:10px}.stat strong{font-size:20px}.home-action-grid .action-tile,.client-home-actions .action-tile{min-height:94px;padding:12px}.home-status{display:none}#root .hero>p:not(.eyebrow){-webkit-line-clamp:1}.hero{padding:18px}.hero h1{font-size:23px}}
@media(max-width:350px){.settings-menu .tile-copy small{display:none}.settings-menu .action-tile{min-height:100px}.settings-menu+.notice p{display:none}.settings-menu+.notice{padding:12px;margin-block:12px}}
.modal-switcher{display:flex;flex-shrink:0;gap:4px;align-items:center;justify-content:center;padding:9px 16px;border-top:1px solid var(--line);background:var(--white)}.modal-switcher button{display:flex;align-items:center;justify-content:center;gap:8px;flex:1;min-width:0;padding:9px 5px;border-color:transparent;background:transparent;font-size:11px;color:var(--muted)}.modal-switcher button svg{width:20px;height:20px}.modal-switcher button.selected{background:var(--soft);color:var(--ink);border-color:var(--line)}@media(max-width:650px){.modal-switcher{padding:7px 6px calc(8px + env(safe-area-inset-bottom));gap:2px}.modal-switcher button{flex-direction:column;gap:4px;min-height:48px;padding:5px 2px;font-size:9px}.modal-switcher button svg{width:19px;height:19px}}
#cash-form>button[type=submit]{width:100%}.form-modal-body>.notice{flex-shrink:0;margin:12px 16px}

.wallet-address{overflow-wrap:anywhere;font-size:.78rem}#ptas-body>button{margin-block:6px}#ptas-body>img{display:block;max-width:100%;margin:12px auto}

.business-identity{display:flex;align-items:center;gap:13px;min-width:0}.business-identity h1,.business-identity h2{min-width:0;overflow-wrap:anywhere}.business-logo{width:60px;height:60px;flex:0 0 auto;object-fit:contain;background:#fff;border:1px solid var(--line);border-radius:16px;padding:6px}.business-logo-editor{margin-bottom:18px;padding:14px;border:1px solid var(--line);border-radius:16px;background:var(--soft)}.business-logo-editor .logo-preview{width:96px;height:96px;display:block;margin:0 auto 12px}.business-logo-editor .logo-preview[hidden]{display:none}.business-logo-editor .photo-upload{margin:0}.business-logo-editor .hint:last-child:empty{display:none}.receipt>.business-logo{width:72px;height:72px;margin-bottom:10px}@media(max-width:650px){.business-identity{gap:10px}.business-identity .business-logo{width:48px;height:48px;border-radius:13px;padding:4px}}

#scanner-code{font-size:20px;letter-spacing:.05em;font-family:ui-monospace,monospace}#scanner-body>button{width:100%;margin-block:7px}#scanner-result{overflow-wrap:anywhere}#scanner-form>button{margin-top:8px}

#scanner-code::placeholder{font-size:15px;letter-spacing:0}

.camera-scanner{padding:16px;border:1px solid var(--line);border-radius:18px;background:var(--soft);margin-bottom:16px}.camera-scanner>p:last-child{margin-bottom:0}#camera-video{display:block;width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:14px;background:#102b44;margin-top:12px}#camera-preview[hidden]{display:none}#camera-status{overflow-wrap:anywhere}

.live-count{display:inline-flex;align-items:center;justify-content:center;min-width:1.35rem;padding:.1rem .3rem;border-radius:1rem;background:#663bb0;color:white;font-size:.75rem;margin-left:.35rem}#table-qr-body{text-align:center}#tables-body .order-actions{margin-top:1rem}

/* Menús con el mismo color de referencia en inicio, navegación y modales. */
.action-tile{--menu-start:#205cce;--menu-end:#123d91;--menu-glow:#75baff}
.action-tile[data-home=pos]{--menu-start:#147c60;--menu-end:#0b533f;--menu-glow:#8be2b8}
.action-tile.tone-lilac{--menu-start:#8352cb;--menu-end:#573398;--menu-glow:#d1aaff}
.action-tile.tone-cyan{--menu-start:#087f8c;--menu-end:#075867;--menu-glow:#71e1df}
.action-tile.tone-sand{--menu-start:#b35423;--menu-end:#80351b;--menu-glow:#ffd090}
.action-tile#open-alerts{--menu-start:#c23e70;--menu-end:#862953;--menu-glow:#ffb5d3}
.action-tile#open-tables{--menu-start:#b35423;--menu-end:#80351b;--menu-glow:#ffd090}
.action-tile[class],html[data-theme=dark] .action-tile[class]{isolation:isolate;color:#fff;border-color:#ffffff24;background:linear-gradient(120deg,var(--menu-start),var(--menu-end));box-shadow:0 8px 20px color-mix(in srgb,var(--menu-end) 19%,transparent);transition:transform .18s ease,box-shadow .18s ease}
.action-tile:before{left:0;right:0;height:4px;background:var(--menu-glow);opacity:.85}
.action-tile:after{content:'';position:absolute;z-index:-1;pointer-events:none;right:-25px;top:-50px;width:160px;height:160px;border-radius:50%;border:24px solid #ffffff09;background:#ffffff05}
.action-tile .tile-copy strong{color:#fff;letter-spacing:-.2px}
.action-tile .tile-copy small{color:#ffffffe0}
.action-tile .tile-icon,html[data-theme=dark] .action-tile .tile-icon{color:#fff;background:#ffffff20;border-color:#ffffff40;box-shadow:inset 0 1px 0 #ffffff18}
.action-tile .tile-arrow,html[data-theme=dark] .action-tile .tile-arrow{background:#ffffff1c;color:#fff;border:1px solid #ffffff22}
.action-tile .tile-badge{background:#ffe49c;color:#493510;box-shadow:0 3px 8px #00000014;font-weight:850}
.action-tile:focus-visible{outline:3px solid var(--menu-glow);outline-offset:4px}
:is(.app-nav,.modal-switcher) button{--nav-color:#245fbe;--nav-end:#173f87;border:1px solid color-mix(in srgb,var(--nav-color) 18%,transparent);color:var(--nav-color);background:color-mix(in srgb,var(--nav-color) 7%,var(--white));transition:background .18s ease,transform .18s ease,box-shadow .18s ease}
:is(.app-nav,.modal-switcher) :is([data-tab=pos],[data-modal-route=pos],#nav-basket){--nav-color:#116b52;--nav-end:#084c3d}
:is(.app-nav,.modal-switcher) :is([data-tab=products],[data-modal-route=products],#client-catalog){--nav-color:#7040b2;--nav-end:#482a82}
:is(.app-nav,.modal-switcher) :is([data-tab=orders],[data-modal-route=orders],#client-orders){--nav-color:#087683;--nav-end:#07515f}
:is(.app-nav,.modal-switcher) :is([data-tab=settings],[data-modal-route=settings],#client-info){--nav-color:#a14b22;--nav-end:#74331c}
.app-nav button>span:first-child{width:32px;height:32px;border-radius:10px;background:color-mix(in srgb,var(--nav-color) 11%,transparent)}
:is(.app-nav,.modal-switcher) button.selected{color:#fff;border-color:transparent;background:linear-gradient(125deg,var(--nav-color),var(--nav-end));box-shadow:0 5px 14px color-mix(in srgb,var(--nav-color) 25%,transparent)}
.app-nav button.selected>span:first-child{background:#ffffff20}
.app-nav:before{height:3px;background:linear-gradient(90deg,#497cf2,#3eb598,#a280e3,#33b5c1,#e89b53);left:22px;right:22px}
.modal-switcher{gap:7px;background:linear-gradient(115deg,var(--white),var(--soft))}
.home-welcome{background:radial-gradient(ellipse at 100% 0%,#8b65d65c,transparent 65%),linear-gradient(120deg,#153e7d,#175a94);border-color:#3c6ca4}
.stat:nth-child(1){border-top:3px solid #8b63d2;background:linear-gradient(135deg,var(--white),color-mix(in srgb,#9168d9 9%,var(--white)))}
.stat:nth-child(2){border-top:3px solid #1696a0;background:linear-gradient(135deg,var(--white),color-mix(in srgb,#1696a0 8%,var(--white)))}
.stat:nth-child(3){border-top:3px solid #d19037;background:linear-gradient(135deg,var(--white),color-mix(in srgb,#d19037 9%,var(--white)))}
html[data-theme=dark] :is(.app-nav,.modal-switcher) button:not(.selected){color:color-mix(in srgb,var(--nav-color) 45%,#fff);background:color-mix(in srgb,var(--nav-color) 15%,var(--white));border-color:color-mix(in srgb,var(--nav-color) 40%,var(--line))}
@media(hover:hover) and (prefers-reduced-motion:no-preference){.action-tile:hover:not(:disabled){transform:translateY(-3px);border-color:#ffffff65;box-shadow:0 12px 24px color-mix(in srgb,var(--menu-end) 28%,transparent)}:is(.app-nav,.modal-switcher) button:hover:not(:disabled){transform:translateY(-2px);border-color:color-mix(in srgb,var(--nav-color) 55%,transparent)}}
@media(max-width:650px){.app-nav{gap:4px;padding:7px 6px}.app-nav button{padding:6px 2px}.app-nav button>span:first-child{width:29px;height:29px;border-radius:9px}.modal-switcher{gap:4px}.action-tile:after{width:120px;height:120px;right:-35px;top:-32px;border-width:18px}}
@media(prefers-reduced-motion:reduce){.action-tile,:is(.app-nav,.modal-switcher) button{transition:none}}
.action-tile#open-finance{--menu-start:#305fca;--menu-end:#253e88;--menu-glow:#a3c8ff}
.finance-banner{padding:17px 19px;border:1px solid var(--line);border-radius:17px;background:var(--soft);margin-bottom:17px}.finance-banner p:last-child{margin:7px 0 0;font-size:12px}.finance-banner.demo{background:color-mix(in srgb,#f6be43 14%,var(--white));border-color:#c69432}.finance-banner.demo>strong{color:#8b5615}html[data-theme=dark] .finance-banner.demo>strong{color:#ffe19b}
.finance-range{display:flex;align-items:end;gap:10px;flex-wrap:wrap;margin-bottom:16px}.finance-range label{flex:1;min-width:130px;margin:0}.finance-range button{min-height:44px}.finance-tabs{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:20px}.finance-tabs button{flex:1;min-width:120px;background:var(--soft);font-size:12px}.finance-tabs button.selected{background:linear-gradient(120deg,#305fca,#253e88);color:#fff;border-color:transparent}
.finance-periods{padding:13px;border:1px solid var(--line);border-radius:16px;background:var(--soft);margin-bottom:13px}.finance-periods nav{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px}.finance-periods nav button{font-size:11px;padding:9px 5px;min-width:0}.finance-periods nav button.selected{background:linear-gradient(125deg,#305fca,#253e88);color:white;border-color:transparent}.finance-period-title{display:flex;align-items:center;gap:9px;margin-top:12px}.finance-period-title>div{flex:1;min-width:0;text-align:center}.finance-period-title strong{display:block;font-size:15px;text-transform:capitalize}.finance-period-title small{display:block;color:var(--muted);font-size:11px;margin-top:4px}.finance-period-title>button{min-width:44px}.finance-evolution{margin-top:22px;border-top:1px solid var(--line);padding-top:19px}.finance-evolution .section-head{align-items:end}.finance-evolution .section-head label{margin:0;min-width:140px}.finance-table tfoot{background:var(--soft)}
@media(max-width:650px){.finance-periods nav{grid-template-columns:repeat(3,minmax(0,1fr))}.finance-periods nav button:last-child{grid-column:1/-1}.finance-period-title{flex-wrap:wrap}.finance-period-title>div{flex-basis:calc(100% - 110px)}.finance-period-title>#finance-period-current{width:100%}.finance-evolution .section-head{flex-direction:column;align-items:stretch}.finance-evolution .section-head label{width:100%}}
.finance-banner-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}.finance-banner-heading button{font-size:11px;padding:8px 11px;flex-shrink:0}.finance-period-title strong{text-transform:none}.finance-period-title strong::first-letter{text-transform:uppercase}
@media(min-width:360px) and (max-width:650px){.finance-periods nav{grid-template-columns:repeat(4,minmax(0,1fr))}.finance-periods nav button{font-size:10px}.finance-periods nav button:last-child{grid-column:span 2}}
.finance-charts{padding:20px;border:1px solid var(--line);border-radius:20px;background:var(--white);box-shadow:var(--shadow);margin:0 0 20px;min-width:0}.finance-charts>.section-head{align-items:start}.finance-charts h3{margin-bottom:0;font-size:19px}.finance-charts .eyebrow{color:var(--blue);font-size:8px}.fc-grouping{display:flex;gap:5px;flex-wrap:wrap}.fc-grouping button{min-height:44px;font-size:11px;padding:8px 11px;background:var(--soft)}.fc-grouping button.selected{background:#245ac2;color:#fff;border-color:#245ac2}.fc-legend{display:flex;gap:20px;flex-wrap:wrap;margin:18px 0 5px;font-size:12px;font-weight:750}.fc-legend>span{display:inline-flex;align-items:center;gap:7px}.fc-legend i{width:12px;height:12px;border-radius:3px;display:inline-block}.fc-sales-key{background:#2563eb}.fc-cost-key{background:#c65a28}.fc-legend i.fc-profit-key{height:3px;width:20px;background:#14816c;position:relative}.fc-profit-key:after{content:'';position:absolute;width:7px;height:7px;border:2px solid var(--white);border-radius:50%;background:#14816c;top:-4px;left:6px}
.fc-plot{width:100%;min-width:0;overflow:hidden}.finance-chart-svg{display:block;width:100%;height:260px;overflow:visible}.finance-chart-svg .fc-axis{fill:var(--muted);font:11px 'Segoe UI',system-ui,sans-serif}.fc-grid{stroke:var(--line);stroke-width:1;stroke-dasharray:3 4}.fc-zero{stroke:var(--muted);stroke-width:1.4}.fc-sales-bar{fill:#2563eb}.fc-cost-bar{fill:#c65a28}.fc-profit-line{fill:none;stroke:#14816c;stroke-width:2.5;stroke-linejoin:round;pointer-events:none}.fc-profit-dot{fill:#14816c;stroke:var(--white);stroke-width:1.5}.fc-profit-dot.negative{fill:#b42337}.fc-selected-band{fill:transparent}.fc-bucket{cursor:pointer;outline:none}.fc-bucket.selected .fc-selected-band{fill:#245ac20b}.fc-bucket:hover .fc-selected-band,.fc-bucket:focus-visible .fc-selected-band{fill:#245ac215;stroke:#6c8cd3;stroke-width:1}.fc-bucket.selected .fc-profit-dot{stroke:var(--ink);stroke-width:2}.fc-caption{margin:8px 0}.fc-page{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:15px}.fc-page>span{font-size:11px;color:var(--muted);text-align:center}.fc-page button{min-height:44px;font-size:11px;padding:9px 12px}.fc-period-picker{margin-bottom:12px}.fc-period-picker select{margin-top:5px}.fc-detail{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.fc-detail-heading{grid-column:1/-1;display:flex;align-items:baseline;justify-content:space-between;gap:10px}.fc-detail-heading strong{font-size:13px}.fc-detail-heading small{color:var(--muted);font-size:10px}.fc-value{background:var(--soft);border:1px solid var(--line);border-top:3px solid #2563eb;border-radius:12px;padding:12px;min-width:0;overflow-wrap:anywhere}.fc-value small{display:block;color:var(--muted);font-size:10px}.fc-value strong{display:block;font-size:21px;margin-top:6px}.fc-value.fc-cost{border-top-color:#c65a28}.fc-value.fc-profit{border-top-color:#14816c}.fc-value.fc-loss{border-top-color:#b42337}.fc-loss strong{color:var(--red)}.fc-empty{margin-top:14px}.finance-evolution .finance-table{font-variant-numeric:tabular-nums}
html[data-theme=dark] .finance-charts .eyebrow{color:#abc9ff}html[data-theme=dark] .fc-sales-bar{fill:#6999ff}html[data-theme=dark] .fc-cost-bar{fill:#efaa79}html[data-theme=dark] .fc-profit-line{stroke:#5ed6b5}html[data-theme=dark] .fc-profit-dot{fill:#5ed6b5}html[data-theme=dark] .fc-profit-dot.negative{fill:#ff94a4}html[data-theme=dark] .fc-bucket.selected .fc-selected-band{fill:#6999ff14}html[data-theme=dark] .fc-bucket:focus-visible .fc-selected-band{fill:#6999ff20}html[data-theme=dark] .fc-sales-key{background:#6999ff}html[data-theme=dark] .fc-cost-key{background:#efaa79}html[data-theme=dark] .fc-legend i.fc-profit-key,html[data-theme=dark] .fc-profit-key:after{background:#5ed6b5}
@media(max-width:650px){.finance-charts{padding:15px 10px}.finance-charts>.section-head{flex-direction:column;align-items:stretch;gap:12px}.finance-charts h3{font-size:18px}.fc-grouping{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px}.fc-grouping button{padding:7px 3px;font-size:10px}.fc-legend{gap:15px;font-size:11px}.fc-detail{gap:6px}.fc-value{padding:10px 7px}.fc-value strong{font-size:17px}.fc-detail-heading{display:block}.fc-detail-heading small{display:block;margin-top:5px}.fc-page button{padding:9px 7px;font-size:10px}.fc-caption{font-size:10px}}
.finance-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:18px}.finance-stats .stat strong{font-size:22px}.finance-stats .stat{min-width:0;overflow-wrap:anywhere}.finance-document-list{display:grid;gap:9px;margin-top:14px}.finance-document-row{display:flex;align-items:center;justify-content:space-between;gap:16px;text-align:left;padding:17px;background:var(--soft)}.finance-document-row span{min-width:0;overflow-wrap:anywhere}.finance-document-row small{display:block;color:var(--muted);font-size:11px;margin-top:5px}.finance-document-row>strong{white-space:nowrap}.finance-line-editor{border:1px solid var(--line);padding:16px;border-radius:14px;margin:0 0 13px;min-width:0;background:var(--soft)}.finance-line-grid{display:grid;grid-template-columns:.65fr 1fr 1fr;gap:9px}.finance-table-wrap{max-width:100%;overflow:auto;overscroll-behavior:contain;margin-bottom:18px}.finance-table{width:100%;border-collapse:collapse;font-size:12px}.finance-table th,.finance-table td{padding:12px 9px;border-bottom:1px solid var(--line);text-align:right;white-space:nowrap}.finance-table th:first-child,.finance-table td:first-child{text-align:left;white-space:normal;min-width:130px}.finance-table th{background:var(--soft);font-size:11px}.finance-table button{font-size:11px;text-align:left}.finance-entry{margin-bottom:12px}.finance-entry .receipt-line{padding:4px 0;font-size:12px}.finance-invoice{max-width:900px;margin:auto}.finance-watermark{text-align:center;font-size:18px;letter-spacing:2px;font-weight:850;padding:18px;color:#90451d;border:2px solid #c99049;border-radius:12px;margin-bottom:25px}.finance-invoice .form-grid>section{padding:18px;background:var(--soft);border-radius:12px}.finance-invoice .total{margin-top:20px}#finance-detail-body .total{font-size:20px}
@media(max-width:650px){.finance-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.finance-stats .stat{padding:13px 10px}.finance-stats .stat strong{font-size:19px}.finance-tabs{gap:5px}.finance-tabs button{min-width:40%;padding:10px 7px}.finance-line-grid{grid-template-columns:1fr 1fr}.finance-line-grid label:first-child{grid-column:1/-1}.finance-document-row{padding:14px 10px;gap:9px}.finance-document-row>strong{font-size:13px}.finance-banner{padding:14px}.finance-invoice .form-grid{grid-template-columns:1fr}}
@media print{body:has(#finance-print-dialog[open]) #receipt-dialog{display:none!important}body:has(#finance-print-dialog[open]) #finance-print-dialog{display:block!important;position:static;width:100%;height:auto;max-height:none;overflow:visible;border:0;box-shadow:none;margin:0;background:#fff;color:#000}#finance-print-dialog>.modal-bar,#finance-print-dialog>.modal-actions{display:none!important}#finance-print-body{overflow:visible;padding:0}.finance-invoice .finance-table-wrap{overflow:visible}.finance-invoice tr{break-inside:avoid}}
