:root {
  --ink: #182621;
  --muted: #738079;
  --line: #e8ece9;
  --paper: #f6f8f6;
  --green: #1d5c43;
  --green-light: #e7f2eb;
  --lime: #c8ef9b;
  --shadow: 0 22px 60px rgba(23, 45, 35, .10);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 14px system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
button, input, select { font: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: 30px; letter-spacing: -1.1px; margin-bottom: 8px; }
h2 { font-size: 18px; letter-spacing: -.3px; margin: 0 0 5px; }
h3 { font-size: 14px; margin: 0 0 12px; }
.muted { color: var(--muted); line-height: 1.55; }
.eyebrow { color: #829188; font-size: 10px; font-weight: 700; letter-spacing: 1.5px; margin: 0 0 7px; }
.brand-mark { align-items: center; background: var(--green); border-radius: 15px; box-shadow: 0 8px 18px #1d5c4326; color: white; display: grid; font-size: 20px; font-weight: 800; height: 44px; place-items: center; width: 44px; }
.brand-mark.small { border-radius: 12px; font-size: 16px; height: 34px; width: 34px; }
.button { align-items: center; border: 1px solid transparent; border-radius: 11px; display: inline-flex; font-weight: 700; gap: 8px; height: 40px; justify-content: center; padding: 0 15px; transition: .15s ease; }
.button:hover { transform: translateY(-1px); }
.button.primary { background: var(--green); box-shadow: 0 7px 16px #1d5c4322; color: white; }
.button.primary:hover { background: #164b36; }
.button.subtle { background: white; border-color: var(--line); color: #43534a; }
.button.subtle:hover { background: #fbfcfb; border-color: #cdd8d0; }
.button.full { margin-top: 4px; width: 100%; }
.icon-button { align-items: center; background: transparent; border: 0; border-radius: 10px; color: #58665e; display: grid; font-size: 22px; height: 36px; place-items: center; width: 36px; }
.icon-button:hover { background: #edf2ee; }
.login-screen { align-items: center; background: radial-gradient(circle at 20% 20%, #e9f2eb, transparent 42%), radial-gradient(circle at 90% 80%, #e9eee6, transparent 34%), #f7f9f7; display: grid; min-height: 100vh; padding: 24px; place-items: center; }
.login-card { background: white; border: 1px solid #edf0ed; border-radius: 24px; box-shadow: var(--shadow); padding: 38px; width: min(100%, 420px); }
.login-card .brand-mark { margin-bottom: 26px; }
.login-card h1 { font-size: 27px; }
.login-card > .muted { margin-bottom: 24px; }
.stack { display: grid; gap: 16px; }
label { color: #44534a; display: grid; font-size: 12px; font-weight: 600; gap: 7px; }
input, select { background: white; border: 1px solid #dce4de; border-radius: 10px; color: var(--ink); height: 43px; outline: none; padding: 0 12px; width: 100%; }
input:focus, select:focus { border-color: #5c987b; box-shadow: 0 0 0 3px #dcefe3; }
label small { color: var(--muted); font-size: 11px; font-weight: 400; }
.fine-print { color: #8a968e; font-size: 11px; margin: 21px 0 0; text-align: center; }
.notice { border-radius: 10px; font-size: 12px; line-height: 1.4; margin: 12px 0 0; padding: 11px 13px; }
.notice.error { background: #fff0ed; border: 1px solid #f4d3cd; color: #9e453a; }
.notice.success { background: #eef8ef; border: 1px solid #d7ebdb; color: #286642; }
.app-shell { display: flex; min-height: 100vh; }
.sidebar { background: #10251e; color: white; display: flex; flex: 0 0 254px; flex-direction: column; height: 100vh; min-height: 100vh; padding: 25px 17px 17px; position: sticky; top: 0; }
.brand { align-items: center; display: flex; gap: 11px; padding: 0 11px 35px; }
.brand > div:last-child { display: grid; gap: 3px; }
.brand strong { font-size: 17px; letter-spacing: -.4px; }
.brand span { color: #94b1a0; font-size: 9px; letter-spacing: 1.7px; }
.side-label { color: #7d988a; font-size: 9px; font-weight: 700; letter-spacing: 1.5px; padding: 0 12px 12px; }
.module-nav { display: grid; gap: 6px; }
.nav-item { align-items: center; background: transparent; border: 0; border-radius: 13px; color: #c0cec5; display: flex; gap: 11px; padding: 11px 10px; text-align: left; transition: .16s; width: 100%; }
.nav-item > span:last-child { display: grid; gap: 4px; }
.nav-item b { color: inherit; font-size: 12px; font-weight: 600; }
.nav-item small { color: #89a095; font-size: 10px; }
.nav-item:hover { background: #18372c; color: white; }
.nav-item.active { background: #214d3a; box-shadow: inset 3px 0 var(--lime); color: white; }
.nav-item.active small { color: #a9c0b3; }
.nav-letter { align-items: center; border: 1px solid #436253; border-radius: 10px; color: #d3e6d8; display: grid; font-size: 12px; font-weight: 700; height: 31px; place-items: center; width: 31px; }
.nav-item.active .nav-letter { background: var(--lime); border-color: var(--lime); color: #193b2c; }
.sidebar-bottom { margin-top: auto; }
.sync-indicator, .sync-status { align-items: center; color: #aac0b4; display: flex; font-size: 10px; gap: 8px; }
.sync-indicator { padding: 12px 11px 20px; }
.pulse { background: #87cf8d; border-radius: 50%; box-shadow: 0 0 0 4px #87cf8d1e; height: 7px; width: 7px; }
.user-chip { align-items: center; background: transparent; border: 1px solid #426054; border-radius: 12px; color: #fff; display: flex; gap: 9px; min-height: 46px; padding: 6px 9px; text-align: left; width: 100%; }
.user-chip:hover, .user-chip:focus-visible { background: #294238; }
.user-chip .avatar { flex-shrink: 0; }
.avatar { align-items: center; background: #315b46; border-radius: 50%; color: #d8f1df; display: grid; font-weight: 700; height: 33px; place-items: center; width: 33px; }
.user-label { display: grid; flex: 1; gap: 3px; min-width: 0; }
.user-label b { font-size: 11px; overflow: hidden; text-overflow: ellipsis; }
.user-label small { color: #aac0b4; font-size: 10px; overflow-wrap: anywhere; }
.sidebar .icon-button { color: #adc4b7; }
.main-area { flex: 1; min-width: 0; }
.topbar { align-items: center; backdrop-filter: blur(16px); background: #ffffffde; border-bottom: 1px solid var(--line); display: flex; height: 78px; justify-content: space-between; padding: 0 clamp(20px, 4vw, 56px); position: sticky; top: 0; z-index: 3; }
.week-control { align-items: center; display: flex; gap: 13px; }
.week-control > div { display: grid; gap: 3px; min-width: 190px; }
.week-control strong { font-size: 14px; }
.week-control .eyebrow { font-size: 9px; margin: 0; }
.week-arrow { background: #f4f7f4; }
.week-control .button { font-size: 11px; height: 34px; margin-left: 3px; }
.top-actions { align-items: center; display: flex; gap: 20px; }
.sync-status { color: #6c7c72; }
.sync-status .pulse { height: 6px; width: 6px; }
.mobile-brand { display: none; }
.page-content { margin: auto; max-width: 1360px; padding: 42px clamp(20px, 4vw, 56px) 28px; }
.page-heading { align-items: end; display: flex; gap: 20px; justify-content: space-between; margin-bottom: 27px; }
.page-heading .muted { font-size: 13px; margin-bottom: 0; }
.page-heading .button { flex: 0 0 auto; }
.page-heading .button span { font-size: 18px; line-height: 0; }
.summary-grid { display: grid; gap: 13px; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 22px; }
.summary-card { align-content: start; background: white; border: 1px solid var(--line); border-radius: 17px; box-shadow: 0 5px 20px #15372806; display: grid; gap: 10px; min-height: 128px; padding: 17px 18px; }
.summary-top { align-items: center; color: #76857b; display: flex; font-size: 11px; font-weight: 600; justify-content: space-between; }
.summary-icon { align-items: center; background: var(--green-light); border-radius: 9px; color: var(--green); display: grid; font-weight: 700; height: 27px; place-items: center; width: 27px; }
.summary-value { font-size: 22px; letter-spacing: -.8px; line-height: 1.15; overflow-wrap: anywhere; }
.summary-note { color: #8a968e; font-size: 10px; }
.records-panel { background: white; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 5px 20px #15372806; overflow: hidden; }
.panel-heading { align-items: center; border-bottom: 1px solid var(--line); display: flex; height: 79px; justify-content: space-between; padding: 0 21px; }
.panel-heading h2 { font-size: 15px; }
.panel-heading p { font-size: 11px; margin: 0; }
.panel-heading .button { font-size: 11px; height: 34px; }
.table-wrap { min-height: 180px; overflow: auto; position: relative; }
table { border-collapse: collapse; min-width: 720px; width: 100%; }
th { background: #fbfcfb; color: #87938b; font-size: 9px; font-weight: 700; letter-spacing: .8px; padding: 13px 16px; text-align: left; text-transform: uppercase; }
td { border-top: 1px solid #eef1ee; color: #4c5a51; font-size: 11px; padding: 14px 16px; vertical-align: middle; }
tbody tr:hover { background: #fafcfa; }
.money { color: #293b31; font-variant-numeric: tabular-nums; font-weight: 700; }
.money.in { color: #23724d; }
.money.out { color: #a95547; }
.actions-cell { text-align: right; white-space: nowrap; }
.text-action { background: none; border: 0; color: #366c50; font-size: 10px; font-weight: 700; padding: 5px 6px; }
.text-action:hover { text-decoration: underline; }
.danger-text { color: #ad5146; }
.empty-state { align-content: center; color: #7d8981; display: grid; gap: 6px; justify-items: center; min-height: 180px; }
.empty-state[hidden] { display: none; }
.empty-state strong { color: #43534a; font-size: 13px; }
.empty-state span { font-size: 11px; }
.empty-icon { align-items: center; background: #eef5ef; border-radius: 13px; color: #43815b; display: grid; font-size: 20px; height: 38px; margin-bottom: 4px; place-items: center; width: 38px; }
.page-footer { color: #8b978f; display: flex; font-size: 10px; gap: 16px; justify-content: space-between; padding: 16px 3px; }
.dialog { border: 0; border-radius: 20px; box-shadow: 0 35px 100px #0b1b1390; max-height: min(88vh, 800px); padding: 0; width: min(640px, calc(100% - 30px)); }
.dialog::backdrop { backdrop-filter: blur(3px); background: #09191285; }
.dialog-card { padding: 27px; }
.dialog-card.narrow { margin: auto; width: min(100%, 440px); }
.dialog-head { align-items: start; display: flex; gap: 12px; justify-content: space-between; margin-bottom: 18px; }
.dialog-head h2 { font-size: 20px; }
.dialog-head .icon-button { font-size: 25px; margin: -5px -8px 0 0; }
.form-grid { display: grid; gap: 15px; grid-template-columns: 1fr 1fr; }
.form-grid label:has([name="description"]), .form-grid label:has([name="dish"]), .form-grid label:has([name="notes"]) { grid-column: 1 / -1; }
.dialog-actions { display: flex; gap: 9px; justify-content: end; margin-top: 23px; }
.dialog-actions .button { min-width: 100px; }
.team-card { width: 100%; }
.team-form { align-items: end; display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.team-form > label:nth-child(-n+2) { align-self: start; }
.team-form label:nth-child(3) { grid-column: 1; }
.team-form button { height: 43px; }
.user-list { border-top: 1px solid var(--line); margin-top: 22px; padding-top: 18px; }
.team-row { align-items: center; border-top: 1px solid #eff2ef; display: grid; gap: 12px; grid-template-columns: 1fr 1.5fr auto auto auto; padding: 10px 0; }
.team-row span:first-child { font-size: 12px; font-weight: 700; }
.team-row small { color: var(--muted); font-size: 10px; }
.user-status { font-size: 10px; font-weight: 700; }
.user-status.active { color: #297349; }
.user-status.inactive { color: #a95348; }
.toast { background: #173b2c; border-radius: 12px; bottom: 22px; box-shadow: var(--shadow); color: white; font-size: 12px; opacity: 0; padding: 12px 17px; pointer-events: none; position: fixed; right: 22px; transform: translateY(10px); transition: .2s; z-index: 8; }
.toast.visible { opacity: 1; transform: translateY(0); }
.toast.error { background: #9e453a; }
@media (max-width: 1050px) { .sidebar { flex-basis: 220px; width: 220px; } .summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .page-content { padding-top: 32px; } }
@media (max-width: 720px) {
  .app-shell { display: block; }
  .sidebar { display: block; height: auto; min-height: 0; padding: 12px 16px 0; position: relative; width: 100%; }
  .brand, .side-label, .sidebar-bottom { display: none; }
  .module-nav { display: flex; gap: 6px; overflow: auto; padding-bottom: 10px; }
  .nav-item { min-width: 135px; padding: 8px; width: auto; }
  .nav-item > span:last-child { white-space: nowrap; }
  .nav-item b { font-size: 10px; }
  .nav-item small { font-size: 9px; }
  .nav-letter { height: 27px; width: 27px; }
  .topbar { gap: 10px; height: 66px; padding: 0 14px; }
  .mobile-brand { align-items: center; display: flex; gap: 8px; white-space: nowrap; }
  .mobile-brand strong { font-size: 13px; }
  .mobile-brand .brand-mark { border-radius: 10px; font-size: 13px; height: 29px; width: 29px; }
  .week-control { gap: 6px; }
  .week-control > div { min-width: 0; }
  .week-control .eyebrow, .week-control .button { display: none; }
  .week-control strong { font-size: 10px; white-space: nowrap; }
  .week-arrow { font-size: 19px; height: 30px; width: 29px; }
  .top-actions { gap: 5px; }
  .top-actions .button { font-size: 10px; height: 32px; padding: 0 9px; }
  .sync-status { font-size: 0; }
  .sync-status .pulse { height: 8px; width: 8px; }
  .page-content { padding: 26px 14px; }
  .page-heading { align-items: start; flex-direction: column; gap: 15px; margin-bottom: 20px; }
  .page-heading h1 { font-size: 25px; }
  .page-heading .muted { font-size: 12px; }
  .page-heading .button { width: 100%; }
  .summary-grid { gap: 9px; }
  .summary-card { border-radius: 14px; gap: 8px; min-height: 112px; padding: 13px; }
  .summary-value { font-size: 18px; }
  .summary-top { font-size: 10px; }
  .summary-note { font-size: 9px; }
  .panel-heading { height: 70px; padding: 0 14px; }
  .panel-heading h2 { font-size: 13px; }
  .panel-heading p { font-size: 10px; }
  .panel-heading .button { padding: 0 9px; }
  .page-footer { flex-direction: column; font-size: 9px; gap: 5px; }
  .dialog-card { padding: 21px 17px; }
  .form-grid, .team-form { grid-template-columns: 1fr; }
  .form-grid label:has([name="description"]), .form-grid label:has([name="dish"]), .form-grid label:has([name="notes"]) { grid-column: auto; }
  .team-form label:nth-child(3) { grid-column: auto; }
  .team-row { gap: 5px 12px; grid-template-columns: 1fr auto; }
  .team-row small { grid-row: 2; }
  .team-row button { grid-column: 2; grid-row: 1 / span 2; }
}

.balance-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:22px}.balance-grid .summary-card{min-height:88px}.balance-grid .summary-value{font-size:19px}.sheet-block{padding:18px 0 0;border-bottom:1px solid var(--line)}.block-bar{display:flex;justify-content:space-between;align-items:center;padding:0 20px 12px}.block-bar h3{margin:0}.block-total{padding:12px 20px;text-align:right;background:#f4f8f4;font-weight:700}.sheet-block .table-wrap{min-height:0}.menu-table{min-width:1100px;table-layout:fixed}.menu-table td{vertical-align:top;height:95px;overflow-wrap:anywhere}.menu-entry{border-bottom:1px solid var(--line);padding-bottom:6px;margin-bottom:6px}.menu-entry span{display:block}.calculation-preview{grid-column:1/-1;background:#edf5ef;padding:12px;border-radius:10px;font-weight:700}.calculation-preview:empty{display:none}.sheet-block .th{font-size:10px;background:#f6f9f6;font-weight:700;color:#718276}.summary-grid{grid-template-columns:repeat(auto-fit,minmax(170px,1fr))}@media(max-width:720px){.balance-grid{grid-template-columns:1fr 1fr}.summary-grid{grid-template-columns:1fr 1fr}}

.week-control{flex-wrap:wrap}.week-control>div{min-width:180px}.topbar{min-height:78px;height:auto;padding-top:12px;padding-bottom:12px}@media(max-width:720px){.week-control{justify-content:center}.week-control .button{display:inline-flex;font-size:9px;height:27px;padding:0 7px}.week-control>div{min-width:0}.mobile-brand{display:none}.topbar{gap:5px}}

.payroll-block{background:#fbfdfb}.payroll-block .block-bar{background:#bfd9ad;padding:15px 20px}.payroll-block h3{font-size:19px;text-transform:uppercase}.payroll-help{margin:0;padding:12px 20px;color:#647569;font-size:12px}.payroll-table{min-width:1000px}.payroll-table th{font-size:12px;background:#edf4e8;color:#263c28}.payroll-table td{font-size:13px;padding:8px}.payroll-table input{height:35px;border-radius:5px;min-width:90px}.payroll-table input[type=checkbox]{min-width:22px;width:22px;height:22px;accent-color:#2c7149}.payroll-table td:first-child{width:40px;text-align:center}.payroll-table td:nth-child(2){min-width:205px}.payroll-table td:nth-child(2) input{font-weight:600}.payroll-table select{font-size:10px;height:25px;border:none;background:transparent;padding-left:0}.payroll-table td:nth-child(3){text-align:center;min-width:120px}.payroll-table td:nth-child(4){text-align:center;min-width:80px}.payroll-table td:nth-child(5){width:110px}.payroll-table td:nth-child(6){width:135px}.payroll-table td:nth-child(7){min-width:110px}.payroll-toolbar{display:flex;gap:12px;align-items:center;justify-content:flex-end;padding:16px;flex-wrap:wrap}.payroll-footer{text-align:right;padding:15px 20px;background:#e6f0dd;font-size:17px}.pending-removal{opacity:.55;background:#fff0eb}.linked-payroll{background:#f0f5ed;font-weight:600}

.payroll-table{min-width:720px;table-layout:fixed}.payroll-table td{min-width:0!important;width:auto!important;padding:8px 5px}.payroll-table th{padding:12px 5px;font-size:10px;overflow-wrap:anywhere}.payroll-table th:nth-child(1){width:4%}.payroll-table th:nth-child(2){width:25%}.payroll-table th:nth-child(3){width:15%}.payroll-table th:nth-child(4){width:8%}.payroll-table th:nth-child(5){width:12%}.payroll-table th:nth-child(6){width:14%}.payroll-table th:nth-child(7){width:11%}.payroll-table th:nth-child(8){width:11%}.payroll-table input{min-width:0;width:100%;padding:0 6px}.payroll-table .money{overflow-wrap:anywhere}.payroll-table select{width:100%;font-size:10px}

.week-control{gap:8px;flex:1}.week-control>div{min-width:225px;flex-shrink:0}.week-control strong{white-space:nowrap}.topbar{gap:12px}.top-actions{flex-shrink:0}@media(max-width:720px){.week-control>div{min-width:190px}.week-control strong{font-size:12px}}

.selectors-block>.block-bar{background:#e4efdb;padding-top:16px;padding-bottom:16px}.selectors-rate{display:flex;align-items:end;gap:24px;padding:15px 20px}.selectors-rate label{min-width:215px}.selectors-rate input{max-width:180px}.selectors-rate p{font-size:12px;margin:0 0 8px}.selectors-table{min-width:650px;table-layout:fixed}.selectors-table th{font-size:11px}.selectors-table th:first-child{width:7%}.selectors-table th:nth-child(2){width:30%}.selectors-table th:nth-child(3){width:19%}.selectors-table th:nth-child(4){width:13%}.selectors-table th:nth-child(5){width:19%}.selectors-table th:last-child{width:12%}.selectors-table input{min-width:0;height:35px}.selectors-table td{padding:9px 8px}.selectors-table .money{overflow-wrap:anywhere}@media(max-width:720px){.selectors-rate{align-items:start;flex-direction:column;gap:8px}}

.selectors-rate{padding:7px 20px;gap:16px;align-items:center}.selectors-rate label{display:flex;align-items:center;gap:8px;min-width:0;font-size:11px;font-weight:500;color:#728077;white-space:nowrap}.selectors-rate input{width:85px;max-width:85px;height:28px;border-radius:5px;padding:0 6px;font-size:12px;background:#fafcfa;border-color:#e3e9e3}.selectors-rate p{font-size:10px;margin:0;color:#89958d}.selectors-table th:first-child{width:9%}.selectors-table th:nth-child(2){width:28%}.selectors-table td:first-child input{text-align:center;padding:0 3px}

.selectors-table tfoot{background:#e7f0df;font-weight:700}.selectors-table tfoot td{padding:13px 8px;border-top:2px solid #cbdac0}.selectors-actual{display:flex;align-items:center;gap:18px;padding:13px 20px;background:#f7faf5}.selectors-actual label{display:flex;align-items:center;gap:12px;font-size:12px;white-space:nowrap}.selectors-actual input{width:110px;height:33px}.selectors-actual small{font-size:10px;color:#829080}@media(max-width:720px){.selectors-actual{align-items:start;flex-direction:column;gap:8px}}

.purchase-block>.block-bar{background:#e5efde;padding-top:15px;padding-bottom:15px}.purchase-table{min-width:620px;table-layout:fixed}.purchase-table th{font-size:11px}.purchase-table:not(.palm-advance-table):not(.production-table) th:first-child{width:21%}.purchase-table:not(.palm-advance-table):not(.production-table) th:nth-child(2){width:26%}.purchase-table:not(.palm-advance-table):not(.production-table) th:nth-child(3){width:12%}.purchase-table:not(.palm-advance-table):not(.production-table) th:nth-child(4){width:16%}.purchase-table:not(.palm-advance-table):not(.production-table) th:nth-child(5){width:16%}.purchase-table:not(.palm-advance-table):not(.production-table) th:last-child{width:9%}.purchase-table td{padding:9px 6px}.purchase-table input{min-width:0;padding:0 6px;height:35px}.purchase-table tfoot{font-weight:700;background:#e7f0df}.purchase-table tfoot td{padding:13px 8px;border-top:2px solid #cbdac0}.purchase-table .money{overflow-wrap:anywhere}

.deliveries-block>.block-bar{background:#e5efde;padding-top:15px;padding-bottom:15px}.deliveries-table{min-width:350px;table-layout:fixed}.deliveries-table th:first-child{width:55%}.deliveries-table th:nth-child(2){width:30%}.deliveries-table th:last-child{width:15%}.deliveries-table td{padding:10px 16px}.deliveries-table input{height:35px;min-width:0}.deliveries-table td:first-child{font-weight:600}.deliveries-table tfoot{font-weight:700;background:#e7f0df}.deliveries-table tfoot td{border-top:2px solid #cbdac0;padding:14px 16px}

.automatic-box-count>.block-bar{background:#e5efde;padding:15px 20px}.automatic-badge{font-size:10px;font-weight:600;color:#5a7960;background:#f3f8ef;padding:5px 10px;border-radius:12px}.box-count-table{min-width:350px}.box-count-table th:last-child{width:30%;text-align:right}.box-count-table td{padding:14px 20px}.box-count-table td strong{display:block;font-size:13px}.box-count-table td small{display:block;font-size:10px;color:#819087;margin-top:4px}.box-count-number{text-align:right;font-weight:700;font-variant-numeric:tabular-nums}.box-count-table tfoot{font-weight:700;background:#e7f0df}.box-count-table tfoot td{border-top:2px solid #cbdac0}.box-count-info{font-size:11px;color:#728278;padding:12px 20px;margin:0}

/* Palma trabajada tiene nueve columnas; no heredar los anchos de compras. */
.production-table{min-width:900px;table-layout:fixed}
.production-table th:nth-child(n){width:auto;padding:12px 8px;font-size:10px;letter-spacing:.3px;line-height:1.4;white-space:normal;overflow-wrap:normal}
.production-table td{padding:9px 6px;font-variant-numeric:tabular-nums}
.production-table input{width:100%;height:36px;border-radius:6px;font-size:12px;padding:0 7px}
.production-table input[type=number]{text-align:right}
.production-table td:nth-child(7),.production-table td:nth-child(8){text-align:right;white-space:nowrap}
.production-table .money{overflow-wrap:normal;white-space:nowrap}
.production-table tfoot td{padding:14px 6px;white-space:nowrap}
.production-table .text-action{padding:5px 2px;font-size:10px}

.production-table .yield-low,.summary-value.yield-low,.box-count-number.yield-low{color:#b42318;font-weight:700}
.production-table .yield-good,.summary-value.yield-good,.box-count-number.yield-good{color:#23724d;font-weight:700}

.production-table th:nth-child(3),.production-table th:nth-child(4),.production-table th:nth-child(5),.production-table th:nth-child(7),.production-table th:nth-child(8){text-align:right}
.production-table input[type=number]{appearance:textfield;-moz-appearance:textfield}
.production-table input[type=number]::-webkit-inner-spin-button,.production-table input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
.production-table tfoot .production-total-count{text-align:right;padding-right:14px;font-size:12px}
.production-table tfoot .production-total-yield,.production-table tfoot .production-total-money{text-align:right;padding-right:6px}

.food-purchases-table{min-width:700px;table-layout:fixed}
.food-purchases-table th:nth-child(1){width:19%}.food-purchases-table th:nth-child(2){width:23%}.food-purchases-table th:nth-child(3){width:32%}.food-purchases-table th:nth-child(4){width:17%}.food-purchases-table th:nth-child(5){width:9%}
.food-purchases-table td{padding:9px 6px}.food-purchases-table th{padding:12px 8px;font-size:10px}
.food-purchases-table input,.food-purchases-table select{min-width:0;height:36px;padding:0 7px;font-size:12px;border-radius:6px}
.food-purchases-table input[type=number]{text-align:right}.food-purchases-table th:nth-child(4),.food-purchases-table .money{text-align:right}
.food-purchases-table tfoot{font-weight:700;background:#e7f0df}.food-purchases-table tfoot td{padding:14px 13px;border-top:2px solid #cbdac0}

.food-date-bar{display:flex;align-items:center;gap:16px;flex-wrap:wrap;padding:14px 20px}.food-date-bar label{display:flex;align-items:center;gap:10px;font-size:12px;font-weight:600}.food-date-bar input{width:155px;height:35px;font-size:12px}.food-date-links{display:flex;gap:5px;flex-wrap:wrap}.food-date-links [aria-pressed=true]{background:#e7f0df;border-radius:6px}
.food-category-table{min-width:1560px;table-layout:fixed}.food-category-table th{text-align:center;width:16.666%;font-size:11px;background:#edf4e8}.food-category-table td{vertical-align:top;padding:10px 8px;border-right:1px solid #e2e9df}.food-category-table input{height:34px;min-width:0;font-size:12px;padding:0 6px;border-radius:5px}.food-item,.food-item-labels{display:grid;grid-template-columns:minmax(0,1fr) 82px 22px;gap:6px;align-items:center;margin-bottom:8px}.food-item input[type=number]{text-align:right}.food-item-labels{font-size:10px;color:#718276}.food-category-table tfoot{background:#e7f0df;font-weight:700}.food-category-table tfoot td{text-align:right;padding:13px 36px 13px 8px;border-top:2px solid #cbdac0}

/* Página G: resumen, existencias compactas y cinco apartados de trabajo. */
.module-g .page-content{padding-top:30px}
.module-g .page-heading{margin-bottom:22px}
.module-g .summary-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:14px}
.module-g .summary-card{min-height:126px;box-shadow:none;padding:17px}
.module-g .summary-value{font-size:25px;letter-spacing:-.6px}
.module-g .summary-top{line-height:1.4}
.module-g .cash-feature{background:#173e2e;border-color:#173e2e}
.module-g .cash-feature .summary-top,.module-g .cash-feature .summary-note{color:#bdd0c1}
.module-g .cash-feature .summary-value{color:#fff}
.module-g .cash-feature .summary-icon{color:#d9edcf;background:#315442}
.module-g .cash-negative{background:#7e352f;border-color:#7e352f}
.module-g .cash-alert{background:#fff6ef;border-color:#efd5c4}
.module-g .cash-alert .summary-value{color:#a4482c}
.module-g .balance-grid{display:block;margin-bottom:26px}
.g-stock-strip{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border:1px solid #dfe7df;border-radius:12px;background:#fff;padding:14px 0}
.g-stock-strip>div{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:0 18px;border-right:1px solid #e6ece5}
.g-stock-strip>div:last-child{border:0}.g-stock-strip span{font-size:11px;color:#768579}.g-stock-strip strong{font-size:13px;font-variant-numeric:tabular-nums;color:#2c4534;white-space:nowrap}
.g-cash-detail{margin-top:10px;font-size:12px;color:#63776a}.g-cash-detail summary{cursor:pointer;min-height:28px;padding:6px 2px}.g-cash-detail dl{background:white;border:1px solid #e1e8df;border-radius:12px;padding:6px 18px;margin:8px 0 0;max-width:550px}.g-cash-detail dl>div{display:flex;justify-content:space-between;gap:18px;padding:10px 0;border-bottom:1px solid #edf1eb}.g-cash-detail dl>div:last-child{border:0;font-weight:700;color:#244d35}.g-cash-detail dd{margin:0;font-variant-numeric:tabular-nums;white-space:nowrap}
.g-navigation{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px;margin-bottom:14px;padding:6px;background:#e8eee6;border:1px solid #dfe7dc;border-radius:14px}
.g-tab{display:flex;gap:9px;align-items:center;justify-content:center;border:0;border-radius:9px;background:transparent;color:#637668;padding:12px 6px;font-size:12px;font-weight:600;cursor:pointer;min-width:0;line-height:1.4}
.g-tab-number{font-size:10px;opacity:.65;font-variant-numeric:tabular-nums}
.g-tab[aria-selected=true]{background:#fff;color:#214c33;box-shadow:0 2px 6px #1936240c}
.g-tab:hover{color:#214c33;background:#f5f8f2}.g-tab:focus-visible{outline:2px solid #397653;outline-offset:2px}
.module-g .panel-heading{height:auto;min-height:82px;gap:18px;padding:18px 22px;background:#fff}
.module-g .panel-heading h2{font-size:18px;margin:0 0 6px}.module-g .panel-heading p{font-size:12px;line-height:1.5}
.module-g [data-g-panel]{background:#f4f7f1;padding:16px;display:grid;gap:18px}
.module-g [data-g-panel]>.sheet-block{background:white;border:1px solid #dde6d9;border-radius:12px;padding:0;overflow:hidden;min-width:0}
.module-g [data-g-panel]>.sheet-block>.block-bar{background:#edf3e7;padding:16px 18px;border-bottom:1px solid #e0e9db}
.module-g .block-bar h3{font-size:14px;text-transform:none;letter-spacing:0}
.module-g .block-total{font-size:13px;background:#f0f5eb;padding:13px 18px}
.module-g .payroll-footer{font-size:15px}.module-g .payroll-toolbar{border-top:1px solid #edf1e9;padding:14px}
.module-g .records-panel{box-shadow:0 4px 20px #19362404;border-radius:14px}
@media(max-width:1100px){.g-stock-strip>div{display:grid;gap:6px}.g-tab-number{display:none}.module-g .summary-value{font-size:21px}}
@media(max-width:850px){.module-g .summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.g-navigation{display:flex;overflow-x:auto;gap:4px}.g-tab{flex:0 0 auto;padding:11px 14px}.g-stock-strip>div{padding:0 12px}.module-g [data-g-panel]{padding:10px;gap:12px}}
@media(max-width:480px){.g-stock-strip{grid-template-columns:1fr;padding:4px 14px}.g-stock-strip>div{display:flex;border-right:0;border-bottom:1px solid #e6ece5;padding:10px 0}.module-g .panel-heading{padding:16px}.module-g .summary-card{padding:13px;min-height:118px}.module-g .summary-value{font-size:22px}}

.page-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap}.page-actions .button{white-space:nowrap}#download-g-pdf{border-color:#cad8c7;background:#fff;color:#31573d}@media(max-width:720px){.page-heading{align-items:flex-start;flex-wrap:wrap}.page-actions{justify-content:flex-start}}

#week-number{color:#4b7057;font-weight:700;letter-spacing:1px}@media(max-width:720px){.week-control #week-number{display:block;font-size:9px}}

.team-row{grid-template-columns:minmax(130px,1fr) auto;gap:10px;padding:15px 0}.team-user-info{display:grid;gap:5px}.team-user-info>span{font-size:13px;font-weight:700}.team-user-actions{grid-column:1/-1;display:flex;gap:12px;flex-wrap:wrap;justify-content:flex-end}.team-user-actions button:disabled{opacity:.4;cursor:not-allowed}#edit-user-dialog{max-width:480px}

.company-brand{padding:0 7px 30px;display:block}.company-logo{display:block;width:100%;height:auto;max-height:90px;object-fit:contain;background:#fff;border-radius:10px;padding:10px 12px}.login-logo{display:block;width:230px;max-width:100%;height:auto;object-fit:contain;margin:0 auto 26px}.mobile-logo{display:block;width:90px;max-height:40px;object-fit:contain}@media(max-width:720px){.company-brand{display:none}.mobile-brand{flex-shrink:0}.top-actions{gap:8px}}

.expense-table{min-width:550px;table-layout:fixed}.expense-table th{font-size:11px;padding:12px 10px}.expense-table th:nth-child(2){text-align:right}.expense-table th:last-child{text-align:center}.expense-table td{padding:9px 7px}.expense-table input{min-width:0;height:36px;padding:0 8px;border-radius:6px;font-size:12px}.expense-table input[type=number]{text-align:right}.expense-table .money{text-align:right;white-space:nowrap}.expense-table tfoot{background:#e7f0df;font-weight:700}.expense-table tfoot td{padding:14px 16px;border-top:2px solid #cbdac0}

/* Columnas de gastos: concepto flexible, importe compacto y acciones separadas. */
.expense-table{min-width:480px}.expense-table .expense-amount-col{width:160px}.expense-table .expense-actions-col{width:86px}
.expense-table th{padding:12px 16px}.expense-table td{padding:8px}.expense-table td:last-child{text-align:center;white-space:nowrap}
.expense-table input{height:34px;font-size:12px;padding:0 8px}.expense-table input[type=number]{appearance:textfield;-moz-appearance:textfield;font-variant-numeric:tabular-nums}
.expense-table input[type=number]::-webkit-inner-spin-button,.expense-table input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
.expense-table tfoot td{padding:13px 17px}.expense-table .text-action{padding:5px 3px}
@media(max-width:720px){.expense-table .expense-amount-col{width:135px}.expense-table .expense-actions-col{width:75px}.expense-table th{padding:12px 12px}}

/* Distribución común: texto flexible, cifras compactas y acciones independientes. */
.aligned-table{table-layout:fixed}
.aligned-table th:nth-child(n){width:auto;padding:12px 8px;font-size:10px;line-height:1.4;letter-spacing:.35px;overflow-wrap:normal;white-space:normal}
.aligned-table td{padding:8px;font-size:12px;font-variant-numeric:tabular-nums}
.aligned-table input:not([type=checkbox]),.aligned-table select{min-width:0;width:100%;padding:0 8px;font-size:12px;border-radius:6px}
.aligned-table input:not([type=checkbox]){height:34px}
.aligned-table input[type=number]{text-align:right;appearance:textfield;-moz-appearance:textfield;font-variant-numeric:tabular-nums}
.aligned-table input[type=number]::-webkit-inner-spin-button,.aligned-table input[type=number]::-webkit-outer-spin-button{appearance:none;-webkit-appearance:none;margin:0}
.aligned-table th.numeric-heading{padding-right:8px;text-align:right}
.aligned-table th.numeric-input-heading{padding-right:17px;text-align:right}
.aligned-table .numeric-value,.aligned-table .money{text-align:right;white-space:nowrap;overflow-wrap:normal}
.aligned-table tfoot td{padding:13px 8px;vertical-align:middle}
.aligned-table tfoot .numeric-total-input{padding-right:17px}
.aligned-table .text-action{padding:5px 3px;font-size:10px}
.payroll-table.aligned-table{min-width:1000px}.payroll-table.aligned-table th:first-child,.payroll-table.aligned-table th:nth-child(3),.payroll-table.aligned-table th:nth-child(4){text-align:center}
.payroll-table.aligned-table td{padding:8px!important}.payroll-table.aligned-table select{font-size:11px;height:34px;padding:0 8px;border:1px solid var(--line);background:#fff}
.payroll-table.aligned-table .linked-payroll td:first-child{white-space:normal}
.selectors-table.aligned-table{min-width:760px}.selectors-table.aligned-table th:first-child,.selectors-table.aligned-table th:last-child{text-align:center}
.selectors-table.aligned-table td:last-child{text-align:center}
.purchase-table.aligned-table:not(.production-table){min-width:800px}.production-table.aligned-table{min-width:920px}
.purchase-table.aligned-table th:last-child,.purchase-table.aligned-table td:last-child{text-align:center}
.production-table.aligned-table tfoot .production-total-count{padding-right:17px}
.production-table.aligned-table tfoot .production-total-yield,.production-table.aligned-table tfoot .production-total-money{padding-right:8px}
.deliveries-table.aligned-table{min-width:500px}.deliveries-table.aligned-table td:first-child{white-space:normal;overflow-wrap:anywhere}
.deliveries-table.aligned-table th:last-child,.deliveries-table.aligned-table td:last-child{text-align:center}
.box-count-table.aligned-table{min-width:360px}.box-count-table.aligned-table th:last-child{text-align:right;padding-right:16px}
.box-count-table.aligned-table td{padding:14px 16px}.box-count-table.aligned-table tfoot td{padding:14px 16px}
.ledger-table.aligned-table td{overflow-wrap:anywhere;white-space:normal}.ledger-table.aligned-table td.numeric-value{overflow-wrap:normal;white-space:nowrap}
.ledger-table.aligned-table tfoot{background:#edf3e7;font-weight:700}.ledger-table.aligned-table tfoot td{border-top:2px solid #cbdac0}
.ledger-table.aligned-table th:last-child{text-align:right}
.menu-table.aligned-table{min-width:1260px}.menu-table.aligned-table th{padding:13px 12px;font-size:11px}
.menu-table.aligned-table td{padding:13px 12px;vertical-align:top;white-space:normal;line-height:1.55}
.menu-table.aligned-table td:first-child,.menu-table.aligned-table th:first-child{position:sticky;left:0;background:#f5f8f2;border-right:1px solid #dfe6db;z-index:1;font-weight:700}
.food-category-table{min-width:1560px}.food-item,.food-item-labels{grid-template-columns:minmax(0,1fr) 92px 22px;gap:6px}
.food-item-labels span:nth-child(2){text-align:right;padding-right:7px}.food-item input[type=number]{appearance:textfield;-moz-appearance:textfield;font-variant-numeric:tabular-nums}
.food-item input[type=number]::-webkit-inner-spin-button,.food-item input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
.food-category-table tfoot td{padding-right:44px;font-size:12px;font-variant-numeric:tabular-nums}
@media(max-width:720px){.aligned-table th{font-size:10px}.aligned-table input:not([type=checkbox]){font-size:12px}}

.payroll-table.aligned-table .numeric-value{text-align:right;white-space:nowrap}

.aligned-table .actions-cell{white-space:nowrap}
.legacy-payroll-table{min-width:500px}

.access-help{display:block;font-size:10px;font-weight:400;color:#728278;line-height:1.5;margin-top:6px}

.team-form .team-access-help{grid-column:1/-1;margin:0}

.login-back{display:block;margin-top:20px;text-align:center;color:var(--green);font-size:12px;text-decoration:none}.login-back:hover{text-decoration:underline}

.inquiry-filters{display:grid;grid-template-columns:160px minmax(200px,1fr) auto;gap:15px;align-items:end;padding:18px 22px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);background:#fafcf9}
.inquiry-filters .button{height:43px}
.inquiry-table{width:100%;border-collapse:collapse;min-width:750px;font-size:12px}
.inquiry-table th{text-align:left;font-size:10px;letter-spacing:.7px;color:var(--muted);text-transform:uppercase;padding:16px;background:#fafcf9;border-bottom:1px solid var(--line)}
.inquiry-table td{padding:18px 16px;vertical-align:top;border-bottom:1px solid var(--line);line-height:1.7;overflow-wrap:anywhere}
.inquiry-table th:first-child{width:155px}.inquiry-table th:nth-child(3){width:110px}.inquiry-table th:nth-child(4){width:110px}.inquiry-table th:last-child{width:170px}
.inquiry-table td:nth-child(2)>strong,.inquiry-table td:nth-child(2)>span,.inquiry-table td:nth-child(2)>small{display:block}
.inquiry-table td:nth-child(2)>small{color:var(--muted);font-size:11px}
.inquiry-actions .text-action{display:block;white-space:nowrap;margin-bottom:9px;font-size:11px}
.inquiry-badge{display:inline-block;border-radius:20px;padding:3px 11px;font-size:10px;font-weight:600}
.inquiry-badge.pending{background:#fbefd0;color:#82601f}.inquiry-badge.handled{background:#e7f2e9;color:#29613c}
.inquiry-table .inquiry-empty{text-align:center;padding:45px;color:var(--muted)}
.inquiry-pagination{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 22px;font-size:11px;color:var(--muted)}
.inquiry-pagination button:disabled{opacity:.4;cursor:default}
.inquiry-dialog-card{width:min(100%,680px)}
.inquiry-info{display:grid;grid-template-columns:1fr 1fr;gap:18px;padding:20px;border:1px solid var(--line);border-radius:13px;margin:20px 0 25px}
.inquiry-info dt{font-size:10px;color:var(--muted);margin-bottom:6px}.inquiry-info dd{font-size:13px;margin:0;overflow-wrap:anywhere}
.inquiry-message{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.8;max-height:40vh;overflow:auto;margin-bottom:25px}
@media(max-width:700px){.inquiry-filters{grid-template-columns:1fr auto;padding:16px}.inquiry-filters>label:first-child{grid-column:1/-1}.inquiry-info{grid-template-columns:1fr}.inquiry-dialog-card .dialog-actions{flex-wrap:wrap}}

.inquiry-nav{display:flex;gap:7px;padding:14px 22px 0;border-top:1px solid var(--line)}
.inquiry-nav button{border:1px solid transparent;border-radius:10px 10px 0 0;padding:13px 22px;background:transparent;color:var(--muted);font-size:12px;font-weight:600}
.inquiry-nav button:hover{color:var(--green);background:#f0f5ec}
.inquiry-nav button[aria-pressed=true]{background:#edf4e8;color:var(--green);border-color:#e0e9d9;border-bottom-color:#edf4e8}
.inquiry-filters.trash-filters{grid-template-columns:minmax(200px,1fr) auto}
.inquiry-purge-company{font-weight:600;overflow-wrap:anywhere}
.inquiry-purge-button{background:#a83e37;color:white}.inquiry-purge-button:hover{background:#8c302a}
@media(max-width:700px){.inquiry-nav{padding-inline:16px}.inquiry-nav button{padding-inline:20px}.inquiry-filters.trash-filters>label{grid-column:auto}}

/* iPhone / small screens: isolated overrides, existing desktop geometry retained. */
.mobile-app-header,.nav-mobile-label{display:none}
.account-options{display:grid;gap:8px}
.account-options>a,.account-options>button{display:flex;align-items:center;justify-content:space-between;gap:16px;text-align:left;background:#f6f8f4;border:1px solid #e1e7dc;border-radius:12px;padding:15px;color:var(--green);font:600 14px system-ui;text-decoration:none;min-height:48px}
.account-options>.danger-text{color:#ad5146;background:#fff5f2;border-color:#f2dcd6}
@media(max-width:720px){
 html{-webkit-text-size-adjust:100%}
 body{overflow-wrap:break-word}
 .app-shell,.main-area,.page-content,.records-panel,.sheet-block{min-width:0;max-width:100%}
 .sidebar{position:sticky;top:0;z-index:5;width:100%;padding:10px 12px 8px;padding-top:max(10px,env(safe-area-inset-top));background:#10251e}
 .sidebar .company-brand,.sidebar-bottom,.side-label,.topbar>.mobile-brand{display:none}
 .mobile-app-header{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:9px}
 .mobile-home-link{display:flex;align-items:center;background:#fff;border-radius:10px;padding:6px 10px;flex:0 0 auto}
 .mobile-home-link img{display:block;width:126px;height:36px;object-fit:contain}
 .mobile-account-button{display:flex;align-items:center;gap:8px;min-height:44px;border:1px solid #426054;border-radius:12px;background:transparent;color:#fff;font:600 12px system-ui;padding:0 12px}
 .mobile-account-button svg{width:18px;height:18px}
 .module-nav{display:grid;grid-template-columns:repeat(auto-fit,minmax(52px,1fr));gap:5px;overflow:visible;padding:0}
 .nav-item{width:100%;min-width:0;min-height:60px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:5px;padding:7px 3px;text-align:center;border-radius:10px}
 .nav-item>span:last-child{display:block;white-space:normal;min-width:0}
 .nav-item b{font-size:11px;line-height:1.25}.nav-item small,.nav-desktop-label{display:none}.nav-mobile-label{display:inline}
 .nav-letter{flex:0 0 auto;width:24px;height:24px;font-size:12px;border-radius:7px}
 .nav-item.active{box-shadow:inset 0 -2px var(--lime)}
 .topbar{display:block;position:static;min-height:0;height:auto;padding:12px 14px 9px;backdrop-filter:none;background:#fff}
 .week-control{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;min-width:0;width:100%}
 .week-control>div{grid-column:2/6;grid-row:1;min-width:0;justify-items:center;gap:4px}
 .week-control strong{font-size:12px;white-space:normal;text-align:center;line-height:1.35}
 .week-control #week-number{font-size:10px;letter-spacing:.7px}
 #week-prev{grid-column:1;grid-row:1}#week-next{grid-column:6;grid-row:1;justify-self:end}
 .week-arrow{width:40px;height:40px;font-size:25px}
 .week-control .button{display:flex;min-height:36px;height:auto;margin:0;padding:8px;font-size:11px;white-space:normal}
 #week-today{grid-column:1/4;grid-row:2}#week-closed{grid-column:4/7;grid-row:2}
 .top-actions{display:flex;justify-content:flex-end;min-height:15px;margin-top:7px}
 .sync-status{font-size:10px;gap:7px}.sync-status .pulse{width:6px;height:6px;flex-shrink:0}
 .page-content{padding:20px 12px 26px}
 .page-heading{gap:14px;margin-bottom:18px}.page-heading h1{font-size:25px}.page-heading .muted{font-size:12px}
 .page-actions{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));width:100%;gap:8px}
 .page-actions .button{width:100%;height:auto;min-height:44px;white-space:normal;font-size:12px;padding:10px 8px}
 .summary-grid,.module-g .summary-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .summary-card,.module-g .summary-card{min-height:108px;padding:12px;gap:9px;border-radius:13px}
 .summary-top{font-size:11px;line-height:1.35}.summary-icon{display:none}
 .summary-value,.module-g .summary-value{font-size:clamp(17px,5.1vw,23px);letter-spacing:-.6px}
 .summary-note{font-size:10px;line-height:1.35}
 .module-g .balance-grid{margin-bottom:16px}
 .g-stock-strip{grid-template-columns:repeat(2,minmax(0,1fr));padding:0;border-radius:12px}
 .g-stock-strip>div{display:grid;align-content:start;gap:7px;padding:12px;border-right:0;border-bottom:1px solid #e6ece5;min-width:0}
 .g-stock-strip>div:nth-child(odd){border-right:1px solid #e6ece5}.g-stock-strip>div:nth-last-child(-n+2){border-bottom:0}
 .g-stock-strip span{font-size:11px;line-height:1.4}.g-stock-strip strong{font-size:14px;white-space:normal;overflow-wrap:anywhere;text-align:left}
 .g-cash-detail{font-size:12px}.g-cash-detail summary{min-height:44px;display:flex;align-items:center;gap:8px}.g-cash-detail summary:before{content:'+';font-weight:700}.g-cash-detail[open] summary:before{content:'−'}
 .g-cash-detail dl{padding:5px 12px}.g-cash-detail dl>div{gap:10px;line-height:1.4}.g-cash-detail dd{white-space:normal;text-align:right}
 .g-navigation{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;padding:5px;overflow:visible;border-radius:12px}
 .g-tab{display:flex;width:100%;min-width:0;min-height:46px;padding:9px 6px;font-size:11px;line-height:1.35;white-space:normal}.g-tab-number{display:none}
 .panel-heading,.module-g .panel-heading{height:auto;min-height:70px;padding:15px 12px;gap:10px;align-items:flex-start}
 .panel-heading>div{min-width:0;flex:1}.panel-heading h2,.module-g .panel-heading h2{font-size:16px;line-height:1.35}
 .panel-heading p,.module-g .panel-heading p{font-size:11px;line-height:1.5}.panel-heading .button{flex:0 0 auto;min-height:36px;height:auto;font-size:11px;white-space:nowrap;padding:8px}
 .module-g [data-g-panel]{padding:8px;gap:12px}.module-g [data-g-panel]>.sheet-block>.block-bar,.block-bar{padding:13px 12px;gap:8px}
 .block-bar h3,.module-g .block-bar h3{font-size:14px;line-height:1.4;min-width:0}.block-bar .text-action{white-space:nowrap}
 .payroll-help,.box-count-info{font-size:11px;line-height:1.6;padding:12px}
 .automatic-badge{font-size:10px;padding:5px 8px;white-space:nowrap}
 .sheet-block .table-wrap,.table-wrap{overflow:visible;min-height:0;max-width:100%}
 input,select,textarea,.aligned-table input:not([type=checkbox]),.aligned-table select,.expense-table input,.food-category-table input{font-size:16px;min-height:44px;height:auto;max-width:100%}
 input[type=checkbox]{min-width:24px;min-height:24px;width:24px;height:24px}
 .selectors-rate{padding:10px 12px;gap:8px;align-items:flex-start;flex-direction:column}.selectors-rate label{font-size:12px}.selectors-rate input{max-width:100px;width:100px;min-height:36px;font-size:16px}.selectors-rate p{line-height:1.5;font-size:10px}
 .selectors-actual{padding:12px;gap:8px}.selectors-actual label{font-size:12px}.selectors-actual small{font-size:11px;line-height:1.5}
 .payroll-toolbar,.module-g .payroll-toolbar{padding:12px;display:grid;grid-template-columns:1fr 1fr;gap:8px}
 .payroll-toolbar .button.primary{grid-column:1/-1;min-height:44px;height:auto;white-space:normal;font-size:13px;padding:11px}
 .payroll-toolbar .text-action{font-size:11px;min-height:40px;padding:8px 4px;white-space:normal;line-height:1.4}
 .payroll-footer,.module-g .payroll-footer,.block-total{font-size:14px;padding:14px 12px;line-height:1.5}
 /* A table row becomes a labelled card, reusing its actual editable controls. */
 table.mobile-cards,.aligned-table.mobile-cards{display:block;min-width:0!important;width:100%!important;table-layout:auto}
 .mobile-cards colgroup{display:none}
 .mobile-cards thead,.mobile-cards .mobile-table-head{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip-path:inset(50%);white-space:nowrap;pointer-events:none}
 .mobile-cards tbody{display:block;padding:0 10px}
 .mobile-cards tbody>tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 10px;background:white;border:1px solid #dfe7dc;border-radius:12px;margin:10px 0;padding:12px;min-width:0}
 .mobile-cards tr>td,.payroll-table.aligned-table.mobile-cards td{display:block;width:auto!important;min-width:0!important;max-width:100%;padding:0!important;border:0;text-align:left!important;white-space:normal!important;overflow-wrap:anywhere;font-size:13px;line-height:1.5;height:auto}
 .mobile-cards td[data-label]:before{content:attr(data-label);display:block;color:#758377;font-size:10px;font-weight:600;letter-spacing:.2px;line-height:1.4;margin-bottom:6px;text-transform:none}
 .mobile-cards td[colspan]{grid-column:1/-1}
 .mobile-cards td[data-mobile-empty=true]{display:none!important}
 .mobile-cards td:has(input[type=text]),.mobile-cards td:has(input:not([type])),.mobile-cards td:has(select),.mobile-cards td[data-label="Concepto"],.mobile-cards td[data-label="Concepto / referencia"],.mobile-cards .actions-cell,.mobile-cards .inquiry-actions{grid-column:1/-1}
 .mobile-cards td[data-label="Acciones"]{display:flex;justify-content:flex-end;align-items:end;gap:10px}
 .mobile-cards td[data-label="Acciones"]:before{display:none}
 .mobile-cards .text-action{font-size:12px;min-height:36px;padding:8px 3px;white-space:normal}
 .mobile-cards td.money{font-size:16px;color:#254e35;align-self:center}
 .mobile-cards input:not([type=checkbox]),.mobile-cards select{width:100%;min-width:0!important;height:44px;min-height:44px;padding:8px!important;border-radius:8px}
 .mobile-cards select{height:38px;min-height:38px;border:1px solid #dce4de;margin-top:6px}
 .mobile-cards input[type=checkbox]{display:inline-block;min-width:24px;width:24px;height:24px;min-height:24px;margin:6px 0}
 .payroll-table.mobile-cards tbody>tr>td:first-child{grid-column:1/-1;display:flex;align-items:center;gap:6px;color:#879286;font-size:11px}
 .payroll-table.mobile-cards tbody>tr>td:first-child:before{margin:0}
 .payroll-table.mobile-cards .linked-payroll{background:#edf4e7}
 .mobile-cards tfoot{display:block;background:#edf4e7;padding:12px}
 .mobile-cards tfoot>tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
 .mobile-cards tfoot td{font-size:12px;font-weight:700}.mobile-cards tfoot td.money{font-size:15px}
 .mobile-cards tfoot td:first-child{grid-column:1/-1}
 .expense-table.mobile-cards tbody>tr>td:first-child,.deliveries-table.mobile-cards tbody>tr>td:first-child{grid-column:1/-1}
 .expense-table.mobile-cards tbody>tr>td:last-child,.deliveries-table.mobile-cards tbody>tr>td:last-child{grid-column:auto;align-self:end}
 .box-count-table.aligned-table{min-width:0;width:100%;table-layout:fixed}
 .box-count-table.aligned-table col:first-child{width:72%!important}.box-count-table.aligned-table col:last-child{width:28%!important}
 .box-count-table.aligned-table th{font-size:10px;padding:11px 10px}.box-count-table.aligned-table td,.box-count-table.aligned-table tfoot td{padding:12px 10px;font-size:12px;line-height:1.5;overflow-wrap:anywhere}
 .box-count-table td strong{font-size:12px}.box-count-table td small{font-size:10px;line-height:1.5}.box-count-table .box-count-number{white-space:normal}
 .menu-table.mobile-cards td:first-child{position:static;grid-column:1/-1;background:#edf4e7;padding:9px!important;border:0;font-weight:700}
 .menu-table.mobile-cards tbody>tr{grid-template-columns:1fr}.menu-table.mobile-cards .menu-entry{line-height:1.5}
 .food-category-table.mobile-cards tbody{padding:0}.food-category-table.mobile-cards tbody>tr{display:block;margin:0;border:0;padding:0}
 .food-category-table.mobile-cards tbody>tr>td{padding:14px 12px!important;border-bottom:1px solid #e0e8dc}
 .food-category-table.mobile-cards tbody>tr>td:before{font-size:14px;font-weight:700;color:#315d3c;margin-bottom:12px}
 .food-item,.food-item-labels{grid-template-columns:minmax(0,1fr) 98px 36px;gap:6px}.food-item .text-action{font-size:20px;min-height:44px}
 .food-date-bar{padding:12px;gap:10px;flex-wrap:wrap}.food-date-bar>label{max-width:100%}.food-date-links{flex-wrap:wrap}
 .dialog{width:calc(100% - 20px);max-width:540px;max-height:calc(100dvh - 28px);border-radius:16px}
 .dialog-card{padding:20px 16px;padding-bottom:max(20px,env(safe-area-inset-bottom))}.dialog-head{margin-bottom:16px}.dialog-head h2{font-size:21px;overflow-wrap:anywhere}
 .dialog-head .icon-button{height:40px;width:40px;flex-shrink:0;margin:-6px -6px 0 0}
 .dialog-actions{flex-wrap:wrap;gap:8px}.dialog-actions .button{min-height:44px;height:auto;flex:1;padding:11px;font-size:12px;white-space:normal}
 .team-form{grid-template-columns:minmax(0,1fr)}.team-form>label{grid-column:auto}.team-form>.button{min-height:44px}
 .team-row{grid-template-columns:minmax(0,1fr) auto}.team-user-actions{justify-content:flex-start;gap:10px}.team-user-actions .text-action{font-size:12px;min-height:36px}.team-row button{grid-column:auto;grid-row:auto}
 .inquiry-filters,.inquiry-filters.trash-filters{grid-template-columns:minmax(0,1fr) auto;padding:12px;gap:10px}.inquiry-filters>label:first-child{grid-column:1/-1}
 .inquiry-filters .button{min-height:44px}.inquiry-pagination{padding:14px 12px;gap:8px}.inquiry-actions .text-action{margin:0}
 .inquiry-nav{padding:12px 12px 0}.inquiry-nav button{min-height:44px}
 .toast{left:12px;right:12px;bottom:max(12px,env(safe-area-inset-bottom));font-size:12px;line-height:1.5}
 .login-screen{padding:18px}.login-card{padding:28px 22px}
}

/* Read-only weekly records: deposits, Veracruz, waste and opening adjustments. */
@media(max-width:720px){
 .ledger-table.mobile-cards tbody>tr{gap:13px 12px;margin:10px 0;padding:14px}
 .ledger-table.mobile-cards tbody td{order:3}
 .ledger-table.mobile-cards tbody td[data-field=date]{order:0;font-size:12px;align-self:start}
 .ledger-table.mobile-cards tbody td[data-field=amount]{order:1;font-size:18px;font-weight:700;color:#293b31;text-align:right!important;line-height:1.4;align-self:start}
 .ledger-table.mobile-cards tbody td[data-field=amount]:before{text-align:right}
 .ledger-table.mobile-cards tbody td[data-field=description],.ledger-table.mobile-cards tbody td[data-field=name]{order:2;grid-column:1/-1;font-size:14px;font-weight:600}
 .ledger-table.mobile-cards tbody td[data-field=updated_by]{order:4;font-size:11px;color:#7a877e}
 .ledger-table.mobile-cards tbody td.actions-cell{order:5;grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:8px;border-top:1px solid #edf1ea;padding-top:10px!important}
 .ledger-table.mobile-cards .actions-cell .text-action{min-height:40px;border:1px solid #e0e7dc;border-radius:8px;background:#f9fbf7;padding:9px;font-size:12px;text-align:center}
 .ledger-table.mobile-cards .actions-cell .danger-text{border-color:#efddd7;background:#fff9f7}
 .ledger-table.mobile-cards tfoot>tr{display:flex;align-items:center;justify-content:space-between;gap:12px}
 .ledger-table.mobile-cards tfoot td{font-size:12px}.ledger-table.mobile-cards tfoot td.money{font-size:17px;text-align:right!important}
 .ledger-table.mobile-cards tfoot td:before{display:none}
 .ledger-table.mobile-cards tbody td[colspan]{grid-column:1/-1;line-height:1.6;color:#7a877e;font-size:12px}
}

.g-previous-deficit{display:flex;align-items:center;justify-content:space-between;gap:18px;max-width:550px;background:#edf2e8;border:1px solid #dce5d5;border-radius:12px;margin-top:8px;padding:14px 18px;color:#36523d}.g-previous-deficit strong{white-space:nowrap;font-variant-numeric:tabular-nums}@media(max-width:720px){.g-previous-deficit{padding:12px;gap:12px;line-height:1.5}}

.orders-workspace{padding:20px}.order-companies{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:22px}.order-companies .button{font-size:11px;padding:10px 13px;min-height:40px}.order-doc-tabs{display:flex;gap:26px;border-bottom:1px solid var(--line);margin-bottom:22px}.order-doc-tabs button{padding:12px 5px;border-bottom:3px solid transparent}.order-doc-tabs [aria-selected=true]{border-bottom-color:var(--green);color:var(--green);font-weight:700}.order-document-heading h3{font-size:18px;margin-bottom:8px}.order-document-heading p{font-size:12px}.order-metadata{display:grid;grid-template-columns:repeat(auto-fit,minmax(165px,1fr));gap:14px;margin:20px 0}.order-metadata input{width:100%;margin-top:7px}.order-metadata input[readonly]{background:#f2f5ee;color:#657461}.order-template-note{font-size:12px;color:#74816e;line-height:1.7;max-width:900px}.order-table{min-width:1120px;table-layout:fixed}.order-table th,.order-table td{padding:12px 8px;vertical-align:top}.order-table th{font-size:10px}.order-table th:first-child{width:40px}.order-table th:nth-child(2){width:250px}.order-table th:nth-child(3){width:135px}.order-table th:nth-child(4){width:95px}.order-table th:nth-child(5){width:85px}.order-table th:last-child{width:70px}.order-table input{width:100%;min-width:0;padding:9px 7px;border-radius:7px;font-size:12px}.order-table input[type=number]{text-align:right}.order-table input[name=product]{font-size:11px}.order-table td:nth-child(2)>input{font-size:11px}.order-table tfoot{background:#edf3e7;font-weight:700}.order-presentation{font-size:10px;color:#74816e;margin-top:8px}.order-presentation summary{cursor:pointer}.order-presentation label{font-size:10px;margin-top:10px}.order-presentation input{font-size:12px;max-width:100px;margin-left:8px}.order-presentation[open]{padding-bottom:8px}@media(max-width:720px){.orders-workspace{padding:12px}.order-companies{gap:6px}.order-companies .button{font-size:10px;min-height:38px;padding:8px}.order-metadata{grid-template-columns:1fr 1fr;gap:12px}.order-metadata label{font-size:11px}.order-metadata input,.order-table input{font-size:16px}.order-table tbody td:nth-child(2){grid-column:1/-1}.order-table tbody td:nth-child(1){grid-column:1/-1}.order-table td:nth-child(2)>input{font-size:16px}.order-table tfoot tr{grid-template-columns:1fr 1fr}.order-table tfoot td:first-child{grid-column:1/-1}.order-presentation label{display:block}.order-presentation input{font-size:16px}.order-template-note{font-size:11px}}

.order-table{min-width:950px}.order-table th:first-child{width:32px}.order-table th:nth-child(2){width:210px}.order-table th:nth-child(3){width:115px}.order-table th:nth-child(4){width:80px}.order-table th:nth-child(5){width:70px}.order-table th:last-child{width:60px}.order-table textarea{width:100%;min-width:0;resize:vertical;border:1px solid var(--line);border-radius:7px;padding:9px 7px;font-family:inherit;font-size:11px;line-height:1.5;color:inherit;background:#fff;min-height:56px}.order-table .numeric-value{text-align:right}.order-table th:nth-child(n+4):nth-child(-n+9){text-align:right}@media(max-width:720px){.order-table textarea{font-size:16px;min-height:70px}}

.order-airport-stack{display:grid;gap:14px;align-content:start}.order-metadata{align-items:start}

/* Shared alignment for order and packing-list columns. */
.order-table th,.order-table td,.order-table .numeric-value,.order-table th:nth-child(n+4):nth-child(-n+9){text-align:center;vertical-align:middle}.order-table th:nth-child(2),.order-table tbody td:nth-child(2),.order-table textarea,.order-presentation,.order-table tfoot td:first-child{text-align:left}.order-table input,.order-table input[type=number]{text-align:center}.order-table tfoot strong{display:block;font-size:13px;font-variant-numeric:tabular-nums}.order-total-unit{display:block;font-size:10px;font-weight:500;line-height:1.4;color:#71816b;margin-top:5px}.order-table tfoot td{padding-top:14px;padding-bottom:14px}@media(max-width:720px){.order-table.mobile-cards tbody tr>td,.order-table.mobile-cards tfoot tr>td{text-align:center!important}.order-table.mobile-cards tbody tr>td:nth-child(2),.order-table.mobile-cards tfoot tr>td:first-child{text-align:left!important}.order-table.mobile-cards tfoot td:before{display:none}.order-table.mobile-cards input{ text-align:center}.order-table.mobile-cards textarea{text-align:left}}

.order-document-heading{position:relative;padding-right:155px}.order-delete-company{position:absolute;right:0;top:0;font-size:11px;min-height:36px}.order-delete-confirm{background:#7e352f;color:#fff}.order-delete-confirm:hover{background:#642b26}@media(max-width:720px){.order-document-heading{padding-right:0}.order-delete-company{position:static;margin-bottom:12px;min-height:40px}}

.order-doc-tabs{display:inline-grid;grid-template-columns:repeat(2,minmax(140px,1fr));gap:6px;background:#eaf0e5;border:1px solid #dce5d6;border-radius:14px;padding:6px;margin-bottom:24px}.order-doc-tabs button{min-height:44px;padding:12px 20px;border:1px solid transparent;border-radius:10px;color:#6b7c66;font-size:13px;font-weight:600;transition:background .18s,box-shadow .18s,color .18s}.order-doc-tabs button:hover{background:#f5f8f1;color:#315a3c}.order-doc-tabs [aria-selected=true]{background:#fff;border-color:#d7e2cf;box-shadow:0 3px 10px #24472d17;color:#244d35;font-weight:700}.order-presentation input:not([readonly]){background:#fff;border-color:#bacdb0}@media(max-width:720px){.order-doc-tabs{display:grid;grid-template-columns:1fr 1fr;width:100%;gap:5px}.order-doc-tabs button{padding:11px 8px;font-size:12px}}

.order-table.has-barcode{min-width:1110px}.order-table .barcode-heading{width:150px}.order-table.has-barcode input[aria-label^="Bar Code label"]{font-variant-numeric:tabular-nums}@media(max-width:720px){.order-table.has-barcode tbody td:nth-child(10){grid-column:1/-1}}

.order-document-heading{padding-right:285px}.order-document-actions{position:absolute;right:0;top:0;display:flex;align-items:center;gap:12px}.order-document-actions .order-delete-company{position:static;font-size:10px}.order-document-actions .button{min-height:40px;font-size:11px;padding:10px 14px}@media(max-width:720px){.order-document-heading{padding-right:0}.order-document-actions{position:static;justify-content:space-between;margin:14px 0}.order-document-actions .order-delete-company{margin-bottom:0}}

.order-tariff-stack{display:grid;gap:14px;align-content:start}

.ar-year-control{display:flex;gap:14px;align-items:center}.ar-year-control>label{display:flex;align-items:center;gap:12px;font-size:10px;letter-spacing:1px;color:#71806f}.ar-year-control input{width:100px;font-size:17px;font-weight:700;text-align:center;letter-spacing:0}.ar-workspace{padding:20px}.ar-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;background:#eaf0e5;padding:6px;border:1px solid #dce5d6;border-radius:14px;margin:0 0 24px}.ar-tabs button{padding:13px 10px;border:1px solid transparent;border-radius:10px;font-size:12px;color:#6b7c66;line-height:1.4}.ar-tabs [aria-selected=true]{background:#fff;box-shadow:0 3px 10px #24472d17;border-color:#d7e2cf;color:#244d35;font-weight:700}.ar-heading{position:relative;padding-right:160px;margin-bottom:20px}.ar-heading h3{font-size:18px;margin-bottom:8px}.ar-heading p{font-size:12px}.ar-delete-company{position:absolute;right:0;top:0;font-size:11px}.ar-table{min-width:1650px;table-layout:fixed}.ar-table th,.ar-table td{padding:12px 8px;vertical-align:middle;text-align:center;font-size:12px}.ar-table th{font-size:10px;line-height:1.5}.ar-table th:nth-child(1),.ar-table th:nth-child(2){width:115px}.ar-table th:nth-child(3){width:60px}.ar-table th:nth-child(4){width:130px}.ar-table th:nth-child(5){width:140px}.ar-table th:nth-child(7){width:145px}.ar-table th:nth-child(12){width:200px}.ar-table th:nth-child(13){width:100px}.ar-table tbody td:nth-child(4),.ar-table tbody td:nth-child(5),.ar-table tbody td:nth-child(12){text-align:left}.ar-table input,.ar-table textarea{width:100%;min-width:0;font-family:inherit;font-size:12px;padding:9px 6px;border:1px solid var(--line);border-radius:7px}.ar-table input[type=number]{text-align:center}.ar-table textarea{min-height:60px;resize:vertical}.ar-table tfoot{background:#edf3e7;font-weight:700}.ar-table tfoot td{padding-block:16px;font-size:13px;text-align:center;font-variant-numeric:tabular-nums}.ar-table tfoot td:first-child{text-align:left}.ar-due{color:#b42318;font-weight:700;font-variant-numeric:tabular-nums}.ar-paid{color:#23724d;font-weight:700;font-variant-numeric:tabular-nums}.ar-summary{min-width:820px}.ar-summary th:first-child{width:180px}.ar-summary th:nth-child(n+2){width:auto}.ar-summary td:first-child{text-align:left}.ar-summary td:nth-child(4),.ar-summary td:nth-child(5){text-align:center}.ar-summary .text-action{font-size:12px;text-align:left}.ar-help,.ar-empty{font-size:12px;color:#71806f;line-height:1.7;margin-top:18px}.ar-editor .payroll-toolbar{padding-inline:0}@media(max-width:720px){.ar-workspace{padding:12px}.ar-year-control{display:grid;grid-template-columns:40px 1fr 40px;gap:8px;width:100%}.ar-year-control>label{justify-content:center}.ar-year-control input{font-size:17px;width:100px;min-height:44px}.ar-year-control #ar-year-current{grid-column:1/-1;min-height:36px}.ar-tabs{gap:4px;padding:5px;margin-bottom:18px}.ar-tabs button{font-size:10px;padding:12px 5px;min-height:52px}.ar-heading{padding-right:0}.ar-delete-company{position:static;margin-bottom:10px;min-height:40px}.ar-heading h3{font-size:16px}.ar-table input,.ar-table textarea{font-size:16px}.ar-table.mobile-cards tbody td:nth-child(5),.ar-table.mobile-cards tbody td:nth-child(12),.ar-table.mobile-cards tbody td:nth-child(13){grid-column:1/-1}.ar-summary.mobile-cards tbody td:first-child{grid-column:1/-1}.ar-summary.mobile-cards td[data-label=COMPANY]{font-weight:700}.ar-table.mobile-cards tfoot td.ar-due,.ar-table.mobile-cards tfoot td.ar-paid{grid-column:1/-1}.ar-table.mobile-cards .ar-due{color:#b42318}.ar-table.mobile-cards .ar-paid{color:#23724d}}

@media(min-width:721px){
 .ar-table-scroll{max-height:calc(100dvh - 180px);overflow:auto;overscroll-behavior:auto;scroll-padding-top:70px}
 .ar-table-scroll:focus-visible{outline:2px solid #4b7b39;outline-offset:3px}
 .ar-table-scroll .ar-table thead th{position:sticky;top:0;z-index:2;background:#f3f7ef;box-shadow:inset 0 -1px #dce5d6}
}

.ar-table tfoot td.ar-total-value{text-align:center;padding-inline:8px;font-variant-numeric:tabular-nums}
.ar-table input[type=number]{appearance:textfield;-moz-appearance:textfield;font-variant-numeric:tabular-nums}
.ar-table input[type=number]::-webkit-inner-spin-button,.ar-table input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}

.ar-download-pdf{display:block;margin-top:14px;min-height:40px;font-size:12px}

.ar-edit-table th:last-child,.ar-edit-table tbody td:last-child{white-space:nowrap;text-align:center}


@media(min-width:721px){
 :is(.ar-wide,.pedidos-wide,.menu-wide) .sidebar{flex-basis:76px;width:76px;padding:20px 8px 14px}
 :is(.ar-wide,.pedidos-wide,.menu-wide) .company-brand{padding:0 0 22px}
 :is(.ar-wide,.pedidos-wide,.menu-wide) .company-logo{content:url('/static/assets/follamex-icon.png');width:44px;height:44px;padding:0;border-radius:10px;margin:auto}
 :is(.ar-wide,.pedidos-wide,.menu-wide) .side-label,:is(.ar-wide,.pedidos-wide,.menu-wide) .sync-indicator,:is(.ar-wide,.pedidos-wide,.menu-wide) .user-label{display:none}
 :is(.ar-wide,.pedidos-wide,.menu-wide) .nav-item>span:last-child{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 :is(.ar-wide,.pedidos-wide,.menu-wide) .nav-item{justify-content:center;padding:10px 4px}
 :is(.ar-wide,.pedidos-wide,.menu-wide) .user-chip{flex-wrap:wrap;justify-content:center;gap:7px}
 :is(.ar-wide,.pedidos-wide,.menu-wide) .page-content{max-width:none;padding:24px 16px 28px}
 :is(.ar-wide,.pedidos-wide,.menu-wide) .ar-workspace{padding:14px}
 .ar-wide .ar-table{min-width:0;width:100%;table-layout:fixed}
 .ar-wide .ar-table th:nth-child(n){width:auto;font-size:9px;letter-spacing:.2px;padding:10px 4px;overflow-wrap:anywhere}
 .ar-wide .ar-table th:nth-child(1),.ar-wide .ar-table th:nth-child(2){width:7%}
 .ar-wide .ar-table th:nth-child(3){width:4%}
 .ar-wide .ar-table th:nth-child(4){width:7%}
 .ar-wide .ar-table th:nth-child(5){width:11%}
 .ar-wide .ar-table th:nth-child(6),.ar-wide .ar-table th:nth-child(8),.ar-wide .ar-table th:nth-child(11){width:8%}
 .ar-wide .ar-table th:nth-child(7){width:7%}
 .ar-wide .ar-table th:nth-child(9),.ar-wide .ar-table th:nth-child(10){width:6%}
 .ar-wide .ar-table th:nth-child(12){width:21%}
 .ar-wide .ar-edit-table th:nth-child(12){width:15%}
 .ar-wide .ar-edit-table th:nth-child(13){width:6%}
 .ar-wide .ar-table td{font-size:10px;padding:9px 4px;overflow-wrap:anywhere}
 .ar-wide .ar-table input,.ar-wide .ar-table textarea{font-size:10px;padding:7px 3px}
 .ar-wide .ar-table .text-action{font-size:10px;padding:5px 2px}
 .ar-wide .ar-table tfoot td.ar-total-value{font-size:10px;padding-inline:4px}
 .ar-wide .ar-table input[type=date]{font-size:9px;padding-inline:2px;letter-spacing:-.2px}
 .ar-wide .ar-table input[type=date]::-webkit-datetime-edit{padding:0}
 .ar-wide .ar-table input[type=date]::-webkit-calendar-picker-indicator{width:10px;height:12px;margin:0;padding:0}
 .ar-wide .ar-table textarea[aria-label^="INVOICE NUMBER"]{min-height:50px;resize:vertical}
}

#save-all-button{white-space:nowrap;min-height:36px;font-size:12px;padding:9px 14px}
#save-all-button:disabled{opacity:.5;cursor:default;box-shadow:none}
@media(max-width:720px){.top-actions{gap:12px;flex-wrap:wrap;justify-content:space-between}#save-all-button{min-height:40px;font-size:12px}}

@media(min-width:721px){
 .ar-table.ar-summary thead th,.ar-table.ar-summary tbody td,.ar-table.ar-summary tfoot td{text-align:center}
 .ar-table.ar-summary tbody td .text-action{text-align:center}
}

.pedidos-workspace{padding:20px}.pedido-editor-section{border:1px solid #dce5d6;border-radius:14px;padding:18px;margin-bottom:30px}.pedido-editor-heading,.pedido-overview-bar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}.pedido-editor-heading h3,.pedido-overview-bar h3{font-size:18px;margin-bottom:7px}.pedido-heading-actions{display:flex;gap:18px;flex-wrap:wrap}.pedido-box-count{font-size:12px;color:#71806f;font-variant-numeric:tabular-nums}.pedido-section-heading h3{font-size:19px;margin:0 0 7px}.pedido-section-heading p{font-size:12px;margin-bottom:20px}.pedido-table{table-layout:fixed}.pedido-table th{font-size:10px;line-height:1.5;text-align:center;background:#f3f7ef}.pedido-table td{font-size:12px;padding:10px 8px;text-align:center;vertical-align:middle;overflow-wrap:anywhere}.pedido-table input,.pedido-table textarea,.pedido-table select{font:inherit;width:100%;min-width:0;border:1px solid #dce4de;border-radius:7px;padding:8px 6px}.pedido-table input{text-align:center;height:38px;appearance:textfield}.pedido-table input::-webkit-inner-spin-button,.pedido-table input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.pedido-table textarea{min-height:54px;resize:vertical}.pedido-table tbody td:has(textarea),.pedido-table td.pedido-company{text-align:left}.pedido-company{font-weight:700}.pedido-table tfoot td{background:#edf3e7;font-weight:700;text-align:center;font-variant-numeric:tabular-nums}.pedido-table tfoot td:first-child{text-align:left}.pedido-table .text-action{font-size:11px}.pedido-location{display:inline-block;border-radius:7px;padding:6px 11px;font-size:11px;font-weight:700}.pedido-location.sf{background:#e6f1e3;color:#315f3b}.pedido-location.ver{background:#edf0fa;color:#465c91}.pedido-overview{border-top:1px solid #dce5d6;padding-top:25px}.pedido-editor .payroll-toolbar{padding-inline:0}
@media(min-width:721px){.pedido-scroll{max-height:calc(100dvh - 190px);overscroll-behavior:auto;scroll-padding-top:65px}.pedido-scroll thead th{position:sticky;top:0;z-index:2;box-shadow:inset 0 -1px #dce5d6}.pedido-scroll:focus-visible{outline:2px solid #4b7b39;outline-offset:2px}}
@media(max-width:720px){.module-nav:has([data-module="D"]:not([hidden])){grid-template-columns:repeat(4,minmax(0,1fr))}.pedidos-workspace{padding:12px}.pedido-editor-section{padding:12px;margin-bottom:22px}.pedido-editor-heading{flex-direction:column;align-items:flex-start}.pedido-editor-heading h3{font-size:16px}.pedido-heading-actions{justify-content:space-between;width:100%;gap:10px}.pedido-heading-actions .text-action{font-size:11px;min-height:40px}.pedido-table input,.pedido-table textarea,.pedido-table select{font-size:16px}.pedido-table.mobile-cards tbody td:first-child,.pedido-table.mobile-cards tbody td:has(textarea){grid-column:1/-1}.pedido-table.mobile-cards tfoot td.pedido-total{text-align:left}.pedido-section-heading h3{font-size:17px}}

.pedido-location.pending{background:#f0f2ee;color:#73806e}

.pedido-template-help{font-size:11px;line-height:1.6;color:#71806f;margin:0 0 16px}

@media(min-width:721px){.pedidos-wide .pedidos-workspace{padding:14px}}

.pedido-overview>.ar-tabs{grid-template-columns:repeat(5,minmax(0,1fr))}.pedido-month-controls{display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap;margin-bottom:18px}.pedido-month-controls h3{font-size:18px;margin:0 0 8px}.pedido-month-controls p{font-size:12px;margin:0}.pedido-month-picker{display:flex;gap:10px;align-items:center}.pedido-month-picker label{font-size:11px;color:#71806f}.pedido-month-picker input{display:block;margin-top:6px;width:180px;font-size:13px}.pedido-month-total{display:flex;align-items:center;justify-content:space-between;background:#edf3e7;border:1px solid #dce5d6;padding:16px 20px;border-radius:12px;margin-bottom:24px;color:#315a3c;font-size:13px}.pedido-month-total strong{font-size:20px;font-variant-numeric:tabular-nums}.pedido-month-week{margin-bottom:26px;padding-bottom:24px;border-bottom:1px solid #e2e8de}.pedido-month-week .pedido-overview-bar p{font-size:11px;margin:0}.pedido-month-week .pedido-overview-bar h3{font-size:16px;margin-bottom:5px}.pedido-month-scroll{max-height:none;min-height:0}.pedido-month-table tbody td:nth-child(2){text-align:left}.pedido-month-grand h3{font-size:16px;margin-bottom:16px}.pedido-month-product-totals{min-width:600px;table-layout:fixed}.pedido-month-product-totals th,.pedido-month-product-totals td{text-align:center}.pedido-month-product-totals td{background:#edf3e7;font-weight:700}.pedido-month-grand .table-wrap{min-height:0}
@media(max-width:720px){.pedido-overview>.ar-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}.pedido-month-controls{align-items:flex-start}.pedido-month-controls h3{font-size:16px}.pedido-month-picker{width:100%;justify-content:space-between}.pedido-month-picker label{flex:1;text-align:center}.pedido-month-picker input{width:100%;font-size:16px}.pedido-month-week .pedido-overview-bar{align-items:flex-start}.pedido-month-week .pedido-overview-bar h3{font-size:15px}.pedido-month-total{padding:14px}.pedido-month-table.mobile-cards tbody td:nth-child(2){grid-column:1/-1}.pedido-month-grand table.mobile-cards tbody tr{background:#edf3e7}}

/* Pedidos: same centered alignment for capture and all consolidated views. */
.pedidos-workspace table th,.pedidos-workspace table td,.pedidos-workspace table input,.pedidos-workspace table textarea,.pedidos-workspace table select{text-align:center!important}
.pedidos-workspace table select{text-align-last:center}

/* Shared outlined PDF download button for Cuentas por Cobrar and Pedidos. */
button.pdf-download-button{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;min-height:44px;height:auto;padding:12px 16px;border:1px solid #e2e8e3;border-radius:12px;background:#fff;color:#43534a;font-size:12px;font-weight:700;line-height:1.4;white-space:nowrap;text-decoration:none;box-shadow:none}
button.pdf-download-button:hover{background:#fbfcfb;border-color:#cdd8d0;text-decoration:none}
button.pdf-download-button:focus-visible{outline:2px solid #4b7b39;outline-offset:3px}

.ar-heading{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:20px;padding-right:0;align-items:start}.ar-heading>h3,.ar-heading>p{grid-column:1}.ar-heading>p{margin-bottom:0}.ar-heading-actions{grid-column:2;grid-row:1/3;display:flex;align-items:center;justify-content:flex-end;gap:12px}.ar-heading-actions .ar-delete-company{position:static;margin:0;white-space:nowrap}
@media(max-width:720px){.ar-heading{grid-template-columns:minmax(0,1fr);row-gap:10px}.ar-heading-actions{grid-column:1;grid-row:auto;flex-wrap:wrap;justify-content:flex-end}.ar-heading-actions .ar-delete-company{min-height:40px}}

.ar-heading-actions .ar-download-pdf{margin-top:0}

/* Mobile navigation lives in the white sticky control bar. */
.mobile-module-switch{display:none}
@media(max-width:720px){
 .app-shell>.sidebar{display:none}
 .main-area>.topbar{position:sticky;top:0;z-index:6;background:#fff;padding-top:max(10px,env(safe-area-inset-top));box-shadow:0 2px 9px #173e2e09}
 .topbar .mobile-app-header{display:flex;gap:8px;margin-bottom:10px}
 .topbar .mobile-home-link{background:none;padding:0;border-radius:0}
 .topbar .mobile-home-link img{width:100px;height:36px;object-fit:contain}
 .mobile-module-switch{display:block;flex:1;min-width:0}
 .mobile-module-switch>span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 .mobile-module-switch select{width:100%;min-width:0;height:44px;font-size:13px;font-weight:600;padding:0 8px;color:#315a3c;background:#f7faf5;border-color:#dce5d6;text-overflow:ellipsis}
 .topbar .mobile-account-button{flex:0 0 42px;width:42px;min-height:44px;justify-content:center;gap:0;padding:0;font-size:0;background:#fff;color:#315a3c;border-color:#dce5d6}
 .topbar .mobile-account-button svg{width:20px;height:20px}
 .topbar .mobile-account-button:hover{color:#ed1c24}
}
/* Compact mobile control bar: module, week and quick actions. */
@media(max-width:720px){
 .main-area>.topbar{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px;padding:8px 12px;padding-top:max(8px,env(safe-area-inset-top));border-bottom:1px solid #e4eae3;box-shadow:0 3px 12px #173e2e08}
 .topbar .mobile-app-header{grid-column:1/-1;grid-row:1;margin:0;gap:8px}
 .topbar .mobile-home-link img{width:84px;height:32px}
 .mobile-module-switch select{height:38px;border-radius:11px;background:#f4f7f1;border-color:#e4eadf;font-size:12px;padding-inline:10px}
 .topbar .mobile-account-button{width:36px;flex-basis:36px;min-height:38px;border-radius:11px;background:#fafcf8;border-color:#e4eadf}
 .topbar .mobile-account-button svg{width:18px;height:18px}
 .topbar .week-control:not([hidden]){display:contents}
 .topbar .week-control>div{grid-column:2/6;grid-row:2;display:grid;gap:2px;min-width:0;align-content:center;justify-items:center}
 .topbar .week-control #week-number{font-size:9px;letter-spacing:.7px;line-height:1.2}
 .topbar .week-control strong{font-size:11px;line-height:1.3;white-space:nowrap}
 .topbar #week-prev{grid-column:1;grid-row:2;justify-self:start}
 .topbar #week-next{grid-column:6;grid-row:2;justify-self:end}
 .topbar .week-arrow{width:32px;height:32px;font-size:23px;border-radius:9px;background:#f4f7f1}
 .topbar #week-today{grid-column:1/3;grid-row:3}
 .topbar #week-closed{grid-column:3/5;grid-row:3}
 .topbar .top-actions{display:contents}
 .topbar #save-all-button{grid-column:5/7;grid-row:3;min-height:32px;height:32px;margin:0;font-size:10px;padding:0 6px;border-radius:9px;white-space:nowrap;box-shadow:none}
 .topbar .week-control .button{min-height:32px;height:32px;margin:0;font-size:10px;padding:0 6px;border-radius:9px;border-color:#e4eae3;white-space:nowrap}
 .topbar .sync-status{position:absolute;right:11px;top:8px;width:7px;height:7px;display:block;margin:0;pointer-events:none}
 .topbar .sync-status .pulse{display:block;width:6px;height:6px;box-shadow:0 0 0 2px #fff}
 .topbar #sync-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 .topbar #ar-year-control{grid-column:1/-1;grid-row:2;grid-template-columns:32px minmax(0,1fr) 32px auto;gap:6px}
 .topbar #ar-year-control>label{gap:6px;font-size:9px}
 .topbar #ar-year-control input{height:32px;min-height:32px;font-size:14px;width:76px}
 .topbar #ar-year-control .icon-button{width:32px;height:32px;font-size:23px}
 .topbar #ar-year-current{grid-column:4;min-height:32px;height:32px;font-size:10px;padding:0 8px}
 .topbar:has(#ar-year-control:not([hidden])) #save-all-button{grid-column:5/7;grid-row:3}
}
@media(max-width:720px){
 .topbar .mobile-module-switch{flex:0 1 190px;margin-left:auto}
 .topbar .mobile-module-switch select{height:32px;min-height:32px;border-radius:9px;font-size:11px;padding-inline:8px}
}

@media(max-width:720px){
 .topbar .mobile-app-header{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;align-items:center;gap:8px}
 .topbar .mobile-module-switch{grid-column:1;grid-row:1;position:relative;display:block;width:44px;height:36px;min-width:0;margin:0;border:1px solid #dfe7d9;border-radius:10px;background:#f4f7f1}
 .topbar .mobile-module-switch:before{content:attr(data-letter);position:absolute;left:9px;top:50%;transform:translateY(-50%);font:700 15px system-ui;color:#315a3c;line-height:1}
 .topbar .mobile-module-switch:after{content:'';position:absolute;right:7px;top:13px;width:5px;height:5px;border-right:1.5px solid #71806f;border-bottom:1.5px solid #71806f;transform:rotate(45deg);pointer-events:none}
 .topbar .mobile-module-switch[data-letter="consultas"]:before{content:'';width:17px;height:17px;left:6px;background:center/contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23315a3c' stroke-width='1.7'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3 6 9 7 9-7'/%3E%3C/svg%3E")}
 .topbar .mobile-module-switch select{position:absolute;inset:0;opacity:0;width:100%;height:100%;min-height:0;padding:0;font-size:16px;cursor:pointer}
 .topbar .mobile-module-switch:focus-within{outline:2px solid #4b7b39;outline-offset:2px}
 .topbar .mobile-home-link{grid-column:2;grid-row:1;justify-self:center}
 .topbar .mobile-home-link img{width:112px;height:36px}
 .topbar .mobile-account-button{grid-column:3;grid-row:1;justify-self:end}
}

.pedido-upcoming-heading{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:20px;align-items:start;margin-bottom:20px}.pedido-upcoming-heading>h3,.pedido-upcoming-heading>p{grid-column:1}.pedido-upcoming-heading>p{margin-bottom:0}.pedido-upcoming-heading>.pdf-download-button{grid-column:2;grid-row:1/3}
@media(max-width:720px){.pedido-upcoming-heading{column-gap:10px}.pedido-upcoming-heading>p{grid-column:1/-1;margin-top:8px}.pedido-upcoming-heading>.pdf-download-button{grid-row:1;font-size:11px;padding:10px 12px}}

/* Keep iOS date controls inside the packing-list metadata column. */
@media(max-width:720px){
 .order-metadata{grid-template-columns:repeat(2,minmax(0,1fr))}
 .order-metadata>*,.order-metadata label,.order-tariff-stack,.order-airport-stack{min-width:0}
 .order-metadata input{min-width:0;max-width:100%;box-sizing:border-box;height:44px;min-height:44px}
 .order-metadata input[type=date]{display:block;appearance:none;-webkit-appearance:none;min-inline-size:0;inline-size:100%;max-inline-size:100%;height:44px;min-height:44px;padding:10px 8px;font-size:16px;line-height:22px}
 .order-metadata input[type=date]::-webkit-date-and-time-value{min-width:0;text-align:left;margin:0;padding:0;line-height:22px}
 .order-metadata input[type=date]::-webkit-datetime-edit{min-width:0;padding:0;line-height:22px}
}

/* Constrain native iPhone dates to their existing receivables grid cells. */
@media(max-width:720px){
 .ar-table.mobile-cards input[type=date]{display:block;appearance:none;-webkit-appearance:none;box-sizing:border-box;min-inline-size:0;inline-size:100%;max-inline-size:100%;height:44px;min-height:44px;font-size:16px;line-height:26px;text-align:center;overflow:hidden}
 .ar-table.mobile-cards input[type=date]::-webkit-date-and-time-value{min-width:0;max-width:100%;margin:0;padding:0;line-height:26px;text-align:center}
 .ar-table.mobile-cards input[type=date]::-webkit-datetime-edit{min-width:0;padding:0;line-height:26px}
}

/* Palm payments show the gross value, advance used and new cash outflow. */
.palm-advance-table{min-width:1260px}.palm-advance-table select{width:100%;min-width:0;padding:9px 6px;border:1px solid var(--line);border-radius:7px;font:inherit;background:#fff;color:inherit}.ledger-table[data-section=adelantos]{min-width:1050px}
@media(max-width:720px){.palm-advance-table select{font-size:16px}.ledger-table[data-section=adelantos].mobile-cards td:nth-child(7){grid-column:1/-1}}

.advance-delivery{display:flex;align-items:center;gap:6px;flex-wrap:wrap;padding:8px 0;border-bottom:1px solid var(--line)}.advance-delivery span{flex-basis:100%;line-height:1.5}.ledger-table[data-section=adelantos] details summary{cursor:pointer;color:var(--green)}

/* Executive weekly overview: read-only, concise and responsive. */
.g-summary-tables{margin-top:20px;padding:20px;background:#fff;border:1px solid #dce5d7;border-radius:12px;min-width:0}
.g-summary-tables>h3{font-size:18px;color:#2a5036;margin:0 0 8px}
.g-summary-tables>.table-wrap{margin-top:16px;container-type:inline-size}
.g-summary-table.aligned-table{width:100%;min-width:0;table-layout:fixed}
.g-summary-table caption{text-align:left;padding:14px 12px;background:#edf3e7;color:#2a5036;font-size:15px;font-weight:700}
.g-summary-table.aligned-table th,.g-summary-table.aligned-table td{padding:clamp(6px,1cqi,12px) clamp(1px,.5cqi,8px);font-size:clamp(5px,1.25cqi,12px);line-height:1.5;overflow-wrap:anywhere}
.g-summary-table.aligned-table th{font-size:clamp(4px,1.05cqi,10px);letter-spacing:0}
.g-summary-table tfoot{background:#edf3e7;font-weight:700}
.g-summary-table .numeric-value{text-align:right;font-variant-numeric:tabular-nums}
.g-summary-table.aligned-table .money{white-space:normal;overflow-wrap:anywhere}
@media(max-width:720px){.g-summary-tables{padding:14px 6px}.g-summary-table caption{padding:12px 6px;font-size:14px}}
@media(min-width:851px){.g-navigation{grid-template-columns:repeat(7,minmax(0,1fr))}}
.g-executive{min-width:0}.g-executive-lead{padding:22px 24px;border:1px solid #d9e4d5;background:#fff;border-radius:14px;margin-bottom:16px}.g-executive-kicker{font-size:10px;letter-spacing:1.4px;font-weight:700;color:#648158}.g-executive-lead h3{font-size:24px;letter-spacing:-.6px;color:#244d35;margin:10px 0 8px}.g-executive-lead>p{font-size:12px;color:#728171;line-height:1.6;margin:0}.g-executive-status{margin-top:16px;padding:13px 16px;border-radius:9px;background:#f2f5ef;color:#566750;font-weight:700;font-size:14px;line-height:1.5}.g-executive-status.is-good{background:#eaf3e5;color:#315d3b}.g-executive-status.is-danger{background:#fff0ed;color:#a03529}.g-executive-alerts{margin:12px 0 0;padding-left:20px;color:#a03529;font-size:12px;line-height:1.8}.g-executive-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.g-executive-box{padding:20px;background:#fff;border:1px solid #dce5d7;border-radius:12px;min-width:0;display:flex;flex-direction:column;align-items:stretch}.g-executive-box h3{font-size:16px;color:#2a5036;margin:0 0 8px}.g-executive-caption{font-size:11px;color:#74826e;line-height:1.7;margin:0 0 10px;overflow-wrap:anywhere}.g-executive-box dl{margin:0 0 10px}.g-executive-box dl>div{display:flex;justify-content:space-between;gap:18px;border-bottom:1px solid #edf1e9;padding:11px 0;font-size:12px;line-height:1.5}.g-executive-box dt{color:#657262}.g-executive-box dd{margin:0;text-align:right;color:#2c4433;font-weight:600;font-variant-numeric:tabular-nums}.g-executive-box .is-total{border-bottom:0;border-top:1px solid #dce5d6;margin-top:4px;font-weight:700}.g-executive-box .is-total dt,.g-executive-box .is-total dd{color:#244e34}.g-executive-detail{margin-top:auto;align-self:flex-start;color:#3e7049;font-size:11px;padding:8px 0;min-height:34px}.g-executive-box dd.is-negative{color:#b42318}.g-executive-box dd.is-positive{color:#23724d}.g-executive-footnote{margin:16px 4px 0;color:#81907c;font-size:11px;line-height:1.7}
@media(max-width:720px){.g-executive-grid{grid-template-columns:1fr;gap:12px}.g-executive-lead{padding:18px 16px}.g-executive-lead h3{font-size:22px}.g-executive-box{padding:17px 15px}.g-executive-box dl>div{gap:12px}.g-executive-box dd{max-width:52%;overflow-wrap:anywhere}.g-executive-status{font-size:13px}}

@media(max-width:720px){.g-navigation #g-tab-resumen{grid-column:1/-1;justify-self:center;width:calc(50% - 2px)}}

/* Company product catalog and document selectors. */
.order-doc-tabs{grid-template-columns:repeat(3,minmax(130px,1fr))}.order-table select{display:block;width:100%;max-width:100%;min-width:0;padding:10px 7px;border:1px solid var(--line);border-radius:7px;background:#fff;color:inherit;font-family:inherit;font-size:11px}.order-table input[readonly]{background:#f5f7f2;color:#637260}.order-catalog h3{font-size:18px;color:#244d35}.order-catalog-table{width:100%;min-width:900px;table-layout:fixed}.order-catalog-table th,.order-catalog-table td{padding:12px 8px;text-align:center;vertical-align:middle}.order-catalog-table th{font-size:10px}.order-catalog-table th:first-child{width:30%;text-align:left}.order-catalog-table th:nth-child(2){width:18%}.order-catalog-table th:last-child{width:80px}.order-catalog-table input,.order-catalog-table textarea{width:100%;min-width:0;padding:10px 7px;border:1px solid var(--line);border-radius:7px;background:#fff;color:inherit;font:inherit;font-size:12px}.order-catalog-table input[type=number]{text-align:center}.order-catalog-table textarea{resize:vertical;line-height:1.5}.order-presentation p{font-size:10px;line-height:1.6;margin:8px 0 0;color:#74816e}
@media(max-width:720px){.order-doc-tabs{grid-template-columns:repeat(3,minmax(0,1fr))}.order-doc-tabs button{font-size:11px;padding:11px 5px}.order-table select,.order-catalog-table input,.order-catalog-table textarea{font-size:16px}.order-catalog-table.mobile-cards td:first-child{grid-column:1/-1}.order-presentation p{font-size:11px}}

/* Facturación y envíos: documentos privados por compañía y semana. */
.docs-workspace{padding:22px;min-width:0}.docs-intro{color:#6d7c6c;font-size:13px;line-height:1.7;margin:18px 0}.docs-file-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.docs-card{border:1px solid #dce4d7;border-radius:18px;padding:20px;background:#fff;min-width:0}.docs-card h3{font-size:17px;line-height:1.35;margin:0 0 10px;color:#335b3c}.docs-card-top{display:flex;justify-content:space-between;align-items:center;gap:12px}.docs-card-top .button{white-space:nowrap;font-size:12px;padding:9px 13px}.docs-empty{padding:18px 0;color:#889184;font-size:13px}.docs-file{border-top:1px solid #edf0e9;padding:15px 0;display:flex;flex-direction:column;gap:7px}.docs-file strong{overflow-wrap:anywhere;font-size:14px}.docs-file small{font-size:11px;color:#7a8676}.docs-file-actions{display:flex;gap:18px;align-items:center;flex-wrap:wrap}.docs-file-actions .text-action{font-size:12px}.docs-versions{margin-top:20px}.docs-versions summary{cursor:pointer;color:#52743c;font-weight:600}.docs-connection{display:flex;justify-content:space-between;gap:14px;align-items:center;background:#f5f7f1;border-radius:14px;padding:16px 20px;margin:20px 0;flex-wrap:wrap}.docs-tag{font-size:11px;background:#eef1e8;padding:5px 10px;border-radius:20px;color:#697b63;display:inline-block}.docs-sent{background:#e6f1e3;color:#42732c}.docs-tabs{display:flex;gap:6px;background:#edf1e7;padding:6px;border-radius:15px;margin:22px 0}.docs-tabs button{flex:1;box-shadow:none;border:0;background:transparent;font-size:13px;padding:14px 10px;min-width:0}.docs-tabs button[aria-selected=true]{background:#fff;box-shadow:0 3px 12px #2a4c2510}.docs-contact-picker{display:flex;gap:10px;margin:20px 0;flex-wrap:wrap}.docs-form{display:flex;flex-direction:column;gap:18px;max-width:850px}.docs-form label,.docs-compose>label{display:flex;flex-direction:column;gap:8px;color:#53654f;font-weight:600;font-size:13px}.docs-form input,.docs-compose input[type=text],.docs-compose textarea{width:100%;min-width:0;border:1px solid #dce4d7;border-radius:12px;padding:12px 14px;font:inherit;font-weight:400;background:#fff;box-sizing:border-box;color:#24382b}.docs-form input[type=file]{font-size:13px}.docs-form .button{align-self:flex-start}.docs-stages{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:24px 0}.docs-stage{display:flex;flex-direction:column;align-items:flex-start;gap:12px;text-align:left;border:1px solid #dce4d7;border-radius:16px;background:#fafbf8;color:#5e7753;padding:18px;cursor:pointer}.docs-stage span{font-size:12px;letter-spacing:.12em;color:#8aaa74}.docs-stage strong{font-size:14px}.docs-stage[aria-pressed=true]{background:#315a3c;color:#fff;border-color:#315a3c}.docs-compose{display:flex;flex-direction:column;gap:20px}.docs-addresses{display:grid;grid-template-columns:1fr 1fr;gap:18px}.docs-addresses label{display:flex;flex-direction:column;gap:8px;font-weight:600;font-size:13px}.docs-attachments{border:1px solid #e4e9df;border-radius:14px;padding:14px 18px;min-width:0}.docs-attachments legend{font-weight:600;color:#4a6743;padding:0 7px}.docs-check{display:grid;grid-template-columns:20px minmax(0,1fr);column-gap:10px;row-gap:4px;align-items:center;padding:12px 0;border-bottom:1px solid #f0f2ec;font-size:13px;overflow-wrap:anywhere}.docs-check:last-child{border:0}.docs-check input{width:17px;height:17px;accent-color:#4d7d37;grid-column:1}.docs-check small{grid-column:2;color:#87917f;font-size:11px}.docs-warning{background:#fcf5e8;border:1px solid #eee0bf;color:#836d3a;padding:12px 16px;border-radius:12px;font-size:13px;line-height:1.6}.docs-dialog-card{max-width:850px;width:min(850px,calc(100vw - 40px))}.docs-preview-meta{display:grid;grid-template-columns:70px minmax(0,1fr);gap:12px;font-size:13px}.docs-preview-meta dt{font-weight:600;color:#718069}.docs-preview-meta dd{margin:0;overflow-wrap:anywhere}.docs-message{white-space:pre-wrap;overflow-wrap:anywhere;font:14px/1.7 inherit;background:#f8faf5;padding:20px;border-radius:12px}.docs-preview-files{display:flex;flex-direction:column;gap:12px;margin:20px 0}.docs-preview-files a{overflow-wrap:anywhere}.docs-history{display:flex;flex-direction:column;gap:15px}.docs-history-row{display:flex;align-items:center;justify-content:space-between;gap:20px}.docs-history-row h3{margin:10px 0;font-size:15px}.docs-history-row p{margin:5px 0;font-size:13px;overflow-wrap:anywhere}.docs-history-row small{color:#88907f;font-size:11px}
@media(max-width:760px){.docs-workspace{padding:14px}.docs-file-grid{grid-template-columns:1fr}.docs-card{padding:16px;border-radius:16px}.docs-stages{gap:7px}.docs-stage{padding:12px 9px;border-radius:12px}.docs-stage strong{font-size:11px;line-height:1.5}.docs-tabs{gap:2px}.docs-tabs button{font-size:11px;padding:12px 5px}.docs-addresses{grid-template-columns:1fr}.docs-form input,.docs-compose input[type=text],.docs-compose textarea{font-size:16px}.docs-connection{padding:12px}.docs-connection strong{font-size:13px}.docs-history-row{flex-direction:column;align-items:stretch}.docs-history-row .button{align-self:flex-start}.docs-dialog-card{width:100%;padding:18px}.docs-modal{max-width:calc(100vw - 24px);width:calc(100vw - 24px);box-sizing:border-box}.docs-preview-meta{grid-template-columns:50px minmax(0,1fr);font-size:12px}.docs-message{padding:14px;font-size:13px}.docs-contact-picker .button{font-size:12px;padding:12px}.docs-file-actions{gap:14px}.docs-card-top h3{font-size:15px}}
.docs-tabs .button.subtle{background:transparent;color:#6a7d5d}.docs-tabs .button.subtle[aria-selected=true]{background:#fff;color:#315a3c;box-shadow:0 3px 12px #2a4c2510}.docs-stage small{font-size:11px;line-height:1.4;opacity:.8}.docs-message{font-family:inherit;font-size:14px;line-height:1.7}

/* Keep document dialogs and their file controls inside one shared width. */
.docs-modal{width:min(760px,calc(100vw - 32px));max-width:calc(100vw - 32px);box-sizing:border-box;overflow-x:hidden}
.docs-modal.docs-upload-modal{width:min(560px,calc(100vw - 32px))}
.docs-modal .docs-dialog-card{width:100%;max-width:none;min-width:0;box-sizing:border-box}
.docs-modal .dialog-head h2{min-width:0;overflow-wrap:anywhere;line-height:1.35;margin:0}
.docs-modal .dialog-head .icon-button{flex:0 0 36px;width:36px;height:36px;margin:0;padding:0;align-self:flex-start}
.docs-modal .docs-form,.docs-modal .docs-form label{min-width:0;max-width:100%}
.docs-modal input[type=file]{width:100%;max-width:100%;min-width:0;height:auto;min-height:52px;line-height:1.4;box-sizing:border-box;font-size:13px;padding:10px;overflow:hidden;text-overflow:ellipsis}
.docs-modal input[type=file]::file-selector-button{font:inherit;padding:8px 10px;margin-right:10px;border:1px solid #dce4d7;border-radius:8px;background:#f5f7f1;color:#435b3b;cursor:pointer}
@media(max-width:760px){.docs-modal,.docs-modal.docs-upload-modal{max-width:calc(100vw - 24px);width:calc(100vw - 24px)}.docs-modal .dialog-head h2{font-size:18px}.docs-modal .docs-dialog-card{padding:20px 18px}}
.company-catalog-note{font-size:12px;line-height:1.6;margin:0 0 20px}.company-catalog-note .text-action{font-size:inherit}.company-catalog-archived{border:1px solid #dce4d7;border-radius:12px;padding:12px 16px;margin:0 0 20px;font-size:12px;color:#697b63}.company-catalog-archived summary{cursor:pointer}.company-catalog-archived p{margin:12px 0 0;display:flex;gap:12px;align-items:center;flex-wrap:wrap}

/* Readiness confirmation and recipient-specific notices */
.document-ready-bar{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:20px 24px;background:#edf3e7;border:1px solid #d7e4d1;border-radius:16px;margin:18px 0 24px}.document-ready-bar strong,.document-ready-bar small{display:block}.document-ready-bar small{margin-top:7px;color:#657468;line-height:1.5}.document-ready-bar .button{flex-shrink:0}.billing-notice-button{position:relative;display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;flex-shrink:0;border:1px solid #dce4da;border-radius:12px;background:white;color:#315f41;cursor:pointer}.billing-notice-button svg{width:22px;height:22px}.billing-notice-button:hover{color:#ed1c24}.notice-count{position:absolute;top:-5px;right:-6px;min-width:19px;height:19px;border-radius:20px;background:#ed1c24;color:white;font:700 11px/19px Arial;text-align:center;padding:0 4px}.billing-notice{padding:20px;border:1px solid #e0e7dd;border-radius:14px;margin:14px 0}.billing-notice.unread{border-left:4px solid #4c7c39;background:#f7faf4}.billing-notice h3{margin:0 0 8px}.billing-notice p{margin:8px 0;line-height:1.5}.billing-notice small{display:block;line-height:1.5}.notice-mail-status{font-size:13px;color:#617466}.notice-settings{padding:16px;border:1px solid #e0e7dd;border-radius:12px;margin:16px 0}.notice-settings summary{cursor:pointer;font-weight:600}.notice-settings .button{margin:6px 8px 0 0}.mobile-app-header>.billing-notice-button{display:none}
@media(max-width:720px){.document-ready-bar{align-items:stretch;flex-direction:column;padding:16px;gap:14px}.document-ready-bar .button{align-self:flex-start}.top-actions>.billing-notice-button{display:none}.topbar .mobile-app-header{position:relative}.topbar .mobile-app-header>.billing-notice-button{display:inline-flex;position:absolute;right:50px;top:50%;transform:translateY(-50%);width:36px;height:38px;border-radius:11px}.mobile-home-link{max-width:calc(100% - 150px)}.billing-notices-dialog .docs-dialog-card{padding:20px 16px}.billing-notice{padding:15px}.billing-notice .docs-file-actions{gap:14px}}

.app-update-banner{position:fixed;bottom:max(16px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);z-index:10000;width:min(620px,calc(100% - 32px));box-sizing:border-box;padding:14px 18px;border:1px solid #cbdcc5;border-radius:14px;background:#f3f8ee;color:#315f41;box-shadow:0 8px 30px #10251e20;font-size:14px;line-height:1.5}.app-update-banner p{margin:0}.app-update-banner[hidden]{display:none}

.palm-advance-table.aligned-table .advance-payment-number{text-align:center;padding-left:10px;padding-right:10px}

/* Desktop navigation keeps the account controls outside its scroll area. */
@media(min-width:721px){
 .app-shell>.sidebar{height:100vh;height:100dvh;min-height:0;max-height:100vh;max-height:100dvh;overflow:hidden}
 .sidebar>.company-brand,.sidebar>.side-label,.sidebar>.sidebar-bottom{flex:0 0 auto}
 .sidebar>.module-nav{display:flex;flex-direction:column;flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;scrollbar-gutter:stable;scrollbar-width:thin;scrollbar-color:#587764 #10251e;padding:3px 3px 6px}
 .sidebar .module-nav>.nav-item{flex:0 0 auto}
 .sidebar>.sidebar-bottom{margin-top:0;padding-top:10px;background:#10251e}
 .sidebar-bottom .sync-indicator{padding-top:5px;padding-bottom:10px}
 .sidebar .user-chip{min-width:0}
 .sidebar .nav-item:focus-visible{outline:2px solid var(--lime);outline-offset:-2px}
}
@media(min-width:721px) and (max-height:800px){
 .app-shell>.sidebar{padding-top:16px;padding-bottom:12px}
 .sidebar>.company-brand{padding-bottom:16px}
 .sidebar .company-logo{max-height:64px}
 .sidebar>.side-label{padding-bottom:8px}
 .sidebar>.module-nav{gap:4px}
 .sidebar .nav-item{padding-top:8px;padding-bottom:8px}
}
@media(min-width:721px) and (max-height:650px){
 .sidebar .nav-item small{display:none}
 .sidebar .company-logo{max-height:52px}
 .sidebar-bottom .sync-indicator{display:none}
}
/* Very short windows, including high browser zoom: use the existing selector. */
@media(min-width:721px) and (max-height:380px){
 .app-shell>.sidebar{display:none}
 .main-area>.topbar{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px 16px;height:auto;min-height:0;padding:8px 16px;background:#fff;z-index:6}
 .topbar>.mobile-brand{display:none}
 .topbar .mobile-app-header{display:grid;grid-column:1/-1;grid-template-columns:minmax(160px,1fr) auto minmax(50px,1fr);align-items:center;gap:12px;margin:0}
 .topbar .mobile-home-link{grid-column:2;grid-row:1;justify-self:center;background:none;padding:0}
 .topbar .mobile-home-link img{display:block;width:104px;height:32px;object-fit:contain}
 .topbar .mobile-module-switch{display:block;grid-column:1;grid-row:1;width:min(320px,100%);min-width:0}
 .topbar .mobile-module-switch>span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 .topbar .mobile-module-switch select{height:36px;font-size:12px;font-weight:600;color:#315a3c;background:#f4f7f1;border-color:#dfe7d9;padding:0 9px}
 .topbar .mobile-account-button{display:flex;grid-column:3;grid-row:1;justify-self:end;align-items:center;justify-content:center;width:36px;height:36px;min-height:36px;padding:0;font-size:0;border:1px solid #dfe7d9;border-radius:10px;background:#fafcf8;color:#315a3c}
 .topbar .mobile-account-button svg{width:19px;height:19px}
 .topbar .mobile-account-button:hover{color:#ed1c24}
 .topbar .week-control{flex-wrap:wrap;gap:7px}
 .topbar .week-control>div{min-width:0}
 .topbar .week-control strong{font-size:12px}
 .topbar .week-control .button,.topbar .top-actions .button{height:34px;font-size:11px;padding:0 10px}
 .topbar .week-arrow{width:32px;height:32px}
 .topbar .top-actions{gap:8px}
 .topbar .sync-status{display:none}
 .topbar .billing-notice-button{width:34px;height:34px}
 .page-content{padding-top:18px}
}

/* Week identity is primary; the date range remains a quieter reference. */
.topbar .week-control #week-number{color:#ed1c24;font-size:16px;font-weight:800;letter-spacing:.6px;line-height:1.25;margin:0}
.topbar .week-control #week-label{color:#315a3c;font-size:12px;font-weight:600;line-height:1.35}
@media(max-width:720px){
 .topbar .week-control #week-number{font-size:14px;letter-spacing:.4px;line-height:1.2}
 .topbar .week-control #week-label{font-size:11px;font-weight:500}
}

/* Supplier payments stay in one row on desktop without horizontal scrolling. */
.purchase-block:has(.palm-advance-table){container-type:inline-size;container-name:supplier-payments}
@media(min-width:721px){
 .purchase-table.palm-advance-table.aligned-table{width:100%;min-width:0;table-layout:fixed}
 .palm-advance-table col:nth-child(1){width:12%}.palm-advance-table col:nth-child(2){width:18%}.palm-advance-table col:nth-child(3){width:6%}.palm-advance-table col:nth-child(4){width:8%}.palm-advance-table col:nth-child(5){width:12%}.palm-advance-table col:nth-child(6){width:14%}.palm-advance-table col:nth-child(7){width:11%}.palm-advance-table col:nth-child(8){width:12%}.palm-advance-table col:nth-child(9){width:7%}
 .palm-advance-table.aligned-table td,.palm-advance-table.aligned-table th{padding:10px 4px;font-size:clamp(9px,1.15cqi,12px)}
 .palm-advance-table.aligned-table th{font-size:clamp(8px,1.05cqi,11px);letter-spacing:.2px;overflow-wrap:anywhere}
 .palm-advance-table.aligned-table td.money{white-space:nowrap;overflow-wrap:normal;font-variant-numeric:tabular-nums;font-size:clamp(9px,1.2cqi,12px)}
 .palm-advance-table.aligned-table input,.palm-advance-table.aligned-table select{width:100%;min-width:0;min-inline-size:0;max-width:100%;height:34px;padding:0 4px;box-sizing:border-box;font-size:clamp(9px,1.15cqi,12px)}
 .palm-advance-table.aligned-table input[type=date]{padding-inline:2px;font-size:clamp(8px,1.1cqi,11px)}
 .palm-advance-table input[type=number]{appearance:textfield;-moz-appearance:textfield}
 .palm-advance-table input[type=number]::-webkit-inner-spin-button,.palm-advance-table input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
 .palm-advance-table.aligned-table .advance-payment-number{padding-inline:4px;text-align:center}
 .palm-advance-table .text-action{font-size:clamp(8px,1.05cqi,11px);padding:4px 0;white-space:nowrap}
}

/* Compact landscape layout only on iPhone; other devices keep their layout. */
@media(orientation:landscape) and (max-height:550px){
 html.iphone-device .app-shell>.sidebar{display:none}
 html.iphone-device .main-area{width:100%;min-width:0}
 html.iphone-device .main-area>.topbar{display:grid;grid-template-columns:56px minmax(265px,2.4fr) 32px var(--iphone-actions-width);gap:4px 6px;--iphone-actions-width:142px;position:sticky;top:0;height:auto;min-height:0;padding:4px max(10px,env(safe-area-inset-right)) 4px max(10px,env(safe-area-inset-left));background:#fff;z-index:6;box-shadow:0 3px 12px #173e2e0a}
 html.iphone-device .topbar>.mobile-brand,html.iphone-device .topbar .mobile-home-link{display:none}
 html.iphone-device .topbar .mobile-app-header{display:contents}
 html.iphone-device .topbar .mobile-module-switch{display:block;grid-column:1;grid-row:1;justify-self:stretch;position:relative;width:100%;min-width:0;height:32px;margin:0;border:0;background:none}
 html.iphone-device .topbar .mobile-module-switch:before,html.iphone-device .topbar .mobile-module-switch:after{display:none}
 html.iphone-device .topbar .mobile-module-switch:after{display:block;content:'';position:absolute;right:12px;top:12px;width:6px;height:6px;border-right:2px solid #648158;border-bottom:2px solid #648158;transform:rotate(45deg);pointer-events:none}
 html.iphone-device .topbar .mobile-module-switch>span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 html.iphone-device .topbar .mobile-module-switch select{position:static;opacity:1;width:100%;height:32px;min-height:32px;padding:0 26px 0 8px;font-size:14px;font-weight:600;color:#315a3c;background:#f4f7f1;border:1px solid #dfe7d9;border-radius:9px;appearance:none;-webkit-appearance:none;text-overflow:ellipsis}
 html.iphone-device .topbar .mobile-account-button{display:flex;grid-column:3;grid-row:1;justify-self:center;margin:0;align-items:center;justify-content:center;width:32px;height:32px;min-height:32px;padding:0;font-size:0;border:1px solid #dfe7d9;border-radius:9px;background:#fafcf8;color:#315a3c}
 html.iphone-device .topbar .mobile-account-button svg{width:18px;height:18px}
 html.iphone-device .topbar .mobile-app-header>.billing-notice-button{display:none}
 html.iphone-device .topbar .top-actions{grid-column:4;grid-row:1;display:flex;justify-self:end;align-items:center;gap:5px;width:var(--iphone-actions-width);min-height:32px;margin:0;justify-content:flex-end}
 html.iphone-device .topbar .top-actions>.billing-notice-button{display:inline-flex;width:30px;height:30px;border-radius:9px}
 html.iphone-device .topbar .top-actions .button{width:102px;height:30px;min-height:30px;padding:0 7px;font-size:10px;border-radius:9px;box-shadow:none}
 html.iphone-device .topbar:has(.top-actions>.billing-notice-button[hidden]){--iphone-actions-width:102px}
 html.iphone-device .topbar .sync-status{display:none}
 html.iphone-device .topbar .week-control{display:grid;grid-column:2;grid-row:1;justify-self:stretch;grid-template-columns:26px minmax(65px,1fr) 26px auto auto;align-items:center;gap:4px;width:100%;min-width:0;margin:0;padding:2px 4px;background:#f5f8f3;border:1px solid #e5ece0;border-radius:9px}
 html.iphone-device .topbar .week-control>div,html.iphone-device .topbar .week-control :is(#week-prev,#week-next,#week-today,#week-closed){grid-column:auto;grid-row:auto;justify-self:stretch}
 html.iphone-device .topbar .week-control>div{min-width:0;width:auto;text-align:center;display:flex;flex-direction:column;justify-content:center;gap:2px}
 html.iphone-device .topbar #week-number{font-size:12px;line-height:1.2;margin:0}
 html.iphone-device .topbar #week-label{font-size:10px;line-height:1.3}
 html.iphone-device .topbar .week-arrow{width:26px;height:26px;min-height:26px;border:1px solid #dfe7d9;border-radius:7px;background:#fff;color:#315a3c}
 html.iphone-device .topbar .week-control .button{height:26px;min-height:26px;padding:0 6px;font-size:9px;white-space:nowrap;border-color:#dfe7d9;border-radius:7px}
 html.iphone-device .topbar .ar-year-control{grid-column:2;grid-row:1;justify-content:center;gap:6px;width:auto}
 html.iphone-device .page-content,html.iphone-device .module-g .page-content{padding:12px max(12px,env(safe-area-inset-right)) 20px max(12px,env(safe-area-inset-left))}
 html.iphone-device .page-heading{margin-bottom:12px;gap:12px}
 html.iphone-device .page-heading h1{font-size:22px;margin-bottom:4px}
 html.iphone-device .page-heading .muted{font-size:11px;margin-bottom:0}
 html.iphone-device .summary-grid,html.iphone-device .module-g .summary-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-bottom:10px}
 html.iphone-device .summary-card{padding:12px;min-height:0}
 html.iphone-device .summary-value{font-size:18px}
 html.iphone-device .g-navigation{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px;overflow:visible}
 html.iphone-device .g-tab{padding:8px 4px;font-size:9px;min-width:0}
 html.iphone-device .g-summary-tables{padding:12px 8px}
}

/* Add batches of bunches to the same selector before saving the week. */
.selectors-table.aligned-table{min-width:960px}
.selectors-addition>div{display:flex;align-items:center;gap:6px}
.selectors-addition input{flex:1;min-width:0}
.selectors-table .selectors-sum{flex-shrink:0;border:1px solid #cdddc5;border-radius:6px;background:#edf4e7;color:#315a3c;font-size:11px;min-height:34px;padding:5px 8px}
@media(max-width:720px){.selectors-table.mobile-cards td.selectors-addition{grid-column:1/-1}.selectors-table.mobile-cards .selectors-sum{min-height:44px;padding:8px 12px;font-size:13px}}

/* Frosted menu surfaces on iPhone. */
@media(max-width:720px),(orientation:landscape) and (max-height:550px){
 html.iphone-device .sidebar{background:rgba(16,37,30,.84);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px)}
 html.iphone-device .topbar{background:rgba(255,255,255,.8);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px)}
 html.iphone-device .module-nav{padding:6px;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.1);border-radius:15px;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}
 html.iphone-device .nav-item{background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.1);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}
 html.iphone-device .nav-item.active{background:rgba(33,77,58,.78)}
 html.iphone-device .topbar .week-control{background:rgba(245,248,243,.76);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}
 html.iphone-device .topbar .mobile-module-switch select,html.iphone-device .topbar .mobile-account-button,html.iphone-device .topbar .billing-notice-button{background-color:rgba(250,252,248,.76);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}
 html.iphone-device .topbar .week-arrow,html.iphone-device .topbar .week-control .button{background:rgba(255,255,255,.78);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}
}
@media(orientation:landscape) and (max-height:550px){html.iphone-device .main-area>.topbar{background:rgba(255,255,255,.8);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px)}}

/* Solid iPhone status/header surface; compact the menu only in portrait. */
@media(max-width:720px),(orientation:landscape) and (max-height:550px){
 html.iphone-device body{background:#f6f8f6}
 html.iphone-device .main-area>.topbar{margin-top:0;background:#f6f8f6;-webkit-backdrop-filter:none;backdrop-filter:none;border-bottom:0;box-shadow:none}
 html.iphone-device .main-area>.topbar:before{content:none;display:none}
 html.iphone-device .main-area>.topbar .mobile-app-header{position:static}
 html.iphone-device .main-area>.topbar .sync-status{top:calc(env(safe-area-inset-top) + 4px)}
 html.iphone-device .main-area>.topbar .mobile-module-switch select,html.iphone-device .main-area>.topbar .mobile-account-button,html.iphone-device .main-area>.topbar .billing-notice-button,html.iphone-device .main-area>.topbar .week-control,html.iphone-device .main-area>.topbar .week-arrow,html.iphone-device .main-area>.topbar .week-control .button{-webkit-backdrop-filter:none;backdrop-filter:none}
 html.iphone-device .main-area>.topbar .mobile-module-switch select,html.iphone-device .main-area>.topbar .mobile-account-button,html.iphone-device .main-area>.topbar .week-arrow,html.iphone-device .main-area>.topbar .week-control .button{background:#fff}
 html.iphone-device .main-area>.topbar .week-control{background:transparent;border:0}
}
@media(max-width:720px) and (orientation:portrait){
 html.iphone-device .main-area>.topbar{padding:4px 12px;grid-template-rows:32px 36px 30px;row-gap:3px;align-content:start}
 html.iphone-device .main-area>.topbar .mobile-app-header{position:relative;grid-template-columns:40px minmax(0,1fr) 40px;gap:6px}
 html.iphone-device .main-area>.topbar .mobile-app-header>.billing-notice-button{right:40px;top:50%;transform:translateY(-50%);width:30px;height:30px;min-height:30px;border-radius:9px}
 html.iphone-device .main-area>.topbar .mobile-app-header>.billing-notice-button svg{width:18px;height:18px}
 html.iphone-device .main-area>.topbar .mobile-app-header>.billing-notice-button .notice-count{top:-4px;right:-4px;min-width:16px;height:16px;font-size:9px;line-height:16px}
 html.iphone-device .main-area>.topbar .mobile-module-switch{width:40px;height:32px}
 html.iphone-device .main-area>.topbar .mobile-module-switch select{height:32px;min-height:32px}
 html.iphone-device .main-area>.topbar .mobile-home-link img{width:100px;height:32px}
 html.iphone-device .main-area>.topbar .mobile-account-button{width:32px;height:32px;min-height:32px}
 html.iphone-device .main-area>.topbar .week-arrow{width:28px;height:28px;min-height:28px}
 html.iphone-device .main-area>.topbar .week-control .button,html.iphone-device .main-area>.topbar #save-all-button{height:30px;min-height:30px}
 html.iphone-device .main-area>.page-content{padding-top:8px}
}
@media(orientation:landscape) and (max-height:550px){html.iphone-device .main-area>.topbar{padding-top:calc(env(safe-area-inset-top) + 4px)}}

#activity-dialog { width:min(760px, calc(100% - 24px)); }
.activity-tabs { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; margin-bottom:18px; }
.activity-tabs .button,
.activity-filters .button { min-height:44px; transform:none; }
.activity-tabs .button.subtle[aria-pressed="true"] { background:var(--green); border-color:var(--green); color:white; }
.activity-filters { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); align-items:end; gap:10px; margin-bottom:16px; }
.activity-filters > label { grid-template-columns:minmax(0,1fr); min-width:0; }
.activity-filters :is(select,input) { box-sizing:border-box; display:block; width:100%; min-width:0; max-width:100%; height:44px; }
.activity-filters input[type="date"] { appearance:none; -webkit-appearance:none; text-align:start; }
.activity-filters input[type="date"]::-webkit-date-and-time-value { min-width:0; text-align:start; }
#activity-status { margin:0 0 12px; }
#activity-status:empty { display:none; }
.activity-list { list-style:none; display:grid; gap:8px; padding:0; margin:0 0 12px; }
.activity-list > li { border:1px solid #dce4d7; padding:12px; border-radius:12px; overflow-wrap:anywhere; }
.activity-list small { display:block; margin-top:4px; }
.activity-list details { margin-top:8px; }
@media(max-width:720px) {
  .activity-filters { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .activity-filters > :is(label:has(select[name="action"]),button) { grid-column:1/-1; }
  .activity-filters :is(select,input) { font-size:16px; padding-inline:9px; }
}
