.module-navigation {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 10px 20px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}
.module-navigation .module-button { min-width: 160px; border: 1px solid var(--line); background: var(--paper); text-transform: uppercase; font-size: 15px; letter-spacing: .03em; }
.module-navigation .module-button.active { border-color: var(--red); background: var(--red); color: #fff; }
.rental-view-navigation { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px; padding: 8px 16px; background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 57px; z-index: 19; }
.rental-view-navigation[hidden] { display: none; }
.module-button { border: 0; border-radius: 8px; padding: 9px 14px; background: transparent; color: #6b6e76; font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.module-button:hover { color: var(--ink); }
.module-button.active { background: var(--ink); color: #fff; }
.rentals-shell { padding-top: 24px; }
.rentals-hero { background: linear-gradient(135deg, #162d45, #254f72); color: #fff; border-radius: 18px; padding: 24px; display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 18px; }
.rentals-hero h1 { margin: 2px 0 4px; font-family: "Barlow Condensed", sans-serif; font-size: clamp(28px, 4vw, 42px); }
.rentals-hero p { margin: 0; }
.rentals-tabs { gap: 6px; overflow-x: auto; margin: 0 0 18px; border: 0; white-space: nowrap; }
.rentals-tabs .tab-button { flex: 0 0 auto; margin: 0; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink-soft); font-size: 13px; font-weight: 600; }
.rentals-tabs .tab-button:hover { border-color: var(--ink); color: var(--ink); }
.rentals-tabs .tab-button.active { border-color: var(--ink); background: var(--ink); color: #fff; }
.rental-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.rental-stat { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.rental-stat strong { font-family: "Barlow Condensed", sans-serif; color: var(--red); font-size: 24px; font-weight: 800; line-height: 1; }
.rental-stat.activas strong { color: var(--ink); }
.rental-stat.pendientes strong { color: var(--blue); }
.rental-stat.facturadas strong { color: var(--green); }
.rental-stat.disp strong { color: var(--green); }
.rental-stat.rent strong { color: var(--red); }
.rental-stat.dinero strong { color: var(--red); }
.rental-stat[data-rental-view] { cursor: pointer; }
.rental-stat span { color: var(--ink-soft); font-size: 13px; margin-top: 6px; }
.rental-filters { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 0 0 10px; }
.rental-toolbar-left, .rental-toolbar-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rental-status-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 0; }
.rental-status-tabs .tab-button { margin: 0; }
.rental-date-filter { display: flex; align-items: center; gap: 6px; color: #6b6e76; font-size: 12.5px; flex-wrap: wrap; }
.rental-date-filter input[type="date"] { width: auto; min-height: 34px; padding: 6px 8px; font-size: 12.5px; }
.rental-filters > input, .rental-filters > select { flex: 1 1 145px; min-width: 145px; }
.rental-search { max-width: 200px; min-width: 160px; flex: 1 1 180px; }
.inline-check { display: inline-flex; gap: 7px; align-items: center; font-weight: 600; color: var(--ink-soft); }
.inline-check input, .check-row input { width: auto; min-height: auto; margin: 0; accent-color: var(--blue); }
.rentals-table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); overscroll-behavior-inline: contain; }
.rentals-table { width: 100%; min-width: 880px; border-collapse: collapse; }
.rentals-table th, .rentals-table td { padding: 9px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; font-size: 13.5px; }
.rentals-table th { color: var(--ink-soft); font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; background: var(--paper); }
.rental-list-table .rental-sort-button { padding: 0; border: 0; background: transparent; color: inherit; font: inherit; text-transform: inherit; letter-spacing: inherit; cursor: pointer; }
.rental-list-table .rental-sort-button:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.rentals-table td small { display: block; color: var(--ink-soft); margin-top: 4px; }
.rentals-table tbody tr:last-child td { border-bottom: 0; }
.rentals-table tbody tr.rental-row-pendiente { background: var(--blue-soft); }
.rentals-table tbody tr.rental-row-facturada { background: var(--green-bg); }
.rentals-table tbody tr:hover { filter: brightness(.985); }
.rentals-table.rental-list-table { min-width: 1080px; }
.rental-list-table th, .rental-list-table td { white-space: normal; }
.rental-list-table th:nth-child(8), .rental-list-table td:nth-child(8),
.rental-list-table th:nth-child(9), .rental-list-table td:nth-child(9),
.rental-list-table th:nth-child(10), .rental-list-table td:nth-child(10) { white-space: nowrap; }
.rental-list-table th { padding-block: 10px; }
.rental-list-table .rental-list-client { min-width: 0; }
.rental-list-table .rental-list-address { min-width: 0; max-width: none; font-size: 12px; white-space: normal; }
.rental-list-table .rental-machine,
.rental-list-table .rental-list-client,
.rental-list-table .rental-list-address { overflow-wrap: anywhere; }
.rental-list-table .rental-actions { min-width: 0; flex-wrap: wrap; }
.rental-list-table .button-small { min-height: 0; padding: 6px 11px; border-radius: 7px; font-size: 12.5px; }
.rental-list-table .icon-button { width: auto; height: auto; padding: 4px 6px; font-size: 16px; }
.rental-inline-observation { width: 160px; min-width: 0; padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--ink); font: inherit; font-size: 12.5px; }
.rental-inline-observation:focus { border-color: var(--blue); outline: 2px solid color-mix(in srgb, var(--blue) 18%, transparent); }
.rental-pill { display: inline-flex; border-radius: 999px; padding: 3px 9px; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.type-alquiler { background: #efeff1; color: var(--ink-soft); }
.type-reparacion { background: #fff6e0; color: #8a6500; }
.type-transporte { background: #efe7fa; color: #8355c8; }
.status-activa { background: #fff6e0; color: #8a6500; }
.status-pendiente { background: var(--blue); color: #fff; }
.status-facturada { background: #2e9e4f; color: #fff; }
.rental-machine { font-weight: 700; }
.rental-observation { max-width: 220px; }
.rental-days-note { font-size: 10.5px; }
.rental-amount-main { display: block; font-weight: 700; white-space: nowrap; }
.rental-total { font-weight: 700; }
.rental-actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.rental-actions .rental-action-close { border-color: var(--blue); background: var(--blue); color: #fff; }
.rental-actions .rental-action-invoice { border-color: var(--green); background: var(--green); color: #fff; }
.rental-actions .rental-action-reactivate { border-color: var(--line); background: #fff; color: var(--ink); }
.rental-shortcut { background: #e0f2fe; color: #075985; }
.rental-empty { padding: 28px !important; text-align: center !important; color: var(--ink-soft); }
.rental-view-controls { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.rental-view-controls > input[type="date"] { width: auto; }
#rentalDayView .rental-view-controls, #rentalMonthlyView .rental-view-controls { gap: 12px; }
#rentalDayView .rental-view-controls .button, #rentalMonthlyView .rental-view-controls .button { min-height: 0; padding: 8px 12px; border-radius: 8px; }
#rentalDayView .rental-view-controls .button-link, #rentalMonthlyView .rental-view-controls [data-month-current] { padding: 6px 11px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: 12.5px; }
#rentalDayView .rental-view-controls > input[type="date"] { width: auto; }
.dashboard-presets { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.dashboard-presets .tab-button { margin: 0; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink-soft); font-size: 13px; font-weight: 600; cursor: pointer; }
.dashboard-presets .tab-button.active { border-color: var(--ink); background: var(--ink); color: #fff; }
.dashboard-range { align-items: flex-end; }
.dashboard-range label { display: flex; flex-direction: column; gap: 4px; color: var(--ink-soft); font-size: 12.5px; }
.dashboard-range input { width: auto; }
.dashboard-help { margin: -6px 0 18px; color: #6b6e76; font-size: 12px; }
.dashboard-breakdown { padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.dashboard-breakdown > strong { display: block; margin-bottom: 8px; font-size: 12.5px; font-weight: 700; }
.dashboard-breakdown .rentals-table-wrap { border: 0; border-radius: 0; box-shadow: none; }
.dashboard-breakdown .rentals-table th, .dashboard-breakdown .rentals-table td { text-align: right; }
.dashboard-breakdown .rentals-table th:first-child, .dashboard-breakdown .rentals-table td:first-child { text-align: left; }
.day-rental { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; box-shadow: var(--shadow); }
.day-rental > div { display: flex; flex-direction: column; }
.day-rental > div:first-child { flex: 1; min-width: 220px; }
.day-rental > div:first-child span:nth-child(2) { font-size: 13px; }
.day-rental > div:first-child span:nth-child(3) { font-size: 12px; }
.day-rental span { color: #6b6e76; }
.day-rental.excluded { opacity: .68; background: var(--paper); }
.day-rental .day-badges { display: flex; flex-direction: row; flex-wrap: wrap; gap: 6px; }
.day-rental .day-badges span { color: #fff; }
.day-badges .day-start { background: var(--ink); }
.day-badges .day-end { background: var(--red); }
.day-rental .day-badges .day-excluded { background: #efeff1; color: var(--ink-soft); }
.month-chips { display: flex; gap: 6px; overflow-x: auto; padding: 0 0 8px; margin-bottom: 8px; }
.month-chip { flex: 0 0 auto; min-width: 78px; border: 2px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); padding: 7px 12px; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.month-chip small { display: block; margin-top: 2px; font-size: 12px; }
.month-chip.pending { border-color: var(--blue); background: var(--blue-soft); }
.month-chip.pending small { color: var(--blue); }
.month-chip.done { border-color: var(--green); background: var(--green-bg); }
.month-chip.done small { color: var(--green); }
.month-chip.empty small { color: var(--ink-soft); }
.month-chip.selected { box-shadow: 0 0 0 3px var(--ink); }
.month-controls { margin-bottom: 14px; }
.month-controls #rentalMonthLabel { min-width: 150px; text-align: center; font-size: 18px; }
.monthly-banner { background: var(--blue); color: #fff; border: 1px solid var(--blue); border-radius: 12px; padding: 14px 18px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; font-size: 15px; font-weight: 700; }
.monthly-banner.done { background: var(--green); border-color: var(--green); }
.monthly-banner.empty { background: #efeff1; border-color: #efeff1; color: var(--ink-soft); }
.monthly-banner small { display: block; margin-top: 2px; font-size: 12.5px; font-weight: 500; }
.monthly-banner .button { background: #fff; color: var(--ink); }
.month-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.monthly-client { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin-bottom: 12px; }
.monthly-client-head { background: var(--paper); padding: 10px 14px; display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; font-weight: 700; }
.monthly-client-head small { color: var(--ink-soft); font-size: 12px; }
.month-client-invoice { background: var(--blue); border-color: var(--blue); color: #fff; }
.monthly-line { padding: 10px 14px; border-top: 1px solid var(--line); font-size: 13.5px; }
.monthly-line.pending { background: var(--blue-soft); }
.monthly-line.done { background: var(--green-bg); }
.monthly-line-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.monthly-line-top label { display: flex; align-items: center; gap: 8px; min-width: 0; margin: 0; font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }
.monthly-line-top input { width: auto; }
.monthly-line-detail { margin: 4px 0 0 26px; color: var(--ink-soft); font-size: 12.5px; }
.monthly-line-note { display: inline-block; margin: 5px 0 0 26px; padding: 4px 9px; background: #fff6e0; border-radius: 6px; font-size: 12.5px; }
.machine-combo { display: block; position: relative; }
.machine-combo-list { position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 70; max-height: 270px; overflow-y: auto; border: 1px solid var(--line); border-radius: 10px; background: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.machine-combo-list[hidden] { display: none; }
.machine-combo-item { display: flex; width: 100%; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 12px; border: 0; border-bottom: 1px solid var(--line); background: #fff; color: var(--ink); font: inherit; font-size: 13.5px; text-align: left; cursor: pointer; }
.machine-combo-item > span { min-width: 0; overflow-wrap: anywhere; }
.machine-combo-item:last-child { border-bottom: 0; }
.machine-combo-item:hover, .machine-combo-item.active { background: var(--blue-soft); }
.machine-combo-item strong { display: inline-block; min-width: 34px; }
.machine-combo-item small { flex: 0 0 auto; font-size: 11.5px; font-weight: 700; }
.machine-combo-item small.free { color: var(--green); }
.machine-combo-item small.busy { color: var(--red); }
.machine-combo-empty { display: block; padding: 10px 12px; color: var(--ink-soft); font-size: 12.5px; }
.fleet-title { font-size: 15px; font-weight: 800; margin: 18px 0 8px; }
.fleet-title.available { color: #166534; }
.fleet-title.busy { color: #9a3412; }
#rentalFleetView .rental-stats { grid-template-columns: repeat(3, 1fr); }
#rentalFleetView .rental-stat:first-child strong { color: var(--ink); }
#rentalFleetView .rental-filters { margin-top: 0; margin-bottom: 12px; }
#fleetSearch { flex: 0 0 250px; width: 250px; min-width: 0; }
#fleetBrand { flex: 0 0 auto; width: auto; min-width: 0; }
#newMachineButton { margin-left: auto; }
#rentalFleetView .rental-filters .button { min-height: 0; padding: 6px 11px; border-radius: 7px; font-size: 12.5px; }
#rentalFleetView [data-machine-action="rent"] { border-color: var(--blue); background: var(--blue); color: #fff; }
#rentalFleetView .rentals-table { min-width: 640px; }
#rentalFleetView .rental-actions .button-small { min-height: 0; padding: 6px 11px; font-size: 12.5px; }
#rentalFleetView .rental-actions .icon-button { display: inline-flex; width: auto; height: auto; padding: 4px 6px; border: 0; font-size: 16px; }
.modal-overlay#rentalModal { display: flex; align-items: flex-start; justify-content: center; padding: 30px 16px; overflow-y: auto; background: rgba(10,10,12,.55); z-index: 50; }
.rental-modal-card { width: 100%; max-width: 600px; max-height: none; overflow: visible; padding: 22px; background: #fff; box-shadow: 0 20px 60px rgba(0,0,0,.35); line-height: normal; }
.rental-modal-card, .rental-summary-card { border-top: 0; border-radius: 16px; }
.rental-modal-card > h2 { margin: 0 0 4px; color: var(--ink); font: 700 19px/normal "Barlow", Arial, sans-serif; }
.rental-modal-sub { margin: 0 0 16px; color: #6b6e76; font-size: 13px; }
.rental-type-toggle { display: flex; gap: 6px; margin-bottom: 16px; }
.rental-type-toggle .rental-type-option { margin: 0; cursor: pointer; }
.rental-type-toggle .rental-type-option { flex: 1; }
.rental-type-toggle .rental-type-option > span { padding: 10px; border-radius: 9px; background: #f4f5f7; font: 700 13px/normal Arial, sans-serif; transition: background .15s, border-color .15s, color .15s; }
.rental-type-toggle .rental-type-icon { display: inline; padding: 0; border: 0; background: none; }
.rental-type-toggle .rental-type-option:hover > span { border-color: var(--ink-soft); color: var(--ink); }
.rental-type-toggle .rental-type-alquiler.active > span,
.rental-type-toggle .rental-type-alquiler input:checked + span { border-color: var(--ink); background: var(--ink); color: #fff; box-shadow: none; }
.rental-type-toggle .rental-type-reparacion.active > span,
.rental-type-toggle .rental-type-reparacion input:checked + span { border-color: #8a6500; background: #8a6500; color: #fff; box-shadow: none; }
.rental-type-toggle .rental-type-transporte.active > span,
.rental-type-toggle .rental-type-transporte input:checked + span { border-color: #8355c8; background: #8355c8; color: #fff; box-shadow: none; }
.rental-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.rental-form-grid .full { grid-column: 1 / -1; }
.rental-form-grid label { display: block; margin: 0 0 5px; color: #6b6e76; font-size: 12.5px; font-weight: 600; }
.rental-modal-card input:not([type="checkbox"]):not([type="radio"]), .rental-modal-card textarea { min-height: 0; padding: 9px 11px; border-radius: 8px; border-color: #e2e4e9; background: #f4f5f7; color: var(--ink); font-size: 14px; font-weight: 400; line-height: normal; }
.rental-modal-card textarea { min-height: 54px; height: 54px; }
.rental-weekend-options { display: flex; gap: 18px; flex-wrap: wrap; padding-top: 2px; }
.rental-weekend-options label { display: flex; align-items: center; gap: 6px; min-height: 19px; margin: 0 0 5px; font-size: 13px; white-space: nowrap; cursor: pointer; }
.rental-weekend-options input { width: auto; min-height: 0; margin: 0; }
.rental-weekend-help { margin: 4px 0 0; color: #6b6e76; font-size: 12px; }
.rental-section-label { margin: 16px 0 8px; color: var(--ink); font-size: 12.5px; font-weight: 700; }
#rentalExceptionFields .chip-list { display: flex; flex-wrap: wrap; gap: 6px; min-height: 0; margin: 0 0 8px; }
.rental-modal-card .muted { color: #6b6e76; font-size: 12px; }
.exception-chip { display: inline-flex; gap: 6px; align-items: center; background: #efeff1; color: var(--ink); padding: 4px 6px 4px 12px; border-radius: 999px; font-size: 12.5px; }
.exception-chip button { border: 0; background: transparent; color: inherit; cursor: pointer; font-size: 17px; }
.rental-modal-card .inline-add { display: flex; gap: 8px; }
.rental-modal-card .inline-add input { flex: 1; min-width: 0; }
.rental-modal-card .button { border-radius: 9px; font-size: 14px; }
.rental-modal-card .button-small { min-height: 0; padding: 6px 11px; border-radius: 7px; font-size: 12.5px; }
.rental-modal-card .inline-add .button-small { min-width: 85px; }
.rental-modal-card .modal-actions { justify-content: flex-end; gap: 10px; margin-top: 20px; }
.rental-modal-card .modal-actions-right { gap: 10px; }
.rental-modal-card .modal-actions .button { min-height: 0; padding: 9px 16px 10px; line-height: normal; font-size: 14px; }
.rental-legacy-modal-card { max-height: none; overflow: visible; padding: 22px; line-height: normal; }
.rental-legacy-modal-card > h2 { margin: 0 0 4px; font: 700 19px/normal "Barlow", Arial, sans-serif; }
.rental-legacy-modal-card .rental-modal-sub { margin-bottom: 16px; }
.rental-legacy-modal-card .rental-form-grid label { display: block; margin: 0 0 5px; color: #6b6e76; font-size: 12.5px; font-weight: 600; }
.rental-legacy-modal-card input:not([type="checkbox"]) { min-height: 0; padding: 9px 11px; border-radius: 8px; background: #f4f5f7; font-size: 14px; line-height: normal; }
.rental-legacy-modal-card .modal-actions { justify-content: flex-end; gap: 10px; margin-top: 20px; }
.rental-legacy-modal-card .modal-actions .button { min-height: 0; padding: 10px 16px; border-radius: 9px; font-size: 14px; line-height: normal; }
.machine-modal-card { width: 100%; max-width: 460px; }
.rental-summary-card { width: 100%; max-width: 780px; }
.rental-summary-empty { color: #6b6e76; font-size: 12px; }
.rental-summary-card .modal-heading { margin-bottom: 14px; }
.summary-client { overflow: hidden; margin-bottom: 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.summary-client-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; background: var(--paper); font-weight: 700; }
.summary-client-head label { display: flex; align-items: center; gap: 8px; margin: 0; color: inherit; font-size: 12.5px; }
.summary-line input { width: auto; }
#rentalSummaryModal input[type="checkbox"] { min-height: 0; height: auto; margin: 0; }
#rentalSummaryModal .summary-client-head input[type="checkbox"] { width: 100%; }
#rentalSummaryModal .summary-line input[type="checkbox"] { width: auto; }
.summary-client-count { color: var(--ink-soft); font-size: 12px; font-weight: 500; }
.summary-line { padding: 10px 14px; border-top: 1px solid var(--line); }
.summary-line-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.summary-line-title { display: flex; align-items: flex-start; gap: 8px; min-width: 0; margin: 0; color: var(--ink); font-size: 13.5px; font-weight: 700; }
.summary-line-title > span { min-width: 0; }
.summary-line-title small { display: block; margin-top: 4px; color: var(--ink-soft); font-size: 12.5px; font-weight: 400; }
.summary-line-total { flex: 0 0 auto; font-weight: 700; white-space: nowrap; }
.summary-line-note { display: inline-block; margin: 6px 0 0 24px; padding: 4px 9px; border-radius: 6px; background: #fff6e0; color: var(--ink); font-size: 12.5px; }
.summary-client-foot { padding: 9px 14px; border-top: 1px solid var(--line); background: var(--paper); font-weight: 700; text-align: right; }
.rental-summary-actions { position: static; margin-inline: 0; margin-bottom: 0; padding: 0; border: 0; background: transparent; }
#rentalSummaryModal .rental-summary-actions { bottom: auto; margin: 20px 0 0; padding: 0; border: 0; }
.rental-summary-selection { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }

@media (min-width: 1300px) {
  #rentalsArea:has(#rentalListView:not([hidden])) { width: min(1520px, calc(100% - 64px)); }
  #rentalListView .rental-list-table th:nth-child(2),
  #rentalListView .rental-list-table td:nth-child(2) { width: 220px; min-width: 220px; }
}

@media (max-width: 900px) {
  .rental-stats { grid-template-columns: repeat(2, 1fr); }
  .rentals-hero { align-items: flex-start; flex-direction: column; }
  .rentals-hero .action-row { width: 100%; }
  .rentals-hero .button { flex: 1; }
}
@media (max-width: 640px) {
  .module-navigation { top: 0; padding: 8px; }
  .module-button { flex: 1; padding: 9px 7px; }
  .module-navigation .module-button { min-width: 0; }
  .rental-view-navigation { top: 53px; justify-content: center; flex-wrap: wrap; }
  .rental-view-navigation .module-button { flex: 0 0 auto; }
  .rentals-shell { padding-top: 14px; }
  .rentals-hero { border-radius: 12px; padding: 18px; }
  .rentals-hero .action-row { flex-direction: column; }
  .rentals-hero .button { width: 100%; }
  .rental-stats { gap: 8px; }
  .rental-stat { padding: 12px; }
  .rental-stat strong { font-size: 25px; }
  .rental-filters { display: flex; }
  .rental-status-tabs .tab-button { flex: 0 0 auto; }
  .rental-search { max-width: none; }
  .rental-form-grid { grid-template-columns: 1fr; }
  .day-rental { align-items: flex-start; flex-direction: column; }
  .monthly-line-top { align-items: flex-start; flex-wrap: wrap; }
  .machine-combo-item { align-items: flex-start; }
  .machine-combo-item small { white-space: normal; text-align: right; }
  .rentals-table { min-width: 800px; }
  .rentals-table th, .rentals-table td { padding: 8px 10px; }
  .summary-line-top { align-items: stretch; flex-direction: column; gap: 6px; }
  .summary-line-total { margin-left: 24px; }
  .rental-summary-actions .button { flex: 0 1 auto; }
  .rental-view-controls > input, .rental-view-controls > .button { flex: 1; min-width: 130px; }
  .rental-modal-card { padding: 16px; }
  .rental-summary-card, .machine-modal-card { padding: 22px; }
  .rental-modal-card input, .rental-modal-card textarea, .rental-modal-card select, .rental-filters input, .rental-filters select { font-size: 16px; }
}
@media (max-width: 620px) {
  .rental-type-toggle .rental-type-option > span { height: 100%; min-height: 54px; }
  .rental-type-reparacion .rental-type-icon, .rental-type-transporte .rental-type-icon { display: block; }
  #rentalForm .modal-actions, .rental-legacy-modal-card .modal-actions { flex-direction: row; align-items: center; }
  #rentalForm .modal-actions-right { width: auto; margin-left: auto; }
  #rentalForm .modal-actions .button, .rental-legacy-modal-card .modal-actions .button { flex: 0 0 auto; }
}

@media print {
  .module-navigation, .rentals-shell { display: none !important; }
}

#rentalDetailModal { overflow-y: auto; align-items: flex-start; }
.rental-detail-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 18px 0; }
.rental-detail-fields dt { color: var(--ink-soft); font-size: 12.5px; }
.rental-detail-fields dd { margin: 4px 0 0; font-weight: 600; overflow-wrap: anywhere; }
.rental-detail-excluded h3 { font-size: 14px; }
.rental-detail-excluded ul { max-height: 180px; overflow-y: auto; padding-left: 22px; font-size: 13px; }
.rental-detail-amounts { padding: 12px 16px; background: #f4f5f7; border-radius: 8px; }
.rental-detail-total { border-top: 1px solid var(--line); padding-top: 12px; }
@media (max-width: 600px) { .rental-detail-fields { grid-template-columns: 1fr; } }

.rental-icon-actions { display: inline-flex; align-items: center; gap: 6px; flex-wrap: nowrap; flex-shrink: 0; }

.rental-detail-observations { margin-top: 20px; }
.rental-detail-observations h3 { margin: 0 0 8px; font-size: 14px; }
.rental-detail-observations p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
