@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&display=swap');
*{box-sizing:border-box}body{margin:0;background:#f7f8fa;color:#253047;font:14px 'DM Sans',Arial,sans-serif}aside{position:fixed;width:224px;inset:0 auto 0 0;background:#fff;border-right:1px solid #e7eaf0;padding:34px 23px;display:flex;flex-direction:column}.brand{font-size:48px;font-weight:700;color:#5462d6;letter-spacing:-4px}.brand span{display:block;font-size:9px;letter-spacing:2px;color:#8990a2;margin-top:5px}nav{margin-top:48px;display:grid;gap:9px}button,.button,select{cursor:pointer}button,.button,input,select,textarea{font:inherit;border:1px solid #e1e5ec;border-radius:7px;background:white;padding:10px 13px;color:#46516a}button:hover,.button:hover{background:#f0f1fb}nav button{text-align:left;border:0;padding:14px;color:#81889a}nav button.active{background:#fcebec;color:#d83135;font-weight:700}.sidefoot{margin-top:auto;color:#8590a2;line-height:1.8}.sidefoot small{display:block;font-size:10px;margin-top:20px}main{margin-left:224px;padding:0 38px 24px;max-width:1900px}header{height:80px;border-bottom:1px solid #e4e7ee;display:flex;justify-content:space-between;align-items:center;font-size:11px;color:#9299aa;letter-spacing:1px}header b{font-weight:500;color:#667085;letter-spacing:0}.heading{display:flex;align-items:center;justify-content:space-between;margin:34px 0 28px}.eyebrow{color:#8e96ab;font-size:10px;letter-spacing:1.8px}h1{font-size:30px;letter-spacing:-1px;margin:10px 0}p{color:#9299aa;margin:0}.primary{background:#d83135;color:white;border-color:#d83135;padding:12px 18px;box-shadow:0 4px 8px #5963db15}.primary:hover{background:#902123}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}.stat{background:white;border:1px solid #e5e8ef;border-radius:10px;padding:20px 23px}.stat span{color:#8991a3;font-size:12px}.stat strong{display:block;font-size:30px;margin:12px 0 7px;font-weight:600;letter-spacing:-1px}.stat small{font-size:11px;color:#9299aa}.stat:nth-child(2) strong{color:#dc7162}.stat:nth-child(3) strong{color:#c39a45}.stat:nth-child(4) strong{color:#d83135}.notice{margin:23px 0;background:#fff7ec;border:1px solid #f4e5cc;border-radius:7px;padding:14px 18px;color:#a97b32;font-size:12px}.notice b{margin-right:12px}.panel{background:white;border:1px solid #e4e7ed;border-radius:10px;margin-top:24px;overflow:hidden}.paneltop{padding:23px;display:flex;justify-content:space-between;align-items:center}h2{font-size:16px;margin:0 0 5px}small{color:#98a0b0;font-size:11px}.tools{display:flex;gap:8px}.tools button,.tools .button{font-size:11px}.filters{display:flex;gap:10px;padding:0 23px 20px;flex-wrap:wrap}.filters input,.filters select,.filters button{font-size:11px}.filters>input{flex:1;min-width:190px}.filters label{display:flex;gap:7px;align-items:center;font-size:11px}.filters label input{width:130px}[hidden]{display:none!important}.tablewrap{overflow:auto}table{border-collapse:collapse;width:100%;text-align:left;white-space:nowrap}th{font-size:9px;text-transform:uppercase;letter-spacing:1px;background:#fafbfc;color:#9aa1af;padding:14px 18px;font-weight:500;border-block:1px solid #eef0f4}td{padding:17px 18px;border-bottom:1px solid #eef0f4;font-size:12px}td:first-child{border-left:3px solid #85b8a1}tr.urg td:first-child{border-left-color:#e99292}tr.event td:first-child{border-left-color:#d8b161}.name{font-weight:600;color:#38435b}.number{color:#a0a6b5;font-size:10px;display:block;margin-bottom:4px}.pill{display:inline-block;font-size:9px;border-radius:5px;padding:5px 8px;letter-spacing:.3px}.normal{background:#edf6f1;color:#5b947c}.urgencia{background:#fceeed;color:#cc7979}.evento{background:#fff5df;color:#b28d41}.type{background:#f3f4f8;color:#81899e}.deadline{display:block;font-size:10px;margin-top:4px;color:#9ba1ae}.late{color:#ce746b}.soon{color:#bd943b}.bar{width:85px;height:4px;background:#eceef5;border-radius:4px;margin-top:7px}.bar div{height:4px;background:#d83135;border-radius:4px}.actions{display:flex;gap:4px}.actions button{font-size:13px;padding:5px 7px;border:0;background:transparent}.actions a{padding:5px;color:#6374b8;text-decoration:none}.stagebtn{font-size:10px;padding:8px;margin:3px;border-style:dashed}.stagebtn.done{background:#eaf5ef;color:#4b9576;border-style:solid;border-color:#cce8db}.stagebtn:disabled{opacity:.35;cursor:default}.production{padding:20px;display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:16px}.card{border:1px solid #e3e7ee;border-radius:8px;padding:19px}.cardtop{display:flex;justify-content:space-between;margin-bottom:12px}.card h3{font-size:14px;margin:8px 0}.card p{font-size:11px;margin:9px 0}.calendarhead{display:flex;justify-content:space-between;padding:10px 23px 20px;align-items:center}.calendar{display:grid;grid-template-columns:repeat(7,minmax(0,1fr))}.dayname{padding:12px;text-align:center;background:#f8f9fc;color:#929aac;font-size:10px}.day{min-height:120px;border-top:1px solid #eceef4;border-right:1px solid #eceef4;padding:9px;font-size:11px}.day.today{background:#f2f2ff}.day .eventitem{display:block;text-align:left;width:100%;font-size:9px;padding:6px;margin-top:5px;border:0;white-space:normal}.empty{padding:60px;text-align:center;color:#8b93a4}footer{display:flex;justify-content:space-between;color:#79a28f;font-size:9px;margin-top:20px}footer i{font-style:normal;color:#d88c88;margin-left:17px}footer em{font-style:normal;color:#c6a054;margin-left:17px}footer>span:last-child{color:#9ba2b1}dialog{border:0;border-radius:12px;padding:28px;width:650px;max-width:95vw;box-shadow:0 20px 100px #1e29483d}dialog::backdrop{background:#17213c66}.modalhead{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.formgrid{display:grid;grid-template-columns:1fr 1fr;gap:15px}form label{display:grid;gap:7px;font-size:11px;color:#7b8599}textarea{width:100%;resize:vertical}form>label{margin-top:15px}.formactions{display:flex;justify-content:flex-end;gap:10px;margin-top:25px}.stagefields{display:flex;gap:15px;flex-wrap:wrap}.stagefields label{display:flex;align-items:center}.hint{font-size:11px;margin-bottom:15px}h3{font-size:13px}#toast{position:fixed;bottom:25px;left:50%;background:#28334b;color:white;padding:14px 24px;border-radius:9px;display:none}@media(max-width:1000px){aside{width:175px;padding:25px 15px}main{margin-left:175px;padding-inline:20px}.stats{gap:10px}.stat{padding:16px}.filters{padding-inline:15px}td,th{padding:14px 11px}}@media(max-width:700px){aside{position:static;width:100%;padding:14px 18px;border-bottom:1px solid #e4e7ee}.brand{font-size:32px}.brand span,.sidefoot{display:none}nav{display:flex;margin-top:10px;gap:3px;overflow:auto}nav button{padding:10px;font-size:11px;white-space:nowrap}main{margin:0;padding:0 15px}header{height:55px}.heading{gap:10px}h1{font-size:25px}.heading p{font-size:11px}.eyebrow{font-size:8px}.stats{grid-template-columns:1fr 1fr}.stat strong{font-size:26px}.tools{flex-wrap:wrap}.calendar{min-width:650px}.panel:has(.calendar){overflow:auto}footer{gap:15px}.formgrid{grid-template-columns:1fr}.primary{white-space:nowrap;font-size:12px}}

.brand{letter-spacing:0}.brand img{width:100%;height:auto;display:block}.brand span{font-size:8px;letter-spacing:1.5px;margin-top:12px}.primary{box-shadow:0 4px 8px #d8313515}.headeractions{display:flex;gap:18px;align-items:center}#bell{display:flex;gap:8px;align-items:center;color:#d83135}#notificationCount{font-size:11px;background:#d83135;color:#fff;padding:3px 6px;border-radius:20px}tbody tr{background:#edf6f1;transition:background .15s,box-shadow .15s}tbody tr.urg{background:#fce7e6}tbody tr.event{background:#fff3d9}tbody tr:hover{background:#d9ecdf;box-shadow:inset 0 0 0 2px #77ab8c}tbody tr.urg:hover{background:#f8cecb;box-shadow:inset 0 0 0 2px #d98d87}tbody tr.event:hover{background:#ffe6ae;box-shadow:inset 0 0 0 2px #d4aa52}th button{border:0;background:transparent;padding:0;font:inherit;text-transform:inherit;letter-spacing:inherit;color:#626b7d}th button:focus-visible{outline:2px solid #d83135;outline-offset:5px}.typefields{grid-column:1/-1;border:1px solid #e1e5ec;border-radius:7px;display:flex;gap:15px;flex-wrap:wrap;padding:13px}.typefields legend{font-size:11px;color:#7b8599}.typefields label{display:flex;align-items:center}.historyentry{border-left:2px solid #d83135;margin:20px 0;padding:0 0 10px 15px}.historyentry p{font-size:12px;line-height:1.7;margin-top:8px;overflow-wrap:anywhere}.notificationitem{display:block;text-align:left;width:100%;margin-top:10px;padding:16px}.stagefields{display:grid;grid-template-columns:1fr 1fr}.stagefields label{font-size:10px}.stagebtn{font-size:9px}button:hover{color:#902123}.primary:hover{color:#fff}@media(max-width:700px){.brand img{width:180px}.headeractions>span{display:none}.stagefields{grid-template-columns:1fr}}

.stats{grid-template-columns:repeat(5,minmax(0,1fr))}.stat{display:block;text-align:left;cursor:pointer;min-width:0;transition:background .15s,border-color .15s,transform .15s}.stat:hover{border-color:#d83135;background:#fff7f7;transform:translateY(-2px);color:inherit}.stat.selected{border-color:#d83135;box-shadow:0 0 0 1px #d83135;background:#fff7f7}.stat:first-child{background:#d83135;border-color:#d83135}.stat:first-child span,.stat:first-child strong,.stat:first-child small{color:#fff}.stat:first-child span{font-size:10px;font-weight:700;line-height:1.6;display:block}.stat:first-child:hover{background:#b82428}.stat:nth-child(2) strong{color:#253047}.stat:nth-child(3) strong{color:#dc7162}.stat:nth-child(4) strong{color:#c39a45}.stat:nth-child(5) strong{color:#d83135}.trello-tag{display:inline-flex;align-items:center;gap:5px;background:#e8f0ff;color:#2365ad;border:1px solid #c5d9f1;border-radius:5px;padding:4px 7px;text-decoration:none;font-size:10px;font-weight:600;margin:7px 0 0 9px;vertical-align:middle}.trello-tag:hover{background:#d3e5ff;color:#104477}.trello-tag svg{width:12px;height:12px}.actions{gap:6px}.actions .action-icon{width:32px;height:32px;display:inline-flex;align-items:center;justify-content:center;padding:7px;border:1px solid #dce2e9;background:#ffffffb3;border-radius:8px;color:#596579;transition:background .15s,transform .15s}.actions .action-icon:hover{background:#fff;transform:translateY(-1px);color:#d83135;border-color:#d83135}.actions .delete:hover{background:#ffedeb}.productionboard{display:flex;gap:15px;overflow-x:auto;padding:0 20px 24px;align-items:flex-start}.flowcolumn{flex:0 0 300px;background:#f5f6f8;border:1px solid #e4e7ed;border-radius:10px;padding:11px}.flowheading{height:auto;min-height:52px;margin-bottom:12px;padding:0 2px 12px;font-size:12px;letter-spacing:0;color:#3e485b;display:flex;gap:10px}.flowheading span{display:flex;gap:8px;align-items:center;font-weight:600}.flowheading small{color:#d83135;background:#fbe7e8;padding:5px;border-radius:5px}.flowheading>b{background:#e4e8ee;padding:5px 8px;border-radius:6px}.flowcolumn .card{background:#fff;margin-bottom:12px;padding:15px}.flowcolumn .card:last-child{margin-bottom:0}.flowempty{font-size:11px;padding:20px 5px;text-align:center}.flowhint{font-size:11px;color:#8c94a4;padding:0 23px 18px}.productionsteps{display:grid;gap:3px;margin:13px 0}.productionsteps .stagebtn{text-align:left;margin:0}.production-progress{font-size:10px;color:#7b8597;margin:14px 0 4px}.production-progress .bar{width:100%}.deliverydate{font-size:11px}.card>.trello-tag{margin-left:0}button:focus-visible,a:focus-visible{outline:2px solid #d83135;outline-offset:3px}@media(max-width:1100px){.stats{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:700px){.stats{grid-template-columns:repeat(2,minmax(0,1fr))}.stat:first-child{grid-column:1/-1}.productionboard{padding-inline:12px}.flowcolumn{flex-basis:280px}}
.stats{grid-template-columns:repeat(4,minmax(0,1fr))}.stat:nth-child(2) strong{color:#dc7162}.stat:nth-child(3) strong{color:#c39a45}.stat:nth-child(4) strong{color:#d83135}@media(max-width:1100px){.stats{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Fluid workspace and production flow */
html{scrollbar-gutter:stable}body{min-width:280px}main{max-width:none;min-width:0;padding-inline:clamp(14px,2.3vw,38px)}aside{overflow-y:auto}main>header,.heading,.paneltop,.filters,.formgrid>*{min-width:0}.heading{gap:20px}.heading>div{min-width:0}.heading p{line-height:1.6}.stats{gap:clamp(10px,1.2vw,18px)}.stat{padding:clamp(14px,1.5vw,23px);overflow-wrap:anywhere}.stat:first-child span{font-size:11px}.panel{min-width:0}.paneltop{gap:16px;flex-wrap:wrap}.filters>*{max-width:100%;min-width:0}.filters>input{min-width:min(190px,100%)}.filters select{flex:1 1 150px}.filters label{flex-wrap:wrap}.filters label input{min-width:0;max-width:100%}.tablewrap{max-width:100%;max-height:72vh;overflow:auto;scrollbar-gutter:stable}.tablewrap th{position:sticky;top:0;z-index:2}.tablewrap td:first-child{white-space:normal;min-width:180px;max-width:320px;overflow-wrap:anywhere}.tablewrap td:first-child .trello-tag{margin-left:0;display:flex;width:max-content}.tablewrap td:nth-child(2){white-space:normal;min-width:130px}.tablewrap .type{line-height:1.5}.productionboard{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:14px;overflow:visible;padding:0 clamp(12px,1.6vw,23px) 20px;align-items:start}.flowcolumn{min-width:0;width:auto;max-height:clamp(380px,68dvh,850px);overflow-y:auto;overflow-x:hidden;scrollbar-gutter:stable;overscroll-behavior-y:contain;padding:0 10px 10px}.flowheading{position:sticky;top:0;z-index:1;background:#f5f6f8;min-height:62px;margin:0 0 10px;padding:12px 2px;border-bottom:1px solid #dfe4ec;line-height:1.5}.flowheading span{min-width:0;overflow-wrap:anywhere;font-size:11px}.flowheading>b{flex-shrink:0}.flowcolumn .card{padding:13px;overflow-wrap:anywhere}.cardtop{gap:8px;align-items:start}.cardtop .number{min-width:0;overflow-wrap:anywhere}.card h3{line-height:1.4}.card p{line-height:1.6}.productionsteps .stagebtn{white-space:normal;line-height:1.5;min-height:36px;font-size:10px}.flowhint{line-height:1.7}.actions{flex-wrap:wrap}.actions .action-icon{min-width:36px;min-height:36px}.calendarhead{gap:10px;flex-wrap:wrap}.panel:has(.calendar){overflow-x:auto}.calendar{min-width:630px}.calendarhead{position:sticky;left:0;width:100%}dialog{max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);overflow-y:auto;overscroll-behavior:contain;padding:clamp(16px,3vw,28px)}.formgrid input,.formgrid select,form textarea{width:100%;min-width:0}.typefields{min-width:0}.typefields input,.stagefields input{width:auto;flex-shrink:0}.stagefields label{min-width:0;line-height:1.6}.modalhead{gap:15px;position:sticky;top:-1px;background:#fff;padding-bottom:8px;z-index:2}.modalhead h2{overflow-wrap:anywhere}.formactions{flex-wrap:wrap}footer{flex-wrap:wrap;gap:12px;line-height:1.7}#toast{max-width:calc(100vw - 30px);left:50%;transform:translateX(-50%);text-align:center;overflow-wrap:anywhere}.productionboard,.flowcolumn,.tablewrap,.panel:has(.calendar),nav{scrollbar-width:thin;scrollbar-color:#a8afb9 #edf0f4}::-webkit-scrollbar{width:9px;height:9px}::-webkit-scrollbar-track{background:#edf0f4;border-radius:8px}::-webkit-scrollbar-thumb{background:#a8afb9;border:2px solid #edf0f4;border-radius:8px}
@media(min-width:1900px){.productionboard{grid-template-columns:repeat(6,minmax(0,1fr))}}
@media(max-width:1100px){.stats{grid-template-columns:repeat(2,minmax(0,1fr))}.productionboard{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:800px){aside{position:static;width:100%;padding:16px;border-right:0;border-bottom:1px solid #e4e7ee}.brand img{width:180px;max-width:100%}.brand span,.sidefoot{display:none}nav{display:flex;margin-top:14px;gap:6px;overflow-x:auto;padding-bottom:4px}nav button{flex:1 0 auto;text-align:center;white-space:nowrap;padding:12px;font-size:12px;min-height:44px}main{margin-left:0}main>header{height:58px}.headeractions>span{display:none}.heading{margin:24px 0;align-items:start}.eyebrow{font-size:9px;letter-spacing:1px}.heading p{font-size:12px}.heading .primary{min-height:44px}.flowcolumn{max-height:65dvh;min-height:150px}.filters input,.filters select,.filters button,.tools button,.tools .button{min-height:42px}.filters input,.filters select{font-size:14px}.formgrid input,.formgrid select,form textarea{font-size:16px;min-height:44px}.formgrid input[type=checkbox]{min-height:auto}.tablewrap{max-height:65dvh}}
@media(max-width:520px){.heading{flex-wrap:wrap;gap:15px}.heading .primary{width:100%}.stats{grid-template-columns:repeat(2,minmax(0,1fr))}.stat:first-child{grid-column:auto}.stat:first-child span{font-size:10px}.stat span,.stat small{font-size:10px}.stat strong{font-size:26px;margin:8px 0}.productionboard{grid-template-columns:minmax(0,1fr);gap:16px}.flowcolumn{max-height:70dvh}.flowheading{min-height:56px}.flowheading span{font-size:12px}.paneltop{padding:16px}.filters{padding-inline:16px;gap:8px}.filters>input{flex-basis:100%}.filters select{flex-basis:calc(50% - 8px)}.filters>button{flex:1}.filters label{width:100%;justify-content:space-between}.filters label input{flex:1;width:auto;max-width:70%}.formgrid{grid-template-columns:1fr}.stagefields{grid-template-columns:1fr}.tools{width:100%}.tools>*{flex:1;text-align:center}.notice{font-size:11px;line-height:1.7}.notice b{display:block}.empty{padding:35px 15px}.flowhint{padding-inline:16px}.formactions>*{flex:1}.actions .action-icon{min-width:42px;min-height:42px}.stagebtn{min-height:42px!important}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

.observation-warning{display:inline-flex;align-items:center;vertical-align:middle;margin-left:7px;line-height:1;flex-shrink:0;cursor:help}.observation-warning svg{display:block}.eventitem .observation-warning{margin-left:4px}.eventitem .observation-warning svg{width:14px;height:14px}

.auth-screen{display:none;min-height:100dvh;background:radial-gradient(ellipse at top,#fff4f4,#f2f4f7 65%);place-items:center;padding:24px}.locked>aside,.locked>main{display:none}.locked .auth-screen{display:grid!important}.auth-card{background:#fff;border:1px solid #e4e7ed;border-radius:16px;box-shadow:0 20px 70px #26334d12;padding:32px;width:100%;max-width:440px}.auth-card>img{width:240px;max-width:100%;display:block;margin:0 auto 30px}.auth-card .eyebrow{text-align:center}.auth-card h1{font-size:25px;margin-top:22px}.auth-card p{font-size:12px;line-height:1.8}.auth-card form{margin-top:22px;display:grid;gap:16px}.auth-card label input{width:100%;min-width:0;min-height:44px;font-size:16px}.form-error{color:#bd2328!important;margin-top:12px;white-space:pre-wrap}.auth-card .primary{width:100%}.auth-card a{font-size:12px;color:#bf2d30;display:block;margin-top:15px}.headeractions{flex-wrap:wrap;gap:8px}.headeractions button{font-size:11px;max-width:160px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#userMenu{color:#a8272b}#authRetry{margin-top:15px}.history-author{color:#9d2529!important;font-size:11px!important}.syncbar{display:flex;align-items:center;justify-content:space-between;padding:0 23px 16px;gap:12px;flex-wrap:wrap}.syncbar span{font-size:11px;color:#8d96a5}.syncbar button{font-size:11px}#migrationBanner{padding:18px;margin:0 20px 20px;background:#fff6e5;border:1px solid #efd8a5;border-radius:8px;font-size:12px}#migrationBanner p{line-height:1.7;margin:10px 0}#usersDialog{width:800px}#usersDialog>p{line-height:1.7;font-size:12px;margin-bottom:20px}#newUserForm>.primary{margin-top:16px}.access-row{display:flex;gap:15px;align-items:center;justify-content:space-between;border-top:1px solid #e8ebf0;padding:16px 0;margin-top:15px;flex-wrap:wrap}.access-row small{display:block;margin-top:7px}.access-row button{font-size:11px;margin:3px}.access-row b{font-size:13px}.access-row>div{min-width:0;overflow-wrap:anywhere}#passwordForm,#resetForm{display:grid;gap:16px;margin-top:20px}.saving main button,.saving main input,.saving main select{pointer-events:none;opacity:.65}.saving{cursor:progress}@media(max-width:520px){.auth-card{padding:24px 20px}.auth-screen{padding:14px}.headeractions{gap:5px}.headeractions button{padding:8px;max-width:110px}main>header>span{font-size:9px;max-width:90px}.syncbar{padding-inline:16px}.access-row>div:last-child{width:100%}}
