.v27-inventory .section-head{margin-top:24px}.v27-inventory td{white-space:normal}.v27-inventory .tablewrap{overflow:auto}.v27-inventory .caption{font-size:11px}.v27-id-fields{grid-column:1/-1;padding:14px;border:1px solid #d6e1ed;border-radius:10px;margin-top:4px;background:#f8fbff}.v27-id-fields h3{margin:0 0 12px;font-size:15px}.v27-id-fields textarea{width:100%;min-height:76px}

/* V29.4: compact scannable search suggestions; keep readable tap targets. */
#y4Results.y4-searchresults,
#y4Results.v7-results {grid-template-columns:1fr;gap:2px;max-height:290px;overflow-y:auto;}
#y4Results.y4-searchresults button {padding:7px 10px;min-height:42px;border-radius:5px;line-height:1.25;text-align:left;}
#y4Results.y4-searchresults button small {font-size:11px;line-height:1.2;}
/* Closing cash count must remain an interactive foreground field. */
#modalHost .modal #v10Count {pointer-events:auto!important;opacity:1!important;user-select:text!important;min-height:44px;}

/* V29.4 readability and slimmer sale-row dividers. */
.v4-history-row {border-bottom:1px solid #e9edf2!important;}
.ls-register .ls-label,.v27-inventory .section-head h2 {font-weight:800;}
.v27-inventory td,.v27-inventory th,.ls-register .caption {font-size:13px;line-height:1.45;}
.ls-register .ls-search,.v27-inventory .field {font-size:15px;font-weight:550;}

/* V29.4 requested readability pass: modest global increase, preserve layout sizing. */
body {font-size:15px;}
button {font-weight:700;}
input, select, textarea {font-size:15px;}
h2, h3 {font-weight:800;}
.sidebar button {font-weight:750;}

/* Cloud Inventory product editor. Scope the palette and layout to this dialog. */
.modal:has(.cloud-product-editor) {
 width: min(900px, 96vw);
 max-width: 900px;
 padding: 0;
 background: #fff;
}
.cloud-product-editor {
 color: #172b49;
 background: #fff;
 border: 1px solid #c8d5e4;
 border-radius: 16px;
 overflow: hidden;
}
.cloud-product-editor .pt-head {
 padding: 22px 48px 18px 24px;
 background: #fff;
 border-bottom: 1px solid #c8d5e4;
}
.cloud-product-editor h2 { color: #172b49; margin: 5px 0; }
.cloud-product-editor .caption, .cloud-product-editor small { color: #475b76; }
.cloud-product-editor .pt-tabs {
 display: grid;
 grid-template-columns: repeat(4, 1fr);
 gap: 5px;
 padding: 10px 20px;
 background: #fff;
 border-bottom: 1px solid #c8d5e4;
}
.cloud-product-editor [role=tab] {
 padding: 9px 6px;
 background: transparent;
 color: #344f71;
 border: 1px solid transparent;
 border-radius: 8px;
}
.cloud-product-editor [role=tab][aria-selected=true] {
 color: #eafaff;
 background: #14365c;
 border-color: #38c8ff;
 box-shadow: 0 0 12px #22aaf044;
}
.cloud-product-editor .pt-inner { padding: 20px 24px; background: #fff; }
.cloud-product-editor .cloud-product-panel {
 display: grid;
 grid-template-columns: repeat(2, minmax(0, 1fr));
 gap: 12px 16px;
}
.cloud-product-editor [hidden] { display: none; }
.cloud-product-editor .pt-label { color: #223b5b; font-weight: 650; }
.cloud-product-editor .field, .cloud-product-editor .pt-editarea {
 width: 100%;
 background: #fff;
 color: #172b49;
 border: 1px solid #8599b3;
}
.cloud-product-editor .field:focus, .cloud-product-editor button:focus-visible { outline: 2px solid #0873cf; outline-offset: 2px; }
.cloud-product-editor .field::placeholder { color: #526783; }
.cloud-product-editor .pt-editarea { min-height: 66px; }
.cloud-product-editor .pt-editorbar, .cloud-product-editor .pt-upload { background: #f2f7fc; color: #223b5b; }
.cloud-product-editor .pt-images, .cloud-product-metrics { grid-column: 1 / -1; }
.cloud-product-editor #ptImagePreview { min-height: 38px; }
.cloud-product-editor #ptImagePreview img { max-height: 85px; max-width: 100%; }
.cloud-product-editor .cloud-product-metrics { padding: 12px; color: #154679; background: #eaf4ff; border-radius: 8px; }
.cloud-product-editor .pt-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; padding: 12px 24px; background: #fff; border-top: 1px solid #c8d5e4; }
.cloud-product-editor .cloud-product-status { margin: 0 24px 8px; color: #775005; }
.cloud-product-editor .cloud-product-status:empty { display: none; }
@media (max-width: 590px) {
 .cloud-product-editor .pt-tabs { grid-template-columns: repeat(2, 1fr); }
 .cloud-product-editor .cloud-product-panel { grid-template-columns: minmax(0, 1fr); }
 .cloud-product-editor .pt-inner, .cloud-product-editor .pt-actions { padding: 12px; }
}
.modal:has(.cloud-product-editor) { overflow: hidden; }
.cloud-product-editor { display: flex; flex-direction: column; max-height: 94dvh; }
.cloud-product-editor .pt-head, .cloud-product-editor .pt-tabs, .cloud-product-editor .pt-actions { flex: 0 0 auto; }
.cloud-product-editor .pt-inner { width: 100%; min-height: 0; margin: 0 auto; overflow: auto; }
.cloud-product-editor .pt-editorbar button, .cloud-product-editor .pt-editorbar b { color: #223b5b; }
.cloud-product-editor .pt-editorbar button:hover { background: #e1edfa; }
.cloud-product-editor .pt-upload { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px; }
.cloud-product-editor .pt-upload-foot { padding: 0; background: transparent; border: 0; }
.cloud-product-editor .pt-upload-foot > span, .cloud-product-editor .pt-upload-icon { display: none; }
.cloud-product-editor .pt-upload #ptImagePreview { min-height: 38px; color: #475b76; display: grid; place-items: center; }
.cloud-product-editor .pt-choose { white-space: nowrap; }
.cloud-product-editor .cloud-product-panel > label { display: flex; align-items: center; align-self: center; gap: 8px; }
.cloud-product-editor .cloud-product-toggle-title { color: #172b49; font-weight: 700; }
.cloud-product-editor .cloud-product-panel > label small { display: block; }
@media (max-width: 590px) {
 .cloud-product-editor { max-height: 93dvh; }
 .cloud-product-editor .pt-head { padding: 12px; }
 .cloud-product-editor .pt-tabs { padding: 6px 8px; }
 .cloud-product-editor .pt-actions { justify-content: flex-end; }
 .cloud-product-editor .pt-actions button { padding: 8px; font-size: 13px; }
 .cloud-product-editor #product-panel-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
 .cloud-product-editor #product-panel-3 > label { grid-column: 1 / -1; }
}

/* The shared modal theme uses important declarations for its dark palette. */
#modalHost .modal:has(.cloud-product-editor) {
 background: #fff !important;
 color: #172b49 !important;
 border-color: #c8d5e4 !important;
}
#modalHost .modal .cloud-product-editor :is(h2, label, p) { color: #172b49 !important; }
#modalHost .modal .cloud-product-editor .caption { color: #475b76 !important; }
#modalHost .modal .cloud-product-editor .cloud-product-status { color: #775005 !important; }
#modalHost .modal .cloud-product-editor :is(.field, textarea, select) {
 background: #fff !important;
 color: #172b49 !important;
 border-color: #8599b3 !important;
}

/* Alternating colors follow the visible Inventory row order. */
.pb-inventory-catalog tbody tr:nth-child(odd) > td { background: #F7F9FC; }
.pb-inventory-catalog tbody tr:nth-child(even) > td { background: #E9EFF6; }
.pb-inventory-catalog tbody tr:hover > td { background: #e2f8fc; }
.pb-inventory-catalog tbody tr:has(input:checked) > td { background: #d4e7ff; }
.pb-inventory-catalog td { padding: 8px 12px; color: #172b49; }
.pb-inventory-catalog td:last-child, .pb-inventory-catalog th:last-child { text-align: right; }
