.tb-hero{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:28px;border-radius:24px;color:white;background:linear-gradient(120deg,#5a1233,#a82d4d 60%,#eb9c65);box-shadow:0 12px 30px #68132930}.tb-hero span{font-size:.72rem;font-weight:800;letter-spacing:.14em}.tb-hero h1{margin:.4rem 0;font:700 clamp(28px,4vw,42px) Georgia,serif;color:white}.tb-hero p{margin:.5rem 0}.tb-hero>div:first-child{flex:1}.tb-meter{height:9px;max-width:380px;border-radius:8px;background:#ffffff55;overflow:hidden}.tb-meter i{display:block;height:100%;border-radius:8px;background:#ffd777;transition:width .5s}.tb-donut{width:100px;aspect-ratio:1;flex:none;border-radius:50%;display:flex;flex-direction:column;align-items:center;justify-content:center;background:radial-gradient(closest-side,#8b2945 72%,transparent 74%),conic-gradient(#ffd777 var(--progress),#ffffff55 0)}.tb-donut strong{font-size:1.5rem}.tb-controls{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:18px 0 5px}.tb-filters{display:flex;gap:6px;flex-wrap:wrap;flex:1}.tb-controls button,.tb-actions button{border:1px solid #e1c9ba;background:#fff7ef;color:#66223b;border-radius:10px;padding:9px 12px}.tb-controls button[aria-pressed=true],.tb-controls .tb-primary,.tb-primary{background:#741a38;color:#fff;border:0}.tb-search input{max-width:210px}.tb-count{color:#775f55;font-size:.8rem}.tb-board{display:grid;grid-template-columns:repeat(4,minmax(210px,1fr));gap:12px;overflow-x:auto;padding:3px 2px 16px}.tb-column{background:#f1e5d9;border-radius:17px;padding:12px;min-width:0}.tb-column header{display:flex;align-items:center;justify-content:space-between;background:none;padding:4px 5px;color:#5f2037}.tb-column h2{font-size:1rem;margin:0}.tb-column header span{border-radius:50%;background:#fff;padding:5px 9px;font-weight:700}.tb-cards{display:grid;gap:10px;align-content:start;min-height:65px}.tb-card{border-radius:14px;padding:14px;background:white;box-shadow:0 3px 12px #5f203712;overflow-wrap:anywhere;border-left:4px solid #d3b391}.tb-card.tb-overdue{border-left-color:#c62f46}.tb-card h3{font-size:1rem;margin:.65rem 0}.tb-card p{font-size:.85rem;white-space:pre-wrap}.tb-card-top,.tb-meta,.tb-actions{display:flex;justify-content:space-between;gap:8px}.tb-priority,.tb-outlet{font-size:.68rem;font-weight:800;text-transform:uppercase;padding:4px 7px;border-radius:7px;background:#f3e7d9}.tb-high{background:#fff0bc;color:#775500}.tb-urgent{background:#ffe0e3;color:#a61d37}.tb-meta{font-size:.73rem;color:#79675e;margin:14px 0}.tb-card label{font-size:.75rem;color:#79675e}.tb-card select{width:100%;margin:4px 0 0}.tb-actions{margin-top:10px}.tb-actions button{font-size:.75rem;padding:6px 10px}.tb-empty{font-size:.8rem;color:#856e62;padding:5px}.tb-modal{position:fixed;inset:0;z-index:1000;display:grid;place-items:center;padding:15px;background:#270d1abf}.tb-form{background:#fffaf3;border-radius:20px;padding:22px;width:min(620px,100%);max-height:90vh;overflow:auto;display:grid;gap:10px}.tb-form h2{margin:0;color:#64142f}.tb-form label{display:grid;gap:5px}.tb-form textarea{min-height:85px}.tb-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.tb-form-actions{display:flex;justify-content:flex-end;gap:10px}.tb-form-actions button{padding:10px 16px;border-radius:10px}.tb-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}@media(max-width:700px){.tb-hero{padding:18px}.tb-donut{width:75px}.tb-board{grid-template-columns:repeat(4,minmax(250px,80vw));scroll-snap-type:x proximity}.tb-column{scroll-snap-align:start}.tb-search{width:100%}.tb-search input{max-width:none;width:100%}.tb-form-grid{grid-template-columns:1fr}}@media(prefers-reduced-motion:reduce){.tb-meter i{transition:none}}
/* Keep the board legible over the shared POS theme and fit narrow workspaces. */
html.qi-pos-theme main .tb-hero h1{color:#fffaf3}
html.qi-pos-theme main .tb-hero p,html.qi-pos-theme main .tb-donut small{color:#fff8ed}
html.qi-pos-theme main .tb-controls{align-items:center;gap:8px;margin:14px 0 4px}
html.qi-pos-theme main .tb-filters{flex:1 1 320px}
html.qi-pos-theme main .tb-controls button{min-height:44px;margin:0}
html.qi-pos-theme main .tb-search{flex:1 1 170px;min-width:0;margin:0}
html.qi-pos-theme main .tb-search input{width:100%;max-width:none;margin:0}
html.qi-pos-theme main .tb-board{overflow:visible;grid-template-columns:repeat(4,minmax(0,1fr))}
html.qi-pos-theme main .tb-column{min-width:0}
@media(max-width:1000px){html.qi-pos-theme main .tb-board{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){html.qi-pos-theme main .tb-hero{gap:12px;padding:18px}html.qi-pos-theme main .tb-hero h1{font-size:1.75rem}html.qi-pos-theme main .tb-board{grid-template-columns:minmax(0,1fr)}html.qi-pos-theme main .tb-controls{display:grid;grid-template-columns:minmax(0,1fr) auto}html.qi-pos-theme main .tb-filters{grid-column:1/-1}html.qi-pos-theme main .tb-search{width:auto}html.qi-pos-theme main .tb-search input{width:100%}html.qi-pos-theme main .tb-controls .tb-primary{white-space:nowrap}}

.tb-details{margin:6px 0;color:#675348;font-size:.8rem}.tb-details summary{cursor:pointer;color:#8a3150;font-weight:700}.tb-details p{margin:8px 0;line-height:1.5}.tb-details summary:focus-visible{outline:3px solid #dfaa51;outline-offset:3px}.tb-card .tb-meta{margin:10px 0}

html.qi-pos-theme main .tb-outlet-filter{flex:0 1 165px;min-width:130px;margin:0}html.qi-pos-theme main .tb-outlet-filter select{width:100%;margin:0}@media(max-width:560px){html.qi-pos-theme main .tb-outlet-filter{grid-column:1/-1;width:100%}}

.tb-date-overdue,.tb-date-today{font-weight:800}.tb-date-overdue{color:#a20f2c}.tb-date-today{color:#805500}
.tb-card-comments{margin:8px 0}.tb-card-comments button{background:#f8e9ed;color:#70213b;border:0;border-radius:8px;padding:7px 10px;font-size:.78rem;font-weight:700}.tb-comment-heading{display:flex;align-items:start;justify-content:space-between;gap:12px}.tb-comment-heading span{font-size:.7rem;letter-spacing:.12em;color:#9c6a47;font-weight:800}.tb-comment-heading button{border:0;background:#f2e6de;border-radius:9px;padding:8px 12px}.tb-comment-list{display:grid;gap:10px;max-height:45vh;overflow:auto}.tb-comment{background:#f7ede5;border-radius:12px;padding:12px}.tb-comment>div{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;font-size:.75rem}.tb-comment time{color:#795e54}.tb-comment p{white-space:pre-wrap;overflow-wrap:anywhere;margin:8px 0 0;line-height:1.4}.tb-comment-form{display:grid;gap:8px}.tb-comment-form label{display:grid;gap:5px}.tb-comment-form button{justify-self:end;padding:10px 16px;border-radius:10px}.tb-comment-form [role=status]{color:#a20f2c;margin:0}
