:root { --ink:#19322d; --forest:#183e35; --leaf:#2f7563; --mint:#dff0e8; --sand:#f6f1e7; --paper:#fffdfa; --line:#d8dfda; --red:#a7362c; --orange:#955f13; --shadow:0 10px 30px #183e3517; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color:var(--ink); background:var(--sand); }
* { box-sizing:border-box; } body { margin:0; min-width:320px; } button, input, select, textarea { font:inherit; } button { cursor:pointer; border:0; border-radius:10px; padding:12px 16px; color:white; background:var(--forest); font-weight:700; min-height:46px; } button:hover { background:#245348; } button.secondary { color:var(--forest); background:#ebf0ec; } button.secondary:hover { background:#dbe7df; } button.danger { background:var(--red); } .hidden { display:none !important; }
.summary-card.needs-attention, .batch-card.pending-result { border-color:#d98a2b; background:#fff6e8; } .summary-card.needs-attention strong { color:#a55310; } .pill.pending-result-pill { background:#ffe0ac; color:#8d4808; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.photo-lot-list { display:grid; gap:7px; } .photo-lot-row { display:flex; align-items:center; gap:9px; min-height:58px; padding:7px 9px; border-bottom:1px solid var(--line); } .photo-lot-row:last-child { border-bottom:0; }.photo-ingredient-name { flex:1 1 260px; font-weight:800; }.camera-trigger { display:grid; place-items:center; width:48px; height:44px; min-height:44px; border-radius:9px; background:var(--forest); color:white; cursor:pointer; font-size:1.3rem; }.camera-trigger input { position:absolute; width:1px; height:1px; opacity:0; pointer-events:none; }.photo-preview, .saved-photo-thumbnails img { width:44px; height:44px; border-radius:8px; object-fit:cover; border:1px solid var(--line); }.saved-photo-thumbnails { display:flex; gap:6px; align-items:center; }.saved-photo-button { min-height:0; padding:0; background:transparent; border-radius:8px; line-height:0; }.saved-photo-button:hover { background:transparent; }.photo-lot-row .message { flex:0 1 auto; }.photo-lot-row .message:not(:empty) { min-width:100px; }.photo-dialog { width:min(94vw,760px); }.photo-dialog img { display:block; width:100%; max-height:70vh; object-fit:contain; border-radius:10px; background:#eef1ef; }
.photo-lot-list { display:grid; gap:7px; } .photo-lot-row { display:flex; align-items:center; gap:9px; min-height:58px; padding:7px 9px; border-bottom:1px solid var(--line); } .photo-lot-row:last-child { border-bottom:0; }.photo-ingredient-name { flex:1 1 260px; font-weight:800; }.camera-trigger { display:grid; place-items:center; width:48px; height:44px; min-height:44px; border-radius:9px; background:var(--forest); color:white; cursor:pointer; font-size:1.3rem; }.camera-trigger input { position:absolute; width:1px; height:1px; opacity:0; pointer-events:none; }.photo-preview, .saved-photo-thumbnails img { width:44px; height:44px; border-radius:8px; object-fit:cover; border:1px solid var(--line); }.saved-photo-thumbnails { display:flex; gap:6px; align-items:center; }.saved-photo-button { min-height:0; padding:0; background:transparent; border-radius:8px; line-height:0; }.saved-photo-button:hover { background:transparent; }.photo-lot-row .message { flex:0 1 auto; }.photo-lot-row .message:not(:empty) { min-width:100px; }.photo-dialog { width:min(94vw,760px); }.photo-dialog img { display:block; width:100%; max-height:70vh; object-fit:contain; border-radius:10px; background:#eef1ef; }.production-saved-dialog { text-align:center; }.production-saved-dialog h2 { font-size:1.7rem; margin:0 0 10px; }.production-saved-dialog .lot-label { margin:24px 0 3px; color:#5c6a64; font-size:.75rem; font-weight:800; letter-spacing:.11em; }.saved-lot-code { color:var(--forest); font-size:clamp(2.5rem,9vw,5rem); font-weight:900; letter-spacing:.04em; line-height:1; overflow-wrap:anywhere; }
.login-shell { min-height:100dvh; display:grid; place-items:center; padding:24px; background:linear-gradient(145deg,#163d34,#286451); } .login-card { width:min(100%,420px); padding:32px; border-radius:22px; background:var(--paper); box-shadow:var(--shadow); } .login-card h1 { font-size:2.25rem; line-height:1.02; margin:0 0 14px; } .login-card form { margin-top:24px; display:grid; gap:14px; }
.eyebrow { margin:0 0 7px; color:var(--leaf); letter-spacing:.13em; font-size:.7rem; font-weight:800; } label { display:grid; gap:6px; font-size:.9rem; font-weight:700; } input, select, textarea { width:100%; border:1px solid var(--line); border-radius:9px; color:var(--ink); padding:11px; background:white; min-height:44px; } textarea { min-height:75px; resize:vertical; } input:focus,select:focus,textarea:focus { outline:3px solid #9bd1be; border-color:var(--leaf); }
.topbar { min-height:66px; padding:12px max(20px,calc((100vw - 1180px)/2)); display:flex; align-items:center; justify-content:space-between; background:var(--forest); color:white; position:sticky; top:0; z-index:3; } .brand { color:white; text-decoration:none; font-weight:900; letter-spacing:.08em; } .brand span { color:#9ed4ba; font-size:.72em; margin-left:5px; } .topbar-user { display:flex; align-items:center; gap:10px; font-size:.88rem; } .text-button { min-height:auto; background:transparent; padding:6px; color:#d8ede4; font-weight:600; }
.nav { background:white; display:flex; gap:4px; overflow-x:auto; padding:7px max(12px,calc((100vw - 1180px)/2)); border-bottom:1px solid var(--line); position:sticky; top:66px; z-index:2; } .nav a { white-space:nowrap; color:#49635a; text-decoration:none; font-size:.87rem; font-weight:700; padding:9px 11px; border-radius:8px; } .nav a.active { background:var(--mint); color:var(--forest); }
.content { width:min(1180px,100%); margin:0 auto; padding:28px 18px 56px; } .page-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; margin-bottom:20px; } h1 { margin:0; font-size:clamp(1.7rem,4vw,2.35rem); letter-spacing:-.04em; } h2 { font-size:1.05rem; margin:25px 0 12px; } .page-heading p:not(.eyebrow) { margin:6px 0 0; max-width:600px; color:#5e7068; }
.summary-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; } .summary-card, .panel, .batch-card { background:var(--paper); border:1px solid #e5e5df; box-shadow:var(--shadow); border-radius:15px; } .summary-card { padding:18px; } .summary-card strong { display:block; margin-top:6px; font-size:2rem; color:var(--forest); } .summary-card span { color:#61746b; font-size:.85rem; }.panel { padding:18px; } .form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:15px; max-width:800px; } .wide { grid-column:1/-1; }.small-note { color:#5c6a64; font-size:.84rem; margin:0; }
.list { display:grid; gap:10px; } .batch-card { padding:16px; display:grid; grid-template-columns:1fr auto; gap:10px; } .batch-card h3 { margin:0; font-size:1rem; } .batch-card p { margin:5px 0 0; font-size:.86rem; color:#587066; }.card-actions { align-self:center; display:flex; gap:8px; flex-wrap:wrap; justify-content:flex-end; }.card-actions button { min-height:38px; padding:8px 11px; font-size:.82rem; }.pill { display:inline-flex; width:max-content; padding:4px 7px; border-radius:999px; font-size:.68rem; font-weight:800; letter-spacing:.04em; background:#e3eae5; color:#325548; }.pill.SUBMITTED { background:#ffedc9; color:#79500d; }.pill.APPROVED { background:#d5eee2; color:#176045; }.pill.REJECTED,.pill.VOIDED { background:#f5dbd8; color:#88322b; }.pill.CORRECTION_REQUESTED { background:#fce5c8; color:#8f5111; }.pill.blocked { background:#f1d1cf; color:#80271f; }
.list { display:grid; gap:10px; } .batch-card { padding:16px; display:grid; grid-template-columns:1fr auto; gap:10px; } .batch-card-open { cursor:pointer; transition:transform .12s ease, border-color .12s ease; }.batch-card-open:hover { transform:translateY(-1px); border-color:#9bc5b2; }.batch-card-open:focus-visible { outline:3px solid #9bd1be; outline-offset:3px; }.batch-card h3 { margin:0; font-size:1rem; } .batch-card p { margin:5px 0 0; font-size:.86rem; color:#587066; }.batch-card .card-lot-code { color:var(--forest); font-size:clamp(1.35rem,4vw,2rem); font-weight:900; letter-spacing:.035em; line-height:1.05; }.card-actions { align-self:center; display:flex; gap:8px; flex-wrap:wrap; justify-content:flex-end; }.open-card-hint { color:var(--forest); background:#ebf0ec; border-radius:9px; padding:9px 11px; font-size:.82rem; font-weight:700; }.card-actions button { min-height:38px; padding:8px 11px; font-size:.82rem; }.pill { display:inline-flex; width:max-content; padding:4px 7px; border-radius:999px; font-size:.68rem; font-weight:800; letter-spacing:.04em; background:#e3eae5; color:#325548; }.pill.FINALIZED,.pill.APPROVED { background:#d5eee2; color:#176045; }.pill.SUBMITTED { background:#ffedc9; color:#79500d; }.pill.REJECTED,.pill.VOIDED { background:#f5dbd8; color:#88322b; }.pill.CORRECTION_REQUESTED { background:#fce5c8; color:#8f5111; }.pill.blocked { background:#f1d1cf; color:#80271f; }
.batch-detail { margin-top:18px; } .batch-hero { padding:22px; background:var(--forest); color:white; border-radius:16px 16px 0 0; }.batch-hero h2 { margin:4px 0; font-size:1.4rem; }.batch-hero .lot-code { font-size:1.45rem; font-weight:900; letter-spacing:.08em; color:#b8e4cf; }.detail-body { background:var(--paper); padding:18px; border:1px solid #e5e5df; border-top:0; border-radius:0 0 16px 16px; }.detail-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }.detail-grid div { border-radius:9px; background:#f3f6f3; padding:10px; font-size:.85rem; }.detail-grid strong { display:block; margin-top:4px; }.ingredient-row,.record-row { border-top:1px solid var(--line); padding:12px 0; }.ingredient-row:first-child { border-top:0; }.lots { margin:8px 0 0; padding-left:18px; color:#50655b; font-size:.86rem; }.subform { margin-top:12px; padding:13px; border:1px dashed #a5b8ae; border-radius:10px; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }.subform h3 { font-size:.92rem; margin:0; grid-column:1/-1; }.photo-strip { display:flex; gap:8px; flex-wrap:wrap; margin-top:10px; }.photo-strip img { width:72px; height:72px; object-fit:cover; border-radius:8px; border:1px solid var(--line); }.action-row { display:flex; gap:9px; flex-wrap:wrap; margin:18px 0; }.action-row button { min-height:40px; padding:9px 12px; font-size:.84rem; }.review-box { margin:15px 0; padding:15px; background:#f5f1e8; border-radius:10px; }.review-box textarea { margin:8px 0; }.inline-form,.search-form { display:flex; gap:9px; align-items:end; flex-wrap:wrap; }.search-form input { flex:1 1 240px; }.search-form select { flex:0 1 190px; }.message { min-height:1.2em; margin:0; font-size:.88rem; color:#586a62; }.message.error { color:var(--red); font-weight:700; }.message.success { color:#156040; font-weight:700; }.admin-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }.compact-list { display:grid; gap:8px; }.compact-list div { padding:9px; border-bottom:1px solid var(--line); font-size:.9rem; }.toast { position:fixed; bottom:20px; left:50%; transform:translateX(-50%); max-width:calc(100vw - 32px); background:#193b32; color:white; padding:12px 17px; border-radius:9px; box-shadow:var(--shadow); z-index:9; }.dialog-card { width:min(92vw,480px); border:0; border-radius:16px; padding:22px; color:var(--ink); }.dialog-card::backdrop { background:#102c2488; }.dialog-card h2 { margin:0; }.dialog-actions { display:flex; justify-content:flex-end; gap:10px; margin-top:18px; }
@media (max-width:650px) { .topbar { padding:11px 16px; } .topbar-user span { display:none; } .nav { top:63px; } .content { padding:21px 13px 45px; }.summary-grid { grid-template-columns:1fr; }.form-grid,.admin-grid { grid-template-columns:1fr; }.batch-card { grid-template-columns:1fr; }.card-actions { justify-content:flex-start; }.detail-grid { grid-template-columns:1fr; }.subform { grid-template-columns:1fr; }.page-heading { align-items:stretch; }.page-heading > button { align-self:center; }.page-heading h1 { font-size:1.8rem; } }
