.smr-extra-field label,
.smr-existing-photo label {
  font-weight: 600;
}

.smr-existing-photo {
  align-items: center;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
  display: inline-flex;
  gap: 12px;
  margin: 0 0 16px;
  padding: 10px 12px;
}

.smr-existing-photo img {
  border-radius: 8px;
  height: 74px;
  object-fit: cover;
  width: 74px;
}

.smr-media-tools .btn {
  box-shadow: none;
}

.smr-capture-panel {
  align-items: center;
  background: rgba(0, 0, 0, .62);
  bottom: 0;
  display: flex;
  justify-content: center;
  left: 0;
  padding: 20px;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 99999;
}

.smr-capture-card {
  background: #fff;
  border-radius: 8px;
  max-width: 560px;
  padding: 16px;
  width: 100%;
}

.smr-capture-card video {
  background: #111;
  border-radius: 8px;
  display: block;
  max-height: 60vh;
  object-fit: cover;
  width: 100%;
}

.col-md-12.d-flex .smr-extra-field {
  padding-left: 8px;
  padding-right: 8px;
}

.col-md-12.d-flex .smr-extra-field label {
  display: none;
}

.col-md-12.d-flex .smr-extra-field .form-control {
  height: 41px;
}

.smr-payment-panel {
  display: none !important;
}

.smr-payment-panel {
  background: #fff;
  border: 1px solid #e4e7eb;
  border-radius: 8px;
  box-shadow: none;
  margin: 8px 13px 22px;
  padding: 14px 16px 16px;
  width: calc(100% - 26px);
}

.smr-payment-panel .smr-panel-heading {
  border-bottom: 2px solid #ffcc00;
  display: inline-block;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
  padding-bottom: 6px;
}

.smr-payment-panel label {
  color: #343a40;
  font-weight: 600;
}

.smr-payment-panel .form-control {
  border-radius: 6px;
  min-height: 42px;
}

.smr-receipt-actions {
  align-items: end;
  display: flex;
}

.smr-receipt-actions .btn {
  min-height: 42px;
  width: 100%;
}

.smr-inline-label {
  color: #666;
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 5px;
}

.smr-inline-payment-input {
  border: 0;
  border-bottom: 1px solid #ffcc00;
  border-radius: 0;
  box-shadow: none;
  font-weight: 700;
  max-width: 180px;
  padding-left: 0;
}

.smr-inline-payment-input:focus {
  border-color: #ffcc00;
  box-shadow: none;
}

.smr-inline-days {
  margin-top: 10px;
}

.smr-inline-discount {
  margin-top: 10px;
  max-width: 260px;
}

.smr-inline-discount label {
  color: #555;
  font-size: 14px;
  font-weight: 500;
}

.smr-inline-receipt-btn {
  margin-left: 16px;
  min-height: 38px;
  padding-left: 18px;
  padding-right: 18px;
}

.smr-cashflow-report {
  border: 1px solid #dfe3e8;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .06);
}

.smr-cash-summary {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.smr-cash-summary > div {
  background: #fff;
  border: 1px solid #edf0f2;
  border-radius: 8px;
  padding: 14px 16px;
}

.smr-cash-summary span {
  color: #666;
  display: block;
  font-size: 13px;
  margin-bottom: 6px;
}

.smr-cash-summary strong {
  color: #222;
  display: block;
  font-size: 20px;
}

.smr-cashflow-report table {
  background: #fff;
}

.smr-cashflow-report th {
  white-space: nowrap;
}

.smr-taken-less-panel {
  border: 1px solid #dfe3e8;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .06);
}

.smr-taken-less-panel table {
  background: #fff;
}

.smr-taken-less-panel th {
  white-space: nowrap;
}

@media (max-width: 767px) {
  .smr-cash-summary {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 768px) {
  .smr-payment-panel {
    clear: both;
    max-width: none;
  }
}

/* Modern fintech visual refresh: CSS-only, no API or React behavior changes. */
:root {
  --smr-bg: #f7f4ee;
  --smr-surface: #ffffff;
  --smr-ink: #241f1f;
  --smr-muted: #6f6661;
  --smr-red: #b91c1c;
  --smr-red-dark: #7f1414;
  --smr-gold: #f6c343;
  --smr-gold-soft: #fff3c2;
  --smr-line: #eadfce;
  --smr-shadow: 0 16px 40px rgba(84, 50, 15, .12);
  --smr-shadow-sm: 0 8px 24px rgba(84, 50, 15, .10);
}

body {
  background:
    radial-gradient(circle at 8% 0%, rgba(246, 195, 67, .18), transparent 28rem),
    linear-gradient(180deg, #fffaf0 0%, var(--smr-bg) 42%, #f9fafb 100%) !important;
  color: var(--smr-ink);
  font-family: Poppins, Inter, "Segoe UI", Arial, sans-serif !important;
}

.navbar {
  background: rgba(255, 255, 255, .92) !important;
  border-bottom: 1px solid rgba(185, 28, 28, .10);
  box-shadow: 0 10px 30px rgba(36, 31, 31, .08) !important;
  padding: 14px clamp(18px, 4vw, 54px) !important;
  position: sticky;
  top: 0;
  z-index: 950;
}

.brand-name {
  color: var(--smr-red-dark) !important;
  font-size: 21px !important;
  font-weight: 800 !important;
}

.ramesh-logo,
.navbar .nav-left img[src*="Media.82e2d06b2c4245b5f359"],
.navbar .nav-left img[src*="smr-logo-20260917"],
.sidebar-header img[src*="smr-logo-20260917"],
.sidebar-header img[src*="Media.82e2d06b2c4245b5f359"] {
  background: #fff;
  border-radius: 8px;
  display: block;
  height: 54px !important;
  max-width: min(320px, 48vw) !important;
  object-fit: contain !important;
  object-position: center !important;
  padding: 2px 4px;
  width: auto !important;
}

.sidebar-header img[src*="Media.82e2d06b2c4245b5f359"],
.sidebar-header img[src*="smr-logo-20260917"] {
  height: 48px !important;
  max-width: 230px !important;
}

.admin-img,
.profile-img,
.profile-pic {
  border: 2px solid var(--smr-gold) !important;
  box-shadow: 0 0 0 4px rgba(246, 195, 67, .20);
}

.admin-text {
  color: var(--smr-muted) !important;
  font-weight: 600;
}

.container.card,
.all-modules-height.card,
.smr-cashflow-report,
.smr-taken-less-panel,
.smr-investor-transaction-panel {
  background: rgba(255, 255, 255, .94) !important;
  border: 1px solid rgba(234, 223, 206, .95) !important;
  border-radius: 16px !important;
  box-shadow: var(--smr-shadow) !important;
}

.all-modules-height {
  margin-top: 28px !important;
}

.heading-with-line,
h5.heading-with-line,
.smr-panel-heading {
  color: var(--smr-ink) !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
}

.smooth-line {
  background: linear-gradient(90deg, var(--smr-red), var(--smr-gold)) !important;
  height: 4px !important;
}

.add-customer,
.all-btn-color button,
.logout-btn,
.customer-details-btn,
.handleNewCustomer,
.home-btn {
  background: linear-gradient(135deg, var(--smr-red) 0%, #d03824 45%, var(--smr-gold) 100%) !important;
  border: 0 !important;
  border-radius: 10px !important;
  box-shadow: 0 10px 22px rgba(185, 28, 28, .20) !important;
  color: #fff !important;
  font-weight: 750 !important;
  min-height: 40px;
  padding: 9px 16px !important;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease !important;
}

.add-customer:hover,
.all-btn-color button:hover,
.logout-btn:hover,
.customer-details-btn:hover,
.handleNewCustomer:hover {
  filter: brightness(1.03);
  transform: translateY(-1px) !important;
  box-shadow: 0 14px 28px rgba(185, 28, 28, .26) !important;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(246, 195, 67, .45) !important;
  outline-offset: 2px;
}

.form-control,
input,
select,
textarea {
  background-color: #fff !important;
  border: 1px solid #e6d8c2 !important;
  border-radius: 10px !important;
  color: var(--smr-ink) !important;
}

.form-control:focus,
input:focus,
select:focus,
textarea:focus {
  border-color: var(--smr-gold) !important;
  box-shadow: 0 0 0 .24rem rgba(246, 195, 67, .18) !important;
}

.small-card,
.summary-card,
.output-box {
  background: linear-gradient(145deg, #fff 0%, #fffaf0 100%) !important;
  border: 1px solid rgba(234, 223, 206, .9) !important;
  border-radius: 16px !important;
  box-shadow: var(--smr-shadow-sm) !important;
  color: var(--smr-ink) !important;
}

.summary-card {
  overflow: hidden;
  padding: 18px !important;
  position: relative;
}

.summary-card:before,
.small-card:before {
  background: linear-gradient(180deg, var(--smr-red), var(--smr-gold));
  border-radius: 16px 0 0 16px;
  bottom: 0;
  content: "";
  left: 0;
  position: absolute;
  top: 0;
  width: 5px;
}

.summary-card .icon {
  align-items: center;
  background: var(--smr-gold-soft);
  border-radius: 12px;
  color: var(--smr-red);
  display: inline-flex;
  font-size: 24px !important;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.summary-card p,
.small-card p {
  color: var(--smr-muted) !important;
  font-size: 12px !important;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.summary-card h5,
.small-card h5,
.output-box {
  color: var(--smr-red-dark) !important;
  font-size: 20px !important;
  font-weight: 850 !important;
}

.gold,
.green,
.blue,
.red,
.purple {
  background: linear-gradient(145deg, #fff 0%, #fff8e3 100%) !important;
}

.card:has(canvas),
.card:has(svg.recharts-surface) {
  border: 1px solid rgba(234, 223, 206, .95) !important;
  border-radius: 16px !important;
  box-shadow: var(--smr-shadow-sm) !important;
  padding: 18px !important;
}

.table {
  border-color: var(--smr-line) !important;
  color: var(--smr-ink);
}

.table thead,
.table-light {
  background: #fff4cf !important;
}

.table th {
  border-color: #ead8b1 !important;
  color: #33231f;
  font-size: 13px;
  font-weight: 800;
}

.table td {
  border-color: #eee4d4 !important;
  vertical-align: middle;
}

.table tbody tr:hover {
  background: #fffaf0;
}

.modern-page-button {
  background: #fff !important;
  border: 1px solid #eadfce !important;
  border-radius: 10px !important;
  box-shadow: 0 6px 16px rgba(84, 50, 15, .10) !important;
  color: var(--smr-ink) !important;
}

.modern-page-button.active {
  background: linear-gradient(135deg, var(--smr-red), var(--smr-gold)) !important;
  color: #fff !important;
}

.slider {
  background: #d8d1c6 !important;
  box-shadow: inset 0 1px 4px rgba(36, 31, 31, .18);
}

input:checked + .slider {
  background: linear-gradient(135deg, #138a4b, #59c478) !important;
}

.sidebar {
  border-right: 1px solid var(--smr-line);
  box-shadow: 12px 0 40px rgba(36, 31, 31, .12) !important;
}

.sidebar-menu li:hover,
.sidebar-menu li.active,
.submenu .active-sub {
  background: linear-gradient(135deg, var(--smr-red), var(--smr-gold)) !important;
  color: #fff !important;
}

@media (max-width: 768px) {
  .container.card,
  .all-modules-height.card {
    border-radius: 12px !important;
    margin-left: 10px;
    margin-right: 10px;
    padding: 14px !important;
  }

  .navbar {
    position: static;
  }

  .add-customer,
  .all-btn-color button {
    width: auto !important;
  }
}

.smr-customer-preview-page label {
  color: var(--smr-muted);
  font-size: 13px;
  font-weight: 700;
}

.smr-preview-slip {
  background: linear-gradient(180deg, #fffdf8 0%, #fffaf0 100%);
  border: 1px solid #d9bf76;
  border-radius: 12px;
  box-shadow: var(--smr-shadow-sm);
  color: #241f1f;
  font-family: Poppins, "Segoe UI", Arial, sans-serif;
  margin: 0 auto;
  max-width: 520px;
  min-height: 720px;
  padding: 24px 26px;
  position: relative;
}

.smr-preview-print-wrap .smr-preview-slip {
  min-height: 268mm;
  padding: 12mm 14mm;
}

.smr-preview-slip:before {
  border: 1px solid rgba(185, 28, 28, .18);
  border-radius: 9px;
  bottom: 8px;
  content: "";
  left: 8px;
  pointer-events: none;
  position: absolute;
  right: 8px;
  top: 8px;
}

.smr-preview-head {
  align-items: center;
  display: flex;
  gap: 12px;
  text-align: center;
}

.smr-preview-logo {
  align-items: center;
  background: #fff;
  border: 1px solid #d9bf76;
  border-radius: 50%;
  display: flex;
  flex: 0 0 auto;
  height: 58px;
  justify-content: center;
  overflow: hidden;
  padding: 4px;
  width: 58px;
}

.smr-preview-logo img {
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.smr-preview-shop {
  flex: 1;
  text-align: center;
}

.smr-preview-title {
  color: var(--smr-red-dark);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: .02em;
  line-height: 1.1;
  text-transform: uppercase;
}

.smr-preview-place,
.smr-preview-phone {
  color: #5f5147;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.55;
}

.smr-preview-rule {
  border-top: 2px solid #d9bf76;
  margin: 14px 0 20px;
}

.smr-preview-meta,
.smr-preview-two {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr 1fr;
}

.smr-preview-main {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) 190px;
}

.smr-preview-fields > div,
.smr-preview-jewel > div {
  border-bottom: 1px solid #eadfce;
  font-size: 13px;
  margin-bottom: 13px;
  padding-bottom: 8px;
}

.smr-preview-slip span {
  color: #7a6252;
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.smr-preview-slip strong {
  color: #241f1f;
  display: block;
  font-size: 15px;
  font-weight: 700;
  margin-top: 3px;
  min-height: 20px;
}

@media print {
  .smr-preview-place {
    font-size: 18px !important;
    font-weight: 750 !important;
    line-height: 1.45 !important;
  }
}

.smr-preview-photos {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  padding-top: 8px;
}

.smr-preview-photo {
  align-items: center;
  background: #fff;
  border: 1px solid #d9bf76;
  border-radius: 10px;
  color: #7a6252;
  display: flex;
  font-size: 12px;
  font-weight: 800;
  height: 96px;
  justify-content: center;
  line-height: 1.25;
  overflow: hidden;
  text-align: center;
  width: 86px;
}

.smr-preview-photo:nth-child(2) {
  transform: none;
}

.smr-preview-photo img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.smr-preview-jewel {
  margin-top: 22px;
}

.smr-preview-note {
  background: #fff8e3;
  border: 1px solid #ead8a8;
  border-radius: 10px;
  color: #3f352d;
  font-family: Poppins, "Segoe UI", Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.55;
  margin: 18px 0 8px;
  padding: 10px 12px;
  text-align: center;
}

.smr-preview-note-ta {
  font-size: 14px;
  margin-top: 8px;
}

.smr-preview-signs {
  display: flex;
  font-family: Poppins, sans-serif;
  font-size: 12px;
  justify-content: space-between;
  margin-top: 42px;
}

.smr-preview-signs span {
  border-top: 1px solid #7a6252;
  color: #5f5147;
  min-width: 150px;
  padding-top: 8px;
  text-align: center;
}

@media (max-width: 768px) {
  .smr-preview-main {
    grid-template-columns: 1fr;
  }

  .smr-preview-photos {
    justify-content: flex-start;
  }

  .smr-preview-title,
  .smr-preview-place,
  .smr-preview-phone,
  .smr-preview-fields > div,
  .smr-preview-jewel > div {
    font-size: 18px;
  }

  .smr-preview-note {
    font-size: 20px;
  }
}

/* Green finance template refresh */
:root {
  --smr-template-green: #006b4f;
  --smr-template-green-dark: #004f3b;
  --smr-template-green-soft: #e7f3ef;
  --smr-template-gold: #d7aa2f;
  --smr-template-border: #d7e3dd;
  --smr-template-ink: #1d2b27;
  --smr-template-muted: #65736e;
}

body {
  background: linear-gradient(180deg, #eef5f1 0%, #f7faf8 42%, #eef3f0 100%) !important;
  color: var(--smr-template-ink) !important;
}

.navbar {
  background: linear-gradient(90deg, var(--smr-template-green-dark), var(--smr-template-green)) !important;
  border-bottom: 4px solid var(--smr-template-gold) !important;
  box-shadow: 0 12px 28px rgba(0, 72, 52, .24) !important;
  min-height: 76px;
  padding: 10px clamp(18px, 4vw, 52px) !important;
}

.brand-name,
.admin-text,
.navbar .menu-icon,
.navbar .nav-right,
.navbar .nav-right * {
  color: #fff !important;
}

.ramesh-logo,
.navbar .nav-left img[src*="Media.82e2d06b2c4245b5f359"],
.navbar .nav-left img[src*="smr-logo-20260917"],
.sidebar-header img[src*="smr-logo-20260917"],
.sidebar-header img[src*="Media.82e2d06b2c4245b5f359"] {
  background: rgba(255, 255, 255, .96) !important;
  border: 1px solid rgba(215, 170, 47, .65);
  border-radius: 4px !important;
  height: 48px !important;
  max-width: min(250px, 44vw) !important;
  object-fit: contain !important;
  padding: 4px 8px !important;
  width: auto !important;
}

.Btn,
.logout-btn,
.add-customer,
.all-btn-color button,
.customer-details-btn,
.handleNewCustomer,
.home-btn {
  background: linear-gradient(180deg, #078762 0%, var(--smr-template-green) 100%) !important;
  border: 1px solid rgba(255, 255, 255, .16) !important;
  border-radius: 4px !important;
  box-shadow: 0 8px 18px rgba(0, 107, 79, .22) !important;
  color: #fff !important;
  font-weight: 700 !important;
}

.add-customer:hover,
.all-btn-color button:hover,
.logout-btn:hover,
.customer-details-btn:hover,
.handleNewCustomer:hover {
  background: linear-gradient(180deg, #0a966e 0%, #005f47 100%) !important;
  box-shadow: 0 10px 22px rgba(0, 107, 79, .30) !important;
}

.sidebar {
  background: #eef5f1 !important;
  border-right: 1px solid #c9d8d1 !important;
  box-shadow: 12px 0 28px rgba(0, 72, 52, .16) !important;
  padding: 0 !important;
}

.sidebar-header {
  background: linear-gradient(90deg, var(--smr-template-green-dark), var(--smr-template-green)) !important;
  margin: 0 0 14px !important;
  padding: 18px 16px !important;
}

.close-icon {
  color: #fff !important;
}

.sidebar-menu {
  padding: 0 14px 18px !important;
}

.sidebar-menu li,
.menu-title,
.submenu li {
  border-radius: 3px !important;
  color: #31443d !important;
  font-weight: 650;
}

.sidebar-menu li:hover,
.sidebar-menu li.active,
.submenu .active-sub,
.menu-item.open > .menu-title {
  background: var(--smr-template-green) !important;
  color: #fff !important;
}

.container.card,
.all-modules-height.card,
.smr-cashflow-report,
.smr-taken-less-panel,
.smr-investor-transaction-panel,
.card {
  background: #fff !important;
  border: 1px solid var(--smr-template-border) !important;
  border-radius: 6px !important;
  box-shadow: 0 10px 26px rgba(32, 55, 47, .10) !important;
}

.all-modules-height {
  margin-top: 24px !important;
}

.heading-with-line,
h5.heading-with-line,
.smr-panel-heading {
  color: var(--smr-template-green-dark) !important;
  font-weight: 800 !important;
}

.smooth-line {
  background: var(--smr-template-gold) !important;
  border-radius: 0 !important;
  height: 3px !important;
}

.small-card,
.summary-card,
.output-box {
  background: linear-gradient(180deg, #fff 0%, #f6fbf8 100%) !important;
  border: 1px solid var(--smr-template-border) !important;
  border-radius: 6px !important;
  box-shadow: 0 8px 20px rgba(32, 55, 47, .09) !important;
  color: var(--smr-template-ink) !important;
}

.summary-card:before,
.small-card:before {
  background: var(--smr-template-green) !important;
  border-radius: 6px 0 0 6px !important;
}

.summary-card .icon {
  background: var(--smr-template-green-soft) !important;
  border-radius: 4px !important;
  color: var(--smr-template-green) !important;
}

.summary-card p,
.small-card p {
  color: var(--smr-template-muted) !important;
}

.summary-card h5,
.small-card h5,
.output-box {
  color: var(--smr-template-green-dark) !important;
}

.form-control,
input,
select,
textarea {
  border: 1px solid #ccd9d3 !important;
  border-radius: 4px !important;
}

.form-control:focus,
input:focus,
select:focus,
textarea:focus {
  border-color: var(--smr-template-green) !important;
  box-shadow: 0 0 0 .2rem rgba(0, 107, 79, .16) !important;
}

.table thead,
.table-light,
table thead,
.table th,
table th {
  background: var(--smr-template-green) !important;
  border-color: #0b7d5e !important;
  color: #fff !important;
  font-weight: 800 !important;
}

.table td,
table td {
  border-color: #dde7e2 !important;
}

.table tbody tr:nth-child(even),
table tbody tr:nth-child(even) {
  background: #f4f8f6 !important;
}

.table tbody tr:hover,
table tbody tr:hover {
  background: #e8f4ef !important;
}

.modern-page-button {
  border: 1px solid #cbdad3 !important;
  border-radius: 50% !important;
  color: var(--smr-template-green-dark) !important;
}

.modern-page-button.active {
  background: var(--smr-template-gold) !important;
  color: #18221f !important;
}

input:checked + .slider {
  background: var(--smr-template-green) !important;
}

@media (max-width: 768px) {
  .navbar {
    min-height: auto;
  }

  .ramesh-logo,
  .navbar .nav-left img[src*="Media.82e2d06b2c4245b5f359"],
  .navbar .nav-left img[src*="smr-logo-20260917"] {
    max-width: min(220px, 72vw) !important;
  }
}

/* 2026 modern admin polish */
:root {
  --smr-modern-bg: #f4f7f5;
  --smr-modern-surface: rgba(255, 255, 255, .94);
  --smr-modern-ink: #17231f;
  --smr-modern-muted: #64746d;
  --smr-modern-green: #006b4f;
  --smr-modern-green-2: #0c8a66;
  --smr-modern-gold: #d7aa2f;
  --smr-modern-red: #b42318;
  --smr-modern-line: #dce8e2;
  --smr-modern-shadow: 0 18px 45px rgba(25, 50, 41, .12);
  --smr-modern-shadow-sm: 0 10px 26px rgba(25, 50, 41, .09);
}

html,
body {
  font-size: 15px !important;
}

body {
  background:
    radial-gradient(circle at 10% 0%, rgba(215, 170, 47, .16), transparent 420px),
    radial-gradient(circle at 92% 8%, rgba(0, 107, 79, .13), transparent 420px),
    linear-gradient(180deg, #fbfcfb 0%, var(--smr-modern-bg) 100%) !important;
  color: var(--smr-modern-ink) !important;
  font-family: Inter, Poppins, "Segoe UI", Arial, sans-serif !important;
  letter-spacing: 0 !important;
}

.navbar {
  background: rgba(0, 83, 62, .96) !important;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(215, 170, 47, .55) !important;
  box-shadow: 0 14px 38px rgba(0, 61, 45, .22) !important;
  min-height: 72px !important;
}

.brand-name {
  font-size: 20px !important;
  font-weight: 850 !important;
}

.container.card,
.all-modules-height.card,
.smr-cashflow-report,
.smr-taken-less-panel,
.smr-investor-transaction-panel,
.card {
  background: var(--smr-modern-surface) !important;
  border: 1px solid rgba(220, 232, 226, .92) !important;
  border-radius: 14px !important;
  box-shadow: var(--smr-modern-shadow) !important;
}

.container.card,
.all-modules-height.card {
  padding: clamp(16px, 2.2vw, 28px) !important;
}

h1,
h2,
h3,
h4,
h5,
.heading-with-line,
h5.heading-with-line,
.smr-panel-heading {
  color: var(--smr-modern-ink) !important;
  font-weight: 820 !important;
  letter-spacing: 0 !important;
}

h4,
h5,
.heading-with-line {
  font-size: clamp(18px, 1.45vw, 24px) !important;
}

label,
.form-label-custom,
.smr-extra-field label,
.smr-inline-label,
.smr-inline-discount label {
  color: var(--smr-modern-muted) !important;
  font-size: 13px !important;
  font-weight: 720 !important;
  letter-spacing: .01em !important;
}

.form-control,
input,
select,
textarea {
  background: #fff !important;
  border: 1px solid var(--smr-modern-line) !important;
  border-radius: 12px !important;
  box-shadow: none !important;
  color: var(--smr-modern-ink) !important;
  font-size: 15px !important;
  min-height: 44px;
  padding: 10px 13px !important;
}

textarea.form-control,
textarea {
  min-height: 84px;
}

.form-control:focus,
input:focus,
select:focus,
textarea:focus {
  border-color: var(--smr-modern-green-2) !important;
  box-shadow: 0 0 0 4px rgba(0, 107, 79, .13) !important;
}

.add-customer,
.all-btn-color button,
.logout-btn,
.customer-details-btn,
.handleNewCustomer,
.home-btn,
.pay-button,
.btn-primary {
  background: linear-gradient(135deg, var(--smr-modern-green-2), var(--smr-modern-green)) !important;
  border: 1px solid rgba(255, 255, 255, .18) !important;
  border-radius: 12px !important;
  box-shadow: 0 12px 22px rgba(0, 107, 79, .22) !important;
  color: #fff !important;
  font-size: 14px !important;
  font-weight: 760 !important;
  min-height: 42px;
  padding: 10px 16px !important;
}

.btn-secondary,
button.btn-secondary {
  background: #65716c !important;
  border-color: #65716c !important;
  border-radius: 12px !important;
  color: #fff !important;
}

.add-customer:hover,
.all-btn-color button:hover,
.logout-btn:hover,
.customer-details-btn:hover,
.handleNewCustomer:hover,
.pay-button:hover {
  filter: saturate(1.08);
  transform: translateY(-1px) !important;
}

.small-card,
.summary-card,
.output-box {
  background: linear-gradient(145deg, #ffffff 0%, #f8fbf9 100%) !important;
  border: 1px solid var(--smr-modern-line) !important;
  border-radius: 14px !important;
  box-shadow: var(--smr-modern-shadow-sm) !important;
  padding: 18px !important;
}

.summary-card {
  min-height: 92px;
}

.summary-card:before,
.small-card:before {
  background: linear-gradient(180deg, var(--smr-modern-green), var(--smr-modern-gold)) !important;
  border-radius: 14px 0 0 14px !important;
  width: 4px !important;
}

.summary-card .icon {
  background: rgba(0, 107, 79, .10) !important;
  border-radius: 12px !important;
  color: var(--smr-modern-green) !important;
}

.summary-card p,
.small-card p {
  color: var(--smr-modern-muted) !important;
  font-size: 12px !important;
  letter-spacing: .04em !important;
}

.summary-card h5,
.small-card h5,
.output-box {
  color: var(--smr-modern-ink) !important;
  font-size: clamp(19px, 1.7vw, 25px) !important;
  font-weight: 850 !important;
}

.table,
table {
  background: #fff !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  border-radius: 12px !important;
  overflow: hidden !important;
}

.table thead,
.table-light,
table thead,
.table th,
table th {
  background: #eaf4ef !important;
  border-color: #d8e7df !important;
  color: #173f33 !important;
  font-size: 13px !important;
  font-weight: 820 !important;
}

.table td,
table td {
  border-color: #edf3f0 !important;
  color: #20312c !important;
  font-size: 14px !important;
  padding: 11px 12px !important;
}

.table tbody tr:nth-child(even),
table tbody tr:nth-child(even) {
  background: #fbfdfc !important;
}

.table tbody tr:hover,
table tbody tr:hover {
  background: #f0f8f4 !important;
}

.sidebar {
  background: rgba(248, 251, 249, .98) !important;
  backdrop-filter: blur(12px);
  border-right: 1px solid var(--smr-modern-line) !important;
  box-shadow: 16px 0 44px rgba(25, 50, 41, .16) !important;
}

.sidebar-header {
  background: #004f3b !important;
}

.sidebar-menu li,
.menu-title,
.submenu li {
  border-radius: 10px !important;
  font-size: 15px !important;
}

.sidebar-menu li:hover,
.sidebar-menu li.active,
.submenu .active-sub,
.menu-item.open > .menu-title {
  background: linear-gradient(135deg, var(--smr-modern-green-2), var(--smr-modern-green)) !important;
  box-shadow: 0 10px 22px rgba(0, 107, 79, .16);
  color: #fff !important;
}

.modern-page-button {
  border-radius: 11px !important;
  font-size: 14px !important;
  height: 36px !important;
  width: 36px !important;
}

.modern-page-button.active {
  background: var(--smr-modern-green) !important;
  color: #fff !important;
}

.smooth-line {
  background: linear-gradient(90deg, var(--smr-modern-green), var(--smr-modern-gold)) !important;
  border-radius: 99px !important;
}

.alert {
  border-radius: 12px !important;
}

/* The supplied logo has generous transparent margins. Give the mark enough
   room and remove the old padded badge that made it appear tiny. */
.navbar .nav-left img[src*="smr-logo-20260917"],
.sidebar-header img[src*="smr-logo-20260917"] {
  width: 112px !important;
  height: 92px !important;
  max-width: 112px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: #fff !important;
  object-fit: cover !important;
  object-position: center !important;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .navbar .nav-left img[src*="smr-logo-20260917"],
  .sidebar-header img[src*="smr-logo-20260917"] {
    width: 96px !important;
    height: 80px !important;
    max-width: 96px !important;
  }
}

.smr-payment-period-display {
  background: linear-gradient(145deg, #ffffff, #f5fbf8);
  border: 1px solid var(--smr-modern-line);
  border-radius: 14px;
  box-shadow: var(--smr-modern-shadow-sm);
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 14px 0 18px;
  padding: 14px;
}

.smr-payment-period-display div {
  background: #fff;
  border: 1px solid #e7f0eb;
  border-radius: 12px;
  padding: 12px 14px;
}

.smr-payment-period-display span {
  color: var(--smr-modern-muted);
  display: block;
  font-size: 12px;
  font-weight: 780;
  letter-spacing: .04em;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.smr-payment-period-display strong {
  color: var(--smr-modern-green);
  display: block;
  font-size: 18px;
  font-weight: 850;
}

@media (max-width: 768px) {
  html,
  body {
    font-size: 14px !important;
  }

  .navbar {
    min-height: auto !important;
  }

  .container.card,
  .all-modules-height.card {
    border-radius: 12px !important;
    margin-left: 10px !important;
    margin-right: 10px !important;
  }

  .smr-payment-period-display {
    grid-template-columns: 1fr;
  }
}

/* Logo-matched branding for the navigation and sign-in form. */
.smr-brand-title { line-height: 1.12; text-align: left; }
.smr-brand-title strong { display: block; font-family: Georgia, 'Times New Roman', serif; font-size: 29px; font-weight: 700; letter-spacing: .025em; }
.smr-brand-title small { display: block; margin-top: 7px; font-size: 11px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; }
.navbar .nav-left { display: flex; align-items: center; gap: 14px; }
.navbar .smr-brand-title strong { color: #ffe1a1; text-shadow: 0 1px 2px rgba(0,0,0,.2); }
.navbar .smr-brand-title small { color: #fff6e3; }
.login-page > img.ramesh-logo { width: 150px !important; height: 130px !important; max-width: 150px !important; padding: 0 !important; margin: 0 auto 10px !important; border: 0 !important; background: #fff !important; object-fit: cover !important; }
.login-page .smr-brand-title { text-align: center; margin: 0 auto 24px; }
.login-page .smr-brand-title strong { color: #760b0b; font-size: 32px; }
.login-page .smr-brand-title strong span { color: #926713; }
.login-page .smr-brand-title small { color: #5b4035; }
@media (max-width: 768px) {
  .navbar .nav-left { gap: 7px; }
  .navbar .smr-brand-title strong { font-size: 20px; }
  .navbar .smr-brand-title small { font-size: 9px; letter-spacing: .12em; }
}
@media (max-width: 480px) {
  .navbar .nav-left { flex-wrap: wrap; }
  .navbar .smr-brand-title { flex-basis: 100%; padding: 0 0 8px 8px; }
  .login-page .smr-brand-title strong { font-size: 27px; }
}

/* Display names only; original Taken selectors and transactions stay intact. */
[data-smr-cash-label] { font-size: 0 !important; }
[data-smr-cash-label]::before { content: attr(data-smr-cash-label); font-size: 1rem; }
h5[data-smr-cash-label]::before { font-size: 1.25rem; }

/* White backing follows the logo's circular rim, not its transparent canvas.
   Keep existing image dimensions and object-fit so the mark does not resize. */
.navbar .nav-left img[src*="smr-logo-20260917"],
.sidebar-header img[src*="smr-logo-20260917"] {
  border-radius: 0 !important;
  background: radial-gradient(circle 34px at 50.4% calc(50% - 5px), #fff 99%, transparent 100%) !important;
}
.login-page > img.ramesh-logo {
  border-radius: 0 !important;
  background: radial-gradient(circle 46px at 50.4% calc(50% - 7px), #fff 99%, transparent 100%) !important;
}
@media (max-width: 768px) {
  .navbar .nav-left img[src*="smr-logo-20260917"],
  .sidebar-header img[src*="smr-logo-20260917"] {
    background: radial-gradient(circle 29px at 50.4% calc(50% - 4.5px), #fff 99%, transparent 100%) !important;
  }
}

/* Fill the print logo circle using the mark, not the PNG transparent margins. */
.smr-preview-logo { padding: 0; }
.smr-preview-logo img { flex-shrink: 0; max-width: none; transform: scale(1.58) translate(-.4%, 5%); }
.smr-preview-shop { min-width: 0; }
.smr-preview-place { overflow-wrap: anywhere; }

/* Cash entry fields may exceed one Bootstrap row after Name/Reason are added. */
.smr-cash-entry-layout {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: flex-end;
  min-width: 0;
  max-width: 100%;
}
.smr-cash-entry-layout > [class*="col-"] {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
.smr-cash-entry-layout .all-btn-color button { max-width: 100%; white-space: normal; }
@media (max-width: 767px) {
  .smr-cash-entry-layout > [class*="col-"] { flex: 0 0 100%; width: 100%; }
  .smr-cash-entry-layout > .all-btn-color { text-align: left !important; }
  .smr-cash-entry-layout > .all-btn-color button { width: 100%; }
}

/* Saved-customer print: slightly larger logo; same photo sequence as preview. */
.smr-saved-customer-print .smr-preview-logo { width: 72px; height: 72px; }
.smr-preview-photos { flex-direction: row; flex-wrap: nowrap; }
.smr-preview-photo[data-smr-photo-role="customer"] { order: 0; flex-shrink: 0; }
.smr-preview-photo[data-smr-photo-role="jewel"] { order: 1; flex-shrink: 0; }
@media print {
  .smr-preview-main { grid-template-columns: minmax(0, 1fr) auto; }
  .smr-preview-photos { justify-content: flex-end; }
}

/* Supplied combined logo/name artwork. Frame out the source's white margins. */
.navbar .nav-left img.smr-brand-replaced-logo,
.login-page > img.smr-brand-replaced-logo { display: none !important; }
.smr-brand-artwork {
  width: 100%;
  aspect-ratio: 1280 / 250;
  background: #fff url('/assets/smr-brand-title-20260919.jpeg') no-repeat 36% 47.6% / 117.1875% auto;
  border-radius: 5px;
  flex-shrink: 0;
}
.navbar .nav-left .smr-brand-artwork { width: clamp(240px, 40vw, 540px); }
.login-page .smr-brand-artwork { max-width: 500px; margin: 0 auto 24px; }
@media (max-width: 600px) {
  .navbar .nav-left { flex-wrap: nowrap; }
  .navbar .nav-left .smr-brand-artwork { width: clamp(165px, 44vw, 264px); }
}

/* Compact top-bar artwork with breathing room around the complete title. */
.navbar .nav-left .smr-brand-artwork {
  width: clamp(240px, 32vw, 420px);
  aspect-ratio: 5 / 1;
  background-size: 110% auto;
  background-position: 50% 47.5%;
}
@media (max-width: 600px) {
  .navbar .nav-left .smr-brand-artwork { width: clamp(165px, 44vw, 264px); }
}

/* One amount entry and one review for customer payments. */
.smr-simple-payment { max-width: 1080px; margin-top: 24px; }
.smr-payment-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 20px; }
.smr-payment-heading h4 { margin: 0 0 6px; font-weight: 800; }
.smr-payment-heading p { margin: 0; color: #52645e; }
.smr-payment-totals { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.smr-payment-stat { background: #f2f8f5; border: 1px solid #d9e7df; border-radius: 10px; padding: 18px; }
.smr-payment-stat span { display: block; color: #53645c; font-size: 13px; margin-bottom: 8px; }
.smr-payment-stat strong { font-size: 23px; color: #075a43; overflow-wrap: anywhere; }
.smr-payment-period { font-size: 12px; color: #65716a; margin: 12px 0 26px; }
.smr-payment-entry { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.smr-simple-payment label { display: block; margin-bottom: 8px; font-weight: 700; }
.smr-simple-payment small { display: block; margin: 8px 0; color: #53645c; }
.smr-payment-shortcuts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.smr-payment-review { margin-top: 24px; padding: 20px; border: 1px solid #d9e7df; border-radius: 12px; }
.smr-payment-review h5 { font-weight: 750; margin-bottom: 14px; }
.smr-payment-review p { margin: 14px 0 0; }
.smr-payment-review .form-control { max-width: 240px; }
.smr-payment-submit { margin-top: 20px; padding: 13px 28px; min-width: 220px; }
@media(max-width: 640px) {
  .smr-payment-totals,.smr-payment-entry { grid-template-columns: 1fr; }
  .smr-payment-stat { padding: 12px; }
  .smr-payment-stat span { display: inline-block; width: 50%; }
  .smr-payment-stat strong { font-size: 20px; }
  .smr-payment-submit { width: 100%; }
}

/* Keep the application header visible while the page scrolls. */
.navbar.smr-fixed-topbar {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 1200 !important;
}
[data-smr-topbar-spacer] { width: 100%; pointer-events: none; }
.smr-collection-calendar{position:absolute;z-index:1300;top:calc(100% + 6px);left:50%;transform:translateX(-50%);width:290px;padding:12px;background:#fff;border:1px solid #d5d5d5;border-radius:10px;box-shadow:0 8px 26px rgba(0,0,0,.18)}
.smr-collection-calendar[hidden]{display:none}
.smr-collection-calendar-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}
.smr-collection-calendar-head button{width:34px;height:32px;border:0;border-radius:6px;background:#f1f2f4;font-size:22px;line-height:1}
.smr-collection-calendar-head strong{font-size:15px}
.smr-collection-calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px;text-align:center}
.smr-collection-calendar-weekday,.smr-collection-calendar-empty,.smr-collection-calendar-day{height:32px;display:flex;align-items:center;justify-content:center}
.smr-collection-calendar-weekday{font-size:11px;font-weight:700;color:#666}
.smr-collection-calendar-day{border:0;border-radius:7px;background:#f3f3f3;color:#555;font-size:13px;cursor:pointer}
.smr-collection-calendar-day.has-records{background:#ffe08a;color:#503b00;font-weight:800;box-shadow:inset 0 0 0 2px #c58900}
.smr-collection-calendar-day.has-records:hover,.smr-collection-calendar-day.selected{background:#25843a;color:#fff}
.smr-collection-calendar-day.selected.has-records{box-shadow:inset 0 0 0 2px #f4c44f}
.smr-collection-calendar-note{margin:10px 0 0;font-size:11px;color:#666;text-align:center}
.search-container input[data-smr-collection-date] { cursor: pointer; padding-right: 42px !important; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%232b3834' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M16 3v4M8 3v4M3 11h18'/%3E%3C/svg%3E") !important; background-repeat: no-repeat !important; background-position: right 14px center !important; background-size: 18px 18px !important; }
.smr-collection-calendar .smr-collection-calendar-day.has-records { background: #ffe08a !important; color: #503b00 !important; font-weight: 800 !important; box-shadow: inset 0 0 0 2px #c58900 !important; }
.smr-collection-calendar .smr-collection-calendar-day.selected.has-records { background: #25843a !important; color: #fff !important; box-shadow: inset 0 0 0 2px #f4c44f !important; }
