:root{color-scheme:light;font-family:Aptos,Segoe UI,Helvetica Neue,sans-serif;line-height:1.5;font-weight:400;color:#1f2c28;background:radial-gradient(circle at top left,rgba(235,226,199,.8),transparent 36%),linear-gradient(180deg,#f4efe3,#efe8d8);font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;--surface: rgba(255, 252, 245, .95);--surface-soft: rgba(247, 241, 228, .86);--surface-strong: #f1e6cb;--line: #d7c8a7;--line-strong: #c0b08b;--text: #1f2c28;--muted: #5f6d66;--accent: #275948;--accent-strong: #173d31;--accent-soft: #e6f0eb;--danger: #a24435;--danger-strong: #7d2a1f;--shadow: 0 18px 48px rgba(68, 57, 34, .12)}*{box-sizing:border-box}html,body,#root{min-height:100%}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.56;transform:none;box-shadow:none}input,select,textarea{width:100%;border:1px solid var(--line);border-radius:14px;background:#fffdfa;color:var(--text);padding:.82rem .95rem;transition:border-color .12s ease,box-shadow .12s ease}input:focus,select:focus,textarea:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 4px #2759481f}textarea{min-height:120px;resize:vertical}.app-shell{max-width:1560px;margin:0 auto;padding:24px 28px 40px}.shell-header,.page{border:1px solid rgba(192,176,139,.6);border-radius:28px;background:var(--surface);box-shadow:var(--shadow)}.shell-header{padding:28px}.shell-topbar{display:flex;justify-content:space-between;align-items:flex-start;gap:24px}.brand-block{max-width:760px}.brand-identity{display:flex;align-items:center;gap:20px}.brand-copy{min-width:0}.brand-logo-wrap{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:206px;min-height:156px;padding:6px 0}.brand-logo{display:block;width:auto;height:auto;max-width:100%;max-height:156px;object-fit:contain}.eyebrow{display:inline-flex;align-items:center;gap:8px;margin-bottom:10px;color:var(--accent);font-size:.8rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase}.brand-block h1,.page h2{margin:0;font-size:clamp(1.85rem,2.4vw,2.6rem);line-height:1.12;letter-spacing:-.03em}.shell-subtitle,.page-subtitle,.toolbar-copy,.detail-copy,.confirm-copy,.empty-state p{color:var(--muted)}.shell-subtitle{max-width:680px;margin:10px 0 0;font-size:1rem}.shell-title{max-width:500px}.company-switcher-panel{min-width:440px}.panel-label{display:inline-block;margin-bottom:10px;color:var(--muted);font-size:.84rem;font-weight:700;text-transform:uppercase;letter-spacing:.08em}.company-switcher{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.company-chip{display:flex;flex-direction:column;gap:4px;padding:16px 18px;border:1px solid var(--line);border-radius:18px;background:var(--surface-soft);color:var(--text);text-align:left;transition:transform .12s ease,border-color .12s ease,box-shadow .12s ease}.company-chip strong{font-size:1rem}.company-chip:hover{transform:translateY(-1px)}.company-chip--active{border-color:#27594852;background:var(--accent-soft);box-shadow:inset 0 0 0 1px #2759481f}.top-navigation{display:grid;grid-template-columns:repeat(9,minmax(0,1fr));gap:10px;margin-top:22px}.top-navigation__item{padding:13px 12px;border:1px solid var(--line);border-radius:16px;background:#fffdfa;color:var(--muted);font-weight:600}.top-navigation__item--active{border-color:var(--accent);background:linear-gradient(180deg,#f2f9f5,#e2efe9);color:var(--accent-strong)}.content-area{margin-top:24px}.page{padding:28px}.page--placeholder{min-height:280px}.page-header{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:24px}.page-subtitle{max-width:760px;margin:12px 0 0}.stat-grid,.detail-grid{display:grid;gap:16px;grid-template-columns:repeat(3,minmax(0,1fr))}.stat-grid{margin-bottom:20px}.stat-card,.detail-card,.dashboard-card{border:1px solid var(--line);border-radius:22px;background:var(--surface-soft)}.stat-card{padding:18px}.stat-card span,.detail-card span,.dashboard-metrics span{display:block;color:var(--muted);font-size:.9rem}.stat-card strong,.detail-card strong,.dashboard-metrics strong{display:block;margin-top:8px;font-size:1.5rem;line-height:1.1}.stat-card small{display:block;margin-top:10px;color:var(--muted)}.page-toolbar{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;margin-bottom:18px}.page-toolbar--stacked{align-items:stretch}.toolbar-copy{max-width:460px;margin:0}.search-input{display:grid;gap:8px;width:min(520px,100%)}.search-input__label{color:var(--muted);font-size:.9rem;font-weight:600}.table-shell{overflow:auto;border:1px solid var(--line);border-radius:24px;background:#fffdfa}.data-table{width:100%;min-width:880px;border-collapse:collapse}.data-table--products{min-width:1120px}.data-table--purchases{min-width:1420px}.data-table th,.data-table td{padding:16px 18px;border-bottom:1px solid rgba(215,200,167,.56);text-align:left}.data-table th{color:var(--muted);font-size:.84rem;font-weight:700;text-transform:uppercase;letter-spacing:.06em}.data-table tbody tr:last-child td{border-bottom:none}.table-primary-cell strong{font-size:1rem;font-weight:700}.table-primary-cell{display:grid;gap:8px}.table-secondary-text,.table-balance-text{color:var(--text);white-space:pre-line}.table-balance-text{font-weight:700;white-space:nowrap}.table-actions{display:flex;flex-wrap:wrap;gap:8px}.button{border:none;border-radius:14px;font-weight:700;transition:transform .12s ease,box-shadow .12s ease,background .12s ease}.button:hover{transform:translateY(-1px)}.button--md{padding:.86rem 1.1rem}.button--sm{padding:.6rem .8rem;font-size:.92rem}.button--primary{background:linear-gradient(180deg,#2d6d58,#235542);color:#fffdf9;box-shadow:0 10px 24px #2355422e}.button--secondary{background:#f6efe0;color:var(--text)}.button--ghost{background:transparent;color:var(--accent);border:1px solid rgba(39,89,72,.22)}.button--danger{background:linear-gradient(180deg,#b24c3d,#8f3428);color:#fff7f5}.empty-state{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:24px;border:1px dashed var(--line-strong);border-radius:24px;background:#faf5e9a6}.empty-state h3,.dialog__header h3,.detail-section h4,.form-section h4,.dashboard-card h3{margin:0}.empty-state p{margin:8px 0 0;max-width:580px}.dialog-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;display:flex;justify-content:center;align-items:center;padding:32px;background:#181f1b75;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);z-index:40}.dialog{width:min(920px,100%);max-height:calc(100vh - 64px);display:flex;flex-direction:column;border:1px solid rgba(192,176,139,.72);border-radius:28px;background:#fffdf8;box-shadow:0 30px 80px #1f1b133d}.dialog--compact{width:min(540px,100%)}.dialog__header,.dialog__footer{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:22px 24px}.dialog__header{border-bottom:1px solid rgba(215,200,167,.5);align-items:flex-start}.dialog__description{margin:8px 0 0;color:var(--muted)}.dialog__close{width:40px;height:40px;border:none;border-radius:999px;background:#f4ecdb;color:var(--muted);font-size:1.5rem;line-height:1}.dialog__body{overflow:auto;padding:24px}.dialog__footer{border-top:1px solid rgba(215,200,167,.5);justify-content:flex-end}.stack{display:grid;gap:18px}.form-grid{display:grid;gap:16px;grid-template-columns:repeat(2,minmax(0,1fr))}.form-field{display:grid;gap:8px}.form-field__label{display:flex;align-items:center;gap:10px;color:var(--text);font-weight:700}.form-field__label em{color:var(--muted);font-size:.78rem;font-style:normal;text-transform:uppercase;letter-spacing:.08em}.form-field__hint{color:var(--muted);font-size:.85rem}.form-section{padding:18px;border:1px solid rgba(215,200,167,.66);border-radius:22px;background:#f8f3e6a6}.section-heading{margin-bottom:16px}.section-copy{margin:8px 0 0;color:var(--muted)}.checkbox-field{display:inline-flex;align-items:center;gap:10px;font-weight:600}.checkbox-field input{width:18px;height:18px;padding:0}.form-error{margin:0;color:var(--danger-strong);font-weight:700}.detail-card,.dashboard-card{padding:18px}.detail-section{padding:18px;border:1px solid rgba(215,200,167,.66);border-radius:22px;background:#fcf8ee}.detail-section__heading{display:flex;justify-content:space-between;align-items:center;gap:12px}.detail-note{color:var(--accent);font-size:.9rem;font-weight:700}.address-block,.detail-copy,.confirm-copy{margin:10px 0 0;white-space:pre-line}.page--overview{background:radial-gradient(circle at top right,rgba(213,230,217,.55),transparent 28%),var(--surface)}.overview-header{display:flex;justify-content:space-between;align-items:stretch;gap:18px;margin-bottom:24px}.overview-intro{flex:1}.overview-kpi-grid{display:grid;gap:16px;grid-template-columns:repeat(4,minmax(0,1fr));margin-bottom:18px}.overview-kpi-card,.overview-panel,.overview-clock-panel{border:1px solid var(--line);border-radius:24px;background:#fffcf6eb;box-shadow:0 10px 26px #463c2814}.overview-kpi-card{padding:20px}.overview-kpi-card span,.overview-clock-card span,.overview-activity-type{display:block;color:var(--muted);font-size:.86rem;font-weight:700;letter-spacing:.03em;text-transform:uppercase}.overview-kpi-card strong,.overview-clock-card strong{display:block;margin-top:10px;font-size:clamp(1.7rem,2vw,2.15rem);line-height:1.05}.overview-kpi-card small,.overview-clock-card small,.overview-note,.overview-activity-item p,.overview-empty-state p{display:block;margin-top:10px;color:var(--muted)}.overview-kpi-card--accent{background:linear-gradient(180deg,#edf6f1,#deece4);border-color:#27594833}.overview-grid{display:grid;gap:16px;grid-template-columns:repeat(3,minmax(0,1fr))}.overview-panel,.overview-clock-panel{padding:20px}.overview-panel--wide{grid-column:span 2}.overview-panel__header{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:16px}.overview-panel__header .eyebrow{margin-bottom:8px}.overview-clock-panel .overview-panel__header{margin-bottom:12px}.overview-panel__header h3,.overview-empty-state h4{margin:0}.overview-stat-list{display:grid;gap:10px}.overview-stat-row{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:13px 0;border-bottom:1px solid rgba(215,200,167,.5)}.overview-stat-row:last-child{border-bottom:none;padding-bottom:0}.overview-stat-row:first-child{padding-top:0}.overview-stat-row span{color:var(--muted)}.overview-stat-row strong,.overview-activity-item strong{color:var(--text)}.overview-clock-panel{width:min(380px,100%);background:linear-gradient(180deg,#fbf8ef,#f4eddc)}.overview-clock-grid{display:grid;gap:12px;grid-template-columns:repeat(2,minmax(0,1fr))}.overview-clock-card{padding:16px;border-radius:18px;background:#fffcf6eb;border:1px solid rgba(215,200,167,.56)}.overview-activity-list{display:grid;gap:12px}.overview-activity-item{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;padding:16px 0;border-bottom:1px solid rgba(215,200,167,.5)}.overview-activity-item:last-child{border-bottom:none;padding-bottom:0}.overview-activity-item:first-child{padding-top:0}.overview-activity-item strong{display:block;margin-top:4px;font-size:1rem}.overview-activity-item p,.overview-activity-item time{margin:6px 0 0;font-size:.92rem}.overview-activity-item time{color:var(--muted);white-space:nowrap}.overview-empty-state{padding:4px 0}.overview-task-summary{display:grid;gap:12px;grid-template-columns:repeat(3,minmax(0,1fr));margin-bottom:16px}.overview-task-summary__item{padding:14px 16px;border:1px solid rgba(215,200,167,.56);border-radius:18px;background:#fcf8eee6}.overview-task-summary__item span{display:block;color:var(--muted);font-size:.86rem}.overview-task-summary__item strong{display:block;margin-top:8px;font-size:1.45rem}.overview-task-list,.tasks-list{display:grid;gap:12px}.overview-task-item{display:grid;grid-template-columns:auto 1fr auto;gap:14px;align-items:flex-start;padding:14px 0;border-bottom:1px solid rgba(215,200,167,.5)}.overview-task-item:last-child{border-bottom:none;padding-bottom:0}.overview-task-item:first-child{padding-top:0}.overview-task-item input{width:18px;height:18px;margin-top:4px;padding:0}.overview-task-item strong,.task-card__header h3{display:block;margin:0}.overview-task-item p,.task-card__notes,.task-card__meta span{margin:6px 0 0;color:var(--muted)}.task-filter-group{display:inline-flex;flex-wrap:wrap;gap:10px}.task-filter-chip{padding:.78rem 1rem;border:1px solid var(--line);border-radius:999px;background:#fffdfa;color:var(--muted);font-weight:700}.task-filter-chip--active{border-color:#27594859;background:var(--accent-soft);color:var(--accent-strong)}.detail-grid--single{grid-template-columns:repeat(2,minmax(0,1fr))}.task-card{display:grid;grid-template-columns:auto 1fr auto;gap:16px;align-items:flex-start;padding:18px;border:1px solid var(--line);border-radius:24px;background:#fffcf6eb;box-shadow:0 10px 26px #463c280f}.task-card--completed{background:#f0f8f4e6}.task-card__toggle{display:inline-flex;align-items:center;gap:10px;font-weight:700;color:var(--muted)}.task-card__toggle input{width:20px;height:20px;padding:0}.task-card__content{min-width:0}.task-card__header{display:flex;justify-content:space-between;align-items:flex-start;gap:16px}.task-card__badges{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px}.task-status-badge{display:inline-flex;align-items:center;padding:7px 12px;border-radius:999px;background:#f7efe1;color:#7d5c1e;font-size:.84rem;font-weight:700;white-space:nowrap}.task-status-badge--completed{background:#e5f1ea;color:var(--accent-strong)}.task-meta-badge{display:inline-flex;align-items:center;padding:7px 12px;border-radius:999px;background:#f4eddc;color:#7d6426;font-size:.84rem;font-weight:700;white-space:nowrap}.task-meta-badge--overdue,.overview-task-meta--overdue{color:var(--danger-strong)}.task-meta-badge--overdue{background:#f9e8e2}.task-card__meta{display:flex;flex-wrap:wrap;gap:16px;margin-top:12px}.overview-task-item .overview-task-meta{color:var(--muted);font-size:.9rem;white-space:nowrap}.task-card__actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px}.product-quantity-grid,.product-packaging-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.purchase-section-heading,.purchase-line-item__header,.purchase-file-row{display:flex;justify-content:space-between;align-items:flex-start;gap:16px}.purchase-section-heading{margin-bottom:16px}.purchase-line-list,.purchase-summary-list{display:grid;gap:14px}.purchase-line-item,.purchase-summary-item{padding:18px;border:1px solid rgba(215,200,167,.56);border-radius:22px;background:#fffcf6db}.purchase-line-item__header h4,.purchase-summary-item strong{margin:0}.purchase-file-row{align-items:center;min-height:52px;padding:.82rem .95rem;border:1px solid var(--line);border-radius:14px;background:#fffdfa}.purchase-file-name{color:var(--text);font-weight:600}.purchase-link{display:inline-flex;align-items:center;margin-top:12px;color:var(--accent);font-weight:700;text-decoration:none}.purchase-link:hover{text-decoration:underline}.purchase-status-badge{display:inline-flex;align-items:center;width:fit-content;padding:6px 12px;border-radius:999px;font-size:.82rem;font-weight:700}.purchase-status-badge--ordered{background:#f4eddc;color:#7d6426}.purchase-status-badge--in-transit{background:#e6f0eb;color:var(--accent-strong)}.purchase-status-badge--arrived{background:#f7efe1;color:#7d5c1e}.purchase-status-badge--received{background:#e5f1ea;color:var(--accent-strong)}.product-status-badge{display:inline-flex;align-items:center;width:fit-content;padding:6px 12px;border-radius:999px;font-size:.82rem;font-weight:700}.product-status-badge--in-stock{background:#e5f1ea;color:var(--accent-strong)}.product-status-badge--low-stock{background:#f7efe1;color:#7d5c1e}.product-status-badge--out-of-stock{background:#f9e8e2;color:var(--danger-strong)}.product-calculation-strip{display:grid;gap:12px;grid-template-columns:repeat(3,minmax(0,1fr));margin-top:16px}.product-calculation-card{padding:14px 16px;border:1px solid rgba(215,200,167,.56);border-radius:18px;background:#fffcf6eb}.product-calculation-card span{display:block;color:var(--muted);font-size:.84rem}.product-calculation-card strong{display:block;margin-top:8px;font-size:1.4rem;line-height:1.1}@media (max-width: 1160px){.shell-topbar,.page-header,.page-toolbar,.empty-state,.overview-header,.purchase-section-heading,.purchase-line-item__header,.purchase-file-row{flex-direction:column;align-items:stretch}.company-switcher-panel{min-width:0}.brand-identity{align-items:flex-start}.top-navigation{grid-template-columns:repeat(4,minmax(0,1fr))}.stat-grid,.detail-grid,.overview-grid,.overview-kpi-grid,.overview-task-summary,.product-calculation-strip,.form-grid,.product-quantity-grid,.product-packaging-grid{grid-template-columns:1fr}.overview-panel--wide{grid-column:span 1}.overview-clock-panel{width:100%}}@media (max-width: 760px){.app-shell{padding:16px}.shell-header,.page,.dialog__body,.dialog__header,.dialog__footer{padding-left:18px;padding-right:18px}.top-navigation,.company-switcher,.overview-clock-grid,.task-card,.overview-task-item,.detail-grid--single{grid-template-columns:1fr}.task-card__header{flex-direction:column}.task-card__actions{justify-content:flex-start}.brand-identity{flex-direction:column;gap:14px}.brand-logo-wrap{width:170px;min-height:0}.dialog-backdrop{padding:16px}.overview-activity-item{flex-direction:column;gap:8px}}
