/* ==========================================================================
   Rental Property Calculator - Stylesheet
   Exact Clone matching Reference Images 1 & 2
   ========================================================================== */

.rental-page-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 12px 15px 40px;
  font-family: Arial, Helvetica, sans-serif;
  color: #333333;
}

/* Top Breadcrumb and Actions */
.rental-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  margin-bottom: 6px;
  flex-wrap: wrap;
  gap: 10px;
}

.rental-breadcrumbs {
  color: #0844a4;
  font-size: 13px;
}

.rental-breadcrumbs a {
  color: #0844a4;
  text-decoration: none;
}

.rental-breadcrumbs a:hover {
  text-decoration: underline;
}

.rental-breadcrumbs .sep {
  color: #777777;
  margin: 0 4px;
}

.rental-breadcrumbs .current {
  color: #333333;
}

.rental-top-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.rental-top-btn,
.rental-print-link {
  background: none;
  border: none;
  color: #0844a4;
  text-decoration: underline;
  cursor: pointer;
  font-size: 13px;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 4px;
}

.rental-top-btn:hover,
.rental-print-link:hover {
  color: #002277;
}

/* Page Title & Intro */
.rental-page-title {
  font-size: 26px;
  font-weight: bold;
  color: #003366;
  margin: 4px 0 6px 0;
}

.rental-intro-desc {
  font-size: 13px;
  line-height: 1.5;
  color: #444444;
  margin: 0 0 16px 0;
}

/* Two-Column Grid: Left Calculator & Right Sidebar (Exact layout of Reference Image 2) */
.rental-main-grid {
  display: grid;
  grid-template-columns: 1fr 265px;
  gap: 24px;
  align-items: start;
  margin-bottom: 30px;
}

.rental-content-col {
  min-width: 0;
}

/* MAIN FORM CARD (Exact clone of Image 2) */
.rental-form-card {
  background: #f0f3f6;
  border: 1px solid #c8d2dc;
  border-radius: 4px;
  padding: 16px 18px 18px;
  margin-bottom: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.rental-columns-wrap {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 22px;
  margin-bottom: 12px;
}

.rental-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Blue Box Headers */
.rental-col-header {
  background: #23527c;
  color: #ffffff;
  font-size: 13.5px;
  font-weight: bold;
  padding: 5px 10px;
  border-radius: 3px 3px 0 0;
  margin-bottom: 8px;
  letter-spacing: 0.2px;
}

/* Section Container */
.rental-section {
  background: #ffffff;
  border: 1px solid #d1dbe5;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.rental-section-body {
  padding: 10px 12px 12px;
}

/* Form Row Items */
.rental-field-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 13px;
  gap: 8px;
}

.rental-field-row:last-child {
  margin-bottom: 0;
}

.rental-field-label {
  color: #333333;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.rental-field-control {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.rental-prefix,
.rental-unit {
  font-size: 13px;
  color: #333333;
  font-weight: normal;
}

.rental-input {
  border: 1px solid #7f9db9;
  padding: 3px 6px;
  font-size: 13px;
  color: #111111;
  background-color: #ffffff;
  border-radius: 2px;
  box-sizing: border-box;
  font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.rental-input:focus {
  outline: none;
  border-color: #0055aa;
  box-shadow: 0 0 3px rgba(0, 85, 170, 0.4);
}

.rental-input-price {
  width: 110px;
}

.rental-input-short {
  width: 50px;
  text-align: right;
}

.rental-input-term {
  width: 50px;
  text-align: right;
}

.rental-input-pct {
  width: 46px;
  text-align: right;
}

/* Radio Button Groups */
.rental-radio-group {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.rental-radio-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  font-size: 13px;
  color: #333333;
}

.rental-radio-label input[type="radio"] {
  margin: 0;
  cursor: pointer;
  accent-color: #23527c;
}

/* Table Style for Recurring Expenses & Income */
.rental-table-inputs {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.rental-table-inputs th {
  font-weight: normal;
  font-size: 11.5px;
  color: #333333;
  text-align: center;
  padding: 0 4px 6px;
  white-space: nowrap;
}

.rental-table-inputs td {
  padding: 4px 2px;
  vertical-align: middle;
}

.rental-table-inputs td:first-child {
  padding-left: 0;
  color: #333333;
}

.rental-table-inputs .col-label {
  width: 44%;
}

.rental-table-inputs .col-amt {
  width: 32%;
  text-align: right;
}

.rental-table-inputs .col-inc {
  width: 24%;
  text-align: right;
}

/* Nested sub-fields */
.rental-sub-fields {
  background: #f8fafc;
  border-left: 3px solid #23527c;
  padding: 6px 8px 6px 12px;
  margin: 4px 0 8px;
  border-radius: 0 3px 3px 0;
}

/* Action Buttons (Calculate & Clear matching Image 2) */
.rental-form-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding-top: 8px;
}

.rental-btn-calculate {
  background: #4a7c29;
  background: linear-gradient(180deg, #5b8e36 0%, #447425 100%);
  color: #ffffff;
  border: 1px solid #38611e;
  border-radius: 3px;
  padding: 6px 18px;
  font-size: 13.5px;
  font-weight: bold;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
  transition: all 0.15s ease;
}

.rental-btn-calculate:hover {
  background: linear-gradient(180deg, #679f3d 0%, #4c822b 100%);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.rental-btn-calculate:active {
  transform: translateY(1px);
}

.rental-btn-clear {
  background: #8c9ba5;
  background: linear-gradient(180deg, #9caab5 0%, #7e8d98 100%);
  color: #ffffff;
  border: 1px solid #6b7a85;
  border-radius: 3px;
  padding: 6px 16px;
  font-size: 13.5px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.rental-btn-clear:hover {
  background: linear-gradient(180deg, #a7b5c0 0%, #8998a3 100%);
}

/* RIGHT SIDEBAR (Exact Clone of Image 2) */
.rental-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.rental-sidebar-search {
  display: flex;
  align-items: center;
  gap: 4px;
  position: relative;
}

.rental-sidebar-search-wrap {
  flex: 1;
  position: relative;
}

.rental-sidebar-search-input {
  width: 100%;
  border: 1px solid #7f9db9;
  padding: 4px 8px;
  font-size: 13px;
  border-radius: 2px;
  background: #ffffff;
  outline: none;
  box-sizing: border-box;
}

.rental-sidebar-search-input:focus {
  border-color: #0055aa;
}

.rental-sidebar-search-btn {
  background: #23527c;
  color: #ffffff;
  border: 1px solid #1a3e5e;
  border-radius: 2px;
  padding: 4px 12px;
  font-size: 13px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}

.rental-sidebar-search-btn:hover {
  background: #1a3e5e;
}

/* 8-Language Search Dropdown */
.rental-search-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-top: none;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
  max-height: 280px;
  overflow-y: auto;
  z-index: 1000;
  display: none;
}

.rental-search-item {
  display: block;
  padding: 7px 10px;
  font-size: 12.5px;
  color: #0844a4;
  text-decoration: none;
  border-bottom: 1px solid #f1f5f9;
  cursor: pointer;
  text-align: left;
  line-height: 1.35;
}

.rental-search-item:hover,
.rental-search-item.active {
  background: #f0f7ff;
  color: #002277;
  text-decoration: underline;
}

.rental-search-item-title {
  display: block;
  font-weight: 600;
}

.rental-search-item .cat-label {
  font-size: 10.5px;
  color: #64748b;
  display: block;
  margin-top: 2px;
}

.rental-search-empty {
  padding: 10px 14px;
  font-size: 12px;
  color: #64748b;
  text-align: center;
}

[dir="rtl"] .rental-search-item {
  text-align: right;
}

/* Sidebar Calculators Card */
.rental-sidebar-card {
  border: 1px solid #c8d2dc;
  border-radius: 3px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.rental-sidebar-header {
  background: #23527c;
  color: #ffffff;
  font-size: 13.5px;
  font-weight: bold;
  padding: 6px 12px;
}

.rental-sidebar-body {
  padding: 12px 10px 10px;
}

.rental-calcs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 10px;
  font-size: 12px;
}

.rental-calcs-col {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.rental-calcs-col a {
  color: #0844a4;
  text-decoration: none;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rental-calcs-col a:hover {
  text-decoration: underline;
  color: #002277;
}

.rental-sidebar-footer {
  border-top: 1px solid #e2e8f0;
  padding: 8px 10px;
  font-size: 11.5px;
  color: #0844a4;
  text-align: center;
  background: #f8fafc;
}

.rental-sidebar-footer a {
  color: #0844a4;
  text-decoration: none;
}

.rental-sidebar-footer a:hover {
  text-decoration: underline;
}

.rental-sidebar-footer .sep {
  color: #94a3b8;
  margin: 0 4px;
}

/* ==========================================================================
   Results Section: Financial Cards, Pro-Forma Tables, Charts, & Schedule
   ========================================================================== */

.rental-results-wrapper {
  margin-top: 8px;
}

.rental-results-header {
  border-bottom: 2px solid #23527c;
  padding-bottom: 6px;
  margin-bottom: 16px;
}

.rental-results-title {
  font-size: 20px;
  font-weight: bold;
  color: #003366;
  margin: 0 0 4px;
}

.rental-results-subtitle {
  font-size: 12.5px;
  color: #64748b;
  margin: 0;
}

/* Key Performance Indicators (KPI Cards) */
.rental-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.rental-kpi-card {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s, box-shadow 0.15s;
}

.rental-kpi-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.05);
}

.rental-kpi-card.highlight {
  background: #f0fdf4;
  border-color: #86efac;
}

.rental-kpi-label {
  font-size: 11.5px;
  color: #475569;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  font-weight: 600;
}

.rental-kpi-value {
  font-size: 20px;
  font-weight: bold;
  color: #0f172a;
}

.rental-kpi-card.highlight .rental-kpi-value {
  color: #15803d;
}

.rental-kpi-sub {
  font-size: 11px;
  color: #64748b;
  margin-top: 2px;
}

/* Tables Section */
.rental-tables-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.rental-table-box {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  overflow: hidden;
}

.rental-table-box-header {
  background: #f1f5f9;
  border-bottom: 1px solid #cbd5e1;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: bold;
  color: #1e293b;
}

.rental-data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}

.rental-data-table th,
.rental-data-table td {
  padding: 6px 10px;
  border-bottom: 1px solid #f1f5f9;
}

.rental-data-table th {
  background: #f8fafc;
  color: #475569;
  font-weight: 600;
  text-align: left;
}

.rental-data-table td.num,
.rental-data-table th.num {
  text-align: right;
}

.rental-data-table tr:last-child td {
  border-bottom: none;
}

.rental-data-table tr.total-row {
  background: #f8fafc;
  font-weight: bold;
  border-top: 1px solid #cbd5e1;
}

.rental-data-table tr.highlight-row {
  background: #f0fdf4;
  font-weight: bold;
  color: #166534;
}

/* Interactive Charts Section */
.rental-charts-section {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 16px;
  margin-bottom: 24px;
}

.rental-charts-header {
  font-size: 15px;
  font-weight: bold;
  color: #0f172a;
  margin-bottom: 14px;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 6px;
}

.rental-charts-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 20px;
  align-items: center;
}

.rental-chart-card {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.rental-chart-title {
  font-size: 12.5px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 10px;
  text-align: center;
}

.rental-chart-svg {
  width: 100%;
  max-width: 480px;
  height: auto;
  overflow: visible;
}

/* Annual Schedule Table */
.rental-schedule-section {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 28px;
}

.rental-schedule-header {
  background: #23527c;
  color: #ffffff;
  padding: 8px 14px;
  font-size: 13.5px;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.rental-schedule-table-wrap {
  max-height: 380px;
  overflow-y: auto;
}

.rental-schedule-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.rental-schedule-table th {
  position: sticky;
  top: 0;
  background: #f1f5f9;
  color: #334155;
  font-weight: 700;
  padding: 8px 10px;
  border-bottom: 2px solid #cbd5e1;
  text-align: right;
  white-space: nowrap;
  z-index: 2;
}

.rental-schedule-table th:first-child,
.rental-schedule-table td:first-child {
  text-align: center;
}

.rental-schedule-table td {
  padding: 6px 10px;
  border-bottom: 1px solid #e2e8f0;
  text-align: right;
  white-space: nowrap;
}

.rental-schedule-table tr:nth-child(even) {
  background: #f8fafc;
}

.rental-schedule-table tr:hover {
  background: #e0f2fe;
}

/* ==========================================================================
   Fraction Co-Ownership Arithmetic Solver (Core Requirement 1)
   ========================================================================== */

.rental-fraction-section {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 16px 20px;
  margin-bottom: 28px;
}

.rental-fraction-header {
  font-size: 16px;
  font-weight: bold;
  color: #003366;
  margin-bottom: 4px;
}

.rental-fraction-desc {
  font-size: 12.5px;
  color: #475569;
  line-height: 1.5;
  margin-bottom: 16px;
}

.rental-fraction-form {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 14px 16px;
  margin-bottom: 16px;
}

.rental-fraction-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.rental-fraction-title {
  font-size: 11.5px;
  font-weight: 600;
  color: #475569;
}

.rental-fraction-inputs {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 54px;
}

.rental-fraction-num,
.rental-fraction-den {
  width: 50px;
  text-align: center;
  padding: 3px 0;
  font-size: 13.5px;
  font-weight: bold;
}

.rental-fraction-line {
  width: 44px;
  height: 2px;
  background: #334155;
  margin: 3px 0;
}

.rental-fraction-op-select {
  border: 1px solid #7f9db9;
  padding: 5px 8px;
  font-size: 16px;
  font-weight: bold;
  border-radius: 3px;
  background: #ffffff;
  cursor: pointer;
}

.rental-btn-fraction-calc {
  background: #23527c;
  color: #ffffff;
  border: 1px solid #1a3e5e;
  border-radius: 3px;
  padding: 7px 16px;
  font-size: 13px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.15s;
}

.rental-btn-fraction-calc:hover {
  background: #1a3e5e;
}

.rental-fraction-result-wrap {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 16px;
  align-items: center;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 14px 18px;
}

.rental-fraction-result-display {
  display: flex;
  align-items: center;
  gap: 14px;
}

.rental-fraction-big-ans {
  font-size: 22px;
  font-weight: bold;
  color: #0f172a;
}

.rental-fraction-breakdown {
  font-size: 12.5px;
  color: #334155;
  line-height: 1.5;
}

/* ==========================================================================
   SEO / AEO / GEO Educational Guide & FAQ
   ========================================================================== */

.rental-seo-content {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 22px 24px;
  margin-bottom: 28px;
  font-size: 13.5px;
  line-height: 1.65;
  color: #334155;
}

.rental-seo-title {
  font-size: 18px;
  font-weight: bold;
  color: #003366;
  margin: 0 0 12px;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 8px;
}

.rental-seo-content p {
  margin: 0 0 14px;
}

.rental-seo-content p:last-child {
  margin-bottom: 0;
}

.rental-faq-section {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 20px 24px;
  margin-bottom: 30px;
}

.rental-faq-title {
  font-size: 18px;
  font-weight: bold;
  color: #003366;
  margin: 0 0 14px;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 8px;
}

.rental-faq-item {
  border-bottom: 1px solid #e2e8f0;
  padding: 10px 0;
}

.rental-faq-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.rental-faq-question {
  font-size: 14px;
  font-weight: bold;
  color: #1e293b;
  margin: 0 0 6px;
}

.rental-faq-answer {
  font-size: 13px;
  line-height: 1.55;
  color: #475569;
  margin: 0;
}

/* ==========================================================================
   Print & History Modal Overlays
   With Prominent Close Buttons (from latest checkpoint improvements)
   ========================================================================== */

.rental-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.68);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  padding: 16px;
  overflow-y: auto;
  box-sizing: border-box;
}

.rental-modal-card {
  background: #ffffff;
  border: 1px solid #94a3b8;
  border-radius: 6px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
  width: 98%;
  max-width: 820px;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  display: flex;
  flex-direction: column;
  margin: auto;
  overflow: hidden;
}

.rental-modal-header {
  background: #204975;
  color: #ffffff;
  padding: 10px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

.rental-modal-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rental-modal-title {
  font-size: 14px;
  font-weight: bold;
  letter-spacing: 0.2px;
}

/* Prominent Close Button in Modal Header */
.rental-modal-close-prominent {
  background: #ffffff !important;
  color: #1e293b !important;
  border: 1px solid #cbd5e1 !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  cursor: pointer;
  padding: 5px 12px !important;
  border-radius: 4px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: all 0.15s ease;
}

.rental-modal-close-prominent .close-icon {
  font-size: 17px;
  font-weight: bold;
  color: #dc2626;
  line-height: 1;
}

.rental-modal-close-prominent:hover {
  background: #fee2e2 !important;
  color: #991b1b !important;
  border-color: #fca5a5 !important;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.rental-modal-body {
  padding: 16px 20px;
  overflow-y: auto;
  flex: 1;
  background: #f8fafc;
}

.rental-print-actions-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 10px 14px;
  flex-wrap: wrap;
}

.rental-print-actions-btns {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
}

.rental-btn-print-primary {
  background-color: #0284c7;
  color: #ffffff;
  border: 1px solid #0369a1;
  border-radius: 4px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.rental-btn-print-primary:hover {
  background-color: #0369a1;
}

.rental-btn-print-sec {
  background-color: #ffffff;
  color: #334155;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 6px 12px;
  font-size: 12.5px;
  cursor: pointer;
}

.rental-btn-print-sec:hover {
  background-color: #f1f5f9;
  border-color: #94a3b8;
}

.rental-btn-toolbar-close {
  background-color: #fff1f2 !important;
  color: #9f1239 !important;
  border: 1px solid #fecdd3 !important;
  font-weight: 700 !important;
  margin-left: auto;
  box-shadow: 0 1px 2px rgba(225, 29, 72, 0.1);
}

.rental-btn-toolbar-close:hover {
  background-color: #ffe4e6 !important;
  color: #881337 !important;
  border-color: #fda4af !important;
}

.rental-print-report-paper {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 18px 22px;
  font-size: 12.5px;
  line-height: 1.5;
  color: #1e293b;
}

.rental-modal-footer {
  background: #f8fafc;
  padding: 10px 16px;
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

.rental-btn-footer-close {
  background: #1e293b !important;
  color: #ffffff !important;
  border: 1px solid #0f172a !important;
  font-weight: 700 !important;
  padding: 6px 18px !important;
  border-radius: 4px !important;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
}

.rental-btn-footer-close:hover {
  background: #dc2626 !important;
  border-color: #b91c1c !important;
}

/* History Modal Specifics */
.rental-history-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.rental-history-item {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.rental-history-details {
  font-size: 12.5px;
}

.rental-history-date {
  font-size: 11px;
  color: #64748b;
  margin-bottom: 2px;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .rental-main-grid {
    grid-template-columns: 1fr;
  }
  .rental-columns-wrap {
    grid-template-columns: 1fr;
  }
  .rental-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .rental-tables-wrap {
    grid-template-columns: 1fr;
  }
  .rental-charts-grid {
    grid-template-columns: 1fr;
  }
  .rental-fraction-result-wrap {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 540px) {
  .rental-kpi-grid {
    grid-template-columns: 1fr;
  }
  .rental-print-actions-btns {
    flex-direction: column;
    align-items: stretch;
  }
  .rental-btn-toolbar-close {
    margin-left: 0;
  }
}
