:root{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;color:#1e2429;background:#fcfaf5;font-synthesis:none;--orange: #FE630F;--orange-focus: #D35400;--leaf: #398240;--deep: #1E2429;--warm: #FCFAF5;--blue: #245B8A;--muted: #687280;--line: #D8E0E8;--success: #2E7D32;--warning: #8A5A12;--error: #B42318;--info: #245B8A}*{box-sizing:border-box}html{min-height:100%;background:var(--warm)}body{margin:0;min-width:320px;min-height:100dvh;background:var(--warm);color:var(--deep)}button,input{font:inherit}button{-webkit-tap-highlight-color:transparent}button:focus-visible,input:focus-visible{outline:3px solid var(--orange-focus);outline-offset:2px}.center-screen{min-height:100dvh;display:grid;place-items:center;padding:24px}.auth-card{width:min(100%,430px);background:#fff;border:1px solid var(--line);border-radius:20px;padding:28px 22px;box-shadow:0 12px 40px #1e242914}.auth-card.compact{text-align:center}.auth-card h1{margin:18px 0 8px;font-size:24px;line-height:32px}.auth-card p{color:var(--muted);font-size:14px;line-height:20px}.brand-logo{display:block;width:min(245px,75vw);height:auto;margin:0 auto 14px}.brand-logo.compact{width:142px;margin:0}.field-label{display:block;font-size:13px;font-weight:650;margin:14px 0 6px}.auth-card input{width:100%;min-height:50px;border:1px solid #AEBBCA;border-radius:10px;padding:12px 13px;background:#fff;color:var(--deep)}.primary,.secondary{min-height:50px;border-radius:8px;padding:12px 16px;font-weight:650;cursor:pointer}.primary{width:100%;border:1px solid var(--orange);background:var(--orange);color:var(--deep)}.secondary{border:1px solid #7F9DC1;background:#fff;color:#16396f}.primary:disabled,.secondary:disabled{opacity:.45;cursor:not-allowed}.auth-card .primary{margin-top:14px}.help-text{margin:16px 0 0!important;font-size:12px!important}.error-box,.warning-box{border-radius:10px;padding:11px 12px;font-size:13px;line-height:18px;margin:12px 0}.error-box{border:1px solid #F4B4AF;background:#fff0ef;color:var(--error)}.warning-box{border:1px solid #E7C99C;background:#fff7e8;color:var(--warning)}.error-box.within{margin:8px 0 12px}.shell{width:min(100%,620px);min-height:100dvh;margin:0 auto;background:#fff;box-shadow:0 0 0 1px #1e242908}.main-header{min-height:72px;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 18px;border-bottom:1px solid var(--line);background:#fff;position:sticky;top:0;z-index:20}.header-user{display:flex;align-items:flex-end;flex-direction:column;gap:2px;min-width:0}.header-user strong{max-width:170px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}.text-button{padding:2px;border:0;background:transparent;color:var(--blue);cursor:pointer;font-size:12px}.page{padding:20px 18px 36px}.page-title-row{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.page h1,.draft-page h1{margin:0;font-size:28px;line-height:34px;font-weight:650}.page p{color:var(--muted);margin:4px 0 0;font-size:14px}.compact-button{min-height:40px;padding:8px 12px}.task-list{display:grid;gap:12px;margin-top:18px}.task-card{width:100%;display:grid;grid-template-columns:42px minmax(0,1fr) 18px;align-items:start;gap:12px;text-align:left;background:#fff;border:1px solid var(--line);border-radius:12px;padding:14px 12px;cursor:pointer}.task-card.done{background:#fafbfc}.task-icon{width:42px;height:42px;display:grid;place-items:center;border:1px solid #C7D2DF;border-radius:7px;color:#16396f;font-size:23px}.task-icon.large{width:46px;height:46px}.task-card-body strong{display:block;color:#153a70;font-size:16px;line-height:21px}.task-card-body>span{display:block;color:var(--blue);font-size:14px;margin-top:2px}.task-card dl,.detail-list{margin:12px 0 0}.task-card dl div,.detail-list div{display:grid;grid-template-columns:78px minmax(0,1fr);gap:8px;padding:4px 0;font-size:13px}dt{color:#6b7b91}dd{margin:0;color:var(--deep)}.status-dot{display:inline-block;width:9px;height:9px;border-radius:50%;margin-right:7px}.status-dot.orange{background:var(--orange)}.status-dot.green{background:var(--success)}.chevron{color:#355b88;font-size:25px;align-self:center}.empty-state{margin-top:18px;border:1px solid var(--line);border-radius:12px;padding:24px 16px;color:var(--muted);text-align:center;background:#fafbfc}.sub-header{min-height:52px;border-bottom:1px solid var(--line);display:flex;align-items:center;padding:8px 12px;background:#fff;position:sticky;top:0;z-index:20}.back-button{border:0;background:transparent;color:var(--blue);font-size:15px;cursor:pointer;padding:9px 4px}.task-detail-card{border:1px solid var(--line);border-radius:12px;overflow:hidden;margin-bottom:18px}.task-detail-title{display:flex;gap:13px;align-items:center;padding:16px 14px;border-bottom:1px solid var(--line)}.task-detail-title h1{font-size:18px;line-height:24px;color:#16396f}.task-detail-title p{color:var(--blue)}.detail-list{padding:8px 14px 14px}.detail-list div{grid-template-columns:105px minmax(0,1fr);padding:6px 0}.draft-shell{padding-bottom:118px}.draft-header{gap:10px}.draft-header .back-button{font-size:28px;line-height:24px;width:32px}.draft-header>div{display:flex;flex-direction:column}.draft-header strong{font-size:14px;font-weight:500}.draft-header span{color:var(--blue);font-size:13px}.draft-page{padding:12px 12px 24px}.draft-title-row{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:2px 0 8px}.draft-title-row h1{font-size:22px;line-height:28px;color:#16396f}.draft-title-row p{margin:2px 0 0;color:var(--muted);font-size:12px}.save-badge{max-width:180px;padding:5px 8px;border-radius:999px;font-size:10px;line-height:13px;text-align:center;background:#eef2f6;color:#58687b}.save-badge.saved{background:#edf7ee;color:var(--success)}.save-badge.pending,.save-badge.syncing{background:#eaf3fc;color:var(--info)}.save-badge.error,.save-badge.conflict{background:#fff0ef;color:var(--error)}.catalog-group{margin-top:10px}.catalog-group h2{margin:14px 5px 7px;color:#16396f;font-size:15px;line-height:20px;font-weight:650}.catalog-row{display:grid;grid-template-columns:minmax(0,1fr) 86px;gap:10px;align-items:center;border:1px solid var(--line);border-bottom:0;padding:9px 8px;background:#fff}.catalog-row:first-of-type{border-radius:8px 8px 0 0}.catalog-row:last-of-type{border-bottom:1px solid var(--line);border-radius:0 0 8px 8px}.catalog-row.ordered{background:#fffdfc}.catalog-copy{min-width:0;display:flex;flex-direction:column}.catalog-copy .sku{color:#6984a8;font-size:11px;line-height:15px}.catalog-copy strong{color:#355c8d;font-size:13px;line-height:17px;font-weight:450}.catalog-copy>span:last-child{color:#6984a8;font-size:11px;line-height:15px;overflow-wrap:anywhere}.quantity-control{display:flex;align-items:center;gap:5px;flex-wrap:wrap;justify-content:flex-start}.quantity-control input{width:52px;height:38px;border:1px solid #9FB6D2;border-radius:6px;text-align:center;color:#102b55;font-weight:650;background:#fff}.quantity-control input[aria-invalid=true]{border:2px solid var(--error);background:#fff0ef}.quantity-control .quantity-error-hint{flex:0 0 100%;width:100%;color:var(--error);font-size:11px;line-height:14px;font-weight:650;overflow-wrap:anywhere}.draft-actions{position:fixed;bottom:0;left:50%;transform:translate(-50%);width:min(100%,620px);background:#fffffff7;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-top:1px solid var(--line);padding:10px 12px calc(10px + env(safe-area-inset-bottom));display:grid;grid-template-columns:1fr 1.25fr;gap:8px;z-index:30}.draft-actions .primary,.draft-actions .secondary{min-height:52px;font-size:13px;line-height:16px}.draft-actions p{grid-column:1 / -1;margin:0;color:#8090a2;font-size:10px;text-align:center}.task-card.local-resume{border-style:dashed;background:#fbfcfe}.local-resume-note{color:var(--info);font-size:12px;font-weight:600;margin-top:10px}.order-lines{border:1px solid var(--line);border-radius:8px;overflow:hidden}.order-line{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center;padding:9px 10px;border-top:1px solid var(--line);background:#fff}.order-line:first-child{border-top:0}.order-qty{min-width:32px;text-align:right;color:#102b55;font-weight:650;font-size:15px}.section-title{margin:20px 5px 0;color:#16396f;font-size:16px;line-height:22px;font-weight:650}.summary-card{border:1px solid var(--line);border-radius:12px;margin-top:16px;background:#fafbfc}.submission-title{display:flex;align-items:center;gap:10px}.submission-title h1{font-size:22px;line-height:28px;color:#16396f}.submission-actions{display:grid;gap:10px;margin-top:20px}.whatsapp-button{min-height:50px;border-radius:8px;padding:12px 16px;font-weight:650;cursor:pointer;border:1px solid var(--success);background:var(--success);color:#fff}.inline-retry{display:block;margin-top:8px}.history-link{width:100%;margin-top:20px;display:flex;justify-content:space-between;align-items:center}.result-card{text-align:center;padding:20px 8px 8px;display:grid;justify-items:center;gap:6px}.result-card h1{font-size:22px;line-height:28px}.result-card .primary{margin-top:16px}.result-icon{width:48px;height:48px;display:grid;place-items:center;border:2px solid var(--success);border-radius:50%;color:var(--success);font-size:24px;font-weight:700}.result-icon.small{width:26px;height:26px;font-size:14px;border-color:var(--deep);color:var(--deep)}.result-icon.neutral,.result-icon.info{border-color:var(--deep);color:var(--deep)}.result-icon.warning{border-color:var(--warning);color:var(--warning);border-radius:8px}.notice-card{display:grid;gap:8px;border:1px solid #E7C99C;background:#fff7e8;border-radius:12px;padding:14px 12px;margin:12px 0}.notice-card p{margin:0;color:var(--warning);font-size:13px}.modal-backdrop{position:fixed;inset:0;background:#1e242961;display:grid;place-items:center;padding:18px;z-index:50}.modal-card{width:min(100%,400px);background:#fff;border-radius:16px;padding:22px 18px;display:grid;justify-items:center;gap:10px;text-align:center}.modal-card p{margin:0 0 6px;color:var(--muted);font-size:14px;line-height:20px}.modal-card .primary,.modal-card .secondary{width:100%}.secondary.destructive{border-color:var(--error);color:var(--error)}.history-list{list-style:none;margin:8px 0 0;padding:0;display:grid;gap:18px}.history-list li{display:grid;gap:2px;padding-left:22px;position:relative}.history-list li:before{content:"";position:absolute;left:0;top:5px;width:10px;height:10px;border-radius:50%;background:var(--deep);z-index:1}.history-list li:not(:last-child):after{content:"";position:absolute;left:4px;top:15px;bottom:-23px;border-left:1px solid var(--line)}.history-list span{color:var(--muted);font-size:13px}@media(max-width:430px){.shell{box-shadow:none}.page{padding-left:12px;padding-right:12px}.brand-logo.compact{width:126px}.catalog-row{grid-template-columns:minmax(0,1fr) 80px}.quantity-control input{width:48px}}.page-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}.manager-add-button{width:auto}.manager-panel{margin-top:18px;border:1px solid var(--line);border-radius:12px;padding:16px 14px;background:#fafbfc}.manager-panel h2{margin:0;font-size:18px;line-height:24px;color:#16396f}.manager-panel>p{margin:4px 0 10px}.manager-panel input{width:100%;min-height:48px;border:1px solid #AEBBCA;border-radius:8px;padding:11px 12px;background:#fff;color:var(--deep)}.manager-form-actions{display:grid;grid-template-columns:1fr 1.3fr;gap:8px;margin-top:16px}.manager-form-actions .primary,.manager-form-actions .secondary{width:100%}.manager-refresh-row{margin-top:18px}.employee-list{display:grid;gap:10px;margin-top:12px}.employee-card{display:flex;align-items:center;justify-content:space-between;gap:14px;border:1px solid var(--line);border-radius:10px;padding:13px 12px;background:#fff}.employee-card>div{min-width:0;display:grid;gap:3px}.employee-card strong{color:#153a70;font-size:15px;line-height:20px}.employee-card>div>span{color:var(--muted);font-size:11px;line-height:15px}.employee-status{flex:0 0 auto;border-radius:999px;padding:4px 8px;font-size:11px;font-weight:650}.employee-status.active{background:#edf7ee;color:var(--success)}.employee-status.inactive{background:#eef2f6;color:var(--muted)}.employee-actions{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:8px}.employee-actions .secondary{width:auto;min-height:36px}.schedule-card,.history-submission{padding:16px}.schedule-editor{display:grid;gap:10px}.schedule-editor select,.schedule-editor input{width:100%;min-height:44px;padding:10px;border:1px solid var(--line);border-radius:8px;font:inherit;background:var(--surface, #fff);color:var(--text, #1e2429)}.schedule-card dd{overflow-wrap:anywhere}.schedule-card .page-actions,.schedule-editor .page-actions{flex-wrap:wrap}.success-box{margin:12px 0;padding:12px;border:1px solid var(--success);border-radius:8px;background:#edf7ee;color:var(--success)}
