:root {
    --ink: #25231f;
    --muted: #706c64;
    --paper: #fff;
    --canvas: #f7f3ee;
    --line: #e6e0d8;
    --accent: #bd6848;
    --accent-dark: #a85235;
    --green-deep: #285c48;
    --danger-bg: #fff1ed;
    --danger: #9b3b27;
    --radius: 18px;
    --shadow: 0 20px 60px rgba(49, 39, 28, .08);
    --glass-surface: rgba(255, 255, 255, .72);
    --glass-surface-strong: rgba(255, 255, 255, .9);
    --glass-border: rgba(126, 114, 100, .2);
    --glass-shadow: inset 0 1px 0 rgba(255, 255, 255, .92), 0 7px 18px rgba(49, 39, 28, .09);
    --record-hover-border: rgba(104, 123, 107, .38);
    --record-hover-shadow: inset 0 1px 0 rgba(255, 255, 255, .86), 0 10px 26px rgba(49, 39, 28, .1);
}

/* Configuración privada del trabajador OCR. */
.remote-ocr-shell { max-width:1180px; }
.remote-ocr-summary { display:grid;margin:18px 0;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px; }
.remote-ocr-summary article,.remote-ocr-card,.remote-ocr-protocol,.remote-ocr-flow { border:1px solid rgba(255,255,255,.76);background:linear-gradient(145deg,rgba(255,255,255,.76),rgba(244,239,231,.6));box-shadow:0 14px 34px rgba(66,48,35,.08),inset 0 1px 0 rgba(255,255,255,.95);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px); }
.remote-ocr-summary article { display:grid;min-height:82px;padding:14px;border-radius:15px;align-content:center;gap:5px; }
.remote-ocr-summary span { color:var(--muted);font-size:.64rem;font-weight:750; }
.remote-ocr-summary strong { font-size:.86rem; }
.remote-ocr-card { padding:20px;border-radius:20px; }
.remote-ocr-intro { display:flex;margin-bottom:18px;align-items:flex-start;justify-content:space-between;gap:28px; }
.remote-ocr-intro h2,.remote-ocr-protocol h2,.remote-ocr-flow h2 { margin:2px 0 0;font-family:Georgia,serif;font-size:1.2rem;font-weight:500; }
.remote-ocr-intro>p { max-width:560px;margin:0;color:var(--muted);font-size:.72rem;line-height:1.55; }
.remote-ocr-form { display:grid;gap:16px; }
.remote-ocr-active { justify-self:start; }
.remote-ocr-grid { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px; }
.remote-ocr-grid label,.remote-ocr-secret label { display:grid;gap:6px;color:var(--muted);font-size:.68rem;font-weight:800; }
.remote-ocr-grid input,.remote-ocr-grid select,.remote-ocr-secret input { width:100%;min-height:43px;padding:9px 11px;border:1px solid rgba(112,90,72,.18);border-radius:11px;background:rgba(255,255,255,.82);color:var(--ink);font:inherit;box-shadow:inset 0 1px 0 #fff; }
.remote-ocr-grid small,.remote-ocr-secret small { color:var(--muted);font-size:.6rem;font-weight:500; }
.remote-ocr-number { display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px; }
.remote-ocr-number b { color:var(--muted);font-size:.64rem; }
.remote-ocr-secret { margin:0;padding:14px;border:1px solid rgba(112,90,72,.14);border-radius:14px;background:rgba(255,255,255,.45); }
.remote-ocr-secret legend { padding:0 7px;font-family:Georgia,serif;font-size:.94rem; }
.remote-ocr-secret>div { display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:10px; }
.remote-ocr-secret>small { display:block;margin-top:7px; }
.remote-ocr-protocol { display:flex;margin-top:14px;padding:16px 18px;border-radius:17px;align-items:center;justify-content:space-between;gap:18px; }
.remote-ocr-protocol p { margin:5px 0 0;color:var(--muted);font-size:.68rem; }
.remote-ocr-protocol small { display:block;margin-top:7px;color:var(--danger);font-size:.62rem; }
.remote-ocr-protocol form { margin:0; }
.remote-ocr-flow { margin-top:14px;padding:18px;border-radius:17px; }
.remote-ocr-flow ol { display:grid;margin:13px 0 0;padding:0;grid-template-columns:repeat(5,minmax(0,1fr));counter-reset:ocr-flow;gap:9px;list-style:none; }
.remote-ocr-flow li { position:relative;min-height:86px;padding:34px 11px 11px;border:1px solid rgba(112,90,72,.12);border-radius:12px;background:rgba(255,255,255,.45);color:var(--muted);font-size:.63rem;line-height:1.45;counter-increment:ocr-flow; }
.remote-ocr-flow li::before { position:absolute;top:9px;left:10px;content:counter(ocr-flow);display:grid;width:19px;height:19px;border-radius:50%;place-items:center;color:#fff;background:#20551a;font-size:.58rem;font-weight:850; }
.ollama-card { margin-top:14px;scroll-margin-top:18px; }
.ollama-heading-status { display:flex;max-width:610px;align-items:flex-start;gap:12px; }
.ollama-heading-status p { margin:0;color:var(--muted);font-size:.72rem;line-height:1.55; }
.ollama-heading-status .status-pill { flex:0 0 auto; }
.ollama-diagnostics { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px; }
.ollama-diagnostics span { display:grid;padding:10px 12px;border:1px solid rgba(112,90,72,.12);border-radius:11px;background:rgba(255,255,255,.45);color:var(--muted);font-size:.65rem;gap:3px; }
.ollama-diagnostics b { color:var(--ink);font-size:.62rem; }
.ollama-error { margin:0;padding:10px 12px;border-radius:10px;color:var(--danger);background:var(--danger-bg);font-size:.67rem; }
.ollama-actions { display:flex;flex-wrap:wrap;gap:9px; }

@media (max-width:800px) {
    .remote-ocr-summary { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .remote-ocr-grid { grid-template-columns:1fr; }
    .remote-ocr-intro,.remote-ocr-protocol,.ollama-heading-status { align-items:stretch;flex-direction:column;gap:12px; }
    .ollama-diagnostics { grid-template-columns:1fr; }
    .remote-ocr-protocol .button { width:100%; }
    .remote-ocr-flow ol { grid-template-columns:1fr; }
    .remote-ocr-flow li { min-height:0; }
}

@media (max-width:520px) {
    .remote-ocr-summary { grid-template-columns:1fr; }
    .remote-ocr-summary article { min-height:68px; }
    .remote-ocr-card { padding:15px; }
    .remote-ocr-secret>div { grid-template-columns:1fr; }
    .remote-ocr-secret .button { width:100%; }
    .ollama-actions .button { width:100%; }
}

/* Gastos y digitalización de facturas */
.expense-shell { max-width: 1380px; }
.expense-summary { display: grid; margin: 14px 0; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.expense-summary > div { display: grid; min-height: 78px; padding: 13px 15px; align-content: center; gap: 3px; border: 1px solid rgba(255,255,255,.76); border-radius: 14px; background: linear-gradient(145deg,rgba(255,255,255,.86),rgba(247,244,239,.68)); box-shadow: inset 0 1px 0 rgba(255,255,255,.86),0 10px 26px rgba(54,44,35,.07); backdrop-filter: blur(14px); }
.expense-summary span { color: var(--muted); font-size: .66rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.expense-summary strong { color: var(--ink); font-family: Georgia,serif; font-size: 1.35rem; font-weight: 500; }
.expense-queue-summary { display:flex;margin:12px 0;padding:13px 15px;border:1px solid rgba(32,85,26,.2);border-radius:14px;align-items:center;justify-content:space-between;gap:14px;background:rgba(238,247,235,.82);box-shadow:inset 0 1px 0 rgba(255,255,255,.9),0 8px 22px rgba(49,39,28,.05); }
.expense-queue-summary[hidden] { display:none; }.expense-queue-summary>div { display:grid;min-width:0;gap:2px; }.expense-queue-summary span { color:#52705a;font-size:.62rem;font-weight:850;letter-spacing:.08em;text-transform:uppercase; }.expense-queue-summary strong,.expense-queue-summary small { overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }.expense-queue-summary small { color:var(--muted);font-size:.7rem; }
.expense-filter-bar { grid-template-columns: minmax(220px,1fr) minmax(150px,.4fr) minmax(190px,.55fr) auto auto; }
.expense-filter-bar .search-autocomplete { width:100%; }
.expense-filter-bar .search-suggestions { z-index:40;min-width:min(520px,calc(100vw - 48px)); }
.expense-filter-bar .search-suggestion { display:block;min-width:0;padding:11px 13px;border-bottom:1px solid rgba(117,105,91,.12);color:var(--ink);background:rgba(255,255,255,.96);text-decoration:none;transition:background-color .16s ease; }
.expense-filter-bar .search-suggestion:last-child { border-bottom:0; }
.expense-filter-bar .search-suggestion:hover,.expense-filter-bar .search-suggestion:focus-visible { outline:0;background:#f7f3ed; }
.expense-filter-bar .search-suggestion>span { display:grid;min-width:0;gap:4px; }
.expense-filter-bar .search-suggestion strong,.expense-filter-bar .search-suggestion small { display:block;overflow:hidden;margin:0;text-overflow:ellipsis;white-space:nowrap; }
.expense-filter-bar .search-suggestion strong { font-size:.74rem;line-height:1.35; }
.expense-filter-bar .search-suggestion small { color:var(--muted);font-size:.62rem;font-weight:600;line-height:1.4; }
.expense-table .table-row { grid-template-columns: minmax(170px,1.35fr) minmax(120px,.8fr) 100px minmax(140px,1fr) 105px minmax(120px,.8fr) minmax(120px,.75fr); }
.expense-table .table-row > span { min-width: 0; }
.expense-table small { display: block; margin-top: 2px; color: var(--muted); font-size: .6rem; }
.expense-status { display: inline-flex; min-height: 24px; padding: 4px 8px; align-items: center; border: 1px solid transparent; border-radius: 999px; font-size: .62rem; line-height: 1; white-space: nowrap; }
.expense-status.is-pendiente { border-color: #dfc88d; color: #75560d; background: #fff4cd; }
.expense-status.is-confirmado { border-color: #a8c6a4; color: #20551a; background: #eaf5e8; }
.expense-status.is-corregida { border-color:#a8c6a4;color:#20551a;background:#eaf5e8; }.expense-status.is-pendiente,.expense-status.is-procesando { border-color:#d7ccb7;color:#765d2c;background:#fff8df; }.expense-status.is-sin_correccion,.expense-status.is-agotada { border-color:#e0b0a6;color:#8d332a;background:#fff0ed; }
.expense-view-tabs { display:flex;width:fit-content;margin:0 0 18px;padding:4px;border:1px solid rgba(117,105,91,.16);border-radius:14px;gap:4px;background:rgba(255,255,255,.68);box-shadow:inset 0 1px 0 rgba(255,255,255,.9); }
.expense-view-tabs a { display:flex;min-height:38px;padding:8px 13px;align-items:center;gap:7px;border-radius:10px;color:var(--muted);font-size:.72rem;font-weight:850;text-decoration:none; }
.expense-view-tabs a span { display:grid;min-width:22px;height:22px;padding:0 6px;border-radius:999px;place-items:center;background:rgba(117,105,91,.10);font-size:.62rem; }
.expense-view-tabs a.is-active { color:#fff;background:linear-gradient(145deg,#20551a,#34743a);box-shadow:0 7px 15px rgba(32,85,26,.18),inset 0 1px 0 rgba(255,255,255,.25); }
.expense-recovery-heading { margin-bottom:14px;padding:18px 20px;border:1px solid rgba(255,255,255,.72);border-radius:16px;background:rgba(255,255,255,.58);box-shadow:0 12px 26px rgba(74,58,43,.08),inset 0 1px 0 rgba(255,255,255,.85); }
.expense-recovery-heading h2 { margin:2px 0 5px;font-family:Georgia,serif;font-size:1.45rem;font-weight:500; }.expense-recovery-heading p { max-width:780px;margin:0;color:var(--muted);font-size:.72rem;line-height:1.55; }
.expense-recovery-grid { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px; }
.expense-recovery-card { display:grid;min-width:0;padding:15px;border:1px solid rgba(255,255,255,.76);border-radius:15px;gap:12px;background:rgba(255,255,255,.66);box-shadow:0 12px 25px rgba(74,58,43,.08),inset 0 1px 0 rgba(255,255,255,.92);transition:transform .2s ease,box-shadow .2s ease; }.expense-recovery-card:hover { transform:translateY(-2px);box-shadow:0 16px 30px rgba(74,58,43,.12),inset 0 1px 0 rgba(255,255,255,.95); }
.expense-recovery-card header { display:flex;min-width:0;align-items:start;justify-content:space-between;gap:12px; }.expense-recovery-card header div { display:grid;min-width:0;gap:3px; }.expense-recovery-card header strong { overflow-wrap:anywhere;font-size:.86rem; }.expense-recovery-card header small,.expense-recovery-card>p { color:var(--muted);font-size:.65rem;line-height:1.4; }
.expense-recovery-status { flex:0 0 auto;padding:5px 8px;border:1px solid #d7ccb7;border-radius:999px;color:#765d2c;background:#fff8df;font-size:.59rem; }.expense-recovery-card.is-corregida .expense-recovery-status { border-color:#a8c6a4;color:#20551a;background:#eaf5e8; }.expense-recovery-card.is-sin_correccion .expense-recovery-status,.expense-recovery-card.is-agotada .expense-recovery-status { border-color:#e0b0a6;color:#8d332a;background:#fff0ed; }
.expense-recovery-card dl { display:grid;margin:0;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px; }.expense-recovery-card dl div { display:grid;padding:8px 9px;border-radius:9px;background:rgba(247,245,240,.82);gap:2px; }.expense-recovery-card dt { color:var(--muted);font-size:.55rem;font-weight:850;text-transform:uppercase; }.expense-recovery-card dd { margin:0;font-size:.72rem;font-weight:750; }.expense-recovery-card>p { margin:0; }.expense-recovery-card footer { display:flex;justify-content:flex-end;gap:8px; }.expense-recovery-card footer form { margin:0; }
.expense-recovery-wait { display:inline-flex;align-items:center;min-height:31px;padding:0 10px;border-radius:999px;color:var(--muted);background:rgba(247,245,240,.9);font-size:.63rem;font-weight:800; }
@media (max-width:700px) { .expense-view-tabs { width:100%; }.expense-view-tabs a { flex:1;justify-content:center; }.expense-recovery-grid { grid-template-columns:1fr; }.expense-recovery-card:hover { transform:none; } }
.expense-duplicate { color: #a33b2e !important; font-weight: 800; }
.expense-table .is-duplicate { box-shadow: inset 3px 0 0 #ca6844; }
.expense-upload-modal .order-modal-card { width: min(760px,calc(100vw - 32px)); }
.expense-upload-options { display: grid; margin-top: 16px; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.expense-upload-option:only-child { width: min(100%,440px); grid-column: 1 / -1; justify-self: center; }
.expense-upload-option { display: grid; min-width: 0; padding: 18px; align-content: start; gap: 8px; border: 1px solid rgba(255,255,255,.8); border-radius: 15px; background: linear-gradient(145deg,rgba(255,255,255,.88),rgba(244,239,232,.68)); box-shadow: inset 0 1px 0 rgba(255,255,255,.9),0 9px 24px rgba(55,43,34,.08); }
.expense-upload-option[hidden] { display: none !important; }
.expense-upload-icon { display: grid; width: 42px; height: 42px; margin-bottom: 2px; place-items: center; border: 1px solid rgba(32,85,26,.18); border-radius: 13px; color: #20551a; background: rgba(225,239,222,.82); font-size: 1.4rem; }
.expense-upload-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.expense-upload-option > strong { font-family: Georgia,serif; font-size: 1.05rem; font-weight: 500; }
.expense-upload-option > small { min-height: 34px; margin: 0; color: var(--muted); font-size: .68rem; line-height: 1.4; }
.expense-upload-option input[type=file] { width: 100%; min-width: 0; padding: 8px; border: 1px dashed #c9c0b5; border-radius: 10px; color: var(--muted); background: rgba(255,255,255,.72); font-size: .67rem; }
.expense-upload-option .button { width: 100%; margin-top: 2px; }
.expense-file-dropzone { display: grid; min-height: 116px; padding: 18px; border: 2px dashed rgba(178,86,53,.3); border-radius: 13px; place-content: center; gap: 5px; color: var(--muted); background: rgba(255,255,255,.48); text-align: center; cursor: pointer; outline: 0; transition: border-color .2s ease,background .2s ease,box-shadow .2s ease,transform .2s ease; }
.expense-file-dropzone > span { color: var(--ink); font-size: .8rem; font-weight: 850; }
.expense-file-dropzone > small { font-size: .64rem; }
.expense-file-dropzone:hover,.expense-file-dropzone:focus-visible,.expense-file-dropzone.is-dragging { border-color: rgba(32,85,26,.62); background: rgba(235,244,233,.76); box-shadow: 0 0 0 4px rgba(32,85,26,.09); transform: translateY(-1px); }
.expense-scan-stage { display: grid; min-height: 290px; padding: 22px 12px 14px; grid-template-columns: 190px minmax(0,300px); place-content: center; align-items: center; gap: 28px; text-align: left; }
.expense-scan-stage[hidden] { display: none; }
.expense-scan-sheet { position: relative; width: 180px; height: 240px; overflow: hidden; border: 1px solid rgba(91,82,72,.2); border-radius: 8px 8px 13px 8px; background: #fff; box-shadow: 0 22px 45px rgba(49,39,28,.17),inset 0 0 0 7px rgba(255,255,255,.72); transform: perspective(800px) rotateY(-2deg); }
.expense-scan-sheet::after { content: ''; position: absolute; right: 12px; bottom: 11px; width: 48px; height: 22px; border-radius: 50%; background: rgba(202,104,68,.1); filter: blur(5px); }
.expense-scan-sheet img { position: absolute; z-index: 1; inset: 9px; width: calc(100% - 18px); height: calc(100% - 18px); border-radius: 3px; object-fit: contain; background: #fff; }
.expense-scan-document { position: absolute; z-index: 1; inset: 9px; display: grid; padding: 20px 17px 18px; align-content: start; gap: 12px; border: 1px solid rgba(79,76,69,.08); border-radius: 4px; background: linear-gradient(145deg,#fff,#faf8f4); }
.expense-scan-document[hidden] { display: none; }
.expense-scan-document span { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.expense-scan-document i,.expense-scan-document b { display: block; height: 5px; border-radius: 999px; background: rgba(75,76,69,.17); }
.expense-scan-document-head { margin-bottom: 7px; }
.expense-scan-document-head i { width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(145deg,rgba(32,85,26,.78),rgba(32,85,26,.38)); }
.expense-scan-document-head b { width: 54px; height: 8px; background: rgba(45,66,43,.29); }
.expense-scan-document-meta i:first-child { width: 68px; }
.expense-scan-document-meta i:last-child { width: 42px; }
.expense-scan-document-rule { height: 1px; margin: 1px 0 3px; background: rgba(75,76,69,.13); }
.expense-scan-document-row i { width: 78px; }
.expense-scan-document-row b { width: 27px; }
.expense-scan-document-total { margin-top: 10px; justify-content: flex-end !important; }
.expense-scan-document-total i { width: 40px; background: rgba(202,104,68,.2); }
.expense-scan-document-total b { width: 33px; height: 7px; background: rgba(202,104,68,.5); }
.expense-scan-progress { --expense-progress: 0deg; position: absolute; z-index: 4; left: 50%; top: 50%; display: grid; width: 78px; height: 78px; place-items: center; overflow: hidden; border: 1px solid rgba(255,255,255,.88); border-radius: 50%; color: #20551a; background: conic-gradient(#20551a var(--expense-progress),rgba(32,85,26,.14) 0); box-shadow: 0 13px 32px rgba(31,54,27,.2),inset 0 1px 0 rgba(255,255,255,.92); font-family: Georgia,serif; font-size: 0; font-weight: 700; transform: translate(-50%,-50%); }
.expense-scan-progress::before { content: ''; position: absolute; inset: 5px; border-radius: inherit; background: rgba(255,255,255,.91); -webkit-backdrop-filter: blur(7px); backdrop-filter: blur(7px); }
.expense-scan-progress::after { content: attr(data-progress-label); position: absolute; z-index: 1; inset: 0; display: grid; place-items: center; font-size: 1.13rem; line-height: 1; text-align: center; }
.expense-scan-progress[hidden] { display: none; }
.expense-scan-beam { position: absolute; z-index: 3; left: 5px; right: 5px; top: -28px; height: 38px; border-bottom: 2px solid rgba(65,173,83,.88); background: linear-gradient(to bottom,transparent,rgba(99,211,117,.08),rgba(106,224,124,.42)); box-shadow: 0 9px 19px rgba(68,193,89,.26); animation: expense-scan-beam 1.65s ease-in-out infinite; }
.expense-scan-copy { display: grid; min-width: 0; gap: 8px; }
.expense-scan-copy > strong { color: #20551a; font-family: Georgia,serif; font-size: 1.25rem; font-weight: 500; }
.expense-scan-copy > small { max-width: 300px; overflow: hidden; color: var(--muted); font-size: .7rem; line-height: 1.5; text-overflow: ellipsis; }
.expense-scan-message { position:relative;display:grid;min-height:78px;margin:7px 0 1px;padding:11px 14px 12px 17px;align-content:center;gap:4px;overflow:hidden;border:1px solid rgba(255,255,255,.74);border-radius:13px;color:#514941;background:linear-gradient(145deg,rgba(255,255,255,.78),rgba(239,244,236,.61));box-shadow:inset 0 1px 0 rgba(255,255,255,.88),0 10px 26px rgba(49,58,44,.06);opacity:0;filter:blur(2px);transform:translateY(7px);transition:opacity .68s cubic-bezier(.22,1,.36,1),transform .68s cubic-bezier(.22,1,.36,1),filter .68s ease; }
.expense-scan-message::before { content:'';position:absolute;left:0;top:13px;bottom:13px;width:3px;border-radius:0 999px 999px 0;background:linear-gradient(#7da876,#335f32);opacity:.72; }
.expense-scan-message::after { content:'';position:absolute;z-index:1;top:-18%;bottom:-18%;left:0;width:38%;border-left:1px solid rgba(255,255,255,.9);background:linear-gradient(90deg,transparent,rgba(164,219,158,.08) 28%,rgba(223,255,219,.42) 54%,rgba(107,190,101,.11) 72%,transparent);box-shadow:0 0 20px rgba(126,201,119,.15);opacity:0;pointer-events:none;transform:translateX(-145%) skewX(-10deg); }
.expense-scan-message > span,.expense-scan-message > p { position:relative;z-index:2; }
.expense-scan-message > span { color:#557052;font-size:.56rem;font-weight:850;letter-spacing:.12em;text-transform:uppercase; }
.expense-scan-message > p { min-height:2.7em;margin:0;font-family:Georgia,serif;font-size:.88rem;line-height:1.42;text-wrap:balance; }
.expense-scan-message.is-visible { opacity:1;filter:blur(0);transform:translateY(0); }
.expense-scan-message.is-visible::after { animation:expense-message-scan 2.15s .48s cubic-bezier(.3,.05,.25,1) 1; }
.expense-scan-message.is-visible > p { animation:expense-message-copy-in .92s cubic-bezier(.22,1,.36,1) both; }
.expense-scan-message.is-leaving { opacity:0;filter:blur(2px);transform:translateY(-6px);transition-duration:.52s; }
.expense-upload-modal.is-locked .expense-upload-options { pointer-events:none;opacity:.58; }
.expense-queue-list { display:grid;width:min(390px,100%);max-height:190px;margin:4px 0;gap:6px;overflow:auto; }.expense-queue-list[hidden] { display:none; }.expense-queue-item { display:grid;padding:8px 10px;border:1px solid rgba(117,105,91,.14);border-radius:10px;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:2px 9px;background:rgba(255,255,255,.7); }.expense-queue-item strong { min-width:0;overflow:hidden;color:var(--ink);font-size:.7rem;text-overflow:ellipsis;white-space:nowrap; }.expense-queue-item>span { color:#806c2b;font-size:.62rem;font-weight:850;text-transform:uppercase; }.expense-queue-item small { grid-column:1/-1;color:var(--muted);font-size:.64rem; }.expense-queue-item.is-lista>span { color:#2d7038; }.expense-queue-item.is-error>span,.expense-queue-item.is-cancelada>span { color:#a04135; }.expense-queue-item.is-cancelando>span { color:#9a641f; }.expense-queue-cancel { padding:2px 0;border:0;color:#a04135;background:transparent;font:inherit;font-size:.61rem;font-weight:800;cursor:pointer; }.expense-queue-cancel:hover { text-decoration:underline; }.expense-queue-cancel:disabled { opacity:.45;cursor:wait; }
.expense-scan-stage.is-reviewing .expense-scan-beam { display: none; }
.expense-scan-stage.is-reviewing .expense-scan-progress { display: none; }
.expense-scan-stage.is-reviewing .expense-scan-sheet { border-color: rgba(32,85,26,.3); box-shadow: 0 22px 45px rgba(49,39,28,.17),0 0 0 4px rgba(32,85,26,.08),inset 0 0 0 7px rgba(255,255,255,.72); }
.expense-photo-review-actions { display: flex; width: 100%; margin-top: 11px; justify-content: center; gap: 9px; }
.expense-photo-review-actions[hidden] { display: none; }
.expense-photo-review-actions .button { flex: 1 1 0; }
.expense-upload-modal.is-scanning .form-actions { display:flex; }
@keyframes expense-scan-beam { 0% { transform: translateY(0); opacity: 0; } 12% { opacity: 1; } 82% { opacity: 1; } 100% { transform: translateY(268px); opacity: 0; } }
@keyframes expense-message-scan { 0% { opacity:0;transform:translateX(-145%) skewX(-10deg); } 14% { opacity:1; } 78% { opacity:.9; } 100% { opacity:0;transform:translateX(365%) skewX(-10deg); } }
@keyframes expense-message-copy-in { 0% { opacity:0;filter:blur(2px);transform:translateX(-8px); } 100% { opacity:1;filter:blur(0);transform:translateX(0); } }
.expense-document-viewer { width: min(96vw,1400px); max-width: none; height: min(94dvh,1000px); max-height: none; padding: 0; overflow: hidden; border: 1px solid rgba(255,255,255,.75); border-radius: 20px; background: rgba(244,241,235,.96); box-shadow: 0 30px 100px rgba(21,29,19,.45); }
.expense-document-viewer::backdrop { background: rgba(18,25,17,.7); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.expense-document-viewer-card { display: grid; height: 100%; min-height: 0; grid-template-rows: auto minmax(0,1fr) auto; }
.expense-document-viewer header,.expense-document-viewer footer { position: relative; z-index: 2; display: flex; padding: 14px 18px; align-items: center; justify-content: space-between; gap: 14px; border-color: rgba(75,76,69,.14); background: rgba(255,255,255,.82); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.expense-document-viewer header { border-bottom: 1px solid rgba(75,76,69,.14); }
.expense-document-viewer header h2 { margin: 1px 0 0; font-size: 1.2rem; }
.expense-document-viewer header .eyebrow { margin: 0; }
.expense-document-viewer header .order-modal-close { position: static; flex: 0 0 auto; }
.expense-document-viewer footer { border-top: 1px solid rgba(75,76,69,.14); }
.expense-document-viewport { min-height: 0; padding: 20px; overflow: auto; overscroll-behavior: contain; background: radial-gradient(circle at top,rgba(255,255,255,.13),transparent 38%),#282b27; cursor: grab; touch-action: none; user-select: none; }
.expense-document-viewport.is-dragging { cursor: grabbing; scroll-behavior: auto; }
.expense-document-viewport:focus-visible { outline: 3px solid rgba(202,104,68,.72); outline-offset: -3px; }
.expense-document-pages { display: grid; width: 800px; max-width: none; margin: 0 auto; gap: 18px; transform-origin: top center; transition: width .22s ease; }
.expense-document-pages figure { margin: 0; padding: 8px 8px 0; border-radius: 5px; background: #fff; box-shadow: 0 16px 42px rgba(0,0,0,.28); }
.expense-document-pages img { display: block; width: 100%; height: auto; background: #fff; pointer-events: none; -webkit-user-drag: none; }
.expense-document-pages figcaption { padding: 7px 4px 8px; color: #6d685f; font-size: .62rem; text-align: center; }
.expense-document-zoom { display: flex; align-items: center; gap: 7px; }
.expense-document-zoom .button { min-width: 42px; padding-inline: 12px; }
.expense-document-zoom output { min-width: 62px; color: #31502d; font-size: .75rem; font-weight: 800; text-align: center; }
.expense-form-shell { width: min(calc(100% - 36px),1440px); }
.expense-heading-actions { display:flex;align-items:center;justify-content:flex-end;gap:9px; }
.expense-review-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(330px,430px); align-items: start; gap: 16px; }
.expense-document-resolved .expense-review-layout { grid-template-columns:minmax(0,1fr); }
.expense-editor { min-width: 0; }
.expense-form-heading { display: flex; margin-bottom: 18px; align-items: flex-start; justify-content: space-between; gap: 16px; }
.expense-form-heading h1 { margin-bottom: 3px; }
.expense-review-form .form-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.expense-amounts { display: grid; margin: 8px 0 4px; padding: 14px; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 10px; border: 1px solid rgba(32,85,26,.16); border-radius: 13px; background: rgba(240,246,238,.68); }
.expense-amounts legend { padding: 0 6px; color: #355f31; font-size: .68rem; font-weight: 850; text-transform: uppercase; }
.expense-amounts > div { display: grid; gap: 5px; }
.expense-multiple-tax { display:flex;min-height:42px;padding:0 12px;align-items:center;justify-content:flex-end;border:1px solid rgba(112,90,72,.18);border-radius:10px;background:rgba(255,255,255,.58);font-weight:800;color:#355f31; }
.expense-tax-breakdown { display:grid;margin:-2px 0 16px;padding:13px;border:1px solid rgba(32,85,26,.14);border-radius:13px;background:rgba(255,255,255,.46);gap:9px; }
.expense-tax-breakdown>header { display:flex;align-items:baseline;justify-content:space-between;gap:12px; }
.expense-tax-breakdown>header small { color:var(--muted);font-size:.64rem; }
.expense-tax-table { display:grid;gap:2px; }
.expense-tax-row { display:grid;grid-template-columns:.7fr repeat(3,1fr);gap:10px;padding:7px 9px;border-radius:8px;background:rgba(240,246,238,.55);font-size:.7rem;font-variant-numeric:tabular-nums;text-align:right; }
.expense-tax-row span:first-child { text-align:left;font-weight:800; }
.expense-tax-head { background:transparent;color:var(--muted);font-size:.61rem;font-weight:800;text-transform:uppercase; }
.expense-total-field input { border-color: rgba(32,85,26,.42); color: #20551a; font-weight: 850; background: #fff; }
.expense-duplicate-confirm { display: flex !important; margin: 8px 0 0 !important; padding: 10px 12px; grid-template-columns: auto 1fr; align-items: center; gap: 9px; border: 1px solid #dfc88d; border-radius: 11px; background: #fff8dc; }
.expense-duplicate-confirm input { width: 18px !important; height: 18px; margin: 0 !important; padding: 0 !important; }
.expense-duplicate-confirm span { font-size: .7rem; line-height: 1.35; }
.expense-lines-editor { display:grid;margin:4px 0 18px;padding:16px;border:1px solid rgba(112,90,72,.14);border-radius:15px;background:rgba(255,255,255,.48);gap:12px; }
.expense-lines-editor>header { display:flex;align-items:flex-start;justify-content:space-between;gap:18px; }
.expense-lines-editor>header h2 { margin:2px 0 3px;font-family:Georgia,serif;font-size:1.08rem;font-weight:500; }
.expense-lines-editor>header p:not(.eyebrow) { max-width:650px;margin:0;color:var(--muted);font-size:.66rem;line-height:1.45; }
.expense-lines { display:grid;gap:10px; }
.expense-line { display:grid;padding:13px;border:1px solid rgba(112,90,72,.14);border-radius:12px;background:rgba(255,255,255,.8);box-shadow:inset 0 1px 0 #fff;gap:10px; }
.expense-line-title { display:flex;min-height:22px;align-items:center;gap:9px; }
.expense-line-title strong { font-size:.7rem; }
.expense-line-title small { color:var(--muted);font-size:.58rem; }
.expense-line-title .text-action { margin-left:auto; }
.expense-line-main,.expense-line-values { display:grid;gap:8px; }
.expense-line-main { grid-template-columns:minmax(180px,1fr) minmax(220px,1.4fr) minmax(100px,.55fr); }
.expense-line-values { grid-template-columns:repeat(6,minmax(80px,1fr)); }
.expense-line label { display:grid;min-width:0;gap:4px; }
.expense-line label span { color:var(--muted);font-size:.59rem;font-weight:800; }
.expense-review-form .expense-line input { width:100%;height:38px;margin:0;padding:7px 8px;font-size:.68rem; }
.expense-line-values input { text-align:right;font-variant-numeric:tabular-nums; }
.expense-lines-empty { display:grid;min-height:80px;padding:16px;place-content:center;text-align:center;border:1px dashed rgba(112,90,72,.2);border-radius:11px;color:var(--muted);gap:4px; }
.expense-lines-empty strong { color:var(--ink);font-family:Georgia,serif;font-size:.92rem;font-weight:500; }
.expense-lines-empty span { font-size:.63rem; }
.expense-document-panel { position: sticky; top: 14px; overflow: hidden; border: 1px solid rgba(255,255,255,.78); border-radius: 16px; background: linear-gradient(145deg,rgba(255,255,255,.9),rgba(240,236,230,.72)); box-shadow: inset 0 1px 0 rgba(255,255,255,.92),0 14px 35px rgba(52,43,36,.1); backdrop-filter: blur(16px); }
.expense-document-heading { display: flex; padding: 14px; align-items: flex-start; justify-content: space-between; gap: 10px; border-bottom: 1px solid rgba(110,98,84,.13); }
.expense-document-heading h2 { max-width: 230px; margin: 2px 0; overflow: hidden; font-family: Georgia,serif; font-size: 1rem; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.expense-document-heading span { color: var(--muted); font-size: .64rem; }
.expense-document-heading .button { flex: 0 0 auto; min-height: 36px; padding: 7px 9px; }
.expense-page-list { display: grid; max-height: calc(100vh - 180px); padding: 12px; overflow: auto; gap: 10px; }
.expense-page-preview { overflow: hidden; border: 1px solid rgba(104,91,77,.16); border-radius: 11px; background: rgba(255,255,255,.82); }
.expense-page-preview > a { position: relative; display: block; min-height: 180px; background: #e8e4de; }
.expense-page-preview img { display: block; width: 100%; max-height: 430px; object-fit: contain; background: #f1efeb; }
.expense-page-preview > a > span { position: absolute; right: 7px; bottom: 7px; padding: 4px 7px; border-radius: 999px; color: #fff; background: rgba(20,26,19,.72); font-size: .58rem; font-weight: 800; }
.expense-merge-form { margin: 10px 12px 0; }.expense-merge-form .button { width: 100%; min-height: 36px; }
.expense-split-form { margin: 0; padding: 7px 10px; border-top: 1px solid rgba(104,91,77,.12); text-align: right; }.expense-split-form .text-action { font-size: .62rem; }
.expense-page-preview details { margin: 0; border: 0; border-top: 1px solid rgba(104,91,77,.12); border-radius: 0; box-shadow: none; background: transparent; }
.expense-page-preview summary { min-height: 38px; padding: 8px 10px; font-size: .64rem; }
.expense-page-preview .collapsible-content { padding: 0 10px 10px; }
.expense-page-preview pre { max-height: 180px; margin: 0; padding: 9px; overflow: auto; border-radius: 8px; color: #4d4841; background: #f5f3ef; font: .58rem/1.45 ui-monospace,SFMono-Regular,Consolas,monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.expense-document-discarded { display: grid; min-height: 260px; padding: 34px; place-items: center; align-content: center; gap: 7px; text-align: center; }
.expense-document-discarded > span { display: grid; width: 52px; height: 52px; margin-bottom: 5px; place-items: center; border: 1px solid rgba(32,85,26,.2); border-radius: 50%; color: #20551a; background: rgba(229,241,226,.88); font-size: 1.35rem; font-weight: 850; }
.expense-document-discarded > strong { font-family: Georgia,serif; font-size: 1.1rem; font-weight: 500; }
.expense-document-discarded p { max-width: 310px; margin: 0; color: var(--muted); font-size: .69rem; line-height: 1.55; }
@media (max-width: 980px) {
    .expense-filter-bar { grid-template-columns: 1fr 1fr; }
    .expense-filter-bar > label:first-child { grid-column: 1 / -1; }
    .expense-review-layout { grid-template-columns: 1fr; }
    .expense-document-panel { position: static; }
    .expense-page-list { max-height: none; grid-template-columns: repeat(2,minmax(0,1fr)); }
    .expense-line-main { grid-template-columns:1fr 1fr; }.expense-line-main label:first-child { grid-column:1 / -1; }
    .expense-line-values { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media (max-width: 700px) {
    .expense-heading-actions { width:100%;display:grid;grid-template-columns:1fr; }
    .expense-summary { grid-template-columns: 1fr 1fr; }
    .expense-summary > div:last-child { grid-column: 1 / -1; }
    .expense-filter-bar { grid-template-columns: 1fr; }
    .expense-filter-bar > label:first-child { grid-column: auto; }
    .expense-upload-options { grid-template-columns: 1fr; }
    .expense-review-form .form-grid,.expense-amounts { grid-template-columns: 1fr; }
    .expense-form-heading { align-items: flex-start; flex-direction: column; }
    .expense-page-list { grid-template-columns: 1fr; }
    .expense-document-heading { align-items: stretch; flex-direction: column; }
    .expense-document-heading h2 { max-width: 100%; }
    .expense-document-heading .button { width: 100%; }
    .expense-lines-editor>header { align-items:stretch;flex-direction:column; }.expense-lines-editor>header .button { width:100%; }
    .expense-line-main,.expense-line-values { grid-template-columns:1fr 1fr; }.expense-line-main label:first-child { grid-column:1 / -1; }
    .expense-scan-stage { min-height: 330px; padding-top: 12px; grid-template-columns: 1fr; justify-items: center; gap: 14px; text-align: center; }
    .expense-scan-sheet { width: 174px; height: 232px; }
    .expense-scan-copy { width: 100%; justify-items: center; }
    .expense-photo-review-actions { width: 100%; }
    .expense-document-viewer { width: 100vw; height: 100dvh; border: 0; border-radius: 0; }
    .expense-document-viewer header,.expense-document-viewer footer { padding: 11px 12px; }
    .expense-document-viewer footer { align-items: stretch; flex-direction: column; }
    .expense-document-viewport { padding: 10px; }
    .expense-document-zoom { width: 100%; justify-content: center; }
    .expense-document-zoom + .button { width: 100%; }
    .expense-document-zoom .button { min-height: 40px; }
    @keyframes expense-scan-beam { 0% { transform: translateY(0); opacity: 0; } 12% { opacity: 1; } 82% { opacity: 1; } 100% { transform: translateY(260px); opacity: 0; } }
}

@media (prefers-reduced-motion: reduce) { .expense-scan-beam { animation: none; top: 48%; opacity: .8; } .expense-scan-message,.expense-scan-message.is-leaving,.expense-document-pages { filter:none;transform:none;transition:none; } .expense-scan-message.is-visible::after,.expense-scan-message.is-visible > p { animation:none; } }

/* Ayuda y soporte */
.module-icon { position: relative; }
.module-notification-badge,.support-tabs [data-support-badge] { display: grid; min-width: 22px; height: 22px; padding: 0 5px; border: 2px solid #fff; border-radius: 999px; place-items: center; color: #fff; background: #c5372c; box-shadow: 0 4px 10px rgba(106,30,25,.25); font-size: .61rem; font-style: normal; font-weight: 850; line-height: 1; }
.module-notification-badge { position: absolute; top: -7px; right: -8px; }
.module-notification-badge[hidden],.support-tabs [data-support-badge][hidden] { display: none; }
.support-shell,.support-ticket-shell { width: min(100% - 40px,1100px); }
.support-heading { align-items: end; }
.support-tabs { display: flex; margin: 18px 0; padding: 5px; border: 1px solid rgba(255,255,255,.74); border-radius: 15px; gap: 5px; background: rgba(255,255,255,.56); box-shadow: inset 0 1px 0 rgba(255,255,255,.9),0 8px 24px rgba(49,39,28,.05); backdrop-filter: blur(14px) saturate(130%); }
.support-tabs button { display: flex; min-height: 42px; padding: 0 16px; border: 0; border-radius: 11px; align-items: center; gap: 8px; color: #605b55; background: transparent; cursor: pointer; font: inherit; font-size: .76rem; font-weight: 850; }
.support-tabs button.is-active { color: #fff; background: linear-gradient(145deg,#8b7180,#684f5c); box-shadow: inset 0 1px 0 rgba(255,255,255,.24),0 6px 16px rgba(72,49,61,.18); }
.support-tabs [data-support-badge] { min-width: 20px; height: 20px; border-width: 1px; }
.support-filters { display: flex; margin-bottom: 14px; padding: 12px; border: 1px solid rgba(126,114,100,.15); border-radius: 14px; align-items: end; flex-wrap: wrap; gap: 10px; background: rgba(255,255,255,.58); }
.support-filters label { display: grid; min-width: 180px; gap: 5px; color: var(--muted); font-size: .65rem; font-weight: 750; }.support-filters select { min-height: 40px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 9px; background: #fff; font: inherit; }
.support-ticket-list { display: grid; gap: 9px; }
.support-ticket-card { display: grid; min-height: 92px; padding: 14px 16px; border: 1px solid rgba(126,114,100,.17); border-radius: 15px; grid-template-columns: 130px minmax(0,1fr) auto; align-items: center; gap: 14px; color: var(--ink); background: rgba(255,255,255,.72); box-shadow: inset 0 1px 0 rgba(255,255,255,.92),0 6px 18px rgba(49,39,28,.045); text-decoration: none; transition: border-color .24s ease,box-shadow .24s ease,transform .24s ease; }
.support-ticket-card:hover { border-color: rgba(123,98,111,.35); box-shadow: inset 0 1px 0 #fff,0 12px 27px rgba(64,45,55,.1); transform: translateY(-2px); }.support-ticket-card.has-unread { border-left: 4px solid #c5372c; background: rgba(255,250,249,.86); }
.support-ticket-code { color: #6d5260; font-family: Georgia,serif; font-size: .83rem; font-weight: 750; }.support-ticket-copy { display: grid; min-width: 0; gap: 4px; }.support-ticket-copy strong { font-size: .88rem; }.support-ticket-copy small { color: #6d6861; font-size: .67rem; }.support-ticket-copy em { overflow: hidden; color: var(--muted); font-size: .69rem; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.support-ticket-meta { display: grid; justify-items: end; gap: 6px; }.support-ticket-meta time { color: var(--muted); font-size: .61rem; }.support-ticket-meta i { color: #a22f27; font-size: .62rem; font-style: normal; font-weight: 850; }
.support-state { display: inline-flex; min-height: 25px; padding: 0 9px; border-radius: 999px; align-items: center; color: #5e5d59; background: #e7e6e3; font-size: .62rem; font-weight: 850; white-space: nowrap; }.support-state.is-revision { color: #725600; background: #ffe49a; }.support-state.is-esperando { color: #285779; background: #dcecf8; }.support-state.is-cerrado { color: #356141; background: #dcebdd; }
.support-empty { display: grid; min-height: 150px; padding: 28px; border: 1px dashed #d8d1c8; border-radius: 14px; place-content: center; gap: 5px; color: var(--muted); text-align: center; }.support-empty strong { color: var(--ink); font-size: .85rem; }.support-empty span { font-size: .72rem; }
.support-faq-heading { display: flex; margin: 7px 0 14px; align-items: end; justify-content: space-between; gap: 18px; }.support-faq-heading h2,.support-faq-heading p { margin: 0; }.support-faq-heading h2 { font-family: Georgia,serif; font-size: 1.45rem; font-weight: 500; }.support-faq-heading p { margin-top: 4px; color: var(--muted); font-size: .73rem; }.support-faq-heading input { width: min(100%,340px); min-height: 42px; padding: 9px 13px; border: 1px solid var(--line); border-radius: 11px; background: rgba(255,255,255,.78); font: inherit; }
.support-faq-list { display: grid; gap: 8px; }.support-faq-item,.support-faq-admin { overflow: hidden; border: 1px solid rgba(126,114,100,.17); border-radius: 14px; background: rgba(255,255,255,.7); box-shadow: inset 0 1px 0 rgba(255,255,255,.94),0 5px 16px rgba(49,39,28,.04); }.support-faq-item[hidden] { display: none; }.support-faq-item.is-inactive { opacity: .62; }.support-faq-item > summary,.support-faq-admin > summary { display: flex; min-height: 62px; padding: 12px 16px; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; list-style: none; }.support-faq-item > summary::-webkit-details-marker,.support-faq-admin > summary::-webkit-details-marker { display: none; }.support-faq-item summary span { display: grid; gap: 2px; }.support-faq-item summary small { color: #7b626f; font-size: .61rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }.support-faq-item summary strong { font-size: .8rem; }.support-faq-item summary i { color: #7b626f; font-size: 1.2rem; font-style: normal; transition: transform .45s ease; }.support-faq-item[open] summary i { transform: rotate(180deg); }.support-faq-answer { padding: 4px 16px 18px; border-top: 1px solid rgba(126,114,100,.11); color: #5d5953; font-size: .77rem; line-height: 1.65; }.support-faq-admin { margin-bottom: 12px; }.support-faq-admin > summary { color: #654c59; font-size: .76rem; font-weight: 850; }.support-faq-admin form,.support-faq-edit { padding: 14px 16px 16px; border-top: 1px solid rgba(126,114,100,.13); }.support-faq-admin-row,.support-form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.order-modal.support-new-modal { width: min(calc(100vw - 24px),680px); max-height: calc(100dvh - 24px); }
.order-modal.support-new-modal .order-modal-card { width: 100%; max-height: calc(100dvh - 24px); overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; }
.order-modal.support-new-modal textarea { min-height: 120px; }
.order-modal.support-new-modal input[type="file"] { box-sizing: border-box; max-width: 100%; }
.support-ticket-header { display: flex; margin-bottom: 16px; padding: 20px 22px; border: 1px solid rgba(255,255,255,.75); border-radius: 18px; align-items: flex-start; justify-content: space-between; gap: 18px; background: rgba(255,255,255,.66); box-shadow: inset 0 1px 0 rgba(255,255,255,.95),0 10px 28px rgba(49,39,28,.06); }.support-ticket-header h1 { margin: 4px 0 7px; font-family: Georgia,serif; font-size: clamp(1.45rem,3vw,2.2rem); font-weight: 500; }.support-ticket-header p { margin: 0; color: var(--muted); font-size: .7rem; }
.support-thread { display: grid; padding: 18px; border: 1px solid rgba(126,114,100,.16); border-radius: 17px; background: rgba(241,238,233,.62); gap: 12px; }.support-message { width: min(88%,760px); padding: 13px 15px; border: 1px solid #ddd6cd; border-radius: 5px 15px 15px 15px; background: rgba(255,255,255,.9); }.support-message.is-support { margin-left: auto; border-color: #c5d6c7; border-radius: 15px 5px 15px 15px; background: #edf5ef; }.support-message header { display: flex; margin-bottom: 7px; align-items: center; justify-content: space-between; gap: 15px; }.support-message header strong { color: #5d4a54; font-size: .69rem; }.support-message header time { color: var(--muted); font-size: .59rem; }.support-message p { margin: 0; font-size: .79rem; line-height: 1.55; overflow-wrap: anywhere; }
.support-attachments { display: flex; margin-top: 10px; flex-wrap: wrap; gap: 7px; }.support-attachments button { width: 112px; padding: 5px; overflow: hidden; border: 1px solid #d7d0c7; border-radius: 9px; background: #fff; cursor: zoom-in; }.support-attachments img { display: block; width: 100%; height: 78px; border-radius: 6px; object-fit: cover; }.support-attachments span { display: block; margin-top: 4px; overflow: hidden; color: var(--muted); font-size: .58rem; text-overflow: ellipsis; white-space: nowrap; }
.support-reply-card { margin-top: 16px; padding: 20px; border: 1px solid rgba(255,255,255,.76); border-radius: 17px; background: rgba(255,255,255,.7); box-shadow: inset 0 1px 0 rgba(255,255,255,.95),0 9px 25px rgba(49,39,28,.055); }.support-reply-card h2 { margin: 0 0 13px; font-family: Georgia,serif; font-size: 1.25rem; font-weight: 500; }
.support-image-viewer { width: min(94vw,1100px); height: min(92dvh,900px); padding: 48px 18px 18px; overflow: hidden; border: 0; border-radius: 18px; background: #211f1c; box-shadow: 0 25px 90px rgba(0,0,0,.45); }.support-image-viewer::backdrop { background: rgba(22,19,16,.76); backdrop-filter: blur(4px); }.support-image-viewer .order-modal-close { position: absolute; top: 10px; right: 10px; }.support-image-viewer img { display: block; width: 100%; height: calc(100% - 28px); object-fit: contain; }.support-image-viewer p { margin: 8px 0 0; overflow: hidden; color: #eee; font-size: .7rem; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width:700px){.support-shell,.support-ticket-shell{width:min(100% - 24px,1100px)}.support-heading{align-items:stretch}.support-heading .button{width:100%}.support-tabs{position:sticky;z-index:12;top:4px}.support-tabs button{flex:1;justify-content:center;padding-inline:8px}.support-filters{align-items:stretch;flex-direction:column}.support-filters label{min-width:0}.support-ticket-card{min-height:0;padding:13px;grid-template-columns:1fr auto;gap:7px 10px}.support-ticket-code{grid-column:1}.support-ticket-copy{grid-column:1/-1;grid-row:2}.support-ticket-meta{grid-column:2;grid-row:1;align-self:start}.support-ticket-meta time{display:none}.support-faq-heading{align-items:stretch;flex-direction:column}.support-faq-heading input{width:100%}.support-form-grid,.support-faq-admin-row{grid-template-columns:1fr}.support-ticket-header{align-items:flex-start;flex-direction:column}.support-message{box-sizing:border-box;width:94%}.support-thread{padding:11px}.support-reply-card{padding:15px}.order-modal.support-new-modal,.order-modal.support-new-modal .order-modal-card{max-height:calc(100dvh - 12px)}.order-modal.support-new-modal textarea{min-height:105px}}
@keyframes support-notification-pulse{0%,55%,100%{transform:scale(1)}15%{transform:scale(1.14)}30%{transform:scale(.98)}45%{transform:scale(1.08)}}
.module-notification-badge:not([hidden]) { animation: support-notification-pulse 2.4s ease-in-out infinite; }
@media (prefers-reduced-motion:reduce){.module-notification-badge:not([hidden]){animation:none}}

/* Copias y restauración */
.restore-shell { width:min(100% - 36px,1180px);padding-bottom:70px; }
.restore-server-card { position:relative;overflow:hidden;margin-top:24px;padding:22px;border:1px solid rgba(255,255,255,.78);border-radius:22px;background:linear-gradient(135deg,rgba(244,249,242,.92),rgba(255,255,255,.76));box-shadow:0 18px 48px rgba(32,63,29,.1),inset 0 1px 0 #fff;backdrop-filter:blur(18px); }.restore-server-card::after { content:'';position:absolute;right:-65px;bottom:-95px;width:230px;height:230px;border-radius:50%;background:radial-gradient(circle,rgba(32,85,26,.12),transparent 68%);pointer-events:none; }.restore-server-heading { position:relative;z-index:1;display:grid;grid-template-columns:52px minmax(0,1fr) auto;align-items:center;gap:15px; }.restore-server-heading>div { display:grid;gap:3px; }.restore-server-heading h2 { margin:0;font-family:Georgia,serif;font-size:1.55rem;font-weight:500; }.restore-server-heading p { margin:0;color:var(--muted);font-size:.72rem;line-height:1.5; }.restore-server-icon { display:grid;width:48px;height:48px;border-radius:15px;place-items:center;background:linear-gradient(145deg,#2d6927,#174714);box-shadow:0 9px 20px rgba(32,85,26,.22); }.restore-server-icon::after { content:'';width:26px;height:26px;background:#fff;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='4' y='3' width='16' height='7' rx='2' fill='none' stroke='black' stroke-width='1.7'/%3E%3Crect x='4' y='14' width='16' height='7' rx='2' fill='none' stroke='black' stroke-width='1.7'/%3E%3Cpath d='M8 6.5h.01M8 17.5h.01M12 6.5h5M12 17.5h5' stroke='black' stroke-width='1.7' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='4' y='3' width='16' height='7' rx='2' fill='none' stroke='black' stroke-width='1.7'/%3E%3Crect x='4' y='14' width='16' height='7' rx='2' fill='none' stroke='black' stroke-width='1.7'/%3E%3Cpath d='M8 6.5h.01M8 17.5h.01M12 6.5h5M12 17.5h5' stroke='black' stroke-width='1.7' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat; }.restore-server-features { position:relative;z-index:1;display:grid;margin-top:18px;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px; }.restore-server-features article { display:grid;padding:12px;border:1px solid rgba(32,85,26,.1);border-radius:12px;gap:3px;background:rgba(255,255,255,.64);transition:transform .24s ease,border-color .24s ease; }.restore-server-features article:hover { transform:translateY(-2px);border-color:rgba(32,85,26,.26); }.restore-server-features strong { color:#20551A;font-size:.72rem; }.restore-server-features span { color:var(--muted);font-size:.63rem;line-height:1.45; }.restore-server-card footer { position:relative;z-index:1;display:flex;margin-top:13px;padding-top:12px;border-top:1px solid rgba(32,85,26,.1);align-items:center;gap:9px 18px;flex-wrap:wrap;color:#52614f;font-size:.63rem; }.restore-server-card footer small { margin-left:auto;color:var(--muted);font-size:.6rem; }
.restore-actions { display:grid;margin-top:24px;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px; }
.restore-action-card { position:relative;display:grid;min-height:220px;padding:24px;border:1px solid rgba(255,255,255,.72);border-radius:22px;grid-template-columns:52px minmax(0,1fr);gap:16px;background:linear-gradient(145deg,rgba(255,255,255,.88),rgba(244,241,235,.7));box-shadow:0 18px 48px rgba(45,38,30,.1),inset 0 1px 0 #fff;backdrop-filter:blur(18px);transition:transform .28s ease,box-shadow .28s ease,border-color .28s ease; }
.restore-action-card:hover { transform:translateY(-3px);box-shadow:0 24px 58px rgba(45,38,30,.14),inset 0 1px 0 #fff; }
.restore-action-card>div { display:grid;align-content:start;gap:6px; }.restore-action-card h2 { margin:0;font-family:Georgia,serif;font-size:1.6rem;font-weight:500; }.restore-action-card p { margin:0;color:var(--muted);font-size:.78rem;line-height:1.55; }.restore-action-card .button { grid-column:1/-1;align-self:end;justify-self:start; }
.restore-action-icon { width:48px;height:48px;border-radius:15px;background:linear-gradient(145deg,#2d6927,#174714);box-shadow:0 9px 20px rgba(32,85,26,.22); }
.restore-action-icon::after { content:'';display:block;width:25px;height:25px;margin:11px;background:#fff;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 7v13h16V7M8 4h8l2 3H6l2-3Zm4 6v7m-3-3 3 3 3-3' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 7v13h16V7M8 4h8l2 3H6l2-3Zm4 6v7m-3-3 3 3 3-3' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; }
.restore-action-card.is-company .restore-action-icon { background:linear-gradient(145deg,#617487,#405568); }
.restore-point-list { display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px; }.restore-point-list article { display:grid;padding:14px;border:1px solid rgba(117,105,91,.13);border-radius:14px;gap:4px;background:rgba(255,255,255,.72);box-shadow:0 7px 20px rgba(45,38,30,.05);transition:transform .24s ease,border-color .24s ease; }.restore-point-list article:hover { transform:translateY(-2px);border-color:rgba(32,85,26,.28); }.restore-point-list .status-pill { width:fit-content;margin-bottom:4px; }.restore-point-list strong { font-size:.79rem; }.restore-point-list small { color:var(--muted);font-size:.63rem; }
.restore-job-list { display:grid;gap:8px; }.restore-job { display:grid;padding:13px 15px;border:1px solid rgba(117,105,91,.12);border-left:4px solid #aaa;border-radius:13px;grid-template-columns:minmax(0,1fr) minmax(160px,.65fr) auto;align-items:center;gap:12px;background:rgba(255,255,255,.72);transition:transform .24s ease,box-shadow .24s ease; }.restore-job:hover { transform:translateY(-2px);box-shadow:0 10px 25px rgba(45,38,30,.08); }.restore-job>div { display:grid;gap:3px; }.restore-job span,.restore-job small { color:var(--muted);font-size:.65rem; }.restore-job-status { width:fit-content;padding:5px 8px;border-radius:999px;color:#555!important;background:#e9e7e2;font-weight:850;text-transform:uppercase; }.restore-job.is-running { border-left-color:#d7a725; }.restore-job.is-running .restore-job-status { color:#785900!important;background:#fff0b2; }.restore-job.is-completed { border-left-color:#2d7835; }.restore-job.is-completed .restore-job-status { color:#245f2d!important;background:#dceede; }.restore-job.is-failed { border-left-color:#b95038; }.restore-job.is-failed .restore-job-status { color:#8b3d2c!important;background:#f5ddd7; }
.restore-warning { display:grid;margin:16px 0 20px;padding:14px 15px;border:1px solid rgba(202,104,68,.22);border-radius:13px;gap:4px;background:rgba(255,239,232,.75); }.restore-warning strong { color:#8a402b;font-size:.78rem; }.restore-warning span { color:#765e55;font-size:.68rem;line-height:1.45; }
.button.button-danger { color:#fff;border-color:rgba(126,46,29,.45);background:linear-gradient(145deg,rgba(190,77,49,.96),rgba(145,51,31,.96));box-shadow:0 9px 22px rgba(145,51,31,.2),inset 0 1px 0 rgba(255,255,255,.25); }.button.button-danger:hover:not(:disabled) { transform:translateY(-2px);box-shadow:0 13px 28px rgba(145,51,31,.28),inset 0 1px 0 rgba(255,255,255,.25); }.button:disabled { opacity:.5;cursor:not-allowed;transform:none!important; }
@media(max-width:850px){.restore-server-heading { grid-template-columns:48px minmax(0,1fr); }.restore-server-heading .button { grid-column:1/-1;width:fit-content; }.restore-server-features { grid-template-columns:repeat(2,minmax(0,1fr)); }.restore-server-card footer small { width:100%;margin-left:0; }.restore-actions { grid-template-columns:1fr; }.restore-point-list { grid-template-columns:repeat(2,minmax(0,1fr)); }.restore-job { grid-template-columns:1fr;gap:7px; }}
@media(max-width:560px){.restore-shell { width:min(100% - 20px,1180px); }.restore-server-card { padding:17px; }.restore-server-heading { grid-template-columns:42px minmax(0,1fr); }.restore-server-icon { width:42px;height:42px;border-radius:13px; }.restore-server-features { grid-template-columns:1fr; }.restore-action-card { min-height:205px;padding:18px; }.restore-point-list { grid-template-columns:1fr; }}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    color: var(--ink);
    background: var(--canvas);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
}

button, input { font: inherit; }
select { font: inherit; }
textarea { font: inherit; }

a { color: var(--accent-dark); }

.login-page { min-height: 100vh; }

.login-shell {
    display: grid;
    min-height: 100vh;
    grid-template-columns: minmax(340px, .88fr) minmax(480px, 1.12fr);
}

.brand-panel {
    display: flex;
    min-height: 100%;
    padding: clamp(30px, 5vw, 72px);
    color: #fff;
    background: #052601;
    flex-direction: column;
    justify-content: space-between;
}

.brand {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 11px;
    color: inherit;
    font-size: 1.05rem;
    font-weight: 750;
    letter-spacing: -.02em;
    text-decoration: none;
}

.brand-dark { color: var(--ink); }
.brand > .brand-mark + span::after { content: "."; color: #e96c43; }

.brand-mark {
    display: inline-block;
    width: 36px;
    height: 36px;
    border-radius: 9px;
    color: transparent;
    background: url('../images/pastelco-web-icon.png') center / cover no-repeat;
    box-shadow: 0 4px 12px rgba(39, 62, 47, .18);
    font-size: 0;
    flex: 0 0 36px;
}

.brand-logo { display: block; width: 174px; height: auto; }
.brand-logo-white { width: 142px; }

.brand-copy { max-width: 560px; }
.brand-copy h1, .login-card h2, .setup-card h1, .dashboard h1 {
    margin: 8px 0 14px;
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 500;
    letter-spacing: -.035em;
    line-height: 1.08;
}

.brand-copy h1 { font-size: clamp(2.65rem, 5vw, 5rem); }
.brand-copy > p:not(.eyebrow) { max-width: 470px; color: #d7d9d4; font-size: 1.06rem; }
.brand-footer { margin: 0; color: #afb4ac; font-size: .88rem; }

.eyebrow {
    margin: 0;
    color: var(--accent);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.login-panel { display: flex; min-height: 100%; padding: 48px; background: var(--paper); align-items: center; flex-direction: column; justify-content: center; }
.login-card { width: min(100%, 410px); }
.login-card h2 { font-size: clamp(2.25rem, 4vw, 3.15rem); }
.login-panel-footer { margin: clamp(34px,7vh,72px) 0 0; color: var(--muted); font-size: .78rem; text-align: center; }
.muted { margin: 0; color: var(--muted); }

.form-stack { display: flex; margin-top: 32px; flex-direction: column; }
.form-stack label { margin: 0 0 8px; font-size: .88rem; font-weight: 700; }
.form-stack input {
    width: 100%;
    height: 52px;
    margin: 0 0 20px;
    padding: 0 15px;
    border: 1px solid var(--line);
    border-radius: 11px;
    outline: 0;
    color: var(--ink);
    background: #fff;
    transition: border-color .15s, box-shadow .15s;
}

.form-stack input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(189, 104, 72, .12); }
.form-stack input::placeholder { color: #aaa49c; }
.form-stack small { margin: -13px 0 21px; color: var(--muted); }
.login-field { position: relative; margin-bottom: 20px; }
.form-stack .login-field input { margin: 0; padding-right: 15px; padding-left: 48px; }
.login-field-icon { position: absolute; z-index: 1; top: 50%; left: 16px; width: 20px; height: 20px; pointer-events: none; fill: none; stroke: #85817b; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transform: translateY(-50%); transition: stroke .15s; }
.login-field:focus-within .login-field-icon { stroke: var(--accent-dark); }
.login-submit { margin-top: 6px; gap: 12px; }
.login-submit svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.label-row { display:flex;align-items:center;justify-content:space-between;gap:14px; }.login-help-link { color:var(--accent-dark);font-size:.72rem;font-weight:750;text-decoration:none; }.login-help-link:hover,.login-help-link:focus-visible { color:#143d10;text-decoration:underline;text-underline-offset:3px; }
.button {
    display: inline-flex;
    min-height: 48px;
    padding: 0 20px;
    border: 0;
    border-radius: 11px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: 750;
    text-decoration: none;
}

.button-primary { color: #fff; background: var(--accent); box-shadow: 0 8px 24px rgba(189, 104, 72, .2); }
.button-primary:hover { background: var(--accent-dark); }
.button-quiet { min-height: 38px; padding: 0 14px; color: var(--ink); background: var(--canvas); }
.logout-button { display: grid; width: 40px; height: 40px; padding: 0; border: 1px solid var(--line); border-radius: 50%; outline: 0; place-items: center; color: #052601; background: var(--canvas); cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s, transform .15s; }
.logout-button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.logout-button:hover { border-color: #9aaca0; background: #eef3ef; transform: translateY(-1px); }
.logout-button:focus-visible { border-color: #52745b; box-shadow: 0 0 0 4px rgba(5,38,1,.1); }

.alert { margin-top: 24px; padding: 13px 15px; border-radius: 10px; color: #5d554b; background: #f3eee7; font-size: .9rem; }
.alert-error { color: var(--danger); background: var(--danger-bg); }
.alert-success { color: #466141; background: #edf5ea; }
.alert-warning { color: #72521d; background: #fff5dc; }
.missing-weight-alert { display: grid; gap: 6px; }
.missing-weight-alert span { display: block; }
.missing-weight-alert ul { margin: 2px 0 0; padding-left: 20px; }
.missing-weight-alert a, .missing-weight-link { color: #865d17; font-weight: 750; }
.incomplete-weight, .missing-weight-link { display: block; }
.missing-weight-link { margin-top: 3px; font-size: .76rem; }

.setup-page { min-height: 100vh; padding: 34px 20px 60px; }
.setup-shell { width: min(100%, 600px); margin: auto; }
.setup-card { margin-top: 34px; padding: clamp(28px, 6vw, 52px); border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.setup-card h1 { font-size: clamp(2rem, 6vw, 3rem); }

.app-page { min-height: 100vh; background: #fbfaf8; }
.app-header { display: flex; min-height: 72px; padding: 14px clamp(20px, 5vw, 70px); border-bottom: 1px solid var(--line); align-items: center; justify-content: space-between; background: #fff; }
.account { display: flex; align-items: center; gap: 18px; }
.account-identity { display: grid; justify-items: end; gap: 2px; }
.account-company { color: var(--muted); font-size: .9rem; }
.company-switcher { margin: 0; }
.company-switcher select { min-width: 150px; max-width: 240px; padding: .42rem 2rem .42rem .7rem; border: 1px solid #d8d2ca; border-radius: 9px; background-color: #fff; color: var(--ink); font: inherit; font-size: .88rem; font-weight: 700; cursor: pointer; }
.company-switcher select:focus { outline: 3px solid rgba(82, 148, 112, .2); border-color: #529470; }
.account-profile { display: flex; padding: 0; border: 0; color: var(--ink); background: transparent; cursor: pointer; font: inherit; font-size: .76rem; font-weight: 750; align-items: baseline; gap: 5px; text-decoration: none; }
.account-profile small { color: var(--muted); font-size: .64rem; font-weight: 650; }
.account-profile-static { cursor: default; }
.account-profile:hover, .account-profile:focus-visible { color: var(--accent-dark); text-decoration: underline; }
.account-user-links { display:flex;align-items:baseline;justify-content:flex-end;gap:8px; }
.account-superuser { color:#5d7185;font-size:.65rem;font-weight:800;text-decoration:none;text-transform:uppercase;letter-spacing:.06em; }
.account-superuser:hover,.account-superuser:focus-visible { color:#394c61;text-decoration:underline; }
.account form { margin: 0; }
.dashboard { width: min(100% - 40px, 1050px); margin: 0 auto; padding: clamp(55px, 10vw, 110px) 0; }
.dashboard-compact { padding: clamp(24px,4vw,42px) 0 55px; }
.dashboard-compact > .module-section:first-of-type { margin-top: 0; }
.dashboard-compact .module-section { margin-top: 32px; }
.dashboard-compact .section-heading { margin-bottom: 10px; }
.dashboard h1 { font-size: clamp(2.4rem, 6vw, 4.5rem); }
.dashboard > .muted { max-width: 650px; font-size: 1.05rem; }
.empty-state { margin-top: 60px; padding: clamp(28px, 5vw, 48px); border: 1px solid var(--line); border-radius: var(--radius); text-align: center; background: #fff; }
.empty-icon { display: grid; width: 52px; height: 52px; margin: 0 auto 18px; border-radius: 50%; color: #fff; background: #71816b; place-items: center; }
.empty-state h2 { margin: 0 0 7px; font-family: Georgia, serif; font-size: 1.6rem; font-weight: 500; }
.empty-state p { margin: 0; color: var(--muted); }

.module-section { margin-top: 60px; }
.section-heading { display: flex; margin-bottom: 18px; align-items: flex-end; justify-content: space-between; }
.section-heading h2 { margin: 4px 0 0; font-family: Georgia, serif; font-size: 1.9rem; font-weight: 500; }
.module-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.module-card {
    display: grid;
    min-height: 120px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--ink);
    background: #fff;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 18px;
    text-decoration: none;
    transition: border-color .15s, transform .15s, box-shadow .15s;
}
.module-card:hover { border-color: #d0c5b9; box-shadow: var(--shadow); transform: translateY(-2px); }
.module-icon { display: grid; width: 48px; height: 48px; border-radius: 14px; color: #fff; background: #71816b; font-family: Georgia, serif; font-size: 1.2rem; place-items: center; }
.module-icon svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.module-icon-recipe { background: #8a6f58; }
.module-icon-production { background: #4f765b; }
.module-icon-admin { background: #4e566c; }
.module-section-production .module-icon { color: #fff; background: #20551A; }
.module-section-orders .module-icon { color: #fff; background: #ca6844; }
.module-section-inventory .module-icon,.module-section-inventory .module-placeholder-icon { color: #fff; background: #3f7476; }
.module-section-staff .module-icon,.module-section-staff .module-placeholder-icon { color: #fff; background: #6d6088; }
.module-section-agenda .module-icon,.module-section-agenda .module-placeholder-icon { color: #fff; background: #98743d; }
.module-section-analysis .module-icon,.module-section-analysis .module-placeholder-icon { color: #fff; background: #456f8e; }
.module-section-administration .module-icon { color: #fff; background: #5d7185; }
.module-section-help .module-icon { color: #fff; background: #7b626f; }
.module-section-production .section-heading .eyebrow { color: #20551A; }
.module-section-orders .section-heading .eyebrow { color: #ca6844; }
.module-section-inventory .section-heading .eyebrow,.module-section-inventory > .module-placeholder .eyebrow { color: #3f7476; }
.module-section-staff .section-heading .eyebrow,.module-section-staff > .module-placeholder .eyebrow { color: #6d6088; }
.module-section-agenda .section-heading .eyebrow,.module-section-agenda > .module-placeholder .eyebrow { color: #98743d; }
.module-section-analysis .section-heading .eyebrow,.module-section-analysis > .module-placeholder .eyebrow { color: #456f8e; }
.module-section-administration .section-heading .eyebrow { color: #5d7185; }
.module-section-help .section-heading .eyebrow { color: #7b626f; }
.module-card strong, .module-card small { display: block; }
.module-card strong { margin-bottom: 4px; font-size: 1.05rem; }
.module-card small { color: var(--muted); }
.module-arrow { color: var(--accent); font-size: 1.35rem; }
.module-placeholder { display: grid; min-height: 430px; padding: clamp(30px,7vw,72px); border: 1px solid rgba(255,255,255,.82); border-radius: 24px; align-content: center; justify-items: center; text-align: center; background: rgba(255,255,255,.72); background-image: linear-gradient(145deg,rgba(255,255,255,.95),rgba(245,240,233,.64)); box-shadow: inset 0 1px 0 rgba(255,255,255,.96),0 18px 48px rgba(49,39,28,.09); -webkit-backdrop-filter: blur(16px) saturate(125%); backdrop-filter: blur(16px) saturate(125%); }
.module-placeholder-icon { display: grid; width: 64px; height: 64px; margin-bottom: 20px; border: 1px solid rgba(255,255,255,.3); border-radius: 18px; place-items: center; box-shadow: inset 0 1px 0 rgba(255,255,255,.3),0 10px 24px rgba(41,38,33,.18); }
.module-placeholder-icon svg { width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.module-placeholder h1 { margin: 5px 0 8px; font-family: Georgia,serif; font-size: clamp(2.4rem,7vw,4.4rem); font-weight: 500; letter-spacing: -.035em; line-height: 1; }
.module-placeholder > p:not(.eyebrow) { max-width: 540px; margin: 0; color: var(--muted); font-size: 1rem; }
.module-placeholder > small { max-width: 520px; margin-top: 22px; color: #8b857d; font-size: .72rem; }
.profile-modal .order-modal-card { position: relative; }
.profile-modal .order-modal-close { position: absolute; z-index: 2; top: 18px; right: 18px; }
.profile-modal h2 { margin: 4px 42px 5px 0; font-family: Georgia,serif; font-size: 1.8rem; font-weight: 500; }
.profile-details { display: grid; margin-bottom: 22px; color: var(--muted); font-size: .76rem; gap: 2px; }
.profile-app { display: grid; margin: 0 40px 22px 0; padding: 13px; border: 1px solid #d9e3d7; border-radius: 14px; grid-template-columns: 116px minmax(0,1fr); align-items: center; gap: 14px; background: #f4f8f3; }
.profile-app img { display: block; width: 116px; height: 116px; padding: 5px; border: 1px solid #e3e7df; border-radius: 10px; background: #fff; }
.profile-app > div { display: grid; align-content: center; gap: 7px; }
.profile-app strong { color: #20551A; font-size: .92rem; }
.profile-app span { color: var(--muted); font-size: .72rem; line-height: 1.45; }
.profile-app .button { width: fit-content; min-height: 38px; padding: 0 13px; font-size: .7rem; }
.profile-password-form { display: grid; gap: 8px; }
.profile-password-form > label { margin-top: 5px; }
.profile-password-form > small { margin: -2px 0 4px; color: var(--muted); font-size: .7rem; }
.profile-aliases { margin:0 0 18px;overflow:hidden;border:1px solid rgba(117,105,91,.16);border-radius:14px;background:rgba(255,255,255,.62); }.profile-aliases>summary { display:flex;min-height:54px;padding:11px 13px;align-items:center;justify-content:space-between;cursor:pointer;list-style:none; }.profile-aliases>summary::-webkit-details-marker { display:none; }.profile-aliases>summary>span:first-child { display:grid;gap:2px; }.profile-aliases>summary strong { font-size:.8rem; }.profile-aliases>summary small { color:var(--muted);font-size:.64rem; }.profile-aliases>summary>span:last-child { transition:transform .42s ease; }.profile-aliases[open]>summary>span:last-child { transform:rotate(180deg); }.profile-aliases-body { display:grid;padding:0 13px 13px;border-top:1px solid rgba(117,105,91,.12);gap:10px; }.profile-alias-list { display:grid;gap:8px; }.profile-alias-list>article { display:grid;padding:10px;border:1px solid rgba(117,105,91,.13);border-radius:11px;gap:8px;background:rgba(255,255,255,.74); }.profile-alias-list>article>div { display:grid;gap:2px; }.profile-alias-list span,.profile-alias-list small { color:var(--muted);font-size:.64rem; }.profile-alias-list details>summary,.profile-alias-create>summary { width:fit-content;color:#20551A;cursor:pointer;font-size:.68rem;font-weight:800; }.profile-alias-password-actions { display:grid;margin-top:8px;gap:9px; }.profile-alias-password-actions form { margin:0; }.profile-alias-password-actions .form-stack { padding:10px;border-radius:10px;background:rgba(245,242,237,.72); }.profile-alias-delete { display:flex;margin:2px 0 0;justify-content:flex-end; }.profile-alias-create { padding:11px;border:1px dashed rgba(32,85,26,.25);border-radius:11px;background:rgba(239,247,237,.55); }.profile-alias-create form { margin-top:10px; }.admin-password-method { display:grid;margin:6px 0 10px;padding:11px;border:1px solid rgba(117,105,91,.15);border-radius:11px;gap:8px; }.admin-password-method legend { padding:0 5px;font-size:.7rem;font-weight:850; }.admin-password-method>label { display:flex!important;margin:0;align-items:center;gap:7px;font-size:.7rem!important; }.admin-password-method input[type=radio] { width:17px;height:17px;margin:0;accent-color:#20551A; }.admin-manual-password,.profile-alias-manual-password { display:grid;padding-top:4px;gap:7px; }.profile-alias-manual-password[hidden],.admin-manual-password[hidden] { display:none!important; }
.admin-shell { max-width: 1320px; }
.admin-section { margin-top: 34px; }
.admin-section-heading { display: flex; margin-bottom: 12px; align-items: baseline; justify-content: space-between; gap: 15px; }
.admin-section-heading h2 { margin: 0; font-family: Georgia,serif; font-size: 1.65rem; font-weight: 500; }
.admin-section-heading span { color: var(--muted); font-size: .72rem; }
.admin-companies { display: grid; gap: 20px; }
.admin-company { position: relative; overflow: hidden; border: 2px solid #d9d2c8; border-radius: 16px; background: #fff; box-shadow: 0 8px 26px rgba(49,39,28,.06); }
.admin-company.is-inactive { border-color: #dfc9c4; opacity: .82; }
.admin-company > summary { display: flex; min-height: 72px; padding: 14px 18px; border-bottom: 1px solid transparent; align-items: center; justify-content: space-between; gap: 15px; cursor: pointer; list-style: none; background: #f4f1ec; }
.admin-company[open] > summary { border-bottom-color: #ded7ce; }
.admin-company > summary::-webkit-details-marker { display: none; }.admin-company > summary > div { display: grid; gap: 2px; }.admin-company > summary strong { font-size: .95rem; }.admin-company > summary span { color: var(--muted); font-size: .68rem; }
.admin-company-name-link, .admin-user-name-link { width: fit-content; padding: 0; border: 0; color: var(--ink); background: transparent; cursor: pointer; font: inherit; font-weight: 850; text-align: left; text-decoration: underline; text-decoration-color: #b9b1a7; text-underline-offset: 3px; }
.admin-company-identity { position: relative; padding-left: 39px; }
.admin-company-identity::before { content: ''; position: absolute; top: 50%; left: 0; width: 28px; height: 28px; background: #5d7185; transform: translateY(-50%); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 21V5h10v16M14 9h6v12M8 9h2M8 13h2M8 17h2M17 13h1M17 17h1M2 21h20' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 21V5h10v16M14 9h6v12M8 9h2M8 13h2M8 17h2M17 13h1M17 17h1M2 21h20' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.admin-user-identity { position: relative; padding-left: 38px; }
.admin-user-identity::before { content: ''; position: absolute; top: 50%; left: 2px; width: 26px; height: 26px; background: #5d7185; transform: translateY(-50%); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 12a4 4 0 1 0 0-8 4 4 0 0 0 0 8ZM4 21v-2a6 6 0 0 1 6-6h4a6 6 0 0 1 6 6v2' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 12a4 4 0 1 0 0-8 4 4 0 0 0 0 8ZM4 21v-2a6 6 0 0 1 6-6h4a6 6 0 0 1 6 6v2' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.admin-company-name-link { font-size: .95rem; }
.admin-user-name-link { font-size: .84rem; }
.admin-company-name-link:hover, .admin-company-name-link:focus-visible, .admin-user-name-link:hover, .admin-user-name-link:focus-visible { color: var(--accent-dark); text-decoration-color: currentColor; }
.status-pill { display: inline-flex; width: fit-content; padding: 4px 8px; border-radius: 999px; font-size: .62rem!important; font-weight: 850; text-transform: uppercase; }.status-pill.is-active { color: #356141!important; background: #dcebdd; }.status-pill.is-inactive { color: #913b30!important; background: #f8dfda; }.status-pill.is-neutral { color:#645f57!important;background:#ebe7e1; }
.admin-company-body { display: flex; padding: 16px; flex-direction: column; }.admin-company-actions { display: flex; padding: 0 0 12px; justify-content: flex-end; }.admin-company-actions form { margin: 0; }
.admin-company-actions .button { min-height: 36px; padding: 0 11px; font-size: .7rem; }
.admin-company-state-form { display: none; }
.admin-switch { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.admin-switch input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.admin-switch > span { position: relative; display: block; width: 42px; height: 24px; border-radius: 999px; background: #c8c4bd; transition: background .18s; }
.admin-switch > span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 2px 5px rgba(34,29,24,.22); transition: transform .18s; }
.admin-switch input:checked + span { background: #527a5c; }
.admin-switch input:checked + span::after { transform: translateX(18px); }
.admin-switch input:focus-visible + span { outline: 3px solid rgba(82,122,92,.2); outline-offset: 2px; }
.admin-switch b { min-width: 73px; color: var(--muted); font-size: .65rem; }
.admin-switch.is-disabled { cursor: default; opacity: .7; }
.admin-user-state { margin: 0; }
.admin-company-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.admin-company-form-grid label { display: grid; margin: 0; }
.admin-company-form-grid label > span { margin-bottom: 8px; }
.admin-company-form-grid input { margin-bottom: 20px; }
.admin-company-location-grid { grid-template-columns: .55fr 1fr 1fr; }
.admin-company-branding { margin:2px 0 16px;padding:14px;border:1px solid rgba(117,105,91,.16);border-radius:14px;background:rgba(247,245,240,.72); }.admin-company-branding legend { padding:0 6px;color:var(--ink);font-size:.76rem;font-weight:850; }.admin-company-branding>p { margin:0 0 11px;color:var(--muted);font-size:.65rem;line-height:1.4; }.admin-company-logo-grid { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px; }.admin-company-logo-field { display:grid;min-width:0;margin:0;padding:11px;border:1px solid rgba(117,105,91,.14);border-radius:12px;gap:8px;background:rgba(255,255,255,.84);font-size:.68rem;font-weight:800; }.admin-company-logo-preview { display:grid;height:92px;padding:9px;border:1px dashed #d6d0c7;border-radius:9px;place-items:center;background:#fff; }.admin-company-logo-preview.is-ticket { background:#fafafa; }.admin-company-logo-preview img { display:block;max-width:100%;max-height:74px;object-fit:contain; }.admin-company-logo-preview b { color:var(--muted);font-size:.62rem;font-weight:650;text-align:center; }.admin-company-logo-field input[type=file] { width:100%;font-size:.62rem;font-weight:500; }.admin-company-logo-remove { display:flex;align-items:center;gap:6px;color:#95483a;font-size:.62rem;font-weight:700; }.admin-company-logo-remove input { width:15px;height:15px;margin:0;accent-color:#a4473b; }
.admin-storage { display: grid; order: 3; margin-top: 16px; padding: 12px; border: 1px solid #e3ddd4; border-radius: 12px; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; background: #f8f6f2; }
.admin-storage-card { display: grid; min-width: 0; padding: 11px; border: 1px solid #e5dfd6; border-radius: 10px; background: #fff; gap: 3px; }
.admin-storage-card > span { color: var(--muted); font-size: .65rem; font-weight: 750; }
.admin-storage-card > strong { color: #354e3b; font-family: Georgia,serif; font-size: 1.2rem; font-weight: 500; }
.admin-storage-card > small { color: var(--muted); font-size: .62rem; }
.admin-storage-total { border-color: #cbdacc; background: #f1f6f2; }
.admin-ocr-card { grid-column: span 2; border-color: rgba(32,85,26,.22); background: linear-gradient(145deg,rgba(244,249,244,.96),rgba(255,255,255,.92)); }
.admin-ocr-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }.admin-ocr-heading > span { color: var(--muted); font-size: .65rem; font-weight: 750; }.admin-ocr-heading > strong { color: #20551a; font-family: Georgia,serif; font-size: 1rem; font-weight: 500; }
.admin-ocr-grid { display: grid; margin: 5px 0 3px; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 5px; }.admin-ocr-grid span { display: flex; min-width: 0; padding: 5px 7px; border: 1px solid rgba(32,85,26,.1); border-radius: 7px; align-items: center; gap: 5px; color: var(--muted); background: rgba(255,255,255,.62); font-size: .6rem; }.admin-ocr-grid b { color: var(--ink); font-size: .75rem; }
.admin-storage-age { display: flex; padding: 8px 10px; border-radius: 8px; grid-column: 1 / -1; align-items: center; gap: 8px; color: var(--muted); background: #efebe5; font-size: .68rem; }
@media (max-width:700px) { .admin-ocr-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
.admin-storage-age strong { color: var(--ink); }.admin-storage-age small { margin-left: auto; }.admin-storage-age.has-old-files { color: #8a5a23; background: #faf0df; }
.admin-discarded-reviews { order:4;margin-top:12px;border:1px solid rgba(160,65,52,.18);border-radius:13px;background:rgba(255,246,243,.66); }
.admin-discarded-reviews>summary { display:flex;padding:12px 14px;align-items:center;justify-content:space-between;gap:10px;color:#7f3128;font-size:.72rem;font-weight:850;cursor:pointer; }
.admin-discarded-reviews>summary b { display:grid;min-width:24px;height:24px;padding:0 6px;border-radius:999px;place-items:center;color:#fff;background:#9b4136;font-size:.61rem; }
.admin-discarded-reviews>div { display:grid;padding:0 10px 10px;gap:8px; }.admin-discarded-reviews article { display:grid;padding:11px;border:1px solid rgba(255,255,255,.9);border-radius:10px;background:rgba(255,255,255,.8);gap:8px; }
.admin-discarded-reviews article>header { display:flex;align-items:flex-start;justify-content:space-between;gap:10px; }.admin-discarded-reviews article>header div { display:grid;min-width:0;gap:2px; }.admin-discarded-reviews article>header strong { overflow-wrap:anywhere;font-size:.75rem; }.admin-discarded-reviews article>header small,.admin-discarded-reviews article>header>span,.admin-discarded-reviews article>p { margin:0;color:var(--muted);font-size:.61rem;line-height:1.4; }
.admin-discarded-reviews article>details { border-radius:8px;background:rgba(247,245,240,.78); }.admin-discarded-reviews article>details>summary { padding:8px 9px;font-size:.62rem;font-weight:800;cursor:pointer; }.admin-discarded-reviews ol { display:grid;margin:0;padding:0 9px 9px;list-style:none;gap:5px; }.admin-discarded-reviews li { display:grid;padding:7px;border-radius:7px;background:#fff;grid-template-columns:auto 1fr auto;gap:8px;font-size:.58rem; }.admin-discarded-reviews li span { min-width:0;color:var(--muted); }.admin-discarded-reviews li small { color:var(--muted);white-space:nowrap; }
.admin-discarded-reviews footer { display:flex;justify-content:flex-end;gap:7px; }.admin-discarded-reviews footer form { margin:0; }
.admin-learning-reviews{order:4;margin-top:12px;border:1px solid rgba(41,106,55,.18);border-radius:13px;background:rgba(242,249,240,.72)}.admin-learning-reviews>summary{display:flex;padding:12px 14px;align-items:center;justify-content:space-between;gap:10px;color:#20551a;font-size:.72rem;font-weight:850;cursor:pointer}.admin-learning-reviews>summary b{display:grid;min-width:24px;height:24px;padding:0 6px;border-radius:999px;place-items:center;color:#fff;background:#39743d;font-size:.61rem}.admin-learning-reviews>div{display:grid;padding:0 10px 10px;gap:8px}.admin-learning-reviews article{display:grid;padding:11px;border:1px solid rgba(255,255,255,.92);border-radius:11px;align-items:center;grid-template-columns:minmax(0,1fr) auto auto;gap:9px;background:#fff}.admin-learning-reviews article>div{display:grid;min-width:0;gap:2px}.admin-learning-reviews strong{overflow-wrap:anywhere;font-size:.75rem}.admin-learning-reviews small{color:var(--muted);font-size:.61rem;line-height:1.4}
.admin-learning-history{border-color:rgba(117,105,91,.16);background:rgba(247,245,240,.72)}.admin-learning-history>summary{color:var(--ink)}.admin-learning-history>summary b{background:#65705e}
.learning-review-shell{max-width:1380px}.learning-review-layout{display:grid;grid-template-columns:minmax(320px,.9fr) minmax(430px,1.1fr);gap:18px}.learning-original-card,.learning-comparison-card,.learning-test-card,.learning-review-actions{border:1px solid var(--line);border-radius:18px;background:#fff;box-shadow:0 10px 28px rgba(49,39,28,.06)}.learning-original-card,.learning-comparison-card{padding:16px}.learning-original-card>div:first-child,.learning-comparison-heading{display:flex;margin-bottom:13px;align-items:flex-start;justify-content:space-between;gap:12px}.learning-original-card h2,.learning-comparison-card h2,.learning-test-card h2{margin:0;font-size:1.04rem}.learning-original-card>div:first-child span,.learning-comparison-heading>span{color:var(--muted);font-size:.65rem;font-weight:800}.learning-original-pages{display:grid;gap:11px}.learning-original-pages a{position:relative;display:block;overflow:hidden;border:1px solid #ded7ce;border-radius:13px;background:#f4f1ec}.learning-original-pages img{display:block;width:100%;max-height:660px;object-fit:contain;background:#ece8e1}.learning-original-pages span{position:absolute;right:9px;bottom:9px;padding:7px 10px;border-radius:999px;color:#fff;background:rgba(36,42,35,.82);font-size:.62rem;font-weight:800}.learning-field-list{display:grid;gap:8px}.learning-field-list article{padding:11px;border:1px solid #e7e1d8;border-radius:12px;background:#fbfaf8}.learning-field-list article>strong{display:block;margin-bottom:8px;font-size:.7rem}.learning-field-list article>div{display:grid;grid-template-columns:1fr 1fr;gap:8px}.learning-field-list span{display:grid;color:var(--muted);font-size:.58rem;font-weight:800;gap:4px}.learning-field-list del,.learning-field-list ins{padding:8px;border-radius:8px;color:var(--ink);font-size:.68rem;font-weight:700;text-decoration:none;overflow-wrap:anywhere}.learning-field-list del{background:#fff0ed}.learning-field-list ins{background:#edf7ea}.learning-line-changes{margin-top:12px;border:1px solid #e5dfd6;border-radius:12px;background:#f8f6f2}.learning-line-changes>summary{padding:10px 12px;font-size:.68rem;font-weight:850;cursor:pointer}.learning-line-changes>div{display:grid;padding:0 9px 9px;gap:6px}.learning-line-changes article{display:grid;padding:9px;border-radius:9px;gap:2px;background:#fff}.learning-line-changes strong{font-size:.64rem}.learning-line-changes span{color:var(--muted);font-size:.61rem}.learning-test-card{display:grid;margin-top:18px;padding:17px;border-left:5px solid #a85235;grid-template-columns:minmax(0,1fr) auto;gap:18px}.learning-test-card.is-passed{border-left-color:#39743d}.learning-test-card p{margin:.35rem 0 0;color:var(--muted);font-size:.7rem}.learning-test-checks{display:flex;max-width:430px;align-content:flex-start;justify-content:flex-end;flex-wrap:wrap;gap:6px}.learning-test-checks span{padding:7px 9px;border-radius:999px;font-size:.61rem;font-weight:850}.learning-test-checks .is-ok{color:#20551a;background:#e9f5e6}.learning-test-checks .is-error{color:#8b342a;background:#fff0ed}.learning-review-actions{display:flex;margin-top:18px;padding:17px;align-items:center;justify-content:space-between;gap:18px}.learning-review-actions>div{max-width:700px}.learning-review-actions strong{font-size:.8rem}.learning-review-actions p{margin:.3rem 0 0;color:var(--muted);font-size:.67rem;line-height:1.5}.learning-review-actions form{display:flex;margin:0;gap:8px}
@media(max-width:850px){.admin-learning-reviews article{grid-template-columns:minmax(0,1fr) auto}.admin-learning-reviews article .button{grid-column:1/-1}.learning-review-layout{grid-template-columns:1fr}.learning-test-card{grid-template-columns:1fr}.learning-test-checks{justify-content:flex-start}.learning-review-actions{align-items:stretch;flex-direction:column}.learning-review-actions form{flex-direction:column}.learning-field-list article>div{grid-template-columns:1fr}}
.admin-user { margin-top: 8px; overflow: hidden; border: 1px solid #e2ddd6; border-radius: 10px; }.admin-user-main { display: grid; min-height: 72px; padding: 11px 13px; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 12px; }.admin-user-main > div { display: grid; gap: 2px; }.admin-user-main strong { font-size: .84rem; }.admin-user-main span,.admin-user-main small { color: var(--muted); font-size: .68rem; }.admin-user-main button:disabled { opacity: .35; cursor: not-allowed; }
.admin-permissions { border-top: 1px solid #e7e2db; }.admin-permissions > summary { padding: 9px 13px; color: #3f674a; background: #faf9f7; cursor: pointer; font-size: .72rem; font-weight: 800; }.admin-permissions form { padding: 10px 13px 13px; }
.admin-devices { border-top: 1px solid #e7e2db; }.admin-devices > summary { display: flex; padding: 9px 13px; align-items: center; justify-content: space-between; color: #425b70; background: #f7f8f9; cursor: pointer; font-size: .72rem; font-weight: 800; }.admin-devices > summary span { display: grid; min-width: 22px; height: 22px; border-radius: 999px; place-items: center; color: #fff; background: #60798e; font-size: .62rem; }.admin-device-list { display: grid; padding: 10px 13px 13px; gap: 10px; }.admin-device { overflow: hidden; border: 1px solid #dce2e6; border-radius: 10px; background: #fff; }.admin-device.is-inactive { opacity: .7; }.admin-device-heading { display: grid; padding: 10px; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 10px; background: #f7f9fa; }.admin-device-heading > div { display: grid; gap: 2px; }.admin-device-heading strong { font-size: .75rem; }.admin-device-heading span { color: var(--muted); font-size: .62rem; }.admin-device-heading form,.admin-device-session form { margin: 0; }.admin-device-sessions { display: grid; padding: 9px 10px; border-top: 1px solid #e5e9ec; gap: 5px; }.admin-device-sessions > strong { font-size: .68rem; }.admin-device-sessions > small { color: var(--muted); font-size: .62rem; }.admin-device-session { display: flex; min-height: 30px; padding: 5px 7px; border-radius: 7px; align-items: center; justify-content: space-between; gap: 8px; background: #f7f6f3; }.admin-device-session span,.admin-device-session small { color: var(--muted); font-size: .62rem; }.admin-device-session .text-action { min-height: 0; padding: 2px; font-size: .62rem; }.admin-device-permissions { display: grid; padding: 10px; border-top: 1px solid #e5e9ec; gap: 8px; }.admin-device-permissions > small { color: var(--muted); font-size: .62rem; }.admin-device-restriction { display: flex; align-items: center; gap: 8px; font-size: .68rem; font-weight: 800; }.admin-device-restriction input { width: 18px; height: 18px; accent-color: #4f765b; }
.permission-grid { border: 1px solid var(--line); border-radius: 9px; }.permission-head,.permission-row { display: grid; min-height: 38px; padding: 5px 9px; grid-template-columns: minmax(150px,1fr) 75px 90px 75px; align-items: center; gap: 6px; text-align: center; }.permission-head { color: var(--muted); background: #f5f2ed; font-size: .64rem; font-weight: 850; text-transform: uppercase; }.permission-head span:first-child,.permission-row strong { text-align: left; }.permission-row { border-top: 1px solid var(--line); font-size: .74rem; }.permission-row label { display: grid; place-items: center; }.permission-row input { width: 18px; height: 18px; accent-color: #4f765b; }.admin-permission-actions { display: flex; margin-top: 10px; justify-content: flex-end; }
.admin-session-limit { display: grid; margin: 0 0 10px; grid-template-columns: minmax(160px,auto) 76px minmax(180px,1fr); align-items: center; gap: 8px; font-size: .72rem; font-weight: 800; }.admin-session-limit input { width: 76px; min-height: 38px; padding: 5px 8px; border: 1px solid var(--line); border-radius: 8px; }.admin-session-limit small { color: var(--muted); font-size: .64rem; font-weight: 500; }.admin-device-permissions-title { font-size: .72rem; }
.access-table .table-row { grid-template-columns: 125px minmax(190px,1.2fr) minmax(130px,.85fr) 90px minmax(210px,1.25fr) 125px; }.access-table .table-row > span:nth-child(2),.access-table .table-row > span:nth-child(5) { display:grid;gap:2px; }.access-table .table-row > span:nth-child(5) strong { font-size:.7rem; }.access-table .table-row small { color: var(--muted); font-size: .64rem; line-height:1.35; }
.admin-access-section { overflow: hidden; border: 1px solid #d9d2c8; border-radius: 13px; background: #fff; }
.admin-access-section > .admin-section-heading { min-height: 62px; margin: 0; padding: 12px 16px; cursor: pointer; list-style: none; background: #f4f1ec; }
.admin-access-section > .admin-section-heading::-webkit-details-marker { display: none; }
.admin-access-section > .admin-section-heading::after { content: '⌄'; color: var(--muted); font-size: 1.1rem; }
.admin-access-section[open] > .admin-section-heading::after { content: '⌃'; }
.admin-access-content { padding: 12px; border-top: 1px solid #ded7ce; }
.admin-access-policy { display:grid;padding:14px;border:1px solid rgba(117,105,91,.14);border-radius:14px;grid-template-columns:minmax(190px,.75fr) minmax(0,1.25fr);align-items:center;gap:18px;background:rgba(255,255,255,.7);box-shadow:inset 0 1px 0 #fff; }.admin-access-policy h3,.admin-access-subheading h3 { margin:0;font-family:Georgia,serif;font-size:1.05rem;font-weight:500; }.admin-access-policy p,.admin-access-subheading p { margin:4px 0 0;color:var(--muted);font-size:.66rem;line-height:1.45; }.admin-access-policy form { display:grid;margin:0;grid-template-columns:minmax(130px,1fr) minmax(160px,1fr) auto;align-items:end;gap:10px; }.admin-access-policy label { display:grid;gap:5px;color:var(--muted);font-size:.65rem;font-weight:750; }.admin-access-policy input { width:100%;min-height:40px;padding:8px 10px;border:1px solid var(--line);border-radius:10px;background:rgba(255,255,255,.9);font:inherit;font-weight:800; }.admin-access-policy label small { font-size:.57rem;font-weight:500; }.admin-access-duration { display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:7px; }.admin-access-duration b { color:var(--muted);font-size:.62rem; }.admin-active-locks,.admin-access-history { margin-top:12px;padding:13px;border:1px solid rgba(117,105,91,.13);border-radius:14px;background:rgba(255,255,255,.58); }.admin-access-subheading { display:flex;margin-bottom:10px;align-items:center;justify-content:space-between;gap:12px; }.admin-access-subheading>span { display:grid;width:29px;height:29px;border-radius:50%;place-items:center;color:#fff;background:#a34537;font-size:.68rem;font-weight:850; }.admin-lock-list { display:grid;gap:7px; }.admin-lock-list article { display:flex;padding:10px 11px;border:1px solid rgba(163,69,55,.15);border-radius:11px;align-items:center;justify-content:space-between;gap:12px;background:rgba(250,237,233,.72); }.admin-lock-list article>div { display:grid;gap:2px; }.admin-lock-list article span,.admin-lock-list article small { color:var(--muted);font-size:.63rem; }.admin-lock-list form { margin:0; }
.admin-user-modal h2 { margin-right: 40px; }.admin-active-option { display: flex!important; margin-top: 8px; align-items: center; gap: 8px; }.admin-active-option input { width: 18px; height: 18px; }
.admin-company-actions { display:flex;margin-bottom:12px;align-items:center;justify-content:flex-end;gap:8px; }.admin-company-actions form,.admin-user-actions form { margin:0; }.admin-user-actions { display:flex;align-items:center;justify-content:flex-end;gap:8px; }.button-compact { min-height:34px;padding:0 11px;font-size:.66rem; }.profile-alias-permissions { margin-top:8px; }.profile-alias-permissions .permission-grid { margin:0; }
.admin-heading-actions { padding: 5px; border: 1px solid rgba(255,255,255,.78); border-radius: 15px; background: rgba(255,255,255,.42); box-shadow: inset 0 1px 0 rgba(255,255,255,.9),0 8px 24px rgba(49,39,28,.06); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.admin-release-meta { display:flex;margin:-1px 0 7px;align-items:center;flex-wrap:wrap;gap:5px;color:var(--muted);font-size:.64rem;font-weight:650;letter-spacing:.012em;line-height:1.35; }.admin-release-meta strong { color:#20551a;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.63rem;font-weight:850;letter-spacing:.035em; }
.admin-continuity-card { display:grid;margin:20px 0 4px;padding:12px 13px;border:1px solid rgba(255,255,255,.82);border-radius:16px;grid-template-columns:minmax(250px,1fr) auto auto;align-items:center;gap:14px;background:linear-gradient(145deg,rgba(255,255,255,.82),rgba(241,238,232,.6));box-shadow:inset 0 1px 0 rgba(255,255,255,.96),0 12px 30px rgba(49,39,28,.07);-webkit-backdrop-filter:blur(16px) saturate(125%);backdrop-filter:blur(16px) saturate(125%);}
.admin-continuity-state { display:flex;min-width:0;align-items:center;gap:11px;}.admin-continuity-state>div,.admin-continuity-local { display:grid;min-width:0;gap:2px;}.admin-continuity-state small,.admin-continuity-local small { color:var(--muted);font-size:.6rem;font-weight:800;letter-spacing:.045em;text-transform:uppercase;}.admin-continuity-state strong,.admin-continuity-local strong { color:var(--ink);font-family:Georgia,serif;font-size:1.05rem;font-weight:500;}.admin-continuity-state>div>span { color:var(--muted);font-size:.62rem;}.admin-continuity-dot { width:12px;height:12px;flex:0 0 12px;border:3px solid rgba(32,85,26,.14);border-radius:50%;background:#20551a;box-shadow:0 0 0 5px rgba(32,85,26,.07);}.admin-continuity-state.is-unknown .admin-continuity-dot { border-color:rgba(152,113,47,.16);background:#b8862d;box-shadow:0 0 0 5px rgba(184,134,45,.08);}.admin-continuity-local { min-width:105px;padding:3px 14px;border-left:1px solid rgba(117,105,91,.16);}.admin-continuity-local strong { font-size:.86rem;}.admin-continuity-card>.button { min-height:40px;gap:8px;white-space:nowrap;}
.admin-create-company-button { display: inline-flex; align-items: center; gap: 8px; }
.admin-create-company-button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.admin-company-actions { min-height: 56px; margin: 0 0 14px; padding: 9px 10px; border: 1px solid rgba(117,105,91,.13); border-radius: 13px; justify-content: space-between; background: linear-gradient(145deg,rgba(255,255,255,.72),rgba(244,241,236,.52)); box-shadow: inset 0 1px 0 rgba(255,255,255,.9); }
.admin-company-actions > [data-open-admin-user] { display: inline-flex; border-color: rgba(32,85,26,.17); align-items: center; gap: 7px; color: #20551a; background-color: rgba(236,245,233,.82); background-image: linear-gradient(145deg,rgba(249,253,248,.95),rgba(225,239,221,.78)); box-shadow: inset 0 1px 0 #fff,0 7px 18px rgba(32,85,26,.09); }
.admin-company-actions > [data-open-admin-user]::after { width: 16px; height: 16px; background: currentColor; content: ''; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 12a4 4 0 1 0 0-8 4 4 0 0 0 0 8ZM3 21v-2a6 6 0 0 1 6-6h2M18 8v6M15 11h6' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 12a4 4 0 1 0 0-8 4 4 0 0 0 0 8ZM3 21v-2a6 6 0 0 1 6-6h2M18 8v6M15 11h6' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.admin-user-actions form[action*="admin-alias-eliminar"] .button { display: inline-flex; border-color: rgba(157,56,36,.16); align-items: center; gap: 6px; color: #9a402f; background-color: rgba(255,247,244,.76); background-image: linear-gradient(145deg,rgba(255,255,255,.94),rgba(249,230,224,.68)); box-shadow: inset 0 1px 0 #fff,0 5px 14px rgba(137,48,31,.08); }
.admin-user-actions form[action*="admin-alias-eliminar"] .button::after { width: 14px; height: 14px; background: currentColor; content: ''; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 7h16M9 7V4h6v3M7 7l1 14h8l1-14M10 11v6M14 11v6' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 7h16M9 7V4h6v3M7 7l1 14h8l1-14M10 11v6M14 11v6' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.admin-alias-password>div { display:grid;padding:11px 13px 13px;grid-template-columns:auto minmax(260px,1fr);align-items:start;gap:12px; }.admin-alias-password form { margin:0; }.admin-alias-password .form-stack { padding:10px;border:1px solid rgba(117,105,91,.13);border-radius:10px;background:rgba(248,246,242,.76); }.admin-alias-password .button { width:fit-content; }
.admin-invitation-note { display: grid; padding: 12px 14px; border: 1px solid rgba(32,85,26,.18); border-radius: 12px; color: #365338; background: rgba(235,244,234,.72); gap: 3px; }
.admin-invitation-note[hidden] { display: none; }
.admin-invitation-note strong { font-size: .78rem; }.admin-invitation-note span { font-size: .7rem; line-height: 1.45; }
@media (max-width:760px) { .admin-continuity-card { grid-template-columns:minmax(0,1fr) auto;}.admin-continuity-local { display:none;}.admin-continuity-card>.button { min-width:42px;padding:0 12px;}.admin-continuity-card>.button span:first-child { display:none;} }
@media (max-width:460px) { .admin-continuity-card { grid-template-columns:1fr;}.admin-continuity-card>.button { width:100%;}.admin-continuity-card>.button span:first-child { display:inline;} }

.content-shell { width: min(100% - 40px, 1180px); margin: 0 auto; padding: 38px 0 80px; }
.app-navigation { display: flex; min-height: 42px; margin: 0 0 18px; align-items: center; flex-wrap: wrap; gap: 8px; }
.app-navigation .button { min-height: 40px; padding: 0 14px; }
.app-navigation .button:first-child { font-weight: 800; }
.app-navigation .app-home-button { width: 42px; min-width: 42px; padding: 0; }
.app-home-symbol { display: block; width: 17px; height: 17px; flex: 0 0 17px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 11.5 12 4l9 7.5M5.5 10v10h13V10M9.5 20v-6h5v6' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 11.5 12 4l9 7.5M5.5 10v10h13V10M9.5 20v-6h5v6' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.app-navigation .app-back-button { width: 42px; min-width: 42px; padding: 0; }
.app-back-symbol { display: block; font-size: 1.35rem; font-weight: 500; line-height: 1; transform: translateY(-1px); }
.has-inline-page-navigation > .app-navigation-inline { display: inline-flex; min-height: 0; margin: 0 7px 4px 0; align-items: center; vertical-align: middle; flex-wrap: nowrap; gap: 5px; }
.has-inline-page-navigation > .app-navigation-inline .button { width: 32px; min-width: 32px; min-height: 32px; height: 32px; padding: 0; }
.has-inline-page-navigation > .app-navigation-inline .app-home-button,
.has-inline-page-navigation > .app-navigation-inline .app-back-button { width: 32px; min-width: 32px; }
.has-inline-page-navigation > .app-navigation-inline .app-home-symbol { width: 15px; height: 15px; flex-basis: 15px; }
.has-inline-page-navigation > .app-navigation-inline .app-back-symbol { font-size: 1.1rem; }
.has-inline-page-navigation > .eyebrow { display: inline-flex; min-height: 32px; margin: 0 0 4px; align-items: center; vertical-align: middle; }
.app-navigation-fullscreen { width: min(calc(100vw - 40px), 1180px); min-height: 46px; margin: 8px auto; }
.leftovers-main { width: min(calc(100% - 40px), 1480px); margin: 0 auto; padding-bottom: 60px; }
.leftovers-alert { margin: 8px 0 12px; }
.leftovers-heading { display: flex; min-height: 92px; padding: 12px 16px 18px; align-items: end; justify-content: space-between; gap: 20px; }.leftovers-heading h1 { margin: 3px 0 2px; font-family: Georgia,serif; font-size: clamp(2rem,4vw,3.25rem); font-weight: 500; line-height: 1; }.leftovers-heading p:last-child { margin: 5px 0 0; color: var(--muted); font-size: .8rem; }.leftovers-total { display: grid; min-width: 100px; padding: 10px 14px; border: 1px solid #cbd9ca; border-radius: 12px; text-align: center; background: #f3f8f2; }.leftovers-total span { color: #4a6649; font-size: .65rem; font-weight: 800; text-transform: uppercase; }.leftovers-total strong { color: #20551a; font-size: 1.65rem; line-height: 1.1; }
.leftovers-layout { overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: var(--shadow); display: grid; grid-template-columns: minmax(290px,350px) minmax(0,1fr); }
.leftovers-catalog,.leftovers-stock { min-width: 0; min-height: 560px; padding: 16px; }.leftovers-catalog { border-right: 1px solid var(--line); background: #faf9f7; }.leftovers-stock { background: #f4f7f3; }
.leftovers-section-heading { display: flex; min-height: 50px; margin-bottom: 10px; align-items: center; justify-content: space-between; gap: 12px; }.leftovers-section-heading h2 { margin: 0; font-family: Georgia,serif; font-size: 1.25rem; font-weight: 500; }.leftovers-section-heading small { display: block; color: var(--muted); font-size: .66rem; }.leftovers-section-heading input { width: min(220px,28vw); min-height: 40px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 9px; outline: 0; background: #fff; }.leftovers-section-heading input:focus { border-color: #20551a; box-shadow: 0 0 0 3px rgba(32,85,26,.1); }
.leftovers-catalog .leftovers-section-heading { align-items:stretch;flex-direction:column;gap:8px; }.leftovers-catalog .leftovers-section-heading input { width:100%; }
.leftovers-use-groups,.leftovers-stock-list { display:grid;align-content:start;gap:8px; }.leftovers-use-group { overflow:hidden;border:1px solid #ddd7cf;border-radius:11px;background:rgba(255,255,255,.78); }.leftovers-use-group>summary { display:flex;min-height:52px;padding:8px 10px;align-items:center;justify-content:space-between;gap:10px;cursor:pointer;list-style:none; }.leftovers-use-group>summary::-webkit-details-marker { display:none; }.leftovers-use-group>summary>span { display:grid;min-width:0;gap:2px; }.leftovers-use-group>summary strong { color:#315b3b;font-size:.78rem; }.leftovers-use-group>summary small { color:var(--muted);font-size:.59rem; }.leftovers-use-group>summary i { display:grid;width:25px;height:25px;border-radius:50%;place-items:center;color:#52715a;background:#edf3ed;font-size:.9rem;font-style:normal;transition:transform .18s ease; }.leftovers-use-group[open]>summary { border-bottom:1px solid #e5dfd7;background:#f1f6f1; }.leftovers-use-group[open]>summary i { transform:rotate(180deg); }.leftovers-recipe-list { display:grid;padding:7px;align-content:start;gap:6px; }.leftovers-recipe { display: grid; min-height: 68px; padding: 8px 9px; border: 1px solid #e1dcd4; border-radius: 9px; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 8px; background: #fff; }.leftovers-recipe-copy { display: grid; min-width: 0; gap: 1px; }.leftovers-recipe-copy strong { font-size: .76rem;line-height:1.25; }.leftovers-recipe-copy span,.leftovers-recipe-copy small { overflow: hidden; color: var(--muted); font-size: .6rem; text-overflow: ellipsis; white-space: nowrap; }.leftovers-recipe-copy small { color: #4f765b; font-weight: 750; }
.leftovers-counter { display: grid; grid-template-columns: 34px 34px 34px; align-items: center; }.leftovers-counter form { margin: 0; }.leftovers-counter button { display: grid; width: 34px; height: 34px; padding: 0; border: 1px solid #d5d0c9; place-items: center; color: #20551a; background: #fff; cursor: pointer; font-size: 1.15rem; font-weight: 800; }.leftovers-counter form:first-child button { border-radius: 9px 0 0 9px; }.leftovers-counter form:last-child button { border-radius: 0 9px 9px 0; }.leftovers-counter button:disabled { color: #aaa49b; background: #f2f0ec; cursor: not-allowed; }.leftovers-counter > strong { display: grid; height: 34px; border-top: 1px solid #d5d0c9; border-bottom: 1px solid #d5d0c9; place-items: center; background: #f6faf5; font-size: .82rem; }
.leftovers-counter > strong:only-child { border: 1px solid #d5d0c9; border-radius: 9px; }
.leftovers-stock-card { overflow: hidden; border: 1px solid #cfdbce; border-radius: 12px; background: #fff; }.leftovers-stock-card > header { display: flex; min-height: 58px; padding: 10px 12px; align-items: center; justify-content: space-between; gap: 10px; background: #edf4eb; }.leftovers-stock-card > header > div:first-child { display: grid; min-width: 0; }.leftovers-stock-card > header strong { font-size: .85rem; }.leftovers-stock-card > header span { overflow: hidden; color: var(--muted); font-size: .65rem; text-overflow: ellipsis; white-space: nowrap; }.leftovers-stock-counter { flex: 0 0 auto; }.leftovers-stock-date { display: block; padding: 7px 12px 0; color: var(--muted); font-size: .61rem; }
.leftovers-stock-note { display: grid; margin: 8px 12px 0; gap: 4px; }.leftovers-stock-note > label,.leftovers-stock-note > strong { color: #4c684b; font-size: .62rem; font-weight: 800; text-transform: uppercase; }.leftovers-stock-note > div { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: end; gap: 7px; }.leftovers-stock-note textarea { width: 100%; min-height: 52px; padding: 8px 9px; resize: vertical; border: 1px solid #d8d2ca; border-radius: 9px; outline: 0; color: var(--ink); background: #fbfaf8; font: inherit; font-size: .7rem; line-height: 1.35; }.leftovers-stock-note textarea:focus { border-color: #20551a; box-shadow: 0 0 0 3px rgba(32,85,26,.1); }.leftovers-stock-note .button { min-height: 38px; padding: 7px 11px; }.leftovers-stock-note-readonly { padding: 8px 10px; border-radius: 9px; background: #f7f5f1; }.leftovers-stock-note-readonly p { margin: 2px 0 0; color: var(--ink); font-size: .7rem; line-height: 1.4; overflow-wrap: anywhere; }
.leftovers-matches { padding: 9px 12px 12px; }.leftovers-matches > span { display: block; margin-bottom: 6px; color: #4c684b; font-size: .65rem; font-weight: 800; text-transform: uppercase; }.leftovers-matches > p { margin: 0; color: var(--muted); font-size: .7rem; }.leftovers-match-list { display: flex; flex-wrap: wrap; gap: 6px; }.leftovers-match-list form { margin: 0; }.leftovers-match-list button,.leftovers-match-readonly { display: grid; min-height: 44px; padding: 6px 9px; border: 1px solid #d8d2ca; border-radius: 9px; text-align: left; background: #fff; cursor: pointer; }.leftovers-match-list button:hover { border-color: #71906f; background: #f4f8f3; }.leftovers-match-list strong { color: #20551a; font-size: .72rem; }.leftovers-match-list span,.leftovers-match-list small { color: var(--muted); font-size: .58rem; }.leftovers-empty,.leftovers-empty-state { margin: 0; padding: 24px; color: var(--muted); text-align: center; font-size: .76rem; }.leftovers-empty-state { display: grid; min-height: 180px; place-content: center; gap: 4px; }.leftovers-empty-state strong { color: var(--ink); font-size: 1rem; }
.leftovers-recipe[draggable="true"] { cursor:grab;transition:border-color .16s ease,box-shadow .16s ease,opacity .16s ease; }.leftovers-recipe[draggable="true"]:active { cursor:grabbing; }.leftovers-recipe.is-dragging { opacity:.48;border-color:#789877;box-shadow:0 8px 22px rgba(32,85,26,.13); }.leftovers-recipe-actions { display:flex;align-items:center;gap:6px; }.leftovers-recipe-actions>span { display:grid;min-width:29px;height:29px;padding:0 7px;border:1px solid #d5dfd3;border-radius:9px;place-items:center;color:#315b3b;background:#f3f8f2;font-size:.72rem;font-weight:850; }.leftovers-recipe-actions>button { min-height:32px;padding:0 9px;border:1px solid #b9cbb7;border-radius:9px;color:#20551a;background:#fff;cursor:pointer;font-size:.66rem;font-weight:800; }.leftovers-recipe-actions>button:hover,.leftovers-recipe-actions>button:focus-visible { border-color:#527a4f;outline:0;background:#edf5ec; }
.leftovers-new-container { display:grid;min-height:94px;padding:14px;border:1.5px dashed #96ad94;border-radius:12px;place-content:center;gap:2px;text-align:center;color:#315b3b;background:rgba(255,255,255,.62);cursor:pointer;transition:.16s ease; }.leftovers-new-container>span { font-size:1.35rem;line-height:1; }.leftovers-new-container>strong { font-size:.8rem; }.leftovers-new-container>small { color:var(--muted);font-size:.62rem; }.leftovers-new-container.is-drag-over,.leftovers-stock-card.is-drag-over,.leftovers-stock-card.is-awaiting-component { border-color:#2e6c29;box-shadow:0 0 0 4px rgba(46,108,41,.12);background:#f1f8ef; }.leftovers-container-remove,.leftovers-component-remove { display:grid;width:30px;height:30px;padding:0;border:1px solid #dfc7c0;border-radius:9px;place-items:center;color:#9a452d;background:#fff;cursor:pointer;font-size:1.1rem;line-height:1; }.leftovers-container-components { display:grid;margin:8px 12px 0;border:1px solid #e1e6df;border-radius:10px;background:#fbfcfa; }.leftovers-container-component { display:grid;min-width:0;padding:8px;grid-template-columns:minmax(150px,1fr) minmax(250px,auto) auto;align-items:center;gap:7px;border-bottom:1px solid #e6e9e4; }.leftovers-container-component>div { display:grid;min-width:0;gap:1px; }.leftovers-container-component>div strong { overflow:hidden;font-size:.72rem;text-overflow:ellipsis;white-space:nowrap; }.leftovers-container-component>div small { overflow:hidden;color:var(--muted);font-size:.58rem;text-overflow:ellipsis;white-space:nowrap; }.leftovers-container-component>form { display:flex;margin:0;align-items:center;gap:5px; }.leftovers-container-component input,.leftovers-container-component select { width:94px;min-height:34px;padding:5px 7px;border:1px solid #d6d9d2;border-radius:8px;color:var(--ink);background:#fff;font:inherit;font-size:.67rem; }.leftovers-container-component select { width:108px; }.leftovers-component-save { min-height:34px;padding:0 8px;border:1px solid #b9cbb7;border-radius:8px;color:#20551a;background:#fff;cursor:pointer;font-size:.62rem;font-weight:800; }.leftovers-container-drop-hint { min-height:38px;padding:7px 10px;border:0;border-radius:0 0 9px 9px;color:#376737;background:#eff5ed;cursor:pointer;font-size:.66rem;font-weight:800; }.leftovers-container-drop-hint:hover { background:#e4efe1; }.leftovers-matches.is-combined { margin:8px 12px 12px;padding:9px 10px;border-radius:9px;background:#f5f2eb; }.leftovers-matches.is-combined>p { color:#665f52;line-height:1.4; }.leftovers-stock-note>input { width:100%;min-height:38px;padding:7px 9px;border:1px solid #d8d2ca;border-radius:9px;outline:0;color:var(--ink);background:#fbfaf8;font:inherit;font-size:.7rem; }.leftovers-stock-note>input:focus { border-color:#20551a;box-shadow:0 0 0 3px rgba(32,85,26,.1); }
.leftovers-add-modal { width:min(calc(100% - 28px),500px);padding:0;border:0;border-radius:17px;color:var(--ink);background:#fff;box-shadow:0 24px 80px rgba(30,42,27,.28); }.leftovers-add-modal::backdrop { background:rgba(25,35,24,.48);backdrop-filter:blur(3px); }.leftovers-add-modal form { display:grid;max-height:min(90dvh,640px); }.leftovers-add-modal header { display:flex;min-height:72px;padding:14px 18px;align-items:center;justify-content:space-between;gap:14px;border-bottom:1px solid var(--line);background:#f1f6ef; }.leftovers-add-modal header small { color:#587257;font-size:.62rem;font-weight:850;text-transform:uppercase; }.leftovers-add-modal h2 { margin:2px 0 0;font-family:Georgia,serif;font-size:1.25rem;font-weight:500; }.leftovers-add-modal header button { display:grid;width:34px;height:34px;padding:0;border:1px solid #d4ddd2;border-radius:10px;place-items:center;color:#556553;background:#fff;cursor:pointer;font-size:1.2rem; }.leftovers-add-fields { display:grid;padding:18px;gap:14px;overflow:auto; }.leftovers-add-fields>label,.leftovers-add-fields>div>label { display:grid;gap:5px;color:#496248;font-size:.68rem;font-weight:800; }.leftovers-add-fields>label small { color:var(--muted);font-weight:600; }.leftovers-add-fields>div { display:grid;grid-template-columns:1fr 1fr;gap:10px; }.leftovers-add-fields input,.leftovers-add-fields select { width:100%;min-height:43px;padding:8px 10px;border:1px solid #d5d9d2;border-radius:10px;outline:0;color:var(--ink);background:#fff;font:inherit; }.leftovers-add-fields input:focus,.leftovers-add-fields select:focus { border-color:#20551a;box-shadow:0 0 0 3px rgba(32,85,26,.1); }.leftovers-add-modal footer { display:flex;padding:12px 18px;justify-content:flex-end;gap:8px;border-top:1px solid var(--line);background:#fff; }
.leftovers-stock-card>header>small { flex:0 0 auto;color:#5d715b;font-size:.61rem; }.leftovers-container-component { grid-template-columns:minmax(0,1fr) auto; }.leftovers-container-component>span { padding:5px 8px;border-radius:8px;color:#264f25;background:#edf4eb;font-size:.7rem;font-weight:850;white-space:nowrap; }.leftovers-use-container { margin:10px 12px 6px; }.leftovers-use-container .button { width:100%;min-height:42px;gap:7px; }.leftovers-container-settings { margin:0 12px 12px;border:1px solid #e0ddd7;border-radius:10px;background:#faf9f7; }.leftovers-container-settings>summary { min-height:38px;padding:8px 10px;color:#657064;cursor:pointer;font-size:.66rem;font-weight:800;list-style-position:inside; }.leftovers-container-settings[open]>summary { border-bottom:1px solid #e5e1da; }.leftovers-container-settings>div { display:grid;padding:8px;gap:8px; }.leftovers-component-editor { display:grid;padding:8px;border:1px solid #e1ded8;border-radius:9px;grid-template-columns:minmax(110px,1fr) auto auto;align-items:center;gap:6px;background:#fff; }.leftovers-component-editor>strong { overflow:hidden;font-size:.68rem;text-overflow:ellipsis;white-space:nowrap; }.leftovers-component-editor>form { display:flex;margin:0;align-items:center;gap:5px; }.leftovers-component-editor input,.leftovers-component-editor select { width:82px;min-height:33px;padding:5px 7px;border:1px solid #d6d9d2;border-radius:8px;background:#fff;font:inherit;font-size:.65rem; }.leftovers-component-editor select { width:105px; }.leftovers-component-editor form:first-of-type button { min-height:33px;padding:0 8px;border:1px solid #b9cbb7;border-radius:8px;color:#20551a;background:#fff;cursor:pointer;font-size:.61rem;font-weight:800; }.leftovers-container-settings .leftovers-stock-note { margin:0;padding-top:8px;border-top:1px solid #e5e1da; }.leftovers-container-settings .leftovers-container-drop-hint { border-radius:9px; }
@media (max-width:820px) { .leftovers-container-component { grid-template-columns:minmax(0,1fr) auto; }.leftovers-container-component>form:first-of-type { grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr auto; }.leftovers-container-component input,.leftovers-container-component select { width:100%; }.leftovers-recipe[draggable="true"] { cursor:default; } }
@media (max-width:520px) { .leftovers-heading { padding-inline:4px; }.leftovers-total { min-width:82px;padding-inline:9px; }.leftovers-recipe { grid-template-columns:minmax(0,1fr); }.leftovers-recipe-actions { justify-content:space-between; }.leftovers-container-components,.leftovers-stock-note { margin-inline:8px; }.leftovers-component-editor { grid-template-columns:minmax(0,1fr) auto; }.leftovers-component-editor>form:first-of-type { grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr auto; }.leftovers-component-editor input,.leftovers-component-editor select { width:100%; }.leftovers-add-fields>div { grid-template-columns:1fr; }.leftovers-add-modal footer .button { flex:1; } }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.heading-actions { display: flex; align-items: center; gap: 10px; }
.recipe-export-button{gap:8px}.recipe-export-icon-button{display:grid;width:44px;min-width:44px;height:44px;padding:0;place-content:center}.recipe-export-icon-button .recipe-export-icon{width:19px;height:19px}.recipe-export-icon{display:block;width:16px;height:16px;flex:0 0 auto;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3v12m0 0 5-5m-5 5-5-5M5 20h14' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3v12m0 0 5-5m-5 5-5-5M5 20h14' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat}
.page-heading h1, .editor-card h1 { margin: 6px 0 8px; font-family: Georgia, serif; font-size: clamp(2.35rem, 6vw, 4rem); font-weight: 500; letter-spacing: -.035em; line-height: 1.05; }
.search-form { display: flex; margin: 34px 0 20px; gap: 10px; }
.search-autocomplete { position: relative; width: min(100%, 440px); }
.search-form input {
    width: 100%;
    height: 48px;
    padding: 0 15px;
    border: 1px solid var(--line);
    border-radius: 11px;
    outline: 0;
    background: #fff;
}
.search-form input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(189, 104, 72, .12); }
.search-suggestions {
    position: absolute;
    z-index: 20;
    top: calc(100% + 6px);
    right: 0;
    left: 0;
    overflow: hidden;
    max-height: 360px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 18px 45px rgba(49, 39, 28, .15);
    overflow-y: auto;
}
.search-suggestions[hidden] { display: none; }
.search-suggestion { display: block; min-width: 0; padding: 13px 15px; border-bottom: 1px solid #eee9e3; color: var(--ink); background: #fff; text-decoration: none; }
.search-suggestion:last-child { border-bottom: 0; }
.search-suggestion:hover,.search-suggestion:focus-visible { outline: 0; background: var(--canvas); }
.search-suggestion > span { display: grid; min-width: 0; gap: 3px; }
.search-suggestion strong,.search-suggestion small { display: block; min-width: 0; overflow: hidden; margin: 0; text-overflow: ellipsis; white-space: nowrap; }
.search-suggestion strong { font-size: .82rem; line-height: 1.35; }
.search-suggestion small { color: var(--muted); font-size: .72rem; font-weight: 600; line-height: 1.4; }
.suggestion-group-heading { display: block; padding: 8px 15px 6px; border-bottom: 1px solid #eee9e3; color: var(--muted); background: #faf8f5; font-size: .68rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.suggestion-group + .suggestion-group { border-top: 3px solid #f1ece6; }
.suggestion-group .suggestion-group-heading { color: var(--accent-dark); background: #f8f4ef; }
.grouped-recipes-editor .suggestion-group .suggestion-item { grid-template-columns: minmax(0, 1fr); gap: 3px; }
.grouped-recipes-editor .suggestion-group .suggestion-format { grid-column: 1; }
.suggestion-item { display: grid; width: 100%; padding: 13px 15px; border: 0; border-bottom: 1px solid #eee9e3; color: var(--ink); background: #fff; grid-template-columns: 1fr auto; gap: 3px 16px; text-align: left; cursor: pointer; }
.suggestion-item:last-child { border-bottom: 0; }
.suggestion-item:hover, .suggestion-item.is-active { background: var(--canvas); }
.suggestion-item strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.suggestion-format { color: var(--accent-dark); font-size: .8rem; font-weight: 750; }
.suggestion-provider { overflow: hidden; color: var(--muted); font-size: .78rem; grid-column: 1 / -1; text-overflow: ellipsis; white-space: nowrap; }
.suggestion-empty { margin: 0; padding: 15px; color: var(--muted); font-size: .86rem; }
.supplier-autocomplete { position: relative; margin-bottom: 20px; }
.form-stack .supplier-autocomplete > input[type="text"] { margin-bottom: 0; }
.supplier-suggestions { top: calc(100% + 6px); }
.supplier-suggestions .suggestion-item { display: block; }
.search-status { min-height: 21px; margin: -10px 0 14px; color: var(--muted); font-size: .82rem; }
.button-secondary { border: 1px solid var(--line); color: var(--ink); background: #fff; }
.table-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.data-table { width: 100%; }
.table-row { display: grid; min-height: 67px; padding: 0 20px; border-bottom: 1px solid #eee9e3; grid-template-columns: 1.25fr 1fr .7fr 1fr 1fr 140px; align-items: center; gap: 18px; font-size: .9rem; }
.table-row:last-child { border-bottom: 0; }
.table-row > span { min-width: 0; justify-self: stretch; text-align: left; }
.table-head { min-height: 48px; color: var(--muted); background: #faf8f5; font-size: .72rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.cell-name { display: grid; font-weight: 750; gap: 3px; }
.cell-name small { color: var(--muted); font-size: .65rem; font-weight: 600; }
.row-actions { display: flex; align-items: center; justify-content: flex-start; gap: 12px; }
.row-actions form { margin: 0; }
.text-action { padding: 3px 0; border: 0; color: var(--accent-dark); background: none; cursor: pointer; font-size: .84rem; font-weight: 750; text-decoration: none; }
.danger-action { color: #a04433; }
.compact-empty { margin-top: 20px; }
.recipe-table .table-row { grid-template-columns: 1.5fr 1fr .7fr 1fr 140px; }
.cookbook-table .table-row { grid-template-columns: 1.25fr 1fr 1fr .8fr .65fr .65fr 140px; }
.recipes-overview-page { width: min(100% - 40px, 1480px); }
.recipes-overview-grid { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); align-items: start; gap: 18px; }
.recipes-overview-panel { overflow: hidden; border: 1px solid rgba(126,103,76,.2); border-radius: 18px; background: linear-gradient(145deg,rgba(255,255,255,.94),rgba(250,246,240,.88)); box-shadow: 0 16px 38px rgba(67,49,31,.08),inset 0 1px 0 rgba(255,255,255,.92); }
.recipes-overview-panel > header { display: flex; min-height: 96px; padding: 18px 20px; border-bottom: 1px solid rgba(126,103,76,.14); align-items: center; justify-content: space-between; gap: 16px; background: rgba(255,255,255,.5); }
.recipes-overview-panel > header > div { min-width: 0; }
.recipes-overview-panel > header .button { flex: 0 0 auto; white-space: nowrap; }
.recipes-overview-panel > header h2 { margin: 3px 0; font-family: Georgia,serif; font-size: clamp(1.3rem,2vw,1.75rem); font-weight: 500; letter-spacing: -.025em; }
.recipes-overview-panel > header small { color: var(--muted); font-size: .72rem; }
.recipe-base-table .table-row { box-sizing: border-box; width: 100%; grid-template-columns: minmax(145px,1fr) 78px 78px 120px; padding: 0 12px; gap: 8px; }
.recipe-output-table .table-row { box-sizing: border-box; width: 100%; grid-template-columns: minmax(140px,1.15fr) 84px minmax(100px,.8fr) 120px; padding: 0 12px; gap: 8px; }
.recipe-base-table .table-row:not(.table-head),.recipe-output-table .table-row:not(.table-head) { min-height: 74px; }
.recipe-base-table .row-actions,.recipe-output-table .row-actions { min-width: 0; flex-wrap: nowrap; gap: 8px; white-space: nowrap; }
.recipe-kind { display: inline-flex; width: fit-content; padding: 5px 8px; border: 1px solid rgba(79,118,91,.18); border-radius: 999px; color: #3f674a; background: rgba(226,239,228,.7); font-size: .66rem; font-weight: 800; }
.recipe-kind-agrupacion { border-color: rgba(188,111,62,.2); color: #8d4d26; background: rgba(250,229,211,.72); }
.recipes-panel-empty { display: grid; min-height: 190px; padding: 34px 24px; place-content: center; gap: 6px; color: var(--muted); text-align: center; }
.recipes-panel-empty strong { color: var(--ink); font-family: Georgia,serif; font-size: 1.15rem; font-weight: 500; }
.recipes-panel-empty span { max-width: 320px; font-size: .8rem; line-height: 1.45; }
.recipe-library { overflow: hidden; border: 1px solid rgba(126,103,76,.2); border-radius: 20px; background: linear-gradient(145deg,rgba(255,255,255,.96),rgba(250,246,240,.9)); box-shadow: 0 16px 38px rgba(67,49,31,.08),inset 0 1px 0 rgba(255,255,255,.94); }
.recipe-library > header { display: flex; min-height: 70px; padding: 11px 16px; border-bottom: 1px solid rgba(126,103,76,.14); align-items: center; justify-content: space-between; gap: 14px; background: rgba(255,255,255,.52); }
.recipe-library-title-row { display:flex;align-items:baseline;gap:9px; }
.recipe-library > header h2 { margin: 0; font-family: Georgia,serif; font-size: clamp(1.15rem,1.7vw,1.4rem); font-weight: 500; }
.recipe-library > header small { color: var(--muted); font-size: .72rem; }
.recipe-library-filters { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.recipe-library-filters button { min-height: 36px; padding: 7px 11px; border: 1px solid rgba(87,112,90,.18); border-radius: 999px; color: #4f6755; background: rgba(255,255,255,.72); cursor: pointer; font: inherit; font-size: .67rem; font-weight: 800; }
.recipe-library-filters button.is-active { border-color: #527a5c; color: #fff; background: #527a5c; box-shadow: 0 5px 12px rgba(82,122,92,.18); }
.recipe-library-grid { display: grid; padding: 16px; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.recipe-library-card { display: grid; min-width: 0; min-height: 180px; overflow: hidden; border: 1px solid rgba(126,103,76,.17); border-radius: 16px; background: rgba(255,255,255,.88); box-shadow: 0 8px 20px rgba(67,49,31,.05); cursor: pointer; grid-template-rows: 1fr auto; transition: border-color .18s ease,box-shadow .18s ease,transform .18s ease; }
.recipe-library-card[hidden],.recipe-hierarchy-item[hidden],.recipe-library-empty[hidden],.recipe-create-choices[hidden],.recipe-adapt-picker[hidden],.order-recipe-use-picker[hidden],[data-recipe-picker][hidden] { display: none; }
.recipe-library-card:hover,.recipe-library-card:focus-visible { border-color: rgba(82,122,92,.5); outline: 0; box-shadow: 0 12px 28px rgba(67,49,31,.1); transform: translateY(-2px); }
.recipe-library-card-main { display: grid; min-width: 0; padding: 16px; align-content: start; gap: 7px; }
.recipe-library-card h3,.recipe-library-card p { margin: 0; overflow-wrap: anywhere; }
.recipe-library-card h3 { font-family: Georgia,serif; font-size: 1.05rem; font-weight: 500; line-height: 1.25; }
.recipe-library-card p { color: #665d53; font-size: .72rem; font-weight: 700; line-height: 1.4; }
.recipe-library-card small { color: var(--muted); font-size: .65rem; font-weight: 650; }
.recipe-library-card footer { display: flex; min-height: 43px; padding: 9px 16px; border-top: 1px solid rgba(126,103,76,.12); align-items: center; gap: 12px; background: rgba(248,246,242,.72); }
.recipe-library-card footer form { margin: 0; }
.recipe-kind-original { border-color: rgba(79,118,91,.18); color: #3f674a; background: rgba(226,239,228,.7); }
.recipe-kind-presentacion { border-color: rgba(87,107,149,.2); color: #485f8a; background: rgba(228,235,249,.76); }
.recipe-kind-conjunto { border-color: rgba(188,111,62,.2); color: #8d4d26; background: rgba(250,229,211,.72); }
.recipe-library-empty { margin: 0; padding: 34px; color: var(--muted); text-align: center; }
.recipe-hierarchy-list { display: grid; padding: 14px; gap: 9px; }
.recipe-hierarchy-item { overflow: hidden; border: 1px solid rgba(126,103,76,.17); border-radius: 15px; background: rgba(255,255,255,.88); box-shadow: 0 6px 18px rgba(67,49,31,.045); }
.recipe-hierarchy-item > summary { display: grid; min-height: 78px; padding: 13px 15px; grid-template-columns: auto minmax(0,1fr) auto auto 28px; align-items: center; gap: 12px; cursor: pointer; list-style: none; }
.recipe-hierarchy-item > summary::-webkit-details-marker { display: none; }
.recipe-hierarchy-item > summary:hover { background: rgba(240,246,241,.55); }
.recipe-hierarchy-item.has-integrity-warning { border-color:rgba(190,115,55,.5); }
.recipe-hierarchy-name { display: grid; min-width: 0; gap: 3px; }
.recipe-hierarchy-item.has-integrity-warning .recipe-hierarchy-name::after { content:'!  Requiere revisión';display:inline-flex;width:max-content;max-width:100%;margin-top:3px;padding:4px 8px;border:1px solid rgba(190,115,55,.3);border-radius:999px;align-items:center;color:#8c452b;background:#fff7ed;font-size:.62rem;font-weight:850;line-height:1.25; }
.recipe-hierarchy-name strong { overflow: hidden; font-family: Georgia,serif; font-size: 1.05rem; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.recipe-hierarchy-name small,.recipe-hierarchy-counts { color: var(--muted); font-size: .67rem; font-weight: 700; }
.recipe-hierarchy-counts { white-space: nowrap; }
.recipe-hierarchy-chevron { display: grid; width: 28px; height: 28px; border-radius: 50%; place-items: center; color: #52705a; background: #edf4ee; font-size: 1rem; transition: transform .25s ease; }
.recipe-hierarchy-item[open] .recipe-hierarchy-chevron { transform: rotate(180deg); }
.recipe-hierarchy-body { display: grid; padding: 14px 15px; border-top: 1px solid rgba(126,103,76,.12); grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; background: rgba(248,246,242,.58); }
.recipe-integrity-details { grid-column:1/-1;padding:11px 13px;border:1px solid rgba(190,115,55,.32);border-radius:11px;color:#7f3f29;background:#fff7ed;font-size:.7rem;line-height:1.45; }
.recipe-integrity-details strong { display:block;margin-bottom:4px; }
.recipe-integrity-details ul { margin:0;padding-left:18px; }
.recipe-hierarchy-body > section { min-width: 0; padding: 13px; border: 1px solid rgba(126,103,76,.13); border-radius: 12px; background: rgba(255,255,255,.82); }
.recipe-hierarchy-body h3 { margin: 0 0 3px; font-family: Georgia,serif; font-size: .98rem; font-weight: 500; }
.recipe-hierarchy-body section > p { margin: 0 0 10px; color: var(--muted); font-size: .66rem; line-height: 1.45; }
.recipe-hierarchy-empty { display: block; padding: 11px; border: 1px dashed rgba(126,103,76,.2); border-radius: 9px; color: var(--muted); font-size: .68rem; }
.recipe-hierarchy-rows { display: grid; gap: 6px; }
.recipe-hierarchy-rows article { display: flex; min-height: 48px; padding: 8px 9px; border: 1px solid rgba(126,103,76,.11); border-radius: 9px; align-items: center; justify-content: space-between; gap: 10px; background: #fff; }
.recipe-hierarchy-rows article > span:first-child { display: grid; min-width: 0; gap: 2px; }
.recipe-hierarchy-rows strong { overflow-wrap: anywhere; font-size: .74rem; }
.recipe-hierarchy-rows small { color: var(--muted); font-size: .62rem; }
.recipe-component-sortable article { display:grid;grid-template-columns:auto minmax(0,1fr) auto;justify-content:stretch; }
.recipe-component-title { display:grid;min-width:0;gap:2px; }
.recipe-component-sortable article { transition: border-color .18s ease,box-shadow .18s ease,opacity .18s ease; }
.recipe-component-sortable article.is-dragging { opacity:.42;border-color:rgba(202,104,68,.45);box-shadow:0 8px 20px rgba(72,51,35,.12); }
.recipe-component-actions { display:flex;flex:0 0 auto;align-items:center;justify-content:flex-end;gap:7px; }
.recipe-component-sortable article > .recipe-component-order-controls { display:flex;align-items:center;gap:4px; }
.recipe-component-order-controls button { display:grid;width:31px;height:31px;padding:0;border:1px solid rgba(82,112,90,.17);border-radius:9px;place-items:center;color:#46614d;background:#f5f8f5;box-shadow:none;cursor:pointer;font:inherit;font-size:.78rem;font-weight:850;touch-action:manipulation; }
.recipe-component-order-controls button[data-component-drag-handle] { cursor:grab;font-size:1rem;touch-action:none; }
.recipe-component-order-controls button[data-component-drag-handle]:active { cursor:grabbing; }
.is-reordering-components,.is-reordering-components body { cursor:grabbing;user-select:none; }
.recipe-component-order-controls button:hover,.recipe-component-order-controls button:focus-visible { border-color:rgba(82,112,90,.45);outline:0;background:#ebf2ec;box-shadow:0 0 0 3px rgba(82,122,92,.08);transform:none; }
.recipe-component-order-controls button:disabled { opacity:.32;cursor:not-allowed; }
.recipe-component-sortable.is-saving .recipe-component-order-controls { opacity:.65; }
.recipe-component-order-status { min-height:1em;text-align:right; }
.recipe-component-order-status.is-error { color:#963d35; }
.recipe-membership-list { display: flex; flex-wrap: wrap; gap: 6px; }
.recipe-membership-list a { display: inline-flex; min-height: 34px; padding: 7px 9px; border: 1px solid rgba(82,112,90,.18); border-radius: 9px; align-items: center; gap: 7px; color: #315b3a; background: #f2f7f3; font-size: .7rem; font-weight: 800; text-decoration: none; }
.recipe-hierarchy-item > footer { display: flex; min-height: 50px; padding: 9px 15px; border-top: 1px solid rgba(126,103,76,.12); align-items: center; justify-content: flex-end; gap: 12px; background: #fff; }
.recipe-hierarchy-item > footer form,.recipe-hierarchy-rows form { margin: 0; }
.recipe-action-icons { display:flex;align-items:center;justify-content:flex-end;gap:7px; }
.recipe-summary-actions { position:relative;z-index:2;cursor:default; }
.recipe-action-icons form { display:flex;margin:0; }
.recipe-action-icon { display:grid;width:36px;height:36px;padding:0;border:1px solid rgba(82,112,90,.2);border-radius:11px;place-items:center;color:#315b3a;background:linear-gradient(145deg,#fff,#f1f5f1);box-shadow:inset 0 1px 0 #fff,0 4px 10px rgba(52,65,52,.07);cursor:pointer;transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease; }
.recipe-action-icon svg { width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round; }
.recipe-action-icon.is-danger { border-color:rgba(154,57,49,.18);color:#963d35;background:linear-gradient(145deg,#fff,#fbf0ef); }
.recipe-action-icon.is-disabled { opacity:.5;cursor:help;filter:grayscale(.35);box-shadow:none; }
.recipe-action-icon:hover,.recipe-action-icon:focus-visible { border-color:rgba(82,112,90,.55);outline:0;box-shadow:0 0 0 3px rgba(82,122,92,.1),0 7px 15px rgba(52,65,52,.1);transform:translateY(-1px); }
.recipe-action-icon.is-danger:hover,.recipe-action-icon.is-danger:focus-visible { border-color:rgba(154,57,49,.48);box-shadow:0 0 0 3px rgba(154,57,49,.08),0 7px 15px rgba(90,45,40,.08); }
.recipe-editor-modal { box-sizing:border-box;width:min(1180px,calc(100vw - 24px));height:min(920px,calc(100dvh - 24px));padding:0;overflow:hidden;border:0;border-radius:19px;background:#f8f6f2;box-shadow:0 28px 80px rgba(35,29,23,.3); }
.recipe-editor-modal::backdrop { background:rgba(36,31,26,.5);backdrop-filter:blur(3px); }
.recipe-editor-modal-card { display:grid;height:100%;grid-template-rows:auto minmax(0,1fr); }
.recipe-editor-modal-card>header { display:flex;min-height:74px;padding:14px 17px;border-bottom:1px solid rgba(117,105,91,.14);align-items:center;justify-content:space-between;gap:14px;background:#fff; }
.recipe-editor-modal-card>header h2 { margin:2px 0 0;font-family:Georgia,serif;font-size:clamp(1.2rem,2vw,1.65rem);font-weight:500; }
.recipe-editor-modal iframe { width:100%;height:100%;border:0;background:#f8f6f2; }
.recipe-editor-loading { display:grid;grid-row:2;grid-column:1;place-items:center;color:var(--muted);font-size:.75rem;font-weight:750; }
.recipe-editor-loading[hidden] { display:none; }
.recipe-editor-modal iframe { grid-row:2;grid-column:1; }
.recipe-modal-page { min-height:100%;background:#f8f6f2; }
.recipe-modal-page .recipe-form-shell { width:min(100% - 24px,1080px);margin:0 auto;padding:14px 0 24px; }
.recipe-modal-page .editor-card { margin:0;box-shadow:none; }
.recipe-modal-page .recipe-editor > .form-actions { position:sticky;z-index:12;bottom:0;margin:18px -1px -1px;padding:12px clamp(14px,2.5vw,24px) calc(14px + env(safe-area-inset-bottom,0px));border:1px solid rgba(117,105,91,.12);border-radius:14px 14px 0 0;background:rgba(255,255,255,.92);box-shadow:0 -12px 30px rgba(49,39,28,.09);-webkit-backdrop-filter:blur(16px) saturate(130%);backdrop-filter:blur(16px) saturate(130%); }
.recipe-combination-guide { display: grid; margin: 20px 0 24px; padding: 0; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; list-style: none; }
.recipe-combination-guide li { display: flex; min-height: 48px; padding: 9px 10px; border: 1px solid rgba(126,103,76,.15); border-radius: 11px; align-items: center; gap: 8px; color: var(--muted); background: #faf8f5; font-size: .7rem; }
.recipe-combination-guide li > span,.recipe-guide-heading > span { display: grid; width: 26px; height: 26px; flex: 0 0 auto; border-radius: 50%; place-items: center; color: #fff; background: #8b938b; font-size: .68rem; font-weight: 850; }
.recipe-combination-guide li.is-current { border-color: rgba(82,112,90,.3); color: #315b3a; background: #eef5ef; }
.recipe-combination-guide li.is-current > span,.recipe-combination-guide li.is-complete > span,.recipe-guide-heading > span { background: #527a5c; }
.recipe-guide-heading { display: flex; margin: 4px 0 13px; align-items: center; gap: 9px; }
.recipe-guide-heading > div { display: grid; min-width: 0; gap: 4px; }
.recipe-guide-heading strong { display: block; font-family: Georgia,serif; font-size: 1rem; font-weight: 500; line-height: 1.22; }
.form-stack .recipe-guide-heading small { display: block; margin: 0; color: var(--muted); font-size: .66rem; line-height: 1.45; }
.recipe-guide-heading-primary { margin: 6px 0 18px; }
.recipe-guide-section { margin: 22px 0; padding: 16px; border: 1px solid rgba(82,112,90,.18); border-radius: 14px; background: rgba(241,247,242,.55); }
.recipe-guide-section-heading { display: flex; margin-bottom: 14px; align-items: center; justify-content: space-between; gap: 18px; }
.recipe-guide-section-heading .recipe-guide-heading { margin: 0; }
.recipe-guide-section-heading .button { flex: 0 0 auto; white-space: nowrap; }
.order-modal.recipe-create-modal { box-sizing: border-box; width: min(760px,calc(100vw - 24px)); max-height: calc(100dvh - 24px); }
.order-modal.recipe-create-modal .order-modal-card { width: 100%; max-height: calc(100dvh - 24px); overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; }
.recipe-create-choices { display: grid; margin-top: 20px; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 11px; }
.recipe-create-choices > a,.recipe-create-choices > button { display: grid; min-height: 296px; padding: 14px; border: 1px solid rgba(126,103,76,.2); border-radius: 19px; align-content: start; gap: 8px; color: var(--ink); background: linear-gradient(145deg,#fff,#faf7f2); cursor: pointer; text-align: left; text-decoration: none; font: inherit; transition: border-color .18s ease,box-shadow .18s ease,transform .18s ease; }
.recipe-create-choices > a:hover,.recipe-create-choices > a:focus-visible,.recipe-create-choices > button:hover,.recipe-create-choices > button:focus-visible { border-color: #71977a; outline: 0; background: #f0f6f1; box-shadow: 0 9px 22px rgba(79,118,91,.13); transform: translateY(-2px); }
.recipe-create-choice-visual { display: grid; width: 100%; min-height: 128px; margin-bottom: 3px; border: 1px solid rgba(82,122,92,.12); border-radius: 17px; place-items: center; color: #527a5c; background: radial-gradient(circle at 75% 22%,rgba(211,139,83,.13),transparent 32%),linear-gradient(145deg,rgba(240,247,241,.96),rgba(255,252,247,.88)); overflow: hidden; }
.recipe-create-choice-icon { display:block;width:min(142px,82%);height:116px;object-fit:contain;filter:drop-shadow(0 5px 6px rgba(50,67,53,.12)); }
.recipe-create-choices > a:hover .recipe-create-choice-icon,.recipe-create-choices > a:focus-visible .recipe-create-choice-icon,.recipe-create-choices > button:hover .recipe-create-choice-icon,.recipe-create-choices > button:focus-visible .recipe-create-choice-icon { transform: scale(1.035); }
.recipe-create-choice-icon { transition: transform .18s ease; }
.recipe-create-choices strong { font-family: Georgia,serif; font-size: 1.05rem; font-weight: 500; line-height: 1.25; }
.recipe-create-choices > a > span:not(.recipe-create-choice-visual),.recipe-create-choices > button > span:not(.recipe-create-choice-visual) { color: #554d44; font-size: .78rem; font-weight: 700; line-height: 1.45; }
.recipe-create-choices small { color: var(--muted); font-size: .67rem; line-height: 1.4; }
.recipe-adapt-picker { margin-top: 18px; }
.recipe-adapt-picker h3 { margin: 16px 0 4px; font-family: Georgia,serif; font-size: 1.15rem; font-weight: 500; }
.recipe-adapt-picker > p,.order-recipe-use-picker > p { margin: 0; color: var(--muted); font-size: .76rem; line-height: 1.5; }
.recipe-adapt-back { padding: 5px 0; border: 0; color: var(--accent-dark); background: transparent; cursor: pointer; font: inherit; font-size: .74rem; font-weight: 800; }
.order-recipe-option { display: block; text-decoration: none; }
.order-recipe-use-picker { margin-top: 18px; }
.order-recipe-use-options { display: grid; margin-top: 12px; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; }
.order-recipe-use-options .order-type-option { min-height: 112px; }
.order-component-add-recipe { border-color: rgba(82,122,92,.38)!important; color: #285332!important; background: rgba(230,241,232,.76)!important; }

.form-shell { width: min(100% - 40px, 720px); margin: 0 auto; padding: 38px 0 80px; }
.form-shell > .app-navigation { position: relative; left: 50%; width: min(calc(100vw - 40px), 1180px); transform: translateX(-50%); }
.menu-return { margin-bottom: 18px; }
.editor-card { padding: clamp(26px, 6vw, 52px); border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.ingredient-form { margin-top: 36px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field-group { display: flex; min-width: 0; flex-direction: column; }
.form-stack select {
    width: 100%;
    height: 52px;
    margin: 0 0 20px;
    padding: 0 42px 0 15px;
    border: 1px solid var(--line);
    border-radius: 11px;
    outline: 0;
    color: var(--ink);
    background: #fff;
}
.form-stack textarea {
    width: 100%;
    margin: 0 0 20px;
    padding: 13px 15px;
    border: 1px solid var(--line);
    border-radius: 11px;
    outline: 0;
    resize: vertical;
    color: var(--ink);
    background: #fff;
}
.form-stack textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(189, 104, 72, .12); }
.form-stack select:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(189, 104, 72, .12); }
.form-stack .field-error { margin: -13px 0 18px; color: var(--danger); font-weight: 650; }
.optional { color: var(--muted); font-size: .75rem; font-weight: 500; }
.form-actions { display: flex; margin-top: 12px; align-items: center; justify-content: flex-end; gap: 10px; }
.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; }

.history-card { margin-top: 24px; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.history-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.history-heading h2 { margin: 5px 0 0; font-family: Georgia, serif; font-size: 2rem; font-weight: 500; }
.history-count { color: var(--muted); font-size: .82rem; }
.collapsible-summary { position: relative; padding: clamp(22px, 4vw, 30px) clamp(26px, 5vw, 42px); padding-right: clamp(58px, 8vw, 78px); cursor: pointer; list-style: none; }
.collapsible-summary::-webkit-details-marker { display: none; }
.collapsible-summary::after { content: '↓'; position: absolute; top: 50%; right: clamp(24px, 5vw, 40px); width: 30px; height: 30px; border-radius: 50%; color: var(--ink); background: var(--canvas); font-family: Arial, sans-serif; font-size: 1.05rem; line-height: 30px; text-align: center; transform: translateY(-50%); }
.collapsible-card[open] > .collapsible-summary::after { content: '↑'; }
.collapsible-summary:focus-visible { outline: 3px solid rgba(189, 104, 72, .3); outline-offset: -3px; border-radius: var(--radius); }
.collapsible-content { padding: 0 clamp(26px, 5vw, 42px) clamp(26px, 5vw, 42px); }
.collapsible-content > .muted { margin-top: 0; font-size: .9rem; }
.history-list { margin-top: 26px; border-top: 1px solid var(--line); }
.history-item { position: relative; display: grid; padding: 22px 0; border-bottom: 1px solid var(--line); grid-template-columns: 1fr auto; gap: 10px 22px; }
.history-item:last-child { border-bottom: 0; padding-bottom: 0; }
.history-meta strong, .history-meta span { display: block; }
.history-meta strong { font-size: .92rem; }
.history-meta span { margin-top: 2px; color: var(--muted); font-size: .8rem; }
.history-values { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 7px; }
.history-values span { padding: 5px 9px; border-radius: 7px; color: #59544d; background: var(--canvas); font-size: .78rem; }
.history-changes { margin: 0; color: var(--muted); font-size: .8rem; }
.history-item form { margin: 0; justify-self: end; }
.history-empty { margin: 24px 0 0; padding: 18px; border-radius: 10px; color: var(--muted); background: var(--canvas); text-align: center; }

.recipe-form-shell { width: min(100% - 40px, 980px); }
.recipe-instructions-editor { display:grid;gap:10px; }
.recipe-instructions-heading { display:flex;align-items:flex-end;justify-content:space-between;gap:12px; }
.recipe-instructions-heading h2 { margin:0;font-family:Georgia,serif;font-size:1.3rem;font-weight:500; }
.recipe-instructions-heading p { margin:3px 0 0;color:var(--muted);font-size:.78rem; }
.recipe-instruction-steps { display:grid;gap:9px; }
.recipe-list-add-row { display:flex;justify-content:flex-end; }
.recipe-list-add-row .button { min-width:170px; }
.recipe-instruction-step { overflow:hidden;border:1px solid var(--line);border-radius:11px;background:rgba(255,255,255,.58);box-shadow:inset 0 1px 0 rgba(255,255,255,.72); }
.recipe-instruction-step-heading { display:flex;min-height:40px;padding:6px 8px 6px 12px;border-bottom:1px solid var(--line);align-items:center;justify-content:space-between;gap:10px;background:rgba(247,244,239,.82); }
.recipe-instruction-step-heading > strong { color:#4f654f;font-size:.74rem;text-transform:uppercase;letter-spacing:.05em; }
.recipe-instruction-actions { display:flex;gap:4px; }
.recipe-instruction-actions button { display:grid;width:30px;height:28px;padding:0;border:1px solid #d8d1c8;border-radius:7px;place-items:center;color:#655e55;background:rgba(255,255,255,.82);cursor:pointer;font:inherit;font-size:.9rem;font-weight:850; }
.recipe-instruction-actions button.danger-action { color:#963d35;background:#f9e9e6; }
.recipe-instruction-actions button:disabled { opacity:.32;cursor:default; }
.recipe-instruction-step textarea { width:100%;min-height:84px;padding:11px;border:0;border-radius:0;resize:vertical;background:transparent;box-shadow:none; }
.conversion-fields { display: grid; grid-template-columns: 1fr; }
.conversion-fields > [hidden] { display: none; }
.recipe-weight-summary { display: grid; margin: 4px 0 8px; padding: 16px 18px; border: 1px solid #e5d8ca; border-radius: 12px; background: #f8f3ed; grid-template-columns: 1fr auto; align-items: center; gap: 3px 18px; }
.recipe-weight-summary span { color: var(--muted); font-size: .82rem; font-weight: 700; }
.recipe-weight-summary strong { font-size: 1.2rem; }
.recipe-weight-summary small { color: var(--muted); font-size: .76rem; grid-column: 1 / -1; }
.recipe-yield-guide { display:grid;margin:8px 0 12px;padding:18px;border:1px solid rgba(189,104,72,.2);border-radius:16px;background:linear-gradient(145deg,rgba(255,255,255,.94),rgba(248,241,235,.82));box-shadow:inset 0 1px 0 #fff,0 12px 28px rgba(78,57,40,.06);gap:14px; }
.recipe-name-guidance { display:grid;margin:-3px 0 2px;gap:5px;color:var(--muted);font-size:.69rem;line-height:1.45; }.recipe-name-guidance strong { display:block;padding:8px 10px;border:1px solid rgba(189,104,72,.24);border-radius:9px;color:#8d4b34;background:#fff7f1;font-size:.69rem;line-height:1.4; }.recipe-name-guidance strong[hidden] { display:none; }
.recipe-yield-guide>header { display:grid;gap:4px; }.recipe-yield-guide>header span { display:block;color:#a25338;font-size:.66rem;font-weight:850;line-height:1.3;letter-spacing:.08em;text-transform:uppercase; }.recipe-yield-guide>header h2 { margin:0;font-family:Georgia,serif;font-size:1.35rem;font-weight:500;line-height:1.2; }.recipe-yield-guide>header p { margin:0;color:var(--muted);font-size:.76rem;line-height:1.5; }
.recipe-yield-options { display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px; }.recipe-yield-options label { position:relative;display:grid;min-width:0;min-height:148px;padding:10px;border:1px solid #ddd4ca;border-radius:13px;grid-template-rows:54px auto 1fr;align-content:start;justify-items:center;text-align:center;background:rgba(255,255,255,.82);cursor:pointer;gap:6px;transition:border-color .16s ease,transform .16s ease,box-shadow .16s ease; }.recipe-yield-options label:hover { transform:translateY(-1px);border-color:#c69b87;box-shadow:0 8px 18px rgba(86,60,42,.08); }.recipe-yield-options label:has(input:checked) { border-color:#bd6848;background:#fff8f3;box-shadow:0 0 0 3px rgba(189,104,72,.1),inset 0 1px 0 #fff; }.recipe-yield-options input { position:absolute;opacity:0;pointer-events:none; }.recipe-yield-options strong,.recipe-yield-options small { display:block;min-width:0;max-width:100%;margin:0; }.recipe-yield-options strong { font-size:.73rem;line-height:1.3; }.recipe-yield-options small { color:var(--muted);font-size:.62rem;line-height:1.4; }
.yield-option-icon { display:block;width:68px;height:54px;object-fit:contain; }
.recipe-yield-panel { padding:14px;border:1px solid #e2d9cf;border-radius:13px;background:rgba(255,255,255,.76); }.recipe-yield-panel[hidden] { display:none; }.recipe-yield-panel fieldset { margin:0;padding:0;border:0; }.recipe-yield-panel legend { margin-bottom:9px;font-size:.74rem;font-weight:800; }.yield-shape-options { display:flex;margin-bottom:13px;flex-wrap:wrap;gap:8px; }.yield-shape-options button { display:flex;min-height:44px;padding:7px 11px;border:1px solid #ddd5cc;border-radius:10px;align-items:center;color:inherit;background:#fff;cursor:pointer;gap:8px;font:inherit; }.yield-shape-options button.is-selected { border-color:#537553;color:#315b32;background:#f1f7f0;box-shadow:0 0 0 2px rgba(49,91,50,.08); }.yield-shape-options button:focus-visible { outline:3px solid rgba(83,117,83,.22);outline-offset:2px; }.yield-shape-options strong { font-size:.7rem; }.yield-shape { display:block;border:2px solid currentColor;background:rgba(83,117,83,.08); }.yield-shape-round { width:25px;height:25px;border-radius:50%; }.yield-shape-square { width:24px;height:24px;border-radius:3px; }.yield-shape-rectangle { width:31px;height:21px;border-radius:3px; }
.recipe-yield-fields { display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px; }.recipe-yield-fields.is-compact { grid-template-columns:repeat(2,minmax(0,220px)); }.recipe-yield-fields label { display:grid;gap:5px; }.recipe-yield-fields label[hidden] { display:none; }.recipe-yield-fields label>span:first-child { color:#5d554d;font-size:.67rem;font-weight:800; }.recipe-yield-fields input,.recipe-yield-fields select { width:100%;height:44px;margin:0;padding:0 11px;border:1px solid #d9d1c7;border-radius:9px;background:#fff; }.input-with-suffix { display:grid;grid-template-columns:minmax(0,1fr) 36px;align-items:center; }.input-with-suffix input { border-radius:9px 0 0 9px; }.input-with-suffix b { display:grid;height:44px;border:1px solid #d9d1c7;border-left:0;border-radius:0 9px 9px 0;place-items:center;color:var(--muted);background:#f7f3ef;font-size:.72rem; }
.recipe-yield-panel>small { display:block;margin-top:8px;color:var(--muted);font-size:.65rem; }.recipe-yield-summary { margin:0;padding:10px 12px;border-radius:10px;color:#315b32;background:#edf5eb;font-size:.73rem;font-weight:750;line-height:1.45; }
@media(max-width:760px){.recipe-yield-guide{padding:14px}.recipe-yield-options{grid-template-columns:repeat(2,minmax(0,1fr))}.recipe-yield-options label{min-height:144px}.recipe-yield-fields{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:460px){.recipe-yield-options{grid-template-columns:1fr 1fr}.recipe-yield-options label{padding:10px 7px}.recipe-yield-fields,.recipe-yield-fields.is-compact{grid-template-columns:1fr}.yield-shape-options button{flex:1 1 90px;justify-content:center}}
.recipe-lines-heading { display: flex; margin: 18px 0 14px; align-items: flex-end; justify-content: space-between; gap: 20px; }
.recipe-lines-heading h2 { margin: 0 0 3px; font-family: Georgia, serif; font-size: 1.55rem; font-weight: 500; }
.recipe-lines-heading p { margin: 0; color: var(--muted); font-size: .84rem; }
.recipe-lines { display: flex; margin-bottom: 28px; flex-direction: column; gap: 10px; }
.recipe-line { position:relative;display:grid;padding:15px 15px 34px;border:1px solid var(--line);border-radius:13px;background:#fcfbf9;grid-template-columns:34px minmax(220px,1.6fr) minmax(100px,.55fr) minmax(110px,.6fr) minmax(78px,.45fr) 34px;align-items:end;gap:10px; }
.recipe-line.is-reordering { opacity: .35; border-color: #6f9477; }
.recipe-drag-ghost { position: fixed; z-index: 1000; margin: 0; pointer-events: none; opacity: .94; border-color: #6f9477; box-shadow: 0 16px 38px rgba(49, 39, 28, .2); }
.recipe-drag-handle { display: grid; width: 34px; height: 44px; padding: 0; border: 0; border-radius: 9px; align-self: end; color: #687168; background: #edf2ed; cursor: grab; font-size: 1.05rem; touch-action: none; place-items: center; }
.recipe-drag-handle:active { cursor: grabbing; }
.recipe-drag-handle:focus-visible { outline: 3px solid rgba(79, 118, 91, .24); outline-offset: 2px; }
.recipe-line label { display: block; margin: 0 0 6px; font-size: .75rem; font-weight: 750; }
.recipe-line input, .recipe-line select { height: 44px; margin: 0; }
.recipe-ingredient-autocomplete { position: relative; min-width: 0; }
.recipe-ingredient-suggestions { top: calc(100% + 6px); }
.autocomplete-selection-status { position: absolute; top: calc(100% + 4px); left: 2px; display: block; min-height: 16px; margin: 0; font-size: .7rem; }
.recipe-ingredient-autocomplete .autocomplete-selection-status { position:static;margin-top:5px;line-height:1.35; }
.selection-valid .recipe-ingredient-autocomplete input[type="text"] { border-color: #65a36a; box-shadow: 0 0 0 4px rgba(77, 151, 86, .13); }
.selection-valid .autocomplete-selection-status { color: #397143; }
.selection-invalid .recipe-ingredient-autocomplete input[type="text"] { border-color: #c55c58; box-shadow: 0 0 0 4px rgba(197, 92, 88, .13); }
.selection-invalid .autocomplete-selection-status { color: var(--danger); }
.recipe-line-cost { display: flex; min-height: 44px; padding: 4px 0; flex-direction: column; justify-content: center; }
.recipe-line-cost span { color: var(--muted); font-size: .7rem; }
.recipe-line-cost strong { font-size: .85rem; }
.recipe-line.weight-missing { border-color:rgba(190,115,55,.52);box-shadow:0 0 0 3px rgba(201,109,71,.08); }
.recipe-line.ingredient-inactive { border-color:rgba(190,115,55,.6);background:#fffaf4;box-shadow:0 0 0 3px rgba(201,109,71,.08); }
.inactive-ingredient-message { display:block;margin-top:5px;color:#9a4f30;font-size:.68rem;font-weight:750;line-height:1.35; }
.inactive-ingredient-message[hidden] { display:none; }
.recipe-line-weight-warning { color:#9a4f30;font-size:.68rem;font-weight:750;line-height:1.4;grid-column:2/-2; }
.recipe-line-weight-warning[hidden] { display:none; }
.grouped-recipes-editor{margin:6px 0 28px;padding:16px;border:1px solid rgba(117,105,91,.16);border-radius:16px;background:rgba(249,247,242,.72)}.grouped-recipes-editor .recipe-lines-heading{margin:0 0 14px}.grouped-recipes-editor>small{display:block;margin-top:10px;color:var(--muted);font-size:.72rem}.grouped-recipes-list{display:grid;gap:9px}.grouped-recipe-line{display:grid;padding:12px;border:1px solid var(--line);border-radius:12px;background:#fff;grid-template-columns:minmax(220px,1.5fr) minmax(100px,.55fr) minmax(110px,.6fr) 82px;align-items:start;gap:10px}.grouped-recipe-line>div{min-width:0}.grouped-recipe-line label{display:block;margin-bottom:6px;font-size:.75rem;font-weight:750}.grouped-recipe-line input,.grouped-recipe-line select{width:100%;height:44px;margin:0}.grouped-recipe-line .recipe-ingredient-autocomplete>small{display:block;min-height:16px;margin-top:3px;color:var(--muted);font-size:.66rem}.grouped-recipe-actions{display:flex;align-self:start;justify-content:flex-end;gap:6px;margin-top:25px}.grouped-recipe-actions .icon-button{flex:0 0 36px}.grouped-recipe-actions [data-preview-grouped-recipe]{color:var(--green-deep);background:rgba(59,117,92,.09)}
.grouped-recipe-line.is-component-only{grid-template-columns:minmax(0,1fr) 82px}.grouped-variant-editor{display:grid;padding:13px;border:1px solid rgba(117,105,91,.16);border-radius:14px;gap:9px;background:rgba(249,247,242,.72)}.grouped-variant-editor>div:first-child{display:grid;gap:3px}.form-stack .grouped-variant-editor>div:first-child>small{margin:0;color:var(--muted);font-size:.68rem}.grouped-variant-line{display:grid;padding:10px;border:1px solid rgba(117,105,91,.16);border-radius:11px;grid-template-columns:minmax(160px,1fr) minmax(92px,.38fr) minmax(105px,.42fr);align-items:end;gap:9px;background:rgba(255,255,255,.86)}.grouped-variant-line>span{display:grid;align-self:center;gap:2px}.grouped-variant-line>span>strong{font-size:.78rem}.form-stack .grouped-variant-line>span>small{margin:0;color:var(--muted);font-size:.61rem}.grouped-variant-line label{display:grid;margin:0;gap:4px;font-size:.64rem;font-weight:800}.grouped-variant-line input,.grouped-variant-line select{width:100%;height:40px;margin:0}
.grouped-recipe-preview-content{display:grid;gap:14px}.grouped-recipe-preview-heading{display:grid;padding:14px;border:1px solid rgba(117,105,91,.16);border-radius:14px;background:rgba(249,247,242,.76);gap:4px}.grouped-recipe-preview-heading strong{font-size:1rem}.grouped-recipe-preview-heading span,.grouped-recipe-preview-heading small{color:var(--muted)}.grouped-recipe-preview-section{display:grid;gap:8px}.grouped-recipe-preview-section h3{margin:0;font-size:.82rem}.grouped-recipe-preview-list{display:grid;margin:0;padding:0;list-style:none;gap:6px}.grouped-recipe-preview-list li{display:flex;justify-content:space-between;padding:9px 11px;border:1px solid rgba(117,105,91,.14);border-radius:11px;background:rgba(255,255,255,.82);gap:12px}.grouped-recipe-preview-list li span{display:grid;gap:2px}.grouped-recipe-preview-list li small{color:var(--muted)}.grouped-recipe-preview-list li b{white-space:nowrap}.grouped-recipe-preview-formats{display:flex;flex-wrap:wrap;gap:6px}.grouped-recipe-preview-formats span{display:grid;padding:8px 10px;border:1px solid rgba(117,105,91,.14);border-radius:10px;background:rgba(249,247,242,.7);gap:2px;font-size:.72rem}.grouped-recipe-preview-formats span.is-selected{border-color:rgba(59,117,92,.42);background:rgba(59,117,92,.1)}.grouped-recipe-preview-formats small{color:var(--muted)}
.variant-start-options{display:grid;padding:12px;border:1px solid rgba(117,105,91,.16);border-radius:14px;gap:8px;background:rgba(249,247,242,.72)}.variant-start-options legend{padding:0 5px;font-size:.72rem;font-weight:850}.variant-start-options>label{display:flex;margin:0;padding:8px;border-radius:10px;align-items:flex-start;gap:9px;background:#fff}.variant-start-options>label>input{width:auto;height:auto;margin:3px 0 0}.variant-start-options>label>span{display:grid;gap:2px}.variant-start-options>label strong{font-size:.72rem}.form-stack .variant-start-options>label small{margin:0;color:var(--muted);font-size:.62rem}.variant-start-options>select{margin:0 0 2px 27px;width:calc(100% - 27px)}
.grouped-variant-materials{display:grid;margin-top:12px;padding:13px;border:1px solid rgba(117,105,91,.16);border-radius:14px;gap:9px;background:rgba(249,247,242,.72)}
.grouped-variant-materials>header{display:flex;align-items:center;justify-content:space-between;gap:14px}.grouped-variant-materials>header>div{display:grid;gap:3px}.grouped-variant-materials>header strong{font-size:.78rem}.form-stack .grouped-variant-materials small{margin:0;color:var(--muted);font-size:.64rem;line-height:1.4}.grouped-variant-material-list{display:grid;gap:8px}.variant-material-line{position:relative;display:grid;padding:11px 50px 11px 11px;border:1px solid rgba(117,105,91,.16);border-radius:11px;grid-template-columns:90px 105px minmax(145px,1fr) 76px;align-items:end;gap:9px;background:rgba(255,255,255,.9)}.variant-material-line>.recipe-ingredient-autocomplete{grid-column:1/-1}.variant-material-line>label{display:grid;margin:0;gap:4px;font-size:.64rem;font-weight:800}.variant-material-line input,.variant-material-line select{width:100%;height:40px;margin:0}.variant-material-line>.icon-button{position:absolute;top:10px;right:10px;width:32px;height:32px}.variant-material-visibility{display:grid;min-height:40px;grid-template-columns:1fr 1fr;align-content:center;gap:3px 7px}.variant-material-visibility>span{color:var(--muted);font-size:.61rem;grid-column:1/-1}.variant-material-visibility label{display:flex;align-items:center;gap:4px;font-size:.61rem;font-weight:750}.variant-material-visibility input{width:15px;height:15px}.variant-material-line .recipe-line-cost{min-height:40px}
.icon-button { width: 34px; height: 44px; padding: 0; border: 0; border-radius: 9px; background: #f6ece8; cursor: pointer; font-size: 1.3rem; }
.recipe-total { display: flex; margin-top: 10px; padding: 18px; border-radius: 12px; align-items: center; justify-content: space-between; background: #f3eee7; }
.recipe-total span { color: var(--muted); font-size: .86rem; }
.recipe-total strong { font-size: 1.15rem; }
.standalone-error { margin-top: -12px !important; }
.mold-editor { display: grid; margin: 0 0 24px; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: #fcfbf9; gap: 14px; }
.mold-editor label { display: block; margin-bottom: 6px; font-size: .8rem; font-weight: 750; }
.mold-editor select, .mold-editor input { width: 100%; height: 46px; margin: 0; padding: 0 13px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.mold-editor small { display: block; margin-top: 6px; color: var(--muted); }
.visually-hidden-control { position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;padding:0!important;border:0!important;clip:rect(0 0 0 0)!important;white-space:nowrap!important; }
.preparation-choice-grid { display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px; }.preparation-choice-grid label { position:relative;display:grid;min-height:52px;margin:0;padding:8px;border:1px solid #ddd5cc;border-radius:10px;place-items:center;text-align:center;background:#fff;cursor:pointer; }.preparation-choice-grid input { position:absolute;opacity:0; }.preparation-choice-grid span { color:#554e47;font-size:.65rem;font-weight:780;line-height:1.3; }.preparation-choice-grid label:has(input:checked) { border-color:#537553;background:#f0f6ef;box-shadow:0 0 0 2px rgba(49,91,50,.08); }.preparation-choice-grid label:has(input:checked) span { color:#315b32; }
@media(max-width:760px){.preparation-choice-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.preparation-choice-grid label:first-child{grid-column:1/-1}}
.mold-measures { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.mold-measures[hidden], .mold-measures > [hidden] { display: none; }
.mold-error { margin: 0 !important; color: var(--danger) !important; }
.required-autocomplete.selection-valid input[type="text"] { border-color: #65a36a; box-shadow: 0 0 0 4px rgba(77, 151, 86, .13); }
.required-autocomplete.selection-invalid input[type="text"] { border-color: #c55c58; box-shadow: 0 0 0 4px rgba(197, 92, 88, .13); }
.required-autocomplete .autocomplete-selection-status { position: static; margin-top: 5px; color: var(--danger); }
.required-autocomplete .search-suggestions { top: 58px; }
.cookbook-preview { margin: 4px 0 10px; padding: 18px; border-radius: 12px; background: #f3eee7; }
.cookbook-preview-empty { color: var(--muted); text-align: center; }
.cookbook-preview [hidden] { display: none; }
.recipe-summary-grid { display: grid; margin-bottom: 16px; grid-template-columns: 1fr 1fr; gap: 12px; }
.recipe-summary-grid > div { display: flex; padding: 13px 15px; border-radius: 9px; align-items: center; justify-content: space-between; background: #fff; gap: 15px; }
.recipe-summary-grid span { color: var(--muted); font-size: .78rem; }

.scaling-card { background: #fdfbf8; }
.scaling-controls { display: grid; margin-top: 24px; grid-template-columns: 1fr 1fr; gap: 12px; }
.scaling-controls label { display: block; margin-bottom: 6px; font-size: .8rem; font-weight: 750; }
.scaling-controls input, .scaling-controls select { width: 100%; height: 48px; padding: 0 13px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.scale-summary { display: flex; margin: 18px 0; padding: 14px 16px; border-radius: 10px; justify-content: space-between; gap: 20px; background: #efe8de; font-size: .86rem; }
.scaled-lines { border-top: 1px solid var(--line); }
.scaled-line { display: flex; padding: 11px 0; border-bottom: 1px solid var(--line); align-items: center; justify-content: space-between; gap: 20px; font-size: .88rem; }
.scaled-line:last-child { border-bottom: 0; }
.history-recipe-lines { display: flex; flex-wrap: wrap; gap: 6px; grid-column: 1 / -1; }
.history-recipe-lines span { padding: 4px 8px; border-radius: 6px; color: var(--muted); background: var(--canvas); font-size: .76rem; }
.recipe-history-item { grid-template-columns: 1fr auto; }
.history-version-name { margin: 2px 0; font-family: Georgia, serif; font-size: 1.15rem; font-weight: 500; grid-column: 1 / -1; }
.history-instructions { margin: 2px 0; color: var(--muted); font-size: .82rem; white-space: normal; grid-column: 1 / -1; }

.production-page { height: 100vh; height: 100dvh; overflow: hidden; background: #f4f1ec; }
.production-header { display: grid; min-height: 68px; padding: 10px clamp(16px, 3vw, 34px); border-bottom: 1px solid var(--line); background: #fff; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px; }
.production-header > .button { justify-self: end; }
.production-header-title { display: flex; align-items: center; flex-direction: column; line-height: 1.2; }
.production-header-title strong { font-size: 1.05rem; }
.production-header-title span { color: var(--muted); font-size: .72rem; }
.production-board-page { height: 100dvh; margin: 0; overflow: hidden; color: var(--ink); background: #ebe7e0; }
.production-board-page { display: grid; grid-template-rows: auto minmax(0,1fr); }
.production-board-header { display: grid; min-height: 62px; padding: 8px 18px; border-bottom: 1px solid var(--line); grid-template-columns: 1fr auto auto 1fr; align-items: center; gap: 14px; background: #fff; }
.production-board-header > .button { justify-self: end; }.production-board-title { display: grid; text-align: center; }.production-board-title strong { font-family: Georgia,serif; font-size: 1.18rem; font-weight: 500; }.production-board-title span { color: var(--muted); font-size: .64rem; }
.production-board-main { display: grid; min-height: 0; grid-template-rows: auto minmax(0,1fr); }
.production-board-toolbar { display: flex; min-height: 66px; padding: 9px 14px; border-bottom: 1px solid #d8d2ca; align-items: center; gap: 10px; background: #f8f6f2; }
.production-toolbar-navigation{min-height:0;margin:0;flex-wrap:nowrap;gap:5px}.production-toolbar-navigation .button{width:38px;min-width:38px;min-height:38px;padding:0}
.production-board-toolbar nav,.production-view-toggle { display: flex; align-items: center; }.production-nav-button,.production-today,.production-view-toggle a { min-height: 38px; padding: 0 11px; border: 1px solid #d9d3ca; color: var(--ink); background: #fff; text-decoration: none; place-items: center; font-size: .72rem; font-weight: 800; }.production-nav-button { display: grid; min-width: 38px; padding: 0; font-size: 1.25rem; }.production-today { display: grid; border-right: 0; border-left: 0; }.production-view-toggle a:first-child { border-radius: 8px 0 0 8px; }.production-view-toggle a:last-child { border-left: 0; border-radius: 0 8px 8px 0; }.production-view-toggle a.is-active { border-color: #52755b; color: #fff; background: #52755b; }
.production-date-control { display: grid; gap: 2px; }.production-date-control span { color: var(--muted); font-size: .58rem; font-weight: 800; }.production-date-control input { min-height: 38px; padding: 4px 8px; border: 1px solid #d9d3ca; border-radius: 8px; background: #fff; font: inherit; font-size: .72rem; }
.production-period { display: grid; min-width: 145px; }.production-period strong { font-size: .78rem; }.production-period span { color: var(--muted); font-size: .62rem; }.production-board-search { min-width: 150px; margin-left: auto; flex: 1; max-width: 340px; }.production-board-search input { width: 100%; min-height: 40px; padding: 8px 11px; border: 1px solid #d9d3ca; border-radius: 9px; background: #fff; font: inherit; font-size: .75rem; }
.production-transfer-notice { padding: 7px 9px; border-radius: 7px; color: #315a3b; background: #e0eee3; font-size: .64rem; font-weight: 850; white-space: nowrap; }.production-picker-return { min-height: 38px; margin-left: auto; white-space: nowrap; font-size: .68rem; }
.production-board { display: flex; min-height: 0; padding: 12px; overflow-x: auto; overflow-y: hidden; align-items: stretch; gap: 10px; scroll-snap-type: x proximity; }
.production-board-column { display: grid; width: min(88vw,390px); min-width: min(88vw,390px); min-height: 0; overflow: hidden; border: 1px solid #d4cec5; border-radius: 13px; grid-template-rows: auto auto minmax(0,1fr); background: #f7f5f1; box-shadow: 0 5px 18px rgba(44,37,29,.06); scroll-snap-align: start; }.production-board-column.is-drop-target { border-color: #52815e; box-shadow: 0 0 0 3px rgba(82,129,94,.17); }.production-board-column.is-complete { border-color: #a9c6af; }
.production-column-header { display: flex; min-height: 54px; padding: 9px 11px; border-bottom: 1px solid #ddd7ce; align-items: center; justify-content: space-between; gap: 8px; background: #fff; }.production-column-header > div:first-child { display: grid; gap: 2px; }.production-column-header strong { font-size: .84rem; }.production-column-header span { color: var(--muted); font-size: .61rem; }.production-column-actions { display: flex; gap: 4px; }.production-column-actions button { min-height: 30px; padding: 0 7px; border: 0; border-radius: 7px; color: #44634b; background: #edf3ee; cursor: pointer; font: inherit; font-size: .62rem; font-weight: 800; }.production-column-actions button.is-danger { width: 30px; padding: 0; color: #983d34; background: #f7e3df; font-size: 1rem; }
.production-final-recipes { max-height: 42%; padding: 8px; border-bottom: 1px solid #ddd7ce; overflow-y: auto; background: #eeeae3; }.production-final-heading { display: flex; margin: 0 2px 6px; align-items: center; justify-content: space-between; }.production-final-heading strong { font-size: .67rem; text-transform: uppercase; letter-spacing: .06em; }.production-final-heading span { color: var(--muted); font-size: .58rem; }.production-final-recipe { margin-top: 5px; overflow: hidden; border: 1px solid #d6d0c7; border-radius: 8px; background: #fff; }.production-final-recipe > summary { display: grid; min-height: 43px; padding: 6px 8px; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 8px; cursor: pointer; }.production-final-recipe > summary > span { display: grid; min-width: 0; gap: 1px; }.production-final-recipe > summary strong { overflow: hidden; font-size: .72rem; text-overflow: ellipsis; white-space: nowrap; }.production-final-recipe > summary small { color: var(--muted); font-size: .57rem; }.production-final-recipe > summary b { color: #3f674a; font-size: .67rem; }.production-final-body { padding: 7px 8px; border-top: 1px solid #e5dfd7; }.production-final-formats { display: grid; margin-bottom: 7px; gap: 3px; }.production-final-formats span { color: #665f56; font-size: .61rem; }.production-final-ingredients { display: grid; gap: 3px; }.production-final-ingredients > div { display: flex; justify-content: space-between; gap: 8px; font-size: .63rem; }.production-final-ingredients strong { white-space: nowrap; }
.production-task-list { min-height: 0; padding: 8px; overflow-y: auto; }.production-task-card { margin-bottom: 7px; padding: 9px; border: 1px solid #ddd7ce; border-radius: 9px; background: #fff; box-shadow: 0 2px 8px rgba(44,37,29,.04); }.production-task-card[draggable="true"] { cursor: grab; }.production-task-card.is-dragging { opacity: .42; }.production-task-card.is-done { border-color: #b9d1be; background: #f0f6f1; }.production-task-card.has-warning { border-color: #dfb79b; }.production-task-top { display: grid; grid-template-columns: 20px 1fr auto; align-items: center; gap: 6px; }.production-task-top input { width: 17px; height: 17px; accent-color: #4f765b; }.production-task-top strong { color: #365b40; font-size: .7rem; }.production-task-top time { color: var(--muted); font-size: .58rem; text-transform: capitalize; }.production-task-card h3 { margin: 7px 0 2px; font-family: Georgia,serif; font-size: .96rem; font-weight: 500; }.production-task-product { margin: 0; color: #5e574f; font-size: .67rem; }.production-task-meta { display: flex; margin-top: 6px; flex-wrap: wrap; gap: 4px; }.production-task-meta span { padding: 3px 5px; border-radius: 5px; color: #526057; background: #edf1ed; font-size: .57rem; }.production-task-note,.production-task-allergy { margin: 6px 0 0; padding: 5px 6px; border-radius: 6px; color: #665e55; background: #f3efe9; font-size: .61rem; line-height: 1.35; }.production-task-allergy { color: #8c3d34; background: #f9e9e6; font-weight: 750; }.production-task-move { width: 100%; min-height: 32px; margin-top: 7px; padding: 4px 7px; border: 1px solid #d9d3ca; border-radius: 7px; background: #fff; font: inherit; font-size: .62rem; }.production-column-empty,.production-board-empty { margin: 18px 8px; color: var(--muted); font-size: .7rem; text-align: center; }.production-board-empty { display: grid; min-width: min(88vw,390px); border: 1px dashed #cfc8be; border-radius: 12px; place-items: center; background: rgba(255,255,255,.45); }
.production-group-modal .order-modal-card { width: min(92vw,470px); }
.production-custom-dates { display: flex; align-items: center; gap: 6px; }
.production-custom-dates label { display: grid; gap: 2px; }
.production-custom-dates span { color: var(--muted); font-size: .58rem; font-weight: 800; }
.production-custom-dates input { min-height: 38px; padding: 4px 7px; border: 1px solid #d9d3ca; border-radius: 8px; background: #fff; font: inherit; font-size: .69rem; }
.production-workspace { display: grid; min-height: 0; overflow: hidden; grid-template-columns: minmax(280px,340px) minmax(0,1fr); }
.production-source-panel { display: grid; min-height: 0; overflow: hidden; border-right: 1px solid #d5cfc6; grid-template-rows: auto minmax(0,1fr) auto auto; background: #f6f3ee; }
.production-source-panel > header { display: grid; padding: 7px; border-bottom: 1px solid #ded8cf; grid-template-columns:minmax(0,1fr) 92px;gap:5px 6px; background: #fff; }
.production-source-panel > header > div { display: flex;grid-column:1/-1; align-items: baseline; justify-content: space-between; gap: 8px; }
.production-source-panel > header strong { font-size: .78rem; }.production-source-panel > header span { color: var(--muted); font-size: .55rem; }
.production-source-panel .production-board-search { width: 100%; min-width: 0; max-width: none; margin: 0; }
.production-source-panel .production-board-search input{min-height:32px;padding:5px 8px;font-size:.65rem}.production-use-filter{display:grid}.production-use-filter select { width: 100%; min-height: 32px; padding: 4px 7px; border: 1px solid #d9d3ca; border-radius: 8px; color: var(--ink); background: #fff; font: inherit; font-size: .63rem; }
.production-source-list { min-height: 0; padding: 6px; overflow-y: auto; overscroll-behavior: contain; }
.production-source-card { position: relative; margin-bottom: 5px; padding: 7px; border: 1px solid #d9d3ca; border-left: 3px solid #9b8f80; border-radius: 8px; background: #fff; box-shadow: 0 2px 8px rgba(44,37,29,.04); }
.production-source-card[draggable="true"] { cursor: grab; }.production-source-card.is-dragging { opacity: .38; }
.production-source-drag-handle { position: absolute; top: 5px; right: 5px; display: grid; width: 24px; height: 24px; border: 1px solid #d6cec3; border-radius: 6px; place-items: center; color: #756b5f; background: rgba(248,245,240,.94); cursor: grab; font-size: .95rem; line-height: 1; user-select: none; }.production-source-card.is-selected .production-source-drag-handle { border-color: #bbb6ae; background: rgba(255,255,255,.62); }
.production-source-card.is-selected { border-color: #c8c4bd; border-left-color: #99958e; color: #716d67; background: #e6e4e0; box-shadow: none; }
.production-source-card.is-ready { border-color: #a8c8ae; border-left-color: #4f805b; color: #31583b; background: #e5f1e7; }
.production-source-process-mark { position:absolute;z-index:1;top:50%;left:50%;width:max-content;max-width:94%;pointer-events:none;color:#403b35;font-size:1.45rem;font-weight:900;letter-spacing:.08em;text-transform:uppercase;opacity:.22;transform:translate(-50%,-50%) rotate(-7deg); }
.production-source-complete-mark { position:absolute;z-index:1;top:50%;left:50%;pointer-events:none;color:#22532e;font-size:7rem;font-family:Arial,sans-serif;font-weight:900;line-height:1;opacity:.2;transform:translate(-50%,-50%) rotate(-8deg); }
.production-source-card.is-returning { animation:production-source-return .7s cubic-bezier(.2,.85,.32,1.18) both; }
@keyframes production-source-return { 0% { opacity:.15;transform:translateX(90px) scale(.88); } 68% { opacity:1;transform:translateX(-7px) scale(1.025); } 100% { opacity:1;transform:translateX(0) scale(1); } }
@media (prefers-reduced-motion:reduce) { .production-source-card.is-returning { animation:none; } }
.production-source-card.has-warning { border-left-color: #bf7b59; }
.production-board-integrity-warning { display:grid;margin-top:8px;padding:8px 10px;border:1px solid rgba(185,78,48,.38);border-radius:10px;gap:4px;color:#7f3424;background:#fff0e9;line-height:1.35; }
.production-board-integrity-warning strong { color:#8f3825;font-size:.7rem;font-weight:900; }
.production-board-integrity-warning ul { margin:0;padding-left:17px;font-size:.64rem;font-weight:750; }
.production-board-integrity-warning li + li { margin-top:2px; }
.production-batch-card > .production-board-integrity-warning { margin:0 12px 10px; }
.production-source-recipe { display:grid;padding-right:27px;gap:1px; }.production-source-card .production-source-recipe h3 { margin:0; }.production-source-recipe small { color:var(--muted);font-size:.56rem;font-weight:650;line-height:1.2; }
.production-source-top { display: flex; margin-top:4px; align-items: center; justify-content: space-between; gap: 6px; }.production-source-reference,.production-source-inline-actions{display:flex;min-width:0;align-items:center;gap:5px}.production-source-reference{flex:1 1 auto}.production-source-inline-actions{flex:0 0 auto;justify-content:flex-end}.production-source-top strong { color: #356040; font-size: .61rem; }.production-source-top time { color: var(--muted); font-size: .5rem; text-transform: capitalize; }
.production-source-card h3 { margin: 3px 0 1px; font-family: Georgia,serif; font-size: .8rem; font-weight: 500; line-height: 1.15; }.production-source-card > p { margin: 0; color: #665f57; font-size: .57rem; }
.production-source-card .production-task-meta{margin-top:4px;gap:3px}.production-source-card .production-task-meta span{padding:2px 4px;font-size:.52rem}
.production-source-status { font-size: .53rem; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }.production-source-action { min-height: 25px; padding: 0 6px; border: 0; border-radius: 6px; color: #31583b; background: rgba(255,255,255,.78); cursor: pointer; font: inherit; font-size: .54rem; font-weight: 800; }
.production-source-empty { margin: 24px 10px; color: var(--muted); font-size: .7rem; text-align: center; }
.production-source-summary{display:block;margin:0 8px 8px;border:1px solid rgba(126,113,96,.2);border-radius:12px;background:rgba(255,255,255,.78);box-shadow:0 4px 14px rgba(55,45,34,.06)}.production-summary-heading{display:flex;padding:7px 9px;align-items:baseline;justify-content:space-between;gap:8px;cursor:pointer;list-style:none}.production-summary-heading::-webkit-details-marker{display:none}.production-summary-heading::after{color:#6d675f;content:'⌃';font-size:.66rem}.production-source-summary:not([open]) .production-summary-heading::after{content:'⌄'}.production-summary-heading strong{font-size:.68rem}.production-summary-heading small{margin-left:auto;color:var(--muted);font-size:.54rem;text-transform:capitalize}.production-summary-content{display:grid;padding:0 7px 7px;gap:5px}.production-summary-primary{display:flex;flex-wrap:wrap;gap:4px}.production-summary-primary>div{display:flex;padding:3px 5px;border-radius:6px;align-items:baseline;gap:3px;background:#f0ede8}.production-summary-primary span{color:var(--muted);font-size:.5rem}.production-summary-primary strong{font-size:.58rem;overflow-wrap:anywhere}.production-summary-statuses{display:flex;flex-wrap:wrap;gap:3px}.production-summary-statuses span{padding:2px 4px;border-radius:5px;color:#665e55;background:#eeeae4;font-size:.51rem}.production-summary-statuses .is-pending{background:#eeeae4}.production-summary-statuses .is-preparing{color:#7b541f;background:#fbefda}.production-summary-statuses .is-finished{color:#315c3b;background:#e4f0e6}.production-summary-work{display:grid;max-height:88px;padding-right:2px;overflow-y:auto;gap:4px}.production-summary-work section{display:grid;padding:5px;border:1px solid rgba(93,116,98,.15);border-radius:7px;gap:2px;background:#f6f9f6}.production-summary-work section>div,.production-summary-work p{display:flex;margin:0;align-items:baseline;justify-content:space-between;gap:7px}.production-summary-work section>div strong{color:#3e6248;font-size:.56rem;text-transform:uppercase;letter-spacing:.04em}.production-summary-work section>div small{color:var(--muted);font-size:.48rem}.production-summary-work p{padding-top:2px;border-top:1px solid rgba(93,116,98,.1);font-size:.54rem}.production-summary-work p span{min-width:0;overflow-wrap:anywhere}.production-summary-work p b{flex:0 0 auto;color:#40584a;font-size:.55rem;text-align:right}.production-summary-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px}.production-summary-days span{display:grid;padding:2px 1px;border-radius:5px;place-items:center;background:#f1eee9}.production-summary-days small{color:var(--muted);font-size:.46rem;text-transform:uppercase}.production-summary-days b{font-size:.58rem}.production-summary-note,.production-summary-filter{color:var(--muted);font-size:.5rem;line-height:1.25}.production-summary-filter{color:#315c3b;font-weight:800}
.production-finished{display:block;margin:0 8px 7px;border:1px solid rgba(82,122,92,.2);border-radius:12px;background:rgba(239,246,240,.82);box-shadow:0 4px 14px rgba(55,45,34,.05)}.production-finished[hidden]{display:none}.production-finished-heading{display:flex;min-height:36px;padding:7px 9px;align-items:center;justify-content:space-between;gap:8px;cursor:pointer;list-style:none}.production-finished-heading::-webkit-details-marker{display:none}.production-finished-heading>span:first-child{display:flex;min-width:0;align-items:baseline;gap:6px}.production-finished-heading strong{color:#315c3b;font-size:.68rem}.production-finished-heading small{color:var(--muted);font-size:.54rem}.production-finished-chevron{color:#52705a;font-size:.72rem;transition:transform .2s ease}.production-finished[open] .production-finished-chevron{transform:rotate(180deg)}.production-finished-list{display:grid;max-height:min(38vh,330px);padding:0 6px 6px;overflow-y:auto;gap:6px}.production-finished-list .production-source-card{margin:0;border-color:rgba(82,122,92,.18);background:#fff}
.production-drop-workspace { display: grid; min-height: 0; overflow: hidden; grid-template-rows: auto minmax(0,1fr); background: #ebe7e0; transition: background .15s,box-shadow .15s; }
.production-drop-workspace.is-drop-target { background: #e2eee4; box-shadow: inset 0 0 0 4px rgba(74,120,84,.24); }
.production-drop-workspace > header { display: flex; min-height: 62px; padding: 10px 16px; border-bottom: 1px solid #d5cfc6; align-items: center; justify-content: space-between; gap: 12px; background: rgba(255,255,255,.65); }.production-drop-workspace > header p { margin: 0 0 2px; }.production-drop-workspace > header h1 { margin: 0; font-family: Georgia,serif; font-size: 1.35rem; font-weight: 500; }.production-drop-workspace > header > span { color: var(--muted); font-size: .67rem; }
.production-batch-grid { display:grid;min-height:0;padding:12px 12px max(24px,env(safe-area-inset-bottom,0px));overflow-y:auto;align-content:start;align-items:start;grid-auto-rows:max-content;grid-template-columns:repeat(auto-fill,minmax(350px,1fr));gap:11px;scrollbar-gutter:stable; }
.production-workspace-empty { display: grid; min-height: 220px; border: 2px dashed #c8c0b5; border-radius: 14px; place-items: center; align-content: center; gap: 5px; color: #6c665e; background: rgba(255,255,255,.42); grid-column: 1 / -1; }.production-workspace-empty strong { font-family: Georgia,serif; font-size: 1.2rem; font-weight: 500; }.production-workspace-empty span { color: var(--muted); font-size: .68rem; }
.production-batch-card { position:relative;min-width:0;height:max-content;overflow:hidden;align-self:start;border:1px solid #cec7bd;border-top:5px solid #c39b61;border-radius:12px;background:#fff;box-shadow:0 5px 18px rgba(44,37,29,.07); }.production-batch-card[draggable="true"] { cursor: grab; }.production-batch-card[draggable="true"]:active { cursor: grabbing; }.production-batch-card.is-dragging { opacity: .4; transform: scale(.985); }.production-batch-card.is-ready { border-color: #8bb195; border-top-color: #4d8059; background: #f5faf6; }
.production-batch-card.is-drop-target { border-color: #4f805b; box-shadow: 0 0 0 4px rgba(79,128,91,.2),0 8px 24px rgba(44,37,29,.1); }
.production-batch-drag-handle { position: absolute; z-index: 2; top: 7px; right: 8px; display: grid; width: 31px; height: 31px; border: 1px solid #d6cec3; border-radius: 8px; place-items: center; color: #756b5f; background: #f5f1eb; box-shadow: 0 1px 4px rgba(44,37,29,.08); cursor: grab; font-size: 1.2rem; line-height: 1; user-select: none; }.production-batch-drag-handle:active { cursor: grabbing; }
.production-batch-header { display:flex;min-width:0;padding:11px 51px 9px 12px;align-items:flex-start;justify-content:space-between;gap:12px; }.production-batch-card.is-ready .production-batch-header { padding-right: 12px; }.production-batch-header > div { display:grid;min-width:0;flex:1 1 auto;gap:1px; }.production-batch-state { color: #9a6827; font-size: .56rem; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; }.production-batch-card.is-ready .production-batch-state { color: #3f714b; }.production-batch-header h2 { margin:0;font-family:Georgia,serif;font-size:1.1rem;font-weight:500;line-height:1.25;overflow-wrap:anywhere; }.production-batch-header small { color:var(--muted);font-size:.59rem;overflow-wrap:anywhere; }.production-batch-weight { flex:0 0 auto;max-width:42%;color:#3f674a;font-size:.76rem;text-align:right;overflow-wrap:anywhere; }
.production-ingredient-heading { display: flex; padding: 8px 12px; border-top: 1px solid #e6e0d8; border-bottom: 1px solid #e6e0d8; align-items: center; justify-content: space-between; background: #faf8f5; }.production-ingredient-heading strong { font-size: .68rem; text-transform: uppercase; letter-spacing: .05em; }.production-ingredient-heading span { color: var(--muted); font-size: .61rem; }
.production-ingredient-checklist { display: grid; padding: 7px 10px; gap: 4px; }.production-ingredient-check { position: relative; display: grid; min-height: 39px; padding: 5px 6px; border: 1px solid #e5e0d9; border-radius: 8px; grid-template-columns: 25px minmax(0,1fr); align-items: center; gap: 7px; cursor: pointer; }.production-ingredient-check:has(input:checked) { border-color: #bad0bf; background: #eef6ef; }.production-ingredient-check input { position: absolute; width: 1px; height: 1px; opacity: 0; }.production-ingredient-check .production-check-mark { display: grid; width: 24px; height: 24px; border: 1px solid #c8c1b8; border-radius: 6px; place-items: center; color: transparent; background: #fff; }.production-ingredient-check input:checked + .production-check-mark { border-color: #548061; color: #fff; background: #548061; }.production-ingredient-check > span:last-child { display:grid;min-width:0;grid-template-columns:minmax(0,1fr) auto;align-items:baseline;gap:8px; }.production-ingredient-check strong { min-width:0;font-size:.68rem;line-height:1.3;white-space:normal;overflow-wrap:anywhere; }.production-ingredient-check small { color:#4f5f53;font-size:.64rem;font-weight:800;white-space:normal;text-align:right;overflow-wrap:anywhere; }
.production-batch-final-check { position:relative;display:grid;margin:2px 10px 9px;padding:9px;border:1px solid #d4cec5;border-radius:9px;grid-template-columns:25px minmax(0,1fr);align-items:center;gap:8px;background:#faf8f5;cursor:pointer; }.production-batch-final-check>input { position:absolute;width:1px;height:1px;opacity:0; }.production-batch-final-check .production-check-mark { display:grid;width:24px;height:24px;border:2px solid #bdb5ab;border-radius:6px;place-items:center;color:transparent;background:#fff; }.production-batch-final-check>span:last-child { display:grid;gap:1px; }.production-batch-final-check strong { font-size:.7rem; }.production-batch-final-check small { color:var(--muted);font-size:.59rem;line-height:1.3; }.production-batch-final-check.is-checked { border-color:#7fa28a;background:#e8f3ea; }.production-batch-final-check.is-checked .production-check-mark { border-color:#3f714b;color:#fff;background:#3f714b; }.production-batch-final-check:has(input:disabled) { cursor:default; }
.production-batch-recipes { border-top: 1px solid #e5dfd7; }.production-batch-recipes > h3 { margin:0;padding:8px 12px;color:#5f5951;background:#faf8f5;font-size:.63rem;font-weight:800; }.production-batch-recipes > div { padding: 4px 10px 8px; }.production-batch-recipe { display:flex;min-width:0;padding:6px 2px;border-bottom:1px solid #eee9e2;align-items:flex-start;gap:8px; }.production-batch-recipe[draggable="true"] { cursor: grab; }.production-batch-recipe.is-dragging { opacity: .38; }.production-batch-recipe:last-child { border-bottom: 0; }.production-batch-recipe > span { display:grid;min-width:0;flex:1 1 auto;gap:1px; }.production-batch-recipe strong { font-size:.62rem;line-height:1.35;white-space:normal;overflow-wrap:anywhere; }.production-batch-recipe small { color:var(--muted);font-size:.57rem;line-height:1.35;white-space:normal;overflow-wrap:anywhere; }.production-batch-recipe button { flex:0 0 auto;min-height:27px;padding:0 7px;border:0;border-radius:6px;color:#8d4037;background:#f7e7e4;cursor:pointer;font:inherit;font-size:.56rem;font-weight:800; }
.production-grouped-recipes,.production-material-reminders{padding:10px 12px;border-top:1px solid #e5dfd7;background:#fbfaf8}.production-grouped-recipes>h3,.production-material-reminders>h3{margin:0 0 7px;color:#5f5951;font-size:.65rem;text-transform:uppercase;letter-spacing:.04em}.production-grouped-recipe{border:1px solid #e5dfd7;border-radius:10px;overflow:hidden;background:#fff}.production-grouped-recipe+.production-grouped-recipe{margin-top:7px}.production-grouped-recipe.is-finalizada{border-color:rgba(57,112,69,.24);background:#f4faf5}.production-grouped-recipe-heading{display:grid;padding:9px;grid-template-columns:28px minmax(0,1fr) auto;align-items:center;gap:10px}.production-grouped-copy{display:grid;min-width:0;gap:2px}.production-grouped-copy strong{font-size:.72rem}.production-grouped-copy small{color:var(--muted);font-size:.61rem}.production-grouped-check{position:relative;display:grid;width:28px;height:28px;place-items:center;cursor:pointer}.production-grouped-check>input{position:absolute;width:1px;height:1px;opacity:0}.production-grouped-check>.production-check-mark{display:grid;width:28px;height:28px;border:2px solid #bdb5ab;border-radius:8px;place-items:center;color:transparent;background:#fff}.production-grouped-check.is-checked>.production-check-mark{border-color:#3f714b;color:#fff;background:#3f714b}.production-grouped-check:focus-within{outline:3px solid rgba(79,118,91,.22);outline-offset:2px}.production-grouped-amount{max-width:120px;color:#4f5f53;font-size:.64rem;font-weight:800;line-height:1.3;text-align:right;white-space:normal;overflow-wrap:anywhere}.production-grouped-link{width:max-content;margin-top:3px;padding:0;border:0;color:#6a635b;background:none;cursor:pointer;font:inherit;font-size:.61rem;font-weight:750;text-decoration:underline}.production-grouped-body{padding:0 9px 9px}.production-grouped-body[hidden]{display:none}.production-grouped-body>.production-ingredient-checklist{margin-top:2px}.production-material-reminders>.production-ingredient-check{margin-top:5px}
.production-sheet-grouped-list{display:grid;padding:10px 18px;gap:8px}.production-sheet-grouped{border:1px solid var(--line);border-radius:12px;background:#fff;overflow:hidden}.production-sheet-grouped.is-active{border-color:rgba(198,126,41,.36);background:#fffbf3}.production-sheet-grouped.is-complete{border-color:rgba(57,112,69,.24);background:#f4faf5}.production-sheet-grouped.is-direct-ingredient{background:#faf8f4}.production-sheet-grouped-heading{display:grid;padding:10px 12px;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:12px}.production-sheet-grouped-heading>span{display:grid;min-width:0;gap:2px}.production-sheet-grouped-heading small{color:var(--muted);font-size:.67rem}.production-sheet-grouped-controls{display:grid;min-width:92px;justify-items:stretch;gap:6px;text-align:center}.production-sheet-grouped-controls>b{color:var(--accent-dark);font-family:Georgia,serif;font-size:1.2rem;line-height:1}.production-sheet-grouped-controls>.button{min-height:32px;padding:5px 12px}.production-sheet-grouped-check{position:relative;display:grid;width:28px;height:28px;padding:0;place-items:center;cursor:pointer}.production-sheet-grouped-check>input{position:absolute;opacity:0;pointer-events:none}.production-sheet-grouped-check .production-checkbox{width:28px;height:28px;border-radius:8px}.production-sheet-grouped-check.is-checked .production-checkbox{border-color:#3f714b;color:#fff;background:#3f714b}.production-sheet-grouped-check:focus-within{outline:3px solid rgba(79,118,91,.22);outline-offset:2px}.production-sheet-grouped.is-direct-ingredient .production-sheet-grouped-controls>b{font-size:1.45rem}.production-sheet-grouped-body{padding:0 10px 10px}.production-sheet-grouped-body>.button{width:100%;margin-top:8px}
.production-batch-recipe .production-batch-recipe-remove { display:grid;width:27px;height:27px;min-height:27px;padding:0;place-items:center;font-size:1rem;line-height:1; }
.production-batch-instructions { border-top: 1px solid #e5dfd7; }.production-batch-instructions > summary { padding: 8px 12px; color: #5f5951; background: #faf8f5; cursor: pointer; font-size: .63rem; font-weight: 800; }.production-batch-instruction { padding: 8px 12px 10px; border-top: 1px solid #eee9e2; }.production-batch-instruction:first-of-type { border-top: 0; }.production-batch-instruction > strong { color: #4f654f; font-size: .64rem; }.production-batch-instruction > p { margin: 3px 0 0; padding: 0; color: #5d574f; font-size: .66rem; line-height: 1.45; white-space: pre-line; }
.production-instruction-steps { display:grid;margin:7px 0 0;padding:0;gap:6px;list-style:none;counter-reset:production-step; }
.production-instruction-steps li { display:grid;grid-template-columns:24px minmax(0,1fr);align-items:start;gap:7px;counter-increment:production-step; }
.production-instruction-steps li::before { display:grid;width:22px;height:22px;border-radius:50%;place-items:center;color:#fff;background:#64806a;content:counter(production-step);font-size:.59rem;font-weight:900; }
.production-instruction-steps p { margin:2px 0 0;color:#5d574f;font-size:.66rem;line-height:1.45;white-space:pre-line; }
.production-batch-actions { display: flex; min-height: 48px; padding: 8px 11px; border-top: 1px solid #e5dfd7; align-items: center; justify-content: flex-end; }.production-batch-actions > span { color: var(--muted); font-size: .61rem; }.production-batch-actions .button { min-height: 34px; font-size: .64rem; }

.production-order-preview-modal .order-modal-card { width: min(94vw,820px); max-height: min(90dvh,900px); overflow-y: auto; }
.production-order-preview-heading h2 { margin: 4px 42px 14px 0; font-family: Georgia,serif; font-size: 1.8rem; font-weight: 500; }
.production-order-preview-meta { display: grid; margin: 0 0 14px; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 7px; }.production-order-preview-meta div { min-width: 0; padding: 9px; border-radius: 8px; background: #f5f3ef; }.production-order-preview-meta .is-wide { grid-column: 1/-1; }.production-order-preview-meta dt { color: var(--muted); font-size: .6rem; font-weight: 800; text-transform: uppercase; }.production-order-preview-meta dd { margin: 2px 0 0; overflow-wrap: anywhere; font-size: .76rem; font-weight: 700; }
.production-order-preview-note { margin-bottom: 10px; padding: 10px; border-radius: 8px; background: #faf6ee; }.production-order-preview-note strong { font-size: .7rem; }.production-order-preview-note p { margin: 4px 0 0; font-size: .74rem; }
.production-order-preview-products { display: grid; gap: 9px; }.production-order-preview-products > article { padding: 11px; border: 1px solid var(--line); border-radius: 10px; }.production-order-preview-products article > header { display: flex; align-items: start; justify-content: space-between; gap: 12px; }.production-order-preview-products article > header div,.production-order-preview-products article > header b { display: grid; gap: 2px; }.production-order-preview-products article > header strong { font-size: .86rem; }.production-order-preview-products article > header small { color: var(--muted); font-size: .65rem; }.production-order-preview-products article > header b { color: #20551A; font-size: .86rem; text-align: right; }.production-order-preview-products ul { display: grid; margin: 9px 0; padding: 0; gap: 4px; list-style: none; }.production-order-preview-products li { display: grid; grid-template-columns: 18px minmax(0,1fr); gap: 5px; }.production-order-preview-products li > span { color: #958f87; }.production-order-preview-products li > span.is-done { color: #397143; }.production-order-preview-products li div { display: grid; }.production-order-preview-products li strong { font-size: .7rem; }.production-order-preview-products li small,.production-order-preview-products article > p { color: var(--muted); font-size: .65rem; }.production-order-preview-products article > p { margin: 5px 0 0; }
.production-order-preview-images { display: flex; margin-top: 9px; overflow-x: auto; gap: 7px; }.production-order-preview-images figure { width: 105px; min-width: 105px; margin: 0; }.production-order-preview-images button { display: block; width: 100%; height: 78px; padding: 0; overflow: hidden; border: 0; border-radius: 7px; cursor: zoom-in; }.production-order-preview-images img { display: block; width: 100%; height: 100%; object-fit: cover; }.production-order-preview-images figcaption { margin-top: 3px; color: var(--muted); font-size: .58rem; line-height: 1.25; }
.production-order-preview-totals { display: flex; margin-top: 13px; padding-top: 12px; border-top: 2px solid var(--line); justify-content: flex-end; flex-wrap: wrap; gap: 8px; }.production-order-preview-totals > span { display: grid; padding: 9px 12px; border-radius: 8px; background: #eef4ef; font-size: .68rem; }.production-order-preview-totals strong { font-size: 1rem; }.production-order-preview-totals .has-pending { color: #9a3028; background: #fff1ef; }.production-order-preview-totals small { max-width: 220px; font-size: .61rem; }.production-order-preview-loading { padding: 45px 15px; color: var(--muted); text-align: center; }

@media (max-width: 900px) {
    .production-board-header { grid-template-columns: auto minmax(0,1fr) auto; }
    .production-board-title { display: none; }
    .production-board-header .company-switcher { min-width: 0; justify-self: center; }
    .production-board-header .company-switcher select { width: min(180px,100%); min-width: 0; }
    .production-board-toolbar { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; }
    .production-board-toolbar > * { flex: 0 0 auto; }
    .production-board-search { width: 230px; margin-left: 0; }
    .production-workspace { grid-template-columns: minmax(190px,220px) minmax(0,1fr); }
    .production-batch-grid { grid-template-columns:repeat(auto-fit,minmax(190px,1fr)); }
}

@media (max-width: 560px) {
    .production-board-header { min-height: 58px; padding: 7px 9px; gap: 7px; }
    .production-board-header .brand > span:last-child { display: none; }
    .production-board-header .company-switcher select { width: min(135px,100%); }
    .production-board-header > .button { min-height: 38px; padding: 0 9px; font-size: .67rem; }
    .production-board-toolbar { min-height: 59px; padding: 7px 8px; gap: 7px; }
    .production-period { min-width: 125px; }
    .production-board { padding: 8px; gap: 8px; }
    .production-board-column,.production-board-empty { width: calc(100vw - 16px); min-width: calc(100vw - 16px); }
    .production-workspace { grid-template-columns: 1fr; grid-template-rows: minmax(210px,32%) minmax(0,1fr); }
    .production-source-panel { border-right: 0; border-bottom: 1px solid #d5cfc6; }
    .production-source-panel > header { padding: 5px 6px; grid-template-columns:minmax(0,1fr) 84px;align-items: center; gap: 4px 5px; }
    .production-source-panel > header > div { display:flex; }.production-source-panel > header > div span { display: none; }
    .production-source-list { display: flex; padding: 6px; overflow-x: auto; overflow-y: hidden; gap: 6px; }
    .production-source-card { width: 220px; min-width: 220px; height: max-content; margin: 0; }
    .production-source-summary{margin:0 6px 6px}.production-summary-heading{padding:5px 7px}.production-summary-heading small{display:none}.production-summary-content{padding:0 5px 5px;gap:3px}.production-summary-primary,.production-summary-statuses{flex-wrap:nowrap;overflow-x:auto}.production-summary-work{max-height:54px}.production-summary-work section{padding:3px}.production-summary-note{display:none}
    .production-drop-workspace > header { min-height: 49px; padding: 6px 10px; }.production-drop-workspace > header h1 { font-size: 1.05rem; }.production-drop-workspace > header p { display: none; }
    .production-batch-grid { padding: 7px;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:7px; }
    .production-custom-dates input { width: 126px; }
}
.production-picker-page { display: grid; height: 100dvh; margin: 0; overflow: hidden; color: var(--ink); background: #ebe7e0; grid-template-rows: auto minmax(0,1fr); }
.production-picker-main { display: grid; min-height: 0; grid-template-rows: auto minmax(0,1fr); }
.production-picker-toolbar { display: flex; min-height: 68px; padding: 8px 14px; border-bottom: 1px solid #d8d2ca; align-items: center; justify-content: flex-start; gap: 10px; background: #f8f6f2; }
.production-picker-toolbar-heading { display: flex; min-width: 0; align-items: center; gap: 8px; }.production-picker-toolbar-heading > div { display: grid; min-width: 190px; }.production-picker-toolbar .eyebrow { margin: 0; }.production-picker-toolbar h1 { margin: 1px 0 0; font-family: Georgia,serif; font-size: 1.12rem; font-weight: 500; }
.production-picker-toolbar-navigation { min-height: 0; margin: 0; flex: 0 0 auto; flex-wrap: nowrap; gap: 5px; }.production-picker-toolbar-navigation .button { width: 34px; min-width: 34px; min-height: 34px; height: 34px; padding: 0; }.production-picker-toolbar-navigation .app-home-button,.production-picker-toolbar-navigation .app-back-button { width: 34px; min-width: 34px; }
.production-picker-toolbar nav { display: flex; }.production-picker-toolbar > .button { margin-left: auto; white-space: nowrap; }
.production-picker-toolbar-filters { display: flex; min-width: 0; align-items: center; justify-content: flex-start; gap: 8px; }.production-picker-toolbar .production-date-control,.production-picker-use-filter { justify-items: start; }.production-picker-toolbar .production-date-control input,.production-picker-use-filter select { text-align: left; }
.production-picker-use-filter { display: grid; min-width: 135px; gap: 2px; }.production-picker-use-filter > span { color: var(--muted); font-size: .58rem; font-weight: 800; }.production-picker-use-filter select { min-height: 38px; padding: 5px 9px; border: 1px solid #d9d3ca; border-radius: 8px; color: var(--ink); background: #fff; font: inherit; font-size: .7rem; }
.production-picker-form { position: relative; min-height: 0; overflow: hidden; }
.production-month-grid { height: 100%; padding: 8px 8px 78px; overflow: auto; overscroll-behavior: contain; scrollbar-gutter: stable; }
.production-picker-week { min-width: 1050px; margin-bottom: 8px; border: 1px solid #d3cdc4; border-radius: 11px; overflow: hidden; background: #f4f1ec; box-shadow: 0 3px 12px rgba(45,38,30,.04); }
.production-picker-week > header { display: flex; min-height: 34px; padding: 5px 9px; border-bottom: 1px solid rgba(65,55,45,.14); align-items: center; gap: 7px; color: #fff; background: #20551A; }.production-picker-week:nth-of-type(2) > header { background: #ca6844; }.production-picker-week:nth-of-type(3) > header { background: #8a7442; }.production-picker-week:nth-of-type(4) > header { background: #5d7185; }.production-picker-week > header strong { font-size: .65rem; text-transform: uppercase; letter-spacing: .05em; }.production-picker-week > header span { color: rgba(255,255,255,.82); font-size: .59rem; }
.production-picker-days { --calendar-day-min: 145px; --calendar-today-min: 220px; display: grid; grid-template-columns: repeat(7,minmax(var(--calendar-day-min),1fr)); align-items: stretch; }
.production-picker-day { display: flex; min-width: 0; border-right: 1px solid #ddd7cf; background: #f8f6f2; flex-direction: column; }.production-picker-day:last-child { border-right: 0; }.production-picker-day.is-today { background: #f1f6f2; box-shadow: inset 0 3px #527a5c; }
.production-picker-day.is-past { color: #aaa49c; background: #efede9; }.production-picker-day.is-past > header { background: rgba(247,245,242,.55); }.production-picker-day.is-past > header > span { color: #969089; background: #e2dfda; }
.production-picker-day > header { display: grid; min-height: 33px; padding: 5px 7px; border-bottom: 1px solid #e0dbd4; grid-template-columns: auto 1fr auto; align-items: center; gap: 5px; background: rgba(255,255,255,.74); }.production-picker-day > header strong { font-size: .66rem; }.production-picker-day > header time { color: var(--muted); font-size: .59rem; }.production-picker-day > header > span { display: grid; min-width: 20px; height: 20px; padding: 0 4px; border-radius: 999px; place-items: center; color: #47604d; background: #e7eee8; font-size: .56rem; font-weight: 800; }
.production-picker-products { min-height: 42px; padding: 4px; flex: 1; }.production-picker-empty { display: block; padding: 9px 3px; color: #aaa49c; font-size: .58rem; text-align: center; }
.production-picker-day.is-filter-empty .production-picker-products::after { content: 'Sin recetas de este uso'; display: block; padding: 9px 3px; color: #aaa49c; font-size: .56rem; text-align: center; }
.production-picker-card { margin-bottom: 4px; padding: 6px; border: 1px solid #d9d3ca; border-left: 3px solid #b49770; border-radius: 7px; background: #fff; box-shadow: 0 1px 5px rgba(45,38,30,.035); transition: border-color .15s,background .15s,box-shadow .15s; }.production-picker-card.is-selected { border-color: #6f9b79; border-left-color: #4e7b59; background: #f4faf5; box-shadow: 0 0 0 2px rgba(78,123,89,.1); }.production-picker-card.is-sent { border-left-color: #8f918d; background: #efeeeb; }.production-picker-card.is-ready { border-left-color: #4f805b; background: #e8f3ea; }
.production-picker-day.is-past .production-picker-card { opacity: .62; filter: grayscale(.85); }
.production-mobile-date,[data-picker-day-order-count] { display: none; }
.production-picker-card-heading { display: grid; min-width: 0; align-items: center; gap: 5px; }.production-picker-card-primary { display: grid; min-width: 0; grid-template-columns: 23px 21px minmax(0,1fr); align-items: center; gap: 4px; }.production-picker-card-heading strong { min-width: 0; color: #315b3b; font-size: .72rem; line-height: 1.1; overflow-wrap: anywhere; }.production-picker-card-copy { display: flex; min-width: 0; align-items: flex-start; justify-content: space-between; gap: 7px; }.production-picker-card-copy b { min-width: 0; font-size: .68rem; line-height: 1.25; white-space: normal; overflow-wrap: anywhere; }.production-picker-card-copy small { flex: 0 0 auto; color: #4c5d50; font-size: .59rem; font-weight: 850; }.production-picker-print { width: 23px; height: 23px; border-radius: 5px; font-size: .72rem; }
.production-picker-select-all { position: relative; display: grid; width: 20px; height: 20px; cursor: pointer; }.production-picker-select-all input { position: absolute; width: 1px; height: 1px; opacity: 0; }.production-picker-select-all span { display: grid; border: 1px solid #bfb8af; border-radius: 5px; place-items: center; color: transparent; background: #fff; font-size: .62rem; }.production-picker-select-all input:checked + span,.production-picker-select-all input:indeterminate + span { border-color: #4f7d5a; color: #fff; background: #4f7d5a; }.production-picker-select-all input:indeterminate + span { font-size: 0; }.production-picker-select-all input:indeterminate + span::after { content: '−'; font-size: .7rem; }.production-picker-select-all input:disabled + span { opacity: .42; cursor: default; }
.production-picker-card > p { margin: 4px 0; overflow: hidden; color: var(--muted); font-size: .54rem; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.production-picker-components { display: grid; gap: 2px; }.production-picker-component,.production-picker-components > span { display: grid; min-height: 31px; padding: 4px; border-radius: 4px; grid-template-columns: 14px minmax(0,1fr) auto; align-items: center; gap: 4px; background: #f5f3ef; font-size: .56rem; }.production-picker-component:is(label) { cursor: pointer; }.production-picker-component input { width: 12px; height: 12px; margin: 0; accent-color: #4f765b; }.production-picker-component > span { min-width: 0; line-height: 1.25; white-space: normal; overflow-wrap: anywhere; }.production-picker-component-copy { display:grid;gap:1px; }.production-picker-component-copy strong { font-size:inherit;line-height:1.2; }.production-picker-component .production-picker-component-copy small { color:#77716a;font-size:.48rem;font-weight:600;line-height:1.2; }.production-picker-component i { color: currentColor; font-style: normal; text-align: center; }.production-picker-component small { color: var(--muted); font-size: .49rem; font-weight: 800; }.production-picker-component button { min-height: 19px; padding: 0 4px; border: 0; border-radius: 4px; color: #873e34; background: #fff; cursor: pointer; font: inherit; font-size: .48rem; font-weight: 850; }.production-picker-components .is-sent { color: #77736d; background: #e6e4e0; }.production-picker-components .is-done { color: #3f6749; background: #dfede2; }.production-picker-components .is-unavailable { color: #995142; background: #faebe7; grid-template-columns: minmax(0,1fr) auto; }
.production-picker-component[hidden],.production-picker-card[hidden],[data-picker-summary][hidden] { display: none; }
.production-picker-others { display: grid; gap: 4px; margin-top: 6px; padding-top: 6px; border-top: 1px dashed #ddd3c6; }.production-picker-other { display: grid; min-height: 28px; padding: 4px 6px; border: 1px solid #e5d8ca; border-radius: 7px; background: #fffaf3; grid-template-columns: 20px minmax(0,1fr); align-items: center; gap: 6px; cursor: pointer; }.production-picker-other > input { position: absolute; width: 1px; height: 1px; opacity: 0; }.production-picker-other > span { display: grid; width: 18px; height: 18px; border: 1px solid #c9b9a7; border-radius: 5px; color: transparent; place-items: center; font-size: .65rem; }.production-picker-other strong { font-size: .62rem; line-height: 1.25; overflow-wrap: anywhere; }.production-picker-other.is-done { border-color: #c6dbc9; background: #f1f8f2; }.production-picker-other.is-done > span { border-color: #5e8b68; color: #fff; background: #5e8b68; }.production-picker-other:has(input:disabled) { cursor: default; opacity: .72; }
.production-picker-day-summary { padding: 5px; border-top: 1px solid #dcd6ce; background: #ece8e2; }.production-picker-day-summary > strong { display: block; margin-bottom: 3px; color: #615b53; font-size: .52rem; letter-spacing: .04em; text-transform: uppercase; }.production-picker-day-summary > div { display: flex; flex-wrap: wrap; gap: 2px; }.production-picker-day-summary span { padding: 2px 4px; border-radius: 4px; color: #4f5d52; background: #fff; font-size: .5rem; line-height: 1.25; }.production-picker-day-summary b { color: #315b3b; }
.production-picker-details { margin-top: 3px; border-top: 1px solid #ece7e0; }.production-picker-details > summary { padding: 4px 1px 1px; color: #665f57; cursor: pointer; font-size: .52rem; font-weight: 800; list-style: none; }.production-picker-details > summary::-webkit-details-marker { display: none; }.production-picker-details > summary::after { content: '⌄'; margin-left: 4px; }.production-picker-details[open] > summary::after { content: ''; }.production-picker-details > div { padding: 3px 0 1px; }.production-picker-details p { margin: 2px 0; color: #625c54; font-size: .53rem; line-height: 1.3; }.production-picker-details p.is-allergy { color: #8f3c32; }
.production-picker-submit { position: absolute; z-index: 8; right: 12px; bottom: 10px; display: flex; min-width: 310px; padding: 8px 9px 8px 13px; border: 1px solid #cfcbc4; border-radius: 12px; align-items: center; justify-content: space-between; gap: 14px; background: rgba(255,255,255,.96); box-shadow: 0 8px 28px rgba(45,38,30,.16); backdrop-filter: blur(8px); }.production-picker-submit span { color: var(--muted); font-size: .67rem; }.production-picker-submit strong { color: #34563d; font-size: .85rem; }.production-picker-submit .button { min-height: 40px; font-size: .68rem; }
@media (max-width: 900px) {
    .production-picker-toolbar { overflow-x: auto; }.production-picker-toolbar > * { flex: 0 0 auto; }.production-picker-week { min-width: 980px; }.production-picker-days { --calendar-day-min: 140px; --calendar-today-min: 210px; }
}
@media (max-width: 560px) {
    .production-picker-page .production-board-header { min-height: 58px; padding: 7px 9px; gap: 7px; }.production-picker-page .production-board-header .brand > span:last-child { display: none; }.production-picker-page .production-board-header > .button { min-height: 38px; padding: 0 9px; font-size: .67rem; }
    .production-picker-toolbar { min-height: 60px; padding: 6px 8px; }.production-picker-toolbar-heading > div { min-width: 160px; }.production-picker-toolbar h1 { font-size: .92rem; }.production-picker-week { min-width: 910px; }.production-picker-days { --calendar-day-min: 130px; --calendar-today-min: 195px; }
    .production-picker-submit { right: 7px; bottom: 7px; left: 7px; min-width: 0; }.production-month-grid { padding: 6px 6px 76px; }
}
.production-layout { display: grid; height: calc(100vh - 72px); height: calc(100dvh - 72px); grid-template-columns: minmax(0, 1.45fr) minmax(370px, .8fr); }
.production-layout-with-navigation { grid-template-rows: auto minmax(0, 1fr); }
.production-layout-with-navigation > .app-navigation { grid-column: 1 / -1; }
.production-layout-with-navigation > .production-catalog, .production-layout-with-navigation > .production-bag { min-height: 0; grid-row: 2; }
.production-catalog { overflow-y: auto; padding: clamp(22px, 3vw, 38px); overscroll-behavior: contain; }
.production-catalog-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; }
.production-catalog-heading h1 { margin: 5px 0 0; font-family: Georgia, serif; font-size: clamp(2rem, 3.4vw, 3.35rem); font-weight: 500; letter-spacing: -.035em; line-height: 1.05; }
.production-bag-toggle { display: none; min-height: 50px; padding: 0 13px 0 17px; border: 0; border-radius: 13px; align-items: center; gap: 10px; color: #fff; background: #4f765b; font-weight: 800; }
.production-bag-toggle strong { display: grid; min-width: 28px; height: 28px; padding: 0 7px; border-radius: 999px; color: #36543f; background: #fff; place-items: center; }
.production-search { position: sticky; z-index: 5; top: 0; margin: 25px 0 0; padding: 8px 0; background: #f4f1ec; }
.production-search input { width: 100%; height: 56px; padding: 0 52px 0 18px; border: 1px solid #dcd4ca; border-radius: 15px; outline: 0; background: #fff; box-shadow: 0 7px 24px rgba(49, 39, 28, .05); font-size: 1rem; }
.production-search input:focus { border-color: #659071; box-shadow: 0 0 0 4px rgba(79, 118, 91, .13); }
.production-search button { position: absolute; top: 15px; right: 7px; width: 42px; height: 42px; border: 0; border-radius: 10px; color: var(--muted); background: transparent; cursor: pointer; font-size: 1.45rem; }
.production-search-status { min-height: 20px; margin: 1px 2px 8px; color: var(--muted); font-size: .78rem; }
.production-groups { display: flex; padding-bottom: 25px; flex-direction: column; gap: 9px; }
.production-recipe-group[hidden], .production-recipe-card[hidden] { display: none; }
.production-recipe-group { overflow:hidden;border:1px solid #dcd6ce;border-radius:14px;background:#fff;box-shadow:0 5px 18px rgba(49,39,28,.035); }
.production-group-heading { position:relative;display:flex;min-height:64px;padding:10px 50px 10px 14px;align-items:center;justify-content:space-between;gap:18px;cursor:pointer;list-style:none;background:#fff; }
.production-group-heading::-webkit-details-marker { display:none; }
.production-group-heading::after { content:'⌄';position:absolute;top:50%;right:14px;display:grid;width:28px;height:28px;border-radius:50%;place-items:center;color:#4f765b;background:#edf3ee;font-size:1rem;font-weight:850;transform:translateY(-50%);transition:transform .16s ease; }
.production-recipe-group[open]>.production-group-heading { border-bottom:1px solid #e3ddd5;background:#f4f7f3; }
.production-recipe-group[open]>.production-group-heading::after { transform:translateY(-50%) rotate(180deg); }
.production-group-heading>span:first-child { display:grid;min-width:0;gap:2px; }
.production-group-title { font-family:Georgia,serif;font-size:1.15rem;font-weight:500; }
.production-group-heading small { color:var(--muted);font-size:.62rem; }
.production-group-count { display:flex;min-width:0;align-items:center;justify-content:flex-end;gap:5px;color:var(--muted);font-size:.68rem; }
.production-group-count b { display:grid;min-width:28px;height:28px;padding:0 7px;border-radius:9px;place-items:center;color:#365b40;background:#edf3ee;font-size:.73rem; }
.production-group-count em { font-style:normal; }
.production-group-count strong { padding:4px 7px;border-radius:999px;color:#8a4a31;background:#fff0e8;font-size:.61rem;white-space:nowrap; }
.production-group-count strong[hidden] { display:none; }
.production-card-grid { display:grid;padding:10px;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:8px;background:#faf9f7; }
.production-recipe-card { position: relative; display: flex; min-height: 82px; padding: 11px 12px; border: 1px solid #dfd8cf; border-radius: 11px; align-items: center; justify-content: space-between; gap: 10px; color: var(--ink); background: #fff; box-shadow: 0 3px 12px rgba(49, 39, 28, .025); text-align: left; touch-action: manipulation; transition: border-color .12s, background .12s, transform .12s; }
.production-recipe-card:not(:disabled):active { transform: scale(.985); }
.production-recipe-card:not(:disabled):hover, .production-recipe-card.is-selected { border-color: #7ba085; background: #fbfdfb; }
.production-recipe-card.has-integrity-warning { border:2px solid #c96b4d;background:#fff8f4;box-shadow:0 8px 24px rgba(145,67,43,.12); }
.production-card-copy { min-width: 0; }
.production-card-copy strong, .production-card-copy small, .production-card-copy .production-card-format { display: block; }
.production-card-copy strong { margin-bottom: 3px; font-size: .88rem; line-height: 1.25; }
.production-card-copy small { color: var(--accent-dark); font-size: .75rem; font-weight: 750; line-height: 1.35; }
.production-card-copy .production-card-format { margin-top: 2px; color: var(--muted); font-size: .7rem; line-height: 1.35; }
.production-integrity-warning { display:grid;margin-top:8px;padding:8px 10px;border:1px solid rgba(185,78,48,.38);border-radius:10px;gap:3px;color:#7f3424;background:#fff0e9;line-height:1.35;white-space:normal; }
.production-integrity-warning strong,.production-integrity-warning b { color:#8f3825;font-size:.72rem;font-weight:900; }
.production-integrity-warning span,.production-integrity-warning small { display:block;margin:0!important;overflow:visible!important;color:#7f3424!important;font-size:.66rem!important;font-weight:750!important;text-overflow:clip!important;white-space:normal!important; }
.production-catalog-controls { display: flex; flex: 0 0 auto; gap: 5px; }.production-add-mark,.production-subtract-mark { display: grid; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 10px; place-items: center; cursor: pointer; font: inherit; font-size: 1.3rem; }.production-add-mark { color: #fff; background: #4f765b; }.production-subtract-mark { border: 1px solid #d7d0c7; color: #5f5951; background: #f3f0eb; }.production-subtract-mark:disabled { opacity: .35; cursor: not-allowed; }
.production-card-count { position: absolute; top: 8px; right: 8px; display: grid; min-width: 25px; height: 25px; padding: 0 6px; border: 2px solid #fff; border-radius: 999px; color: #fff; background: var(--accent); font-size: .72rem; place-items: center; }
.production-card-count[hidden] { display: none; }
.production-recipe-card.is-unavailable { cursor: not-allowed; opacity: .62; }
.production-card-warning { color: var(--danger); font-size: .7rem; font-weight: 800; }
.production-no-results { padding: 36px 20px; border: 1px dashed #d7cec3; border-radius: 16px; color: var(--muted); text-align: center; }
.production-empty-catalog { margin-top: 24px; }
.production-empty-catalog .button { margin-top: 20px; }

.production-bag { z-index: 20; display: flex; min-width: 0; overflow: hidden; border-left: 1px solid var(--line); background: #fff; flex-direction: column; }
.production-bag-header { display: flex; padding: 24px 24px 17px; border-bottom: 1px solid var(--line); align-items: center; justify-content: space-between; gap: 18px; }
.production-bag-header h2 { margin: 3px 0 0; font-family: Georgia, serif; font-size: 1.6rem; font-weight: 500; }
.production-bag-close { display: none; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 11px; color: var(--ink); background: var(--canvas); cursor: pointer; font-size: 1.5rem; }
.production-bag-summary { display: grid; padding: 12px 24px; border-bottom: 1px solid var(--line); grid-template-columns: 1fr 1fr; gap: 10px; }
.production-bag-summary > div { display: flex; padding: 10px 12px; border-radius: 10px; align-items: center; justify-content: space-between; background: #f7f4ef; }
.production-bag-summary span { color: var(--muted); font-size: .72rem; }
.production-bag-summary strong { font-size: 1.05rem; }
.production-bag-content { min-height: 0; overflow-y: auto; padding: 16px 18px 28px; flex: 1; overscroll-behavior: contain; }
.production-bag-content:empty { display: none; }
.production-bag-empty { display: grid; margin: auto; padding: 30px; color: var(--muted); text-align: center; place-items: center; }
.production-bag-empty[hidden] { display: none; }
.production-bag-empty > span { display: grid; width: 55px; height: 55px; margin-bottom: 14px; border-radius: 16px; color: #4f765b; background: #edf3ee; font-size: 1.7rem; place-items: center; }
.production-bag-empty strong { color: var(--ink); }
.production-bag-empty p { margin: 4px 0 0; font-size: .82rem; }
.production-selected-group { overflow: hidden; margin-bottom: 10px; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.production-selected-group-heading { display: flex; padding: 9px 11px; align-items: center; justify-content: space-between; gap: 12px; background: #f0f4ef; }
.production-selected-group-heading h3 { margin: 0; font-family: Georgia, serif; font-size: 1rem; font-weight: 500; }
.production-selected-group-heading span { color: #4c6652; font-size: .72rem; font-weight: 750; }
.production-selected-item { display: grid; min-height: 58px; padding: 7px 9px 7px 11px; border-bottom: 1px solid var(--line); grid-template-columns: minmax(0, 1fr) 126px 34px; align-items: center; gap: 8px; }
.production-selected-copy { min-width: 0; }
.production-selected-copy strong, .production-selected-copy span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.production-selected-copy strong { font-size: .82rem; }
.production-selected-copy span { margin-top: 1px; color: var(--muted); font-size: .65rem; }
.production-selected-item.has-integrity-warning { min-height:92px;border-left:4px solid #c96b4d;background:#fffaf7; }
.production-selected-copy .production-integrity-warning { margin-top:6px; }
.production-remove-item { width: 36px; height: 36px; padding: 0; border: 0; border-radius: 9px; color: var(--danger); background: var(--danger-bg); cursor: pointer; font-size: 1.25rem; }
.production-item-controls { display: grid; width: 126px; margin: 0; grid-template-columns: 1fr; }
.production-item-controls .production-stepper-label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.production-stepper-label { display: block; margin: 0 0 5px; color: var(--muted); font-size: .68rem; font-weight: 750; }
.production-stepper-controls { display: grid; min-height: 40px; border: 1px solid var(--line); border-radius: 10px; background: #fff; grid-template-columns: 36px 1fr 36px; align-items: center; }
.production-stepper-controls button { align-self: stretch; padding: 0; border: 0; color: #3f674a; background: #f1f5f1; cursor: pointer; font-size: 1.25rem; font-weight: 700; touch-action: manipulation; }
.production-stepper-controls button:first-child { border-radius: 10px 0 0 10px; }
.production-stepper-controls button:last-child { border-radius: 0 10px 10px 0; }
.production-stepper-controls button:disabled { color: #aaa; cursor: default; background: #f7f7f7; }
.production-stepper-controls strong { text-align: center; }
.production-batch-result { margin-top: 9px; padding: 7px 9px; border-radius: 8px; color: #526257; background: #f2f4f1; font-size: .72rem; font-weight: 700; text-align: center; }
.production-group-summary { padding: 7px 11px; }
.production-group-summary > div { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.production-group-summary span { color: var(--muted); font-size: .75rem; }
.production-group-summary strong { font-size: .9rem; }
.production-ingredients summary { position: relative; padding: 12px 40px 12px 15px; cursor: pointer; list-style: none; font-size: .78rem; font-weight: 800; }
.production-ingredients summary::-webkit-details-marker { display: none; }
.production-ingredients summary::after { content: '↓'; position: absolute; top: 50%; right: 15px; font-size: 1rem; transform: translateY(-50%); }
.production-ingredients[open] summary::after { content: '↑'; }
.production-ingredient-list { padding: 0 15px 13px; }
.production-ingredient-list > div { display: flex; padding: 7px 0; border-top: 1px solid #eee9e3; align-items: center; justify-content: space-between; gap: 16px; font-size: .75rem; }
.production-ingredient-list span { color: var(--muted); }
.production-bag-footer { display: grid; padding: 12px 18px max(12px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: #fff; gap: 9px; }
.production-bag-footer[hidden] { display: none; }
.production-start-button { width: 100%; min-height: 54px; }
.production-clear-button { width: 100%; color: var(--danger); background: var(--danger-bg); }
.production-drawer-backdrop { display: none; }

.production-work-page { min-height: 100vh; background: #f4f1ec; }
.production-sheets-shell { width: min(100% - 40px, 1120px); margin: 0 auto; padding: 36px 0 80px; }
.production-sheets-shell > .app-navigation-fullscreen { position: relative; left: 50%; transform: translateX(-50%); }
.production-work-heading { display: flex; margin-bottom: 20px; align-items: flex-end; justify-content: space-between; gap: 24px; }
.production-work-heading h1 { margin: 5px 0 7px; font-family: Georgia, serif; font-size: clamp(2.25rem, 5vw, 3.8rem); font-weight: 500; letter-spacing: -.035em; line-height: 1.05; }
.production-work-heading p:not(.eyebrow) { margin: 0; color: var(--muted); }
.production-sheets { display: grid; gap: 14px; }
.production-sheet-card { overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: 0 12px 40px rgba(49, 39, 28, .06); }
.production-sheet-header { position: relative; display: flex; padding: clamp(16px, 2.5vw, 23px); padding-right: clamp(58px, 7vw, 72px); border-bottom: 1px solid var(--line); align-items: flex-start; justify-content: space-between; gap: 18px; cursor: pointer; list-style: none; }
.production-sheet-header::-webkit-details-marker { display: none; }
.production-sheet-header::after { content: none; }
.production-sheet-card:not([open]) > .production-sheet-header { border-bottom: 0; }
.production-sheet-card:not([open]) > .production-sheet-header::after { content: '⌄'; position: absolute; top: 50%; right: clamp(20px, 3vw, 30px); display: grid; width: 34px; height: 34px; border-radius: 50%; color: var(--ink); background: var(--canvas); font-size: 1.2rem; font-weight: 800; line-height: 1; transform: translateY(-50%); place-items: center; }
.production-sheet-card.is-complete { border-color: #abc2b0; }
.production-sheet-card.has-integrity-warning { border:2px solid #c96b4d;box-shadow:0 12px 40px rgba(145,67,43,.12); }
.production-sheet-card > .production-integrity-warning { margin:12px clamp(16px,3vw,24px) 4px; }
.production-sheet-card.is-complete > .production-sheet-header { background: #f6faf7; }
.production-sheet-base { display:block;margin-top:-1px;color:#667069;font-size:.72rem;font-weight:700;line-height:1.35; }
.production-sheet-measures { display: flex; margin: 5px 0 4px; flex-wrap: wrap; gap: 5px; }
.production-sheet-measures > span { display: flex; min-height: 28px; padding: 4px 8px; border-radius: 7px; align-items: baseline; gap: 6px; background: #f2f5f2; }
.production-sheet-measures small { color: var(--muted); font-size: .62rem; }
.production-sheet-measures strong { color: #405d47; font-size: .72rem; }
.production-sheet-header h2 { margin: 3px 0; font-family: Georgia, serif; font-size: clamp(1.4rem, 2.5vw, 1.9rem); font-weight: 500; line-height: 1.1; }
.production-sheet-header p { margin: 0; color: var(--muted); font-size: .85rem; }
.production-sheet-status { display: inline-flex; margin-top: 6px; padding: 3px 7px; border-radius: 999px; color: #765c28; background: #fff2d5; font-size: .65rem; font-weight: 800; }
.production-sheet-card.is-complete .production-sheet-status { color: #3f6c49; background: #dfede2; }
.production-sheet-amount { display: grid; min-width: 122px; min-height: 44px; overflow: hidden; border: 1px solid #c8dacb; border-radius: 11px; background: #edf3ee; grid-template-columns: 38px minmax(38px,1fr) 38px; align-items: stretch; text-align: center; }
.production-sheet-amount button { padding: 0; border: 0; color: #365d40; background: #dfeadf; cursor: pointer; font: inherit; font-size: 1.25rem; font-weight: 800; touch-action: manipulation; }
.production-sheet-amount button:disabled { color: #9daa9f; background: #e9eee9; cursor: default; }
.production-sheet-amount strong { display: grid; font-size: 1.15rem; place-items: center; }
.production-sheet-meta { display: grid; padding: 10px clamp(16px, 3vw, 24px); border-bottom: 1px solid var(--line); background: #faf8f5; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.production-sheet-meta > div { display: flex; min-height: 42px; padding: 7px 11px; border-radius: 9px; align-items: center; justify-content: space-between; gap: 16px; background: #fff; }
.production-sheet-meta > div:first-child { border: 1px solid #bfd0c2; background: #f2f7f3; }
.production-sheet-meta span { color: var(--muted); font-size: .78rem; }
.production-sheet-adjustments { margin: 10px clamp(16px, 3vw, 24px) 0; padding: 11px; border: 1px solid #d9e4db; border-radius: 12px; background: #f6faf7; }
.production-adjustments-heading { display: flex; margin-bottom: 8px; align-items: center; justify-content: space-between; gap: 16px; }
.production-adjustments-heading strong { font-size: .9rem; }
.production-adjustments-heading span { color: var(--muted); font-size: .7rem; }
.production-adjustment-controls { display: grid; grid-template-columns: minmax(150px, .8fr) minmax(170px, 1fr) auto; align-items: end; gap: 10px; }
.production-adjustment-controls.is-quantity-only { grid-template-columns: minmax(150px, 230px); }
.production-adjustment-controls.is-weight-only { grid-template-columns: minmax(170px,230px) auto; justify-content: start; }
.production-adjustment-control > span { display: block; margin-bottom: 5px; color: var(--muted); font-size: .7rem; font-weight: 750; }
.production-adjustment-stepper { display: grid; height: 42px; overflow: hidden; border: 1px solid #cfd9d1; border-radius: 10px; background: #fff; grid-template-columns: 40px 1fr 40px; align-items: center; }
.production-adjustment-stepper button { align-self: stretch; padding: 0; border: 0; color: #3f674a; background: #edf3ee; cursor: pointer; font-size: 1.25rem; }
.production-adjustment-stepper button:disabled { color: #aaa; cursor: default; background: #f5f5f5; }
.production-adjustment-stepper strong { text-align: center; }
.production-weight-stepper strong { font-size: .86rem; }
.production-adjustment-reset { min-height: 42px; padding: 0 12px; border: 1px solid #cfd9d1; border-radius: 10px; color: #45634c; background: #fff; cursor: pointer; font-size: .72rem; font-weight: 750; }
.production-sheet-section-heading { display: flex; padding: 14px clamp(16px, 3vw, 24px) 7px; align-items: flex-end; justify-content: space-between; gap: 18px; }
.production-sheet-section-heading h3, .production-sheet-instructions h3 { margin: 0; font-family: Georgia, serif; font-size: 1.3rem; font-weight: 500; }
.production-sheet-section-heading span { color: var(--muted); font-size: .72rem; }
.production-check-list { display: grid; padding: 0 clamp(16px, 3vw, 24px) 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
.production-check-row { display: grid; min-height: 48px; padding: 6px 0; border-bottom: 1px solid #eee9e3; align-items: center; grid-template-columns: 30px 1fr auto; gap: 9px; cursor: pointer; }
.production-check-row:last-child { border-bottom: 0; }
.production-check-row > input { position: absolute; opacity: 0; pointer-events: none; }
.production-checkbox { display: grid; width: 28px; height: 28px; border: 2px solid #cfc7bd; border-radius: 8px; color: transparent; background: #fff; place-items: center; transition: border-color .12s, background .12s, color .12s; }
.production-check-row b { font-size: .86rem; }
.production-check-row.is-checked { color: #687168; }
.production-check-row.is-checked strong { text-decoration: line-through; }
.production-check-row.is-checked .production-checkbox { border-color: #4f765b; color: #fff; background: #4f765b; }
.production-check-row:focus-within { outline: 3px solid rgba(79, 118, 91, .22); outline-offset: 3px; border-radius: 8px; }
.production-check-row.has-integrity-warning { margin:4px 0;padding:8px;border:1px solid rgba(185,78,48,.45);border-radius:9px;background:#fff0e9; }
.production-ingredient-warning { grid-column:2/-1;color:#923c28;font-size:.68rem;font-weight:900; }
.production-sheet-grouped > .production-integrity-warning { margin:0 10px 10px; }
.production-final-check { position:relative;display:grid;margin:0 clamp(16px,3vw,24px) 14px;padding:13px 14px;border:1px solid #d4cec5;border-radius:11px;grid-template-columns:30px minmax(0,1fr);align-items:center;gap:10px;background:#faf8f5;cursor:pointer; }.production-final-check>input { position:absolute;opacity:0;pointer-events:none; }.production-final-check>span:last-child { display:grid;gap:2px; }.production-final-check strong { font-size:.88rem; }.production-final-check small { color:var(--muted);font-size:.72rem;line-height:1.35; }.production-final-check.is-checked { border-color:#7fa28a;background:#e8f3ea; }.production-final-check.is-checked .production-checkbox { border-color:#3f714b;color:#fff;background:#3f714b; }.production-final-check:focus-within { outline:3px solid rgba(79,118,91,.22);outline-offset:2px; }
.production-sheet-instructions { margin: 0 clamp(16px, 3vw, 24px) 14px; padding: 13px; border-radius: 11px; background: #f7f4ef; }
.production-sheet-instructions > p { margin: 9px 0 0; color: #555149; font-size: .9rem; white-space: pre-line; }
.production-sheet-instructions .production-instruction-steps p { color:#555149;font-size:.9rem; }
.production-specific-instructions { margin: 10px 0; padding: 11px 13px; border: 1px solid #e5c7b6; border-left: 4px solid #bd6848; border-radius: 10px; background: #fff8f3; color: #433d37; }
.production-specific-instructions strong { display: block; color: #8d472f; font-size: .75rem; letter-spacing: .02em; }
.production-specific-instructions p { margin: 4px 0 0; color: #4f4942; font-size: .82rem; line-height: 1.5; white-space: pre-line; }
.production-sheets-empty { margin-top: 25px; }
.production-sheets-empty[hidden] { display: none; }
.production-sheets-empty .button { margin-top: 20px; }

.recipe-use-fieldset { margin: 0 0 22px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; }
.recipe-use-fieldset legend { padding: 0 6px; font-size: .88rem; font-weight: 750; }
.recipe-use-options { display: flex; flex-wrap: wrap; gap: 8px; }
.recipe-use-options label { position: relative; margin: 0; cursor: pointer; }
.recipe-use-options input { position: absolute; width: 1px; height: 1px; margin: -1px; opacity: 0; }
.recipe-use-options span { display: block; padding: 8px 11px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: #fff; font-size: .76rem; }
.recipe-use-options input:checked + span { border-color: #71977a; color: #365b40; background: #edf4ee; box-shadow: 0 0 0 3px rgba(79, 118, 91, .1); }
.recipe-use-options input:focus-visible + span { outline: 3px solid rgba(79, 118, 91, .2); }
.recipe-use-messages { display: grid; margin-top: 10px; gap: 5px; }
.form-stack .recipe-use-messages small,.form-stack .recipe-use-messages .field-error { display: block; margin: 0; line-height: 1.4; }
.elaboration-recipes-card { padding: 22px; }
.recipes-heading { display: flex; padding: 0 0 12px; align-items: center; justify-content: space-between; gap: 16px; }
.recipes-heading h2 { margin: 2px 0 0; }
.elaboration-recipes-list { display: grid; margin-top: 16px; gap: 8px; }
.elaboration-recipe-item { display: flex; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; align-items: center; justify-content: space-between; gap: 16px; background: #fff; }
.elaboration-recipe-item > div:first-child { display: grid; gap: 3px; }
.elaboration-recipe-item strong { font-size: .88rem; }
.elaboration-recipe-item span { color: var(--muted); font-size: .72rem; }
.order-modal.recipe-variant-modal { width: min(94vw,680px); max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); padding: 0; overflow: hidden; border: 0; border-radius: 16px; background: transparent; }
.recipe-variant-modal::backdrop { background: rgba(30,27,23,.55); backdrop-filter: blur(3px); }
.recipe-variant-modal .order-modal-card { box-sizing: border-box; max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; }
.recipe-variant-modal .form-actions { position: sticky; z-index: 2; bottom: -24px; margin: 12px -24px -24px; padding: 12px 24px 20px; border-top: 1px solid var(--line); background: rgba(255,255,255,.97); box-shadow: 0 -8px 20px rgba(45,38,31,.06); backdrop-filter: blur(7px); }
.variant-recipe-cost { margin: 0 0 10px; }
.variant-recipe-weight { margin: 0 0 8px; }
.order-table .table-row { grid-template-columns: .65fr 1.3fr .8fr .72fr .6fr 140px; }
.order-identifier-cell { color: #3f674a; font-weight: 850; }

.order-form-shell { width: min(100% - 36px, 1180px); }
.order-form-shell > form { display: grid; gap: 20px; }
.order-editor-card { padding: clamp(22px, 4vw, 34px); }
.order-section-heading, .order-production-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 22px; }
.order-section-heading h1 { margin: 3px 0 0; font-family: Georgia, serif; font-size: clamp(2rem, 4vw, 3rem); font-weight: 500; }
.order-section-heading > span { color: var(--muted); font-size: .75rem; }
.order-editor-card .alert ul { margin: 7px 0 0; padding-left: 20px; }
.order-personal-grid { display: grid; margin-top: 22px; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px 16px; }
.order-field { min-width: 0; }
.order-field > label, .order-field > legend { display: block; margin: 0 0 5px; font-size: .74rem; font-weight: 750; }
.order-field input, .order-field textarea, .order-field select { width: 100%; min-height: 43px; margin: 0; padding: 9px 12px; border: 1px solid var(--line); border-radius: 9px; outline: 0; background: #fff; }
.order-field textarea { resize: vertical; }
.order-field input:focus, .order-field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(189, 104, 72, .1); }
.order-field > small { display: block; margin-top: 4px; color: var(--muted); font-size: .68rem; }
.budget-fixed-date { min-height: 69px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 9px; background: rgba(255, 255, 255, .72); }
.budget-fixed-date > span { display: block; margin-bottom: 4px; font-size: .74rem; font-weight: 750; }
.budget-fixed-date > strong { display: block; font-size: .94rem; }
.budget-fixed-date > small { margin-top: 2px; }
.order-identifier { display: grid; min-height: 42px; margin-top: 6px; padding: 6px 10px; border: 1px solid #d8e3da; border-radius: 9px; background: #f2f7f3; grid-template-columns: 1fr auto; align-items: center; gap: 0 10px; }
.order-identifier span { color: #56705c; font-size: .68rem; font-weight: 750; }
.order-identifier strong { color: #31533a; font-size: 1rem; }
.order-identifier small { color: var(--muted); font-size: .62rem; grid-column: 1 / -1; }
.order-client-field { grid-column: span 1; }
.order-client-field .search-suggestions { top: calc(100% + 5px); }
.order-client-field .suggestion-item { grid-template-columns: minmax(0, 1fr); gap: 2px; }
.order-client-field .suggestion-item .suggestion-format { color: var(--muted); font-size: .7rem; font-weight: 600; }
.order-client-field .selection-valid > input[type="text"], .order-recipe-autocomplete.selection-valid > input[type="text"] { border-color: #65a36a; box-shadow: 0 0 0 3px rgba(77, 151, 86, .11); }
.order-client-field .selection-invalid > input[type="text"], .order-recipe-autocomplete.selection-invalid > input[type="text"] { border-color: #c55c58; box-shadow: 0 0 0 3px rgba(197, 92, 88, .11); }
.order-delivery-choice { display: grid; min-width: 0; margin: 0; padding: 0; border: 0; grid-template-columns: 1fr 1fr; align-items: end; gap: 5px 7px; }
.order-delivery-choice legend { position: static; grid-column: 1 / -1; transform: none; }
.order-delivery-choice label { position: relative; flex: 1; margin: 0; cursor: pointer; }
.order-delivery-choice input { position: absolute; opacity: 0; }
.order-delivery-choice span { display: grid; min-height: 43px; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); background: #fff; place-items: center; font-size: .78rem; font-weight: 750; }
.order-delivery-choice input:checked + span { border-color: #71977a; color: #365b40; background: #edf4ee; }
.order-delivery-group, .order-payment-group { display: grid; min-width: 0; align-content: start; gap: 10px; }
.order-payment-internal-note { margin-top: -4px; color: var(--muted); font-size: .76rem; }
.order-address[hidden] { display: none; }
.order-observations { grid-column: span 2; }
.money-input { position: relative; }
.money-input input { padding-right: 34px; }
.money-input span { position: absolute; top: 50%; right: 13px; color: var(--muted); transform: translateY(-50%); }
.order-production-section { padding: clamp(20px, 3vw, 30px); border: 1px solid var(--line); border-radius: var(--radius); background: #f4f1ec; }
.order-production-heading h2 { margin: 3px 0; font-family: Georgia, serif; font-size: clamp(1.7rem, 3vw, 2.35rem); font-weight: 500; }
.order-production-heading p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: .82rem; }
.order-products { display: grid; margin-top: 18px; gap: 12px; }
.order-product-card { overflow: visible; border: 1px solid #dcd5cb; border-radius: 15px; background: #fff; box-shadow: 0 8px 25px rgba(49, 39, 28, .04); }
.order-product-summary, .order-piece-summary { position: relative; display: flex; padding: 14px 55px 14px 16px; align-items: center; justify-content: space-between; gap: 15px; cursor: pointer; list-style: none; }
.order-product-summary::-webkit-details-marker, .order-piece-summary::-webkit-details-marker { display: none; }
.order-product-summary::after, .order-piece-summary::after { content: '↓'; position: absolute; top: 50%; right: 17px; display: grid; width: 30px; height: 30px; border-radius: 50%; background: var(--canvas); transform: translateY(-50%); place-items: center; }
.order-product-card[open] > .order-product-summary::after, .order-piece-card[open] > .order-piece-summary::after { content: '↑'; }
.order-product-summary strong { font-family: Georgia, serif; font-size: 1.25rem; font-weight: 500; }
.order-product-summary span, .order-piece-summary span { color: var(--muted); font-size: .72rem; }
.order-product-body { padding: 0 16px 16px; border-top: 1px solid var(--line); }
.order-product-fields { display: grid; padding-top: 13px; grid-template-columns: minmax(210px, 1.5fr) minmax(85px, .45fr) minmax(110px, .55fr) minmax(145px, .7fr); gap: 10px; }
.order-builder-field { min-width: 0; }
.order-builder-field > label { display: block; margin: 0 0 4px; color: var(--muted); font-size: .68rem; font-weight: 750; }
.order-builder-field input, .order-builder-field select, .order-builder-field textarea, .order-product-notes textarea { width: 100%; min-height: 40px; margin: 0; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; outline: 0; background: #fff; font-size: .82rem; }
.order-builder-field input:focus, .order-builder-field select:focus, .order-builder-field textarea:focus { border-color: #71977a; box-shadow: 0 0 0 3px rgba(79, 118, 91, .1); }
.order-field-invalid > input, .order-field-invalid > textarea, .order-field-invalid > select, .order-field-invalid .order-control-invalid, .order-control-invalid { border-color: #b84a43 !important; background: #fff8f7 !important; box-shadow: 0 0 0 3px rgba(184, 74, 67, .13) !important; }
.order-delivery-choice input.order-control-invalid + span { border-color: #b84a43; color: #a43d36; background: #fff8f7; box-shadow: 0 0 0 3px rgba(184, 74, 67, .13); }
.order-product-card.order-field-invalid, .order-component-row.order-field-invalid, .order-product-extra-row.order-field-invalid, .order-production-section.order-field-invalid { border-color: #b84a43; box-shadow: 0 0 0 3px rgba(184, 74, 67, .11); }
.order-field-error-message { margin: 6px 0 0; color: #a43d36; font-size: .7rem; font-weight: 750; line-height: 1.35; }
.order-component-row > .order-field-error-message, .order-product-extra-row > .order-field-error-message { grid-column: 1 / -1; }
.order-product-card > .order-field-error-message, .order-production-section > .order-field-error-message { margin: 10px 16px 14px; }
.order-product-price { position: relative; }
.order-product-price input { padding-right: 27px; }
.order-product-price::after { content: '€'; position: absolute; right: 10px; bottom: 11px; color: var(--muted); font-size: .78rem; }
.order-product-notes { display: block; margin-top: 10px; }
.order-product-notes > label { display: block; margin-bottom: 4px; color: var(--muted); font-size: .68rem; font-weight: 750; }
.order-product-notes textarea { resize: vertical; }
.order-pieces { display: grid; margin-top: 12px; gap: 9px; }
.order-piece-card { border: 1px solid #dde5df; border-radius: 11px; background: #f8faf8; }
.order-piece-summary { padding: 10px 48px 10px 12px; }
.order-piece-summary::after { right: 11px; width: 27px; height: 27px; background: #fff; }
.order-piece-summary strong { font-size: .9rem; }
.order-piece-body { padding: 11px; border-top: 1px solid #dde5df; }
.order-piece-fields { display: grid; grid-template-columns: minmax(170px, .7fr) minmax(240px, 1.3fr); gap: 9px; }
.order-piece-fields textarea { resize: vertical; }
.order-component-heading { display: flex; margin: 13px 0 7px; align-items: center; justify-content: space-between; gap: 15px; }
.order-component-heading strong { font-size: .82rem; }
.order-component-heading span { color: var(--muted); font-size: .68rem; }
.order-components { display: grid; gap: 7px; }
.order-component-row { display: grid; padding: 8px; border: 1px solid #e9e4dd; border-radius: 9px; align-items: center; grid-template-columns: 30px minmax(210px, .85fr) 88px minmax(230px, 1.15fr) 34px; gap: 8px; background: #fff; }
.order-component-row.is-dragging { opacity: .45; }
.order-component-row > .order-builder-field { display: grid; grid-template-rows: 17px 40px; }
.order-component-row > .order-builder-field > label { align-self: start; }
.order-component-grip { display: grid; width: 30px; height: 40px; border-radius: 7px; place-items: center; color: #768078; background: #f0f3f0; cursor: grab; font-size: 1rem; }
.order-component-grip:active { cursor: grabbing; }
.order-component-identity { display: flex; min-width: 0; align-items: center; flex-wrap: wrap; gap: 9px; }
.order-component-copy { display: block; overflow: hidden; min-width: 0; }
.order-component-identity strong, .order-component-identity small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.order-component-identity strong { min-width: 0; font-size: .84rem; }
.order-component-identity small { margin-top: 2px; color: var(--muted); font-size: .68rem; font-weight: 600; }
.order-component-cost { flex: 0 0 auto; margin-left: auto; color: #20551a; font-size: .74rem; font-weight: 850; white-space: nowrap; }
.order-component-cost.is-incomplete { color: #9a661d; font-size: .64rem; }
.order-component-warning { flex: 1 0 100%; padding: 7px 9px; border: 1px solid #e3ad77; border-radius: 8px; color: #7b351d; background: #fff6ec; font-size: .68rem; line-height: 1.35; }
.order-component-warning strong { overflow: visible; white-space: normal; }
.order-component-warning ul { margin: 3px 0 0; padding-left: 17px; }
.order-component-warning li + li { margin-top: 2px; }
.order-component-batches input { text-align: center; }
.order-use-badge { flex: 0 0 auto; padding: 5px 8px; border-radius: 999px; color: #42604a; background: #edf4ee; font-size: .64rem; font-weight: 800; text-transform: uppercase; }
.order-component-buttons { display: flex; margin-bottom: 10px; flex-wrap: wrap; gap: 7px; }
.order-calendar-legend { margin: -3px 0 11px; color: var(--muted); font-size: .66rem; line-height: 1.4; }
.order-component-add { min-height: 36px; padding: 7px 11px; border: 1px solid #bed0c1; border-radius: 9px; color: #365b40; background: #f4f8f4; cursor: pointer; font: inherit; font-size: .74rem; font-weight: 800; }
.order-component-add:hover, .order-component-add:focus-visible { border-color: #71977a; background: #eaf3eb; }
.order-component-add.is-added { border-color: #d2d0cc; color: #77736d; background: #e9e8e5; }
.order-component-add.is-added:hover, .order-component-add.is-added:focus-visible { border-color: #bbb8b3; background: #e1e0dd; }
.order-component-add.is-added:disabled { opacity: 1; cursor: not-allowed; }
.order-component-add-image { border-color: #d4c8b7; color: #66513b; background: #faf7f2; }
.order-component-add-allergies:not(.is-added) { border-color: #dfb4aa; color: #8b3f32; background: #fff5f2; }
.order-product-information { display: grid; margin: 2px 0 10px; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.order-product-information-item { padding: 9px 11px; border: 1px solid #ddd6cc; border-radius: 9px; background: #faf8f5; }
.order-product-information-item strong { display: block; margin-bottom: 3px; font-size: .68rem; text-transform: uppercase; }
.order-product-information-item p { margin: 0; color: #59544d; font-size: .76rem; line-height: 1.4; white-space: pre-line; }
.order-product-information-item.is-allergy { border-color: #dfb4aa; background: #fff5f2; }
.order-product-information-item.is-allergy strong { color: #933f32; }
.order-product-extras { display: grid; margin-top: 9px; gap: 6px; }
.order-product-extra-row { display: grid; padding: 6px 7px 6px 11px; border: 1px solid #dfe9df; border-radius: 9px; align-items: center; grid-template-columns: minmax(0,1fr) 34px; gap: 8px; background: #f7faf7; }
.order-product-extra-content { display: flex; width: 100%; min-width: 0; padding: 4px 2px; border: 0; align-items: center; justify-content: space-between; gap: 14px; color: var(--ink); background: transparent; font: inherit; text-align: left; }
button.order-product-extra-content { cursor: pointer; }
.order-product-extra-content span { overflow: hidden; font-size: .78rem; text-overflow: ellipsis; white-space: nowrap; }
.order-product-extra-content strong { flex: 0 0 auto; color: #20551a; font-size: .8rem; white-space: nowrap; }
.order-product-extra-type { display: inline-flex; margin-right: 6px; padding: 2px 5px; border-radius: 999px; color: #4b6650; background: #e6eee5; font-size: .58rem; font-weight: 850; text-transform: uppercase; }
.order-product-extra-row .order-remove-button { min-height: 32px; height: 32px; margin-top: 0; }
.order-extra-ingredient-option { display: flex; align-items: center; justify-content: space-between; gap: 14px; text-align: left; }
.order-extra-ingredient-copy { display: grid; min-width: 0; gap: 2px; }
.order-extra-ingredient-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.order-extra-ingredient-copy small { color: var(--muted); font-size: .73rem; }
.order-extra-ingredient-price { flex: 0 0 auto; color: #20551a; white-space: nowrap; }
.order-complement-selection { display: grid; margin-top: 12px; padding: 12px; border: 1px solid rgba(32,85,26,.24); border-radius: 12px; align-items: end; grid-template-columns: minmax(150px,1fr) minmax(150px,.65fr) auto; gap: 12px; background: rgba(239,247,237,.8); }
.order-complement-selection[hidden] { display: none; }
.order-complement-selection > div:first-child { display: grid; gap: 3px; align-self: center; }
.order-complement-selection > div:first-child small { color: var(--muted); font-size: .7rem; }
.order-complement-selection > label { display: grid; gap: 5px; color: var(--muted); font-size: .68rem; font-weight: 800; }
.quantity-unit-input { display: grid; grid-template-columns: minmax(0,1fr) auto; }
.quantity-unit-input input { min-width: 0; border-radius: 9px 0 0 9px; }
.quantity-unit-input span { display: grid; min-width: 45px; padding: 0 10px; border: 1px solid var(--line); border-left: 0; border-radius: 0 9px 9px 0; place-items: center; color: var(--muted); background: rgba(255,255,255,.8); }
.order-complement-cost { display: grid; gap: 3px; text-align: right; }
.order-complement-cost span { color: var(--muted); font-size: .64rem; font-weight: 750; }
.order-complement-cost strong { color: #20551a; white-space: nowrap; }
.order-complement-selection .field-error { grid-column: 1/-1; margin: 0; }
.order-component-add-extra { border-color: rgba(32,85,26,.34); color: #20551a; background: rgba(235,245,233,.9); }
.order-component-add-other { border-color: rgba(181,105,34,.32); color: #844a17; background: rgba(255,246,232,.94); }
.order-other-modal-fields { display: grid; margin: 20px 0 8px; gap: 14px; }.order-other-modal-fields label { display: grid; gap: 6px; color: var(--muted); font-size: .72rem; font-weight: 800; }.order-other-modal-fields select,.order-other-modal-fields textarea { box-sizing: border-box; width: 100%; margin: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; outline: 0; color: var(--ink); background: #fff; box-shadow: inset 0 1px 2px rgba(45,38,30,.035); font: inherit; font-size: .85rem; }.order-other-modal-fields select { min-height: 43px; cursor: pointer; }.order-other-modal-fields textarea { min-height: 112px; resize: vertical; line-height: 1.45; }.order-other-modal-fields select:focus,.order-other-modal-fields textarea:focus { border-color: #71977a; box-shadow: 0 0 0 3px rgba(79,118,91,.1); }
.order-product-others { display: grid; gap: 7px; margin-top: 10px; }.order-product-other-row { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: stretch; gap: 6px; }.order-product-other-content { display: grid; min-width: 0; padding: 9px 11px; border: 1px solid #e3d5c5; border-radius: 11px; color: var(--ink); text-align: left; background: #fffaf3; grid-template-columns: auto minmax(0,1fr); align-items: center; gap: 9px; cursor: pointer; }.order-product-other-content span { overflow-wrap: anywhere; }.order-product-other-destination { padding: 3px 7px; border-radius: 999px; color: #7b4619; font-size: .67rem; font-weight: 850; text-transform: uppercase; letter-spacing: .03em; background: #f5dfc3; }
.order-extra-modal-fields { display: grid; margin: 20px 0 8px; grid-template-columns: minmax(0,1fr) 150px; gap: 12px; }
.order-extra-modal-fields > label { display: grid; gap: 5px; color: var(--muted); font-size: .7rem; font-weight: 800; }
.order-extra-modal-fields input { box-sizing: border-box; width: 100%; min-height: 42px; margin: 0; padding: 9px 11px; border: 1px solid var(--line); border-radius: 9px; background: #fff; font: inherit; }
.order-product-cost { display: grid; margin-top: 12px; padding: 11px 13px; border: 1px solid rgba(32,85,26,.22); border-radius: 12px; align-items: center; grid-template-columns: minmax(180px,1fr) auto; gap: 12px; background: linear-gradient(135deg,rgba(255,255,255,.92),rgba(238,246,238,.82)); box-shadow: inset 0 1px rgba(255,255,255,.85); }
.order-product-cost-copy { display: grid; gap: 2px; }
.order-product-cost-copy span { color: #244b28; font-size: .78rem; font-weight: 850; }
.order-product-cost-copy small { color: var(--muted); font-size: .66rem; }
.order-product-cost-total { min-width: 110px; padding-bottom: 8px; color: #20551a; font-family: Georgia,serif; font-size: 1.15rem; text-align: right; white-space: nowrap; }
.order-product-cost-total.is-incomplete { color: #9a661d; font-family: inherit; font-size: .72rem; }
.field-optional { color: var(--muted); font-size: .68rem; font-weight: 500; }
.order-client-help { display: flex; min-height: 20px; margin-top: 4px; align-items: center; justify-content: space-between; gap: 8px; }
.order-client-help small { color: var(--muted); }
.order-client-history-link { padding: 0; border: 0; color: #426a4d; background: transparent; cursor: pointer; font: inherit; font-size: .7rem; font-weight: 800; text-decoration: underline; text-underline-offset: 2px; }
.order-client-history-link[hidden] { display: none; }
.order-client-history-name { margin: 4px 0 0; color: var(--muted); font-size: .8rem; }
.order-client-history-content { display: grid; margin-top: 18px; gap: 9px; }
.order-client-history-modal { width: min(96vw, 980px); }
.order-client-history-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.order-client-history-table { width: 100%; border-collapse: collapse; background: #fff; font-size: .78rem; }
.order-client-history-table th { padding: 9px 11px; color: var(--muted); background: #f4f1ec; font-size: .66rem; letter-spacing: .04em; text-align: left; text-transform: uppercase; white-space: nowrap; }
.order-client-history-table td { padding: 10px 11px; border-top: 1px solid var(--line); vertical-align: top; }
.order-client-history-table th:first-child, .order-client-history-table td:first-child { width: 100px; white-space: nowrap; }
.order-client-history-table th:nth-child(2), .order-client-history-table td:nth-child(2) { width: 90px; white-space: nowrap; }
.order-client-history-table th:nth-child(4), .order-client-history-table td:nth-child(4) { width: 90px; }
.order-client-history-table th:last-child, .order-client-history-table td:last-child { width: 145px; }
.order-client-history-table tbody tr:hover { background: #faf9f7; }
.order-client-history-products { display: grid; min-width: 230px; gap: 6px; }
.order-client-history-product { display: grid; gap: 2px; }
.order-client-history-product + .order-client-history-product { padding-top: 6px; border-top: 1px solid #ebe5dd; }
.order-client-history-product > div { display: flex; justify-content: space-between; gap: 12px; }
.order-client-history-product strong { font-size: .8rem; }
.order-client-history-product span, .order-client-history-product small { color: var(--muted); font-size: .7rem; }
.order-client-history-pending { display: block; color: var(--danger); font-size: .74rem; }
.order-client-history-paid { color: #467453; font-weight: 800; }
.order-client-history-payment-note { display: block; margin-top: 3px; color: var(--muted); font-size: .67rem; line-height: 1.35; }
.order-client-history-muted { color: var(--muted); font-size: .72rem; }
.order-client-history-empty { margin: 0; padding: 20px; color: var(--muted); text-align: center; font-size: .8rem; }
.order-components-empty { margin: 3px 0 8px; padding: 12px; border: 1px dashed #d8d1c8; border-radius: 9px; color: var(--muted); font-size: .75rem; text-align: center; }
.order-component-recipe { position: relative; }
.order-component-recipe .search-suggestions { top: calc(100% + 4px); }
.order-recipe-autocomplete input:disabled { color: #8a867f; background: #f3f1ed; cursor: not-allowed; }
.order-remove-button { width: 34px; min-height: 40px; margin-top: 17px; padding: 0; border: 0; border-radius: 8px; align-self: start; color: var(--danger); background: var(--danger-bg); cursor: pointer; font-size: 1.2rem; }
.order-add-component { min-height: 36px; margin-top: 8px; padding: 0 11px; font-size: .74rem; }
.order-piece-actions, .order-product-actions { display: flex; margin-top: 10px; align-items: center; flex-wrap: wrap; gap: 8px; }
.order-piece-actions .button, .order-product-actions .button { min-height: 36px; padding: 0 11px; font-size: .74rem; }
.order-piece-actions .danger-action, .order-product-actions .danger-action { margin-left: auto; }
.order-form-actions { position: sticky; z-index: 8; bottom: 0; display: flex; padding: 12px; border: 1px solid var(--line); border-radius: 13px 13px 0 0; justify-content: flex-end; gap: 10px; background: rgba(255, 255, 255, .94); box-shadow: 0 -10px 30px rgba(49, 39, 28, .08); backdrop-filter: blur(8px); }
.order-products-empty { padding: 26px; border: 1px dashed #cfc6ba; border-radius: 12px; color: var(--muted); text-align: center; }
.order-modal { width: min(92vw, 620px); max-height: min(84vh, 720px); padding: 0; overflow: hidden; border: 0; border-radius: 17px; color: var(--ink); background: transparent; box-shadow: 0 24px 70px rgba(35, 29, 23, .28); }
.order-modal::backdrop { background: rgba(36, 31, 26, .48); backdrop-filter: blur(2px); }
.order-modal-card { max-height: min(84vh, 720px); padding: 24px; overflow: auto; border-radius: 17px; background: #fff; overscroll-behavior: contain; scroll-padding-bottom: 84px; }
.order-modal-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }
.order-modal-heading h2 { margin: 3px 0 0; font-family: Georgia, serif; font-size: clamp(1.5rem, 4vw, 2rem); font-weight: 500; }
.order-modal-close { display: grid; flex: 0 0 auto; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%; place-items: center; color: var(--muted); background: #f1eee9; cursor: pointer; font-size: 1.4rem; }
.order-modal.production-order-preview-modal { width: min(96vw, 980px); max-width: 980px; max-height: calc(100dvh - 24px); overflow: hidden; }
.order-modal.production-order-preview-modal .order-modal-card { box-sizing: border-box; width: 100%; max-height: calc(100dvh - 24px); padding: clamp(18px, 3vw, 30px); overflow-x: hidden; overflow-y: auto; }
.production-order-preview-modal .order-modal-close { position: sticky; z-index: 4; top: 0; margin-right: 0; margin-left: auto; }
.production-order-preview-modal [data-order-preview-content] { display: grid; clear: both; min-width: 0; gap: 12px; }
.production-order-preview-modal .production-order-preview-heading h2 { margin-top: 0; overflow-wrap: anywhere; }
.production-order-preview-modal .production-order-preview-meta { grid-template-columns: repeat(2,minmax(0,1fr)); }
.production-order-preview-modal .production-order-preview-note p,.production-order-preview-modal .production-order-preview-products strong,.production-order-preview-modal .production-order-preview-products small,.production-order-preview-modal .production-order-preview-products p,.production-order-preview-modal figcaption { white-space: normal; overflow-wrap: anywhere; }
.production-order-preview-modal .production-order-preview-products > article { min-width: 0; padding: 14px; }
.production-order-preview-modal .production-order-preview-products article > header { display: grid; grid-template-columns: minmax(0,1fr) auto; }
.production-order-preview-modal .production-order-preview-products article > header > div { min-width: 0; }
.production-order-preview-modal .production-order-preview-products article > header strong { font-size: .92rem; line-height: 1.35; }
.production-order-preview-modal .production-order-preview-products li strong { font-size: .76rem; line-height: 1.35; }
.production-order-preview-modal .production-order-preview-products li small,.production-order-preview-modal .production-order-preview-products article > p { font-size: .7rem; line-height: 1.45; }
.production-order-preview-modal .production-order-preview-images { display: grid; overflow: visible; grid-template-columns: repeat(auto-fill,minmax(130px,1fr)); gap: 9px; }
.production-order-preview-modal .production-order-preview-images figure { width: auto; min-width: 0; }
.production-order-preview-modal .production-order-preview-images button { height: 112px; }
@media (max-width: 650px) {
    .order-modal.production-order-preview-modal { width: calc(100vw - 12px); max-height: calc(100dvh - 12px); }
    .order-modal.production-order-preview-modal .order-modal-card { max-height: calc(100dvh - 12px); padding: 14px; }
    .production-order-preview-modal .production-order-preview-meta { grid-template-columns: 1fr; }
    .production-order-preview-modal .production-order-preview-products article > header { grid-template-columns: 1fr; }
    .production-order-preview-modal .production-order-preview-products article > header b { text-align: left; }
    .production-order-preview-modal .production-order-preview-images { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .production-order-preview-modal .production-order-preview-totals { display: grid; grid-template-columns: 1fr; }
}
.order-type-options { display: grid; margin-top: 22px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.order-type-option { display: grid; min-height: 90px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; align-content: center; gap: 3px; color: var(--ink); background: #faf9f7; text-align: left; cursor: pointer; }
.order-type-option:hover, .order-type-option:focus-visible { border-color: #71977a; background: #f0f6f1; }
.order-type-option strong { font-size: 1rem; }
.order-type-option span { color: var(--muted); font-size: .7rem; }
.order-modal-search { display: grid; margin-top: 20px; gap: 5px; color: var(--muted); font-size: .7rem; font-weight: 750; }
.order-modal-search input { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; outline: 0; font: inherit; }
.order-modal-search input:focus { border-color: #71977a; box-shadow: 0 0 0 3px rgba(79, 118, 91, .1); }
.order-modal-text { display: grid; margin-top: 20px; gap: 6px; color: var(--muted); font-size: .72rem; font-weight: 750; }
.order-modal-text textarea { width: 100%; min-height: 150px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; outline: 0; resize: vertical; font: inherit; font-size: .85rem; }
.order-modal-text textarea:focus { border-color: #71977a; box-shadow: 0 0 0 3px rgba(79,118,91,.1); }
.order-decoration-confirm-copy { margin: 18px 0 10px; color: var(--muted); font-size: .84rem; line-height: 1.55; }
.order-decoration-confirm-list { display: grid; margin: 0; padding: 0; gap: 7px; list-style: none; }
.order-decoration-confirm-list li { padding: 9px 11px; border: 1px solid #e2d9cc; border-radius: 9px; color: #55483a; background: #faf7f2; font-size: .82rem; font-weight: 750; }
.order-modal-actions { display: flex; margin-top: 15px; justify-content: flex-end; gap: 8px; }
.order-modal-actions .order-product-text-delete { margin-right: auto; }
.order-modal-card .form-actions,
.order-modal-card .order-modal-actions,
.expense-confirm-actions {
    position: sticky;
    z-index: 6;
    bottom: -24px;
    margin: 16px -24px -24px;
    padding: 12px 24px calc(16px + env(safe-area-inset-bottom,0px));
    border-top: 1px solid rgba(255,255,255,.82);
    background: rgba(255,255,255,.9);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.96),0 -10px 26px rgba(49,39,28,.08);
    -webkit-backdrop-filter: blur(16px) saturate(130%);
    backdrop-filter: blur(16px) saturate(130%);
}
.order-modal-card .form-actions,
.order-modal-card .order-modal-actions,
.expense-confirm-actions { align-items:center; flex-wrap:wrap; }
.order-modal-card .form-actions .button,
.order-modal-card .order-modal-actions .button,
.expense-confirm-actions .button { min-height:40px; border-radius:10px; }
.order-modal-results { display: grid; margin-top: 10px; gap: 7px; }
.order-recipe-option { min-height: 46px; padding: 10px 12px; border: 1px solid #e4ded6; border-radius: 10px; color: var(--ink); background: #fff; text-align: left; cursor: pointer; font: inherit; font-size: .85rem; font-weight: 750; }
.order-recipe-option strong, .order-recipe-option small { display: block; }
.order-recipe-option strong { font: inherit; }
.order-recipe-option small { margin-top: 3px; color: var(--muted); font-size: .72rem; font-weight: 600; line-height: 1.3; }
.order-recipe-option:hover, .order-recipe-option:focus-visible { border-color: #71977a; background: #f0f6f1; }
.order-modal-upload { display: grid; width: 100%; min-height: 130px; margin-top: 20px; padding: 20px; border: 2px dashed #d6cec4; border-radius: 13px; align-content: center; gap: 4px; color: var(--muted); background: #faf8f5; cursor: pointer; }
.order-modal-upload strong { color: var(--ink); font-size: .95rem; }
.order-modal-upload.is-dragging { border-color: #71977a; background: #f0f6f1; }
.order-product-image-list { display: grid; margin-top: 12px; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.order-product-image-list .order-image-preview { height: 105px; }
.order-product-image-list .order-image-body { padding: 8px; }
.order-product-image-list .order-image-body textarea { min-height: 54px; }
.order-images-section { padding: clamp(20px, 3vw, 30px); border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.order-image-dropzone { display: grid; min-height: 112px; margin-top: 18px; padding: 20px; border: 2px dashed #d6cec4; border-radius: 13px; outline: 0; align-content: center; color: var(--muted); background: #faf8f5; text-align: center; cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s; }
.order-image-dropzone strong, .order-image-dropzone span { display: block; }
.order-image-dropzone strong { color: var(--ink); font-size: .92rem; }
.order-image-dropzone span { margin-top: 3px; font-size: .73rem; }
.order-image-dropzone:hover, .order-image-dropzone:focus-visible, .order-image-dropzone.is-dragging { border-color: #71977a; background: #f0f6f1; box-shadow: 0 0 0 4px rgba(79, 118, 91, .1); }
.order-image-status { min-height: 18px; margin: 5px 0 0; color: var(--danger); font-size: .72rem; }
.order-image-list { display: grid; margin-top: 6px; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; }
.order-image-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #faf9f7; }
.order-image-preview { display: block; height: 150px; overflow: hidden; border-bottom: 1px solid var(--line); background: #ece8e2; }
.order-image-preview img { display: block; width: 100%; height: 100%; object-fit: cover; }
.order-image-body { padding: 10px; }
.order-image-meta { display: flex; min-width: 0; margin-bottom: 8px; align-items: center; justify-content: space-between; gap: 8px; }
.order-image-meta strong { overflow: hidden; font-size: .76rem; text-overflow: ellipsis; white-space: nowrap; }
.order-image-meta span { flex: 0 0 auto; color: var(--muted); font-size: .66rem; }
.order-image-body textarea { width: 100%; min-height: 66px; padding: 8px 9px; border: 1px solid var(--line); border-radius: 8px; outline: 0; resize: vertical; background: #fff; font: inherit; font-size: .78rem; }
.order-image-body textarea:focus { border-color: #71977a; box-shadow: 0 0 0 3px rgba(79, 118, 91, .1); }
.order-image-remove { margin-top: 7px; padding: 4px 0; border: 0; color: var(--danger); background: transparent; cursor: pointer; font-size: .7rem; font-weight: 750; }
.order-images-empty { margin: 8px 0 0; color: var(--muted); font-size: .76rem; text-align: center; }
.order-images-empty[hidden] { display: none; }

.planning-page { min-height: 100vh; background: #ebe7e0; }
.planning-header { position: relative; z-index: 30; display: grid; min-height: 62px; padding: 8px 18px; border-bottom: 1px solid var(--line); grid-template-columns: 1fr auto auto 1fr; align-items: center; gap: 14px; background: #fff; }
.planning-header > .button { justify-self: end; }
.planning-header-title { display: grid; text-align: center; }
.planning-header-title span { color: var(--muted); font-size: .64rem; }
.planning-header-title strong { font-family: Georgia,serif; font-size: 1.18rem; font-weight: 500; }
.planning-main { width: min(100% - 32px, 1580px); margin: 0 auto; padding: 24px 0 90px; }
.planning-page.planning-monthly-page { display: grid; height: 100dvh; min-height: 0; overflow: hidden; grid-template-rows: auto minmax(0,1fr); }
.planning-monthly-page .planning-main { display: grid; width: 100%; min-height: 0; margin: 0; padding: 0; grid-template-rows: auto minmax(0,1fr); }
.planning-monthly-page .planning-calendar { height: 100%; min-height: 0; margin: 0; padding: 8px 8px 78px; overflow: auto; overscroll-behavior: contain; scrollbar-gutter: stable; }
.planning-toolbar { display: flex; min-height: 68px; padding: 8px 14px; border-bottom: 1px solid #d8d2ca; align-items: center; gap: 10px; background: #f8f6f2; }
.planning-toolbar-heading { display: flex; min-width: 0; align-items: center; gap: 8px; }.planning-toolbar-heading > div { display: grid; min-width: 190px; }.planning-toolbar .eyebrow { margin: 0; }.planning-toolbar h1 { margin: 1px 0 0; font-family: Georgia,serif; font-size: 1.12rem; font-weight: 500; }
.planning-toolbar-navigation { min-height: 0; margin: 0; flex: 0 0 auto; flex-wrap: nowrap; gap: 5px; }.planning-toolbar-navigation .button { width: 34px; min-width: 34px; min-height: 34px; height: 34px; padding: 0; }.planning-toolbar-navigation .app-home-button,.planning-toolbar-navigation .app-back-button { width: 34px; min-width: 34px; }
.planning-navigation { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.planning-period-navigation { display: flex; align-items: center; }.planning-period-navigation .production-nav-button.is-disabled { opacity: .4; cursor: default; }
.planning-date-jump { display: grid; min-width: 155px; gap: 2px; }.planning-date-jump > span { color: var(--muted); font-size: .58rem; font-weight: 800; }
.planning-date-jump input { min-height: 38px; padding: 4px 8px; border: 1px solid #d9d3ca; border-radius: 8px; outline: 0; color: var(--ink); background: #fff; font: inherit; font-size: .72rem; }
.planning-date-jump input:focus { border-color: #71977a; box-shadow: 0 0 0 3px rgba(79,118,91,.1); }
.planning-toolbar .planning-view-toggle { margin-left: auto; align-self: center; order: 0; }
.planning-week-tabs { position: sticky; z-index: 20; top: 68px; display: grid; margin: 20px 0; padding: 7px; border: 1px solid var(--line); border-radius: 13px; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 6px; background: rgba(255,255,255,.95); backdrop-filter: blur(8px); }
.planning-week-tabs a { display: grid; min-width: 0; padding: 9px 11px; border-radius: 9px; color: var(--ink); text-decoration: none; gap: 2px; }
.planning-week-tabs a:hover { background: #f1f5f1; }
.planning-week-tabs strong { font-size: .76rem; }
.planning-week-tabs span { overflow: hidden; color: var(--muted); font-size: .63rem; text-overflow: ellipsis; white-space: nowrap; }
.planning-week { margin-top: 22px; scroll-margin-top: 145px; }
.planning-week-heading { display: flex; padding: 18px 20px; border-radius: 15px 15px 0 0; align-items: center; justify-content: space-between; gap: 20px; color: #fff; background: #34483a; }
.planning-week-heading h2 { margin: 2px 0; font-family: Georgia,serif; font-size: 1.45rem; font-weight: 500; }
.planning-week-heading span { color: rgba(255,255,255,.72); font-size: .72rem; }
.planning-week-heading .eyebrow { color: #bfd0c2; }
.planning-week-heading .button { color: #fff; border-color: rgba(255,255,255,.25); }
.planning-week-empty { margin: 0; padding: 17px 20px; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 15px 15px; color: var(--muted); background: #f8f6f2; font-size: .76rem; }
.planning-day { border: 1px solid var(--line); border-top: 0; background: #fff; }
.planning-day:last-child { border-radius: 0 0 15px 15px; }
.planning-day.is-empty { background: #f8f6f2; }
.planning-day-heading { display: flex; min-height: 48px; padding: 9px 15px; border-bottom: 1px solid var(--line); align-items: center; justify-content: space-between; gap: 12px; background: #f7f4ef; }
.planning-day-heading > div { display: flex; align-items: baseline; gap: 10px; }
.planning-day-heading strong { font-size: .75rem; letter-spacing: .04em; }
.planning-day-heading span { color: var(--muted); font-size: .67rem; }
.planning-day-empty { margin: 0; padding: 12px 16px; color: #9a958d; font-size: .73rem; }
.planning-order { margin: 14px; }
.planning-order + .planning-order { margin-top: 14px; }
.planning-order-top { display: grid; min-height: 28px; padding: 0 3px 7px; justify-items: end; gap: 2px; }
.planning-order-meta { color: var(--muted); font-size: .68rem; font-weight: 600; line-height: 1.35; text-align: right; }
.planning-order-payment { color: #a12f28; font-size: .68rem; font-weight: 700; line-height: 1.35; text-align: right; }
.planning-order-heading { display: flex; padding: 13px 15px; border-bottom: 2px solid #cbd4cd; align-items: center; justify-content: space-between; gap: 16px; background: #edf2ee; }
.planning-order-customer { display: grid; min-width: 0; gap: 2px; }
.planning-order-customer strong { color: #425449; font-size: .78rem; font-weight: 750; }
.planning-order-customer span { overflow: hidden; color: var(--muted); font-size: .69rem; text-overflow: ellipsis; white-space: nowrap; }
.planning-payment { display: flex; margin: 8px 12px; padding: 8px 10px; border: 1px solid #e4aaa2; border-radius: 8px; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; color: #9a3028; background: #fff1ef; font-size: .74rem; }
.planning-payment strong { font-weight: 850; }
.planning-payment span { font-weight: 650; }
.planning-notes { margin: 8px 12px; padding: 8px 10px; border-radius: 8px; background: #faf6ee; }
.planning-notes > strong { display: block; color: #725b3f; font-size: .7rem; font-weight: 800; }
.planning-notes p { margin: 7px 0 0; color: #5e554b; font-size: .76rem; line-height: 1.45; }
.planning-allergies { border: 1px solid #e0b4aa; background: #fff3f0; }
.planning-allergies > strong,.planning-allergies p { color: #873d32; }
.planning-products { display: grid; gap: 11px; }
.planning-product { overflow: hidden; border: 1px solid #cfc8be; border-left: 5px solid #78927f; border-radius: 11px; background: #fff; box-shadow: 0 4px 12px rgba(45,55,47,.08); }
.planning-product > summary { position: relative; display: grid; min-height: 58px; padding: 10px 49px 10px 13px; grid-template-columns: minmax(0,1fr); align-items: center; row-gap: 8px; cursor: pointer; list-style: none; }
.planning-product > summary::-webkit-details-marker { display: none; }
.planning-product > summary::after { content: '↓'; position: absolute; right: 13px; }
.planning-product[open] > summary::after { content: '↑'; }
.planning-summary-primary { display: grid; min-width: 0; grid-template-columns: 28px 28px minmax(0,1fr); align-items: center; gap: 7px; }
.planning-summary-primary > strong { min-width: 0; justify-self: start; color: #31533a; font-size: 1.18rem; line-height: 1.05; text-align: left; overflow-wrap: anywhere; }
.planning-summary-status { display: flex; min-width: 0; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 7px; }
.planning-print-icon { display: grid; width: 28px; height: 28px; padding: 0; border: 1px solid #cad5cc; border-radius: 7px; place-items: center; color: #31533a; background: #f1f6f2; font: inherit; font-size: .94rem; line-height: 1; cursor: pointer; }
.app-print-symbol,.app-search-symbol { display: block; width: 16px; height: 16px; background: currentColor; }
.app-print-symbol { -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 8V3h10v5M7 17H5a3 3 0 0 1-3-3v-3a3 3 0 0 1 3-3h14a3 3 0 0 1 3 3v3a3 3 0 0 1-3 3h-2M7 14h10v7H7zM18 11h.01' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 8V3h10v5M7 17H5a3 3 0 0 1-3-3v-3a3 3 0 0 1 3-3h14a3 3 0 0 1 3 3v3a3 3 0 0 1-3 3h-2M7 14h10v7H7zM18 11h.01' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.app-search-symbol { -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath d='m15.5 15.5 5 5' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath d='m15.5 15.5 5 5' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.print-button-labeled { gap: 8px; }
.planning-print-icon:hover { border-color: #78927f; background: #e6f0e8; }
.planning-print-icon.is-printing { opacity: .5; pointer-events: none; }
.planning-print-frame { position: fixed; width: 1px; height: 1px; right: 0; bottom: 0; border: 0; opacity: 0; pointer-events: none; }

.chat-launcher { position: fixed; z-index: 80; right: 18px; bottom: 18px; display: grid; width: 64px; height: 64px; padding: 0; border: 0; border-radius: 50%; place-items: center; color: #fff; background: #20551A; box-shadow: 0 12px 30px rgba(32,85,26,.3); cursor: pointer; }
.chat-launcher-icon { display: grid; width: 27px; height: 27px; place-items: center; }
.chat-launcher-icon svg { display: block; width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.chat-launcher-label { display: none; }
.production-picker-page .chat-launcher { bottom: 86px; }
.chat-launcher.has-unread { transform-origin: 50% 90%; animation: chat-alarm 2s ease-in-out infinite; }
.chat-launcher.has-unread::after { content: ''; position: absolute; inset: -5px; border: 2px solid rgba(197,55,44,.62); border-radius: 50%; pointer-events: none; animation: chat-ripple 1.7s ease-out infinite; }
@keyframes chat-alarm { 0%,42%,100% { transform: rotate(0) scale(1); } 5% { transform: rotate(-12deg) scale(1.05); } 10% { transform: rotate(12deg) scale(1.05); } 15% { transform: rotate(-10deg) scale(1.05); } 20% { transform: rotate(10deg) scale(1.05); } 25% { transform: rotate(-7deg) scale(1.04); } 30% { transform: rotate(7deg) scale(1.04); } 36% { transform: rotate(0) scale(1); } }
@keyframes chat-ripple { 0%,28% { opacity: 0; transform: scale(.88); } 38% { opacity: 1; } 72%,100% { opacity: 0; transform: scale(1.2); } }
@media (prefers-reduced-motion: reduce) { .chat-launcher.has-unread,.chat-launcher.has-unread::after { animation: none; }.chat-launcher.has-unread { box-shadow: 0 0 0 5px rgba(197,55,44,.22),0 10px 28px rgba(38,55,43,.28); } }
.chat-badge { position: absolute; top: -5px; right: -5px; min-width: 23px; height: 23px; padding: 0 5px; border: 2px solid #fff; border-radius: 999px; color: #fff; background: #c5372c; font-size: .64rem; line-height: 19px; }
.chat-backdrop { position: fixed; z-index: 81; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: rgba(29,25,21,.3); }
.chat-backdrop[hidden],.chat-badge[hidden] { display: none; }
.chat-panel { position: fixed; z-index: 82; top: 0; right: 0; bottom: 0; display: grid; width: min(92vw,430px); border: 0; border-left: 1px solid rgba(255,255,255,.76); grid-template-rows: 72px minmax(0,1fr); background: rgba(247,245,241,.82); background-image: linear-gradient(155deg,rgba(255,255,255,.78),rgba(239,235,228,.7)); box-shadow: inset 1px 0 0 rgba(255,255,255,.72),-22px 0 60px rgba(31,27,23,.2); -webkit-backdrop-filter: blur(22px) saturate(130%); backdrop-filter: blur(22px) saturate(130%); transform: translateX(105%); transition: transform .2s ease; }
.chat-panel.is-open { transform: translateX(0); }
.chat-panel-header { display: grid; padding: 10px 12px; border-bottom: 1px solid rgba(126,114,100,.16); grid-template-columns: auto minmax(0,1fr) auto auto; align-items: center; gap: 9px; background: rgba(255,255,255,.58); box-shadow: inset 0 -1px 0 rgba(255,255,255,.5); -webkit-backdrop-filter: blur(14px) saturate(125%); backdrop-filter: blur(14px) saturate(125%); }
.chat-panel-heading { display: grid; min-width: 0; gap: 1px; }
.chat-panel-heading strong,.chat-panel-heading small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-panel-heading strong { font-size: 1rem; }
.chat-panel-participants { color: var(--muted); font-size: .62rem; font-weight: 600; }
.chat-back,.chat-new,.chat-close { min-height: 36px; padding: 0 9px; border: 0; border-radius: 8px; color: #365b40; background: #eef3ef; cursor: pointer; font: inherit; font-size: .75rem; font-weight: 800; }
.chat-close { width: 36px; padding: 0; font-size: 1.25rem; }
.chat-panel-body { position: relative; display: grid; min-height: 0; grid-template-rows: minmax(0,1fr) auto; overflow: hidden; }
.chat-empty { margin: auto; padding: 28px; color: var(--muted); font-size: .82rem; text-align: center; }
.chat-conversation-list { padding: 8px; overflow-y: auto; }
.chat-conversation { display: grid; width: 100%; min-height: 67px; margin-bottom: 6px; padding: 10px 11px; border: 1px solid rgba(126,114,100,.14); border-radius: 12px; grid-template-columns: 40px minmax(0,1fr) auto; align-items: center; gap: 10px; background: rgba(255,255,255,.62); box-shadow: inset 0 1px 0 rgba(255,255,255,.88),0 5px 14px rgba(49,39,28,.05); text-align: left; cursor: pointer; -webkit-backdrop-filter: blur(10px) saturate(120%); backdrop-filter: blur(10px) saturate(120%); transition: border-color .2s ease,background .2s ease,box-shadow .2s ease,transform .2s ease; }
.chat-conversation:hover { border-color: rgba(67,104,76,.28); background: rgba(244,249,244,.78); box-shadow: inset 0 1px 0 rgba(255,255,255,.94),0 8px 18px rgba(42,68,48,.09); transform: translateY(-1px); }
.chat-avatar { display: grid; width: 40px; height: 40px; border: 1px solid rgba(255,255,255,.32); border-radius: 50%; place-items: center; color: #fff; background: linear-gradient(145deg,#849583,#536c57); box-shadow: inset 0 1px 0 rgba(255,255,255,.28),0 6px 14px rgba(49,65,52,.18); font-weight: 850; }
.chat-conversation-copy { display: grid; min-width: 0; gap: 3px; }
.chat-conversation-copy strong,.chat-conversation-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-conversation-copy strong { font-size: .82rem; }.chat-conversation-copy small { color: var(--muted); font-size: .69rem; }
.chat-conversation-copy .chat-conversation-members { color: #52705a; font-size: .61rem; font-weight: 750; }
.chat-conversation-preview { display: flex; min-width: 0; align-items: center; gap: 5px; }.chat-conversation-preview small { min-width: 0; }
.chat-unread { min-width: 22px; height: 22px; padding: 0 5px; border-radius: 999px; color: #fff; background: #c5372c; font-size: .62rem; line-height: 22px; text-align: center; }
.chat-messages { padding: 13px; overflow-y: auto; }
.chat-message { display: grid; width: fit-content; max-width: 86%; margin: 0 auto 9px 0; padding: 8px 10px; border: 1px solid #ddd6cd; border-radius: 4px 12px 12px 12px; background: #fff; gap: 4px; }
.chat-message.is-own { margin-right: 0; margin-left: auto; border-color: #bed1c2; border-radius: 12px 4px 12px 12px; background: #edf5ef; }
.chat-message > strong { font-size: .66rem; }.chat-message p { margin: 0; font-size: .8rem; line-height: 1.4; white-space: pre-wrap; overflow-wrap: anywhere; }.chat-message-meta { display: flex; align-items: center; justify-content: flex-end; gap: 5px; }.chat-message time { color: var(--muted); font-size: .58rem; text-align: right; }.chat-message-status { min-width: 12px; color: #8a857d; font-size: .72rem; font-weight: 900; letter-spacing: -3px; line-height: 1; }.chat-message-status.is-leido { color: #298b4e; }
.chat-message-images { display: grid; max-width: 280px; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 4px; }.chat-message-image { position: relative; display: block; }.chat-image-open { display: block; width: 100%; padding: 0; overflow: hidden; border: 0; border-radius: 7px; background: transparent; cursor: zoom-in; }.chat-message-images img { display: block; width: 100%; height: 120px; border-radius: 7px; object-fit: cover; }.chat-image-delete { position: absolute; top: 4px; right: 4px; display: grid; width: 25px; height: 25px; padding: 0; border: 1px solid rgba(255,255,255,.8); border-radius: 50%; place-items: center; color: #fff; background: rgba(120,31,27,.88); box-shadow: 0 2px 8px rgba(0,0,0,.2); cursor: pointer; font-size: 1rem; }
.chat-image-viewer { width: min(94vw,1100px); max-width: 1100px; height: min(92dvh,900px); max-height: 92dvh; padding: 48px 18px 18px; overflow: hidden; border: 0; border-radius: 16px; background: #211f1c; box-shadow: 0 25px 90px rgba(0,0,0,.45); }
.chat-image-viewer::backdrop { background: rgba(22,19,16,.76); backdrop-filter: blur(3px); }
.chat-image-viewer .order-modal-close { position: absolute; z-index: 2; top: 10px; right: 10px; }
.chat-image-viewer > img { display: block; width: 100%; height: 100%; border-radius: 9px; object-fit: contain; }
.chat-composer { display: grid; padding: 9px; border-top: 1px solid rgba(126,114,100,.16); grid-template-columns: minmax(0,1fr) 42px; align-items: end; gap: 8px; background: rgba(255,255,255,.64); box-shadow: inset 0 1px 0 rgba(255,255,255,.7); -webkit-backdrop-filter: blur(14px) saturate(125%); backdrop-filter: blur(14px) saturate(125%); }
.chat-composer textarea { box-sizing: border-box; width: 100%; min-height: 42px; max-height: 120px; padding: 11px 16px; overflow-y: hidden; border: 1px solid rgba(126,114,100,.24); border-radius: 22px; outline: 0; resize: none; background: rgba(255,255,255,.88); box-shadow: inset 0 1px 2px rgba(48,42,35,.04); font: inherit; font-size: .82rem; line-height: 1.35; }.chat-composer textarea:focus { border-color: rgba(32,85,26,.42); box-shadow: 0 0 0 3px rgba(32,85,26,.08); }.chat-attach,.chat-send { min-height: 40px; padding: 0 10px; border: 0; border-radius: 9px; cursor: pointer; font: inherit; }.chat-attach { background: #f0ede8; }.chat-send { display: grid; width: 42px; height: 42px; min-height: 42px; padding: 0; border-radius: 50%; place-items: center; color: #fff; background: #20551a; }.chat-send svg { width: 20px; height: 20px; fill: currentColor; transform: translateX(1px); }.chat-send:disabled { opacity: .52; cursor: wait; }.chat-file-status { display: flex; color: var(--muted); font-size: .62rem; grid-column: 1 / -1; flex-wrap: wrap; gap: 5px; }.chat-file-status:empty { display: none; }.chat-pending-file { display: flex; max-width: 100%; padding: 4px 5px 4px 8px; border: 1px solid #ddd6cd; border-radius: 999px; align-items: center; gap: 5px; background: #f5f2ed; }.chat-pending-file > span { overflow: hidden; max-width: 210px; text-overflow: ellipsis; white-space: nowrap; }.chat-pending-file button { display: grid; width: 20px; height: 20px; padding: 0; border: 0; border-radius: 50%; place-items: center; color: #853a34; background: #ead9d6; cursor: pointer; }
.chat-user-search,.chat-group-name { width: calc(100% - 24px); min-height: 44px; margin: 12px 12px 0; padding: 8px 11px; border: 1px solid var(--line); border-radius: 9px; outline: 0; font: inherit; }.chat-group-name { margin-top: 7px; }.chat-user-list { min-height: 0; padding: 8px 12px; overflow-y: auto; }.chat-user-option { display: grid; padding: 10px 8px; border-bottom: 1px solid var(--line); grid-template-columns: 24px 1fr; gap: 2px 7px; cursor: pointer; }.chat-user-option input { grid-row: 1 / 3; }.chat-user-option span { font-size: .8rem; font-weight: 750; }.chat-user-option small { color: var(--muted); font-size: .66rem; }.chat-create { margin: 10px 12px 12px; }
.task-launcher { position:fixed;z-index:80;right:18px;bottom:18px;display:grid;width:64px;height:64px;padding:0;border:1px solid rgba(255,255,255,.34);border-radius:50%;place-items:center;color:#fff;background:linear-gradient(145deg,#397033,#20551a);box-shadow:inset 0 1px 0 rgba(255,255,255,.3),0 12px 30px rgba(32,85,26,.3);cursor:pointer; }.task-launcher-icon { display:grid;width:29px;height:29px;place-items:center; }.task-launcher-icon svg { display:block;width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round; }.task-launcher-label { display:none; }.production-picker-page .task-launcher { bottom:86px; }.task-launcher.has-unread { transform-origin:50% 90%;animation:chat-alarm 2s ease-in-out infinite; }.task-launcher.has-unread::after { position:absolute;inset:-5px;border:2px solid rgba(197,55,44,.62);border-radius:50%;content:'';pointer-events:none;animation:chat-ripple 1.7s ease-out infinite; }.task-badge { position:absolute;top:-5px;right:-5px;min-width:23px;height:23px;padding:0 5px;border:2px solid #fff;border-radius:999px;color:#fff;background:#c5372c;font-size:.64rem;line-height:19px; }.task-badge[hidden],.task-backdrop[hidden] { display:none; }
.task-backdrop { position:fixed;z-index:81;inset:0;width:100%;height:100%;padding:0;border:0;background:rgba(26,31,25,.2);-webkit-backdrop-filter:blur(4px) saturate(88%);backdrop-filter:blur(4px) saturate(88%); }.task-panel { position:fixed;z-index:82;top:0;right:0;bottom:0;display:grid;width:min(92vw,440px);border:0;border-left:1px solid rgba(255,255,255,.82);grid-template-rows:72px minmax(0,1fr);background:linear-gradient(155deg,rgba(255,255,255,.8),rgba(236,240,233,.7));box-shadow:inset 1px 0 0 rgba(255,255,255,.72),-22px 0 60px rgba(31,27,23,.2);-webkit-backdrop-filter:blur(22px) saturate(130%);backdrop-filter:blur(22px) saturate(130%);transform:translateX(105%);transition:transform .25s ease; }.task-panel.is-open { transform:translateX(0); }.task-panel-header { display:grid;padding:10px 12px;border-bottom:1px solid rgba(126,114,100,.16);grid-template-columns:auto minmax(0,1fr) auto auto;align-items:center;gap:9px;background:rgba(255,255,255,.62);box-shadow:inset 0 -1px 0 rgba(255,255,255,.5); }.task-panel-header>strong { font-size:1rem; }.task-back,.task-new,.task-close { min-height:36px;padding:0 10px;border:1px solid rgba(255,255,255,.86);border-radius:9px;color:#365b40;background:rgba(238,243,239,.82);box-shadow:inset 0 1px 0 #fff,0 5px 13px rgba(45,39,31,.07);cursor:pointer;font:inherit;font-size:.72rem;font-weight:800; }.task-close { width:36px;padding:0;font-size:1.2rem; }.task-panel-body { min-height:0;overflow-y:auto;overscroll-behavior:contain; }.task-tabs { position:sticky;z-index:2;top:0;display:grid;padding:8px;background:rgba(247,245,241,.88);grid-template-columns:repeat(3,1fr);gap:5px;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px); }.task-tabs button { min-height:34px;padding:0 7px;border:1px solid rgba(126,114,100,.14);border-radius:8px;color:#655f57;background:rgba(255,255,255,.68);cursor:pointer;font:inherit;font-size:.65rem;font-weight:800; }.task-tabs button.is-active { border-color:#51795a;color:#fff;background:#315f38; }.task-empty { margin:auto;padding:42px 24px;color:var(--muted);font-size:.78rem;text-align:center; }
.task-list { display:grid;padding:0 8px 12px;gap:7px; }.task-card { position:relative;display:grid;width:100%;min-height:68px;padding:10px 11px;border:1px solid rgba(126,114,100,.15);border-radius:12px;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:9px;background:rgba(255,255,255,.72);box-shadow:inset 0 1px 0 rgba(255,255,255,.95),0 5px 14px rgba(49,39,28,.05);cursor:pointer;text-align:left;transition:border-color .22s ease,box-shadow .22s ease,transform .22s ease; }.task-card:hover { border-color:rgba(55,105,63,.3);box-shadow:inset 0 1px 0 #fff,0 9px 20px rgba(42,68,48,.09);transform:translateY(-1px); }.task-card.has-unread { border-left:4px solid #c5372c;background:rgba(255,252,250,.88); }.task-card-main,.task-card-meta { display:grid;min-width:0;gap:4px; }.task-card-main strong { overflow:hidden;font-size:.82rem;text-overflow:ellipsis;white-space:nowrap; }.task-card-main small,.task-card-meta small { overflow:hidden;color:var(--muted);font-size:.62rem;text-overflow:ellipsis;white-space:nowrap; }.task-card-meta { justify-items:end; }.task-unread { position:absolute;top:7px;right:7px;width:7px;height:7px;border-radius:50%;background:#c5372c;box-shadow:0 0 0 3px rgba(197,55,44,.12); }
.task-success { display:grid;margin:8px 8px 10px;padding:10px 12px;border:1px solid rgba(32,85,26,.22);border-radius:11px;grid-template-columns:30px minmax(0,1fr);align-items:center;gap:9px;color:#1d531d;background:linear-gradient(145deg,rgba(240,249,240,.96),rgba(220,238,221,.86));box-shadow:inset 0 1px 0 rgba(255,255,255,.94),0 7px 17px rgba(32,85,26,.08);animation:task-success-in .34s cubic-bezier(.22,.7,.25,1); }.task-success>span { display:grid;width:28px;height:28px;border-radius:50%;place-items:center;color:#fff;background:#20551a;font-size:.85rem;font-weight:900; }.task-success>div { display:grid;gap:2px; }.task-success strong { font-size:.76rem; }.task-success small { color:#56715a;font-size:.61rem; }.task-success+.task-list { padding-top:0; }@keyframes task-success-in { from { opacity:0;transform:translateY(-5px); } to { opacity:1;transform:translateY(0); } }
.task-status { display:inline-flex;min-height:23px;padding:0 8px;border-radius:999px;align-items:center;color:#5f5a53;background:#e5e3df;font-size:.57rem;font-weight:850;text-transform:uppercase;white-space:nowrap; }.task-status.is-abierta { color:#705600;background:#ffe49a; }.task-status.is-esperando { color:#285779;background:#dcecf8; }.task-status.is-respondida { color:#884d20;background:#f8dfca; }.task-status.is-cerrada { color:#356141;background:#dcebdd; }
.task-detail { display:grid;padding:14px;gap:11px; }.task-detail-header { display:flex;align-items:flex-start;justify-content:space-between;gap:12px; }.task-detail-header>div { display:grid;min-width:0;gap:4px; }.task-detail-header h2 { margin:0;font-family:Georgia,serif;font-size:1.45rem;font-weight:500;line-height:1.1;overflow-wrap:anywhere; }.task-detail-header small,.task-assigned,.task-deadline { margin:0;color:var(--muted);font-size:.66rem;line-height:1.4; }.task-deadline { width:fit-content;padding:5px 8px;border-radius:7px;color:#805321;background:#fff1da;font-weight:750; }.task-description { margin:0;padding:12px;border:1px solid rgba(126,114,100,.12);border-radius:11px;background:rgba(255,255,255,.78);font-size:.8rem;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere; }.task-state-action { min-height:40px;padding:0 12px;border:1px solid rgba(126,114,100,.2);border-radius:9px;justify-self:start;color:#714137;background:rgba(255,247,244,.92);cursor:pointer;font:inherit;font-size:.7rem;font-weight:850; }.task-state-action.is-reopen { color:#315b3b;background:rgba(239,247,240,.94); }.task-state-action:disabled { opacity:.5;cursor:wait; }.task-create-form label>span { color:var(--muted);font-size:.61rem;font-weight:800;text-transform:uppercase; }.task-create-form input,.task-create-form textarea { box-sizing:border-box;width:100%;min-height:42px;padding:9px 11px;border:1px solid rgba(126,114,100,.2);border-radius:9px;outline:0;background:rgba(255,255,255,.86);font:inherit;font-size:.78rem; }.task-create-form input:focus,.task-create-form textarea:focus,.task-reply-form textarea:focus { border-color:rgba(32,85,26,.45);box-shadow:0 0 0 3px rgba(32,85,26,.08); }.task-replies { display:grid;gap:7px; }.task-replies>h3 { margin:4px 0 1px;font-family:Georgia,serif;font-size:1.05rem;font-weight:500; }.task-reply { display:grid;width:fit-content;max-width:88%;padding:9px 10px;border:1px solid #ddd6cd;border-radius:5px 12px 12px;background:#fff;gap:4px; }.task-reply.is-own { margin-left:auto;border-color:#bed1c2;border-radius:12px 5px 12px 12px;background:#edf5ef; }.task-reply strong { font-size:.65rem; }.task-reply p { margin:0;font-size:.78rem;line-height:1.4;white-space:pre-wrap;overflow-wrap:anywhere; }.task-reply time { color:var(--muted);font-size:.57rem;text-align:right; }.task-reply-form { display:grid;padding:9px;border:1px solid rgba(126,114,100,.14);border-radius:12px;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:7px;background:rgba(255,255,255,.64); }.task-reply-form textarea { box-sizing:border-box;width:100%;min-height:48px;max-height:120px;padding:10px;border:1px solid rgba(126,114,100,.22);border-radius:9px;outline:0;resize:vertical;font:inherit;font-size:.78rem; }.task-send,.task-create { min-height:40px;padding:0 12px;border:1px solid rgba(255,255,255,.4);border-radius:9px;color:#fff;background:#20551a;cursor:pointer;font:inherit;font-size:.7rem;font-weight:850; }.task-send:disabled,.task-create:disabled { opacity:.5;cursor:wait; }.task-history { border-top:1px solid rgba(126,114,100,.14); }.task-history>summary { padding:10px 2px;color:var(--muted);cursor:pointer;font-size:.65rem;font-weight:800; }.task-history>div { display:grid;gap:4px; }.task-history p { display:flex;margin:0;padding:6px 7px;border-radius:7px;justify-content:space-between;gap:10px;background:rgba(255,255,255,.55);font-size:.61rem; }.task-history p span { color:var(--muted);text-align:right; }
.task-create-form { display:grid;padding:13px;gap:11px; }.task-create-form>label { display:grid;gap:5px; }.task-create-form textarea { min-height:110px;resize:vertical; }.task-users-title { margin-top:2px;font-size:.72rem; }.task-users { display:grid;max-height:250px;overflow-y:auto;border:1px solid rgba(126,114,100,.14);border-radius:10px;background:rgba(255,255,255,.58); }.task-user { display:grid;min-height:48px;padding:7px 9px;border-bottom:1px solid rgba(126,114,100,.11);grid-template-columns:24px minmax(0,1fr);align-items:center;gap:8px;cursor:pointer; }.task-user:last-child { border-bottom:0; }.task-user>span { display:grid;min-width:0;gap:2px; }.task-user strong { font-size:.76rem; }.task-user small { overflow:hidden;color:var(--muted);font-size:.61rem;text-overflow:ellipsis;white-space:nowrap; }.task-create { width:100%; }.task-panel-open { overflow:hidden; }
@media(max-width:650px){.task-panel{width:75vw;min-width:280px}.task-launcher{right:14px;bottom:14px}.pastelco-native-app .task-launcher{right:14px;bottom:14px}.pastelco-native-app.production-picker-page .task-launcher{bottom:86px}.task-detail{padding:11px}.task-detail-header{align-items:flex-start;flex-direction:column}.task-reply-form{grid-template-columns:1fr}.task-send{width:100%}}
@media(prefers-reduced-motion:reduce){.task-launcher.has-unread,.task-launcher.has-unread::after,.task-success{animation:none}.task-panel{transition:none}}
.unified-notice { position:fixed;z-index:84;top:calc(84px + env(safe-area-inset-top,0px));right:18px;display:grid;box-sizing:border-box;width:min(calc(100vw - 36px),390px);padding:15px;border:1px solid rgba(255,255,255,.86);border-radius:17px;gap:8px;color:var(--ink);background:linear-gradient(145deg,rgba(255,255,255,.94),rgba(239,243,237,.88));box-shadow:inset 0 1px 0 #fff,0 20px 52px rgba(31,48,34,.2);-webkit-backdrop-filter:blur(24px) saturate(135%);backdrop-filter:blur(24px) saturate(135%);opacity:0;transform:translateX(calc(100% + 30px)) scale(.97);transition:opacity .38s ease,transform .38s cubic-bezier(.2,.8,.2,1); }.unified-notice[hidden] { display:none; }.unified-notice.is-visible { opacity:1;transform:translateX(0) scale(1); }.unified-notice-top { display:flex;align-items:center;justify-content:space-between;gap:10px; }.unified-notice-kind { width:fit-content;padding:4px 8px;border-radius:999px;color:#315b37;background:#deebdf;font-size:.57rem;font-weight:900;letter-spacing:.06em;text-transform:uppercase; }.unified-notice-kind.is-support { color:#81442f;background:#f7dfd5; }.unified-notice-close { display:grid;width:30px;height:30px;padding:0;border:1px solid rgba(126,114,100,.15);border-radius:9px;place-items:center;color:#6e6860;background:rgba(255,255,255,.7);cursor:pointer;font-size:1.05rem;line-height:1; }.unified-notice-title { padding-right:4px;font-family:Georgia,serif;font-size:1.08rem;font-weight:600;line-height:1.25;overflow-wrap:anywhere; }.unified-notice-description { display:-webkit-box;margin:0;overflow:hidden;color:#625f59;font-size:.7rem;line-height:1.5;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow-wrap:anywhere; }.unified-notice-sender { color:#777169;font-size:.62rem;font-weight:700; }.unified-notice-action { min-height:40px;margin-top:2px;padding:0 13px;border:1px solid rgba(255,255,255,.45);border-radius:10px;color:#fff;background:linear-gradient(145deg,#397033,#20551a);box-shadow:inset 0 1px 0 rgba(255,255,255,.26),0 8px 18px rgba(32,85,26,.16);cursor:pointer;font:inherit;font-size:.7rem;font-weight:850; }.unified-notice.is-support .unified-notice-action { background:linear-gradient(145deg,#d17a59,#b95335);box-shadow:inset 0 1px 0 rgba(255,255,255,.26),0 8px 18px rgba(185,83,53,.16); }
.production-notification-center { position:fixed;z-index:79;top:calc(78px + env(safe-area-inset-top,0px));right:18px;display:grid;box-sizing:border-box;width:min(calc(100vw - 36px),390px);max-height:min(58vh,560px);overflow:hidden;border:1px solid rgba(255,255,255,.88);border-radius:17px;background:linear-gradient(145deg,rgba(255,255,255,.91),rgba(235,241,233,.82));box-shadow:inset 0 1px 0 #fff,0 18px 48px rgba(31,48,34,.18);-webkit-backdrop-filter:blur(22px) saturate(130%);backdrop-filter:blur(22px) saturate(130%); }
.production-notification-center[hidden] { display:none; }
.production-notification-header { display:grid;min-height:58px;padding:8px 9px 8px 13px;border-bottom:1px solid rgba(126,114,100,.14);grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:8px;background:rgba(255,255,255,.56); }
.production-notification-heading { display:grid;min-width:0;gap:1px; }.production-notification-heading strong { font-family:Georgia,serif;font-size:.95rem;font-weight:600; }.production-notification-heading small { color:var(--muted);font-size:.58rem; }
.production-notification-count { display:grid;min-width:24px;height:24px;padding:0 5px;border-radius:999px;place-items:center;color:#fff;background:#c5372c;font-size:.62rem;line-height:1; }
.production-notification-toggle { display:grid;width:34px;height:34px;padding:0;border:1px solid rgba(255,255,255,.84);border-radius:10px;place-items:center;color:#315f38;background:rgba(238,243,239,.8);box-shadow:inset 0 1px 0 #fff;cursor:pointer;font:inherit;font-size:1rem;font-weight:900; }
.production-notification-body { display:grid;min-height:0;padding:7px;overflow-y:auto;overscroll-behavior:contain;gap:6px; }.production-notification-center.is-collapsed { max-height:58px; }.production-notification-center.is-collapsed .production-notification-header { border-bottom:0; }.production-notification-center.is-collapsed .production-notification-body { display:none; }
.dashboard-notification-host { width:100%; }.production-notification-center.is-dashboard { position:relative;top:auto;right:auto;width:100%;max-height:480px;margin:0 0 28px; }.production-notification-center.is-dashboard .production-notification-body { grid-template-columns:repeat(2,minmax(0,1fr));align-items:start; }.production-notification-center.is-dashboard.is-collapsed { max-height:58px; }
.production-notification-item { display:grid;width:100%;min-height:72px;padding:9px 10px;border:1px solid rgba(126,114,100,.14);border-left:4px solid #477a4b;border-radius:11px;gap:5px;color:var(--ink);background:rgba(255,255,255,.73);box-shadow:inset 0 1px 0 rgba(255,255,255,.96),0 5px 14px rgba(49,39,28,.05);cursor:pointer;text-align:left;transition:border-color .22s ease,box-shadow .22s ease,transform .22s ease; }.production-notification-item.is-support { border-left-color:#ca6844; }.production-notification-item:hover,.production-notification-item:focus-visible { border-color:rgba(55,105,63,.34);box-shadow:inset 0 1px 0 #fff,0 9px 20px rgba(42,68,48,.1);outline:0;transform:translateY(-1px); }
.production-notification-copy { display:grid;min-width:0;gap:2px; }.production-notification-copy>small { width:fit-content;color:#315f38;font-size:.55rem;font-weight:850;text-transform:uppercase; }.production-notification-item.is-support .production-notification-copy>small { color:#a94e30; }.production-notification-copy>strong { overflow:hidden;font-size:.76rem;text-overflow:ellipsis;white-space:nowrap; }.production-notification-copy>span { display:-webkit-box;overflow:hidden;color:#625f59;font-size:.65rem;line-height:1.35;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow-wrap:anywhere; }.production-notification-sender { color:var(--muted);font-size:.57rem;font-weight:700; }
@media(max-width:650px){.unified-notice{top:calc(76px + env(safe-area-inset-top,0px));right:12px;width:calc(100vw - 24px);padding:13px}.production-notification-center{top:calc(72px + env(safe-area-inset-top,0px));right:10px;width:calc(100vw - 20px);max-height:48vh}.production-notification-center.is-dashboard{top:auto;right:auto;width:100%;max-height:460px;margin-bottom:20px}.production-notification-center.is-dashboard .production-notification-body{grid-template-columns:1fr}.production-notification-header{min-height:52px}.production-notification-center.is-collapsed,.production-notification-center.is-dashboard.is-collapsed{max-height:52px}.production-notification-item{min-height:66px}}
@media(prefers-reduced-motion:reduce){.unified-notice{transition:none}.unified-notice.is-visible{transform:none}.production-notification-item{transition:none}.production-notification-item:hover,.production-notification-item:focus-visible{transform:none}}
.planning-product-name { justify-self: start; overflow: visible; font-size: 1rem; font-weight: 800; line-height: 1.2; text-align: left; white-space: normal; overflow-wrap: anywhere; }
.planning-summary-payment { color: #a12f28; font-size: .68rem; font-style: normal; font-weight: 850; line-height: 1.3; overflow-wrap: anywhere; }
.planning-progress { color: var(--muted); font-size: .68rem; text-align: right; }
.planning-ready-label { padding: 5px 7px; border-radius: 999px; color: #625e58; background: #e8e6e2; text-align: center; font-size: .62rem; font-weight: 850; text-transform: uppercase; }
.planning-product.is-progress .planning-ready-label,.planning-calendar-product.is-progress .planning-ready-label { color: #6d5100; background: #ffe49a; }
.planning-product.is-production-complete .planning-ready-label,.planning-calendar-product.is-production-complete .planning-ready-label { color: #285779; background: #dcecf8; }
.planning-product.is-ready { background: #f3f8f3; }
.planning-product.is-ready .planning-ready-label,.planning-calendar-product.is-ready .planning-ready-label { color: #356141; background: #dcebdd; }
.planning-product-body { padding: 5px 13px 14px; border-top: 1px solid #eeeae4; }
.planning-components { display: grid; gap: 6px; }
.planning-component { display: grid; min-height: 49px; padding: 7px 9px; border: 1px solid #e5e0d9; border-radius: 9px; grid-template-columns: 24px 24px minmax(0,1fr); align-items: center; gap: 7px; cursor: default; }
.planning-component > input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.planning-check-mark { display: grid; width: 24px; height: 24px; border: 1px solid #cfc8bf; border-radius: 6px; place-items: center; color: transparent; background: #fff; }
.planning-component.is-done { border-color: #c6dbc9; background: #f2f8f3; }
.planning-component.is-done .planning-check-mark { border-color: #5e8b68; color: #fff; background: #5e8b68; }
.planning-handoff { margin-top: 6px; border-color: rgba(32,85,26,.2); background: rgba(244,249,243,.72); cursor: pointer; }
.planning-handoff.is-readonly { border-color: #ddd8d1; background: #f4f2ef; cursor: default; }
.planning-handoff.is-readonly:not(.is-done) .planning-check-mark { background: #ebe8e3; }
.planning-handoff-summary { width: fit-content; min-height: 34px; margin: 0; padding: 5px 9px; grid-template-columns: 20px minmax(0,auto); gap: 7px; border-radius: 10px; justify-self: start; }
.planning-handoff-summary .planning-check-mark { width: 20px; height: 20px; border-radius: 5px; font-size: .68rem; }
.planning-handoff-summary .planning-component-content { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 7px; }
.planning-handoff-summary .planning-component-content strong { font-size: .68rem; }
.planning-handoff-summary .planning-component-content small { color: var(--muted); font-size: .56rem; }
.planning-calendar-product .planning-handoff-summary { min-height: 28px; padding: 3px 6px; grid-template-columns: 17px minmax(0,auto); gap: 5px; border-radius: 8px; }
.planning-calendar-product .planning-handoff-summary .planning-check-mark { width: 17px; height: 17px; border-radius: 4px; font-size: .58rem; }
.planning-calendar-product .planning-handoff-summary .planning-component-content strong { font-size: .57rem; }
.planning-calendar-product .planning-handoff-summary .planning-component-content small { font-size: .49rem; }
.planning-other { cursor: pointer; background: #fffaf3; }.planning-other:has(input:disabled) { cursor: default; }
.planning-agenda-decoration { margin-bottom: 6px; }
.planning-production-status { overflow: hidden; border: 1px solid #ddd7cf; border-radius: 8px; background: #fff; }
.planning-production-status.is-complete { border-color: #d2cec8; background: #eceae7; }
.planning-production-status > summary { position: relative; display: flex; min-height: 42px; padding: 8px 31px 8px 9px; align-items: center; justify-content: space-between; gap: 9px; cursor: pointer; list-style: none; }
.planning-production-status > summary::-webkit-details-marker { display: none; }
.planning-production-status > summary::after { content: '⌄'; position: absolute; right: 10px; color: #6d675f; font-size: .85rem; }
.planning-production-status[open] > summary::after { content: '⌃'; }
.planning-production-status[open] > summary { border-bottom: 1px solid #e0dbd4; }
.planning-production-status > summary > span { display: grid; gap: 1px; }
.planning-production-status > summary strong { font-size: .67rem; }
.planning-production-status > summary small { color: var(--muted); font-size: .55rem; }
.planning-production-status > summary > b { color: #756f67; font-size: .58rem; white-space: nowrap; }
.planning-production-status.is-complete > summary > b { color: #5f5b56; }
.planning-production-status > .planning-components { display: grid; padding: 7px; background: rgba(255,255,255,.76); }
.planning-production-status:not([open]) > .planning-components { display: none; }
.planning-production-status.is-complete > .planning-components { background: #e7e5e2; }
.planning-production-status.is-complete .planning-component { border-color: #d2cfca; background: #efeeec; }
.planning-component[data-production-status-check] { cursor: not-allowed; }
.planning-component[data-production-status-check]:focus-visible { outline: 3px solid rgba(82,117,91,.2); outline-offset: 2px; }
.planning-decoration { cursor: pointer; }
.planning-decoration:has(input:disabled) { cursor: default; }
.planning-component-content { display: grid; min-width: 0; grid-template-columns: minmax(0,1fr); align-items: center; gap: 3px; }
.planning-component-content strong { min-width: 0; overflow: visible; font-size: .78rem; line-height: 1.35; white-space: nowrap; }
.planning-component-content small { color: var(--muted); font-size: .68rem; grid-column: 1; }
.planning-images { display: flex; margin: 9px 12px; flex-wrap: wrap; gap: 7px; }
.planning-image-item { display: grid; min-width: 190px; padding: 6px; border: 1px solid #ddd6cc; border-radius: 9px; grid-template-columns: 66px minmax(100px,1fr); align-items: center; gap: 8px; background: #faf8f5; }
.planning-images button { width: 66px; height: 54px; padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #eee; cursor: zoom-in; }
.planning-images img { display: block; width: 100%; height: 100%; object-fit: cover; }
.planning-image-item p { margin: 0; color: #5f5a53; font-size: .68rem; line-height: 1.35; }
.planning-product-body > .planning-images { margin: 10px 0; }
.planning-product-actions { display: flex; margin-top: 10px; justify-content: flex-end; gap: 8px; }
.planning-product-actions .button { min-height: 38px; }
.planning-product-actions button:disabled { opacity: .45; cursor: not-allowed; }
.planning-print-bar { position: fixed; z-index: 40; right: 20px; bottom: 18px; display: flex; padding: 10px 11px 10px 16px; border: 1px solid #cdd7cf; border-radius: 13px; align-items: center; gap: 16px; background: rgba(255,255,255,.97); box-shadow: 0 12px 38px rgba(40,34,27,.18); }
.planning-print-bar[hidden] { display: none; }
.planning-print-bar strong { font-size: .76rem; }
.planning-image-viewer { width: min(94vw,1050px); max-height: 92vh; padding: 48px 18px 18px; overflow: auto; border: 0; border-radius: 16px; background: #211f1c; box-shadow: 0 25px 90px rgba(0,0,0,.45); }
.planning-image-viewer::backdrop { background: rgba(22,19,16,.72); backdrop-filter: blur(3px); }
.planning-image-viewer .order-modal-close { position: absolute; top: 10px; right: 10px; }
.planning-image-viewer img { display: block; max-width: 100%; max-height: 72vh; margin: auto; border-radius: 9px; object-fit: contain; }
.planning-image-viewer p { margin: 13px auto 0; color: #f3f0eb; text-align: center; white-space: pre-line; }
.planning-image-viewer nav { position:sticky;z-index:3;bottom:-18px;display:flex;margin:14px -18px -18px;padding:12px 18px calc(14px + env(safe-area-inset-bottom,0px));border-top:1px solid rgba(255,255,255,.12);align-items:center;justify-content:center;gap:14px;background:rgba(33,31,28,.9);box-shadow:0 -12px 28px rgba(0,0,0,.22);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px); }
.planning-image-viewer nav .button { color: #fff; border-color: rgba(255,255,255,.25); }
.planning-image-viewer nav span { color: #cfc9c1; font-size: .72rem; }
.planning-view-toggle { display: flex; align-self: end; }.planning-view-toggle a { display: grid; min-height: 38px; padding: 0 11px; border: 1px solid #d9d3ca; color: var(--ink); background: #fff; place-items: center; text-decoration: none; font-size: .72rem; font-weight: 800; }.planning-view-toggle a:first-child { border-radius: 8px 0 0 8px; }.planning-view-toggle a:last-child { border-left: 0; border-radius: 0 8px 8px 0; }.planning-view-toggle a.is-active { border-color: #52755b; color: #fff; background: #52755b; }
.planning-calendar { margin-top: 18px; overflow-x: auto; overscroll-behavior-x: contain; }
.planning-mobile-week-navigation,.planning-mobile-day-heading,.planning-mobile-count,.planning-mobile-date,.planning-mobile-add-order { display: none; }
.planning-calendar-week { min-width: 1050px; margin-bottom: 8px; overflow: hidden; border: 1px solid #d3cdc4; border-radius: 11px; background: #f4f1ec; box-shadow: 0 3px 12px rgba(45,38,30,.04); }
.planning-calendar-week > header { display: flex; min-height: 34px; padding: 5px 9px; border-bottom: 1px solid rgba(65,55,45,.14); align-items: center; gap: 7px; color: #fff; background: #20551A; }.planning-calendar-week:nth-of-type(2) > header { background: #ca6844; }.planning-calendar-week:nth-of-type(3) > header { background: #8a7442; }.planning-calendar-week:nth-of-type(4) > header { background: #5d7185; }.planning-calendar-week > header strong { font-size: .65rem; letter-spacing: .05em; text-transform: uppercase; }.planning-calendar-week > header span { color: rgba(255,255,255,.82); font-size: .59rem; }
.planning-calendar-days { --calendar-day-min: 145px; --calendar-today-min: 220px; display: grid; grid-template-columns: repeat(7,minmax(var(--calendar-day-min),1fr)); align-items: stretch; }
.planning-calendar-day { display: flex; min-width: 0; border-right: 1px solid #ddd7cf; background: #f8f6f2; flex-direction: column; }.planning-calendar-day:last-child { border-right: 0; }.planning-calendar-day.is-today { background: #f1f6f2; box-shadow: inset 0 3px #527a5c; }
.planning-calendar-day.is-past { color: #aaa49c; background: #efede9; }.planning-calendar-day.is-past > header { background: rgba(247,245,242,.55); }.planning-calendar-day.is-past > header > span { color: #969089; background: #e2dfda; }
.planning-calendar-day > header { display: grid; min-height: 33px; padding: 5px 7px; border-bottom: 1px solid #e0dbd4; grid-template-columns: auto 1fr auto; align-items: center; gap: 5px; background: rgba(255,255,255,.74); }.planning-calendar-day > header strong { font-size: .66rem; }.planning-calendar-day > header time { color: var(--muted); font-size: .59rem; }.planning-calendar-day > header > span { display: grid; min-width: 20px; height: 20px; padding: 0 4px; border-radius: 999px; place-items: center; color: #47604d; background: #e7eee8; font-size: .56rem; font-weight: 800; }
.planning-calendar-products { min-height: 42px; padding: 4px; flex: 1; }.planning-calendar-empty { display: block; padding: 9px 3px; color: #aaa49c; font-size: .58rem; text-align: center; }
.planning-calendar-product { margin-bottom: 4px; overflow: hidden; border: 1px solid #d8d2c9; border-left: 3px solid #99948c; border-radius: 7px; background: #fff; box-shadow: 0 1px 5px rgba(45,38,30,.04); }.planning-calendar-product.is-progress { border-left-color: #d5aa32; }.planning-calendar-product.is-production-complete { border-left-color: #4d86ad; }.planning-calendar-product.is-ready { border-color: #b5cdb9; border-left-color: #4f805b; background: #eaf4eb; }
.planning-calendar-day.is-past .planning-calendar-product { opacity: .62; filter: grayscale(.85); }
.planning-calendar-product > summary { position: relative; display: grid; min-height: 43px; padding: 6px 22px 6px 6px; grid-template-columns: minmax(0,1fr); align-items: center; gap: 5px; cursor: pointer; list-style: none; }.planning-calendar-product > summary::-webkit-details-marker { display: none; }.planning-calendar-product > summary::after { content: '⌄'; position: absolute; right: 6px; color: #625d56; font-size: .8rem; }.planning-calendar-product[open] > summary::after { content: '⌃'; }.planning-calendar-product .planning-print-icon { width: 23px; height: 23px; border-radius: 5px; font-size: .7rem; }.planning-calendar-product .planning-summary-primary { grid-template-columns: 23px 23px minmax(0,1fr); gap: 4px; }.planning-calendar-product .planning-summary-primary > strong { color: #315b3b; font-size: .76rem; }.planning-calendar-product-name { min-width: 0; font-size: .66rem; line-height: 1.2; white-space: normal; overflow-wrap: anywhere; }.planning-calendar-product .planning-summary-status { justify-content: flex-start; }.planning-calendar-product > summary .planning-ready-label { padding: 2px 4px; justify-self: start; font-size: .48rem; }.planning-calendar-product .planning-summary-payment { font-size: .53rem; }
.planning-calendar-product > summary.has-reference-image { padding-right: 23px; grid-template-columns: minmax(0,1fr) 58px; column-gap: 6px; }
.planning-calendar-product > summary.has-reference-image > :not(.planning-calendar-summary-image) { grid-column: 1; }
.planning-calendar-summary-image { position: relative; width: 58px; height: 58px; padding: 0; overflow: hidden; border: 1px solid #d4ccc1; border-radius: 7px; grid-column: 2; grid-row: 1 / span 4; align-self: stretch; background: #eee9e1; cursor: zoom-in; }
.planning-calendar-summary-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.planning-calendar-summary-image span { position: absolute; right: 3px; bottom: 3px; min-width: 20px; padding: 2px 4px; border-radius: 999px; color: #fff; background: rgba(31,28,24,.78); font-size: .48rem; font-weight: 850; line-height: 1.2; }
.planning-calendar-product-body { padding: 5px; border-top: 1px solid #e5e0d9; background: #fff; }.planning-calendar-product.is-ready .planning-calendar-product-body { background: #f3f8f3; }
.planning-calendar-client { display: grid; gap: 2px; }.planning-calendar-client a { color: #4e7056; font-size: .52rem; font-weight: 850; }.planning-calendar-client span { color: var(--muted); font-size: .52rem; line-height: 1.25; }.planning-calendar-product-body > .planning-progress { display: block; margin: 4px 0; font-size: .53rem; text-align: left; }
.planning-calendar-payment { margin: 4px 0; padding: 4px; border-radius: 4px; color: #9b2f27; background: #fce8e5; font-size: .52rem; line-height: 1.3; }
.planning-calendar-product .planning-notes { margin: 4px 0; padding: 4px 5px; border-radius: 4px; }.planning-calendar-product .planning-notes strong { font-size: .52rem; }.planning-calendar-product .planning-notes p { margin-top: 2px; font-size: .52rem; line-height: 1.3; }
.planning-calendar-product .planning-components { gap: 3px; }.planning-calendar-product .planning-component { min-height: 31px; padding: 4px; border-radius: 5px; grid-template-columns: 19px minmax(0,1fr); gap: 4px; }.planning-calendar-product .planning-check-mark { width: 19px; height: 19px; border-radius: 4px; font-size: .58rem; }.planning-calendar-product .planning-component-content strong { font-size: .56rem; white-space: normal; }.planning-calendar-product .planning-component-content small { font-size: .5rem; line-height: 1.25; }
.planning-calendar-product-info { min-width: 0; }
@media (max-width: 820px) { .planning-calendar-week { min-width: 980px; }.planning-calendar-days { --calendar-day-min: 140px; --calendar-today-min: 210px; } }
@media (max-width: 650px) { .planning-calendar { margin-top: 12px; }.planning-calendar-week { min-width: 910px; }.planning-calendar-days { --calendar-day-min: 130px; --calendar-today-min: 195px; }.planning-view-toggle { order: -1; } }

.production-picker-days.has-today.today-1,.planning-calendar-days.has-today.today-1 { grid-template-columns: minmax(var(--calendar-today-min),1.55fr) repeat(6,minmax(var(--calendar-day-min),1fr)); }
.production-picker-days.has-today.today-2,.planning-calendar-days.has-today.today-2 { grid-template-columns: minmax(var(--calendar-day-min),1fr) minmax(var(--calendar-today-min),1.55fr) repeat(5,minmax(var(--calendar-day-min),1fr)); }
.production-picker-days.has-today.today-3,.planning-calendar-days.has-today.today-3 { grid-template-columns: repeat(2,minmax(var(--calendar-day-min),1fr)) minmax(var(--calendar-today-min),1.55fr) repeat(4,minmax(var(--calendar-day-min),1fr)); }
.production-picker-days.has-today.today-4,.planning-calendar-days.has-today.today-4 { grid-template-columns: repeat(3,minmax(var(--calendar-day-min),1fr)) minmax(var(--calendar-today-min),1.55fr) repeat(3,minmax(var(--calendar-day-min),1fr)); }
.production-picker-days.has-today.today-5,.planning-calendar-days.has-today.today-5 { grid-template-columns: repeat(4,minmax(var(--calendar-day-min),1fr)) minmax(var(--calendar-today-min),1.55fr) repeat(2,minmax(var(--calendar-day-min),1fr)); }
.production-picker-days.has-today.today-6,.planning-calendar-days.has-today.today-6 { grid-template-columns: repeat(5,minmax(var(--calendar-day-min),1fr)) minmax(var(--calendar-today-min),1.55fr) minmax(var(--calendar-day-min),1fr); }
.production-picker-days.has-today.today-7,.planning-calendar-days.has-today.today-7 { grid-template-columns: repeat(6,minmax(var(--calendar-day-min),1fr)) minmax(var(--calendar-today-min),1.55fr); }

.ticket-page { min-height: 100vh; padding: 70px 20px 30px; background: #e9e6e1; }
.ticket-toolbar { position: fixed; z-index: 10; top: 0; right: 0; left: 0; display: flex; min-height: 58px; padding: 8px 18px; justify-content: center; gap: 8px; background: #fff; box-shadow: 0 2px 15px rgba(0,0,0,.08); }
.ticket-list { display: grid; justify-content: center; gap: 34px; }
.product-ticket { position: relative; box-sizing: border-box; width: 80mm; padding: 3mm 4mm; border: 2px solid #8d8983; color: #111; background: #fff; box-shadow: 0 10px 28px rgba(31,28,24,.18); }
.product-ticket + .product-ticket::before { content: 'Siguiente ticket'; position: absolute; top: -25px; left: 50%; padding: 2px 8px; color: #77716a; background: #e9e6e1; font-size: 7pt; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; transform: translateX(-50%); white-space: nowrap; }
.product-ticket > header { display: flex; padding-bottom: 2mm; border-bottom: 2px solid #111; align-items: center; justify-content: space-between; gap: 2mm; }
.product-ticket > header span { flex: 0 0 auto; font-size: 8pt; font-weight: 800; }
.product-ticket > header .ticket-product-heading { display: flex; min-width: 0; flex: 1 1 auto; align-items: baseline; gap: 1.5mm; }
.product-ticket > header .ticket-product-heading strong { flex: 0 0 auto; font-size: 15pt; }
.product-ticket > header .ticket-product-heading b { overflow: hidden; font-size: 9pt; text-overflow: ellipsis; white-space: nowrap; }
.ticket-customer { padding: 2mm 0; border-bottom: 1px solid #777; }
.ticket-customer h1 { margin: 0 0 .5mm; font-size: 7.5pt; line-height: 1.25; }
.ticket-customer p { margin: 0; font-size: 7.5pt; line-height: 1.25; }
.ticket-payment { display: grid; margin: 1.5mm 0 0; padding: 1.2mm; border: 1px solid #111; color: #a40000; font-size: 7pt; line-height: 1.25; gap: .4mm; }
.ticket-product-type { margin: 1.5mm 0 1mm; font-size: 7pt; font-weight: 800; text-transform: uppercase; }
.ticket-components > div { display: grid; padding: .8mm 0; grid-template-columns: 3mm minmax(0,1fr); align-items: start; gap: 1mm; }
.ticket-components > div > span { font-size: 8pt; font-weight: 800; line-height: 1.15; }
.ticket-components p { display: grid; margin: 0; gap: .3mm; }
.ticket-components strong { font-size: 7.5pt; white-space: nowrap; }
.ticket-components small { font-size: 7pt; line-height: 1.2; }
.ticket-notes { margin-top: 1mm; padding-top: 1mm; border-top: 1px solid #ccc; font-size: 7pt; line-height: 1.25; }
.ticket-allergies { padding: 1mm; border: 1px solid #111; font-weight: 700; }

@media (max-width: 820px) {
    html, body { max-width: 100%; overflow-x: hidden; }
    .login-shell { display: grid; min-height: 100vh; min-height: 100svh; grid-template-columns: 1fr; grid-template-rows: auto minmax(0,1fr); }
    .brand-panel { min-height: clamp(215px,34svh,310px); padding: calc(20px + env(safe-area-inset-top)) 22px 24px; gap: clamp(18px,3.5vh,28px); justify-content: flex-start; }
    .brand-panel .brand-copy { max-width: 520px; }
    .brand-panel .brand-copy h1 { margin: 5px 0 0; font-size: clamp(1.75rem, 8vw, 2.45rem); line-height: 1.02; }
    .brand-panel .brand-copy > p:not(.eyebrow), .brand-panel .brand-footer { display: none; }
    .login-panel { min-height: 0; padding: 28px 22px calc(22px + env(safe-area-inset-bottom)); justify-content: flex-start; }
    .login-card h2 { margin: 5px 0 7px; font-size: clamp(2.05rem,10vw,2.7rem); }
    .login-card > .eyebrow { font-size: .68rem; }
    .login-card > .muted { font-size: .9rem; }
    .login-card .form-stack { margin-top: 25px; }
    .login-panel-footer { margin-top: 32px; font-size: .73rem; }
    .leftovers-main { width: min(100% - 24px,1480px); }.leftovers-layout { grid-template-columns: 1fr; }.leftovers-catalog,.leftovers-stock { min-height: auto; }.leftovers-catalog { border-right: 0; border-bottom: 1px solid var(--line); }.leftovers-heading { align-items: center; }.leftovers-recipe-list,.leftovers-stock-list { max-height: none; }
    .module-grid { grid-template-columns: 1fr; }
    .table-card { overflow: visible; border: 0; background: transparent; }
    .table-head { display: none; }
    .data-table .table-row:not(.table-head) { position: relative; display: grid; min-height: 0; margin-bottom: 8px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 11px; background: #fff; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 4px 12px; font-size: .78rem; box-shadow: 0 3px 12px rgba(49,39,28,.035); }
    .data-table .table-row:not(.table-head).is-mobile-link { padding-right: 38px; cursor: pointer; }
    .data-table .table-row:not(.table-head).is-mobile-link::after { content: '›'; position: absolute; top: 50%; right: 13px; color: #8a857e; font-size: 1.3rem; transform: translateY(-50%); }
    .data-table .table-row:not(.table-head):focus-visible { border-color: #71977a; outline: 3px solid rgba(79,118,91,.12); }
    .data-table .table-row > span { display: block; min-width: 0; }
    .data-table .table-row > span::before { content: none; }
    .data-table .cell-name { overflow-wrap: anywhere; font-size: .9rem; font-weight: 800; }
    .data-table .cell-name small { overflow-wrap: anywhere; }
    .data-table .row-actions { min-height: 25px; padding: 3px 0 0; border-top: 1px solid #eee9e3; grid-column: 1 / -1; gap: 10px; }
    .data-table .row-actions:empty,.data-table .row-actions:not(:has(form)) { display: none; }
    .data-table .row-actions > a { display: none; }
    .data-table .row-actions .text-action { min-height: 28px; padding: 2px 0; font-size: .68rem; }
    .ingredient-table .table-row:not(.table-head) { grid-template-columns: minmax(0,1fr) auto auto; }
    .ingredient-table .table-row > span:nth-child(1) { grid-column: 1 / -1; }
    .ingredient-table .table-row > span:nth-child(2) { color: #4d4943; }
    .ingredient-table .table-row > span:nth-child(3) { font-weight: 800; }
    .ingredient-table .table-row > span:nth-child(4) { color: #3f674a; font-weight: 750; }
    .ingredient-table .table-row > span:nth-child(5) { overflow: hidden; color: var(--muted); grid-column: 1 / -1; text-overflow: ellipsis; white-space: nowrap; }
    .ingredient-table .table-row > span:nth-child(5):not(:empty)::before { content: 'Proveedor · '; font-size: .66rem; font-weight: 750; }
    .recipe-table .table-row:not(.table-head) { grid-template-columns: minmax(0,1fr) auto auto; }
    .recipe-table .table-row > span:nth-child(1) { grid-column: 1 / -1; }
    .recipe-table .table-row > span:nth-child(2) { color: #3f674a; font-weight: 750; }
    .recipe-table .table-row > span:nth-child(3) { color: var(--muted); }
    .recipe-table .table-row > span:nth-child(3)::after { content: ' ingredientes'; }
    .recipe-table .table-row > span:nth-child(4) { font-weight: 800; }
    .order-table .table-row:not(.table-head) { grid-template-columns: auto minmax(0,1fr) auto; }
    .order-table .table-row > span:nth-child(1) { font-size: .92rem; grid-column: 1; grid-row: 1; }
    .order-table .table-row > span:nth-child(2) { grid-column: 2 / -1; grid-row: 1; }
    .order-table .table-row > span:nth-child(3),.order-table .table-row > span:nth-child(4),.order-table .table-row > span:nth-child(5) { color: var(--muted); font-size: .69rem; }
    .order-table .table-row > span:nth-child(5)::after { content: ' productos'; }
    .access-table .table-row:not(.table-head) { grid-template-columns: minmax(0,1fr) auto; }
    .access-table .table-row > span:nth-child(1) { color: var(--muted); font-size: .65rem; }
    .access-table .table-row > span:nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
    .access-table .table-row > span:nth-child(3),.access-table .table-row > span:nth-child(6) { overflow: hidden; color: var(--muted); font-size: .64rem; text-overflow: ellipsis; white-space: nowrap; }
    .access-table .table-row > span:nth-child(4) { grid-column: 2; grid-row: 1; }
    .access-table .table-row > span:nth-child(5) { grid-column:1 / -1;padding-top:3px;color:var(--text);white-space:normal; }
    .access-table .table-row > span:nth-child(6) { grid-column: 1 / -1; }
    .admin-access-policy { grid-template-columns:1fr;gap:11px; }
    .admin-access-policy form { grid-template-columns:1fr; }
    .admin-access-policy .button { width:100%; }
    .admin-lock-list article { align-items:stretch;flex-direction:column; }
    .admin-lock-list form,.admin-lock-list .button { width:100%; }
    .search-form { position: relative; margin: 20px 0 12px; align-items: center; gap: 7px; }
    .search-form .search-autocomplete { width: 100%; }
    .search-form input { height: 44px; padding-inline: 13px; }
    .search-form > button[type="submit"] { display: none; }
    .search-form > .button-quiet { min-height: 36px; padding: 0 8px; font-size: .68rem; }
    .search-status { min-height: 16px; margin: -4px 0 9px; font-size: .68rem; }
    .recipe-line { padding-top: 48px; grid-template-columns: 1fr 1fr; }
    .recipe-drag-handle { position: absolute; top: 10px; left: 10px; height: 32px; }
    .recipe-ingredient-autocomplete { grid-column: 1 / -1; }
    .recipe-line-cost { padding-left: 4px; }
    .grouped-recipe-line { position:relative;padding-top:48px;grid-template-columns:1fr 1fr; }
    .grouped-recipe-line.is-component-only { grid-template-columns:1fr; }
    .grouped-recipe-line .recipe-ingredient-autocomplete { grid-column:1 / -1; }
    .grouped-recipe-actions { position:absolute;top:10px;right:10px;margin:0; }
    .grouped-recipe-actions .icon-button { position:static;height:32px; }
    .icon-button { position: absolute; top: 10px; right: 10px; height: 32px; }
    .grouped-recipe-line > .icon-button { margin-top: 0; }
    .grouped-variant-line { grid-template-columns:1fr 1fr; }
    .grouped-variant-line>span { grid-column:1 / -1; }
    .order-personal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .order-observations { grid-column: span 2; }
    .order-image-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .order-product-fields { grid-template-columns: minmax(190px, 1.4fr) 85px 105px minmax(130px, .7fr); }
    .order-product-image-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
    .production-header { grid-template-columns: 1fr auto; }
    .production-header-title { display: none; }
    .production-layout { display: block; }
    .production-layout-with-navigation > .app-navigation { height: 54px; margin-top: 0; margin-bottom: 0; }
    .production-layout-with-navigation > .production-catalog { height: calc(100% - 54px); }
    .production-catalog { height: 100%; padding: 22px; }
    .production-bag-toggle { display: inline-flex; }
    .production-bag { position: fixed; top: 0; right: 0; bottom: 0; width: min(92vw, 470px); border-left: 1px solid var(--line); box-shadow: -20px 0 55px rgba(32, 28, 23, .2); transform: translateX(105%); transition: transform .2s ease; }
    .production-bag-open .production-bag { transform: translateX(0); }
    .production-bag-close { display: block; }
    .production-drawer-backdrop { position: fixed; z-index: 15; inset: 0; display: block; width: 100%; height: 100%; padding: 0; border: 0; background: rgba(30, 27, 23, .35); }
    .production-drawer-backdrop[hidden] { display: none; }
}

@media (max-width: 650px) {
    .admin-user-main { grid-template-columns: minmax(0,1fr) auto; }.admin-user-actions { align-items:flex-end;flex-direction:column; }.admin-company-actions { align-items:stretch;flex-direction:column; }.admin-company-actions .button { width:100%; }.admin-user-main > .text-action { grid-column: 1 / -1; justify-self: start; }.admin-session-limit { grid-template-columns: minmax(0,1fr) 76px; }.admin-session-limit small { grid-column: 1 / -1; }.admin-alias-password>div { grid-template-columns:1fr; }.admin-alias-password .button { width:100%; }.permission-grid { overflow: visible; border: 0; }.permission-head { display: none; }.permission-row { min-width: 0; min-height: 54px; padding: 7px 5px; border: 1px solid var(--line); border-radius: 8px; grid-template-columns: minmax(0,1fr) repeat(3,44px); gap: 3px; }.permission-row + .permission-row { margin-top: 5px; }.permission-row strong { overflow: hidden; font-size: .7rem; text-overflow: ellipsis; white-space: nowrap; }.permission-row label { position: relative; padding-top: 16px; }.permission-row label::before { position: absolute; top: 0; color: var(--muted); font-size: .48rem; font-weight: 800; text-transform: uppercase; }.permission-row label:nth-child(2)::before { content: 'Ver'; }.permission-row label:nth-child(3)::before { content: 'Editar'; }.permission-row label:nth-child(4)::before { content: 'Borrar'; }.admin-storage { grid-template-columns: 1fr 1fr; }.admin-storage-age { align-items: flex-start; flex-direction: column; }.admin-storage-age small { margin-left: 0; }
    .admin-company > summary { padding-right: 18px; align-items: flex-start; flex-direction: column; }
    .admin-switch { justify-content: space-between; }
    .admin-company-form-grid,.admin-company-logo-grid { grid-template-columns: 1fr; gap: 8px; }
    .chat-panel { width: 75vw; min-width: 260px; }
    .chat-panel-open { overflow: hidden; }
    .chat-launcher { right: 14px; bottom: 14px; }
    .pastelco-native-app .chat-launcher { right: 14px; bottom: 14px; left: auto; }
    .pastelco-native-app.production-picker-page .chat-launcher { bottom: 86px; }
    .pastelco-native-app .planning-print-bar { bottom: 72px; }
    .recipes-heading, .elaboration-recipe-item { align-items: stretch; flex-direction: column; }
    .recipes-heading .button { width: 100%; }
    .elaboration-recipe-item .row-actions { justify-content: flex-start; }
    .order-component-row { grid-template-columns: 30px minmax(0, 1fr) 34px; }
    .order-component-row > .order-builder-field { grid-column: 1 / -1; }
    .order-component-row > .order-component-batches { width: 88px; grid-column: 2; }
    .order-component-row > .order-remove-button { grid-column: 3; grid-row: 1; margin-top: 0; }
    .order-component-identity { grid-column: 2; grid-row: 1; }
    .order-component-grip { grid-column: 1; grid-row: 1; }
    .order-product-fields { grid-template-columns: 1fr 1fr; }
    .order-product-fields > :first-child, .order-product-fields > :last-child { grid-column: 1 / -1; }
    .planning-header { padding: 8px 18px; grid-template-columns: auto minmax(0,1fr) auto; }
    .planning-header-title { display: none; }
    .planning-header .company-switcher { justify-self: center; }
    .planning-header .company-switcher select { width: min(145px, 100%); min-width: 0; }
    .planning-main { width: min(100% - 18px,1580px); padding-top: 16px; }
    .planning-toolbar { align-items: stretch; flex-direction: column; }
    .planning-monthly-page .planning-toolbar { overflow-x: auto; align-items: center; flex-direction: row; }
    .planning-monthly-page .planning-toolbar > * { flex: 0 0 auto; }
    .planning-navigation { justify-content: flex-start; }
    .planning-week-tabs { top: 64px; overflow-x: auto; grid-template-columns: repeat(4,minmax(145px,1fr)); }
    .planning-week-heading { align-items: flex-start; flex-direction: column; }
    .planning-day-heading > div { align-items: flex-start; flex-direction: column; gap: 2px; }
    .planning-order { margin: 8px; }
    .planning-order-heading { align-items: flex-start; flex-direction: column; }
    .planning-product > summary { padding: 10px 42px 10px 10px; gap: 7px; }
    .planning-product-name { white-space: normal; }
    .planning-summary-primary { grid-template-columns: 26px 26px minmax(0,1fr); }
    .planning-summary-status { justify-content: flex-start; }
    .planning-progress { text-align: left; }
    .planning-ready-label { justify-self: start; }
    .planning-component-content { grid-template-columns: 1fr; }
    .planning-component-content small { grid-column: 1; }
    .planning-component-content .order-use-badge { justify-self: start; }
    .planning-product-actions { align-items: stretch; flex-direction: column; }
    .planning-product-actions .button { width: 100%; }
    .planning-print-bar { right: 9px; bottom: 8px; left: 9px; justify-content: space-between; }
}

@media (max-width: 520px) {
    .setup-page { padding: 22px 14px 40px; }
    .setup-card { margin-top: 24px; padding: 26px 20px; }
    .app-header { align-items: center; }
    .leftovers-main { width: min(100% - 16px,1480px); }.leftovers-heading { padding: 8px 4px 14px; }.leftovers-heading h1 { font-size: 2rem; }.leftovers-heading p:last-child { max-width: 240px; }.leftovers-total { min-width: 78px; padding: 8px; }.leftovers-catalog,.leftovers-stock { padding: 11px; }.leftovers-section-heading { align-items: stretch; flex-direction: column; }.leftovers-section-heading input { width: 100%; }.leftovers-recipe { padding: 9px; gap: 7px; }.leftovers-counter { grid-template-columns: 32px 30px 32px; }.leftovers-counter button { width: 32px; }.leftovers-stock-note > div { grid-template-columns: 1fr; }.leftovers-stock-note .button { width: 100%; }.leftovers-match-list,.leftovers-match-list form,.leftovers-match-list button { width: 100%; }
    .app-header .brand > span:last-child { display: none; }
    .account { align-items: center; flex-direction: row; gap: 7px; }
    .account-identity { max-width: min(145px, 40vw); }
    .account-company { max-width: min(145px, 40vw); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .account-profile { max-width: 100%; justify-content: flex-end; }
    .account-user-links { width:100%;gap:5px; }
    .account-superuser { flex:0 0 auto;font-size:.55rem;letter-spacing:.02em; }
    .account-profile > span { overflow: hidden; max-width: 88px; text-overflow: ellipsis; white-space: nowrap; }
    .company-switcher select { min-width: 0; width: min(145px, 40vw); max-width: 145px; }
    .production-order-preview-meta { grid-template-columns: 1fr 1fr; }
    .dashboard { width: min(100% - 30px, 1050px); }
    .content-shell, .form-shell { width: min(100% - 28px, 1180px); padding-top: 26px; }
    .form-shell > .app-navigation, .app-navigation-fullscreen { width: calc(100vw - 28px); }
    .page-heading { align-items: stretch; flex-direction: column; }
    .heading-actions { align-items: stretch; flex-direction: column-reverse; }
    .page-heading .button { width: 100%; }
    .search-form { flex-wrap: wrap; }
    .search-autocomplete { width: 100%; }
    .search-form .button-secondary { flex: 1; }
    .form-grid { grid-template-columns: 1fr; gap: 0; }
    .editor-card { padding: 26px 20px; }
    .form-actions { align-items: stretch; flex-direction: column-reverse; }
    .form-actions .button { width: 100%; }
    .history-item { grid-template-columns: 1fr; }
    .history-values { justify-content: flex-start; }
    .history-item form { justify-self: start; }
    .recipe-lines-heading { align-items: stretch; flex-direction: column; }
    .recipe-lines-heading .button { width: 100%; }
    .recipe-instructions-heading { align-items:stretch;flex-direction:column; }
    .recipe-instructions-heading .button { width:100%; }
    .recipe-list-add-row .button { width:100%; }
    .recipe-line-weight-warning { grid-column:auto; }
    .recipe-line { grid-template-columns: 1fr; padding-top: 48px; }
    .grouped-recipe-line { grid-template-columns:1fr; }
    .grouped-variant-line { grid-template-columns:1fr; }
    .grouped-variant-line>span { grid-column:auto; }
    .recipe-ingredient-autocomplete { grid-column: auto; }
    .scaling-controls { grid-template-columns: 1fr; }
    .mold-measures { grid-template-columns: 1fr; }
    .recipe-summary-grid { grid-template-columns: 1fr; }
    .scale-summary, .scaled-line { align-items: flex-start; flex-direction: column; gap: 5px; }
    .production-page .production-header { min-height: 62px; padding: 9px 14px; }
    .production-page .production-header .brand > span:last-child { display: none; }
    .production-page .production-header > .button { min-height: 42px; }
    .production-layout { height: calc(100vh - 72px); height: calc(100dvh - 72px); }
    .production-catalog { padding: 17px 14px 30px; }
    .production-catalog-heading { align-items: center; }
    .production-catalog-heading h1 { font-size: 1.8rem; }
    .production-bag-toggle { min-height: 47px; }
    .production-card-grid { grid-template-columns: 1fr; }
    .production-recipe-card { min-height: 78px; }
    .production-item-controls { width: 116px; grid-template-columns: 1fr; }
    .production-selected-item { grid-template-columns: minmax(0, 1fr) 116px 34px; }
    .production-work-page .production-header { min-height: 62px; padding: 9px 14px; }
    .production-work-page .production-header .brand > span:last-child { display: none; }
    .production-sheets-shell { width: min(100% - 24px, 1120px); padding: 24px 0 50px; }
    .production-work-heading { align-items: stretch; flex-direction: column; }
    .production-work-heading .button { width: 100%; }
    .production-sheet-header { gap: 14px; }
    .production-sheet-amount { min-width: 112px; padding: 0; grid-template-columns: 34px minmax(36px,1fr) 34px; }
    .production-sheet-measures { flex-direction: column; align-items: flex-start; }
    .production-sheet-section-heading { align-items: flex-start; flex-direction: column; gap: 4px; }
    .production-check-list { grid-template-columns: 1fr; }
    .production-check-row { grid-template-columns: 34px minmax(0, 1fr) auto; }
    .production-sheet-meta { grid-template-columns: 1fr; }
    .production-adjustments-heading { align-items: flex-start; flex-direction: column; gap: 3px; }
    .production-adjustment-controls { grid-template-columns: 1fr 1fr; }
    .production-adjustment-controls.is-weight-only { grid-template-columns: 1fr; }
    .production-adjustment-reset { grid-column: 1 / -1; }
    .order-form-shell { width: min(100% - 20px, 1180px); }
    .order-section-heading, .order-production-heading { align-items: stretch; flex-direction: column; }
    .order-production-heading .button { width: 100%; }
    .order-personal-grid { grid-template-columns: 1fr; }
    .order-observations { grid-column: auto; }
    .order-product-summary { align-items: flex-start; flex-direction: column; gap: 2px; }
    .order-product-fields, .order-piece-fields { grid-template-columns: 1fr; }
    .order-product-fields > * { grid-column: auto !important; }
    .order-component-heading { align-items: flex-start; flex-direction: column; gap: 2px; }
    .order-piece-actions .danger-action, .order-product-actions .danger-action { width: 100%; margin: 4px 0 0; text-align: left; }
    .order-form-actions { align-items: stretch; flex-direction: column-reverse; }
    .order-form-actions .button { width: 100%; }
    .order-image-list { grid-template-columns: 1fr; }
    .order-image-preview { height: 190px; }
    .order-product-image-list { grid-template-columns: 1fr; }
    .order-product-image-list .order-image-preview { height: 180px; }
    .order-type-options { grid-template-columns: 1fr; }
    .order-extra-modal-fields { grid-template-columns: 1fr; }
    .order-complement-selection { align-items: stretch; grid-template-columns: 1fr; }
    .order-complement-cost { text-align: left; }
    .order-modal-card { padding: 20px; }
    .order-modal-card .form-actions,.order-modal-card .order-modal-actions { bottom: -20px; margin: 14px -20px -20px; padding: 11px 20px calc(14px + env(safe-area-inset-bottom,0px)); }
    .profile-app { margin-right: 36px; grid-template-columns: 92px minmax(0,1fr); gap: 10px; }
    .profile-app img { width: 92px; height: 92px; }
    .profile-app span { font-size: .68rem; }
    .profile-app .button { width: 100%; padding-inline: 8px; }
    .recipe-variant-modal { width: min(96vw,680px); max-height: calc(100dvh - 12px); }
    .recipe-variant-modal .order-modal-card { max-height: calc(100dvh - 12px); }
    .recipe-variant-modal .form-actions { bottom: -20px; margin: 12px -20px -20px; padding: 12px 20px 16px; }
    .order-product-information { grid-template-columns: 1fr; }
    .order-product-cost { grid-template-columns: 1fr auto; }
}

@media (max-width: 900px), (max-width: 1100px) and (pointer: coarse) {
    .leftovers-layout { grid-template-columns: 1fr; }
    .leftovers-stock { min-height: auto; border-bottom: 1px solid var(--line); order: -1; }
    .leftovers-catalog { min-height: auto; border-right: 0; border-bottom: 0; }
    .production-picker-toolbar { display: grid; min-height: 0; padding: 7px 10px; overflow: visible; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; }
    .production-picker-toolbar-heading { display: flex; min-width: 0; grid-column: 1 / -1; }
    .production-picker-toolbar-heading > div { min-width: 0; }
    .production-picker-toolbar-filters { width: 100%; grid-column: 1 / -1; justify-content: flex-start; }
    .production-picker-toolbar > * { min-width: 0; }
    .production-picker-toolbar .production-date-control,.production-picker-toolbar .production-picker-use-filter { width: auto; min-width: 0; }
    .production-picker-toolbar .production-date-control > span,.production-picker-toolbar .production-picker-use-filter > span { display: none; }
    .production-picker-toolbar .production-date-control input,.production-picker-toolbar .production-picker-use-filter select { width: auto; min-height: 36px; }
    .production-picker-toolbar > .button { min-height: 38px; margin: 0; grid-column: 1 / -1; font-size: .68rem; }
    .production-mobile-week-navigation { grid-template-columns: 38px minmax(0,1fr) 38px; }
    .production-month-grid { padding: 9px 9px 86px; overflow-x: hidden; overflow-y: auto; scrollbar-gutter: auto; }
    .production-picker-week { min-width: 0; margin: 0; overflow: visible; border: 0; background: transparent; box-shadow: none; }
    .production-picker-week:not(:first-of-type) { display: none; }
    .production-picker-week > header { display: none; }
    .production-picker-days,.production-picker-days.has-today.today-1,.production-picker-days.has-today.today-2,.production-picker-days.has-today.today-3,.production-picker-days.has-today.today-4,.production-picker-days.has-today.today-5,.production-picker-days.has-today.today-6,.production-picker-days.has-today.today-7 { display: grid; overflow: hidden; border: 1px solid #d7d1c8; border-radius: 12px; grid-template-columns: repeat(7,minmax(0,1fr)); background: #fff; box-shadow: 0 3px 12px rgba(45,38,30,.04); }
    .production-picker-day { display: contents; }
    .production-picker-day > header { display: flex; min-width: 0; min-height: 74px; padding: 7px 2px; border-right: 1px solid #e4ded6; border-bottom: 1px solid #ddd7cf; grid-row: 1; align-items: center; flex-direction: column; justify-content: center; gap: 2px; color: var(--ink); background: #fff; cursor: pointer; user-select: none; }
    .production-picker-day:last-of-type > header { border-right: 0; }
    .production-picker-day > header:focus-visible { position: relative; z-index: 2; outline: 3px solid rgba(82,117,91,.2); outline-offset: -3px; }
    .production-picker-day > header strong { font-size: clamp(.57rem,2.6vw,.72rem); font-weight: 750; }
    .production-picker-day > header time { color: inherit; font-size: clamp(.75rem,3.6vw,1rem); font-weight: 850; line-height: 1; }
    .production-picker-day > header > .production-picker-count { display: grid; min-width: 23px; height: 23px; margin-top: 3px; padding: 0 4px; border-radius: 999px; place-items: center; color: #315b3b; background: #e5eee7; font-size: .62rem; }
    .production-desktop-date,[data-picker-day-count] { display: none; }
    .production-mobile-date,[data-picker-day-order-count] { display: block; }
    .production-picker-day.is-past > header { color: #99938b; background: #f0eeea; }
    .production-picker-day.is-past > header > .production-picker-count { color: #8d8780; background: #dfdcd7; }
    .production-picker-day.is-today > header { box-shadow: inset 0 3px #527a5c; }
    .production-picker-day.is-mobile-active > header { border-color: #b85e3d; color: #fff; background: var(--accent); box-shadow: none; }
    .production-picker-day.is-mobile-active > header > .production-picker-count { color: #71331e; background: rgba(255,255,255,.72); }
    .production-picker-day.is-past.is-mobile-active > header { border-color: #aaa49c; color: #5f5a54; background: #d8d4ce; box-shadow: inset 0 3px #8f8981; }
    .production-picker-day.is-past.is-mobile-active > header > .production-picker-count { color: #5f5a54; background: #efede9; }
    .production-picker-products { display: none; min-height: 78px; padding: 8px; border: 0; grid-column: 1 / -1; grid-row: 3; background: #f6f3ee; }
    .production-picker-day.is-mobile-active > .production-picker-products { display: block; animation: planning-mobile-day-in .22s ease both; }
    .production-picker-products:empty::after { content: 'Sin pedidos para este día'; display: block; padding: 24px 8px; color: var(--muted); font-size: .72rem; text-align: center; }
    .production-picker-empty { padding: 24px 8px; font-size: .72rem; }
    .production-picker-card { margin: 0 0 7px; padding: 9px; border-radius: 9px; }
    .production-picker-card:last-child { margin-bottom: 0; }
    .production-picker-card-heading { gap: 7px; }
    .production-picker-card-primary { grid-template-columns: 26px 24px minmax(0,1fr); }
    .production-picker-card-heading strong { font-size: .86rem; }
    .production-picker-card-copy b { font-size: .76rem; }
    .production-picker-card-copy small { font-size: .65rem; }
    .production-picker-component,.production-picker-components > span { min-height: 31px; padding: 5px 6px; grid-template-columns: 18px minmax(0,1fr) auto; font-size: .67rem; }
    .production-picker-component small,.production-picker-component button { font-size: .58rem; }
    .production-picker-details > summary,.production-picker-details p { font-size: .64rem; }
    .production-picker-day-summary { display: none; padding: 8px; grid-column: 1 / -1; grid-row: 4; }
    .production-picker-day.is-mobile-active > .production-picker-day-summary:not([hidden]) { display: block; }
    .production-picker-day-summary > strong { font-size: .62rem; }
    .production-picker-day-summary span { font-size: .6rem; }
    .planning-monthly-page .planning-main { overflow: hidden; }
    .planning-monthly-page .planning-toolbar { overflow: visible; padding: 7px 10px; flex-flow: row wrap; gap: 7px; }
    .planning-monthly-page .planning-toolbar-heading { display: flex; width: 100%; }
    .planning-monthly-page .planning-toolbar-heading > div { min-width: 0; }
    .planning-monthly-page .planning-date-jump { min-width: 145px; flex: 1 1 145px; }
    .planning-monthly-page .planning-date-jump > span { display: none; }
    .planning-monthly-page .planning-date-jump input { width: 100%; min-height: 36px; }
    .planning-monthly-page .planning-toolbar .planning-view-toggle { margin-left: 0; flex: 0 0 auto; }
    .planning-monthly-page .planning-view-toggle a { min-height: 36px; padding-inline: 9px; }
    .planning-monthly-page .planning-calendar { margin: 0; padding: 9px 9px 78px; overflow-x: hidden; overflow-y: auto; scrollbar-gutter: auto; }
    .planning-mobile-week-navigation { display: grid; margin-bottom: 9px; padding: 6px; border: 1px solid #d7d1c8; border-radius: 12px; grid-template-columns: 38px minmax(0,1fr) 38px auto; align-items: center; gap: 5px; background: #fff; box-shadow: 0 3px 12px rgba(45,38,30,.04); }
    .planning-monthly-page .planning-mobile-week-navigation { grid-template-columns: 38px minmax(0,1fr) 38px; }
    .planning-mobile-week-navigation > a,.planning-mobile-week-navigation > span.is-disabled { display: grid; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 9px; place-items: center; color: #315b3b; background: #faf9f7; font-size: 1.3rem; font-weight: 800; text-decoration: none; }
    .planning-mobile-week-navigation > span.is-disabled { opacity: .35; }
    .planning-mobile-week-navigation > div { display: grid; min-width: 0; text-align: center; gap: 1px; }
    .planning-mobile-week-navigation > div strong { font-family: Georgia,serif; font-size: 1rem; font-weight: 500; }
    .planning-mobile-week-navigation > div span { overflow: hidden; color: var(--muted); font-size: .62rem; text-overflow: ellipsis; white-space: nowrap; }
    .planning-mobile-week-navigation > a.planning-mobile-today { width: auto; padding: 0 10px; color: #fff; background: #20551A; font-size: .66rem; }
    .planning-calendar-week { min-width: 0; margin: 0; overflow: visible; border: 0; background: transparent; box-shadow: none; }
    .planning-calendar-week:not(:first-of-type) { display: none; }
    .planning-calendar-week > header { display: none; }
    .planning-calendar-days,.planning-calendar-days.has-today.today-1,.planning-calendar-days.has-today.today-2,.planning-calendar-days.has-today.today-3,.planning-calendar-days.has-today.today-4,.planning-calendar-days.has-today.today-5,.planning-calendar-days.has-today.today-6,.planning-calendar-days.has-today.today-7 { display: grid; overflow: hidden; border: 1px solid #d7d1c8; border-radius: 12px; grid-template-columns: repeat(7,minmax(0,1fr)); background: #fff; box-shadow: 0 3px 12px rgba(45,38,30,.04); }
    .planning-calendar-day { display: contents; }
    .planning-calendar-day > header { display: flex; min-width: 0; min-height: 74px; padding: 7px 2px; border-right: 1px solid #e4ded6; border-bottom: 1px solid #ddd7cf; grid-row: 1; align-items: center; flex-direction: column; justify-content: center; gap: 2px; color: var(--ink); background: #fff; cursor: pointer; user-select: none; }
    .planning-calendar-day:last-of-type > header { border-right: 0; }
    .planning-calendar-day > header:focus-visible { position: relative; z-index: 2; outline: 3px solid rgba(82,117,91,.2); outline-offset: -3px; }
    .planning-calendar-day > header strong { font-size: clamp(.57rem,2.6vw,.72rem); font-weight: 750; }
    .planning-calendar-day > header time { color: inherit; font-size: clamp(.75rem,3.6vw,1rem); font-weight: 850; line-height: 1; }
    .planning-calendar-day > header > .planning-calendar-count { display: grid; min-width: 23px; height: 23px; margin-top: 3px; padding: 0 4px; border-radius: 999px; place-items: center; color: #315b3b; background: #e5eee7; font-size: .62rem; }
    .planning-desktop-count,.planning-desktop-date { display: none; }
    .planning-mobile-count,.planning-mobile-date { display: block; }
    .planning-calendar-day.is-past > header { color: #99938b; background: #f0eeea; }
    .planning-calendar-day.is-past > header > .planning-calendar-count { color: #8d8780; background: #dfdcd7; }
    .planning-calendar-day.is-today > header { box-shadow: inset 0 3px #527a5c; }
    .planning-calendar-day.is-mobile-active > header { border-color: #b85e3d; color: #fff; background: var(--accent); box-shadow: none; }
    .planning-calendar-day.is-mobile-active > header > .planning-calendar-count { color: #71331e; background: rgba(255,255,255,.72); }
    .planning-calendar-day.is-past.is-mobile-active > header { border-color: #aaa49c; color: #5f5a54; background: #d8d4ce; box-shadow: inset 0 3px #8f8981; }
    .planning-calendar-day.is-past.is-mobile-active > header > .planning-calendar-count { color: #5f5a54; background: #efede9; }
    .planning-mobile-day-heading { display: flex; min-height: 48px; padding: 10px 12px; border-bottom: 1px solid #e0dbd4; grid-column: 1 / -1; grid-row: 2; align-items: center; justify-content: space-between; gap: 10px; background: #f8f6f2; }
    .planning-mobile-day-heading strong { font-family: Georgia,serif; font-size: .9rem; font-weight: 600; }
    .planning-mobile-day-heading span { flex: 0 0 auto; padding: 4px 7px; border-radius: 999px; color: #8a3e24; background: #f8ded4; font-size: .61rem; font-weight: 800; }
    .planning-calendar-products { display: none; min-height: 78px; padding: 8px; border: 0; grid-column: 1 / -1; grid-row: 3; background: #f6f3ee; }
    .planning-calendar-day.is-mobile-active > .planning-calendar-products { display: block; animation: planning-mobile-day-in .22s ease both; }
    .planning-calendar-products:empty::after { content: 'Sin pedidos para este día'; display: block; padding: 24px 8px; color: var(--muted); font-size: .72rem; text-align: center; }
    .planning-calendar-empty { padding: 24px 8px; font-size: .72rem; }
    .planning-calendar-product { margin: 0 0 7px; border-radius: 9px; }
    .planning-calendar-product:last-child { margin-bottom: 0; }
    .planning-calendar-product > summary { min-height: 64px; padding: 9px 30px 9px 9px; grid-template-columns: minmax(0,1fr) auto; gap: 5px 9px; }
    .planning-calendar-product .planning-summary-primary { grid-column: 1 / -1; }
    .planning-calendar-product .planning-summary-primary > strong { font-size: .86rem; }
    .planning-calendar-product-name { font-size: .76rem; }
    .planning-calendar-product > summary .planning-ready-label { padding: 3px 7px; font-size: .58rem; }
    .planning-calendar-product .planning-summary-payment { grid-column: 1 / -1; font-size: .64rem; }
    .planning-calendar-product > summary.has-reference-image { grid-template-columns: minmax(0,1fr) 72px; }
    .planning-calendar-summary-image { width: 72px; height: 72px; }
    .planning-calendar-product-body { padding: 9px; }
    .planning-calendar-client a,.planning-calendar-client span,.planning-calendar-product-body > .planning-progress,.planning-calendar-payment,.planning-calendar-product .planning-notes strong,.planning-calendar-product .planning-notes p { font-size: .65rem; }
    .planning-calendar-product .planning-component-content strong { font-size: .68rem; }
    .planning-calendar-product .planning-component-content small { font-size: .61rem; }
    .planning-agenda-decoration { margin-bottom: 7px; }
    .planning-mobile-add-order { display: flex; min-height: 46px; margin-top: 9px; border: 1px solid #abc6b1; border-radius: 11px; align-items: center; justify-content: center; gap: 8px; color: #20551A; background: #eef5ef; font-size: .76rem; font-weight: 850; text-decoration: none; }
    .planning-mobile-add-order span { display: grid; width: 22px; height: 22px; border-radius: 50%; place-items: center; color: #fff; background: #20551A; font-size: 1rem; line-height: 1; }
    @keyframes planning-mobile-day-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
}

@media (max-width: 390px) {
    .planning-mobile-week-navigation { grid-template-columns: 34px minmax(0,1fr) 34px auto; padding: 5px; gap: 3px; }
    .planning-monthly-page .planning-mobile-week-navigation { grid-template-columns: 34px minmax(0,1fr) 34px; }
    .production-mobile-week-navigation { grid-template-columns: 34px minmax(0,1fr) 34px; }
    .planning-mobile-week-navigation > a,.planning-mobile-week-navigation > span.is-disabled { width: 34px; height: 36px; }
    .planning-mobile-week-navigation > a.planning-mobile-today { width: auto; padding-inline: 7px; }
    .planning-calendar-day > header { min-height: 69px; }
    .planning-mobile-day-heading { align-items: flex-start; flex-direction: column; gap: 4px; }
}

/* Acabado de cristal: profundidad discreta sin perder jerarquia ni contraste. */
.button,
.logout-button,
.production-nav-button,
.production-today,
.production-view-toggle a,
.planning-view-toggle a,
.planning-mobile-week-navigation > a,
.planning-mobile-add-order,
.planning-print-icon,
.recipe-drag-handle,
.icon-button,
.production-add-mark,
.production-subtract-mark,
.production-column-actions button,
.production-bag-close,
.production-adjustment-reset,
.order-component-add,
.order-type-option,
.order-recipe-option,
.order-modal-close,
.order-modal-upload,
.chat-back,
.chat-new,
.chat-close,
.chat-attach,
.leftovers-match-list button {
    border-color: var(--glass-border);
    background-color: var(--glass-surface);
    background-image: linear-gradient(145deg, var(--glass-surface-strong), rgba(242, 237, 230, .58));
    box-shadow: var(--glass-shadow);
    -webkit-backdrop-filter: blur(12px) saturate(135%);
    backdrop-filter: blur(12px) saturate(135%);
    transition: border-color .22s ease, background-color .22s ease, box-shadow .22s ease, color .22s ease, transform .22s ease;
}

.button-primary,
.chat-send,
.production-add-mark,
.production-bag-toggle,
.planning-mobile-week-navigation > a.planning-mobile-today {
    border: 1px solid rgba(255, 255, 255, .34);
    color: #fff;
    background-color: var(--accent);
    background-image: linear-gradient(145deg, rgba(219, 126, 91, .96), rgba(168, 82, 53, .96));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .32), 0 9px 23px rgba(137, 65, 40, .22);
    -webkit-backdrop-filter: blur(12px) saturate(140%);
    backdrop-filter: blur(12px) saturate(140%);
}

.chat-send,
.production-bag-toggle,
.planning-mobile-week-navigation > a.planning-mobile-today {
    background-color: #20551a;
    background-image: linear-gradient(145deg, rgba(53, 112, 47, .97), rgba(20, 70, 15, .97));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 9px 22px rgba(22, 72, 18, .22);
}

.production-view-toggle a.is-active,
.planning-view-toggle a.is-active {
    border-color: rgba(255, 255, 255, .28);
    color: #fff;
    background-color: #52755b;
    background-image: linear-gradient(145deg, rgba(104, 143, 113, .98), rgba(59, 94, 68, .98));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 7px 17px rgba(48, 79, 56, .2);
}

.production-clear-button,
.production-remove-item,
.production-column-actions button.is-danger,
.production-batch-recipe button,
.production-picker-component button,
.order-remove-button,
.icon-button.danger-action,
.chat-pending-file button,
.chat-image-delete {
    border: 1px solid rgba(155, 59, 39, .18);
    color: var(--danger);
    background-color: rgba(255, 241, 237, .84);
    background-image: linear-gradient(145deg, rgba(255, 250, 248, .94), rgba(248, 220, 213, .76));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 6px 15px rgba(122, 47, 33, .1);
    -webkit-backdrop-filter: blur(10px) saturate(130%);
    backdrop-filter: blur(10px) saturate(130%);
}

.production-stepper-controls button,
.production-sheet-amount button,
.production-adjustment-stepper button,
.leftovers-counter button {
    border-color: rgba(75, 105, 80, .18);
    background-color: rgba(237, 245, 238, .84);
    background-image: linear-gradient(145deg, rgba(255, 255, 255, .9), rgba(220, 234, 221, .72));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 4px 10px rgba(49, 79, 55, .08);
    -webkit-backdrop-filter: blur(9px) saturate(125%);
    backdrop-filter: blur(9px) saturate(125%);
    transition: background-color .2s ease, box-shadow .2s ease, color .2s ease, transform .2s ease;
}

.module-card {
    border-color: rgba(255, 255, 255, .82);
    background-color: rgba(255, 255, 255, .7);
    background-image: linear-gradient(145deg, rgba(255, 255, 255, .94), rgba(245, 240, 233, .62));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .96), 0 11px 30px rgba(49, 39, 28, .07);
    -webkit-backdrop-filter: blur(16px) saturate(125%);
    backdrop-filter: blur(16px) saturate(125%);
    transition: border-color .24s ease, box-shadow .24s ease, transform .24s ease;
}

.module-icon {
    border: 1px solid rgba(255, 255, 255, .28);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 8px 18px rgba(41, 38, 33, .17);
}

.chat-launcher {
    border: 1px solid rgba(255, 255, 255, .34);
    background-color: #20551a;
    background-image: linear-gradient(145deg, rgba(53, 112, 47, .98), rgba(19, 67, 14, .98));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 13px 31px rgba(25, 77, 20, .3);
    -webkit-backdrop-filter: blur(12px) saturate(140%);
    backdrop-filter: blur(12px) saturate(140%);
    transition: box-shadow .22s ease, transform .22s ease;
}

.button:focus-visible,
.logout-button:focus-visible,
.production-nav-button:focus-visible,
.production-today:focus-visible,
.production-view-toggle a:focus-visible,
.planning-view-toggle a:focus-visible,
.planning-mobile-week-navigation > a:focus-visible,
.planning-mobile-add-order:focus-visible,
.planning-print-icon:focus-visible,
.production-add-mark:focus-visible,
.production-subtract-mark:focus-visible,
.production-column-actions button:focus-visible,
.order-component-add:focus-visible,
.order-type-option:focus-visible,
.order-recipe-option:focus-visible,
.chat-back:focus-visible,
.chat-new:focus-visible,
.chat-close:focus-visible,
.chat-attach:focus-visible,
.chat-send:focus-visible,
.leftovers-counter button:focus-visible {
    outline: 3px solid rgba(82, 117, 91, .2);
    outline-offset: 2px;
}

@media (hover: hover) {
    .button:hover,
    .logout-button:hover,
    .production-nav-button:hover,
    .production-today:hover,
    .production-view-toggle a:hover,
    .planning-view-toggle a:hover,
    .planning-mobile-week-navigation > a:hover,
    .planning-mobile-add-order:hover,
    .planning-print-icon:hover,
    .recipe-drag-handle:hover,
    .icon-button:hover,
    .production-add-mark:hover,
    .production-subtract-mark:hover,
    .production-column-actions button:hover,
    .production-bag-close:hover,
    .production-adjustment-reset:hover,
    .order-component-add:hover,
    .order-type-option:hover,
    .order-recipe-option:hover,
    .order-modal-close:hover,
    .order-modal-upload:hover,
    .chat-back:hover,
    .chat-new:hover,
    .chat-close:hover,
    .chat-attach:hover,
    .leftovers-match-list button:hover {
        border-color: rgba(88, 107, 91, .32);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, .98), 0 10px 24px rgba(49, 39, 28, .13);
        transform: translateY(-1px);
    }

    .button-primary:hover {
        background-color: var(--accent-dark);
        background-image: linear-gradient(145deg, rgba(203, 105, 69, .98), rgba(146, 67, 42, .98));
    }

    .module-card:hover {
        border-color: rgba(168, 153, 137, .34);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, .98), 0 18px 42px rgba(49, 39, 28, .12);
        transform: translateY(-3px);
    }

    .chat-launcher:hover {
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 16px 36px rgba(25, 77, 20, .36);
        transform: translateY(-2px);
    }
}

.button:active,
.logout-button:active,
.production-nav-button:active,
.production-today:active,
.planning-print-icon:active,
.production-add-mark:active,
.production-subtract-mark:active,
.production-column-actions button:active,
.production-stepper-controls button:active,
.production-sheet-amount button:active,
.production-adjustment-stepper button:active,
.leftovers-counter button:active,
.order-component-add:active,
.order-recipe-option:active,
.chat-send:active {
    box-shadow: inset 0 2px 5px rgba(49, 39, 28, .14), 0 3px 9px rgba(49, 39, 28, .08);
    transform: translateY(1px) scale(.99);
}

.button:disabled,
button:disabled {
    box-shadow: none;
    filter: saturate(.55);
    transform: none;
}

/* Movimiento de registros: elegante en ratón, discreto en datos informativos. */
.table-row:not(.table-head),
.history-item,
.recipe-line,
.admin-company,
.admin-user,
.admin-storage-card,
.permission-row,
.leftovers-recipe,
.leftovers-stock-card,
.elaboration-recipe-item,
.production-source-card,
.production-batch-card,
.production-picker-card,
.production-recipe-card,
.production-selected-group,
.production-selected-item,
.production-sheet-card,
.order-product-card,
.order-piece-card,
.order-product-information-item,
.order-image-card,
.planning-product,
.planning-calendar-product,
.planning-component,
.planning-image-item {
    transition: border-color .32s cubic-bezier(.22,.7,.25,1), box-shadow .32s cubic-bezier(.22,.7,.25,1), transform .32s cubic-bezier(.22,.7,.25,1), filter .32s ease;
}

@media (hover: hover) and (pointer: fine) {
    .table-row:not(.table-head):hover,
    .history-item:hover,
    .recipe-line:hover,
    .admin-user:hover,
    .admin-storage-card:hover,
    .permission-row:hover,
    .production-selected-item:hover,
    .order-product-information-item:hover,
    .order-image-card:hover,
    .planning-component:hover,
    .planning-image-item:hover {
        position: relative;
        z-index: 1;
        box-shadow: inset 3px 0 0 rgba(82,117,91,.2), inset 0 1px 0 rgba(255,255,255,.8), 0 7px 18px rgba(49,39,28,.07);
        transform: translateX(2px);
    }

    .admin-company:hover,
    .leftovers-recipe:hover,
    .leftovers-stock-card:hover,
    .elaboration-recipe-item:hover,
    .production-source-card:not(.is-dragging):not(.is-selected):not(.is-ready):hover,
    .production-batch-card:not(.is-dragging):not(.is-ready):hover,
    .production-picker-card:not(.is-sent):not(.is-ready):hover,
    .production-recipe-card:not(:disabled):hover,
    .production-selected-group:hover,
    .production-sheet-card:hover,
    .order-product-card:hover,
    .order-piece-card:hover,
    .planning-product:hover,
    .planning-calendar-product:hover {
        position: relative;
        z-index: 2;
        box-shadow: inset 0 0 0 1px var(--record-hover-border), var(--record-hover-shadow);
        transform: translateY(-2px);
    }

    .table-row[data-row-href]:hover,
    .production-recipe-card:not(:disabled):hover,
    .production-source-card[draggable="true"]:hover,
    .production-batch-card[draggable="true"]:hover {
        cursor: pointer;
    }

    .table-row:not(.table-head):focus-within,
    .table-row[data-row-href]:focus-visible,
    .admin-user:focus-within,
    .elaboration-recipe-item:focus-within,
    .production-recipe-card:focus-visible,
    .planning-product:focus-within,
    .planning-calendar-product:focus-within,
    .order-product-card:focus-within,
    .order-piece-card:focus-within {
        outline: 3px solid rgba(82,117,91,.14);
        outline-offset: 2px;
        box-shadow: inset 0 0 0 1px var(--record-hover-border), var(--record-hover-shadow);
    }
}

@media (hover: none), (pointer: coarse) {
    .module-card:active,
    .table-row[data-row-href]:active,
    .production-recipe-card:not(:disabled):active,
    .order-type-option:active,
    .order-recipe-option:active,
    .chat-conversation:active {
        transform: scale(.985);
        box-shadow: inset 0 2px 5px rgba(49,39,28,.12), 0 3px 9px rgba(49,39,28,.07);
    }
}

/* Portada: acceso compacto, favoritos personales y secciones con memoria. */
.dashboard-module-section {
    margin-top: 28px;
}

.dashboard-module-section .section-heading {
    min-height: 38px;
    margin-bottom: 10px;
    align-items: center;
}

.dashboard-module-section .section-heading .eyebrow {
    margin: 0;
}

.dashboard-module-section.is-collapsed {
    margin-top: 18px;
}

.dashboard-module-section.is-collapsed .section-heading {
    margin-bottom: 0;
}

.dashboard-module-section.is-collapsed .module-grid {
    display: none;
}

.dashboard .module-card {
    position: relative;
    min-height: 96px;
    padding: 17px 52px 17px 18px;
    gap: 14px;
}

.dashboard .module-icon {
    width: 44px;
    height: 44px;
    border-radius: 13px;
}

.dashboard .module-icon svg {
    width: 23px;
    height: 23px;
}

.module-card-slot {
    position: relative;
    min-width: 0;
}

.module-card-slot > .module-card {
    height: 100%;
}

.module-favorite-toggle,
.dashboard-section-toggle {
    border: 1px solid rgba(255,255,255,.82);
    color: #746f68;
    background-color: rgba(255,255,255,.76);
    background-image: linear-gradient(145deg,rgba(255,255,255,.96),rgba(241,236,229,.7));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.98),0 7px 18px rgba(49,39,28,.08);
    -webkit-backdrop-filter: blur(12px) saturate(130%);
    backdrop-filter: blur(12px) saturate(130%);
    transition: border-color .25s ease,box-shadow .25s ease,color .25s ease,transform .25s ease;
}

.module-favorite-toggle {
    position: absolute;
    z-index: 2;
    top: 8px;
    right: 8px;
    display: grid;
    width: 34px;
    height: 34px;
    padding: 0;
    border-radius: 50%;
    cursor: pointer;
    place-items: center;
}

.module-favorite-toggle svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linejoin: round;
}

.module-favorite-toggle.is-favorite {
    border-color: rgba(202,104,68,.24);
    color: #b25332;
    background-image: linear-gradient(145deg,rgba(255,251,246,.98),rgba(246,221,207,.8));
}

.module-favorite-toggle.is-favorite svg {
    fill: currentColor;
}

.dashboard-section-toggle {
    display: inline-flex;
    min-height: 34px;
    padding: 6px 10px 6px 12px;
    border-radius: 999px;
    align-items: center;
    gap: 7px;
    color: var(--muted);
    cursor: pointer;
    font: inherit;
    font-size: .7rem;
    font-weight: 750;
}

.dashboard-section-toggle svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    transition: transform .4s cubic-bezier(.22,.7,.25,1);
}

.dashboard-module-section.is-collapsed .dashboard-section-toggle svg {
    transform: rotate(180deg);
}

.dashboard-favorites {
    margin-top: 0;
    padding: 14px;
    border: 1px solid rgba(255,255,255,.78);
    border-radius: 20px;
    background: linear-gradient(145deg,rgba(255,255,255,.68),rgba(245,239,230,.45));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.96),0 10px 30px rgba(49,39,28,.055);
    -webkit-backdrop-filter: blur(14px) saturate(120%);
    backdrop-filter: blur(14px) saturate(120%);
}

.dashboard-favorites .section-heading {
    min-height: auto;
    margin: 0 2px 10px;
}

.dashboard-favorites .section-heading small {
    color: var(--muted);
    font-size: .68rem;
}

.dashboard-card-production .module-icon { background: #20551A; }
.dashboard-card-orders .module-icon { background: #ca6844; }
.dashboard-card-inventory .module-icon { background: #3f7476; }
.dashboard-card-staff .module-icon { background: #6d6088; }
.dashboard-card-agenda .module-icon { background: #98743d; }
.dashboard-card-analysis .module-icon { background: #456f8e; }
.dashboard-card-administration .module-icon { background: #5d7185; }

.module-section-administration .module-card {
    min-height: 84px;
    opacity: .94;
}

.module-favorite-toggle:focus-visible,
.dashboard-section-toggle:focus-visible {
    outline: 3px solid rgba(82,117,91,.2);
    outline-offset: 2px;
}

@media (hover: hover) {
    .module-favorite-toggle:hover,
    .dashboard-section-toggle:hover {
        border-color: rgba(88,107,91,.3);
        color: var(--ink);
        box-shadow: inset 0 1px 0 rgba(255,255,255,.98),0 10px 24px rgba(49,39,28,.12);
        transform: translateY(-1px);
    }
}

@media (max-width: 650px) {
    .dashboard-module-section {
        margin-top: 20px;
    }

    .dashboard-module-section.is-collapsed {
        margin-top: 12px;
    }

    .dashboard .module-card {
        min-height: 86px;
        padding: 14px 48px 14px 14px;
        gap: 12px;
    }

    .dashboard .module-icon {
        width: 40px;
        height: 40px;
    }

    .dashboard-favorites {
        padding: 10px;
        border-radius: 17px;
    }

    .dashboard-favorites .section-heading small {
        display: none;
    }

    .dashboard-section-toggle-label {
        font-size: 0;
    }

    .dashboard-section-toggle-label::after {
        content: "Ver";
        font-size: .7rem;
    }

    .dashboard-section-toggle[aria-expanded="true"] .dashboard-section-toggle-label::after {
        content: "Cerrar";
    }

    .chat-panel {
        background: rgba(247,245,241,.92);
        -webkit-backdrop-filter: blur(14px) saturate(120%);
        backdrop-filter: blur(14px) saturate(120%);
    }
}

/* Chat: cristal desenfocado exterior con superficies de lectura estables. */
.chat-backdrop {
    background: rgba(26,31,25,.2);
    -webkit-backdrop-filter: blur(4px) saturate(88%);
    backdrop-filter: blur(4px) saturate(88%);
}

.chat-panel {
    border-left: 1px solid rgba(255,255,255,.82);
    background-color: rgba(246,244,239,.62);
    background-image: linear-gradient(150deg,rgba(255,255,255,.68),rgba(234,239,232,.48));
    box-shadow: inset 1px 0 0 rgba(255,255,255,.74),-26px 0 70px rgba(24,31,25,.22);
    -webkit-backdrop-filter: blur(30px) saturate(145%);
    backdrop-filter: blur(30px) saturate(145%);
}

.chat-panel-body {
    background: linear-gradient(165deg,rgba(255,255,255,.16),rgba(226,234,225,.1));
}

.chat-panel-header {
    border-bottom-color: rgba(255,255,255,.62);
    background: rgba(255,255,255,.64);
    box-shadow: inset 0 -1px 0 rgba(110,126,112,.1),0 8px 24px rgba(43,54,45,.045);
    -webkit-backdrop-filter: blur(20px) saturate(135%);
    backdrop-filter: blur(20px) saturate(135%);
}

.chat-composer {
    border-top-color: rgba(255,255,255,.7);
    background: rgba(255,255,255,.7);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.92),0 -8px 24px rgba(43,54,45,.045);
    -webkit-backdrop-filter: blur(22px) saturate(135%);
    backdrop-filter: blur(22px) saturate(135%);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .chat-panel { background: #f5f3ef; }
    .chat-panel-header,.chat-composer { background: #fff; }
    .chat-backdrop { background: rgba(29,25,21,.32); }
}

/* Portada en forma de índice: todos los accesos visibles, sin paneles plegables. */
.dashboard-index {
    width: min(100% - 40px, 1180px);
    padding-top: clamp(24px,4vw,42px);
}

.dashboard-index .module-section {
    margin-top: 0;
    padding: 25px 0 28px;
}

.dashboard-index .section-heading {
    position: relative;
    min-height: 0;
    margin: 0 0 17px;
    padding: 0 0 11px;
    align-items: center;
}

.dashboard-index .section-heading::after {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 54px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    box-shadow: 0 2px 8px color-mix(in srgb,currentColor 28%,transparent);
    content: "";
}

.dashboard-index .module-section-production .section-heading { color: #20551A; }
.dashboard-index .module-section-orders .section-heading { color: #ca6844; }
.dashboard-index .module-section-inventory .section-heading { color: #3f7476; }
.dashboard-index .module-section-staff .section-heading { color: #6d6088; }
.dashboard-index .module-section-agenda .section-heading { color: #98743d; }
.dashboard-index .module-section-analysis .section-heading { color: #456f8e; }
.dashboard-index .module-section-administration .section-heading { color: #5d7185; }
.dashboard-index .module-section-help .section-heading { color: #7b626f; }

.dashboard-index .section-heading .eyebrow {
    margin: 0;
    font-size: .82rem;
    letter-spacing: .16em;
}

.dashboard-index .module-grid {
    display: grid;
    grid-template-columns: repeat(5,minmax(0,1fr));
    gap: 12px;
}

.dashboard-index .module-card {
    min-height: 108px;
    padding: 15px 10px 14px;
    border-color: rgba(255,255,255,.76);
    border-radius: 17px;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    justify-items: center;
    align-content: center;
    gap: 10px;
    text-align: center;
    background-image: linear-gradient(145deg,rgba(255,255,255,.9),rgba(246,242,236,.58));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.96),0 7px 20px rgba(49,39,28,.055);
}

.dashboard-index .module-icon {
    width: 45px;
    height: 45px;
    border-radius: 13px;
}

.dashboard-index .module-icon svg {
    width: 23px;
    height: 23px;
}

.dashboard-index .module-card strong {
    margin: 0;
    overflow-wrap: anywhere;
    font-size: .88rem;
    line-height: 1.2;
    transition: color .24s ease;
}

.dashboard-index .module-section-production .module-card strong { color: #174713; }
.dashboard-index .module-section-orders .module-card strong { color: #9f482b; }
.dashboard-index .module-section-inventory .module-card strong { color: #2f6264; }
.dashboard-index .module-section-staff .module-card strong { color: #584b73; }
.dashboard-index .module-section-agenda .module-card strong { color: #795a28; }
.dashboard-index .module-section-analysis .module-card strong { color: #345b78; }
.dashboard-index .module-section-administration .module-card strong { color: #485b6e; }
.dashboard-index .module-section-help .module-card strong { color: #654c59; }

.dashboard-index .module-card small,
.dashboard-index .module-arrow {
    display: none;
}

.dashboard-index .module-section-administration {
    margin-top: 12px;
    border: 0;
    opacity: .9;
}

.dashboard-index .module-section-administration .module-card {
    min-height: 100px;
}

@media (hover: hover) {
    .dashboard-index .module-card:hover {
        border-color: rgba(130,113,95,.25);
        box-shadow: inset 0 1px 0 rgba(255,255,255,.98),0 14px 32px rgba(49,39,28,.11);
        transform: translateY(-2px) scale(1.012);
    }
}

@media (max-width: 820px) {
    .dashboard-index {
        width: min(100% - 24px,680px);
        padding-top: 18px;
    }

    .dashboard-index .module-section {
        display: block;
        padding: 16px 0 18px;
    }

    .dashboard-index .section-heading {
        margin-bottom: 12px;
        padding: 0 0 9px;
    }

    .dashboard-index .module-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
        gap: 8px;
    }

    .dashboard-index .module-card {
        min-height: 96px;
        padding: 13px 8px 12px;
        border-radius: 15px;
        gap: 8px;
    }

    .dashboard-index .module-icon {
        width: 41px;
        height: 41px;
        border-radius: 12px;
    }

    .dashboard-index .module-card strong {
        font-size: .84rem;
    }
}

@media (max-width: 370px) {
    .dashboard-index .module-grid {
        grid-template-columns: 1fr;
    }
}

/* Portada: el icono responde y la explicacion aparece sin mover la cuadricula. */
.dashboard-index .module-card {
    position:relative;
    height:116px;
    min-height:116px;
    padding:11px 8px 10px;
    gap:7px;
    overflow:hidden;
    perspective:700px;
}

.dashboard-index .module-card>.module-icon {
    width:39px;
    height:39px;
    border-radius:11px;
    transform:translateY(0) rotateY(0) rotateZ(0);
    transform-style:preserve-3d;
    transition:transform .52s cubic-bezier(.22,.7,.25,1),box-shadow .36s ease,filter .36s ease;
    will-change:transform;
}

.dashboard-index .module-card strong {
    display:block;
    transition:transform .42s cubic-bezier(.22,.7,.25,1);
}

.dashboard-index .module-card small {
    position:absolute;
    right:10px;
    bottom:14px;
    left:10px;
    display:block;
    margin:0;
    opacity:0;
    color:#625e57;
    font-size:.54rem;
    line-height:1.2;
    pointer-events:none;
    transform:translateY(9px);
    transition:opacity .34s ease .04s,transform .42s cubic-bezier(.22,.7,.25,1);
}

@media (hover:hover) and (pointer:fine) {
    .dashboard-index .module-card:hover>.module-icon,
    .dashboard-index .module-card:focus-visible>.module-icon {
        filter:saturate(1.08) brightness(1.04);
        box-shadow:inset 0 1px 0 rgba(255,255,255,.4),0 12px 25px rgba(41,38,33,.22);
        transform:translateY(-11px) rotateY(24deg) rotateZ(-5deg) scale(1.05);
    }

    .dashboard-index .module-card:hover strong,
    .dashboard-index .module-card:focus-visible strong {
        transform:translateY(-11px);
    }

    .dashboard-index .module-card:hover small,
    .dashboard-index .module-card:focus-visible small {
        opacity:1;
        transform:translateY(0);
    }
}

@media (hover:none), (pointer:coarse), (max-width:820px) {
    .dashboard-index .module-card {
        height:auto;
        min-height:108px;
        padding:10px 7px 9px;
        gap:6px;
        align-content:start;
    }

    .dashboard-index .module-card small {
        position:static;
        display:block;
        margin-top:3px;
        opacity:1;
        font-size:.54rem;
        line-height:1.22;
        transform:none;
    }
}

@media (prefers-reduced-motion:reduce) {
    .dashboard-index .module-card>.module-icon,
    .dashboard-index .module-card strong,
    .dashboard-index .module-card small { transition:none!important; }
    .dashboard-index .module-card:hover>.module-icon,
    .dashboard-index .module-card:focus-visible>.module-icon,
    .dashboard-index .module-card:hover strong,
    .dashboard-index .module-card:focus-visible strong { transform:none!important; }
    .dashboard-index .module-card:hover small,
    .dashboard-index .module-card:focus-visible small { transform:none!important; }
}

/* Personal, fichajes y configuración de terminales físicos. */
.timeclock-shell { padding-bottom: 80px; }
.timeclock-toolbar,.timeclock-filter-bar { display: flex; margin: 18px 0; padding: 12px; border: 1px solid rgba(255,255,255,.82); border-radius: 15px; align-items: end; gap: 10px; background: rgba(255,255,255,.68); box-shadow: inset 0 1px 0 rgba(255,255,255,.96),0 8px 24px rgba(49,39,28,.055); -webkit-backdrop-filter: blur(14px) saturate(125%); backdrop-filter: blur(14px) saturate(125%); }
.timeclock-toolbar label,.timeclock-filter-bar label { display: grid; min-width: 0; flex: 1; gap: 5px; color: var(--muted); font-size: .68rem; font-weight: 750; }
.timeclock-toolbar input,.timeclock-filter-bar input { width: 100%; min-height: 42px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.86); font: inherit; }
.timeclock-toolbar > span { padding: 0 6px 11px; color: var(--muted); font-size: .7rem; white-space: nowrap; }
.timeclock-card-grid,.timeclock-terminal-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.timeclock-person-card { position: relative; display: grid; min-height: 86px; padding: 15px; border: 1px solid rgba(255,255,255,.82); border-radius: 16px; grid-template-columns: 38px minmax(0,1fr) auto; align-items: center; gap: 11px; background: rgba(255,255,255,.72); box-shadow: inset 0 1px 0 rgba(255,255,255,.96),0 8px 24px rgba(49,39,28,.06); }
.timeclock-person-card.is-disabled,.timeclock-terminal-card.is-disabled { opacity: .58; filter: grayscale(.45); }
.timeclock-person-icon { display: grid; width: 38px; height: 38px; border-radius: 50%; place-items: center; color: #fff; background: linear-gradient(145deg,#817392,#584b73); box-shadow: inset 0 1px 0 rgba(255,255,255,.25),0 7px 16px rgba(70,57,91,.18); font-size: .55rem; }
.timeclock-person-card > div { display: grid; min-width: 0; gap: 3px; }
.timeclock-person-card strong,.timeclock-person-card small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.timeclock-person-card strong { color: #584b73; font-size: .9rem; }.timeclock-person-card small { color: var(--muted); font-size: .68rem; }
.timeclock-person-card > b { padding: 5px 7px; border-radius: 999px; color: #356141; background: #dcebdd; font-size: .58rem; text-transform: uppercase; }
.timeclock-person-card.is-disabled > b { color: #68645f; background: #ebe8e3; }
.timeclock-person-card .text-action { position: absolute; right: 13px; bottom: 8px; font-size: .62rem; }
.timeclock-summary { display: grid; margin: 16px 0; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.timeclock-summary article,.timeclock-device-overview article { display: grid; min-height: 80px; padding: 14px; border: 1px solid rgba(255,255,255,.8); border-radius: 14px; align-content: center; gap: 4px; background: rgba(255,255,255,.68); box-shadow: inset 0 1px 0 rgba(255,255,255,.96),0 7px 20px rgba(49,39,28,.05); }
.timeclock-summary span,.timeclock-device-overview span { color: var(--muted); font-size: .65rem; }.timeclock-summary strong { color: #584b73; font-family: Georgia,serif; font-size: 1.7rem; font-weight: 500; }.timeclock-summary .has-warning strong { color: #a44d2f; }
.timeclock-records .table-row { grid-template-columns: 1.25fr .6fr 1fr 1fr .9fr; }
.timeclock-records .table-row > span:first-child { display: grid; gap: 2px; }.timeclock-records .table-row small { color: var(--muted); font-size: .62rem; }.timeclock-records .table-row.is-warning { background: #fff8ed; }
.timeclock-type { display: inline-flex; width: fit-content; padding: 5px 8px; border-radius: 999px; font-size: .62rem; font-weight: 850; text-transform: uppercase; }.timeclock-type.is-entrada { color: #356141; background: #dcebdd; }.timeclock-type.is-salida { color: #8a482f; background: #f4dfd7; }
.timeclock-terminal-card { display: grid; min-height: 190px; padding: 17px; border: 1px solid rgba(255,255,255,.82); border-radius: 18px; align-content: start; color: var(--ink); background: linear-gradient(145deg,rgba(255,255,255,.9),rgba(242,238,231,.65)); box-shadow: inset 0 1px 0 rgba(255,255,255,.98),0 10px 28px rgba(49,39,28,.07); text-decoration: none; transition: border-color .3s ease,box-shadow .3s ease,transform .3s ease; }
.timeclock-terminal-card > header { display: flex; margin-bottom: 20px; align-items: center; justify-content: space-between; }.timeclock-terminal-card > header > b { color: #6d6088; font-size: 1.1rem; }.timeclock-terminal-card > strong { color: #584b73; font-family: Georgia,serif; font-size: 1.25rem; font-weight: 500; }.timeclock-terminal-card > small { margin-top: 4px; color: var(--muted); font-size: .68rem; }
.timeclock-terminal-card > footer { display: grid; margin-top: auto; padding-top: 14px; border-top: 1px solid rgba(117,105,91,.1); grid-template-columns: 1fr auto; gap: 2px 8px; color: var(--muted); font-size: .62rem; }.timeclock-terminal-card > footer time { color: var(--ink); }.timeclock-terminal-card > footer b { grid-column: 1/-1; margin-top: 4px; color: #6d6088; font-size: .65rem; }
.timeclock-online { display: inline-flex; width: fit-content; padding: 6px 9px; border-radius: 999px; align-items: center; gap: 6px; color: #716d67; background: #ece9e4; font-size: .64rem; font-weight: 800; }.timeclock-online i { width: 7px; height: 7px; border-radius: 50%; background: #8e8a84; }.timeclock-online.is-online { color: #356141; background: #dcebdd; }.timeclock-online.is-online i { background: #3d8a52; box-shadow: 0 0 0 4px rgba(61,138,82,.12); animation: timeclock-online-pulse 2s ease-in-out infinite; }
@keyframes timeclock-online-pulse { 50% { box-shadow: 0 0 0 7px rgba(61,138,82,0); } }
.timeclock-device-overview { display: grid; margin: 16px 0; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 9px; }.timeclock-device-overview strong { font-size: .78rem; overflow-wrap: anywhere; }
.timeclock-settings { margin-top: 20px; }.timeclock-settings h2,.timeclock-recent h2 { margin: 3px 0 0; font-family: Georgia,serif; font-size: 1.45rem; font-weight: 500; }
.timeclock-firmware { margin-top: 16px; overflow: hidden; border: 1px solid rgba(255,255,255,.82); border-radius: 18px; background: rgba(255,255,255,.68); box-shadow: inset 0 1px 0 rgba(255,255,255,.96),0 10px 28px rgba(49,39,28,.065); }
.timeclock-firmware > summary { display: flex; min-height: 68px; padding: 14px 18px; align-items: center; justify-content: space-between; cursor: pointer; list-style: none; }.timeclock-firmware > summary::-webkit-details-marker { display:none; }.timeclock-firmware > summary > span:first-child { display:grid;gap:2px; }.timeclock-firmware > summary strong { color:#584b73;font-size:.9rem; }.timeclock-firmware > summary small { color:var(--muted);font-size:.66rem; }.timeclock-firmware > summary > span:last-child { font-size:1.2rem;transition:transform .45s ease; }.timeclock-firmware[open] > summary > span:last-child { transform:rotate(180deg); }
.timeclock-firmware-body { padding: 0 18px 18px; }.timeclock-code-actions { display:flex;margin-bottom:9px;justify-content:flex-end;gap:8px; }.timeclock-firmware textarea { width:100%;min-height:520px;padding:14px;border:1px solid #d9d2c9;border-radius:12px;color:#e9f0e9;background:#182019;resize:vertical;font:500 .68rem/1.5 ui-monospace,SFMono-Regular,Consolas,monospace;tab-size:2; }.timeclock-firmware-body p { margin:10px 0 0;color:var(--muted);font-size:.7rem;line-height:1.5; }
.timeclock-danger-zone { display:flex;margin-top:16px;padding:15px;border:1px solid rgba(166,75,50,.16);border-radius:15px;align-items:center;justify-content:space-between;gap:14px;background:rgba(255,246,242,.72); }.timeclock-danger-zone > div { display:grid;gap:3px; }.timeclock-danger-zone strong { color:#8f452e;font-size:.82rem; }.timeclock-danger-zone small { color:var(--muted);font-size:.66rem; }
.timeclock-remote { display:grid;margin:22px 0;gap:14px; }.timeclock-remote .section-heading > div > p:last-child { margin:5px 0 0;color:var(--muted);font-size:.72rem; }.timeclock-remote h2 { margin:3px 0 0;font-family:Georgia,serif;font-size:1.5rem;font-weight:500; }.timeclock-health { padding:7px 10px;border-radius:999px;font-size:.65rem;font-weight:850; }.timeclock-health.is-healthy { color:#356141;background:#dcebdd; }.timeclock-health.is-warning { color:#95462f;background:#f7dfd4; }.timeclock-health.is-unknown { color:#68645f;background:#ebe8e3; }
.timeclock-remote-grid { display:grid;grid-template-columns:minmax(0,1.6fr) minmax(250px,.7fr);gap:12px; }.timeclock-control-card { padding:18px;border:1px solid rgba(255,255,255,.82);border-radius:18px;background:rgba(255,255,255,.72);box-shadow:inset 0 1px 0 rgba(255,255,255,.96),0 9px 25px rgba(49,39,28,.06); }.timeclock-control-card h3 { margin:0 0 10px;color:#584b73;font-size:.92rem; }.timeclock-control-card > p,.timeclock-control-card form > p { color:var(--muted);font-size:.68rem;line-height:1.5; }.timeclock-diagnostic-list { display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px; }.timeclock-diagnostic-list span { display:grid;padding:9px;border-radius:11px;background:rgba(245,242,237,.8);grid-template-columns:auto 1fr;align-items:center;gap:3px 7px;font-size:.66rem; }.timeclock-diagnostic-list i { width:8px;height:8px;border-radius:50%;background:#aa5035; }.timeclock-diagnostic-list i.is-ok { background:#438454; }.timeclock-diagnostic-list b { grid-column:2;color:var(--muted);font-size:.58rem; }.timeclock-control-card dl { display:grid;margin:12px 0;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px; }.timeclock-control-card dl div { display:grid;gap:2px; }.timeclock-control-card dt,.timeclock-control-card > small { color:var(--muted);font-size:.59rem; }.timeclock-control-card dd { margin:0;font-size:.69rem;font-weight:750;overflow-wrap:anywhere; }
.timeclock-command-grid { display:flex;flex-wrap:wrap;gap:7px; }.timeclock-command-grid form { margin:0; }.timeclock-command-history { display:grid;margin-top:14px;border-top:1px solid rgba(117,105,91,.12); }.timeclock-command-history span { display:grid;padding:8px 2px;border-bottom:1px solid rgba(117,105,91,.1);gap:2px; }.timeclock-command-history b { font-size:.65rem; }.timeclock-command-history small { color:var(--muted);font-size:.59rem; }
.timeclock-remote-form { display:grid;gap:14px; }.timeclock-remote-form fieldset { margin:0;padding:16px;border:1px solid rgba(117,105,91,.14);border-radius:15px;background:rgba(247,245,240,.58); }.timeclock-remote-form legend { padding:0 7px;color:#584b73;font-size:.72rem;font-weight:850; }.timeclock-remote-form .form-grid { grid-template-columns:repeat(3,minmax(0,1fr));gap:10px; }.timeclock-remote-form .form-grid > label,.timeclock-settings .form-grid > label:not(.admin-active-option) { display:grid;min-width:0;margin:0;padding:11px;border:1px solid rgba(117,105,91,.14);border-radius:12px;align-content:start;gap:7px;color:var(--muted);background:rgba(255,255,255,.82);box-shadow:inset 0 1px 0 rgba(255,255,255,.96);font-size:.66rem;font-weight:800; }.timeclock-remote-form .form-grid > label:focus-within,.timeclock-settings .form-grid > label:not(.admin-active-option):focus-within { border-color:rgba(32,85,26,.42);box-shadow:0 0 0 3px rgba(32,85,26,.08),inset 0 1px 0 #fff; }.timeclock-remote-form input:not([type=hidden]),.timeclock-settings input:not([type=hidden]):not([type=checkbox]) { box-sizing:border-box;width:100%;min-width:0;height:42px;margin:0;padding:8px 10px;border:1px solid rgba(117,105,91,.22);border-radius:9px;outline:0;color:var(--ink);background:#fff;font:700 .82rem/1.2 inherit;transition:border-color .2s ease,box-shadow .2s ease; }.timeclock-remote-form input:focus,.timeclock-settings input:not([type=checkbox]):focus { border-color:#527a5c;box-shadow:0 0 0 3px rgba(82,122,92,.11); }.timeclock-remote-form input[type=number] { text-align:right;font-variant-numeric:tabular-nums; }.timeclock-control-card > .form-stack { margin-top:0; }.timeclock-control-card > .form-stack label { color:var(--muted);font-size:.68rem; }.timeclock-control-card > .form-stack select { height:44px;margin:7px 0 10px;border-radius:10px;font-size:.78rem;font-weight:750; }.timeclock-control-card > .form-stack .button { width:100%;margin-top:5px; }.timeclock-settings .form-grid { margin-top:16px;gap:10px; }.timeclock-settings .admin-active-option { grid-column:1/-1;margin:3px 0;padding:10px 12px;border-radius:11px;background:rgba(247,245,240,.72); }
.timeclock-lcd-preview { display:grid;min-width:220px;padding:10px 14px;border:5px solid #252a29;border-radius:8px;color:#e9ffe8;background:#173c24;box-shadow:inset 0 0 14px rgba(0,0,0,.8);font:700 .72rem/1.35 ui-monospace,monospace;letter-spacing:.08em;text-transform:uppercase; }.timeclock-lcd-preview span { display:block;width:16ch;overflow:hidden;white-space:pre; }
.timeclock-remote-form input:not([type=hidden]),.timeclock-settings input:not([type=hidden]):not([type=checkbox]) { font-family:inherit;font-size:.82rem;font-weight:700;line-height:1.2; }
.timeclock-recent { margin-top:22px; }.timeclock-recent > article { display:grid;min-height:58px;padding:9px 11px;border-bottom:1px solid rgba(117,105,91,.12);grid-template-columns:80px minmax(0,1fr) auto;align-items:center;gap:10px; }.timeclock-recent > article > div { display:grid;gap:2px; }.timeclock-recent > article strong { font-size:.78rem; }.timeclock-recent > article small,.timeclock-recent > article time { color:var(--muted);font-size:.64rem; }.empty-note { padding:18px;color:var(--muted);text-align:center;font-size:.75rem; }
@media (max-width:820px) { .timeclock-remote-grid { grid-template-columns:1fr; }.timeclock-remote-form .form-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }.timeclock-diagnostic-list { grid-template-columns:repeat(2,minmax(0,1fr)); }.timeclock-control-card dl { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:560px) { .timeclock-remote .section-heading { align-items:stretch;flex-direction:column; }.timeclock-lcd-preview { width:100%;min-width:0; }.timeclock-remote-form .form-grid { grid-template-columns:1fr; }.timeclock-command-grid form,.timeclock-command-grid button { width:100%; } }
@media (hover:hover) { .timeclock-terminal-card:hover { border-color:rgba(109,96,136,.25);box-shadow:inset 0 1px 0 rgba(255,255,255,.98),0 17px 38px rgba(49,39,28,.11);transform:translateY(-2px); } }
@media (max-width:820px) { .timeclock-card-grid,.timeclock-terminal-grid { grid-template-columns:1fr; }.timeclock-device-overview { grid-template-columns:repeat(2,minmax(0,1fr)); }.timeclock-filter-bar { align-items:stretch;flex-direction:column; }.timeclock-filter-bar .button { width:100%; }.timeclock-records .table-head { display:none; }.timeclock-records .table-row { display:grid;padding:12px;grid-template-columns:1fr 1fr;gap:9px; }.timeclock-records .table-row > span { display:grid;gap:2px; }.timeclock-records .table-row > span::before { color:var(--muted);content:attr(data-label);font-size:.56rem;font-weight:800;text-transform:uppercase; }.timeclock-records .table-row > span:first-child { grid-column:1/-1; }.timeclock-firmware textarea { min-height:420px; }.timeclock-danger-zone { align-items:stretch;flex-direction:column; }.timeclock-danger-zone .button { width:100%; } }
@media (max-width:560px) { .timeclock-toolbar { align-items:stretch;flex-direction:column; }.timeclock-toolbar > span { padding:0 3px; }.timeclock-summary { grid-template-columns:1fr 1fr; }.timeclock-summary article:first-child { grid-column:1/-1; }.timeclock-device-overview { grid-template-columns:1fr 1fr; }.timeclock-code-actions { align-items:stretch;flex-direction:column; }.timeclock-code-actions .button { width:100%; }.timeclock-recent > article { grid-template-columns:72px minmax(0,1fr); }.timeclock-recent > article time { grid-column:2; }.timeclock-person-card { grid-template-columns:38px minmax(0,1fr); }.timeclock-person-card > b { position:absolute;top:9px;right:9px; }.timeclock-person-card .text-action { right:10px;bottom:7px; } }

/* Ficha laboral completa y control horario individual. */
.timeclock-person-card:has(.workforce-worker-actions) { min-height:98px;grid-template-columns:38px minmax(0,1fr) auto;align-items:center; }.workforce-worker-info > span { display:flex;min-width:0;margin-top:2px;align-items:center;gap:7px; }.workforce-worker-info > span small { min-width:0; }.workforce-worker-info > span b { flex:0 0 auto;padding:3px 6px;border-radius:999px;color:#356141;background:#dcebdd;font-size:.52rem;text-transform:uppercase; }.workforce-worker-info > span b.is-warning { color:#95462f;background:#f7dfd4; }.workforce-worker-info > span b.is-inactive { color:#68645f;background:#ebe8e3; }.workforce-worker-actions { display:flex!important;margin:0;align-items:center;justify-content:flex-end;gap:6px; }.workforce-worker-actions .button { min-height:32px;padding:0 9px;border-radius:8px;font-size:.6rem;white-space:nowrap; }.workforce-worker-actions .button > span { font-size:.72rem;line-height:1; }
.workforce-shell { padding-bottom:90px; }.workforce-heading { margin-bottom:14px; }.workforce-tabs { position:sticky;z-index:12;top:8px;display:flex;margin:0 0 16px;padding:7px;border:1px solid rgba(255,255,255,.86);border-radius:15px;gap:4px;overflow-x:auto;background:rgba(250,249,246,.88);box-shadow:0 8px 24px rgba(49,39,28,.08);backdrop-filter:blur(16px); }.workforce-tabs a { padding:8px 11px;border-radius:9px;color:var(--muted);font-size:.66rem;font-weight:800;text-decoration:none;white-space:nowrap; }.workforce-tabs a:hover { color:#20551a;background:#eef4ec; }
.workforce-metrics { display:grid;margin:0 0 14px;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px; }.workforce-metrics article { display:grid;min-height:88px;padding:15px;border:1px solid rgba(255,255,255,.84);border-radius:15px;align-content:center;gap:5px;background:rgba(255,255,255,.72);box-shadow:inset 0 1px 0 #fff,0 7px 22px rgba(49,39,28,.055); }.workforce-metrics span { color:var(--muted);font-size:.63rem;font-weight:750; }.workforce-metrics strong { color:#584b73;font-family:Georgia,serif;font-size:1.25rem;font-weight:500; }.workforce-metrics .has-warning strong { color:#a44d2f; }
.workforce-card { margin:0 0 14px;padding:20px;border:1px solid rgba(255,255,255,.84);border-radius:19px;background:rgba(255,255,255,.72);box-shadow:inset 0 1px 0 #fff,0 10px 28px rgba(49,39,28,.06);scroll-margin-top:76px; }.workforce-card h2 { margin:3px 0 0;color:#584b73;font-family:Georgia,serif;font-size:1.42rem;font-weight:500; }.workforce-card .section-heading { margin-bottom:15px; }.workforce-card .section-heading form { display:flex;align-items:center;gap:7px; }.workforce-card .section-heading input[type=month] { min-height:39px;padding:7px 9px;border:1px solid var(--line);border-radius:9px;background:#fff;font:inherit;font-size:.72rem; }
.workforce-form { display:grid;gap:12px; }.workforce-form-grid { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px; }.workforce-form label,.workforce-form-grid label { display:grid;min-width:0;gap:6px;color:var(--muted);font-size:.66rem;font-weight:800; }.workforce-form input:not([type=checkbox]),.workforce-form select,.workforce-form textarea,.workforce-form-grid input,.workforce-form-grid select,.workforce-inline-form input,.workforce-inline-form select,.workforce-resolve input { box-sizing:border-box;width:100%;min-width:0;min-height:42px;margin:0;padding:8px 10px;border:1px solid rgba(117,105,91,.2);border-radius:9px;outline:0;color:var(--ink);background:#fff;font:700 .78rem/1.25 inherit; }.workforce-form textarea { min-height:82px;resize:vertical; }.workforce-form input:focus,.workforce-form select:focus,.workforce-form textarea:focus,.workforce-inline-form input:focus,.workforce-inline-form select:focus,.workforce-resolve input:focus { border-color:#527a5c;box-shadow:0 0 0 3px rgba(82,122,92,.1); }.workforce-notes { display:grid;gap:6px;color:var(--muted);font-size:.66rem;font-weight:800; }.workforce-two-columns { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px; }
.workforce-schedule { display:grid;border:1px solid rgba(117,105,91,.14);border-radius:14px;overflow:hidden; }.workforce-schedule > div { display:grid;min-height:49px;padding:7px 10px;border-bottom:1px solid rgba(117,105,91,.1);grid-template-columns:minmax(105px,1fr) 120px 120px 120px;align-items:center;gap:9px; }.workforce-schedule > div:last-child { border-bottom:0; }.workforce-schedule-head { color:var(--muted);background:rgba(244,241,236,.78);font-size:.62rem;text-transform:uppercase; }.workforce-schedule strong { font-size:.75rem; }.workforce-schedule input { box-sizing:border-box;width:100%;min-width:0;min-height:36px;padding:5px 7px;border:1px solid rgba(117,105,91,.18);border-radius:8px;background:#fff;font:inherit;font-size:.72rem; }.workforce-schedule label { position:relative; }.workforce-schedule label span { position:absolute;right:8px;top:10px;color:var(--muted);font-size:.58rem;pointer-events:none; }.workforce-schedule label input { padding-right:28px;text-align:right; }
.workforce-report-actions { display:flex;margin:-5px 0 10px;justify-content:flex-end; }.workforce-punch-list { display:grid;border-top:1px solid rgba(117,105,91,.12); }.workforce-punch-list > article { display:grid;min-height:62px;padding:10px 4px;border-bottom:1px solid rgba(117,105,91,.11);grid-template-columns:78px minmax(0,1fr) auto;align-items:center;gap:10px; }.workforce-punch-list > article > div { display:grid;gap:2px; }.workforce-punch-list strong { font-size:.76rem; }.workforce-punch-list small { color:var(--muted);font-size:.61rem; }.workforce-punch-list details summary,.workforce-create > summary { color:#20551a;cursor:pointer;font-size:.66rem;font-weight:850; }.workforce-inline-form { display:grid;margin-top:9px;grid-template-columns:minmax(90px,.6fr) minmax(165px,1fr) minmax(180px,1.5fr) auto;gap:7px; }.workforce-create { margin:0 0 12px;padding:11px;border:1px dashed rgba(32,85,26,.25);border-radius:12px;background:rgba(239,247,237,.5); }.workforce-create > form { margin-top:12px; }
.workforce-simple-list { display:grid; }.workforce-simple-list > article { display:grid;padding:11px 3px;border-bottom:1px solid rgba(117,105,91,.11);gap:3px; }.workforce-simple-list > article:last-child { border-bottom:0; }.workforce-simple-list strong { color:var(--ink);font-size:.73rem;text-transform:none; }.workforce-simple-list span,.workforce-simple-list small { color:var(--muted);font-size:.62rem;line-height:1.4; }.workforce-simple-list article.is-pendiente { margin:4px 0;padding:11px;border:1px solid rgba(164,77,47,.15);border-radius:10px;background:#fff8ed; }.workforce-resolve { display:grid;margin-top:7px;grid-template-columns:minmax(0,1fr) auto;gap:7px; }.workforce-simple-list form { margin:4px 0 0; }.workforce-simple-list .text-action { position:static;padding:0;border:0;background:transparent;cursor:pointer; }
@media (max-width:920px) { .workforce-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); }.workforce-form-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }.workforce-two-columns { grid-template-columns:1fr; }.workforce-schedule > div { grid-template-columns:minmax(85px,1fr) 1fr 1fr 1fr; } }
@media (max-width:620px) { .timeclock-person-actions { position:static;grid-column:2;justify-content:flex-end; }.workforce-tabs { margin-right:-10px;margin-left:-10px;border-radius:0; }.workforce-metrics { grid-template-columns:1fr 1fr; }.workforce-metrics article { min-height:76px;padding:12px; }.workforce-metrics strong { font-size:1.02rem; }.workforce-card { padding:16px 13px; }.workforce-form-grid { grid-template-columns:1fr; }.workforce-card .section-heading { align-items:stretch;flex-direction:column; }.workforce-schedule-head { display:none!important; }.workforce-schedule > div { padding:10px;grid-template-columns:1fr 1fr; }.workforce-schedule > div strong { grid-column:1/-1; }.workforce-schedule > div input:first-of-type::before { content:'Entrada'; }.workforce-punch-list > article { grid-template-columns:70px minmax(0,1fr); }.workforce-punch-list > article details { grid-column:1/-1; }.workforce-inline-form { grid-template-columns:1fr; }.workforce-resolve { grid-template-columns:1fr; } }
.workforce-form input:not([type=checkbox]),.workforce-form select,.workforce-form textarea,.workforce-inline-form input,.workforce-inline-form select,.workforce-resolve input { font-family:inherit;font-size:.78rem;font-weight:700;line-height:1.25; }
@media (max-width:620px) { .workforce-worker-actions { grid-column:1/-1;justify-content:stretch; }.workforce-worker-actions > * { flex:1; } }
.timeclock-person-card.has-workforce-actions { min-height:98px;grid-template-columns:38px minmax(0,1fr) auto;align-items:center; }
@media (max-width:620px) { .timeclock-person-card.has-workforce-actions { grid-template-columns:38px minmax(0,1fr); }.workforce-worker-actions { margin-top:4px;grid-column:2;justify-content:flex-start;flex-wrap:wrap; }.workforce-worker-actions > * { flex:0 1 auto; } }

/* Sistema visual común para ventanas modales. */
.order-modal {
    max-height: min(90dvh,820px);
    border-radius: 22px;
    box-shadow: 0 30px 90px rgba(28,25,21,.32),0 3px 12px rgba(28,25,21,.12);
}

.order-modal::backdrop {
    background: rgba(27,29,25,.4);
    -webkit-backdrop-filter: blur(7px) saturate(85%);
    backdrop-filter: blur(7px) saturate(85%);
}

.order-modal .order-modal-card {
    --modal-padding: clamp(24px,3vw,30px);
    box-sizing: border-box;
    max-height: min(90dvh,820px);
    padding: var(--modal-padding);
    border: 1px solid rgba(255,255,255,.84);
    border-radius: 22px;
    background-color: rgba(249,247,243,.88);
    background-image: linear-gradient(145deg,rgba(255,255,255,.92),rgba(241,237,230,.76));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.98),inset 0 -1px 0 rgba(126,113,98,.06);
    -webkit-backdrop-filter: blur(24px) saturate(132%);
    backdrop-filter: blur(24px) saturate(132%);
    scrollbar-color: rgba(92,105,93,.35) transparent;
    scrollbar-width: thin;
}

.order-modal .order-modal-card::-webkit-scrollbar { width: 7px; }
.order-modal .order-modal-card::-webkit-scrollbar-track { background: transparent; }
.order-modal .order-modal-card::-webkit-scrollbar-thumb { border: 2px solid transparent; border-radius: 999px; background: rgba(92,105,93,.35); background-clip: padding-box; }

.order-modal .order-modal-heading {
    position: sticky;
    z-index: 5;
    top: calc(0px - var(--modal-padding));
    margin: calc(0px - var(--modal-padding)) calc(0px - var(--modal-padding)) 22px;
    padding: var(--modal-padding) var(--modal-padding) 18px;
    border-bottom: 1px solid rgba(126,113,98,.1);
    background: rgba(250,248,245,.86);
    box-shadow: 0 10px 28px rgba(49,39,28,.045);
    -webkit-backdrop-filter: blur(18px) saturate(128%);
    backdrop-filter: blur(18px) saturate(128%);
}

.order-modal .order-modal-card .form-actions,
.order-modal .order-modal-card .order-modal-actions {
    bottom: calc(0px - var(--modal-padding));
    margin: 16px calc(0px - var(--modal-padding)) calc(0px - var(--modal-padding));
    padding: 12px var(--modal-padding) calc(16px + env(safe-area-inset-bottom,0px));
}

.order-modal .order-modal-card > .order-modal-close {
    position: sticky;
    z-index: 8;
    top: 0;
    right: auto;
    float: right;
    margin: 0 0 8px 16px;
}

.order-modal .order-modal-close {
    border: 1px solid rgba(255,255,255,.85);
    color: #5e635d;
    background: rgba(255,255,255,.72);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.98),0 7px 18px rgba(49,39,28,.09);
    -webkit-backdrop-filter: blur(12px) saturate(125%);
    backdrop-filter: blur(12px) saturate(125%);
    transition: border-color .22s ease,color .22s ease,box-shadow .22s ease,transform .22s ease;
}

.order-modal .order-modal-card h2 {
    margin-top: 4px;
    color: #292d29;
    font-family: Georgia,serif;
    font-weight: 500;
    letter-spacing: -.025em;
    line-height: 1.08;
}

.order-modal .order-modal-card > .eyebrow,
.order-modal .order-modal-heading .eyebrow {
    color: #52705a;
    letter-spacing: .14em;
}

.order-modal .order-modal-card label:not(.admin-active-option) {
    color: #555b55;
    font-size: .72rem;
    font-weight: 760;
}

.order-modal .order-modal-card input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.order-modal .order-modal-card select,
.order-modal .order-modal-card textarea {
    border-color: rgba(121,111,99,.22);
    background-color: rgba(255,255,255,.78);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.95),0 3px 10px rgba(49,39,28,.035);
    transition: border-color .22s ease,box-shadow .22s ease,background-color .22s ease;
}

.order-modal .order-modal-card input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]):focus,
.order-modal .order-modal-card select:focus,
.order-modal .order-modal-card textarea:focus {
    outline: 0;
    border-color: rgba(32,85,26,.55);
    background-color: rgba(255,255,255,.96);
    box-shadow: 0 0 0 4px rgba(32,85,26,.1),inset 0 1px 0 rgba(255,255,255,.98);
}

.order-modal .order-modal-card > form > small,
.order-modal .order-modal-card label + small {
    color: #7e827c;
    line-height: 1.45;
}

@media (hover: hover) {
    .order-modal .order-modal-close:hover {
        border-color: rgba(82,112,90,.3);
        color: #20551A;
        box-shadow: inset 0 1px 0 rgba(255,255,255,.98),0 11px 25px rgba(49,39,28,.13);
        transform: translateY(-1px) rotate(3deg);
    }
}

@keyframes pastelco-modal-enter {
    from { opacity: 0; transform: translateY(14px) scale(.975); filter: blur(3px); }
    to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

@keyframes pastelco-modal-backdrop-enter {
    from { opacity: 0; }
    to { opacity: 1; }
}

.order-modal[open] .order-modal-card {
    animation: pastelco-modal-enter .38s cubic-bezier(.22,.7,.25,1) both;
}

.order-modal[open]::backdrop {
    animation: pastelco-modal-backdrop-enter .28s ease-out both;
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .order-modal .order-modal-card { background: #f8f6f2; }
    .order-modal .order-modal-heading,.order-modal-card .form-actions,.order-modal-card .order-modal-actions { background: #fff; }
}

@media (max-width: 650px) {
    .order-modal {
        width: calc(100vw - 16px);
        max-height: calc(100dvh - 16px);
        border-radius: 19px;
    }

    .order-modal .order-modal-card {
        --modal-padding: 20px;
        max-height: calc(100dvh - 16px);
        padding: var(--modal-padding);
        border-radius: 19px;
    }

    .order-modal .order-modal-heading {
        top: -20px;
        margin: -20px -20px 18px;
        padding: 20px 20px 15px;
    }
}

@media (prefers-reduced-motion: reduce) {
    * { scroll-behavior: auto !important; transition: none !important; }
    .module-card,
    .table-row,
    .production-recipe-card,
    .production-source-card,
    .production-batch-card,
    .order-type-option,
    .order-recipe-option,
    .chat-conversation { transform: none !important; }
    .order-modal[open] .order-modal-card,.order-modal[open]::backdrop { animation: none !important; }
}

/* Presupuestos comerciales. */
.budget-filter-bar { display:grid;margin:18px 0;padding:12px;border:1px solid rgba(255,255,255,.82);border-radius:16px;grid-template-columns:minmax(260px,1fr) 190px auto auto;align-items:end;gap:10px;background:rgba(255,255,255,.7);box-shadow:inset 0 1px 0 rgba(255,255,255,.96),0 9px 26px rgba(49,39,28,.055);backdrop-filter:blur(14px) saturate(125%); }
.budget-filter-bar label { display:grid;min-width:0;gap:5px;color:var(--muted);font-size:.68rem;font-weight:750; }.budget-filter-bar input,.budget-filter-bar select { width:100%;min-height:42px;padding:8px 10px;border:1px solid var(--line);border-radius:10px;background:rgba(255,255,255,.9);font:inherit; }
.budget-table .table-row { padding-inline:14px;grid-template-columns:minmax(100px,.85fr) minmax(120px,1.25fr) minmax(70px,.72fr) minmax(70px,.72fr) minmax(60px,.55fr) minmax(78px,.72fr) minmax(96px,.9fr) 190px;gap:12px; }.budget-table .row-actions { justify-content:flex-end;gap:9px;white-space:nowrap; }.budget-table .table-row.is-expired { opacity:.62;filter:grayscale(.35); }
.budget-status { display:inline-flex;width:fit-content;padding:6px 9px;border-radius:999px;color:#5f5d59;background:#ebe8e3;font-size:.62rem;font-weight:850;text-transform:uppercase; }.budget-status.is-enviado { color:#755d13;background:#fff0b7; }.budget-status.is-aceptado { color:#235d35;background:#dcebdd; }.budget-status.is-rechazado,.budget-status.is-caducado { color:#91492f;background:#f5dfd7; }.budget-status.is-convertido { color:#365c80;background:#dceaf5; }
.budget-form-shell .order-product-fields { grid-template-columns:minmax(180px,1.4fr) 75px 100px 100px 150px minmax(120px,.7fr); }
.budget-totals { margin-top:20px;overflow:hidden; }.budget-totals h2 { margin:3px 0 0;font-family:Georgia,serif;font-weight:500; }.budget-total-fields { display:grid;margin-top:16px;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px; }.budget-total-fields>label { display:grid;min-width:0;padding:11px;border:1px solid rgba(117,105,91,.14);border-radius:13px;gap:7px;color:var(--muted);background:rgba(255,255,255,.7);box-shadow:inset 0 1px 0 rgba(255,255,255,.95);font-size:.68rem;font-weight:750; }.budget-total-fields>label:focus-within { border-color:rgba(32,85,26,.42);box-shadow:0 0 0 3px rgba(32,85,26,.08),inset 0 1px 0 #fff; }.budget-total-fields input,.budget-total-fields select { width:100%;min-height:42px;border:1px solid rgba(117,105,91,.2);border-radius:9px;color:var(--ink);background:#fff;font-size:.9rem;font-weight:800; }.budget-total-fields input { padding-right:38px;text-align:right;font-variant-numeric:tabular-nums; }.budget-total-fields select { padding:8px 34px 8px 10px; }.budget-total-summary { display:grid;max-width:480px;margin:22px 0 0 auto;padding:15px 17px;border:1px solid rgba(117,105,91,.14);border-radius:15px;gap:0;background:rgba(255,255,255,.72);box-shadow:inset 0 1px 0 rgba(255,255,255,.96),0 8px 22px rgba(49,39,28,.045); }.budget-total-summary>span,.budget-tax-breakdown>span { display:flex;padding:8px 2px;border-bottom:1px solid rgba(117,105,91,.12);align-items:baseline;justify-content:space-between;gap:20px;color:var(--muted);font-size:.78rem; }.budget-tax-breakdown { display:grid; }.budget-total-summary em { font-style:normal; }.budget-total-summary strong { color:var(--ink);font-variant-numeric:tabular-nums;white-space:nowrap; }.budget-total-summary .is-discount { color:#9b4439; }.budget-total-summary .is-taxable { margin-top:3px;border-top:1px solid rgba(117,105,91,.2); }.budget-total-summary .is-total { margin:7px -8px -6px;padding:13px 10px;border:0;border-radius:10px;color:#fff;background:#20551A;font-size:1.08rem; }.budget-total-summary .is-total strong { color:#fff;font-size:1.22rem; }
.budget-total-fields>[hidden],.budget-total-summary>[hidden] { display:none!important; }
.budget-total-fields { grid-template-columns:repeat(2,minmax(0,1fr)); }.budget-discount-field { order:1; }.budget-payment-method { order:2; }.budget-shipping-cost { order:3; }.budget-shipping-tax { order:4; }.budget-total-fields>.budget-payment-notes { order:5;grid-column:1/-1; }.budget-payment-notes textarea { width:100%;min-height:88px;padding:10px 12px;border:1px solid rgba(117,105,91,.2);border-radius:9px;color:var(--ink);background:#fff;font:inherit;line-height:1.45;resize:vertical; }
.budget-convert { display:flex;margin-top:18px;padding:16px;border:1px solid rgba(32,85,26,.16);border-radius:16px;align-items:center;justify-content:space-between;gap:14px;background:rgba(235,246,233,.75);box-shadow:inset 0 1px 0 rgba(255,255,255,.9); }.budget-convert>div { display:grid;gap:3px; }.budget-convert small { color:var(--muted);font-size:.68rem; }
.budget-history .history-list article { display:flex;padding:11px 15px;border-top:1px solid var(--line);align-items:center;justify-content:space-between;gap:12px; }.budget-history .history-list article>div { display:grid;gap:3px; }.budget-history .history-list small { color:var(--muted);font-size:.66rem; }
.budget-history-snapshot { margin-top:5px; }.budget-history-snapshot>summary { width:fit-content;color:#6d6088;cursor:pointer;font-size:.64rem;font-weight:750; }.budget-history-snapshot>div { display:grid;margin-top:6px;padding:9px;border-radius:9px;gap:4px;background:rgba(245,242,237,.8); }.budget-history-snapshot span { font-size:.68rem;font-weight:700; }
.budget-print-page { margin:0;padding:28px;overflow-x:auto;color:#262a26;background:#eae7e1;font-family:Arial,sans-serif; }.budget-print-toolbar { display:flex;max-width:210mm;margin:0 auto 14px;justify-content:flex-end;gap:9px; }.budget-document { box-sizing:border-box;width:210mm;min-height:297mm;margin:auto;padding:18mm 16mm;background:#fff;box-shadow:0 16px 50px rgba(25,22,18,.16); }.budget-document>header { display:flex;min-height:64px;padding-bottom:14px;border-bottom:2px solid #20551A;align-items:center;justify-content:space-between;gap:24px; }.budget-document>header .budget-company-logo { display:block;width:auto;max-width:155px;height:auto;max-height:64px;object-fit:contain;object-position:left center; }.budget-document-brand-name { max-width:260px;color:#20551A;font-family:Georgia,serif;font-size:23px;font-weight:500;line-height:1.05; }.budget-document>header>div { display:grid;max-width:330px;gap:3px;text-align:right;font-size:11px;overflow-wrap:anywhere; }.budget-document-title { display:flex;padding:22px 0;justify-content:space-between;gap:24px; }.budget-document-title p { margin:0;color:#777;font-size:11px;text-transform:uppercase;letter-spacing:.12em; }.budget-document-title h1 { margin:4px 0 0;font-family:Georgia,serif;font-size:28px;font-weight:500; }.budget-document-title dl { display:grid;margin:0;gap:4px; }.budget-document-title dl>div { display:grid;grid-template-columns:100px auto;gap:10px;font-size:11px; }.budget-document-title dt { color:#777; }.budget-document-title dd { margin:0;text-align:right;font-weight:700; }.budget-document-client { display:grid;padding:12px 14px;border-radius:9px;gap:3px;background:#f4f5f1;font-size:11px; }.budget-document-client>span { color:#777;text-transform:uppercase; }.budget-document-products { margin-top:22px;overflow:hidden; }.budget-document-row { display:grid;box-sizing:border-box;width:100%;padding:10px 6px;border-bottom:1px solid #ddd;grid-template-columns:minmax(0,1fr) 38px 70px 54px 40px 68px;gap:5px;align-items:start;font-size:10px; }.budget-document-row.is-head { padding:7px 6px;color:#777;background:#f5f4f1;font-size:8px;font-weight:700;text-transform:uppercase; }.budget-document-row>span { min-width:0;overflow-wrap:anywhere; }.budget-document-row>span:not(:first-child) { text-align:right; }.budget-document-product small { display:block;margin-top:4px;color:#666;line-height:1.35; }.budget-document-images { display:flex;padding:8px;gap:8px;flex-wrap:wrap; }.budget-document-images figure { width:75px;margin:0; }.budget-document-images img { width:75px;height:58px;border-radius:5px;object-fit:cover; }.budget-document-images figcaption { margin-top:2px;color:#777;font-size:8px; }.budget-document-totals { display:grid;width:min(100%,270px);margin:22px 0 0 auto;gap:5px; }.budget-document-totals>div { display:flex;padding:5px 0;border-bottom:1px solid #e1e1e1;justify-content:space-between;gap:12px;font-size:11px; }.budget-document-totals .is-total { padding-top:9px;border-color:#20551A;font-size:16px; }.budget-document-payment,.budget-document-conditions { margin-top:25px;padding-top:14px;border-top:1px solid #ddd;font-size:10px;line-height:1.45; }.budget-document-payment p,.budget-document-conditions p { margin:5px 0 0; }.budget-document>footer { display:grid;margin-top:40px;grid-template-columns:1fr 180px;gap:20px;align-items:end;color:#777;font-size:10px; }.budget-document>footer>div { padding-top:30px;border-bottom:1px solid #777;text-align:center; }
.budget-document { padding-top:8mm; }.budget-document-title { display:grid;padding-top:0;padding-bottom:9px;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:8px 24px; }.budget-title-logo { display:block;width:auto;max-width:130px;height:auto;max-height:48px;object-fit:contain;object-position:right top; }.budget-document-title dl { display:flex;width:100%;margin:0;grid-column:1/-1;align-items:center;justify-content:flex-start;gap:0; }.budget-document-title dl>div { display:flex;grid-template-columns:none;align-items:baseline;justify-content:flex-start;gap:5px;white-space:nowrap; }.budget-document-title dl>div+div::before { margin:0 10px;color:#999;content:'·';font-weight:800; }.budget-document-title dd { text-align:left; }.budget-document-parties { display:grid;margin-top:14px;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px; }.budget-document-client { min-width:0;padding:11px 13px;align-content:start;font-size:10px;overflow-wrap:anywhere; }.budget-document-sender-heading { display:flex;min-height:18px;align-items:flex-start;justify-content:space-between;gap:10px; }.budget-document-sender-heading>span { color:#777;text-transform:uppercase; }.budget-document-products { margin-top:16px; }.budget-document-row.is-head span small { display:block;margin-top:1px;font-size:6.5px;font-weight:700;line-height:1;letter-spacing:.03em; }.budget-document-totals { width:245px;margin-top:13px;gap:1px; }.budget-document-totals>div { padding:3px 0;gap:9px;font-size:9.5px; }.budget-document-totals .is-total { padding-top:6px;font-size:13px; }
.budget-document-title { align-items:center; }
.budget-document-title>div:first-child { display:grid;grid-column:1;gap:0;align-content:center; }
.budget-document-title>div:first-child>p { line-height:1; }
.budget-document-title>div:first-child>h1 { margin-top:1px;line-height:1; }
.budget-document-title>div:first-child dl { margin-top:2px; }
.budget-document-classification { display:block;margin-top:4px;color:#777;font-size:8px;font-weight:600;letter-spacing:.02em; }
.budget-document>footer>span { display:grid;gap:4px; }
.budget-document>footer>span>small { max-width:360px;font-size:8px;line-height:1.35; }
.ticket-document-kind { margin:0 0 1.5mm;color:#666;font-size:7pt;font-weight:700;letter-spacing:.04em;text-transform:uppercase; }
.shipment-ticket-classification { max-width:64mm;color:#555;font-size:6.5pt;font-weight:500;line-height:1.25; }
.budget-title-logo { max-width:360px;max-height:136px;margin-right:18px;margin-bottom:-28px;grid-column:2;object-position:right center;align-self:center; }
@media(max-width:1050px){.budget-table .table-head { display:none; }.budget-table .table-row { display:grid;padding:12px;grid-template-columns:1fr 1fr;gap:8px; }.budget-table .table-row>span { display:grid;gap:2px; }.budget-table .table-row>span::before { color:var(--muted);content:attr(data-label);font-size:.55rem;font-weight:800;text-transform:uppercase; }.budget-table .row-actions { grid-column:1/-1;justify-content:flex-end; }}
@media(max-width:900px){.budget-filter-bar { grid-template-columns:1fr 1fr; }.budget-form-shell .order-product-fields { grid-template-columns:1fr 1fr; }.budget-total-fields { grid-template-columns:1fr 1fr; }}
@media(max-width:560px){.budget-filter-bar,.budget-total-fields { grid-template-columns:1fr; }.budget-filter-bar .button { width:100%; }.budget-convert { align-items:stretch;flex-direction:column; }.budget-convert .button { width:100%; }.budget-form-shell .order-product-fields { grid-template-columns:1fr; }}

/* Envíos y justificantes físicos de entrega. */
.shipment-counts { display:flex;gap:8px;flex-wrap:wrap; }.shipment-counts span { display:flex;padding:8px 11px;border:1px solid rgba(255,255,255,.82);border-radius:12px;align-items:baseline;gap:5px;color:var(--muted);background:rgba(255,255,255,.64);box-shadow:inset 0 1px 0 rgba(255,255,255,.96);font-size:.68rem; }.shipment-counts strong { color:var(--ink);font-size:1rem; }.shipment-section { margin-top:20px; }.shipment-section-heading { display:flex;margin-bottom:10px;align-items:end;justify-content:space-between; }.shipment-section-heading h2 { margin:2px 0 0;font-family:Georgia,serif;font-weight:500; }.shipment-section-heading>span { display:grid;width:30px;height:30px;border-radius:50%;place-items:center;color:#fff;background:#ca6844;font-size:.72rem;font-weight:800; }.shipment-grid { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px; }
.shipment-filter { grid-template-columns:minmax(240px,1fr) 160px 170px auto auto; }
.shipment-card { overflow:hidden;border:1px solid rgba(255,255,255,.86);border-radius:17px;background:rgba(255,255,255,.72);box-shadow:inset 0 1px 0 rgba(255,255,255,.98),0 9px 25px rgba(50,42,32,.07);backdrop-filter:blur(15px) saturate(125%);transition:border-color .28s ease,box-shadow .28s ease,transform .28s ease;scroll-margin-top:90px; }.shipment-card:hover { border-color:rgba(202,104,68,.3);box-shadow:inset 0 1px 0 #fff,0 13px 32px rgba(50,42,32,.11);transform:translateY(-2px); }.shipment-card.is-delivered { opacity:.82;background:rgba(240,245,239,.7); }.shipment-card.is-late { border-color:rgba(166,55,45,.28); }.shipment-card-header { display:flex;padding:12px 13px;border-bottom:1px solid rgba(117,105,91,.12);align-items:center;justify-content:space-between;gap:10px; }.shipment-reference { display:flex;min-width:0;align-items:baseline;gap:8px; }.shipment-reference strong { color:#ca6844;font-family:Georgia,serif;font-size:1.18rem;font-weight:600; }.shipment-reference span { color:var(--muted);font-size:.68rem; }.shipment-head-actions { display:flex;align-items:center;gap:7px; }.shipment-head-actions .icon-action { display:grid;width:34px;height:34px;border:1px solid rgba(255,255,255,.9);border-radius:11px;place-items:center;color:#20551A;background:rgba(255,255,255,.76);box-shadow:inset 0 1px 0 #fff,0 5px 13px rgba(45,39,31,.08); }.shipment-status { display:inline-flex;padding:6px 9px;border-radius:999px;color:#6a625a;background:#e7e4df;font-size:.6rem;font-weight:850;text-transform:uppercase; }.shipment-status.is-entregado { color:#20551A;background:#dcebd9; }
.shipment-edit-action svg { width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round; }
.shipment-card-body { display:grid;padding:13px;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:15px; }.shipment-customer,.shipment-products { display:grid;align-content:start;gap:4px;min-width:0; }.shipment-customer strong { font-size:.82rem; }.shipment-customer a,.shipment-customer span { color:var(--muted);font-size:.7rem;line-height:1.35; }.shipment-products>span { color:var(--muted);font-size:.6rem;font-weight:800;text-transform:uppercase; }.shipment-products p { display:flex;margin:0;padding:3px 0;justify-content:space-between;gap:8px;font-size:.72rem;line-height:1.3; }.shipment-products p+p { border-top:1px solid rgba(117,105,91,.1); }.shipment-products small { flex:0 0 auto;color:var(--muted); }.shipment-note,.shipment-payment { display:grid;margin:0 13px 10px;padding:9px 10px;border-radius:10px;gap:2px;font-size:.68rem;line-height:1.35; }.shipment-note { color:#625b53;background:rgba(244,241,235,.8); }.shipment-payment { color:#982f27;background:#f8e7e2; }.shipment-card-footer { display:flex;padding:10px 13px;border-top:1px solid rgba(117,105,91,.12);align-items:center;justify-content:space-between;gap:10px; }.shipment-card-footer>span { color:var(--muted);font-size:.64rem; }.shipment-card-footer .button { min-height:34px;padding:7px 10px;font-size:.65rem; }.shipment-history { border-top:1px solid rgba(117,105,91,.1); }.shipment-history>summary { padding:9px 13px;color:var(--muted);cursor:pointer;font-size:.62rem;font-weight:750; }.shipment-history>div { padding:0 13px 9px; }.shipment-history p { display:flex;margin:0;padding:4px 0;justify-content:space-between;gap:8px;font-size:.62rem; }.shipment-history p span { color:var(--muted); }.shipment-delivered { margin-top:20px; }.shipment-delivered>.shipment-grid { padding:12px; }
.shipment-ticket-brand { display:grid;min-height:25mm;padding:1mm 0 2mm;border-bottom:1px solid #999;grid-template-columns:minmax(0,1fr) 27mm;align-items:center;gap:2mm; }.shipment-ticket-logo { display:flex;min-width:0;min-height:23mm;align-items:center;justify-content:center; }.shipment-ticket-logo img { display:block;width:auto;max-width:27mm;height:auto;max-height:23mm;object-fit:contain;filter:grayscale(1) contrast(1.3); }.shipment-ticket-company { display:grid;min-width:0;padding:0;gap:.45mm;font-size:6.6pt;line-height:1.2;text-align:left; }.shipment-ticket-company:only-child { grid-column:1/-1; }.shipment-ticket-company strong { font-size:8.2pt; }.shipment-ticket-brand+header { padding-top:1.6mm; }.shipment-ticket-reference { display:flex;padding:2mm 0;border-bottom:1px solid #999;align-items:baseline;justify-content:space-between;gap:2mm; }.shipment-ticket-reference span { font-size:7pt;text-transform:uppercase; }.shipment-ticket-reference strong { font-size:14pt; }.shipment-ticket-recipient { display:grid;padding:2mm 0;border-bottom:1px solid #999;gap:.6mm; }.shipment-ticket-recipient>span,.shipment-ticket-products>strong,.shipment-ticket-notes>strong { font-size:6.5pt;text-transform:uppercase; }.shipment-ticket-recipient>strong { font-size:9pt; }.shipment-ticket-recipient p,.shipment-ticket-products p,.shipment-ticket-notes p { margin:0;font-size:7.5pt;line-height:1.3; }.shipment-ticket-products { padding:2mm 0;border-bottom:1px solid #999; }.shipment-ticket-products>div { display:flex;padding:1mm 0;justify-content:space-between;gap:2mm;font-size:8pt; }.shipment-ticket-notes { padding:2mm 0;border-bottom:1px solid #999; }.shipment-ticket-delivered { margin:2mm 0 0;font-size:7pt;font-weight:700; }.shipment-ticket-signature { padding-top:4mm; }.shipment-ticket-signature>p { margin:0 0 2mm;font-size:8pt;font-weight:800; }.shipment-ticket-signature>div { height:12mm;border-bottom:1px solid #111; }.shipment-ticket-signature>div.is-signature { height:25mm; }.shipment-ticket-signature>div span { color:#666;font-size:6.5pt; }.shipment-ticket-signature>small { display:block;margin-top:3mm;font-size:7pt; }
.product-ticket,.shipment-ticket { color:#000;font-family:Arial,Helvetica,"Liberation Sans",sans-serif;font-size:9pt;font-weight:400;line-height:1.3;text-rendering:optimizeLegibility; }
.product-ticket>header span { font-size:9pt; }.product-ticket>header .ticket-product-heading strong { font-size:16pt;font-weight:800; }.product-ticket>header .ticket-product-heading b { font-size:10pt;font-weight:700; }.ticket-customer h1,.ticket-customer p { font-size:9pt;line-height:1.3; }.ticket-payment,.ticket-product-type,.ticket-notes { font-size:9pt;line-height:1.3; }.ticket-components>div>span,.ticket-components strong { font-size:9pt;line-height:1.25; }.ticket-components small { font-size:8pt;line-height:1.3; }
.shipment-ticket-company { font-size:8pt;line-height:1.3; }.shipment-ticket-company strong { font-size:10pt;font-weight:800; }.shipment-ticket-reference span { font-size:8pt; }.shipment-ticket-reference strong { font-size:16pt;font-weight:800; }.shipment-ticket-recipient>span,.shipment-ticket-products>strong,.shipment-ticket-notes>strong { font-size:8pt;font-weight:800; }.shipment-ticket-recipient>strong { font-size:10pt; }.shipment-ticket-recipient p,.shipment-ticket-products p,.shipment-ticket-notes p,.shipment-ticket-products>div { font-size:9pt;line-height:1.3; }.shipment-ticket-delivered { font-size:8pt; }.shipment-ticket-signature>p { font-size:9pt; }.shipment-ticket-signature>div span,.shipment-ticket-signature>small { color:#111;font-size:8pt; }
.shipment-ticket>.shipment-ticket-heading { display:grid;padding:1.6mm 0 2mm;justify-content:start;gap:.35mm; }.shipment-ticket-heading>strong { font-size:9pt;font-weight:800; }.shipment-ticket-heading>.shipment-ticket-date { font-size:8pt;font-weight:400; }
@media(max-width:900px){.shipment-grid { grid-template-columns:1fr; }.shipment-filter { grid-template-columns:1fr 1fr; }}
@media(max-width:560px){.shipment-counts { width:100%; }.shipment-counts span { flex:1;justify-content:center; }.shipment-filter { grid-template-columns:1fr; }.shipment-filter .button { width:100%; }.shipment-card-body { grid-template-columns:1fr;gap:10px; }.shipment-card-footer { align-items:stretch;flex-direction:column; }.shipment-card-footer form,.shipment-card-footer .button { width:100%; }.shipment-reference { align-items:flex-start;flex-direction:column;gap:1px; }}

/* Informes y gráficos empresariales. */
.report-shell { width:min(100% - 40px,1400px); }.report-filter { display:flex;margin:18px 0;padding:12px;border:1px solid rgba(255,255,255,.85);border-radius:16px;align-items:end;gap:10px;background:rgba(255,255,255,.7);box-shadow:inset 0 1px 0 #fff,0 9px 26px rgba(49,39,28,.055);backdrop-filter:blur(14px) saturate(125%); }.report-filter label { display:grid;min-width:170px;gap:5px;color:var(--muted);font-size:.68rem;font-weight:750; }.report-filter select,.report-filter input { min-height:42px;padding:8px 10px;border:1px solid var(--line);border-radius:10px;background:rgba(255,255,255,.9);font:inherit; }.report-custom-dates { display:flex;gap:10px; }.report-kpis { display:grid;margin-top:14px;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px; }.report-kpis article,.report-panel { border:1px solid rgba(255,255,255,.86);border-radius:17px;background:rgba(255,255,255,.72);box-shadow:inset 0 1px 0 #fff,0 9px 25px rgba(50,42,32,.065);backdrop-filter:blur(14px) saturate(125%); }.report-kpis article { display:grid;min-height:112px;padding:16px;align-content:center;gap:5px;transition:border-color .28s ease,box-shadow .28s ease,transform .28s ease; }.report-kpis article:hover { border-color:rgba(52,91,120,.25);box-shadow:inset 0 1px 0 #fff,0 14px 30px rgba(50,42,32,.1);transform:translateY(-2px); }.report-kpis article>span { color:var(--muted);font-size:.65rem;font-weight:800;text-transform:uppercase;letter-spacing:.05em; }.report-kpis article>strong { color:#345b78;font-family:Georgia,serif;font-size:1.55rem;font-weight:500; }.report-kpis article>small { color:var(--muted);font-size:.64rem; }.report-kpis article.is-alert>strong { color:#a34537; }.report-change.is-positive { color:#39723c; }.report-change.is-negative { color:#a34537; }.report-change.is-new { color:#776d63; }
.report-panel { min-width:0;margin-top:12px;padding:17px; }.report-panel>header { display:flex;margin-bottom:14px;align-items:flex-start;justify-content:space-between;gap:12px; }.report-panel h2 { margin:3px 0 0;font-family:Georgia,serif;font-size:1.25rem;font-weight:500; }.report-panel header p:not(.eyebrow) { margin:5px 0 0;color:var(--muted);font-size:.68rem; }.report-panel>header>span { color:var(--muted);font-size:.65rem;font-weight:750; }.report-two-columns { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px; }.report-three-columns { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px; }.report-line-chart { overflow-x:auto; }.report-line-chart svg { display:block;width:100%;min-width:620px;height:auto; }.report-line-chart line { stroke:#d9d5ce;stroke-width:1; }.report-line-chart polygon { fill:rgba(52,91,120,.1); }.report-line-chart polyline { fill:none;stroke:#345b78;stroke-width:3;stroke-linecap:round;stroke-linejoin:round; }.report-line-chart circle { fill:#ca6844;stroke:#fff;stroke-width:2; }.report-line-chart text { fill:#7e776f;font-size:11px; }.report-evolution-table { display:grid;margin-top:5px;padding-top:10px;border-top:1px solid rgba(117,105,91,.13);grid-template-columns:1fr 90px 120px;gap:5px 12px;font-size:.68rem; }.report-evolution-table>span { color:var(--muted);font-size:.58rem;font-weight:800;text-transform:uppercase; }.report-evolution-table>b:nth-child(3n+2),.report-evolution-table>b:nth-child(3n+3),.report-evolution-table>span:nth-child(2),.report-evolution-table>span:nth-child(3) { text-align:right; }
.report-bars { display:grid;gap:12px; }.report-bar-row { display:grid;gap:5px; }.report-bar-row>div { display:flex;align-items:baseline;justify-content:space-between;gap:10px; }.report-bar-row strong { overflow-wrap:anywhere;font-size:.74rem; }.report-bar-row span { flex:0 0 auto;color:var(--muted);font-size:.62rem; }.report-bar-row progress,.report-progress { overflow:hidden;width:100%;height:8px;border:0;border-radius:999px;background:#ebe8e2;appearance:none; }.report-bar-row progress::-webkit-progress-bar,.report-progress::-webkit-progress-bar { border-radius:999px;background:#ebe8e2; }.report-bar-row progress::-webkit-progress-value { border-radius:999px;background:linear-gradient(90deg,#345b78,#5f89a4); }.report-bar-row progress::-moz-progress-bar { border-radius:999px;background:#345b78; }.report-empty { margin:12px 0;color:var(--muted);font-size:.72rem; }.report-table { overflow:hidden;border:1px solid rgba(117,105,91,.12);border-radius:12px; }.report-table-row { display:grid;padding:9px 11px;border-top:1px solid rgba(117,105,91,.1);grid-template-columns:minmax(180px,1.4fr) 1fr 70px 70px 80px;align-items:center;gap:9px;font-size:.7rem; }.report-table-row.has-six { grid-template-columns:minmax(180px,1.4fr) 1fr 65px 65px 75px 100px; }.report-table-row:first-child { border-top:0; }.report-table-row.is-head { color:var(--muted);background:rgba(244,242,238,.7);font-size:.58rem;font-weight:800;text-transform:uppercase; }.report-table-row>span:not(:nth-child(-n+2)) { text-align:right; }.report-table-row>strong { overflow-wrap:anywhere; }
.report-progress-panel>header>strong { color:#345b78;font-family:Georgia,serif;font-size:1.3rem;font-weight:500; }.report-progress { display:block;height:10px;margin-bottom:13px; }.report-progress::-webkit-progress-value { border-radius:999px;background:#20551A; }.report-progress::-moz-progress-bar { border-radius:999px;background:#20551A; }.report-progress.is-blue::-webkit-progress-value { background:#345b78; }.report-progress.is-blue::-moz-progress-bar { background:#345b78; }.report-progress.is-terracotta::-webkit-progress-value { background:#ca6844; }.report-progress.is-terracotta::-moz-progress-bar { background:#ca6844; }.report-progress-panel dl { display:grid;margin:0;gap:7px; }.report-progress-panel dl>div { display:flex;padding-top:7px;border-top:1px solid rgba(117,105,91,.1);justify-content:space-between;gap:8px;font-size:.68rem; }.report-progress-panel dt { color:var(--muted); }.report-progress-panel dd { margin:0;font-weight:800; }.report-costs>div { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px; }.report-costs article { display:grid;padding:13px;border-radius:12px;gap:5px;background:rgba(238,244,236,.72); }.report-costs article span { color:var(--muted);font-size:.63rem; }.report-costs article strong { color:#20551A;font-family:Georgia,serif;font-size:1.2rem;font-weight:500; }.report-costs>small { display:block;margin-top:10px;color:#9a4e34;font-size:.66rem; }.report-worker-list { display:grid;gap:7px; }.report-worker-list>div { display:grid;padding:9px 0;border-top:1px solid rgba(117,105,91,.1);grid-template-columns:minmax(0,1fr) auto;gap:3px 10px; }.report-worker-list>div:first-child { border-top:0; }.report-worker-list strong { font-size:.74rem; }.report-worker-list span { color:var(--muted);font-size:.64rem; }.report-worker-list b { grid-column:2;grid-row:1/3;align-self:center;color:#a34537;font-size:.62rem; }.report-footnote { margin:18px 0 40px;color:var(--muted);font-size:.62rem;line-height:1.5; }
.report-two-columns.is-single { grid-template-columns:1fr; }
@media(max-width:980px){.report-kpis { grid-template-columns:repeat(2,minmax(0,1fr)); }.report-three-columns { grid-template-columns:1fr; }.report-table { overflow-x:auto; }.report-table-row { min-width:650px; }}
@media(max-width:700px){.report-shell { width:min(100% - 24px,1400px); }.report-filter,.report-custom-dates { align-items:stretch;flex-direction:column; }.report-filter label { min-width:0; }.report-filter .button { width:100%; }.report-kpis,.report-two-columns { grid-template-columns:1fr; }.report-kpis article { min-height:96px; }.report-panel { padding:13px; }.report-costs>div { grid-template-columns:1fr; }.report-heading .heading-actions { flex-direction:column; }.report-evolution-table { grid-template-columns:1fr 65px 95px; }}

/* Botones de cristal: un unico lenguaje visual para toda la aplicacion. */
:is(.app-page,.login-page) :where(.button,.logout-button,.icon-button,.icon-action,.planning-print-icon,.production-picker-print,.production-nav-button,.production-today,.production-view-toggle a,.planning-view-toggle a,.planning-mobile-week-navigation>a,.planning-mobile-add-order,.recipe-drag-handle,.production-add-mark,.production-subtract-mark,.production-bag-close,.production-bag-toggle,.production-adjustment-reset,.order-component-add,.order-type-option,.order-recipe-option,.order-modal-close,.order-modal-upload,.chat-back,.chat-new,.chat-close,.chat-attach,.chat-send,.support-tabs button) {
    position:relative;
    overflow:hidden;
    border:1px solid rgba(255,255,255,.82);
    background-color:rgba(255,255,255,.58);
    background-image:linear-gradient(145deg,rgba(255,255,255,.9) 0%,rgba(255,255,255,.5) 48%,rgba(228,222,213,.42) 100%);
    box-shadow:inset 0 1px 0 rgba(255,255,255,.98),inset 0 -1px 0 rgba(112,99,84,.08),0 8px 21px rgba(49,39,28,.1);
    -webkit-backdrop-filter:blur(16px) saturate(145%);
    backdrop-filter:blur(16px) saturate(145%);
    isolation:isolate;
    transition:border-color .3s cubic-bezier(.22,.7,.25,1),background-color .3s ease,box-shadow .3s cubic-bezier(.22,.7,.25,1),color .24s ease,transform .3s cubic-bezier(.22,.7,.25,1);
}

:is(.app-page,.login-page) :where(.button,.logout-button,.icon-button,.icon-action,.planning-print-icon,.production-picker-print,.production-nav-button,.production-today,.production-view-toggle a,.planning-view-toggle a,.planning-mobile-week-navigation>a,.planning-mobile-add-order,.recipe-drag-handle,.production-add-mark,.production-subtract-mark,.production-bag-close,.production-bag-toggle,.production-adjustment-reset,.order-component-add,.order-type-option,.order-recipe-option,.order-modal-close,.order-modal-upload,.chat-back,.chat-new,.chat-close,.chat-attach,.chat-send,.support-tabs button)::before {
    position:absolute;
    z-index:0;
    top:-65%;
    left:-18%;
    width:72%;
    height:115%;
    border-radius:50%;
    background:radial-gradient(circle,rgba(255,255,255,.7),rgba(255,255,255,0) 70%);
    content:'';
    pointer-events:none;
    transform:rotate(-14deg);
    transition:opacity .28s ease,transform .42s cubic-bezier(.22,.7,.25,1);
}

:is(.app-page,.login-page) :where(.button-primary,.chat-send,.production-bag-toggle,.production-add-mark,.planning-mobile-week-navigation>a.planning-mobile-today) {
    border-color:rgba(255,255,255,.38);
    color:#fff;
    background-color:rgba(178,86,53,.88);
    background-image:linear-gradient(145deg,rgba(226,132,95,.91),rgba(174,81,49,.92) 55%,rgba(139,60,37,.9));
    box-shadow:inset 0 1px 0 rgba(255,255,255,.42),inset 0 -1px 0 rgba(99,37,22,.18),0 10px 25px rgba(137,65,40,.24);
}

:is(.app-page,.login-page) :where(.chat-send,.production-bag-toggle,.production-add-mark,.planning-mobile-week-navigation>a.planning-mobile-today) {
    background-color:rgba(32,85,26,.9);
    background-image:linear-gradient(145deg,rgba(67,128,60,.92),rgba(32,85,26,.93) 54%,rgba(17,61,13,.92));
    box-shadow:inset 0 1px 0 rgba(255,255,255,.34),inset 0 -1px 0 rgba(7,42,5,.22),0 10px 24px rgba(22,72,18,.24);
}

:is(.app-page,.login-page) :where(.button-secondary,.button-quiet) {
    border-color:rgba(255,255,255,.86);
    color:var(--ink);
    background-color:rgba(255,255,255,.54);
    background-image:linear-gradient(145deg,rgba(255,255,255,.92),rgba(245,241,235,.48));
}

:is(.app-page,.login-page) :where(.button-danger,.danger-action) {
    border-color:rgba(255,255,255,.32);
    color:#fff;
    background-color:rgba(157,56,36,.9);
    background-image:linear-gradient(145deg,rgba(205,91,62,.93),rgba(146,49,30,.94));
    box-shadow:inset 0 1px 0 rgba(255,255,255,.3),0 9px 22px rgba(137,48,31,.22);
}

:is(.app-page,.login-page) .text-action {
    min-height:30px;
    padding:4px 9px;
    border:1px solid transparent;
    border-radius:9px;
    background:rgba(255,255,255,0);
    transition:border-color .24s ease,background-color .24s ease,box-shadow .24s ease,color .24s ease,transform .24s ease;
}

:is(.app-page,.login-page) .text-action.danger-action {
    border-color:rgba(155,59,39,.15);
    color:var(--danger);
    background:rgba(255,241,237,.62);
    box-shadow:inset 0 1px 0 rgba(255,255,255,.82);
}

@media (hover:hover) and (pointer:fine) {
    :is(.app-page,.login-page) :where(.button,.logout-button,.icon-button,.icon-action,.planning-print-icon,.production-picker-print,.production-nav-button,.production-today,.production-view-toggle a,.planning-view-toggle a,.planning-mobile-week-navigation>a,.planning-mobile-add-order,.recipe-drag-handle,.production-add-mark,.production-subtract-mark,.production-bag-close,.production-bag-toggle,.production-adjustment-reset,.order-component-add,.order-type-option,.order-recipe-option,.order-modal-close,.order-modal-upload,.chat-back,.chat-new,.chat-close,.chat-attach,.chat-send,.support-tabs button):not(:disabled):hover {
        border-color:rgba(255,255,255,.98);
        box-shadow:inset 0 1px 0 #fff,inset 0 -1px 0 rgba(91,78,65,.08),0 13px 30px rgba(49,39,28,.15);
        transform:translateY(-2px);
    }
    :is(.app-page,.login-page) :where(.button,.logout-button,.icon-button,.icon-action,.planning-print-icon,.production-picker-print,.production-nav-button,.production-today,.production-view-toggle a,.planning-view-toggle a,.planning-mobile-week-navigation>a,.planning-mobile-add-order,.recipe-drag-handle,.production-add-mark,.production-subtract-mark,.production-bag-close,.production-bag-toggle,.production-adjustment-reset,.order-component-add,.order-type-option,.order-recipe-option,.order-modal-close,.order-modal-upload,.chat-back,.chat-new,.chat-close,.chat-attach,.chat-send,.support-tabs button):not(:disabled):hover::before { opacity:1;transform:translate(20%,-3%) rotate(-8deg); }
    :is(.app-page,.login-page) :where(.button-primary):not(:disabled):hover { background-color:rgba(162,72,43,.92);background-image:linear-gradient(145deg,rgba(216,116,79,.94),rgba(161,70,42,.95) 58%,rgba(127,51,31,.93)); }
    :is(.app-page,.login-page) :where(.chat-send,.production-bag-toggle,.production-add-mark,.planning-mobile-week-navigation>a.planning-mobile-today):not(:disabled):hover { background-color:rgba(27,76,22,.94);background-image:linear-gradient(145deg,rgba(58,117,52,.95),rgba(27,76,22,.96) 58%,rgba(12,52,9,.94)); }
    :is(.app-page,.login-page) .text-action:hover { border-color:rgba(255,255,255,.88);background:rgba(255,255,255,.58);box-shadow:inset 0 1px 0 rgba(255,255,255,.95),0 6px 15px rgba(49,39,28,.08);transform:translateY(-1px); }
}

:is(.app-page,.login-page) :where(.button,.logout-button,.icon-button,.icon-action,.planning-print-icon,.production-picker-print,.production-nav-button,.production-today,.production-view-toggle a,.planning-view-toggle a,.planning-mobile-week-navigation>a,.planning-mobile-add-order,.recipe-drag-handle,.production-add-mark,.production-subtract-mark,.production-bag-close,.production-bag-toggle,.production-adjustment-reset,.order-component-add,.order-type-option,.order-recipe-option,.order-modal-close,.order-modal-upload,.chat-back,.chat-new,.chat-close,.chat-attach,.chat-send,.support-tabs button):not(:disabled):active {
    box-shadow:inset 0 2px 6px rgba(49,39,28,.18),inset 0 1px 0 rgba(255,255,255,.58),0 3px 9px rgba(49,39,28,.09);
    transform:translateY(1px) scale(.985);
}

@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))) {
    :is(.app-page,.login-page) :where(.button,.logout-button,.icon-button,.icon-action,.planning-print-icon,.production-picker-print,.production-nav-button,.production-today,.production-view-toggle a,.planning-view-toggle a,.planning-mobile-week-navigation>a,.planning-mobile-add-order,.recipe-drag-handle,.production-add-mark,.production-subtract-mark,.production-bag-close,.production-bag-toggle,.production-adjustment-reset,.order-component-add,.order-type-option,.order-recipe-option,.order-modal-close,.order-modal-upload,.chat-back,.chat-new,.chat-close,.chat-attach,.chat-send,.support-tabs button) { background-color:#f8f5f0; }
    :is(.app-page,.login-page) :where(.button-primary,.chat-send,.production-bag-toggle,.production-add-mark,.planning-mobile-week-navigation>a.planning-mobile-today) { background-color:#a85235; }
    :is(.app-page,.login-page) :where(.chat-send,.production-bag-toggle,.production-add-mark,.planning-mobile-week-navigation>a.planning-mobile-today) { background-color:#20551a; }
}

@media (max-width:700px) {
    :is(.app-page,.login-page) :where(.button,.logout-button,.icon-button,.icon-action,.planning-print-icon,.production-picker-print,.production-nav-button,.production-today,.production-view-toggle a,.planning-view-toggle a,.planning-mobile-week-navigation>a,.planning-mobile-add-order,.recipe-drag-handle,.production-add-mark,.production-subtract-mark,.production-bag-close,.production-bag-toggle,.production-adjustment-reset,.order-component-add,.order-type-option,.order-recipe-option,.order-modal-close,.order-modal-upload,.chat-back,.chat-new,.chat-close,.chat-attach,.chat-send,.support-tabs button) {
        -webkit-backdrop-filter:blur(8px) saturate(122%);
        backdrop-filter:blur(8px) saturate(122%);
        box-shadow:inset 0 1px 0 rgba(255,255,255,.9),0 5px 14px rgba(49,39,28,.09);
    }
}

@media (prefers-reduced-motion:reduce) {
    :is(.app-page,.login-page) :where(.button,.logout-button,.icon-button,.icon-action,.planning-print-icon,.production-picker-print,.production-nav-button,.production-today,.production-view-toggle a,.planning-view-toggle a,.planning-mobile-week-navigation>a,.planning-mobile-add-order,.recipe-drag-handle,.production-add-mark,.production-subtract-mark,.production-bag-close,.production-bag-toggle,.production-adjustment-reset,.order-component-add,.order-type-option,.order-recipe-option,.order-modal-close,.order-modal-upload,.chat-back,.chat-new,.chat-close,.chat-attach,.chat-send,.support-tabs button,.text-action) { transition:none!important; }
    :is(.app-page,.login-page) :where(.button,.logout-button,.icon-button,.icon-action,.planning-print-icon,.production-picker-print,.production-nav-button,.production-today,.production-view-toggle a,.planning-view-toggle a,.planning-mobile-week-navigation>a,.planning-mobile-add-order,.recipe-drag-handle,.production-add-mark,.production-subtract-mark,.production-bag-close,.production-bag-toggle,.production-adjustment-reset,.order-component-add,.order-type-option,.order-recipe-option,.order-modal-close,.order-modal-upload,.chat-back,.chat-new,.chat-close,.chat-attach,.chat-send,.support-tabs button,.text-action):hover { transform:none!important; }
}

/* Respuesta inmediata durante navegaciones y acciones que esperan al servidor. */
.app-loading-overlay {
    position:fixed;
    z-index:2147483000;
    inset:0;
    display:grid;
    place-items:center;
    padding:max(24px,env(safe-area-inset-top)) max(20px,env(safe-area-inset-right)) max(24px,env(safe-area-inset-bottom)) max(20px,env(safe-area-inset-left));
    color:#233326;
    background:rgba(21,35,20,.22);
    -webkit-backdrop-filter:blur(8px) saturate(115%);
    backdrop-filter:blur(8px) saturate(115%);
    opacity:0;
    transition:opacity .18s ease;
    cursor:progress;
}

.app-loading-overlay[hidden] { display:none!important; }
.app-loading-overlay.is-visible { opacity:1; }

.app-loading-card {
    position:relative;
    display:grid;
    justify-items:center;
    min-width:min(230px,calc(100vw - 40px));
    padding:24px 28px 22px;
    overflow:hidden;
    border:1px solid rgba(255,255,255,.84);
    border-radius:24px;
    background:linear-gradient(145deg,rgba(255,255,255,.9),rgba(246,242,235,.74));
    box-shadow:inset 0 1px 0 #fff,0 24px 65px rgba(18,36,17,.23);
    -webkit-backdrop-filter:blur(22px) saturate(135%);
    backdrop-filter:blur(22px) saturate(135%);
    transform:translateY(6px) scale(.975);
    transition:transform .22s cubic-bezier(.22,.7,.25,1);
}

.app-loading-overlay.is-visible .app-loading-card { transform:translateY(0) scale(1); }

.app-loading-card::before {
    position:absolute;
    width:150px;
    height:80px;
    top:-50px;
    left:18px;
    border-radius:50%;
    background:rgba(255,255,255,.72);
    filter:blur(16px);
    content:'';
    pointer-events:none;
}

.app-loading-mark {
    position:relative;
    display:grid;
    width:54px;
    height:54px;
    margin-bottom:13px;
    place-items:center;
    border-radius:50%;
    color:#fff;
    background:linear-gradient(145deg,#2f7028,#174812);
    box-shadow:inset 0 1px 0 rgba(255,255,255,.36),0 9px 22px rgba(32,85,26,.25);
}

.app-loading-mark::after {
    position:absolute;
    inset:-6px;
    border:2px solid rgba(32,85,26,.15);
    border-top-color:#ca6844;
    border-right-color:rgba(202,104,68,.56);
    border-radius:50%;
    content:'';
    animation:pastelco-loading-spin .85s linear infinite;
}

.app-loading-mark span {
    font-family:Georgia,'Times New Roman',serif;
    font-size:25px;
    font-weight:700;
    line-height:1;
}

.app-loading-card strong { position:relative;font-size:1rem;letter-spacing:.01em; }
.app-loading-card small { position:relative;margin-top:4px;color:#718073;font-size:.78rem; }

@keyframes pastelco-loading-spin { to { transform:rotate(360deg); } }

@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))) {
    .app-loading-overlay { background:rgba(21,35,20,.42); }
    .app-loading-card { background:#fbf9f5; }
}

@media (prefers-reduced-motion:reduce) {
    .app-loading-overlay,.app-loading-card { transition:none; }
    .app-loading-mark::after { animation:none;border-color:rgba(32,85,26,.32);border-top-color:#ca6844; }
}

@media print {
    .chat-launcher,.chat-panel,.chat-backdrop,.task-launcher,.task-panel,.task-backdrop,.unified-notice,.production-notification-center,.app-loading-overlay { display: none !important; }
    .ticket-page { padding: 0; background: #fff; }
    .ticket-toolbar { display: none !important; }
    .ticket-list { display: block; }
    .product-ticket { width: 80mm; min-height: 0; margin: 0; border: 0; box-shadow: none; break-after: page; page-break-after: always; }
    .product-ticket + .product-ticket::before { content: none; }
    .product-ticket:last-child { break-after: auto; page-break-after: auto; }
    .budget-print-page { padding:0;background:#fff; }.budget-print-toolbar { display:none; }.budget-document { width:auto;min-height:0;margin:0;padding:5mm 10mm 10mm;box-shadow:none; }
    .shipment-ticket { width:80mm;padding:3mm 4mm; }
    .report-page { background:#fff; }.report-page .app-header,.report-page .app-navigation,.report-page .report-filter,.report-page .heading-actions,.report-page .chat-launcher,.report-page .chat-panel,.report-page .chat-backdrop,.report-page .task-launcher,.report-page .task-panel,.report-page .task-backdrop { display:none!important; }.report-shell { width:100%;padding:0; }.report-kpis { grid-template-columns:repeat(3,1fr); }.report-kpis article,.report-panel { break-inside:avoid;border:1px solid #ddd;background:#fff;box-shadow:none;backdrop-filter:none; }.report-two-columns { grid-template-columns:repeat(2,1fr); }.report-three-columns { grid-template-columns:repeat(3,1fr); }.report-line-chart svg { min-width:0; }
}

/* Ajustes finales de Gastos: deben prevalecer sobre los formularios y tablas compartidos. */
.form-shell.expense-form-shell { width: min(calc(100% - 36px),1440px); }
.expense-review-layout { grid-template-columns: minmax(0,1fr) minmax(360px,410px); gap: 18px; }
.expense-review-layout .expense-editor { box-sizing: border-box; min-width: 0; padding: 28px 30px; }
.expense-form-heading { margin-bottom: 16px; align-items: center; }
.expense-form-heading h1 { margin: 4px 0 6px; font-size: clamp(2rem,3vw,2.75rem); }
.expense-review-form { margin-top: 22px; }
.expense-review-form .expense-identification-grid { grid-template-columns: minmax(190px,1.6fr) minmax(120px,.8fr) minmax(130px,.9fr) minmax(130px,.8fr); }
.expense-review-form .expense-payment-grid { grid-template-columns: minmax(190px,1.35fr) minmax(150px,1fr) minmax(150px,.9fr); }
.expense-review-form .form-grid > div { display: grid; min-width: 0; align-content: start; }
.expense-review-form label { font-size: .74rem; }
.expense-review-form input,.expense-review-form select { height: 44px; margin-bottom: 14px; }
.expense-review-form textarea { min-height: 92px; margin-bottom: 14px; }
.expense-review-form .field-error { margin: -8px 0 12px; }
.expense-form-discard { margin: 4px 0 12px; padding: 12px; border: 1px solid rgba(151,57,38,.18); border-radius: 13px; background: rgba(255,241,237,.62); }
.expense-form-discard > header { display:flex;margin-bottom:10px;align-items:baseline;justify-content:space-between;gap:12px;color:#913d2d; }
.expense-form-discard > header strong { font-size:.72rem; }
.expense-form-discard > header span { color:var(--muted);font-size:.62rem;text-align:right; }
.expense-form-discard > div { display: grid; grid-template-columns: minmax(160px,.8fr) minmax(220px,1.4fr) auto; align-items: end; gap: 10px; }
.expense-form-discard label { display: grid; gap: 5px; }
.expense-form-discard select,.expense-form-discard textarea { width: 100%; margin: 0; }
.expense-form-discard textarea { min-height: 44px; }
.expense-form-discard .button { min-height: 44px; white-space: nowrap; }
.expense-form-review-history { margin-top:11px;border-top:1px solid rgba(151,57,38,.14); }
.expense-form-review-history>summary { display:flex;padding:11px 2px 2px;align-items:center;justify-content:space-between;gap:10px;color:#783b31;font-size:.67rem;font-weight:850;cursor:pointer; }
.expense-form-review-history>summary span { color:var(--muted);font-size:.59rem; }.expense-form-review-history ol { display:grid;margin:9px 0 0;padding:0;list-style:none;gap:7px; }
.expense-form-review-history li { display:grid;padding:10px;border:1px solid rgba(151,57,38,.1);border-radius:9px;background:rgba(255,255,255,.72);gap:8px; }
.expense-form-review-history li>header { display:flex;align-items:center;justify-content:space-between;gap:10px; }.expense-form-review-history li>header strong { color:var(--ink);font-size:.66rem; }.expense-form-review-history time { color:var(--muted);font-size:.59rem;font-weight:700; }
.expense-form-review-history dl { display:grid;margin:0;grid-template-columns:minmax(120px,.6fr) minmax(0,1.4fr);gap:7px; }.expense-form-review-history dl>div { display:grid;gap:2px; }.expense-form-review-history dt { color:var(--muted);font-size:.53rem;font-weight:850;letter-spacing:.04em;text-transform:uppercase; }.expense-form-review-history dd { margin:0;overflow-wrap:anywhere;color:var(--ink);font-size:.62rem;line-height:1.45; }
.expense-amounts { margin: 5px 0 14px; padding: 13px; }
.expense-amounts input { margin-bottom: 0; text-align: right; font-variant-numeric: tabular-nums; }
.expense-review-form > .form-actions { margin-top: 4px; padding-top: 15px; border-top: 1px solid rgba(117,105,91,.12); }
.expense-document-panel { top: 18px; max-height: calc(100vh - 36px); }
.expense-page-list { max-height: calc(100vh - 125px); }
.expense-page-preview > a { min-height: 220px; }
.expense-page-preview img { max-height: 520px; }
.budget-filter-bar.expense-filter-bar { grid-template-columns: minmax(220px,1fr) minmax(150px,.4fr) minmax(190px,.55fr) auto auto; }
.data-table.expense-table .table-row { grid-template-columns: minmax(170px,1.35fr) minmax(120px,.8fr) 100px minmax(140px,1fr) 105px minmax(120px,.8fr) minmax(190px,.95fr); }
.data-table.expense-table .row-actions { gap:8px;white-space:nowrap; }
.data-table.expense-table .row-actions .danger-action { display:inline-flex;align-items:center;justify-content:center; }
.data-table.expense-table .table-row.is-pending-review { color:#747570;background-color:#eff0ed;background-image:repeating-linear-gradient(to bottom,#8f938c 0 7px,transparent 7px 12px);background-position:left top;background-repeat:no-repeat;background-size:4px 100%;box-shadow:none; }
.data-table.expense-table .table-row.is-pending-review strong { color:#60615d; }
.data-table.expense-table .table-row.is-pending-review .expense-status.is-pendiente { gap:5px;border-color:#c7c9c4;color:#5f625d;background:#e2e4df; }
.data-table.expense-table .table-row.is-pending-review .expense-status svg { width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round; }
.data-table.expense-table .table-row.is-pending-review .expense-pending-copy { color:#696c67;font-weight:700;line-height:1.35; }
.data-table.expense-table .table-row.is-pending-review .pending-review-action { padding:6px 9px;border:1px solid rgba(53,95,66,.28);border-radius:8px;color:#2f5c3d;background:rgba(255,255,255,.68);white-space:nowrap; }
@media (max-width:820px) {
    .data-table.expense-table .table-row { grid-template-columns:minmax(0,1fr) auto; }
    .data-table.expense-table .table-row.is-pending-review .row-actions { display:flex; }
    .data-table.expense-table .table-row.is-pending-review .row-actions > .pending-review-action { display:inline-flex;align-items:center; }
}
@media (max-width:1180px) {
    .form-shell.expense-form-shell { width: min(calc(100% - 28px),1180px); }
    .expense-review-layout { grid-template-columns:1fr; }
    .expense-review-layout .expense-editor { padding:26px 24px; }
    .expense-document-panel { position:static;max-height:none; }
    .expense-page-list { max-height:none;grid-template-columns:repeat(2,minmax(0,1fr)); }
    .budget-filter-bar.expense-filter-bar { grid-template-columns:1fr 1fr; }
    .budget-filter-bar.expense-filter-bar > label:first-child { grid-column:1 / -1; }
}
@media (min-width:821px) and (max-width:1180px) { .data-table.expense-table .table-row { padding-inline:12px;grid-template-columns:minmax(130px,1.2fr) minmax(90px,.75fr) 78px minmax(105px,.9fr) 82px minmax(105px,.75fr) minmax(180px,.95fr);gap:8px; } }
@media (max-width:700px) {
    .form-shell.expense-form-shell { width:calc(100% - 20px);padding-top:20px; }
    .expense-review-layout .expense-editor { padding:22px 17px; }
    .expense-form-heading { align-items:flex-start; }
    .expense-form-heading h1 { font-size:2rem; }
    .expense-review-form .expense-identification-grid,.expense-review-form .expense-payment-grid,.expense-amounts { grid-template-columns:1fr; }
    .expense-page-list { grid-template-columns:1fr; }
    .budget-filter-bar.expense-filter-bar { grid-template-columns:1fr; }
    .budget-filter-bar.expense-filter-bar > label:first-child { grid-column:auto; }
    .expense-form-discard > div { grid-template-columns:1fr; }
    .expense-form-discard > header { align-items:flex-start;flex-direction:column;gap:3px; }
    .expense-form-discard > header span { text-align:left; }
    .expense-form-discard .button { width:100%;justify-content:center; }
    .expense-form-review-history dl { grid-template-columns:1fr; }
}

/* El selector de facturas debe caber completo y desplazarse dentro del modal. */
.order-modal.expense-upload-modal {
    box-sizing: border-box;
    width: min(760px,calc(100vw - 24px));
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
    padding: 0;
    overflow: hidden;
}
.order-modal.expense-upload-modal .order-modal-card {
    box-sizing: border-box;
    width: 100%;
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
}

@media (max-width:700px) {
    .order-modal.expense-upload-modal {
        width: calc(100vw - 12px);
        max-height: calc(100vh - 12px);
        max-height: calc(100dvh - 12px);
    }
    .order-modal.expense-upload-modal .order-modal-card {
        --modal-padding: 16px;
        max-height: calc(100vh - 12px);
        max-height: calc(100dvh - 12px);
        padding: max(18px,env(safe-area-inset-top,0px)) var(--modal-padding) var(--modal-padding);
    }
    .expense-upload-modal .expense-upload-options { gap: 10px; }
    .expense-upload-modal .expense-upload-option { padding: 13px; gap: 6px; }
    .expense-upload-modal .expense-upload-option > small { min-height: 0; }
}

/* La confirmación posterior al OCR es una ventana independiente del escáner. */
.order-modal.expense-confirm-modal { box-sizing:border-box;width:min(1180px,calc(100vw - 24px));max-height:calc(100dvh - 24px);padding:0;overflow:hidden; }
.expense-confirm-modal .order-modal-card { box-sizing:border-box;width:100%;max-height:calc(100dvh - 24px);overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable; }
.expense-confirm-heading { display:flex;padding-right:34px;align-items:flex-start;justify-content:space-between;gap:16px; }
.expense-confirm-heading h2 { margin-bottom:4px; }
.expense-confirm-counter { flex:0 0 auto;padding:7px 11px;border:1px solid rgba(202,104,68,.2);border-radius:999px;color:#874f39;background:rgba(255,247,241,.72);font-size:.68rem;font-weight:700; }
.expense-confirm-workspace { display:grid;margin-top:15px;grid-template-columns:minmax(330px,.9fr) minmax(480px,1.1fr);align-items:start;gap:14px; }
.expense-confirm-original,.expense-confirm-fields { min-width:0;border:1px solid rgba(255,255,255,.86);border-radius:16px;background:linear-gradient(145deg,rgba(255,255,255,.88),rgba(244,239,232,.7));box-shadow:inset 0 1px 0 rgba(255,255,255,.94),0 9px 24px rgba(55,43,34,.08); }
.expense-confirm-original { position:sticky;top:0;overflow:hidden; }
.expense-confirm-original > header { display:flex;padding:12px 14px;align-items:center;justify-content:space-between;border-bottom:1px solid rgba(117,105,91,.12); }
.expense-confirm-original > header strong { font-family:Georgia,serif;font-weight:500; }
.expense-confirm-original > header small { color:var(--muted);font-size:.65rem; }
.expense-confirm-pages { display:grid;max-height:62vh;padding:12px;overflow:auto;gap:12px;background:rgba(70,64,57,.08); }
.expense-confirm-pages a { display:grid;gap:6px;color:var(--muted);font-size:.63rem;text-align:center;text-decoration:none;cursor:zoom-in;transition:transform .18s ease,color .18s ease; }
.expense-confirm-pages a:hover,.expense-confirm-pages a:focus-visible { color:#874f39;transform:translateY(-2px); }
.expense-confirm-pages img { display:block;width:100%;height:auto;border-radius:5px;background:#fff;box-shadow:0 8px 22px rgba(45,38,31,.14); }
.expense-confirm-fields { display:grid;padding:15px;gap:12px; }
.expense-confirm-state { display:flex;align-items:center;gap:9px; }
.expense-confirm-state > span { color:var(--muted);font-size:.67rem; }
.expense-confirm-warnings { display:grid;margin:0;padding:10px 12px 10px 28px;gap:4px;border-radius:10px;color:#6e4715;background:rgba(244,190,85,.18);font-size:.68rem;line-height:1.45; }
.expense-confirm-form { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px 10px; }
.expense-confirm-form > label,.expense-confirm-amounts label { display:grid;min-width:0;gap:4px;color:#514941;font-size:.64rem;font-weight:700; }
.expense-confirm-form input,.expense-confirm-form select,.expense-confirm-form textarea { width:100%;margin:0; }
.expense-confirm-form input,.expense-confirm-form select { height:39px;padding:7px 9px;font-size:.71rem; }
.expense-confirm-form textarea { min-height:58px;padding:8px 9px;font-size:.7rem;resize:vertical; }
.expense-confirm-provider,.expense-confirm-wide,.expense-confirm-amounts { grid-column:1/-1; }
.expense-confirm-amounts { display:grid;margin:0;padding:10px;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;border:1px solid rgba(117,105,91,.13);border-radius:12px; }
.expense-confirm-amounts legend { padding:0 5px;color:var(--muted);font-size:.63rem;font-weight:700; }
.expense-confirm-form .is-invalid { border-color:#ad4936!important;background:rgba(255,239,235,.9)!important;box-shadow:0 0 0 2px rgba(173,73,54,.09)!important; }
.expense-confirm-details { border:1px solid rgba(117,105,91,.12);border-radius:11px;background:rgba(255,255,255,.5); }
.expense-confirm-details summary { padding:10px 12px;color:#514941;cursor:pointer;font-size:.68rem;font-weight:700; }
.expense-confirm-details > div { display:grid;padding:0 12px 10px;gap:6px; }
.expense-confirm-details > div > div { display:flex;justify-content:space-between;gap:10px;padding:7px 8px;border-radius:8px;background:rgba(242,237,230,.72);font-size:.65rem; }
.expense-confirm-details > div > div span { color:var(--muted);text-align:right; }
.expense-confirm-details > .text-action { display:inline-block;margin:0 12px 10px; }
.expense-confirm-message { margin:0;padding:9px 11px;border-radius:10px;font-size:.7rem; }
.expense-confirm-message.is-success { color:#20551a;background:rgba(80,157,68,.14); }
.expense-confirm-message.is-discarded { color:#704133;background:rgba(169,93,70,.12); }
.expense-confirm-message.is-error,.expense-confirm-errors { color:#8e2f21;background:rgba(187,70,49,.12); }
.expense-confirm-errors { margin-top:12px;padding:10px 12px;border-radius:10px;font-size:.7rem; }
.expense-confirm-errors.is-success { color:#20551a;background:rgba(80,157,68,.14); }
.expense-confirm-actions { position:sticky;z-index:7;bottom:-15px;display:flex;margin:0 -15px -15px;padding:12px 15px calc(15px + env(safe-area-inset-bottom,0px));border-top:1px solid rgba(117,105,91,.12);justify-content:flex-end;gap:8px;background:rgba(255,255,255,.92);box-shadow:0 -10px 26px rgba(49,39,28,.08);-webkit-backdrop-filter:blur(16px) saturate(130%);backdrop-filter:blur(16px) saturate(130%); }
.expense-confirm-modal.is-busy { cursor:wait; }

@media (max-width:900px) {
    .order-modal.expense-confirm-modal { width:calc(100vw - 12px);max-height:calc(100dvh - 12px); }
    .expense-confirm-modal .order-modal-card { max-height:calc(100dvh - 12px);padding:max(18px,env(safe-area-inset-top,0px)) 15px max(15px,env(safe-area-inset-bottom,0px)); }
    .expense-confirm-workspace { grid-template-columns:1fr; }
    .expense-confirm-original { position:static; }
    .expense-confirm-pages { max-height:42vh; }
}
@media (max-width:560px) {
    .expense-confirm-heading { padding-right:26px; }
    .expense-confirm-form { grid-template-columns:1fr; }
    .expense-confirm-provider,.expense-confirm-wide,.expense-confirm-amounts { grid-column:auto; }
    .expense-confirm-amounts { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .expense-confirm-actions { display:grid;grid-template-columns:1fr 1fr; }
    .expense-confirm-actions [data-review-back] { grid-column:1/-1;grid-row:2; }
}

.discarded-ocr-card { display:grid;gap:14px; }
.discarded-ocr-empty { margin:0; }
.discarded-ocr-list { display:grid;gap:9px; }
.discarded-ocr-list article { display:flex;padding:12px 14px;align-items:center;justify-content:space-between;gap:14px;border:1px solid rgba(255,255,255,.82);border-radius:13px;background:linear-gradient(145deg,rgba(255,255,255,.78),rgba(244,239,232,.58));box-shadow:inset 0 1px 0 rgba(255,255,255,.9); }
.discarded-ocr-list article > div:first-child { display:grid;min-width:0;gap:3px; }
.discarded-ocr-list strong { overflow-wrap:anywhere;font-family:Georgia,serif;font-size:.8rem;font-weight:500; }
.discarded-ocr-list span,.discarded-ocr-list small { color:var(--muted);font-size:.65rem; }
.discarded-ocr-actions { display:flex;flex:0 0 auto;align-items:center;gap:7px; }
.discarded-ocr-actions form { margin:0; }
@media (max-width:700px) {
    .discarded-ocr-list article { align-items:stretch;flex-direction:column; }
    .discarded-ocr-actions { display:grid;grid-template-columns:1fr 1fr; }
    .discarded-ocr-actions .button { width:100%;justify-content:center; }
}
.admin-image-optimization{margin-bottom:1.25rem}.admin-image-notification{display:flex;align-items:center;gap:.8rem;flex-wrap:wrap;margin-top:1rem;padding:1rem;border:1px solid rgba(255,255,255,.42);border-radius:18px;background:rgba(255,255,255,.36)}.admin-image-notification small{flex:1 1 260px;color:var(--muted)}.admin-image-errors{display:grid;gap:.65rem;padding-top:.75rem}.admin-image-errors article{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.8rem 1rem;border:1px solid rgba(148,95,71,.18);border-radius:14px;background:rgba(255,255,255,.42)}.admin-image-errors article div{display:grid;gap:.2rem}.admin-image-errors article span,.admin-image-errors article small{color:var(--muted)}@media(max-width:700px){.admin-image-errors article{align-items:stretch;flex-direction:column}.admin-image-errors article form,.admin-image-errors article button{width:100%}}
.admin-daily-summary-list{display:grid;gap:.8rem}.admin-daily-summary{display:flex;align-items:center;justify-content:space-between;gap:1.2rem;padding:1rem 1.1rem;border:1px solid rgba(255,255,255,.46);border-radius:18px;background:rgba(255,255,255,.38);box-shadow:inset 0 1px 0 rgba(255,255,255,.7)}.admin-daily-summary h3,.admin-daily-summary p{margin:0}.admin-daily-summary p,.admin-daily-summary small{color:var(--muted)}.admin-daily-summary form{display:flex;align-items:end;gap:.65rem;flex-wrap:wrap}.admin-daily-summary form>label:not(.admin-switch){display:grid;gap:.25rem;font-size:.72rem;font-weight:750}.admin-daily-summary input[type=email]{min-width:240px}@media(max-width:800px){.admin-daily-summary{align-items:stretch;flex-direction:column}.admin-daily-summary form{align-items:stretch;display:grid;grid-template-columns:1fr auto}.admin-daily-summary form>.admin-switch,.admin-daily-summary form>button{grid-column:1/-1}.admin-daily-summary input[type=email]{min-width:0;width:100%}}
.admin-company-body>.admin-daily-summary{order:5;margin-top:1rem}.admin-summary-statistics{display:grid;order:3;margin-top:8px;padding:10px 12px;border:1px solid #e3ddd4;border-radius:12px;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;background:#f8f6f2}.admin-summary-statistics>div{display:grid;min-width:0;padding:10px 12px;border:1px solid #e5dfd6;border-radius:10px;gap:3px;background:#fff}.admin-summary-statistics span{color:var(--muted);font-size:.65rem;font-weight:750}.admin-summary-statistics strong{color:#354e3b;font-family:Georgia,serif;font-size:1rem;font-weight:500}.admin-summary-statistics small{color:var(--muted);font-size:.62rem;font-weight:750}.admin-summary-statistics [data-phase="aceptado"]{color:#20551a}.admin-summary-statistics [data-phase="error"]{color:var(--danger)}.admin-summary-statistics [data-phase="en_cola"],.admin-summary-statistics [data-phase="generando"],.admin-summary-statistics [data-phase="enviando"]{color:#a85235}.admin-daily-summary-actions{display:flex;align-items:center;gap:.55rem}.admin-daily-summary-actions .button{white-space:nowrap}@media(max-width:800px){.admin-summary-statistics{grid-template-columns:1fr}.admin-daily-summary-actions{grid-column:1/-1}.admin-daily-summary-actions .button{flex:1}}
[data-daily-summary-status]{display:block;margin-top:.3rem;font-weight:700}[data-daily-summary-status][data-phase="en_cola"],[data-daily-summary-status][data-phase="generando"],[data-daily-summary-status][data-phase="enviando"]{color:#a85235}[data-daily-summary-status][data-phase="aceptado"]{color:#20551a}[data-daily-summary-status][data-phase="error"]{color:var(--danger)}
.admin-summary-counts{display:grid;margin-top:4px;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}.admin-summary-counts>span{display:flex;padding:5px 7px;border:1px solid rgba(117,105,91,.12);border-radius:8px;align-items:center;gap:5px;background:#faf9f7;font-size:.6rem}.admin-summary-counts b{font-size:.76rem}.admin-summary-counts .is-sent b{color:#20551a}.admin-summary-counts .is-failed b{color:var(--danger)}.admin-summary-counts .is-processing b{color:#a85235}.admin-summary-counts .is-pending b{color:#6a6258}
.admin-smtp-form{display:grid;gap:1rem}.admin-smtp-grid{display:grid;grid-template-columns:minmax(220px,1.4fr) minmax(100px,.45fr) minmax(150px,.65fr) minmax(220px,1fr);gap:.8rem}.admin-smtp-grid label{display:grid;gap:.3rem;font-size:.76rem;font-weight:750}.admin-smtp-grid label:nth-last-child(2),.admin-smtp-grid label:last-child{grid-column:span 2}.admin-smtp-footer{display:flex;align-items:center;justify-content:space-between;gap:1rem}.admin-smtp-footer small{color:var(--muted)}.admin-smtp-footer>div{display:flex;gap:.6rem;flex:none}@media(max-width:900px){.admin-smtp-grid{grid-template-columns:1fr 1fr}.admin-smtp-grid label:nth-last-child(2),.admin-smtp-grid label:last-child{grid-column:auto}.admin-smtp-footer{align-items:stretch;flex-direction:column}.admin-smtp-footer>div{display:grid;grid-template-columns:1fr 1fr}}@media(max-width:560px){.admin-smtp-grid{grid-template-columns:1fr}.admin-smtp-footer>div{grid-template-columns:1fr}}

/* Servicios globales de Administración: fichas independientes con el lenguaje visual de Pastelco. */
.admin-service-card{position:relative;overflow:hidden;margin-top:22px;border:2px solid #d9d2c8;border-radius:16px;background:#fff;box-shadow:0 8px 26px rgba(49,39,28,.06)}
.admin-service-card>summary{display:flex;min-height:72px;padding:14px 18px;border-bottom:1px solid transparent;align-items:center;justify-content:space-between;gap:15px;cursor:pointer;list-style:none;background:#f4f1ec}.admin-service-card[open]>summary{border-bottom-color:#ded7ce}.admin-service-card>summary::-webkit-details-marker{display:none}.admin-service-card>summary:focus-visible{outline:3px solid rgba(82,122,92,.16);outline-offset:-3px}
.admin-service-identity{display:grid;min-width:0;gap:2px}.admin-service-identity h2{margin:0;font-family:Georgia,serif;font-size:1.08rem;font-weight:500}.admin-service-identity>span{overflow:hidden;color:var(--muted);font-size:.68rem;text-overflow:ellipsis;white-space:nowrap}.admin-service-summary-meta{display:flex;min-width:max-content;margin-left:auto;align-items:center;justify-content:flex-end;gap:12px}.admin-service-chevron{display:grid;width:28px;height:28px;flex:0 0 auto;place-items:center;color:var(--muted);font-size:1.05rem;line-height:1;transition:transform .42s ease}.admin-service-card[open] .admin-service-chevron{transform:rotate(180deg)}
.admin-smtp-form{padding:16px}.admin-smtp-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.admin-smtp-grid label:nth-child(1){grid-column:span 2}.admin-smtp-grid label:nth-child(4),.admin-smtp-grid label:nth-child(5),.admin-smtp-grid label:nth-child(6),.admin-smtp-grid label:nth-child(7){grid-column:span 2}.admin-smtp-grid label:nth-child(8){grid-column:span 4}.admin-smtp-grid label{min-width:0;padding:10px 11px;border:1px solid rgba(117,105,91,.14);border-radius:13px;align-content:start;gap:7px;color:var(--muted);background:#fff;box-shadow:inset 0 1px 0 #fff;font-size:.66rem;font-weight:850;transition:border-color .2s ease,box-shadow .2s ease,background .2s ease}.admin-smtp-grid label:focus-within{border-color:rgba(32,85,26,.4);background:#fff;box-shadow:0 0 0 3px rgba(32,85,26,.08),inset 0 1px 0 #fff}.admin-smtp-grid label>span{letter-spacing:.02em}
.admin-smtp-grid input,.admin-smtp-grid select{box-sizing:border-box;width:100%;min-width:0;height:43px;margin:0;padding:8px 11px;border:1px solid rgba(117,105,91,.22);border-radius:10px;outline:0;color:var(--ink);background:#fff;font:700 .78rem/1.2 inherit;transition:border-color .2s ease,box-shadow .2s ease}.admin-smtp-grid input::placeholder{color:#a49c91;font-weight:550}.admin-smtp-grid input:focus,.admin-smtp-grid select:focus{border-color:#527a5c;box-shadow:0 0 0 3px rgba(82,122,92,.1)}.admin-smtp-grid label>small{color:var(--muted);font-size:.59rem;font-weight:600;line-height:1.4}
.admin-smtp-footer{padding-top:14px;border-top:1px solid rgba(117,105,91,.12)}.admin-smtp-footer>small{max-width:720px;font-size:.64rem;line-height:1.45}.admin-smtp-footer .button{min-height:40px;border-radius:11px}
.admin-image-optimization>.admin-storage{margin:0;padding:16px 16px 12px;border:0;border-radius:0;background:transparent}.admin-image-optimization .admin-storage-card{border-color:#e5dfd6;border-radius:10px;background:#fff;box-shadow:none}.admin-image-optimization .admin-storage-card>strong{color:#354e3b}.admin-image-optimization .admin-image-notification{margin:0 16px 16px;padding:12px;border-color:#e3ddd4;border-radius:12px;background:#f8f6f2;box-shadow:none}.admin-image-optimization .admin-image-notification .button{min-height:38px;border-radius:10px}.admin-image-optimization>.admin-permissions{margin:0 16px 16px;overflow:hidden;border:1px solid #e3ddd4;border-radius:12px;background:#fff}.admin-image-optimization>.admin-permissions>summary{border:0;background:#faf9f7}.admin-image-optimization .admin-image-errors{padding:10px}.admin-image-optimization .admin-image-errors article{background:#fff}
@media(max-width:900px){.admin-smtp-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-smtp-grid label:nth-child(n){grid-column:auto}.admin-smtp-grid label:nth-child(1),.admin-smtp-grid label:nth-child(8){grid-column:span 2}}
@media(max-width:700px){.admin-service-card>summary{min-height:68px;padding:12px 14px;gap:10px}.admin-service-identity h2{font-size:1rem}.admin-service-summary-meta{gap:5px}.admin-service-summary-meta .status-pill{padding:4px 7px;font-size:.56rem!important}.admin-service-chevron{width:24px;height:24px}.admin-smtp-form{padding:14px 15px 16px}.admin-smtp-grid label{padding:9px}.admin-image-optimization>.admin-storage{padding:14px 15px 10px}.admin-image-optimization .admin-image-notification,.admin-image-optimization>.admin-permissions{margin-right:15px;margin-left:15px}.admin-image-optimization .admin-image-notification{align-items:stretch;flex-direction:column}.admin-image-optimization .admin-image-notification .button{width:100%}}
@media(max-width:560px){.admin-smtp-grid{grid-template-columns:1fr}.admin-smtp-grid label:nth-child(n){grid-column:auto}}

@media(max-width:1180px){
    .recipes-overview-grid{grid-template-columns:1fr}
}
@media(max-width:700px){
    .recipes-overview-page{width:min(100% - 24px,1480px)}
    .recipes-overview-panel{border-radius:15px}
    .recipes-overview-panel>header{min-height:82px;padding:14px}
    .recipe-base-table .table-head,.recipe-output-table .table-head{display:none}
    .recipe-base-table .table-row:not(.table-head),.recipe-output-table .table-row:not(.table-head){position:relative;display:grid;min-height:0;padding:13px 38px 13px 14px;grid-template-columns:minmax(0,1fr) auto;gap:7px 10px}
    .recipe-base-table .table-row>span:first-child,.recipe-output-table .table-row>span:first-child{grid-column:1/-1}
    .recipe-base-table .table-row>span:nth-child(2),.recipe-base-table .table-row>span:nth-child(3),.recipe-output-table .table-row>span:nth-child(2),.recipe-output-table .table-row>span:nth-child(3){color:var(--muted);font-size:.7rem}
    .recipe-base-table .row-actions,.recipe-output-table .row-actions{padding-top:7px;grid-column:1/-1}
    .recipe-library>header{min-height:0;align-items:flex-start;flex-direction:column;padding:11px 12px;gap:9px}
    .recipe-library-filters{justify-content:flex-start}
    .recipe-library-grid{padding:11px;grid-template-columns:1fr}
    .recipe-library-card{min-height:0}
    .recipe-hierarchy-list{padding:9px}
    .recipe-hierarchy-item>summary{min-height:94px;padding:11px;grid-template-areas:"kind actions chevron" "name name name";grid-template-columns:auto minmax(0,1fr) 26px;gap:8px}
    .recipe-hierarchy-item>summary>.recipe-kind{grid-area:kind}
    .recipe-hierarchy-name{grid-area:name}
    .recipe-hierarchy-name strong{overflow:visible;line-height:1.25;text-overflow:clip;white-space:normal}
    .recipe-hierarchy-chevron{grid-area:chevron}
    .recipe-summary-actions{grid-area:actions}
    .recipe-hierarchy-counts{display:none}
    .recipe-hierarchy-body{padding:10px;grid-template-columns:1fr}
    .recipe-hierarchy-rows article{align-items:flex-start;flex-direction:column}
    .recipe-component-sortable article{align-items:center;grid-template-columns:auto minmax(0,1fr) auto}
    .recipe-hierarchy-rows .row-actions{width:100%;justify-content:flex-end}
    .recipe-component-sortable .recipe-component-actions{width:auto}
    .recipe-component-order-controls button{width:34px;height:34px}
    .recipe-component-order-status{width:100%;text-align:left}
    .recipe-action-icon{width:38px;height:38px}
    .recipe-editor-modal{width:calc(100vw - 10px);height:calc(100dvh - 10px);border-radius:15px}
    .recipe-editor-modal-card>header{min-height:66px;padding:11px 13px}
    .recipe-modal-page .recipe-form-shell{width:calc(100% - 12px);padding:6px 0 12px}
    .recipe-combination-guide{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}
    .recipe-combination-guide li{min-height:48px;padding:7px 6px;gap:5px;font-size:.59rem}
    .recipe-combination-guide li>span{width:22px;height:22px;font-size:.6rem}
    .recipe-combination-guide li strong{min-width:0;overflow-wrap:anywhere}
    .recipe-guide-section{padding:13px}
    .grouped-recipes-editor .recipe-lines-heading,.grouped-recipes-editor .recipe-guide-heading{align-items:flex-start;text-align:left}
    .recipe-guide-section-heading{align-items:stretch;flex-direction:column;gap:10px}
    .recipe-guide-section-heading .button{width:100%}
    .grouped-variant-materials>header{align-items:stretch;flex-direction:column}
    .grouped-variant-materials>header .button{width:100%}
    .variant-material-line{padding:48px 11px 11px;grid-template-columns:1fr 1fr}
    .variant-material-line>.recipe-ingredient-autocomplete,.variant-material-visibility,.variant-material-line>.recipe-line-cost{grid-column:1/-1}
    .recipe-create-choices,.order-recipe-use-options{grid-template-columns:1fr}
    .recipe-create-choices>a,.recipe-create-choices>button{min-height:0;padding:13px}
    .recipe-create-choice-visual{min-height:104px}
    .recipe-create-choice-icon{width:min(124px,72%);height:92px}
    .order-modal.recipe-create-modal{width:calc(100vw - 12px);max-height:calc(100dvh - 12px)}
    .order-modal.recipe-create-modal .order-modal-card{max-height:calc(100dvh - 12px)}
}
@media(max-width:820px){
    .grouped-recipe-line>.icon-button{position:absolute;top:10px;right:10px}
}

/* Autocompletados táctiles: fichas completas, legibles y siempre dentro de la pantalla. */
@media (max-width:900px), (max-width:1100px) and (pointer:coarse) {
    .search-suggestions { overscroll-behavior:contain; scrollbar-gutter:stable; }
    .search-suggestions.is-viewport-positioned { z-index:140; margin:0; border-radius:14px; box-shadow:0 18px 48px rgba(35,29,23,.24); }
    .search-suggestions.opens-above { box-shadow:0 -18px 48px rgba(35,29,23,.2); }
    .suggestion-group-heading { position:sticky;z-index:1;top:0;padding:9px 13px 7px; }
    .suggestion-item,.search-suggestion { box-sizing:border-box;min-height:58px;padding:11px 13px; }
    .suggestion-item { display:grid;grid-template-columns:minmax(0,1fr);align-content:center;gap:4px; }
    .supplier-suggestions .suggestion-item { display:grid; }
    .suggestion-item strong,.suggestion-item .suggestion-format,.suggestion-item .suggestion-provider,
    .search-suggestion strong,.search-suggestion small,
    .expense-filter-bar .search-suggestion strong,.expense-filter-bar .search-suggestion small { min-width:0;overflow:visible;text-overflow:clip;white-space:normal;overflow-wrap:anywhere; }
    .suggestion-item strong,.search-suggestion strong { font-size:.82rem;line-height:1.3; }
    .suggestion-format { color:var(--accent-dark);font-size:.72rem;line-height:1.35; }
    .suggestion-provider { grid-column:1;color:var(--muted);font-size:.68rem;line-height:1.35; }
    .search-suggestion>span { gap:4px; }
    .search-suggestion small { font-size:.68rem;line-height:1.4; }
    .suggestion-item.is-active,.suggestion-item:focus-visible,.search-suggestion:focus-visible { outline:0;box-shadow:inset 4px 0 #527a5c;background:#f2f6f2; }
    .suggestion-empty { padding:16px 13px;font-size:.76rem;line-height:1.4; }
    .order-modal-results { max-height:min(46dvh,420px);padding-right:2px;overflow-y:auto;overscroll-behavior:contain; }
    .order-recipe-option { min-height:58px;padding:11px 13px; }
    .order-recipe-option strong,.order-recipe-option small { overflow:visible;text-overflow:clip;white-space:normal;overflow-wrap:anywhere; }
}

/* Sistema visual unificado: navegación, jerarquía, controles y adaptación. */
:root {
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 24px;
    --space-6: 32px;
    --radius-control: 10px;
    --radius-card: 14px;
    --radius-panel: 18px;
    --radius-modal: 22px;
    --control-height: 42px;
    --control-height-compact: 36px;
    --page-gutter: clamp(14px,3vw,40px);
}

.app-page,
.planning-page,
.production-picker-page,
.production-board-page {
    background-color: #f8f5f0;
    background-image:
        radial-gradient(circle at 8% 4%,rgba(202,104,68,.055),transparent 26rem),
        radial-gradient(circle at 96% 18%,rgba(32,85,26,.045),transparent 30rem);
}

.app-header {
    box-sizing: border-box;
    padding-top: max(12px,env(safe-area-inset-top,0px));
    padding-right: max(clamp(16px,4vw,56px),env(safe-area-inset-right,0px));
    padding-bottom: 12px;
    padding-left: max(clamp(16px,4vw,56px),env(safe-area-inset-left,0px));
    border-color: rgba(126,114,100,.16);
    background: rgba(255,255,255,.84);
    box-shadow: 0 7px 24px rgba(49,39,28,.035);
    -webkit-backdrop-filter: blur(18px) saturate(130%);
    backdrop-filter: blur(18px) saturate(130%);
}

.content-shell,
.form-shell,
.leftovers-main,
.production-sheets-shell {
    box-sizing: border-box;
    padding-right: max(var(--page-gutter),env(safe-area-inset-right,0px));
    padding-bottom: max(72px,calc(54px + env(safe-area-inset-bottom,0px)));
    padding-left: max(var(--page-gutter),env(safe-area-inset-left,0px));
}

/* Las vistas de calendario y las mesas son superficies de trabajo inmersivas. */
.planning-monthly-page .planning-main,
.production-picker-main,
.production-board-main,
.production-layout {
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    min-height: 0;
    margin: 0;
    padding: 0;
}

.planning-monthly-page .planning-main,
.production-picker-main {
    grid-template-rows: auto minmax(0,1fr);
}

.planning-monthly-page .planning-calendar,
.production-month-grid {
    box-sizing: border-box;
    height: 100%;
    min-height: 0;
    margin: 0;
    padding: 8px 8px 78px;
}

.planning-toolbar,
.production-picker-toolbar {
    box-sizing: border-box;
    min-height: 68px;
    padding-right: max(14px,env(safe-area-inset-right,0px));
    padding-left: max(14px,env(safe-area-inset-left,0px));
}

.production-page {
    display: grid;
    grid-template-rows: auto minmax(0,1fr);
}

.production-layout {
    height: auto;
}

.production-board-toolbar {
    padding-right: max(14px,env(safe-area-inset-right,0px));
    padding-left: max(14px,env(safe-area-inset-left,0px));
}

.production-sheets-shell {
    width: min(100%,1480px);
}

.content-shell,
.form-shell {
    width: min(100%,1260px);
}

.app-navigation.app-navigation-inline {
    display: inline-flex;
    width: auto;
    min-width: 0;
    min-height: var(--control-height-compact);
    margin: 0;
    padding: 3px;
    border: 1px solid rgba(126,114,100,.16);
    border-radius: 12px;
    align-items: center;
    flex-wrap: nowrap;
    gap: 3px;
    background: rgba(255,255,255,.6);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.92),0 5px 14px rgba(49,39,28,.055);
    -webkit-backdrop-filter: blur(12px) saturate(125%);
    backdrop-filter: blur(12px) saturate(125%);
}

.has-inline-page-navigation {
    display: grid;
    min-width: 0;
    grid-template-columns: auto minmax(0,1fr);
    align-items: center;
    column-gap: var(--space-2);
}

.has-inline-page-navigation > .app-navigation-inline {
    grid-column: 1;
    grid-row: 1;
    margin: 0;
    vertical-align: initial;
}

.has-inline-page-navigation > .eyebrow {
    grid-column: 2;
    grid-row: 1;
    min-height: var(--control-height-compact);
    margin: 0;
    align-items: center;
}

.has-inline-page-navigation > :not(.app-navigation-inline):not(.eyebrow) {
    grid-column: 1 / -1;
}

.app-navigation.app-navigation-inline .button,
.app-navigation.app-navigation-inline .app-home-button,
.app-navigation.app-navigation-inline .app-back-button {
    width: 30px;
    min-width: 30px;
    height: 30px;
    min-height: 30px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

.app-navigation.app-navigation-inline .button + .button { border-left: 1px solid rgba(126,114,100,.13); border-radius: 0 8px 8px 0; }
.app-navigation.app-navigation-inline .app-home-symbol { width: 16px; height: 16px; flex-basis: 16px; }
.app-navigation.app-navigation-inline .app-back-symbol { font-size: 1.16rem; }

.page-heading,
.leftovers-heading,
.production-work-heading,
.production-catalog-heading,
.planning-toolbar-heading,
.production-picker-toolbar-heading {
    min-width: 0;
}

.page-heading {
    margin-bottom: var(--space-4);
    align-items: center;
}

.page-heading h1,
.leftovers-heading h1,
.production-work-heading h1,
.production-catalog-heading h1,
.planning-toolbar-heading h1,
.production-picker-toolbar-heading h1 {
    margin: 5px 0 6px;
    font-size: clamp(2rem,4.4vw,3.2rem);
    line-height: 1.02;
}

.page-heading p:not(.eyebrow),
.leftovers-heading p:not(.eyebrow),
.production-work-heading p:not(.eyebrow) {
    max-width: 760px;
    line-height: 1.5;
}

.heading-actions {
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.app-page .button,
.planning-page .button,
.production-picker-page .button,
.production-board-page .button {
    min-height: var(--control-height);
    padding-inline: var(--space-4);
    border-radius: var(--radius-control);
    font-size: .75rem;
    line-height: 1.15;
}

.button.button-compact,
.app-page .button-quiet {
    min-height: var(--control-height-compact);
    padding-inline: var(--space-3);
}

.table-card,
.editor-card,
.workforce-card,
.remote-ocr-card,
.expense-recovery-card,
.admin-company,
.shipment-card,
.report-panel {
    border-radius: var(--radius-panel);
}

.table-row:not(.table-head) { min-height: 48px; }
.table-head { color: #69665f; background: rgba(244,241,236,.72); font-size: .64rem; letter-spacing: .035em; text-transform: uppercase; }

input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]),
select,
textarea {
    border-radius: var(--radius-control);
}

input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 0;
    border-color: rgba(32,85,26,.52);
    box-shadow: 0 0 0 4px rgba(32,85,26,.09);
}

.alert {
    border: 1px solid rgba(126,114,100,.12);
    border-radius: var(--radius-card);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.72);
    line-height: 1.45;
}

.empty-state {
    border-radius: var(--radius-panel);
    background: rgba(255,255,255,.7);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.94),0 12px 32px rgba(49,39,28,.06);
    -webkit-backdrop-filter: blur(14px) saturate(120%);
    backdrop-filter: blur(14px) saturate(120%);
}

@media (hover:hover) {
    .app-navigation.app-navigation-inline .button:hover {
        color: #20551a;
        background: rgba(232,240,230,.82);
        box-shadow: none;
        transform: none;
    }
}

@media (max-width:760px) {
    :root { --page-gutter: 12px; }

    .app-header { min-height: 64px; }
    .brand > span:last-child { display: none; }
    .account { gap: 9px; }
    .account-company { font-size: .72rem; }
    .company-switcher select { min-width: 0; max-width: min(48vw,210px); font-size: .72rem; }

    .content-shell,
    .form-shell { padding-top: 22px; }

    .page-heading,
    .leftovers-heading {
        align-items: stretch;
        flex-direction: column;
        gap: var(--space-3);
    }

    .page-heading h1,
    .leftovers-heading h1,
    .production-work-heading h1,
    .production-catalog-heading h1,
    .planning-toolbar-heading h1,
    .production-picker-toolbar-heading h1 {
        font-size: clamp(1.8rem,9vw,2.55rem);
    }

    .heading-actions { width: 100%; justify-content: stretch; }
    .heading-actions > .button,
    .heading-actions > form { flex: 1 1 auto; }
    .heading-actions > form > .button { width: 100%; }

    .table-card { border-radius: var(--radius-card); }
    .order-modal .order-modal-card { --modal-padding: 18px; }

    .planning-toolbar,
    .production-picker-toolbar,
    .production-board-toolbar {
        padding-right: max(8px,env(safe-area-inset-right,0px));
        padding-left: max(8px,env(safe-area-inset-left,0px));
    }
}

@media (max-width:480px) {
    .account-profile span { max-width: 28vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .account-profile small,.account-superuser { display: none; }
    .has-inline-page-navigation { column-gap: 7px; }
    .has-inline-page-navigation > .eyebrow { letter-spacing: .1em; }
    .heading-actions { display: grid; grid-template-columns: 1fr; }
    .heading-actions > * { width: 100%; }
}

/* El editor mantiene ingrediente, cantidad, unidad, coste y acciones en una fila útil. */
@media (min-width:521px) {
    .recipe-line {
        padding: 11px 10px;
        grid-template-columns: 28px minmax(130px,1.6fr) minmax(62px,.55fr) minmax(72px,.6fr) minmax(52px,.45fr) 28px;
        align-items: start;
        gap: 7px;
    }

    .recipe-line > .recipe-drag-handle,
    .recipe-line > .icon-button {
        position: static;
        width: 28px;
        height: 28px;
        margin: 31px 0 0;
        align-self: start;
    }

    .recipe-line > .recipe-ingredient-autocomplete {
        grid-column: auto;
    }

    .recipe-line > .recipe-line-cost {
        min-width: 0;
        margin-top: 25px;
        padding: 0;
    }

    .recipe-line > .recipe-line-weight-warning {
        grid-column: 2 / -2;
    }
}

@media (prefers-reduced-motion:reduce) {
    .button,
    .table-row,
    .module-card,
    .order-modal[open] .order-modal-card { transition-duration: .01ms!important; animation-duration: .01ms!important; }
}
