/* ===== STORAGE UNIT MANAGEMENT TABLE ===== */
.dashboard-table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(11, 79, 108, 0.08);
  overflow: hidden;
}
.dashboard-table th, .dashboard-table td {
  padding: 10px 8px;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid #e0e7ef;
  font-size: 0.95em;
}
.dashboard-table th {
  background: #e8f3f7;
  color: #0b4f6c;
  font-weight: 700;
  font-size: 1.08em;
  letter-spacing: 0.5px;
}
.dashboard-table tr {
  transition: background 0.2s;
}
.dashboard-table tr:hover {
  background: #f5fbff;
}
.dashboard-table select, .dashboard-table input[type="date"] {
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid #b3d6ea;
  font-size: 0.95em;
  background: #f8fcff;
  color: #0b4f6c;
  min-width: 96px;
  box-sizing: border-box;
}
.dashboard-table .btn.link-btn {
  color: #e53e3e;
  background: none;
  border: none;
  font-weight: 600;
  cursor: pointer;
  padding: 0 8px;
  transition: color 0.2s;
}
.dashboard-table .btn.link-btn:hover {
  color: #b91c1c;
  text-decoration: underline;
}
* {
  box-sizing: border-box;
}

:root {
  --brand: #0b4f6c;
  --brand-dark: #0b3f63;
  --brand-darker: #072b3f;
  --brand-light: #0e6c8f;
  --brand-tint: #e8f3f7;
}

body {
  font-family: "Segoe UI", "Helvetica Neue", sans-serif;
  margin: 0;
  background: #fafafa;
  color: #333;
}

.dashboard-page {
  background:
    radial-gradient(circle at top left, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0) 28%),
    linear-gradient(180deg, #eef4f8 0%, #f7fafc 42%, #eef3f7 100%);
}

.dashboard-page .hero {
  min-height: 210px;
  padding: 52px 20px;
}

.dashboard-page .hero-content {
  max-width: 680px;
}

.dashboard-page .hero h2 {
  font-size: 28px;
  margin-bottom: 10px;
}

.dashboard-page .hero p {
  font-size: 17px;
  margin-bottom: 18px;
}

.dashboard-page .hero .btn {
  padding: 10px 22px;
  font-size: 14px;
}

/* ===== HEADER ===== */

header {
  background: var(--brand);
  color: white;
  padding: 15px 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  row-gap: 10px;
}

header h1 {
  margin: 0;
  font-size: 20px;
}

nav {
  display: flex;
  align-items: center;
  gap: 15px;
  order: 3;
  width: 100%;
  justify-content: center;
  background: var(--brand);
  padding: 10px 0;
  margin-top: 6px;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
}

nav a:hover {
  text-decoration: underline;
}



.lang-switch {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

.lang-switch select {
  min-width: 132px;
  font-size: 16px;
  padding: 6px 12px;
  border-radius: 8px;
  border: 0;
  background: rgba(255, 255, 255, 0.96);
  color: #22313f;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
  cursor: pointer;
  transition: border 0.15s;
}
.lang-switch select:focus {
  border-color: #a0a0a0;
  outline: none;
}

.lang-switch button {
  background: #f5f5f5;
  border: 1px solid #d0d0d0;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 18px;
  color: #22313f;
  cursor: pointer;
  transition: background 0.15s, border 0.15s;
}
.lang-switch button:hover, .lang-switch button:focus {
  background: #e0e0e0;
  border-color: #a0a0a0;
}

.lang-switch {
  order: 2;
  margin-left: auto;
}

body.home-page header {
  background: transparent;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5;
  padding: 26px 24px 0;
  flex-wrap: nowrap;
}

body.auth-page header {
  background: transparent;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5;
  padding: 26px 24px 0;
  flex-wrap: nowrap;
}

body.enquiry-page header,
body.dashboard-page header {
  background: transparent;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5;
  padding: 26px 24px 0;
  flex-wrap: nowrap;
}

body.home-page header h1,
body.auth-page header h1,
body.enquiry-page header h1,
body.dashboard-page header h1,
body.public-page header h1 {
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}


.hero-nav {
  background: var(--brand-dark);
  display: flex;
  justify-content: center;
  gap: 32px;
  padding: 14px 20px;
  width: 100%;
  margin-top: 0;
  position: relative;
  z-index: 4;
  box-shadow: 0 -1px 0 rgba(255, 255, 255, 0.06) inset;
}

.hero-nav a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  text-shadow: none;
}

.hero-nav a:hover {
  text-decoration: underline;
}

/* ===== HERO ===== */

.hero {
  position: relative;
  padding: 100px 20px;
  background-size: cover;
  background-position: center;
  text-align: center;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-hero {
  min-height: 190px;
  padding: 0;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.35);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: white;
  max-width: 800px;
}

.hero h2 {
  font-size: 42px;
  margin: 0 0 15px;
  text-shadow: 0 4px 8px rgba(0,0,0,0.4);
  font-weight: 700;
}

.hero p {
  font-size: 20px;
  margin: 0 0 30px;
  text-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.hero .btn {
  background: linear-gradient(180deg, var(--brand-light) 0%, var(--brand) 100%);
  color: #fff;
}

/* ===== BUTTON ===== */

.btn {
  background: linear-gradient(180deg, var(--brand-light) 0%, var(--brand) 100%);
  color: #fff;
  padding: 12px 28px;
  text-decoration: none;
  border-radius: 10px;
  font-weight: 700;
  letter-spacing: 0.2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--brand-darker);
  box-shadow: 0 10px 18px rgba(11,79,108,0.22), inset 0 1px 0 rgba(255,255,255,0.15);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:hover {
  background: linear-gradient(180deg, #0f7aa1 0%, var(--brand-darker) 100%);
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(11,79,108,0.26), inset 0 1px 0 rgba(255,255,255,0.18);
}

.btn:active {
  transform: translateY(0);
  box-shadow: 0 6px 12px rgba(11,79,108,0.2), inset 0 1px 0 rgba(255,255,255,0.12);
}

.btn:focus-visible {
  outline: 3px solid rgba(11,79,108,0.35);
  outline-offset: 2px;
}

#openQuoteForm {
  padding: 10px 22px;
  border-radius: 8px;
  font-weight: 600;
  box-shadow: 0 6px 14px rgba(11,79,108,0.18);
}

#openQuoteForm:hover {
  background: var(--brand-dark);
}

/* ===== UNITS ===== */

.units {
  padding: 40px 20px;
  text-align: center;
}

.units h3 {
  font-size: 24px;
  margin-bottom: 25px;
}

.section-heading {
  text-align: center;
  margin: 0 auto 32px;
}

.section-heading h3 {
  margin: 0;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.05;
  letter-spacing: 0.04em;
  color: #ff6b6b;
  text-transform: uppercase;
}

.section-heading--light h3 {
  color: #ffd23f;
  text-transform: none;
  letter-spacing: 0;
}

.home-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: stretch;
  background: #165c8b;
}

.home-feature-media img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  display: block;
}

.home-feature-copy {
  padding: 44px 36px;
  color: #ffffff;
}

.home-feature-btn {
  min-width: 265px;
  margin-bottom: 34px;
  background: #14588a;
  border-color: rgba(255,255,255,0.15);
  box-shadow: none;
}

.home-feature-copy h3 {
  margin: 0 0 28px;
  font-size: clamp(30px, 3vw, 46px);
  line-height: 1.08;
}

.home-feature-copy p {
  margin: 0 0 22px;
  font-size: 18px;
  line-height: 1.55;
  color: rgba(255,255,255,0.92);
}

.home-reasons {
  padding: 88px 20px 96px;
  background: #f8f8f8;
}

.reason-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.reason-card {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.reason-card--declutter {
  background-image: url('../image/self.png');
}

.reason-card--moving {
  background-image: url('../image/self2.png');
}

.reason-card--retirement {
  background-image: url('../image/self3.png');
}

.reason-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 89, 131, 0.72) 0%, rgba(18, 89, 131, 0.82) 100%);
}

.reason-card__content {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 34px 28px;
  color: #ffffff;
}

.reason-card__content h4 {
  margin: 0 0 22px;
  font-size: 28px;
  color: #ff6b6b;
}

.reason-card__content p {
  margin: 0;
  max-width: 290px;
  font-size: 18px;
  line-height: 1.6;
}

.business-benefits {
  padding: 86px 20px 96px;
  background: #165c8b;
}

.benefits-grid {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.benefit-tile {
  min-height: 220px;
  padding: 30px 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  color: #ffffff;
}

.benefit-tile h4 {
  margin: 0 0 14px;
  font-size: 28px;
  line-height: 1.15;
}

.benefit-tile p {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
}

.benefit-tile--green { background: #35c84a; }
.benefit-tile--teal { background: #13a8c7; }
.benefit-tile--gold { background: #ffcf19; color: #18384b; }
.benefit-tile--aqua { background: #2fc6c8; }
.benefit-tile--blue { background: #1f8df2; }

.contact-map-section {
  padding: 74px 20px 90px;
  background: #f8f8f8;
  display: grid;
  grid-template-columns: minmax(320px, 0.85fr) minmax(360px, 1fr);
  gap: 34px;
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
}

.contact-card,
.map-card {
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 16px 34px rgba(11,79,108,0.08);
  overflow: hidden;
}

.contact-card {
  padding: 30px;
}

.contact-card h3 {
  margin: 0 0 24px;
  font-size: 30px;
  color: var(--brand-dark);
}

.contact-list {
  display: grid;
  gap: 18px;
}

.contact-item {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 16px;
  align-items: center;
}

.contact-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #7dd4d8 0%, #3da8ba 100%);
  color: #ffffff;
  font-size: 24px;
  font-weight: 700;
}

.contact-item strong {
  display: block;
  color: var(--brand-dark);
  margin-bottom: 4px;
}

.contact-item p {
  margin: 0;
  color: #587284;
}

.contact-map {
  display: block;
  width: 100%;
  min-height: 420px;
}

.map-card iframe,
.contact-map {
  border: 0;
}

.grid {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.card {
  background: white;
  border: 1px solid #ddd;
  padding: 25px;
  width: 200px;
  border-radius: 6px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

/* ===== DETAILED UNIT CARDS ===== */

.units-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
  max-width: 1200px;
  margin: 0 auto;
}

.unit-card-detailed {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0,0,0,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.unit-card-detailed:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(0,0,0,0.12);
}

.unit-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.unit-card-detailed h4 {
  font-size: 20px;
  margin: 18px 16px 10px;
  color: var(--brand-dark);
}

.unit-price-ex-vat {
  margin: 8px 16px;
  font-size: 16px;
  color: #555;
  font-weight: 600;
}

.unit-price-inc-vat {
  margin: 4px 16px 14px;
  font-size: 16px;
  color: var(--brand);
  font-weight: 700;
}

.unit-specs {
  list-style: none;
  padding: 0 16px 16px;
  margin: 0;
  font-size: 14px;
  color: #666;
}

.unit-specs li {
  padding: 5px 0;
  border-top: 1px solid #f0f0f0;
}

.unit-specs li:first-child {
  border-top: none;
}

/* ===== PROMO ===== */

.promo {
  background: var(--brand-tint);
  padding: 30px 20px;
  text-align: center;
}

.promo h3 {
  margin-bottom: 10px;
}

/* ===== CTA ===== */

.cta {
  background: var(--brand);
  color: white;
  padding: 40px 20px;
  text-align: center;
}

.cta .btn {
  background: white;
  color: var(--brand);
}

/* ===== FOOTER ===== */

footer {
  background: var(--brand-dark);
  color: white;
  padding: 15px;
  text-align: center;
  font-size: 14px;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 768px) {
  header {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .lang-switch {
    margin-left: 0;
  }

  nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero h2 {
    font-size: 24px;
  }

  .grid {
    flex-direction: column;
    align-items: center;
  }

  .dashboard-section--units {
    padding: 20px;
  }

  .units-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .card {
    width: 90%;
  }

  .home-feature {
    grid-template-columns: 1fr;
  }

  .home-feature-copy {
    padding: 28px 20px 34px;
  }

  .home-feature-btn {
    width: 100%;
    min-width: 0;
  }

  .reason-grid,
  .benefits-grid,
  .contact-map-section {
    grid-template-columns: 1fr;
  }

  .reason-card {
    min-height: 360px;
  }
}

/* ===== FORMS (LOGIN / REGISTER) ===== */

.hero input {
  width: 100%;
  max-width: 320px;
  padding: 12px;
  margin: 8px auto;
  display: block;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 15px;
}

.hero input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 2px rgba(11,79,108,0.15);
}

/* Message (error / success) */
#msg {
  margin-top: 10px;
  font-size: 14px;
  min-height: 18px;
  color: #c62828; /* default error */
}

/* Success message override */
#msg.success {
  color: var(--brand);
}

/* ===== LOGIN FOOTER ===== */

.login-footer {
  margin-top: 20px;
  text-align: center;
}

.login-footer p {
  margin-bottom: 6px;
  color: #555;
}

.register-link {
  color: var(--brand);
  font-weight: bold;
  text-decoration: none;
}

.register-link:hover {
  text-decoration: underline;
}

/* ===== BUTTON SPACING ===== */

.hero .btn {
  margin-top: 10px;
}

/* ===== SMALL SCREENS ===== */

@media (max-width: 480px) {
  .hero {
    padding: 60px 15px;
    min-height: 300px;
  }

  .hero h2 {
    font-size: 24px;
  }

  .hero p {
    font-size: 16px;
  }

  .hero input {
    max-width: 100%;
  }
}

/* ===== AUTH CONTAINER (LOGIN / REGISTER) ===== */

.auth-container {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-tint);
}

.auth-page .auth-container {
  min-height: calc(100vh - 230px);
}

.auth-card {
  background: #ffffff;
  width: 100%;
  max-width: 420px;
  padding: 32px;
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
  text-align: center;
}

/* Title */
.auth-card h2 {
  margin-bottom: 6px;
  font-size: 26px;
}

/* Subtitle */
.auth-card .auth-subtitle {
  font-size: 14px;
  color: #666;
  margin-bottom: 22px;
}

.role-selector {
  display: flex;
  gap: 10px;
  margin: 0 0 16px;
}

.role-btn {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid var(--brand);
  background: #ffffff;
  color: var(--brand);
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
}

.role-btn.active {
  background: var(--brand);
  color: #ffffff;
}

/* ===== FORM GROUP ===== */

.form-group {
  margin-bottom: 16px;
  text-align: left;
}

.form-group label {
  display: block;
  font-size: 14px;
  margin-bottom: 6px;
  color: #333;
}

.form-group input {
  width: 100%;
  padding: 11px 12px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 15px;
}

.form-group input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 2px rgba(11,79,108,0.15);
}

/* ===== FULL WIDTH BUTTON ===== */

.btn.full {
  width: 100%;
  margin-top: 10px;
}

/* ===== FORM MESSAGES ===== */

.form-message {
  margin-top: 14px;
  font-size: 14px;
  min-height: 18px;
  text-align: center;
}

.form-message.error {
  color: #c62828;
}

.form-message.success {
  color: var(--brand);
}

/* ===== AUTH FOOTER ===== */

.auth-footer {
  margin-top: 20px;
  font-size: 14px;
}

.auth-footer a {
  color: var(--brand);
  font-weight: bold;
  text-decoration: none;
}

.auth-footer a:hover {
  text-decoration: underline;
}
/* ===== ENQUIRY FORM (GET QUOTE) ===== */

.enquiry-page {
  background: #f2f2f2;
}

.enquiry-wrapper {
  max-width: 520px;
  margin: 60px auto;
  background: #ffffff;
  padding: 30px 28px 28px;
  border-radius: 4px;
  border: 1px solid #e0e0e0;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  text-align: center;
}

.enquiry-wrapper h2 {
  margin-bottom: 5px;
  font-size: 26px;
}

.enquiry-wrapper .note {
  font-size: 14px;
  color: #e65100;
  margin-bottom: 22px;
}

/* FORM */

.enquiry-form {
  text-align: left;
}

.enquiry-form input,
.enquiry-form select,
.enquiry-form textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #000;
  font-size: 14px;
  border-radius: 2px;
  background: #fff;
}

.enquiry-form textarea {
  min-height: 110px;
  margin-bottom: 8px;
  resize: vertical;
}

/* TWO COLUMN ROW */

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.form-row input,
.form-row select {
  margin: 0;
}

/* RADIO BLOCK */

.radio-block {
  margin: 6px 0 12px;
}

.radio-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}

.radio-options {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.radio-option {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}

.radio-option input[type="radio"] {
  margin: 0;
}

/* SUBMIT BUTTON */

.enquiry-wrapper .submit-btn {
  width: 160px;
  background: var(--brand);
  color: #ffffff;
  padding: 10px 14px;
  border: none;
  font-size: 15px;
  cursor: pointer;
  margin: 16px auto 0;
  display: block;
}

.enquiry-wrapper .submit-btn:hover {
  background: var(--brand-dark);
}

/* MESSAGE */

#msg {
  margin-top: 12px;
  font-size: 14px;
  text-align: center;
}

.role-badge {
  display: inline-block;
  margin: 8px auto 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--brand-tint);
  color: var(--brand);
  font-size: 13px;
  font-weight: 600;
}

.dashboard-panel {
  max-width: 1100px;
  margin: 26px auto 60px;
  padding: 0 20px;
}

.dashboard-hero {
  max-width: 1100px;
  margin: 28px auto 10px;
  padding: 22px 24px;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.08);
}

.dashboard-hero-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.dashboard-hero-text {
  max-width: 680px;
}

.dashboard-hero h2 {
  margin: 0 0 6px;
  font-size: 30px;
  color: var(--brand-dark);
}

.dashboard-hero p {
  margin: 0;
  color: #56636b;
}

.dashboard-hero-meta {
  display: grid;
  gap: 8px;
  justify-items: end;
}

.user-email {
  margin: 0;
  font-size: 14px;
  color: #24323a;
}

#tenantPanel.dashboard-panel {
  max-width: 100%;
  padding: 0 32px;
}

.dashboard-section {
  background: #ffffff;
  border: 1px solid #dce7ef;
  border-radius: 16px;
  padding: 28px;
  margin-bottom: 24px;
  box-shadow: 0 14px 32px rgba(18, 49, 75, 0.08);
}

.dashboard-section--units {
  background:
    radial-gradient(circle at top right, rgba(11, 79, 108, 0.09), transparent 24%),
    linear-gradient(180deg, #fcfeff 0%, #f6fbfd 100%);
}

.section-header--units {
  margin-bottom: 18px;
}

.section-heading-group {
  display: grid;
  gap: 6px;
}

.section-eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #4e7a8f;
}

.section-description {
  margin: 0;
  max-width: 700px;
  color: #5c7280;
  line-height: 1.5;
}

.units-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.units-overview-card {
  display: grid;
  gap: 10px;
  padding: 18px 20px;
  border-radius: 18px;
  border: 1px solid #d8e6ee;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(239, 247, 251, 0.92));
  box-shadow: 0 14px 30px rgba(17, 56, 86, 0.08);
  position: relative;
  overflow: hidden;
}

.units-overview-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, #0b4f6c, #2d7ff9);
}

.units-overview-value {
  font-size: 32px;
  line-height: 1;
  font-weight: 800;
  color: #0b3f63;
}

.units-overview-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #58707e;
}

.dashboard-panel-controls--units {
  margin-bottom: 18px;
  padding: 16px;
  border: 1px solid #d7e5ed;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.9);
}

.unit-management-form {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  width: 100%;
  align-items: center;
}

.unit-management-form input,
.unit-management-form select {
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #cad8e2;
  background: #fbfdff;
  color: #16384c;
}

.unit-management-form input:focus,
.unit-management-form select:focus {
  outline: none;
  border-color: #7eabc0;
  box-shadow: 0 0 0 4px rgba(11, 79, 108, 0.1);
}

.unit-management-form .btn {
  min-height: 42px;
  width: 100%;
}

.dashboard-table-shell {
  overflow-x: auto;
  border: 1px solid #d7e4ec;
  border-radius: 18px;
  background: rgba(255,255,255,0.88);
  box-shadow: 0 14px 34px rgba(17, 56, 86, 0.08);
}

.accepted-details {
  display: grid;
  gap: 16px;
}

.accepted-quote {
  border: 1px solid #e6e6e6;
  border-radius: 8px;
  padding: 14px;
  background: #fafafa;
}

.accepted-quote h4 {
  margin: 0 0 10px;
  font-size: 16px;
  color: #22313f;
}

.accepted-details-table td {
  white-space: normal;
  vertical-align: top;
}

.accepted-details-label {
  font-weight: 600;
  color: #2f3c46;
  width: 220px;
}

.onboarding-steps {
  display: grid;
  gap: 18px;
  text-align: center;
}

.onboarding-step h4 {
  margin: 0 0 8px;
  font-size: 15px;
  letter-spacing: 0.2px;
  text-align: center;
}

.onboarding-step--highlight {
  padding: 18px;
  border-radius: 16px;
  border: 1px solid #d7e5ed;
  background: linear-gradient(180deg, #fafdff 0%, #f1f8fb 100%);
}

.onboarding-step p {
  margin: 0;
  line-height: 1.5;
  color: #2f3c46;
  text-align: center;
}

.onboarding-bank {
  margin: 10px 0 6px;
  display: grid;
  gap: 4px;
  font-size: 14px;
  justify-items: center;
}

.onboarding-bank--hero {
  gap: 8px;
}

.onboarding-bank strong {
  display: inline-block;
  min-width: 140px;
}

.onboarding-note {
  font-size: 13px;
  color: #59656d;
  text-align: center;
}

.onboarding-cta {
  margin-top: 18px;
  display: flex;
  justify-content: center;
}


.section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.section-header h3 {
  margin: 0;
  font-size: 17px;
  color: #17384e;
}

.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.collapsible-content {
  display: grid;
  gap: 12px;
}

.collapsible-content[hidden] {
  display: none;
}


.date-filter {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}

.table-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.columns-panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 8px;
  padding: 12px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  background: #fafafa;
  width: 100%;
}

.column-option {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 13px;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid #dce7ef;
  border-radius: 14px;
  width: 100%;
  max-width: 100vw;
  margin-left: calc(-1 * (var(--dashboard-section-padding, 20px)));
  margin-right: calc(-1 * (var(--dashboard-section-padding, 20px)));
  background: linear-gradient(180deg, #fbfdff 0%, #ffffff 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.9);
}

#landlordSheets.dashboard-section {
  width: 100vw;
  max-width: 100vw;
  margin-left: 50%;
  transform: translateX(-50%);
  border-radius: 0;
  box-shadow: none;
  background: #fff;
  padding: 32px 0 32px 0;
}
#landlordSheets .section-header {
  padding-left: 32px;
  padding-right: 32px;
}
#landlordSheets .table-wrap {
  width: 100vw;
  max-width: 100vw;
  margin: 0;
  padding: 0 32px 0 32px;
  background: none;
  box-shadow: none;
  overflow-x: auto;
  position: static;
  border: none;
  z-index: 2;
  border-radius: 0;
}

#landlordSheets .data-table {
  width: 100%;
  min-width: 1200px;
  max-width: 100%;
  margin: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  table-layout: auto;
}

#landlordSheets .data-table th,
#landlordSheets .data-table td {
  background: #fff;
}

#landlordSheets .data-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f5f5f5;
}
#landlordSheets .data-table {
  background: transparent;
  border-radius: 8px;
  min-width: 1200px;
}

#landlordSheets .data-table th,
#landlordSheets .data-table td {
  background: transparent;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 1080px;
}

.data-table th,
.data-table td {
  padding: 14px 12px;
  border-bottom: 1px solid #e7eef4;
  text-align: left;
  white-space: nowrap;
}

.data-table thead {
  background: linear-gradient(180deg, #f7fbfe 0%, #edf4f9 100%);
}

.data-table th {
  color: #23465e;
  font-size: 12px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.data-table tbody tr {
  transition: background-color 0.16s ease, box-shadow 0.16s ease;
}

.data-table tbody tr:hover {
  background: #f8fbfd;
}

/* ===== DASHBOARD TABS ===== */

.dashboard-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 10px 0 18px;
  padding: 12px 14px;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(0,0,0,0.06);
}

.dashboard-tab {
  appearance: none;
  border: 1px solid transparent;
  background: #edf4f7;
  color: var(--brand-dark);
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.dashboard-tab:hover {
  background: #e2eef4;
  transform: translateY(-1px);
}

.dashboard-tab.is-active {
  background: var(--brand-dark);
  color: #ffffff;
  box-shadow: 0 10px 18px rgba(11,63,99,0.22);
}

.dashboard-tab:focus-visible {
  outline: 3px solid rgba(11,79,108,0.35);
  outline-offset: 2px;
}

.quote-status-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 4px 0 6px;
}

.quote-status-tab {
  appearance: none;
  border: 1px solid #d3e1eb;
  background: linear-gradient(180deg, #f7fbfe 0%, #eff6fb 100%);
  color: var(--brand-dark);
  border-radius: 999px;
  padding: 9px 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.quote-status-tab:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(11,63,99,0.1);
}

.quote-status-tab.is-active {
  background: var(--brand-dark);
  color: #fff;
  box-shadow: 0 8px 18px rgba(11,63,99,0.18);
}

.quote-row-selected {
  box-shadow: inset 3px 0 0 #0b4f6c;
  background: #f2f8fc;
}

.quote-details-panel {
  width: 100%;
  margin-top: 18px;
  padding: 22px;
  border: 1px solid #dbe7f0;
  border-radius: 18px;
  background: linear-gradient(180deg, #fcfdff 0%, #f6fafc 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.75);
}

.quote-details-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.quote-detail-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 14px;
  border: 1px solid #e0eaf2;
  background: #fff;
  box-shadow: 0 8px 18px rgba(19, 50, 76, 0.05);
}

.quote-detail-card-wide {
  grid-column: 1 / -1;
  grid-template-columns: 120px 1fr;
  row-gap: 12px;
  column-gap: 18px;
}

.quote-detail-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #607080;
}

.quote-detail-select {
  min-height: 40px;
  padding: 10px 12px;
  border: 1px solid #c7d8e4;
  border-radius: 10px;
  background: #fbfdff;
}

.quote-detail-input,
.quote-detail-textarea {
  width: 100%;
  min-height: 40px;
  padding: 10px 12px;
  border: 1px solid #c7d8e4;
  border-radius: 10px;
  background: #fbfdff;
  color: #18384b;
  font: inherit;
}

.quote-detail-textarea {
  min-height: 108px;
  resize: vertical;
}

.quote-detail-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.quote-detail-actions .btn {
  flex: 1 1 140px;
  min-width: 140px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
}

.quote-detail-actions .link-btn,
.quote-detail-actions .quote-action-delete {
  background: #ffffff;
  border: 1px solid #d7e2eb;
  color: #c62828;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.quote-detail-actions .link-btn:hover,
.quote-detail-actions .quote-action-delete:hover {
  background: #fff5f5;
  color: #b71c1c;
}

.unit-management-table {
  min-width: 980px;
}

.unit-row {
  transition: background-color 0.18s ease, transform 0.18s ease;
}

.unit-row--free {
  background: rgba(244, 251, 255, 0.55);
}

.unit-row--rented {
  background: rgba(255, 244, 229, 0.92);
}

.unit-row--sold {
  background: rgba(255, 234, 240, 0.92);
}

.unit-primary-cell {
  min-width: 180px;
}

.unit-primary-cell strong {
  display: block;
  font-size: 14px;
  color: #16384c;
}

.unit-primary-cell span {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: #718391;
}

.unit-assigned-client {
  min-width: 145px;
  max-width: 170px;
  word-break: break-word;
}

.unit-assigned-client strong,
.unit-assigned-client span,
.unit-assigned-client em {
  display: block;
}

.unit-assigned-client strong {
  color: #14384c;
  font-size: 14px;
}

.unit-assigned-client span {
  margin-top: 4px;
  color: #557082;
  font-size: 12px;
}

.unit-assigned-client em {
  color: #7b8e9a;
  font-style: normal;
}

.unit-empty-state {
  padding: 28px 18px;
  text-align: center;
  color: #5f7582;
  font-weight: 600;
}

.quote-details-panel .quote-status-badge {
  background: #edf4f9;
  color: #1f5975;
}

.quote-email-cell {
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.quote-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.quote-actions .link-btn {
  margin-left: 4px;
}

.btn:disabled,
.quote-status-tab:disabled {
  opacity: 0.6;
  cursor: default;
  transform: none;
  box-shadow: none;
}

.unit-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.unit-form input,
.unit-form select {
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.link-btn {
  background: none;
  border: none;
  color: #c62828;
  padding: 0;
  font-weight: 600;
}

/* ===== LANDLORD BUILDER ===== */

.builder-wrapper {
  max-width: 1100px;
  margin: 30px auto 60px;
  padding: 0 20px;
}

.builder-toolbar {
  display: grid;
  gap: 16px;
  margin-bottom: 16px;
}

.builder-toolbar-controls {
  display: grid;
  gap: 12px;
}

.builder-sections {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 20px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.05);
}

.builder-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 24px;
  align-items: start;
}

.builder-sidebar {
  position: sticky;
  top: 20px;
  align-self: start;
}

.builder-canvas {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.06);
  min-height: 70vh;
  overflow: hidden;
}

.builder-canvas-body {
  padding: 24px;
  display: grid;
  gap: 18px;
}

.builder-sections summary {
  cursor: pointer;
  font-weight: 600;
}

.preview-section {
  border: 1px solid #e6e6e6;
  border-radius: 10px;
  padding: 16px;
  background: #fafafa;
  cursor: grab;
}

.preview-section:active {
  cursor: grabbing;
}

.preview-hero {
  background-size: cover;
  background-position: center;
}

.preview-hero h2 {
  margin-top: 0;
}

.preview-section img {
  max-width: 100%;
  border-radius: 8px;
  display: block;
}

.preview-empty {
  font-size: 13px;
  color: #666;
}

.builder-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.builder-form {
  margin-top: 18px;
}

.builder-form label {
  display: block;
  font-size: 13px;
  margin-bottom: 6px;
}

.builder-form input {
  width: 100%;
  max-width: 420px;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.builder-form .hint {
  margin-top: 6px;
  font-size: 12px;
  color: #666;
}

.builder-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
}

.builder-controls label {
  font-size: 13px;
}

.builder-controls select {
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.builder-msg {
  font-size: 13px;
}

.builder-msg.success {
  color: var(--brand);
}

.builder-msg.error {
  color: #c62828;
}

.sections-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}

.section-item {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.section-title {
  font-weight: 600;
  font-size: 14px;
}

.drag-handle {
  cursor: grab;
  color: #666;
  font-weight: 700;
  margin-right: 8px;
}

.btn-ghost {
  background: #f5f5f5;
  color: var(--brand);
  border: 1px solid #c6e0ea;
  padding: 6px 12px;
  border-radius: 6px;
  font-weight: 600;
}

.btn-ghost:hover {
  background: var(--brand-tint);
}

.section-body {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.section-body label {
  font-size: 12px;
  color: #555;
}

.section-body input,
.section-body textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
}

@media (max-width: 980px) {
  .builder-layout {
    grid-template-columns: 1fr;
  }

  .builder-sidebar {
    position: static;
  }

  .builder-wrapper {
    padding: 0 16px;
  }
}

/* ===== PUBLIC LANDLORD PAGE ===== */

.public-wrapper {
  max-width: 1100px;
  margin: 30px auto 80px;
  padding: 0 20px;
}

.public-msg {
  font-size: 14px;
  color: #666;
  margin-bottom: 12px;
}

.public-content {
  display: grid;
  gap: 24px;
}

.public-section {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 28px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}

.public-hero {
  background-size: cover;
  background-position: center;
  color: var(--brand-dark);
}

.public-hero h2 {
  font-size: 32px;
  margin-top: 0;
}

.public-hero p {
  font-size: 18px;
}

.public-image img {
  max-width: 100%;
  border-radius: 8px;
  display: block;
}

.public-image .caption {
  font-size: 13px;
  color: #666;
  margin-top: 8px;
}

.public-units {
  margin-top: 24px;
  display: grid;
  gap: 16px;
}

.public-units-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.public-unit-card {
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 16px;
  background: #fff;
  box-shadow: 0 6px 16px rgba(0,0,0,0.05);
}

.public-unit-card h4 {
  margin: 0 0 8px;
}

.public-enquiry {
  margin-top: 24px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.05);
}

.public-form {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.public-form input,
.public-form select,
.public-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.public-form-msg {
  font-size: 13px;
  color: var(--brand);
  margin: 0;
}

.quote-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.btn-accept {
  background: var(--brand);
  color: white;
  padding: 6px 12px;
  border: none;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
}

.btn-blacklist {
  background: #222;
  color: #fff;
  padding: 6px 12px;
  border: none;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
}

.btn-blacklist:hover {
  background: #444;
}

.btn-finished {
  background: #388e3c;
  color: #fff;
  padding: 6px 12px;
  border: none;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
}

.btn-finished:hover {
  background: #256029;
}

.btn-accept:hover {
  background: var(--brand-dark);
}

.btn-decline {
  background: #d32f2f;
  color: white;
  padding: 6px 12px;
  border: none;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
}

.btn-decline:hover {
  background: #c62828;
}

.quote-accepted {
  background-color: #eef8f2;
}

.quote-declined {
  background-color: #fff1f1;
}

.quote-status-badge {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: #5a6873;
  background: #f2f5f7;
}

.field-label {
  display: block;
  font-size: 13px;
  margin: 6px 0 6px;
}

/* ===== MOBILE ===== */

@media (max-width: 600px) {
  .dashboard-page .hero {
    min-height: 160px;
    padding: 38px 16px;
  }

  .dashboard-page .hero h2 {
    font-size: 22px;
  }

  .dashboard-page .hero p {
    font-size: 15px;
  }

  .dashboard-section {
    padding: 18px;
    border-radius: 14px;
  }

  .enquiry-wrapper {
    margin: 30px 15px;
    padding: 25px 20px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .quote-details-grid,
  .quote-detail-card-wide {
    grid-template-columns: 1fr;
  }

  .quote-actions {
    flex-wrap: wrap;
  }
}

/* Debtors table */
.debtors-table .editable-cell { cursor: pointer; }
.debtors-table .editable-cell:hover { outline: 2px solid #1976d2; outline-offset: -2px; }
.debt-action-btn { display:inline-flex; align-items:center; justify-content:center; padding:5px 9px; border-radius:6px; border:1px solid #cbd5e1; background:#f8fafc; color:#0f172a; text-decoration:none; font-size:0.85em; font-weight:700; cursor:pointer; }
.debt-action-btn:hover { background:#e0f2fe; border-color:#0284c7; }
.debt-close-btn { background:#fff1f2; border-color:#fecdd3; color:#be123c; }

/* Modern debtors monthly table */
.debtors-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.debtors-note { color: #64748b; font-size: .95rem; }
.debtors-toolbar-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.debt-top-btn {
  padding: 8px 14px;
  border-radius: 7px;
  border: 1px solid #1976d2;
  background: #fff;
  color: #1976d2;
  font-weight: 700;
  cursor: pointer;
}
.debt-top-btn.secondary { color: #111827; border-color: #cbd5e1; }
.debtors-modern-table {
  width: 100%;
  border: 1.5px solid #1976d2;
  border-radius: 10px;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 12px rgba(25, 118, 210, .08);
}
.debtors-modern-table th {
  padding: 11px 10px;
  background: #f4f7fb;
  color: #111;
  border: 1px solid #d5deeb;
  font-weight: 800;
  text-align: center;
  white-space: nowrap;
}
.debtors-modern-table td {
  padding: 14px 10px;
  border: 1px solid #eef2f7;
  background: #fff;
  vertical-align: middle;
  text-align: center;
}
.debtor-client-header { min-width: 160px; }
.month-header, .debt-number-header { min-width: 105px; }
.final-debt-header { min-width: 120px; }
.actions-header { min-width: 260px; }
.debtor-client-input,
.debt-amount-input {
  width: 100%;
  max-width: 130px;
  padding: 10px 11px;
  border-radius: 8px;
  border: 1px solid #d8e1ec;
  background: #fff;
  color: #111827;
  font-size: .95rem;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, .04);
}
.debtor-client-input { max-width: 170px; text-align: left; }
.debt-amount-input { text-align: center; }
.debtor-client-input:focus,
.debt-amount-input:focus {
  outline: 2px solid rgba(25, 118, 210, .25);
  border-color: #1976d2;
}
.total-debt-cell {
  font-weight: 900;
  color: #000;
  background: #fff !important;
}
.debt-actions-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  flex-wrap: wrap;
}
.debt-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 6px 9px;
  border-radius: 6px;
  border: 1px solid #60a5fa;
  background: #fff;
  color: #1976d2;
  text-decoration: none;
  font-size: .82rem;
  font-weight: 800;
  cursor: pointer;
  line-height: 1;
}
.debt-action-btn:hover { background: #eff6ff; }
.call-btn { color: #16a34a; border-color: #86efac; }
.debt-close-btn { color: #ef4444; border-color: #fca5a5; }
.debt-total-row td {
  background: #f8fafc !important;
  font-weight: 900;
}
.month-total-cell, .grand-total-cell { color: #000; }

.debtors-empty-state {
  border: 1px dashed #bfdbfe;
  border-radius: 10px;
  background: #f8fbff;
  color: #475569;
  padding: 22px;
  text-align: center;
  font-weight: 600;
}


/* Collection summary above debtors table */
.collection-summary-card {
  width: 100%;
  border: 1.5px solid #1976d2;
  border-radius: 14px 14px 0 0;
  background: #fff;
  padding: 16px 22px 18px;
  margin: 0 0 0 0;
  box-shadow: 0 2px 12px rgba(25,118,210,.06);
}
.collection-summary-title {
  font-size: 1.05rem;
  font-weight: 900;
  color: #0f3554;
  margin-bottom: 14px;
  letter-spacing: .02em;
}
.collection-summary-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(140px, 1fr));
  gap: 14px;
  align-items: end;
}
.collection-summary-item {
  border-right: 1px solid #dbe7f5;
  padding: 6px 14px 6px 0;
}
.collection-summary-item:last-child { border-right: 0; }
.collection-summary-item label {
  display: block;
  font-weight: 900;
  color: #111827;
  margin-bottom: 8px;
  text-align: center;
}
.collection-summary-input {
  width: 100%;
  border: 1px solid #d8e1ec;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 1.2rem;
  font-weight: 900;
  text-align: center;
  background: #fff;
  box-shadow: inset 0 1px 2px rgba(15,23,42,.04);
}
.collection-summary-input:focus {
  outline: 2px solid rgba(25,118,210,.25);
  border-color: #1976d2;
}
.collection-summary-input.dd { color: #16a34a; }
.collection-summary-input.bt { color: #2563eb; }
.collection-summary-input.cash { color: #ea580c; }
.collection-summary-input.total { color: #7c3aed; }
.collection-summary-input.totalByList { color: #0f766e; }
.collection-summary-card + .debtors-toolbar { margin-top: 18px; }
@media (max-width: 900px) {
  .collection-summary-grid { grid-template-columns: repeat(2, minmax(140px, 1fr)); }
  .collection-summary-item { border-right: 0; }
}



/* AutoSwiftas: collection summary fixed */
.collection-summary-card,
#collectionSummaryCard {
  width: 100%;
  box-sizing: border-box;
  margin: 0 0 26px 0;
  border: 1.5px solid #0d6efd;
  border-radius: 14px;
  background: #ffffff;
  padding: 18px 20px 22px;
  display: block;
  clear: both;
}

.collection-summary-card h3,
#collectionSummaryCard h3 {
  margin: 0 0 18px 0;
  font-size: 18px;
  font-weight: 800;
  color: #062b49;
  letter-spacing: .2px;
}

.collection-summary-grid,
#collectionSummaryGrid {
  display: grid;
  grid-template-columns: repeat(5, minmax(130px, 1fr));
  gap: 14px;
  align-items: end;
}

.collection-summary-item {
  border-left: 1px solid #d7e3f3;
  padding-left: 14px;
}

.collection-summary-item:first-child {
  border-left: none;
  padding-left: 0;
}

.collection-summary-item label {
  display: block;
  text-align: center;
  font-weight: 800;
  color: #000;
  margin-bottom: 8px;
}

.collection-money-input {
  width: 100%;
  height: 48px;
  box-sizing: border-box;
  border: 1px solid #d5e0ee;
  border-radius: 9px;
  background: #fff;
  text-align: center;
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  outline: none;
}

.collection-money-input:focus {
  border-color: #0d6efd;
  box-shadow: 0 0 0 3px rgba(13, 110, 253, .12);
}

.collection-total-readonly,
#summaryTotal {
  background: #f1f5f9 !important;
  color: #0f172a !important;
  cursor: not-allowed;
}

@media (max-width: 900px) {
  .collection-summary-grid,
  #collectionSummaryGrid {
    grid-template-columns: repeat(2, minmax(130px, 1fr));
  }
}



/* Clean debtor/payment layout fixes */
button[id*="restore" i],
button[class*="restore" i],
button[onclick*="restore" i],
#restoreClosedBtn,
.restore-closed-btn,
.restore-closed,
button[data-action*="restore" i],
button[id*="addDebtColumn" i],
button[class*="add-debt-column" i],
button[onclick*="addDebtColumn" i],
button[onclick*="addDebt" i][onclick*="Column" i],
#addDebtColumnBtn,
.add-debt-column-btn {
  display: none !important;
}

#collectionSummaryCard,
.collection-summary-card {
  width: 100%;
  box-sizing: border-box;
  margin: 0 0 28px 0 !important;
  clear: both;
}

#collectionSummaryGrid,
.collection-summary-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(130px, 1fr));
  gap: 14px;
  align-items: end;
}

.collection-summary-item {
  min-width: 0;
}

#summaryTotal,
.collection-total-readonly {
  background: #eef2f7 !important;
  cursor: not-allowed;
}



/* ===== EXACT PAYMENTS / DEBTORS PAGE ===== */
#landlordPayments.payments-identical-section {
  background: #fff !important;
  border-radius: 18px !important;
  box-shadow: none !important;
  border: 1px solid #dbe7f3 !important;
  padding: 32px 28px 36px !important;
  margin-top: 26px !important;
}

.payments-identical-inner {
  width: 100%;
}

.payments-summary-card,
#collectionSummaryCard.payments-summary-card {
  width: 100% !important;
  margin: 0 0 28px 0 !important;
  padding: 26px 28px 18px !important;
  border: 1.5px solid #1677ff !important;
  border-radius: 12px !important;
  background: #fff !important;
  box-shadow: none !important;
  clear: both !important;
  display: block !important;
}

.payments-summary-card h3,
#collectionSummaryTitle {
  margin: 0 0 24px !important;
  font-size: 20px !important;
  font-weight: 900 !important;
  color: #062b49 !important;
  letter-spacing: .2px !important;
  text-transform: uppercase !important;
}

.collection-summary-grid,
#collectionSummaryGrid {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(135px, 1fr)) !important;
  gap: 0 !important;
  align-items: start !important;
}

.collection-summary-item {
  border-left: 1px solid #d8e3f0 !important;
  padding: 0 28px !important;
  min-width: 0 !important;
  text-align: center !important;
}

.collection-summary-item:first-child {
  border-left: 0 !important;
}

.collection-summary-item label {
  display: block !important;
  margin: 0 0 12px !important;
  color: #000 !important;
  font-weight: 900 !important;
  font-size: 16px !important;
  text-align: center !important;
}

.collection-money-input {
  width: 100% !important;
  max-width: 190px !important;
  height: 54px !important;
  padding: 8px 12px !important;
  border: 1px solid #cddbeb !important;
  border-radius: 8px !important;
  background: #fff !important;
  text-align: center !important;
  font-size: 24px !important;
  font-weight: 900 !important;
  outline: none !important;
  box-shadow: none !important;
}

.collection-money-input:focus {
  border-color: #1677ff !important;
  box-shadow: 0 0 0 3px rgba(22,119,255,.12) !important;
}

.summary-dd .collection-money-input { color: #0bae34 !important; }
.summary-bt .collection-money-input { color: #0b6eea !important; }
.summary-cash .collection-money-input { color: #f26b00 !important; }
.summary-total .collection-money-input { color: #7b22d8 !important; }
.summary-bylist .collection-money-input { color: #0f9f91 !important; }

#summaryTotal,
.collection-total-readonly {
  background: #f2f5f8 !important;
  cursor: not-allowed !important;
}

.summary-total-formula {
  margin-top: 9px;
  color: #334e68;
  font-size: 14px;
  font-weight: 600;
}

.payments-debtors-title {
  margin: 36px 0 14px !important;
  color: #062b49 !important;
  font-size: 24px !important;
  line-height: 1.1 !important;
  font-weight: 900 !important;
}

.payments-add-debtor-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 7px 16px !important;
  margin: 0 0 14px !important;
  border: 1.5px solid #1677ff !important;
  border-radius: 5px !important;
  background: #fff !important;
  color: #006be6 !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  cursor: pointer !important;
  box-shadow: none !important;
}

.payments-add-debtor-btn:hover {
  background: #f4f9ff !important;
}

.debtors-note {
  margin: 0 0 24px !important;
  color: #3f5878 !important;
  font-size: 15px !important;
}

.payments-section-body {
  overflow-x: auto !important;
  padding: 0 !important;
}

.payments-table-shell {
  width: 100%;
  overflow-x: auto;
}

.payments-table.debtors-modern-table {
  width: 100% !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  background: #fff !important;
  border: 1.5px solid #1677ff !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  box-shadow: none !important;
  table-layout: fixed !important;
}

.payments-table.debtors-modern-table th,
.payments-table.debtors-modern-table td {
  border-right: 1px solid #d4dfed !important;
  border-bottom: 1px solid #d4dfed !important;
  text-align: center !important;
  vertical-align: middle !important;
  color: #000 !important;
}

.payments-table.debtors-modern-table th:last-child,
.payments-table.debtors-modern-table td:last-child {
  border-right: 0 !important;
}

.payments-table.debtors-modern-table thead th {
  background: #f7f9fc !important;
  font-weight: 900 !important;
  font-size: 16px !important;
  padding: 18px 14px !important;
}

.debtor-client-header {
  width: 250px !important;
}

.month-header {
  width: 220px !important;
}

.final-debt-header {
  width: 210px !important;
}

.actions-header {
  width: 380px !important;
}

.debtors-empty-row td {
  height: 190px !important;
  background: #fff !important;
  padding: 0 !important;
}

.debtors-empty-state {
  height: 190px;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 12px !important;
  color: #23405f !important;
  font-size: 16px !important;
  background: #fff !important;
}

.debtors-empty-icon {
  width: 58px;
  height: 58px;
  border: 5px solid #8ab7f8;
  border-radius: 8px;
  color: #8ab7f8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  line-height: 1;
  opacity: .95;
}

.debtors-empty-state strong {
  color: #0070ff;
  font-weight: 900;
}

.client-name-cell,
.debt-input-cell,
.total-debt-cell,
.debt-actions-cell {
  height: 70px !important;
  padding: 14px !important;
}

.debtor-client-input,
.debt-amount-input {
  height: 40px !important;
  width: 170px !important;
  max-width: 100% !important;
  border: 1px solid #cddbeb !important;
  border-radius: 7px !important;
  text-align: center !important;
  font-size: 15px !important;
  background: #fff !important;
}

.debtor-client-input {
  text-align: left !important;
  padding-left: 14px !important;
}

.total-debt-cell,
.month-total-cell,
.grand-total-cell,
.debt-total-row td {
  font-weight: 900 !important;
  color: #000 !important;
}

.debt-actions-wrap {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
}

.debt-action-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 28px !important;
  padding: 5px 10px !important;
  border-radius: 5px !important;
  background: #fff !important;
  text-decoration: none !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
}

.sms-btn,
.email-btn {
  color: #006be6 !important;
  border: 1px solid #1677ff !important;
}

.call-btn {
  color: #06a63b !important;
  border: 1px solid #22c55e !important;
}

.debt-close-btn {
  color: #ff3131 !important;
  border: 1px solid #ff6b6b !important;
  cursor: pointer !important;
}

.debt-total-row td {
  height: 58px !important;
  background: #f7f9fc !important;
  font-size: 15px !important;
  padding: 12px 14px !important;
}

.grand-total-cell span {
  margin-left: 20px;
}

/* Remove old buttons completely */
#addDebtColumnBtn,
.add-debt-column-btn,
button[onclick*="addDebtMonthColumn"],
button[onclick*="addDebtColumn"],
#restoreClosedDebtClientsBtn,
.restore-closed-btn,
button[onclick*="restore"] {
  display: none !important;
}

@media (max-width: 900px) {
  .collection-summary-grid,
  #collectionSummaryGrid {
    grid-template-columns: 1fr !important;
    row-gap: 18px !important;
  }

  .collection-summary-item {
    border-left: 0 !important;
    padding: 0 !important;
  }

  .collection-money-input {
    max-width: 100% !important;
  }
}



/* ===== DEBTORS EMPTY STATE FIX ===== */
.debtors-toolbar {
  margin: 0 0 24px !important;
}

.debtors-note {
  margin: 0 !important;
  color: #334e68 !important;
  font-size: 15px !important;
}

.debtors-empty-card {
  width: 100%;
  min-height: 210px;
  border: 1.5px dashed #b8d6ff;
  border-radius: 8px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: #324b6b;
  text-align: center;
  font-size: 16px;
}

.debtors-empty-icon {
  width: 58px;
  height: 58px;
  border: 5px solid #8ab7f8;
  border-radius: 8px;
  color: #8ab7f8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  line-height: 1;
  opacity: .95;
}

.debtors-empty-text strong {
  color: #0070ff;
  font-weight: 900;
}

/* Hide old empty/table conflicts */
.debtors-empty-state {
  border: 0 !important;
}

/* When debtors are present, keep table clean and same style */
.payments-table-shell {
  width: 100%;
  overflow-x: auto;
}

.payments-table.debtors-modern-table {
  width: 100% !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  background: #fff !important;
  border: 1.5px solid #1677ff !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  box-shadow: none !important;
  table-layout: fixed !important;
}

.payments-table.debtors-modern-table th,
.payments-table.debtors-modern-table td {
  border-right: 1px solid #d4dfed !important;
  border-bottom: 1px solid #d4dfed !important;
  text-align: center !important;
  vertical-align: middle !important;
}

.payments-table.debtors-modern-table thead th {
  background: #f7f9fc !important;
  font-weight: 900 !important;
  font-size: 16px !important;
  padding: 18px 14px !important;
}

.client-name-cell,
.debt-input-cell,
.total-debt-cell,
.debt-actions-cell {
  height: 70px !important;
  padding: 14px !important;
}

.debtor-client-input,
.debt-amount-input {
  height: 40px !important;
  width: 170px !important;
  max-width: 100% !important;
  border: 1px solid #cddbeb !important;
  border-radius: 7px !important;
  text-align: center !important;
  font-size: 15px !important;
  background: #fff !important;
}

.debtor-client-input {
  text-align: left !important;
  padding-left: 14px !important;
}

.debt-actions-wrap {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
}

.debt-action-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 28px !important;
  padding: 5px 10px !important;
  border-radius: 5px !important;
  background: #fff !important;
  text-decoration: none !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
}

.sms-btn,
.email-btn {
  color: #006be6 !important;
  border: 1px solid #1677ff !important;
}

.call-btn {
  color: #06a63b !important;
  border: 1px solid #22c55e !important;
}

.debt-close-btn {
  color: #ff3131 !important;
  border: 1px solid #ff6b6b !important;
  cursor: pointer !important;
}

.debt-total-row td {
  height: 58px !important;
  background: #f7f9fc !important;
  font-size: 15px !important;
  padding: 12px 14px !important;
  font-weight: 900 !important;
}



/* === FINAL V3 DEBTORS EMPTY TABLE === */
.debtors-note + .debtors-note {
  display: none !important;
}

.debtors-empty-card {
  width: 100%;
  border: 1.5px solid #1677ff;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  margin-top: 22px;
}

.debtors-empty-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  background: #fff;
}

.debtors-empty-table th,
.debtors-empty-table td {
  border: 1px solid #d7e2f0;
  text-align: center;
  vertical-align: middle;
}

.debtors-empty-table thead th {
  background: #f7f9fc;
  color: #061a33;
  font-weight: 900;
  font-size: 15px;
  padding: 16px 10px;
}

.debtors-empty-main-row td {
  height: 190px;
  padding: 0;
}

.debtors-empty-center {
  height: 190px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: #405a7b;
  font-size: 15px;
}

.debtors-empty-icon {
  width: 56px;
  height: 56px;
  border: 4px solid #8ab7f8;
  border-radius: 8px;
  color: #8ab7f8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  line-height: 1;
}

.debtors-empty-center strong {
  color: #0070ff;
  font-weight: 900;
}

.debtors-empty-total-row td {
  background: #f7f9fc;
  color: #061a33;
  font-weight: 900;
  font-size: 14px;
  padding: 16px 10px;
}

/* keep add button and note spacing like reference */
.payments-add-debtor-btn,
#addHeaderDebtorBtn {
  margin-bottom: 14px !important;
}

#paymentsSectionBody > .debtors-note {
  margin: 0 0 0 0 !important;
}


/* hide all debtors notes */
.debtors-note{
    display:none !important;
}



/* ===== Edit Website Mode ===== */
.edit-website-open-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #0b63f6;
  color: #fff !important;
  text-decoration: none;
  border-radius: 8px;
  padding: 7px 14px;
  font-size: 14px;
  font-weight: 800;
  margin-left: auto;
}

.edit-website-open-btn:hover {
  background: #084fc5;
  text-decoration: none;
}

#websiteEditToolbar {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999999;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: calc(100vw - 24px);
  background: #07192f;
  color: #fff;
  border-radius: 12px;
  padding: 12px 16px;
  box-shadow: 0 14px 40px rgba(0,0,0,.28);
  font-family: Arial, sans-serif;
  font-size: 14px;
}

#websiteEditToolbar button,
.website-edit-floating-controls button {
  border: 0;
  border-radius: 7px;
  padding: 7px 10px;
  background: #0b63f6;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

#websiteEditToolbar button:hover,
.website-edit-floating-controls button:hover {
  background: #084fc5;
}

.website-edit-mode .website-editable-item {
  outline: 1.5px dashed rgba(11, 99, 246, .45);
  outline-offset: 4px;
  cursor: move;
}

.website-edit-mode .website-editable-item:hover {
  outline: 2px solid #0b63f6;
}

.website-edit-mode .website-edit-selected {
  outline: 3px solid #ff9f1c !important;
  outline-offset: 5px;
  resize: both;
}

.website-edit-mode [contenteditable="true"] {
  cursor: text !important;
  background: rgba(255, 255, 255, .86);
  outline: 3px solid #22c55e !important;
}

.website-edit-floating-controls {
  position: absolute;
  z-index: 999998;
  display: flex;
  gap: 6px;
  background: #fff;
  border: 1px solid #cfd9e6;
  border-radius: 10px;
  padding: 6px;
  box-shadow: 0 12px 30px rgba(0,0,0,.18);
}

.website-edit-dragging {
  user-select: none;
}


/* edit mode disables live button/link actions */
.website-edit-mode a,
.website-edit-mode button:not(#websiteEditToolbar button):not(.website-edit-floating-controls button) {
  cursor: move !important;
}



/* ===== Edit Website Mode Persist Final ===== */
#websiteEditToolbar {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999999;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: calc(100vw - 24px);
  background: #07192f;
  color: #fff;
  border-radius: 12px;
  padding: 12px 16px;
  box-shadow: 0 14px 40px rgba(0,0,0,.28);
  font-family: Arial, sans-serif;
  font-size: 14px;
}

#websiteEditToolbar button,
.website-edit-floating-controls button {
  border: 0;
  border-radius: 7px;
  padding: 7px 10px;
  background: #0b63f6;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.website-edit-mode .website-editable-item {
  outline: 1.5px dashed rgba(11, 99, 246, .45);
  outline-offset: 4px;
  cursor: move;
}

.website-edit-mode .website-editable-item:hover {
  outline: 2px solid #0b63f6;
}

.website-edit-mode .website-edit-selected {
  outline: 3px solid #ff9f1c !important;
  outline-offset: 5px;
}

.website-edit-mode [contenteditable="true"] {
  cursor: text !important;
  background: rgba(255,255,255,.88);
  outline: 3px solid #22c55e !important;
}

.website-edit-floating-controls {
  position: absolute;
  z-index: 999998;
  display: flex;
  gap: 6px;
  background: #fff;
  border: 1px solid #cfd9e6;
  border-radius: 10px;
  padding: 6px;
  box-shadow: 0 12px 30px rgba(0,0,0,.18);
}

.website-edit-dragging {
  user-select: none;
}
