.foodcost-main{background:radial-gradient(circle at 92% 4%,rgba(238,190,119,.14),transparent 26%),linear-gradient(180deg,#f8f3eb,#f5eee3)}
.foodcost-beta{display:inline-flex;vertical-align:middle;margin-left:8px;padding:4px 8px;border-radius:99px;background:#f1dbe4;color:#99435f;font-size:9px;letter-spacing:.12em}
.foodcost-sidebar-note p{margin:7px 0 0;color:rgba(255,255,255,.72);font-size:11px;line-height:1.5}
.foodcost-hero{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(320px,.65fr);gap:20px;margin:16px 0;padding:34px;border:1px solid rgba(66,83,49,.34);border-radius:24px;background:radial-gradient(circle at 84% 20%,rgba(239,190,107,.22),transparent 28%),linear-gradient(135deg,#263d2b,#5f6738);color:#fff;box-shadow:0 20px 45px rgba(37,50,31,.15)}
.foodcost-eyebrow{display:block;margin-bottom:10px;color:#f2c879;font-size:10px;font-weight:800;letter-spacing:.16em}
.foodcost-hero h2{max-width:720px;margin:0;font-size:clamp(30px,3.3vw,54px);line-height:1.02;letter-spacing:-.045em}
.foodcost-hero>div>p{max-width:690px;margin:15px 0 0;color:rgba(255,255,255,.78);font-size:15px;line-height:1.6}
.foodcost-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:24px}
.foodcost-primary,.foodcost-secondary,.foodcost-danger{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:0 18px;border-radius:12px;font:inherit;font-size:12px;font-weight:800;cursor:pointer;text-decoration:none}
.foodcost-primary{border:1px solid #f3c979;background:#efc570;color:#243529;box-shadow:0 9px 20px rgba(18,29,19,.16)}
.foodcost-primary:disabled{cursor:not-allowed;filter:grayscale(.7);opacity:.55}
.foodcost-secondary{border:1px solid #d9c8b4;background:#fffaf4;color:#5d493a}
.foodcost-hero .foodcost-secondary{border-color:rgba(255,255,255,.28);background:rgba(255,255,255,.1);color:#fff}
.foodcost-danger{border:1px solid #bc695e;background:#fff5f2;color:#9b3f35}
.foodcost-primary svg,.foodcost-secondary svg{width:17px;height:17px}
.foodcost-source-status{align-self:stretch;padding:20px;border:1px solid rgba(255,255,255,.18);border-radius:18px;background:rgba(255,255,255,.1);backdrop-filter:blur(8px)}
.foodcost-source-status>span{float:left;width:11px;height:11px;margin:5px 10px 0 0;border-radius:50%;background:#d1b879;box-shadow:0 0 0 5px rgba(255,255,255,.09)}
.foodcost-source-status>span.is-ok{background:#bcd077}.foodcost-source-status>span.is-warning{background:#f2be6e}.foodcost-source-status>span.is-error{background:#dc7168}
.foodcost-source-status small{display:block;color:#efca82;font-size:9px;font-weight:800;letter-spacing:.14em}
.foodcost-source-status strong{display:block;margin-top:4px;font-size:19px}.foodcost-source-status p{min-height:38px;margin:6px 0 18px;color:rgba(255,255,255,.72);font-size:11px;line-height:1.45}
.foodcost-source-status dl{display:grid;gap:8px;margin:0}.foodcost-source-status dl div{display:flex;justify-content:space-between;gap:14px;padding-top:8px;border-top:1px solid rgba(255,255,255,.13);font-size:10px}.foodcost-source-status dt{color:rgba(255,255,255,.6)}.foodcost-source-status dd{margin:0;text-align:right;font-weight:700}
.foodcost-notice{margin:0 0 14px;padding:12px 15px;border:1px solid #dbc68c;border-radius:12px;background:#fff7db;color:#755a21;font-size:12px}.foodcost-notice.is-error{border-color:#e0aaa4;background:#fff0ee;color:#8b352d}
.foodcost-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:16px}
.foodcost-kpis article{min-height:132px;padding:18px;border:1px solid #e2d3c1;border-radius:16px;background:rgba(255,255,255,.74);box-shadow:0 8px 20px rgba(91,66,45,.05)}
.foodcost-kpis small,.foodcost-kpis span{display:block;color:#887b6f;font-size:10px}.foodcost-kpis small{font-weight:800;text-transform:uppercase;letter-spacing:.06em}.foodcost-kpis strong{display:block;margin:15px 0 8px;color:#42372f;font-size:26px;line-height:1}.foodcost-kpis button{margin-top:2px;padding:0;border:0;background:none;color:#a85b45;font-size:10px;font-weight:800;cursor:pointer}
.foodcost-workspace{overflow:hidden;margin-bottom:16px;border:1px solid #dfcfbc;border-radius:20px;background:rgba(255,255,255,.72);box-shadow:0 12px 34px rgba(90,65,42,.07)}
.foodcost-workspace>header{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;padding:22px 24px}.foodcost-workspace>header span{color:#a85d45;font-size:9px;font-weight:800;letter-spacing:.14em}.foodcost-workspace>header h2{margin:5px 0 3px;font-size:25px}.foodcost-workspace>header p{margin:0;color:#83786e;font-size:12px}
.foodcost-filter-summary{display:flex;align-items:center;gap:7px;padding:8px 11px;border-radius:10px;background:#f1e8dc}.foodcost-filter-summary svg{width:15px;height:15px;color:#a45e46}.foodcost-filter-summary span{color:#65594f;font-size:10px;letter-spacing:0}
.foodcost-tabs{display:flex;gap:4px;overflow-x:auto;padding:0 20px;border-top:1px solid #ebded0;border-bottom:1px solid #ebded0;background:#f8f2ea}.foodcost-tabs button{min-height:48px;padding:0 13px;border:0;border-bottom:3px solid transparent;background:none;color:#786e64;font-size:10px;font-weight:750;white-space:nowrap;cursor:pointer}.foodcost-tabs button.is-active{border-bottom-color:#a7556f;color:#923b59}
.foodcost-filters{display:grid;grid-template-columns:minmax(220px,1.5fr) repeat(2,minmax(150px,1fr)) auto;gap:10px;padding:15px 20px;border-bottom:1px solid #eee2d5}.foodcost-filters label,.foodcost-dialog label{display:grid;gap:6px;color:#5d5148;font-size:10px;font-weight:750}.foodcost-filters input,.foodcost-filters select,.foodcost-dialog input,.foodcost-dialog select{min-height:42px;padding:0 12px;border:1px solid #dac8b4;border-radius:10px;background:#fff;color:#433a33;font:inherit;font-size:12px}.foodcost-check{display:flex!important;align-items:center!important;align-self:end;min-height:42px;padding:0 12px;border:1px solid #dac8b4;border-radius:10px;background:#fff}.foodcost-check input{width:16px;min-height:auto;padding:0;accent-color:#9c4b67}
.foodcost-table-wrap{overflow:auto;max-height:580px}.foodcost-data-table,.foodcost-preview-table{width:100%;border-collapse:collapse}.foodcost-data-table th,.foodcost-data-table td,.foodcost-preview-table th,.foodcost-preview-table td{padding:13px 14px;border-bottom:1px solid #eee3d7;text-align:left;font-size:11px;white-space:nowrap}.foodcost-data-table th,.foodcost-preview-table th{position:sticky;top:0;z-index:1;background:#f4ede4;color:#756a60;font-size:9px;text-transform:uppercase;letter-spacing:.05em}.foodcost-data-table tr.needs-attention td:first-child{border-left:4px solid #cf7059}.foodcost-data-table tr:hover td{background:#fffaf4}
.foodcost-empty{display:grid;place-items:center;min-height:330px;padding:35px;text-align:center}.foodcost-empty>span{display:grid;place-items:center;width:62px;height:62px;border-radius:18px;background:#e7ecdc;color:#687743}.foodcost-empty svg{width:29px;height:29px}.foodcost-empty h3{margin:14px 0 5px;font-size:19px}.foodcost-empty p{max-width:460px;margin:0;color:#80756b;font-size:12px}.foodcost-empty button{margin-top:18px;padding:10px 15px;border:1px solid #7a8351;border-radius:10px;background:#747d4b;color:#fff;font-weight:750;cursor:pointer}
.foodcost-footer{display:flex;justify-content:space-between;gap:20px;padding:9px 4px 22px;color:#8b7d70;font-size:10px}
.foodcost-dialog{width:min(1100px,calc(100vw - 28px));max-height:92vh;padding:0;border:1px solid #d7c4ae;border-radius:20px;background:#fffaf4;color:#43382f;box-shadow:0 30px 80px rgba(32,25,20,.28)}.foodcost-dialog::backdrop{background:rgba(27,35,26,.66);backdrop-filter:blur(5px)}.foodcost-dialog-small{width:min(560px,calc(100vw - 28px))}
.foodcost-dialog>form>header{display:flex;justify-content:space-between;gap:18px;padding:22px 24px;border-bottom:1px solid #e8dccc;background:linear-gradient(135deg,#fffdf9,#f8eadc)}.foodcost-dialog header span{color:#a75c45;font-size:9px;font-weight:850;letter-spacing:.15em}.foodcost-dialog header h2{margin:5px 0 2px;font-size:24px}.foodcost-dialog header p{margin:0;color:#81766d;font-size:11px}.foodcost-dialog-close{display:grid;place-items:center;flex:0 0 40px;height:40px;border:1px solid #dccbb8;border-radius:50%;background:#fff;color:#6d5d51;cursor:pointer}.foodcost-dialog-close svg{width:18px;height:18px}
.foodcost-dialog-body{overflow:auto;max-height:calc(92vh - 170px);padding:22px 24px}.foodcost-upload-step{display:grid;grid-template-columns:minmax(260px,1.4fr) minmax(180px,.7fr) auto;align-items:end;gap:12px}.foodcost-dialog label small{color:#8b8076;font-size:9px;font-weight:500}
.foodcost-preview-status{display:flex;justify-content:space-between;gap:16px;margin-top:22px;padding:12px 14px;border-radius:11px;background:#e9eedf;color:#53643a}.foodcost-review-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr auto;align-items:end;gap:10px;margin-top:14px}.foodcost-mapping{margin-top:15px;padding:15px;border:1px solid #e2d0bc;border-radius:12px;background:#fff}.foodcost-mapping h3{margin:0;font-size:14px}.foodcost-mapping p{margin:4px 0 12px;color:#81756a;font-size:10px}.foodcost-mapping>div{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.foodcost-preview-warning,.foodcost-conflict,.foodcost-dialog-error{margin-top:13px;padding:12px 14px;border-radius:10px;font-size:11px}.foodcost-preview-warning{border:1px solid #e5ce8e;background:#fff7dd;color:#755923}.foodcost-conflict{border:1px solid #e4a399;background:#fff0ed;color:#7c332c}.foodcost-conflict p{margin:5px 0 11px}.foodcost-dialog-error{border:1px solid #e0a49e;background:#fff0ee;color:#8c362f}.foodcost-preview-table-wrap{overflow:auto;max-height:320px;margin-top:14px;border:1px solid #e5d7c8;border-radius:11px}.foodcost-preview-table input{min-width:130px;width:100%;min-height:36px;border:1px solid #ddcbb7;border-radius:8px;padding:0 9px}.foodcost-readonly-note{display:flex;align-items:center;gap:7px;color:#607146;font-size:10px}.foodcost-readonly-note svg{width:15px;height:15px}
.foodcost-dialog>form>footer{display:flex;justify-content:flex-end;gap:10px;padding:15px 24px;border-top:1px solid #e9ddcf;background:#fff}.foodcost-target-dialog label{font-size:12px}
.toast{position:fixed;right:22px;bottom:22px;z-index:1000;max-width:420px;padding:13px 17px;border-radius:12px;background:#24362a;color:#fff;box-shadow:0 14px 35px rgba(20,30,22,.25);font-size:12px;transform:translateY(18px);opacity:0;pointer-events:none;transition:.2s}.toast.show{transform:none;opacity:1}
@media(max-width:1100px){.foodcost-hero{grid-template-columns:1fr}.foodcost-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.foodcost-upload-step,.foodcost-review-grid{grid-template-columns:1fr 1fr}.foodcost-mapping>div{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.foodcost-hero{padding:24px 20px;border-radius:18px}.foodcost-hero h2{font-size:34px}.foodcost-kpis{grid-template-columns:1fr 1fr}.foodcost-workspace>header{align-items:flex-start}.foodcost-filters{grid-template-columns:1fr 1fr}.foodcost-upload-step,.foodcost-review-grid,.foodcost-mapping>div{grid-template-columns:1fr}.foodcost-dialog-body{padding:18px}.foodcost-dialog>form>header,.foodcost-dialog>form>footer{padding:16px 18px}.foodcost-footer{flex-direction:column}}
@media(max-width:520px){.foodcost-kpis{grid-template-columns:1fr}.foodcost-filters{grid-template-columns:1fr}.foodcost-workspace>header{display:block}.foodcost-filter-summary{width:fit-content;margin-top:12px}.foodcost-actions{display:grid}.foodcost-primary,.foodcost-secondary{width:100%}}
