.stock-schedule{--stock-border:#24263a;--stock-blue:#0808ef;--stock-paper:#d8d7eb;--stock-yellow:#fffb00;color:#172b43;min-width:0}
.stock-mobile-hint{display:none}
.stock-schedule :where(button){border:1px solid #b9cadd;border-radius:5px;background:#fff;padding:8px 12px;color:#264767;font:inherit;font-size:12px}.stock-schedule .primary-button{background:#275d91;border-color:#275d91;color:#fff}.stock-schedule .danger-text{color:#b12d2d}.stock-view-options input[type=checkbox]{width:16px;height:16px;min-height:0;margin:0;flex:0 0 16px}.stock-view-options label{white-space:nowrap;flex-shrink:0}
.stock-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px}.stock-toolbar h2{margin:0 0 5px;font-size:22px}.stock-toolbar p{margin:0;color:#60758e;font-size:13px}
.stock-month-controls{display:flex;flex-wrap:wrap;gap:6px;align-items:center}.stock-month-controls input{width:155px}.stock-schedule button{cursor:pointer}.stock-schedule button:disabled{cursor:wait;opacity:.55}.stock-schedule button:focus-visible,.stock-schedule input:focus-visible,.stock-schedule textarea:focus-visible{outline:3px solid #64a8ee;outline-offset:2px}
.stock-entry-form{display:grid;grid-template-columns:140px 90px minmax(220px,1fr) minmax(200px,1.2fr) auto;gap:12px;align-items:start;background:#fff;border:1px solid #cbd8e6;border-radius:10px;padding:16px;margin-bottom:14px}.stock-entry-form label>span{display:block;font-size:12px;font-weight:600;margin-bottom:8px}.stock-entry-form input,.stock-entry-form select,.stock-entry-form textarea{box-sizing:border-box;width:100%;min-height:40px;border:1px solid #bbcadc;border-radius:5px;background:white;padding:8px;color:#193650}.stock-entry-form textarea{resize:vertical;min-height:72px}.stock-form-actions{display:grid;gap:6px;padding-top:22px}.stock-form-actions button{white-space:nowrap}.stock-product-picker{position:relative;min-width:0}.stock-product-label{display:flex;gap:6px;align-items:center;flex-wrap:wrap;margin-bottom:5px;font-size:12px;font-weight:600}.stock-product-label select{width:auto;min-height:28px;padding:2px}.stock-product-label button{font-size:11px;padding:4px}.stock-product-picker small{display:block;font-size:11px;color:#627891;margin-top:5px;overflow-wrap:anywhere}.stock-item-options{position:absolute;z-index:20;top:100%;left:0;width:100%;min-width:240px;max-height:300px;overflow:auto;background:#fff;border:1px solid #aac0d8;border-radius:6px;box-shadow:0 8px 20px #17345225;box-sizing:border-box}.stock-item-options button{display:block;width:100%;text-align:left;border:0;border-radius:0;border-bottom:1px solid #e4ebf2;background:white;padding:10px;white-space:normal}.stock-item-options button:hover,.stock-item-options button:focus-visible{background:#eaf4ff}.stock-item-options button span{display:block;font-size:11px;color:#60758e;margin-bottom:3px}.stock-item-options button strong{overflow-wrap:anywhere;font-size:13px}.stock-item-options p,.stock-item-options>small{padding:8px;margin:0}
.stock-feedback:empty,.stock-error:empty{display:none}.stock-feedback{padding:10px 14px;margin-bottom:10px;background:#e8f7ef;border:1px solid #9ccbb2;border-radius:6px}.stock-error{color:#a92d2d;padding:10px 14px;margin-bottom:10px;background:#fff0ee;border:1px solid #ecc0ba;border-radius:6px}.stock-view-options{display:flex;align-items:center;gap:16px;flex-wrap:wrap;font-size:12px;color:#52667b;margin:12px 0}.stock-view-options label{display:flex;gap:6px;align-items:center}.stock-weekend-note{color:#8c5c12;font-size:13px}.stock-table-wrap{max-width:100%;overflow:auto;background:white}.stock-month-table{border-collapse:collapse;table-layout:fixed;width:100%;min-width:720px;border:1px solid var(--stock-border);font-size:13px}.stock-month-table caption{caption-side:top;background:var(--stock-yellow);color:#111;border:1px solid var(--stock-border);border-bottom:0;font-size:21px;font-weight:800;text-align:center;padding:7px}.stock-type-column{width:48px}.stock-month-table th,.stock-month-table td{border:1px solid var(--stock-border);padding:8px;vertical-align:top}.stock-month-table .stock-date-row th{background:var(--stock-blue);color:white;text-align:center;font-weight:500;padding:5px}.stock-month-table tr:not(.stock-date-row)>th{background:var(--stock-paper);font-weight:500;text-align:center;vertical-align:middle}.stock-month-table td{background:var(--stock-paper);height:85px;position:relative;overflow-wrap:anywhere}.stock-month-table td.is-holiday{background:var(--stock-yellow)}.stock-month-table .is-adjacent{opacity:.65}.stock-holiday{text-align:center;color:#222;margin:0 0 8px;font-size:13px}.stock-entries{padding-left:18px;margin:0 0 6px;color:#1116c3}.stock-entry{display:block;text-align:left;border:0;background:transparent;padding:2px 0;color:#1116c3;text-decoration:underline;line-height:1.55;width:100%;white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px}.stock-entry strong{font-weight:600}.stock-entry-source{display:block;font-size:10px;color:#46548a;text-decoration:none;line-height:1.2;opacity:.8}.stock-cell-add{padding:2px 5px;background:#ffffff70;border:1px solid #9eabc9;border-radius:3px;font-size:11px;color:#425570}.stock-cell-add:hover{background:white}.stock-empty{font-size:13px;color:#64758a;padding:8px 0}.stock-schedule:has(.stock-month-table[style*="7"]) .stock-month-table{min-width:1000px}
@media(max-width:1100px){.stock-toolbar{align-items:flex-start;flex-direction:column}.stock-entry-form{grid-template-columns:130px 90px 1fr}.stock-details{grid-column:1/3}.stock-form-actions{padding-top:22px}.stock-month-table{font-size:12px}}
@media(max-width:620px){.stock-toolbar h2{font-size:20px}.stock-entry-form{padding:12px;grid-template-columns:1fr 1fr;gap:10px}.stock-product-picker,.stock-details{grid-column:1/-1}.stock-form-actions{grid-column:1/-1;display:flex;flex-wrap:wrap;padding:0}.stock-form-actions>button:first-child{flex:1}.stock-item-options{min-width:0}.stock-view-options{gap:8px}.stock-month-controls{width:100%}.stock-month-controls button{padding:8px}.stock-month-table caption{font-size:18px}.stock-entry{font-size:12px}}
@media print{.stock-no-print{display:none!important}.stock-table-wrap{overflow:visible}.stock-month-table{min-width:0!important;font-size:10px;print-color-adjust:exact;-webkit-print-color-adjust:exact}.stock-month-table caption{font-size:17px}.stock-entry{font-size:10px}.stock-month-table td{height:65px}.stock-entry-source{font-size:8px}.stock-month-table tbody{break-inside:avoid}}
@media(max-width:620px){.stock-mobile-hint{display:block;font-size:12px;color:#60758e}.stock-month-table caption{text-align:left;padding-left:12px}}

/* Enlarge schedule text by 30%; keep the two add controls compact. */
.stock-schedule{--stock-text-scale:1.3;font-size:calc(13px * var(--stock-text-scale))}
.stock-schedule :where(button){font-size:calc(12px * var(--stock-text-scale))}
.stock-toolbar h2{font-size:calc(22px * var(--stock-text-scale))}
.stock-toolbar p,.stock-weekend-note,.stock-holiday,.stock-empty{font-size:calc(13px * var(--stock-text-scale))}
.stock-month-controls input{width:195px;font-size:calc(13px * var(--stock-text-scale))}
.stock-entry-form{grid-template-columns:170px 110px minmax(220px,1fr) minmax(200px,1.2fr) auto}
.stock-entry-form input,.stock-entry-form select,.stock-entry-form textarea{font-size:calc(13px * var(--stock-text-scale));min-width:0}
.stock-entry-form label>span,.stock-product-label,.stock-view-options,.stock-mobile-hint,.stock-month-controls label>span,.stock-product-label label,.stock-view-options label{font-size:calc(12px * var(--stock-text-scale))}
.stock-product-label button,.stock-product-picker small,.stock-item-options button span{font-size:calc(11px * var(--stock-text-scale))}
.stock-item-options button strong{font-size:calc(13px * var(--stock-text-scale))}
.stock-month-table{font-size:calc(13px * var(--stock-text-scale))}
.stock-month-table th{font-size:calc(11px * var(--stock-text-scale))}
.stock-month-table caption{font-size:calc(21px * var(--stock-text-scale))}
.stock-type-column{width:58px}
.stock-entry{font-size:calc(13px * var(--stock-text-scale))}
.stock-entry-source{font-size:calc(10px * var(--stock-text-scale))}
.stock-schedule .stock-cell-add{font-size:11px}
.stock-form-actions .primary-button{font-size:12px;height:36px;align-self:start;justify-self:start}
@media(max-width:1100px){.stock-entry-form{grid-template-columns:170px 110px minmax(0,1fr)}.stock-month-table{font-size:calc(12px * var(--stock-text-scale))}}
@media(max-width:620px){.stock-toolbar h2{font-size:calc(20px * var(--stock-text-scale))}.stock-entry-form{grid-template-columns:1fr 1fr}.stock-month-controls input,.stock-entry-form input,.stock-entry-form select,.stock-entry-form textarea{font-size:calc(16px * var(--stock-text-scale))}.stock-month-table caption{font-size:calc(18px * var(--stock-text-scale))}.stock-entry{font-size:calc(12px * var(--stock-text-scale))}}
@media(max-width:400px){.stock-entry-form{grid-template-columns:minmax(0,1fr)}.stock-details{grid-column:1/-1}}
@media print{.stock-month-table{font-size:calc(10px * var(--stock-text-scale))}.stock-month-table caption{font-size:calc(17px * var(--stock-text-scale))}.stock-entry{font-size:calc(10px * var(--stock-text-scale))}.stock-entry-source{font-size:calc(8px * var(--stock-text-scale))}}
