/* Single DOM for desktop tables and mobile cards. Do not alter print documents. */
.rental-mobile-only { display:none!important; }
.rental-mobile-form-footer { display:contents; }
.rental-mobile-selection { display:contents; }
@media screen and (max-width:767px) {
  .rental-mobile-only { display:inline-flex!important; }
  [data-rental-mobile-table] { display:block!important; width:100%!important; min-width:0!important; max-width:100%!important; table-layout:auto!important; border:0!important; }
  [data-rental-mobile-table] colgroup { display:none; }
  [data-rental-mobile-table] thead { position:absolute!important; width:1px!important; height:1px!important; overflow:hidden!important; clip-path:inset(50%); }
  [data-rental-mobile-table] tbody { display:grid!important; gap:12px; width:100%!important; }
  [data-rental-mobile-table] tbody>tr { display:grid!important; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px 12px; width:100%!important; height:auto!important; max-height:none!important; padding:14px!important; border:1px solid #cbd8e9!important; border-radius:12px; background:var(--ds-surface,#fff)!important; cursor:default; box-sizing:border-box; }
  #dumpsterModal [data-rental-mobile-table] tbody>tr { height:auto!important; min-height:0!important; }
  [data-rental-mobile-table] tbody>tr:focus-visible { outline:2px solid #2563eb; outline-offset:2px; }
  [data-rental-mobile-table] tbody>tr>td { display:block!important; width:auto!important; min-width:0!important; max-width:none!important; height:auto!important; padding:0!important; border:0!important; white-space:normal!important; overflow-wrap:anywhere; font-size:14px!important; line-height:1.45!important; }
  [data-rental-mobile-table] tbody>tr>td::before { content:attr(data-rental-mobile-label); display:block; color:var(--ds-muted,#52627a); font-size:12px; line-height:1.4; margin-bottom:4px; font-weight:500; }
  [data-rental-mobile-table] tbody>tr>td:is([data-rental-mobile-field="order"],[data-rental-mobile-field="customer"],[data-rental-mobile-field="site"],[data-rental-mobile-field="actions"],[data-rental-mobile-field="selection"]) { grid-column:1/-1; }
  [data-rental-mobile-table="items"] tbody>tr>td[data-rental-mobile-field="resource"],
  [data-rental-mobile-table="billing"] tbody>tr>td[data-rental-mobile-field="resource"] { grid-column:1/-1; font-weight:600; font-size:15px!important; }
  [data-rental-mobile-table] td:is([data-rental-mobile-field="selection"],[data-rental-mobile-field="actions"])::before { display:none; }
  [data-rental-mobile-table] .rental-item-label,
  [data-rental-mobile-table] :is(.rental-daily-cell,.rental-daily-primary,.rental-daily-secondary,.rental-daily-amount,.rental-daily-value) { display:block!important; width:auto!important; min-width:0!important; max-width:100%!important; height:auto!important; overflow:visible!important; text-overflow:clip!important; white-space:normal!important; font-size:14px!important; line-height:1.45!important; overflow-wrap:anywhere; }
  [data-rental-mobile-table] :is(small,.rental-daily-secondary) { font-size:12px!important; line-height:1.45!important; }
  [data-rental-mobile-table] .rental-daily-os { display:flex!important; width:100%!important; height:auto!important; min-height:44px; flex-wrap:wrap; gap:8px; }
  [data-rental-mobile-table] .rental-daily-os strong { flex:1; font-size:16px!important; }
  [data-rental-mobile-table] .rental-daily-os strong,.rental-daily-layout [data-rental-mobile-table] .rental-daily-os strong { flex-shrink:1; }
  [data-rental-mobile-table] .rental-daily-status { white-space:normal; font-size:13px; }
  [data-rental-mobile-table] .rental-daily-time { display:block!important; margin-top:4px; font-size:12px; color:var(--ds-muted,#52627a); }
  .rental-mobile-table-wrap { overflow:visible!important; border:0!important; max-width:100%; min-width:0; }
  [data-rental-daily] .rental-daily-scroll { padding:8px 0; }
  [data-rental-mobile-table="billing"] thead { position:static!important; clip-path:none; width:auto!important; height:auto!important; overflow:visible!important; display:block!important; margin-bottom:10px; }
  [data-rental-mobile-table="billing"] thead tr { display:block!important; }
  [data-rental-mobile-table="billing"] thead th:not(.rental-mobile-all) { position:absolute!important; width:1px!important; height:1px!important; overflow:hidden!important; clip-path:inset(50%); padding:0!important; }
  [data-rental-mobile-table="billing"] thead th.rental-mobile-all { display:block!important; width:100%!important; padding:0!important; height:auto!important; background:transparent!important; }
  .rental-mobile-selection { display:flex; align-items:center; gap:12px; min-height:44px; width:100%; padding:8px; box-sizing:border-box; border:1px solid #dbe4f0; border-radius:8px; font-size:14px; cursor:pointer; }
  .rental-mobile-selection:has(input:checked) { background:#edf4ff; border-color:#7ca4e6; }
  .rental-mobile-selection:has(input:disabled) { cursor:default; opacity:.6; }
  .rental-mobile-selection input[type="checkbox"] { width:22px!important; height:22px!important; margin:0!important; flex-shrink:0; }
  [data-rental-os] footer:has([data-os-invoice]) { position:sticky; bottom:0; z-index:3; display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:10px; background:var(--ds-surface,#fff); padding:12px 0 calc(12px + env(safe-area-inset-bottom)); border-top:1px solid #cbd8e9; box-shadow:0 -4px 10px #1838590a; }
  [data-selected-total] { font-size:14px; font-weight:600; }
  :is([data-rental-workspace],[data-rental-daily],#dumpsterModal,.rental-site-dialog,#dumpsterRentalItemModal) :is(button,.rental-os-link) { min-height:44px!important; min-width:44px; padding:10px 12px!important; font-size:14px!important; line-height:1.35!important; white-space:normal!important; }
  [data-rental-workspace] .rental-item-icons { flex-wrap:wrap; gap:8px; }
  [data-rental-workspace] [data-os-actions] { flex-wrap:wrap; gap:8px; }
  [data-rental-workspace] .rental-os nav { gap:8px; }
  [data-rental-workspace] .rental-os nav button { flex:1 1 auto; }
  [data-rental-daily] .rental-daily-note { width:44px!important; height:44px!important; min-width:44px!important; display:inline-flex; align-items:center; justify-content:center; border:1px solid #d7e3f1; border-radius:8px; }
  [data-rental-daily] .rental-daily-toolbar>label { height:44px!important; }
  [data-rental-daily] .rental-week button { padding:6px 8px!important; }
  [data-rental-daily] .rental-daily-group h4 { height:auto!important; min-height:48px; }
  [data-rental-daily] .rental-daily-group h4>[data-daily-toggle] { height:auto!important; min-width:0; }
  [data-rental-daily] .rental-daily-group-meta { display:none; }
  [data-rental-daily] .rental-daily-group h4>[data-allocate] { flex-shrink:0; margin:4px; }
  [data-rental-daily] [data-mobile-daily-actions] { margin-left:auto; border:1px solid #b7cce8; border-radius:8px; color:#1d4ed8; background:#f4f8ff; }
  .rental-daily-popup:is([role="menu"],:has(>[role="menuitem"])) { width:min(220px,calc(100vw - 24px)); padding:4px; border-radius:7px; max-width:calc(100vw - 24px); max-height:calc(var(--rental-mobile-height,100dvh) - 24px); overflow:auto; }
  .rental-daily-popup:is([role="menu"],:has(>[role="menuitem"])) button { min-height:34px; padding:6px 10px; font-size:12px; line-height:1.35; }
  .rental-daily-popup [data-daily-action="delete"] { border-top:1px solid #e2e8f0; margin-top:4px; color:#b42318; }
  #dumpsterModal { top:var(--rental-mobile-top,0px)!important; bottom:auto!important; height:var(--rental-mobile-height,100dvh)!important; padding:12px!important; }
  #dumpsterModal>div { max-height:calc(var(--rental-mobile-height,100dvh) - 24px)!important; overscroll-behavior:contain; scroll-padding-bottom:110px; }
  .rental-site-dialog,#dumpsterRentalItemModal { max-height:calc(var(--rental-mobile-height,100dvh) - 24px)!important; overscroll-behavior:contain; scroll-padding-bottom:110px; }
  .rental-mobile-form-footer { display:block; position:sticky; bottom:-1px; z-index:3; margin-top:12px!important; padding:12px 0 calc(8px + env(safe-area-inset-bottom)); background:var(--ds-surface,#fff); border-top:1px solid #dbe4f0; box-shadow:0 -5px 10px #1838590a; }
  .rental-mobile-form-footer>button { width:100%; }
  .rental-mobile-form-footer.schedule-footer { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
  .rental-mobile-form-footer.schedule-footer>[role="alert"] { grid-column:1/-1; }
  [data-rental-mobile-table] tbody>tr[hidden] { display:none!important; }
  .rental-mobile-form-footer [role="alert"]:empty { display:none; }
  .rental-mobile-form-footer [role="alert"] { font-size:14px; max-height:90px; overflow:auto; margin-bottom:8px; }
  #dumpsterModal :is(input:not([type="hidden"]),select,textarea),.rental-site-dialog :is(input,select,textarea),#dumpsterRentalItemModal :is(input,select,textarea) { font-size:16px!important; }
  #dumpsterModal :is(input:not([type="checkbox"]):not([type="hidden"]),select),.rental-site-dialog :is(input:not([type="checkbox"]):not([type="hidden"]),select),#dumpsterRentalItemModal :is(input:not([type="checkbox"]):not([type="hidden"]),select) { min-height:44px!important; }
  .rental-site-select .rental-site-add { flex-basis:44px; width:44px; }
  #rentalEngineForm [data-cancel-task] { color:#b42318; }
}

/* Compact operational screen; desktop, print and entry forms retain their layout. */
.rental-compact-caption,.rental-compact-action-icon { display:none; }
@media screen and (max-width:767px) {
  #dumpster_schedule { font-size:13px; }
  #dumpster_schedule>h2,#dumpster_schedule>h3 { font-size:16px; }
  #appScreen #dumpster_schedule .rental-schedule-compact .dumpster-module-tabs { display:flex; flex-wrap:nowrap; gap:4px; }
  #appScreen #dumpster_schedule .rental-schedule-compact .dumpster-module-tabs .rental-nav-button { flex:1 1 0; min-width:0; min-height:44px!important; padding:5px 2px!important; display:flex; flex-direction:column; justify-content:center; gap:2px; font-size:10px!important; line-height:1.2!important; white-space:nowrap!important; overflow-wrap:normal; }
  #appScreen #dumpster_schedule .rental-schedule-compact .rental-compact-label { display:none; }
  #appScreen #dumpster_schedule .rental-schedule-compact .rental-compact-caption { display:inline; }
  #appScreen #dumpster_schedule .rental-schedule-compact .rental-compact-action-icon { display:block; flex-shrink:0; }
  #appScreen #dumpster_schedule .rental-schedule-compact .rental-nav-icon { width:16px; height:16px; flex-shrink:0; }
  #appScreen #dumpster_schedule .rental-schedule-compact .rental-daily-controls { flex-wrap:nowrap; gap:4px; margin-bottom:6px; }
  #appScreen #dumpster_schedule .rental-schedule-compact .rental-daily-controls .rental-daily-tabs { flex:0 0 auto; gap:4px; margin-right:auto; }
  #appScreen #dumpster_schedule .rental-schedule-compact .rental-daily-controls button { display:inline-flex; align-items:center; justify-content:center; gap:4px; min-width:36px; min-height:38px!important; padding:6px 8px!important; font-size:12px!important; white-space:nowrap!important; }
  #appScreen #dumpster_schedule .rental-schedule-compact .rental-daily-controls [data-operation-mode] { width:38px; padding:6px!important; }
  #appScreen #dumpster_schedule .rental-schedule-compact .rental-daily-controls [data-operation-mode] svg { width:17px; height:17px; }
  #appScreen #dumpster_schedule .rental-schedule-compact .rental-daily-filterbar { gap:6px; margin-bottom:6px; }
  #appScreen #dumpster_schedule .rental-schedule-compact .rental-week { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); flex:1 1 100%; width:100%; gap:4px; min-width:0; }
  #appScreen #dumpster_schedule .rental-schedule-compact .rental-week button { display:block; width:100%; height:40px; min-height:40px!important; min-width:0!important; padding:3px 0!important; font-size:10px!important; line-height:1.25!important; white-space:nowrap!important; }
  #appScreen #dumpster_schedule .rental-schedule-compact .rental-week b { display:block; font-size:13px; font-weight:600; }
  #appScreen #dumpster_schedule .rental-schedule-compact .rental-daily-filterbar .rental-daily-toolbar { gap:6px; grid-template-columns:minmax(0,1fr) minmax(0,1fr); }
  #appScreen #dumpster_schedule .rental-schedule-compact .rental-daily-toolbar>label { height:36px!important; gap:5px; padding:0 7px; font-size:11px; }
  #appScreen #dumpster_schedule .rental-schedule-compact .rental-daily-toolbar .rental-daily-search-control input { font-size:16px; }
  #appScreen #dumpster_schedule .rental-schedule-compact .rental-daily-toolbar .rental-daily-search-control input::placeholder { font-size:13px; }
  #appScreen #dumpster_schedule .rental-schedule-compact [data-rental-mobile-table] tbody { gap:8px; }
  #appScreen #dumpster_schedule .rental-schedule-compact [data-rental-mobile-table] tbody>tr { padding:10px!important; gap:6px 10px; }
  #appScreen #dumpster_schedule .rental-schedule-compact [data-rental-mobile-table] tbody>tr>td,
  #appScreen #dumpster_schedule .rental-schedule-compact [data-rental-mobile-table] :is(.rental-daily-cell,.rental-daily-primary,.rental-daily-secondary,.rental-daily-amount,.rental-daily-value) { font-size:12px!important; line-height:1.35!important; }
  #appScreen #dumpster_schedule .rental-schedule-compact [data-rental-mobile-table] tbody>tr>td::before { font-size:10px; margin-bottom:2px; }
  #appScreen #dumpster_schedule .rental-schedule-compact [data-rental-mobile-table] :is(small,.rental-daily-secondary) { font-size:11px!important; }
  #appScreen #dumpster_schedule .rental-schedule-compact [data-rental-mobile-table] .rental-daily-os strong { font-size:14px!important; }
  #appScreen #dumpster_schedule .rental-schedule-compact [data-rental-mobile-table] .rental-daily-status { font-size:11px; }
  #appScreen #dumpster_schedule .rental-schedule-compact .rental-daily-group h4 { min-height:40px!important; }
  #appScreen #dumpster_schedule .rental-schedule-compact .rental-daily-group h4>button { min-height:36px!important; padding:6px 8px!important; font-size:12px!important; }
  #appScreen #dumpster_schedule .rental-schedule-compact .rental-daily-tools { font-size:11px; }
}

/* Mobile dispatch cards: only the six requested business fields. */
@media screen and (max-width:767px) {
  #appScreen #dumpster_schedule [data-rental-daily] [data-rental-mobile-table="daily"] tbody>tr { grid-template-areas:"order order" "customer customer" "site site" "resource resource" "status price"; }
  #appScreen #dumpster_schedule [data-rental-daily] [data-rental-mobile-table="daily"] tbody>tr>td:not(:is([data-column="order"],[data-column="customer"],[data-column="site"],[data-column="resource"],[data-column="status"],[data-column="price"])) { display:none!important; }
  #appScreen #dumpster_schedule [data-rental-daily] [data-column="order"] { grid-area:order; }
  #appScreen #dumpster_schedule [data-rental-daily] [data-column="customer"] { grid-area:customer; }
  #appScreen #dumpster_schedule [data-rental-daily] [data-column="site"] { grid-area:site; }
  #appScreen #dumpster_schedule [data-rental-daily] [data-column="resource"] { grid-area:resource; }
  #appScreen #dumpster_schedule [data-rental-daily] [data-column="status"] { grid-area:status; }
  #appScreen #dumpster_schedule [data-rental-daily] [data-column="price"] { grid-area:price; }
  #appScreen #dumpster_schedule [data-rental-daily] .rental-daily-time { display:none!important; }
}

/* Shared rental navigation and a three-field OS summary, mobile only. */
@media screen and (max-width:767px) {
  #appScreen .view[id^="dumpster_"] [data-rental-navigation] .dumpster-module-tabs { display:flex; flex-wrap:wrap; gap:4px; }
  #appScreen .view[id^="dumpster_"] [data-rental-navigation] .dumpster-module-tabs .rental-nav-button { display:flex; flex:1 1 56px; min-width:0; min-height:44px!important; padding:5px 2px!important; flex-direction:column; justify-content:center; gap:2px; font-size:10px!important; line-height:1.2!important; white-space:nowrap!important; overflow-wrap:normal; }
  #appScreen .view[id^="dumpster_"] [data-rental-navigation] .dumpster-module-tabs .rental-nav-icon { width:16px; height:16px; flex-shrink:0; }
  #appScreen .view[id^="dumpster_"] [data-rental-navigation] .dumpster-module-tabs .rental-compact-label:has(+.rental-compact-caption) { display:none; }
  #appScreen .view[id^="dumpster_"] [data-rental-navigation] .dumpster-module-tabs .rental-compact-caption { display:inline; }
  #appScreen #dumpster_rentals .dumpster-rentals-browser.card { padding:10px!important; border-radius:9px!important; }
  #appScreen #dumpster_rentals .dumpster-rentals-browser .table-mobile { display:grid; gap:6px; margin-top:8px!important; }
  #appScreen #dumpster_rentals .dumpster-rentals-browser .table-desktop { display:none; }
  #appScreen #dumpster_rentals .rental-os-summary { position:relative; display:grid; gap:4px; margin:0!important; padding:10px 28px 10px 10px!important; border-radius:8px!important; cursor:pointer; }
  #appScreen #dumpster_rentals .rental-os-summary>.table-card-row { display:grid; grid-template-columns:48px minmax(0,1fr); gap:6px; border:0!important; padding:0!important; margin:0!important; min-height:18px; align-items:baseline; }
  #appScreen #dumpster_rentals .rental-os-summary>.table-card-row:not([data-rental-os-field="order"],[data-rental-os-field="customer"],[data-rental-os-field="site"]) { display:none!important; }
  #appScreen #dumpster_rentals .rental-os-summary .table-card-label { font-size:10px!important; line-height:1.35!important; letter-spacing:0!important; text-transform:none!important; font-weight:500!important; }
  #appScreen #dumpster_rentals .rental-os-summary .table-card-value,
  #appScreen #dumpster_rentals .rental-os-summary .table-card-value>span { font-size:12px!important; line-height:1.35!important; overflow-wrap:anywhere; }
  #appScreen #dumpster_rentals .rental-os-summary [data-rental-os-field="order"] .table-card-value>:not(:first-child) { display:none!important; }
  #appScreen #dumpster_rentals .rental-os-summary [data-rental-os-field="order"] .table-card-value>span:first-child { font-size:13px!important; font-weight:700!important; }
  #appScreen #dumpster_rentals .rental-os-summary .rental-os-menu-hint { position:absolute; top:8px; right:10px; color:#526d91; font-size:19px; line-height:22px; }
  #appScreen #dumpster_rentals .rental-os-summary[aria-expanded="true"] { border-color:#2563eb; }
}

/* RefinaLoc list cards: reuse server rows and their controls; no extra requests. */
@media screen and (max-width:767px) {
 #appScreen [data-rental-list-cards] {overflow:visible!important;min-width:0;max-width:100%;}
 #appScreen [data-rental-list-cards] .table-wrap {min-width:0;max-width:100%;overflow:visible!important;}
 #appScreen [data-rental-list-cards] .table-desktop {display:none!important;}
 #appScreen [data-rental-list-cards] .table-mobile {display:grid!important;gap:14px;margin-top:14px!important;}
 #appScreen [data-rental-list-card] {display:flex!important;flex-direction:column;gap:10px;margin:0!important;padding:16px!important;border:1px solid var(--ds-line,#ccd9e4)!important;border-top:3px solid var(--ds-accent,#2563eb)!important;border-radius:14px!important;background:var(--ds-surface,#fff)!important;min-width:0;box-shadow:0 2px 8px #1230470a;}
 #appScreen [data-rental-list-card]>.table-card-row {display:grid!important;grid-template-columns:minmax(0,1fr);gap:3px;padding:0!important;margin:0!important;border:0!important;min-width:0;}
 #appScreen [data-rental-list-card] .table-card-label {font-size:12px!important;font-weight:600;color:var(--ds-muted,#536477)!important;}
 #appScreen [data-rental-list-card] .table-card-value {min-width:0;max-width:100%;font-size:14px!important;line-height:1.45!important;overflow-wrap:anywhere;white-space:normal!important;text-align:left!important;}
 #appScreen [data-rental-list-card] .table-card-value * {white-space:normal!important;overflow-wrap:anywhere;max-width:100%;}
 #appScreen [data-rental-list-card] [data-rental-list-field="primary"] {order:-2;padding-bottom:8px!important;border-bottom:1px solid var(--ds-line,#dce5ef)!important;}
 #appScreen [data-rental-list-card] [data-rental-list-field="primary"] .table-card-value {font-size:18px!important;font-weight:700;color:var(--ds-text,#17324c);}
 #appScreen [data-rental-list-card] [data-rental-list-field="status"] {order:-1;}
 #appScreen [data-rental-list-card] [data-rental-list-field="actions"] {padding-top:10px!important;border-top:1px solid var(--ds-line,#dce5ef)!important;}
 #appScreen [data-rental-list-card] [data-rental-list-field="actions"] .table-card-value>div {display:flex;flex-wrap:wrap!important;gap:8px!important;}
 html[data-ds-interface="light"] body #appScreen :is(#dumpster_rentals,#dumpster_sites,#customers) [data-rental-list-card] :is(button,a.btn-secondary,a.btn-primary) {min-height:44px!important;display:inline-flex;align-items:center;justify-content:center;padding:8px 12px!important;}
}
@media screen and (max-width:767px) {
 html[data-ds-interface="light"] body #appScreen #customers [data-rental-list-card] :is(.btn-primary,.btn-secondary) {min-height:44px!important;padding:8px 12px!important;}
}

/* Compact summaries; remaining data and original actions expand on demand. */
@media screen and (max-width:767px) {
 #appScreen [data-rental-list-cards] .table-mobile {gap:10px!important;}
 #appScreen [data-rental-list-card] {padding:12px!important;gap:6px;border-radius:10px!important;}
 #appScreen [data-rental-list-card] [data-rental-list-field="primary"] {padding-bottom:4px!important;border-bottom:0!important;}
 #appScreen [data-rental-list-card] [data-rental-list-field="primary"] .table-card-value {font-size:16px!important;}
 #appScreen [data-rental-list-card]>.table-card-row .table-card-label {display:none!important;}
 #appScreen [data-rental-list-card]>.table-card-row .table-card-value {font-size:13px!important;line-height:1.3!important;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
 #appScreen [data-rental-list-card]>.table-card-row[data-rental-list-field="primary"] .table-card-value {font-size:16px!important;}
 #appScreen [data-rental-list-card] .rental-list-details {order:10;border:0!important;border-top:1px solid var(--ds-line,#dce5ef)!important;border-radius:0!important;padding:0!important;margin-top:3px;background:transparent!important;min-width:0;}
 #appScreen [data-rental-list-card] .rental-list-details>summary {display:list-item;min-height:44px;box-sizing:border-box;padding:12px 0;cursor:pointer;font-size:13px!important;font-weight:600;color:var(--ds-accent,#2563eb);}
 #appScreen [data-rental-list-card] .rental-list-details>.table-card-row {display:grid;grid-template-columns:minmax(0,1fr);gap:3px;margin:0;padding:8px 0!important;border:0;}
 #appScreen [data-rental-list-card]:has(.rental-list-details[open])>.table-card-row .table-card-value {display:block;overflow:visible;}
}
