:root {
  --erp-dark: #1f2937;
  --erp-dark2: #334155;
  --erp-border: #e5e7eb;
  --erp-bg: #f4f6f9;
  --ink: #0f172a;
  --blue: #2563eb;
  --border: #e2e8f0;
  --muted: #64748b;
  --line: #dbe3ee;
  --blue-dark: #172554;
  --green: #16a34a;
  --red: #dc2626;
  --amber: #f59e0b;
  --ink2: #1e293b;
  --blue2: #1d4ed8;
  --bg: #f3f6fb;
  --card: #fff;
  --danger: #dc2626;
  --pl-ink: #0f172a;
  --pl-muted: #64748b;
  --pl-border: #e2e8f0;
  --pl-blue: #2563eb;
  --dark: #0f172a;
  --sv-ink: #0f172a;
  --sv-blue: #2563eb;
  --sv-blue2: #1d4ed8;
  --sv-line: #dbe3ee;
  --sv-muted: #64748b;
  --sv-bg: #f3f6fb;
  --sv-card: #fff;
}

* {
  box-sizing: border-box;
}

body {
  background: linear-gradient(180deg,#eef4ff 0,#f8fafc 42%,#f1f5f9 100%);
  font-family: Inter,system-ui,-apple-system,"Segoe UI",Arial,sans-serif;
  color: var(--sv-ink);
  min-height: 100vh;
  margin: 0;
  /*display: flex;
  */ align-items: center;
  justify-content: center;
  padding: 24px;
}
.print-sheet-header {
    display: none;
}
.daily-stock-page,
.bank-page,
.cash-page,
.closing-page,
.expenditure-page,.daily-stock-page,.wrap,
.daily-cash-page,
.exp-summary-page,
.lowstock-page,
.sales-register-wrap,
.stock-wrap {
  max-width: 1500px;
  margin: 22px auto;
  padding: 0 14px;
}

.stock-hero,
.bank-hero,
.cash-hero,
.stock-hero,.page-header,.hero,
.page-hero,.stock-hero,.expenditure-hero,
.category-hero,
.exp-hero,
.lowstock-hero,
.sales-hero,.dash-hero {
  background: linear-gradient(135deg,#0f172a 0%,#172554 52%,#2563eb 100%);
  color: #fff;
  border-radius: 22px;
  padding: 25px 28px;
  margin-bottom: 16px;
  box-shadow: 0 16px 38px rgba(15,23,42,.16);
  position: relative;
  overflow: hidden;
}
.dash-hero h2{
	color: white;
}

.stock-hero h3,
.lowstock-hero h3 {
  margin: 0;
  font-weight: 800;
  letter-spacing: -.5px;
}

.stock-hero .sub {
  opacity: .82;
  font-size: .9rem;
  margin-top: 5px;
  color: rgba(255,255,255,.76);
}

.day-status-open,.day-status-closed {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 8px;
  padding: 5px 10px;
  border-radius: 7px;
  font-size: .76rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .3px;
}

.day-status-open,
.day-open {
  background: #16a34a;
  color: #fff;
}

.day-status-closed,
.day-closed {
  background: #dc2626;
  color: #fff;
}

.stock-date-badge {
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 12px;
  padding: 8px 12px;
  text-align: right;
  font-weight: 800;
  min-width: 125px;
  backdrop-filter: blur(6px);
}

.stock-card {
  background: var(--sv-card);
  border: 1px solid var(--sv-line);
  border-radius: 18px;
  padding: 15px;
  box-shadow: 0 7px 22px rgba(15,23,42,.055);
  margin-bottom: 16px;
  overflow: hidden;
}

.page,.wrap {
  max-width: 1450px;
  margin: 20px auto;
  background: #fff;
  padding: 20px;
  border: 1px solid var(--erp-border);
  border-radius: 14px;
  box-shadow: 0 3px 14px rgba(0,0,0,.04);
}

.shop-title {
  background: #fff;
  border: 1px solid var(--erp-border);
  border-radius: 10px;
  font-size: 20px;
  font-weight: 800;
  text-align: center;
  padding: 12px;
  margin-bottom: 15px;
}

.login-box {
  max-width: 500px;
  margin: 6% auto;
  background: #fff;
  padding: 25px;
  border-radius: 16px;
  border: 1px solid var(--erp-border);
  box-shadow: 0 12px 30px rgba(0,0,0,.08);
}



.card-header {
  background: linear-gradient(180deg,#fff,#f8fafc)!important;
  border-bottom: 1px solid var(--line)!important;
  font-weight: 800;
  padding: 15px 18px!important;
  color: var(--ink);
}


.table,
.action-link:last-child {
  margin-bottom: 0;
}

.table thead th {
  background: #0f172a;
  color: #fff;
  border-color: #334155!important;
  font-size: .73rem;
  vertical-align: middle;
  padding: 12px;
  text-transform: uppercase;
  letter-spacing: .35px;
  white-space: nowrap;
}

.table-bordered>:not(caption)>* {
  border-color: #e2e6ea;
}

.alert {
  border-radius: 11px;
  border-width: 1px;
  font-size: .82rem;
  font-weight: 600;
}

table.reg {
  width: 100%;
  border-collapse: separate;
  font-size: 13px;
  background: #fff;
  border-spacing: 0;
}

.reg th,.reg td {
  border: 1px solid #dfe3e8;
  padding: 6px 7px;
  text-align: center;
  height: 32px;
}

.reg th,
.lowstock-table thead th {
  background: #0f172a;
  color: #fff;
  border-color: #334155;
  padding: 12px 9px;
  text-align: center;
  font-size: .73rem;
  text-transform: uppercase;
  letter-spacing: .35px;
  white-space: nowrap;
}

.reg .brand-name {
  text-align: left;
  font-weight: 700;
}

.reg .category-header {
  background: #eef2f6;
  font-weight: 800;
  text-align: left;
  padding: 10px;
}

.close-input {
  width: 82px;
  text-align: center;
  border-radius: 9px;
  border: 2px solid #bfdbfe;
  padding: 5px;
  min-height: 38px;
  font-weight: 800;
  background: #fff;
}

.total-row td {
  font-weight: 800;
  background: #fff8db;
}

.navbar {
  background: linear-gradient(135deg,var(--erp-dark),var(--erp-dark2))!important;
  box-shadow: 0 3px 14px rgba(15,23,42,.14);
}

.navbar-brand,
.closing-cell,.sale-cell,
.entry-table th,.saved-table th,
.sales-register-total {
  font-weight: 800;
}

.navbar .nav-link {
  font-size: .9rem;
}

.dropdown-menu {
  border: 1px solid var(--erp-border);
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0,0,0,.1);
}

.dropdown-item {
  padding: 8px 14px;
}

.home-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg,#0f172a 0%,#172554 48%,#2563eb 100%);
  color: #fff;
  border-radius: 26px;
  padding: 42px 38px;
  margin-bottom: 26px;
  box-shadow: 0 20px 45px rgba(15,23,42,.18);
}

.home-hero:before,.home-hero:after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
}

.home-hero:before {
  width: 330px;
  height: 330px;
  right: -110px;
  top: -150px;
}

.home-hero:after {
  width: 220px;
  height: 220px;
  left: 45%;
  bottom: -170px;
}

.hero-content,
.bank-hero>*,
.mgmt-content,
.cash-hero>*,
.stock-hero>* ,.page-header>* ,.hero>*,
.dash-content,
.clear-hero>*,
.closing-hero>*,
.page-hero>* ,.stock-hero>* ,.expenditure-hero>*,
.category-hero>*,
.stock-hero>*,
.exp-hero>*,
.lowstock-hero>*,
.sales-hero>* {
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-flex;
  padding: 7px 12px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 30px;
  background: rgba(255,255,255,.08);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .7px;
  margin-bottom: 16px;
}

.home-hero h1 {
  font-size: 2.35rem;
  font-weight: 800;
  letter-spacing: -.8px;
  margin: 0 0 8px;
}

.home-hero p {
  margin: 0;
  color: rgba(255,255,255,.75);
  font-size: 1rem;
}

.admin-btn {
  border-radius: 12px;
  padding: 11px 19px;
  font-weight: 700;
  box-shadow: 0 7px 18px rgba(0,0,0,.13);
}

.section-bar {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin: 4px 2px 18px;
}

.section-title {
  font-size: 1.18rem;
  font-weight: 800;
  margin: 0;
}

.section-sub {
  color: var(--muted);
  margin-top: 3px;
  font-size: .84rem;
}

.shop-count {
  background: #e0ecff;
  color: #1d4ed8;
  border-radius: 30px;
  padding: 8px 14px;
  font-size: .83rem;
  font-weight: 700;
  white-space: nowrap;
}

.shop-card {
  height: 100%;
  background: #fff;
  border: 0;
  /*border-radius: 18px;*/
  padding: 20px;
  box-shadow: 0 8px 24px rgba(15,23,42,.08);
  transition: .2s;
  position: relative;
  overflow: hidden;
}

.shop-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 35px rgba(15,23,42,.14);
  border-color: #bfdbfe;
}

.shop-card:after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg,#2563eb,#60a5fa);
  opacity: .85;
}

.shop-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.shop-icon {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: #eff6ff;
  display: grid;
  place-items: center;
  font-size: 28px;
}

.shop-label {
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .6px;
  color: #64748b;
  text-transform: uppercase;
  background: #f8fafc;
  border-radius: 20px;
  padding: 6px 10px;
}

.shop-name {
  font-size: 1.06rem;
  font-weight: 800;
  line-height: 1.4;
  min-height: 54px;
  display: flex;
  align-items: center;
  margin-bottom: 18px;
  color: #1e293b;
}

.open-btn {
  width: 100%;
  border-radius: 11px;
  padding: 10px 14px;
  font-weight: 700;
}

.empty-state {
  background: #fff;
  border: 1px dashed #cbd5e1;
  border-radius: 20px;
  padding: 40px 20px!important;
  text-align: center;
  box-shadow: 0 7px 22px rgba(15,23,42,.04);
  color: #64748b;
}

.admin-wrap {
  max-width: 1250px;
}

.panel-hero {
  background: linear-gradient(135deg,#111827,#1d4ed8);
  color: #fff;
  border-radius: 22px;
  padding: 30px;
  box-shadow: 0 12px 32px rgba(15,23,42,.15);
}

.panel-hero h2 {
  font-weight: 700;
}

.action-card,.data-card {
  border: 0;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(15,23,42,.08);
  transition: .2s;
}

.action-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(15,23,42,.12);
}

.icon-box {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: #eff6ff;
  display: grid;
  place-items: center;
  font-size: 25px;
}

.action-card .card-body,
.shop-card .card-body,
.master-card .card-body {
  padding: 24px;
}

.table>:not(caption)>*>* {
  padding: 14px;
}


.hero {
  background: linear-gradient(135deg,#0f172a,#1e3a8a,#2563eb);
  color: #fff;
  border-radius: 22px;
  padding: 28px 30px;
  box-shadow: 0 14px 34px rgba(15,23,42,.16);
  margin-bottom: 22px;
}

.badge {
  border-radius: 20px;
  padding: 7px 10px;
  font-weight: 800;
}

.admin-page {
  max-width: 920px;
}

.admin-hero {
  background: linear-gradient(135deg,#172554,#2563eb);
  color: #fff;
  border-radius: 20px;
  padding: 28px 30px;
  margin-bottom: 24px;
  box-shadow: 0 12px 30px rgba(30,64,175,.18);
}

.admin-hero h2 {
  font-weight: 700;
  margin: 0;
}

.admin-hero p {
  margin: 6px 0 0;
  opacity: .85;
}

.admin-card {
  border: 0;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(15,23,42,.08);
  overflow: hidden;
}

.admin-card .card-body {
  padding: 26px;
}

.status-box {
  border-radius: 14px;
  padding: 18px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.unlock-btn {
  border-radius: 10px;
  padding: 11px 20px;
  font-weight: 600;
}

.erp-page {
  max-width: 1450px;
  margin: auto;
  padding: 24px 12px;
}

.erp-hero {
  background: linear-gradient(135deg,#1f2937,#374151);
  color: #fff;
  border-radius: 16px;
  padding: 22px 24px;
  margin-bottom: 18px;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
}

.erp-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  box-shadow: 0 4px 18px rgba(0,0,0,.05);
  overflow: hidden;
  margin-bottom: 18px;
  padding: 18px;
}

.erp-card-body,
.register-filter .card-body,
.card-body,
.transaction-card {
  padding: 18px;
}

.erp-table,
.bank-table,
.brand-table,
.statement-table,
.clear-table,
.category-table,
.summary-table {
  margin: 0;
}

.erp-table th {
  background: #212529!important;
  color: #fff;
  white-space: nowrap;
}

.erp-table td,.erp-table th {
  vertical-align: middle;
  padding: 11px;
}

.money {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.badge-soft {
  font-size: 11px;
}

.action-bar {
  display: flex;
  justify-content: flex-end;
  padding: 14px 18px;
  border-top: 1px solid var(--line);
  background: #f8fafc;
  gap: 9px;
}

.bank-hero:after,
.closing-hero:after,
.sales-hero:after {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  right: -120px;
  top: -200px;
  background: rgba(255,255,255,.07);
}

.bank-hero h3,
.stock-hero h1,.stock-hero h2,.stock-hero h3,.page-header h1,.page-header h2,.page-header h3,
.closing-hero h3,
.category-hero h3,
.sales-hero h3 {
  font-weight: 800;
  letter-spacing: -.5px;
}

.hero-icon {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(255,255,255,.12);
  font-size: 24px;
}

.bank-card,
.closing-date-card,.closing-check-card,
.category-card,
.sales-register-filter,.sales-register-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 7px 22px rgba(15,23,42,.055);
  overflow: hidden;
  margin-bottom: 18px;
}

.bank-filter {
  padding: 18px 20px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.bank-filter .form-label,
.sales-register-filter .form-label {
  color: #334155;
  font-size: .84rem;
  font-weight: 700;
}

.bank-filter .form-control,.bank-filter .form-select,
.closing-date-card .form-control,
.sales-register-filter .form-control {
  min-height: 44px;
  border-color: #cbd5e1;
  border-radius: 10px;
}

.bank-filter .form-control:focus,.bank-filter .form-select:focus,
.bank-modal-body .form-control:focus,.bank-modal-body .form-select:focus,
.brand-toolbar .form-control:focus,
.brand-search:focus,.register-filter input:focus,
.cash-filter .form-control:focus,
.form-control:focus,.form-select:focus,
.closing-date-card .form-control:focus,
.category-form .form-control:focus,
.form-control:focus,
.sales-register-filter .form-control:focus {
  border-color: #60a5fa;
  box-shadow: 0 0 0 .2rem rgba(37,99,235,.12);
}

.bank-filter .btn,
.closing-date-card .btn,
.sales-register-filter .btn {
  min-height: 44px;
  border-radius: 10px;
  font-weight: 700;
}

.bank-stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: 0 7px 22px rgba(15,23,42,.045);
  height: 100%;
}

.bank-stat-label {
  color: var(--muted);
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .6px;
  font-weight: 700;
}

.bank-stat-value {
  margin-top: 4px;
  font-size: 1.45rem;
  font-weight: 800;
}

.bank-stat-opening,
.closing-summary-item:nth-child(6) {
  border-left: 4px solid #64748b;
}

.bank-stat-credit {
  border-left: 4px solid var(--green);
}

.bank-stat-debit {
  border-left: 4px solid var(--red);
}

.bank-stat-closing {
  border-left: 4px solid var(--blue);
}

.bank-table th,.bank-table td {
  padding: 12px 14px;
  vertical-align: middle;
  border-color: #e2e8f0;
}

.bank-table thead th {
  background: #0f172a!important;
  color: #fff!important;
  font-size: 11px;
  letter-spacing: .65px;
  text-transform: uppercase;
  white-space: nowrap;
}

.bank-table tbody tr:hover td,
.cash-table tbody tr:not(.cash-section):hover th,.cash-table tbody tr:not(.cash-section):hover td,
.category-table tbody tr:hover td,
.opening-table tbody tr:hover,
.pl-total,
.sales-register-table tbody tr:hover td {
  background: #f8fafc;
}

.bank-table tbody td {
  font-size: 13px;
}

.bank-table .credit-cell {
  background: #f0fdf4;
}

.bank-table .debit-cell {
  background: #fff1f2;
}

.bank-table .balance-cell {
  background: #f8fafc;
  font-weight: 800;
}

.bank-source-badge {
  display: inline-flex;
  margin-top: 5px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
}

.bank-source-manual {
  background: #fef3c7;
  color: #92400e;
}

.bank-source-supplier,
.status-inactive {
  background: #fee2e2;
  color: #991b1b;
}

.bank-source-auto,
.status-active {
  background: #dcfce7;
  color: #166534;
}

.bank-total-row th,.bank-total-row td,
.row-total th,.row-total td {
  background: #eef4ff!important;
  font-weight: 800;
  border-top: 2px solid #93c5fd;
}

.bank-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,.68);
  backdrop-filter: blur(3px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  padding: 15px;
}

.bank-modal-backdrop.show {
  display: flex;
}

.bank-modal-box {
  width: 100%;
  max-width: 720px;
  max-height: 95vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 25px 80px rgba(0,0,0,.35);
}

.bank-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg,#0f172a,#2563eb);
  color: #fff;
  padding: 17px 20px;
}

.bank-modal-header h5 {
  margin: 0;
  font-weight: 800;
}

.bank-modal-close {
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 30px;
  cursor: pointer;
  line-height: 1;
}

.bank-modal-body,
.category-form {
  padding: 20px;
}

.bank-modal-body .form-label {
  font-size: .84rem;
  color: #334155;
  font-weight: 700;
}

.bank-modal-body .form-control,.bank-modal-body .form-select {
  min-height: 44px;
  border-radius: 10px;
  border-color: #cbd5e1;
}

.bank-modal-body textarea.form-control {
  min-height: auto;
}

.bank-modal-footer {
  border-top: 1px solid var(--line);
  padding: 15px 20px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

body.bank-modal-open {
  overflow: hidden;
}

.bank-type-debit {
  border-color: #dc3545!important;
  background: #fff7f7;
}

.bank-type-credit {
  border-color: #198754!important;
  background: #f4fff7;
}

.bank-action {
  border-radius: 9px;
  font-weight: 700;
}

.management-dashboard,
.erp-dashboard {
  max-width: 1450px;
  margin: 0 auto;
  padding: 28px 16px 45px;
}

.mgmt-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg,#0f172a,#172554 52%,#2563eb);
  color: #fff;
  border-radius: 25px;
  padding: 32px 34px;
  margin-bottom: 24px;
  box-shadow: 0 18px 42px rgba(15,23,42,.18);
}

.mgmt-hero:after {
  content: "";
  position: absolute;
  width: 330px;
  height: 330px;
  border-radius: 50%;
  right: -100px;
  top: -170px;
  background: rgba(255,255,255,.07);
}

.mgmt-hero h2 {
  font-weight: 800;
  margin: 0;
  letter-spacing: -.5px;
}

.mgmt-hero p {
  margin: 7px 0 0;
  opacity: .76;
}

.period-pill {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 7px 12px;
  background: #e0ecff;
  color: #1d4ed8;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 30px;
  font-size: .8rem;
  font-weight: 700;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin: 0 2px 14px;
  gap: 15px;
}

.brand-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 19px;
  box-shadow: 0 7px 22px rgba(15,23,42,.06);
  overflow: hidden;
}

.brand-toolbar {
  padding: 16px 20px;
  background: #fff;
  border-bottom: 1px solid #edf2f7;
}

.brand-toolbar .form-control {
  height: 44px;
  border-radius: 11px;
  border-color: #cbd5e1;
}

.brand-table thead th {
  background: #0f172a!important;
  color: #fff!important;
  border-color: #1e293b!important;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .4px;
  white-space: nowrap;
  padding: 12px 10px;
}

.brand-table tbody td {
  vertical-align: middle;
  border-color: #e2e8f0;
  padding: 10px;
}

.brand-table tbody tr:hover,
.statement-table tbody tr:hover,
.stock-table tbody tr:hover {
  background: #f8fbff;
}

.brand-name,
.card-heading-title {
  font-weight: 800;
  color: #0f172a;
}

.category,
.category-cell {
  font-size: .78rem;
  font-weight: 700;
  color: #64748b;
}

.size,.price,.stock {
  font-weight: 800;
  white-space: nowrap;
}

.stock {
  text-align: right;
}

.bm-check {
  width: 18px;
  height: 18px;
  accent-color: #2563eb;
}

.status {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .2px;
  white-space: nowrap;
}

.bm-count {
  border-radius: 999px;
  background: #e0ecff;
  color: #1d4ed8;
  padding: 7px 12px;
  font-size: .78rem;
  font-weight: 800;
}

.bm-actions {
  padding: 14px 20px;
  background: #f8fafc;
  border-top: 1px solid #dbe3ee;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.bm-actions .btn-success {
  background: linear-gradient(135deg,#16a34a,#15803d);
  border: 0;
  font-weight: 800;
  border-radius: 10px;
}

.edit-btn {
  border-radius: 10px;
  font-weight: 800;
}

.modal-content {
  border: 0;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(15,23,42,.22);
}

.modal-header {
  background: #0f172a;
  color: #fff;
  border: 0;
  border-radius: 18px 18px 0 0;
}

.modal-footer {
  background: #f8fafc;
  border-top: 1px solid #dbe3ee;
  border-color: #e2e8f0;
}

.register-filter,.statement-card,.brand-info,.summary-card {
  border: 1px solid var(--border)!important;
  border-radius: 19px!important;
  box-shadow: 0 7px 22px rgba(15,23,42,.06)!important;
  overflow: hidden;
}

.register-filter {
  background: #fff;
  position: relative!important;
  z-index: 100!important;
  overflow: visible!important;
}

.form-label {
  font-size: .76rem;
  font-weight: 800;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: .3px;
  margin-bottom: 6px;
}

.brand-search {
  height: 46px;
  border-radius: 11px;
  border: 1px solid #cbd5e1;
}

.brand-search-wrap {
  position: relative!important;
  z-index: 1000!important;
}

.brand-results {
  position: absolute!important;
  left: 0;
  right: 0;
  top: 100%;
  margin-top: 4px;
  z-index: 99999!important;
  background: #fff;
  border-radius: 11px;
  border: 1px solid #dbe3ee;
  box-shadow: 0 12px 30px rgba(15,23,42,.14);
  max-height: 320px;
  overflow-y: auto;
  display: none;
}

.brand-option {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #eef2f7;
  background: #fff;
  padding: 11px 14px;
  text-align: left;
  cursor: pointer;
}

.brand-option:hover {
  background: #f4f8ff;
}

.register-filter .btn-primary {
  background: linear-gradient(135deg,#2563eb,#1d4ed8);
  border: 0;
  font-weight: 800;
  border-radius: 10px;
}

.brand-info,
.statement-card {
  background: #fff;
}

.brand-info .card-body {
  padding: 17px 19px;
}

.brand-info-name {
  font-size: 20px;
  font-weight: 850;
  color: #0f172a;
}

.brand-info-meta {
  font-size: 13px;
  color: #64748b;
}

.summary-card {
  height: 100%;
  background: #fff;
}

.summary-card .card-body {
  padding: 15px;
}

.summary-label {
  font-size: 11px;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: .45px;
  font-weight: 800;
}

.summary-value {
  font-size: 20px;
  font-weight: 850;
  margin-top: 5px;
  color: #0f172a;
}

.summary-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  background: #eef4ff;
}

.statement-header {
  padding: 15px 18px;
  background: #f8fafc;
  border-bottom: 1px solid #dbe3ee;
}

.statement-table thead th {
  background: #0f172a!important;
  color: #fff!important;
  border-color: #1e293b!important;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .4px;
  white-space: nowrap;
  vertical-align: middle;
  padding: 11px;
}

.statement-table tbody td {
  vertical-align: middle;
  white-space: nowrap;
  padding: 9px 11px;
  border-color: #e2e8f0;
}

.statement-table tfoot th {
  font-weight: 800;
  white-space: nowrap;
  padding: 10px 11px;
  background: #eef4ff!important;
  border-color: #dbe3ee!important;
}

.date-cell {
  font-weight: 750;
  color: #334155;
}

.empty-register {
  padding: 45px 20px;
}

.cash-hero:after,
.clear-hero:after {
  content: "";
  position: absolute;
  width: 310px;
  height: 310px;
  border-radius: 50%;
  right: -115px;
  top: -195px;
  background: rgba(255,255,255,.07);
}

.cash-hero h3 {
  font-weight: 800;
  letter-spacing: -.5px;
  color: #fff!important;
  margin: 0 0 5px;
}

.day-status-badge {
  display: inline-flex;
  align-items: center;
  padding: 7px 13px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .25px;
}

.day-status-future {
  background: #f59e0b;
  color: #111827;
}

.cash-card {
  background: #fff;
  border: 1px solid #dbe3ee;
  border-radius: 18px;
  box-shadow: 0 7px 22px rgba(15,23,42,.055);
  overflow: hidden;
  margin-bottom: 16px;
}

.cash-filter {
  padding: 16px 18px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.cash-filter label {
  color: #334155;
  font-size: .88rem;
}

.cash-filter .form-control,
.exp-summary-page .filter-panel .form-control {
  border-color: #cbd5e1;
  border-radius: 10px;
  min-height: 42px;
}

.cash-filter .btn {
  min-height: 42px;
  border-radius: 10px;
  font-weight: 700;
  background: #2563eb;
  border-color: #2563eb;
}

.cash-table {
  margin: 0;
  border: 0;
}

.cash-table th,.cash-table td,
.category-table th,.category-table td {
  padding: 13px 16px;
  vertical-align: middle;
  border-color: #e2e8f0;
}

.cash-table th {
  font-weight: 700;
  color: #1e293b;
  background: #fff;
}

.cash-table td {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: #0f172a;
}

.cash-section th {
  background: #0f172a!important;
  color: #fff!important;
  font-size: 12px;
  letter-spacing: .65px;
  text-transform: uppercase;
  padding: 11px 16px!important;
}

.row-sale th,.row-sale td {
  background: #ecfdf3!important;
}

.row-opening th,.row-opening td {
  background: #fff8db!important;
}

.row-closing th,.row-closing td {
  background: #e8f7ed!important;
  font-size: 16px;
  font-weight: 800;
  border-top: 2px solid #86efac;
}

.row-closing td,
.pl-net .pl-label,.pl-net .pl-value {
  color: #166534;
}

.stock-hero:after,.page-header:after,.hero:after,
.page-hero:after,.stock-hero:after,.expenditure-hero:after,
.category-hero:after,
.stock-hero:after,
.exp-hero:after,
.lowstock-hero:after {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  right: -110px;
  top: -190px;
  background: rgba(255,255,255,.07);
}



.toolbar,.top-actions,
.lowstock-toolbar {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 5px 16px rgba(15,23,42,.045);
  margin-bottom: 14px;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(15,23,42,.10);
}

.btn-primary,
.btn-outline-primary:hover,
.pagination .active .page-link {
  background: #2563eb;
  border-color: #2563eb;
}

.btn-success {
  background: #16a34a;
  border-color: #16a34a;
}

.stat-card,.stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: 0 6px 18px rgba(15,23,42,.05);
  height: 100%;
  position: relative;
  overflow: hidden;
}

.stat-card:before,.stat:before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  background: linear-gradient(90deg,#2563eb,#60a5fa);
}

.stat-card .label,.stat .label,
.metric-label {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .65px;
  font-weight: 800;
  color: var(--muted);
}

.stat-card .value,.stat .value {
  font-size: 1.2rem;
  font-weight: 800;
  margin-top: 7px;
}

.stock-stats {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 14px;
  margin: 0 0 16px;
}

.stat-box {
  position: relative;
  overflow: hidden;
  min-height: 108px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(145deg,#ffffff 0%,#f8fbff 100%);
  box-shadow: 0 7px 22px rgba(15,23,42,.07);
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: transform .16s ease,box-shadow .16s ease;
}

.stat-box:before,
.metric-card:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg,#2563eb,#60a5fa);
}

.stat-box:after {
  content: "";
  position: absolute;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  right: -30px;
  bottom: -38px;
  background: rgba(37,99,235,.055);
}

.stat-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(15,23,42,.11);
}

.stat-label {
  position: relative;
  z-index: 1;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 7px;
}

.stat-value {
  position: relative;
  z-index: 1;
  font-size: 1.55rem;
  line-height: 1.1;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -.5px;
  margin-top: 4px;
}

.stat-box:nth-child(2):before {
  background: linear-gradient(90deg,#059669,#34d399);
}

.stat-box:nth-child(3):before {
  background: linear-gradient(90deg,#7c3aed,#a78bfa);
}

.stat-box:nth-child(4):before {
  background: linear-gradient(90deg,#ea580c,#fbbf24);
}

.table-responsive {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(15,23,42,.035);
}

.reg td {
  border-color: #e2e8f0;
  padding: 8px 9px;
  vertical-align: middle;
  text-align: center;
}

.reg tbody tr.stock-row:nth-child(even),
.table tbody tr:nth-child(even),
.exp-summary-page .table tbody tr:nth-child(even),
.lowstock-table tbody tr.stock-row:nth-child(even) {
  background: #fafcff;
}

.reg tbody tr.stock-row:hover,
.clear-table tbody tr:hover,
.table tbody tr:hover,
#masterResults .list-group-item:hover,
.exp-summary-page .table tbody tr:hover,
.lowstock-table tbody tr.stock-row:hover,
.pl-profit,
.brand-item:hover {
  background: #eff6ff;
}

.reg .brand-name,.brand-name,
.lowstock-table .brand-name {
  text-align: left;
  font-weight: 700;
  color: #1e293b;
}

.category-row td,.reg .category-row td,.category-header,
.lowstock-table .category-row td {
  background: #eaf1ff!important;
  color: #1e3a8a!important;
  font-weight: 800!important;
  padding: 11px 13px!important;
  text-align: left!important;
  letter-spacing: .4px;
}

.close-input:focus,
.min-input:focus {
  border-color: #2563eb;
  outline: 0;
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}

.total-row td,.summary-row.total-row td {
  background: #fff7d6!important;
  font-weight: 900;
  border-top: 2px solid #eab308;
}

.closing-value-row td {
  background: #f8fafc!important;
  font-weight: 800;
}

.summary-row td:last-child {
  font-weight: 900;
}

.row-hidden,.category-hidden {
  display: none!important;
}

.save-bar {
  position: sticky!important;
  bottom: 12px;
  z-index: 20;
  background: rgba(255,255,255,.97);
  border: 1px solid #cbd5e1;
  border-radius: 16px;
  padding: 14px 18px;
  box-shadow: 0 12px 30px rgba(15,23,42,.15);
  backdrop-filter: blur(8px);
}

.print-total-sale {
  margin: 16px 0;
  background: #0f172a;
  color: #fff;
  border-radius: 14px;
  padding: 15px 20px;
  text-align: right;
  font-size: 1.05rem;
  font-weight: 800;
}

#brandFilter {
  width: 420px;
}

.wholesale-card,.wholesale-section {
  border: 1px solid #bfdbfe!important;
  border-radius: 18px!important;
  box-shadow: 0 7px 22px rgba(15,23,42,.05);
}

.last-entry-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 9999;
  backdrop-filter: blur(3px);
}

.last-entry-modal {
  width: min(420px,100%);
  background: #fff;
  border-radius: 20px;
  padding: 26px;
  text-align: center;
  box-shadow: 0 24px 60px rgba(15,23,42,.28);
  animation: popupIn .18s ease-out;
}

.last-entry-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  margin: 0 auto 12px;
  background: #dbeafe;
  color: #1d4ed8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.last-entry-modal h4 {
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 8px;
}

.last-entry-date {
  font-size: 1.45rem;
  font-weight: 900;
  color: #1d4ed8;
  margin-bottom: 12px;
}

.last-entry-modal p {
  color: #475569;
  margin: 0 0 18px;
  line-height: 1.55;
}



.dash-hero:after {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  right: -100px;
  top: -170px;
  background: rgba(255,255,255,.06);
}

.dash-hero h2 {
  font-weight: 800;
  letter-spacing: -.5px;
  margin: 0;
}

.dash-hero p {
  opacity: .76;
  margin: 7px 0 0;
}

.status-open,.status-closed {
  display: inline-flex;
  align-items: center;
  margin-top: 13px;
  padding: 7px 13px;
  border-radius: 30px;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .5px;
}

.status-open {
  background: #dcfce7;
  border: 1px solid #86efac;
  color: #166534;
}

.status-closed {
  background: #fee2e2;
  border: 1px solid #fca5a5;
  color: #991b1b;
}

.date-panel {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 18px;
  padding: 15px 17px;
  min-width: 155px;
  text-align: center;
  backdrop-filter: blur(8px);
}

.date-panel .date-value {
  font-size: 1.05rem;
  font-weight: 800;
}

.dash-hero .form-control {
  border-radius: 11px;
  border: 0;
  min-height: 43px;
}

.dash-hero .btn {
  border-radius: 11px;
  font-weight: 700;
}

.stats,
.quick-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 15px;
  margin-bottom: 28px;
}

.stat {
  position: relative;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 7px 20px rgba(15,23,42,.055);
  transition: .2s;
}

.stat:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 28px rgba(15,23,42,.1);
}

.stat:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg,#2563eb,#60a5fa);
}

.stat .label {
  font-size: .72rem;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .65px;
}

.stat .value {
  font-size: 1.25rem;
  font-weight: 800;
  color: #172033;
  margin-top: 8px;
  white-space: nowrap;
}

.stat.highlight {
  background: linear-gradient(135deg,#eff6ff,#fff);
}

.stat.highlight:before {
  background: linear-gradient(90deg,#16a34a,#4ade80);
}

.quick {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 13px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 17px;
  padding: 16px;
  text-decoration: none;
  color: #172033;
  box-shadow: 0 6px 18px rgba(15,23,42,.05);
  transition: .2s;
}

.quick:hover {
  transform: translateY(-3px);
  color: #1d4ed8;
  border-color: #bfdbfe;
  box-shadow: 0 14px 28px rgba(15,23,42,.1);
}

.quick .icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #eff6ff;
  display: grid;
  place-items: center;
  font-size: 22px;
  flex: 0 0 auto;
}

.quick b {
  font-size: .92rem;
}

.module-card {
  height: 100%;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 19px;
  box-shadow: 0 6px 18px rgba(15,23,42,.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: .2s;
      text-align: center;
}

.module-card:hover {
  transform: translateY(-3px);
  border-color: #bfdbfe;
  box-shadow: 0 15px 28px rgba(15,23,42,.09);
}

.module-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #f8fafc;
  display: grid;
  place-items: center;
  font-size: 23px;
  margin: 10px auto;
}

.module-card h6 {
  font-weight: 800;
  margin: 0 0 4px;
  color: #1e293b;
}

.module-card a {
  margin-top: 16px;
  border-radius: 10px;
  font-weight: 700;
}

.module-count {
  background: #e0ecff;
  color: #1d4ed8;
  border-radius: 30px;
  padding: 7px 12px;
  font-size: .78rem;
  font-weight: 700;
  white-space: nowrap;
}

.data-clear-page {
  max-width: 1450px;
  margin: 22px auto 90px;
  padding: 0 14px;
}

.clear-hero {
  background: linear-gradient(135deg,#0f172a 0%,#172554 52%,#2563eb 100%);
  color: #fff;
  border-radius: 22px;
  padding: 26px 28px;
  margin-bottom: 17px;
  box-shadow: 0 16px 38px rgba(15,23,42,.16);
  position: relative;
  overflow: hidden;
}

.clear-hero h2 {
  color: #fff;
  font-weight: 800;
  letter-spacing: -.5px;
  margin: 0 0 5px;
}

.clear-hero p {
  color: rgba(255,255,255,.78);
  margin: 0;
}

.admin-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 13px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.10);
  border-radius: 12px;
  font-size: .8rem;
  font-weight: 800;
}

.clear-card-head {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg,#fff,#f8fafc);
}

.clear-card-title {
  font-weight: 800;
  font-size: 1rem;
}

.clear-card-sub {
  color: var(--muted);
  font-size: .82rem;
  margin-top: 3px;
}

.warning-box {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #9a3412;
  border-radius: 14px;
  padding: 13px 15px;
  font-size: .84rem;
}

.table-wrap {
  overflow: auto;
}

.clear-table th {
  background: #0f172a!important;
  color: #fff!important;
  border-color: #334155!important;
  padding: 12px 10px;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .35px;
}

.clear-table td {
  padding: 11px 10px;
  border-color: #e2e8f0;
  vertical-align: middle;
}

.row-count {
  display: inline-block;
  min-width: 64px;
  text-align: center;
  padding: 6px 9px;
  border-radius: 9px;
  background: #f1f5f9;
  font-weight: 800;
  color: #334155;
}

.scope-badge {
  padding: 5px 8px;
  border-radius: 8px;
  background: #ecfdf5;
  color: #166534;
  font-size: .72rem;
  font-weight: 800;
}

.no-scope {
  padding: 5px 8px;
  border-radius: 8px;
  background: #fef2f2;
  color: #991b1b;
  font-size: .72rem;
  font-weight: 800;
}

.check {
  width: 19px;
  height: 19px;
  cursor: pointer;
}

.hard-reset-card {
  border: 1px solid #fecaca!important;
}

.hard-reset-warning {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  border-radius: 13px;
  padding: 13px 15px;
  font-size: .84rem;
}

.btn-danger {
  background: #dc2626;
  border-color: #dc2626;
}

.btn-danger:hover {
  background: #b91c1c;
  border-color: #b91c1c;
}

.closing-hero {
  background: linear-gradient(135deg,#0f172a 0%,#172554 52%,#2563eb 100%);
  color: #fff;
  border-radius: 22px;
  padding: 25px 28px;
  margin-bottom: 18px;
  box-shadow: 0 16px 38px rgba(15,23,42,.16);
  position: relative;
  overflow: hidden;
}

.closing-icon,
.sales-hero-icon {
  width: 50px;
  height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  background: rgba(255,255,255,.12);
  font-size: 25px;
}

.day-status {
  display: inline-flex;
  align-items: center;
  padding: 7px 13px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 800;
}

.closing-date-card {
  padding: 17px 20px;
}

.closing-date-card .form-label {
  font-size: .84rem;
  font-weight: 700;
  color: #334155;
}

.closing-alert {
  border: 0!important;
  border-radius: 14px!important;
  box-shadow: 0 5px 16px rgba(15,23,42,.04);
}

.closing-summary-grid {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 14px;
  margin: 18px 0;
}

.closing-summary-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 18px;
  min-height: 100px;
  box-shadow: 0 7px 22px rgba(15,23,42,.045);
}

.closing-summary-label {
  color: var(--muted);
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .55px;
  font-weight: 700;
}

.closing-summary-value {
  margin-top: 5px;
  font-size: 1.4rem;
  font-weight: 800;
  color: #0f172a;
  font-variant-numeric: tabular-nums;
}

.closing-summary-item:nth-child(1) {
  border-left: 4px solid #2563eb;
}

.closing-summary-item:nth-child(2),
.closing-summary-item:nth-child(9) {
  border-left: 4px solid #16a34a;
}

.closing-summary-item:nth-child(3) {
  border-left: 4px solid #f59e0b;
}

.closing-summary-item:nth-child(4) {
  border-left: 4px solid #7c3aed;
}

.closing-summary-item:nth-child(5) {
  border-left: 4px solid #db2777;
}

.closing-summary-item:nth-child(7),
.closing-summary-item:nth-child(11) {
  border-left: 4px solid #0891b2;
}

.closing-summary-item:nth-child(8) {
  border-left: 4px solid #dc2626;
}

.closing-summary-item:nth-child(10) {
  border-left: 4px solid #0f766e;
}

.closing-section-title {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  font-weight: 800;
  background: #fff;
}

.closing-check-body {
  padding: 16px 20px;
}

.closing-check-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.closing-check-list {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

.closing-check-list .list-group-item {
  border-color: #e2e8f0;
  padding: 13px 15px;
  background: #fff;
}

.closing-action {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.closing-action .btn-danger {
  min-height: 46px;
  border-radius: 10px;
  padding: 0 24px;
  font-weight: 800;
}

.page-hero h1,.page-hero h2,.page-hero h3,
.stock-hero h1,.stock-hero h2,.stock-hero h3,
.expenditure-hero h1,.expenditure-hero h2,.expenditure-hero h3,
.stock-hero h1,.stock-hero h2,.stock-hero h3 {
  font-weight: 800;
  letter-spacing: -.5px;
  margin-bottom: 4px;
}


.form-label,label {
  color: var(--ink2);
  font-size: .84rem;
  font-weight: 700;
}

.btn-outline-primary {
  color: #2563eb;
  border-color: #93c5fd;
}

.table tbody td {
  border-color: #e2e8f0;
  padding: 9px 10px;
  vertical-align: middle;
}

.alert-success {
  border-color: #bbf7d0;
}

.alert-danger {
  border-color: #fecaca;
}

.alert-warning {
  border-color: #fde68a;
}

.alert-info {
  border-color: #bae6fd;
}

h1,h2,h3,h4,h5,
h5 {
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -.2px;
}

.modal-header .btn-close {
  filter: invert(1);
}

.pagination .page-link {
  color: #2563eb;
  border-color: #dbe3ee;
}

.cash-hero .sub {
  color: rgba(255,255,255,.78);
  max-width: 700px;
}

.cash-date-badge {
  min-width: 170px;
  text-align: center;
  padding: 11px 16px;
  border-radius: 14px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.18);
  font-weight: 800;
  backdrop-filter: blur(6px);
}

.cash-card-header {
  padding: 16px 18px;
  background: linear-gradient(180deg,#fff,#f8fafc);
  border-bottom: 1px solid #dbe3ee;
}

.cash-card-title {
  font-size: 1rem;
  font-weight: 800;
  color: #0f172a;
}

.cash-card-sub {
  font-size: .83rem;
  color: #64748b;
  margin-top: 3px;
}

.cash-card .p-3 {
  padding: 18px!important;
}

.cash-stats {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.cash-stat {
  position: relative;
  background: #fff;
  border: 1px solid #dbe3ee;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 5px 16px rgba(15,23,42,.045);
  overflow: hidden;
}

.cash-stat:before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  background: #2563eb;
}

.cash-stat .label {
  font-size: .76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .35px;
  color: #64748b;
  margin-bottom: 7px;
}

.cash-stat .value {
  font-size: 1.15rem;
  font-weight: 850;
  color: #0f172a;
  white-space: nowrap;
}

.cash-stat.positive:before {
  background: #16a34a;
}

.cash-stat.negative:before {
  background: #dc2626;
}

.cash-stat.highlight {
  background: linear-gradient(135deg,#eff6ff,#fff);
  border-color: #bfdbfe;
}

.cash-stat.highlight:before {
  background: #0f172a;
}

.expense-amount-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.expense-amount-wrap .expense-input {
  flex: 1;
  min-width: 0;
}

.add-expense-btn,.remove-expense-btn {
  width: 42px;
  height: 42px;
  min-width: 42px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px!important;
  font-size: 1.35rem;
  line-height: 1;
}

.add-expense-btn span {
  margin-top: -2px;
}

.remove-expense-btn {
  font-size: 1.15rem;
}

.expense-row td,
.saved-table td,.saved-table th,
.table td {
  vertical-align: middle;
}

.entry-table tbody tr {
  transition: .15s ease;
}

.entry-table tbody tr:hover {
  background: #f8fbff!important;
}

.transaction-box {
  height: 100%;
  border: 1px solid #dbe3ee;
  border-radius: 15px;
  padding: 16px;
  background: #fbfdff;
}

.transaction-box h6 {
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 14px;
  padding-bottom: 9px;
  border-bottom: 1px solid #e2e8f0;
}

.transaction-box .form-label {
  margin-bottom: 6px;
}

.party-wrap,
.no-print {
  position: relative;
}

.summary-strip {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 14px;
  padding: 14px 16px;
  margin-top: 14px;
}

.saved-table .btn {
  white-space: nowrap;
}

.alert-light.border {
  background: #f8fafc;
  border-color: #dbe3ee!important;
  border-radius: 14px;
  padding: 13px 16px;
}

.category-page {
  max-width: 1250px;
  margin: 22px auto 100px;
  padding: 0 14px;
}

.card-heading {
  padding: 17px 20px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.card-heading-sub {
  font-size: .84rem;
  color: var(--muted);
}

.category-form .form-label {
  color: #334155;
  font-size: .88rem;
  font-weight: 700;
}

.category-form .form-control {
  min-height: 45px;
  border-color: #cbd5e1;
  border-radius: 10px;
}

.category-form .btn {
  min-height: 45px;
  border-radius: 10px;
  font-weight: 700;
}

.btn-primary:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 14px;
  margin-bottom: 18px;
}

.stat-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: 0 7px 22px rgba(15,23,42,.045);
}

.category-table th {
  font-weight: 700;
  color: #fff;
  background: #0f172a!important;
  font-size: 12px;
  letter-spacing: .65px;
  text-transform: uppercase;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .3px;
}

.action-btn {
  border-radius: 9px;
  font-weight: 700;
  padding: 6px 11px;
}

.stock-date-badge .small,
.exp-month-badge .small {
  font-size: .68rem;
  letter-spacing: .7px;
  font-weight: 800;
}

.wrap> .d-flex:not(.stock-hero) {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: 0 5px 16px rgba(15,23,42,.045);
  margin-bottom: 14px!important;
}

.search-wrap {
  position: relative;
  overflow: visible!important;
}

#masterResults {
  position: absolute!important;
  top: calc(100% + 2px);
  left: 0;
  width: 100%;
  min-width: 420px;
  max-height: 300px;
  overflow-y: auto;
  overflow-x: hidden;
  display: none;
  background: #fff;
  border: 1px solid #ced4da;
  border-radius: 0 0 10px 10px;
  z-index: 99999!important;
  box-shadow: 0 12px 28px rgba(15,23,42,.18);
}

#masterResults .list-group-item {
  white-space: normal;
  padding: 10px 14px;
  cursor: pointer;
  border-color: #edf2f7;
}

.card,.table-responsive,.purchase-add-table,.purchase-add-table tbody,
.purchase-add-table tr,.purchase-add-table td {
  overflow: visible!important;
}

.table-light {
  --bs-table-bg: #0f172a;
  --bs-table-color: #fff;
}

.existing-row {
  background: #f8f9fa!important;
}

.table-warning,.table-warning>td,
.exp-summary-page tfoot th {
  background: #fff7d6!important;
  color: #713f12!important;
  border-color: #fde68a!important;
}

.exp-hero h1 {
  font-weight: 800;
  letter-spacing: -.5px;
  margin: 0 0 4px;
  font-size: 1.6rem;
}

.exp-hero .sub {
  color: rgba(255,255,255,.76);
}

.exp-month-badge {
  min-width: 190px;
  text-align: center;
  padding: 11px 16px;
  border-radius: 14px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.18);
  font-weight: 800;
  backdrop-filter: blur(6px);
}

.exp-summary-page .filter-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: 0 5px 16px rgba(15,23,42,.045);
  margin-bottom: 14px;
}

.exp-summary-page .filter-panel .btn,
.lowstock-toolbar .form-control {
  min-height: 42px;
}

.exp-summary-page .metric-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 7px 22px rgba(15,23,42,.055);
  padding: 17px;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.exp-summary-page .metric-card:before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: #2563eb;
}

.exp-summary-page .metric-label {
  color: var(--muted);
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .45px;
  font-weight: 800;
}

.exp-summary-page .metric-value {
  margin-top: 7px;
  color: var(--ink);
  font-size: 1.15rem;
  font-weight: 800;
}

.exp-summary-page .metric-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #eff6ff;
  color: #2563eb;
  display: grid;
  place-items: center;
  font-size: .75rem;
  font-weight: 800;
}

.exp-summary-page .section-title {
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 800;
  margin: 0;
}

.exp-summary-page .section-note {
  color: var(--muted);
  font-size: .8rem;
  margin-top: 3px;
}

.exp-summary-page .summary-card-head,.exp-summary-page .detail-card-head {
  padding: 15px 17px;
  border-bottom: 1px solid #edf2f7;
}

.exp-summary-page .table-responsive {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.exp-summary-page .table thead th {
  background: #0f172a!important;
  color: #fff!important;
  border-color: #334155!important;
  padding: 11px 10px;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .35px;
}

.exp-summary-page .table tbody td {
  border-color: #e2e8f0;
  padding: 10px;
  vertical-align: middle;
}

.exp-summary-page .category-link {
  color: #1d4ed8;
  font-weight: 800;
  text-decoration: none;
}

.exp-summary-page .category-link:hover,
.back-link:hover {
  text-decoration: underline;
}

.exp-summary-page .entry-badge {
  display: inline-flex;
  min-width: 30px;
  justify-content: center;
  padding: 4px 8px;
  border-radius: 8px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 800;
}

.exp-summary-page .close-details,
.date-filter .btn {
  border-radius: 10px;
  font-weight: 700;
}

.login-shell {
  width: 100%;
  max-width: 430px;
  margin: auto;
}

.brand {
  text-align: center;
  margin-bottom: 16px;
}

.brand-icon {
  width: 62px;
  height: 62px;
  margin: 0 auto 12px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 27px;
  font-weight: 900;
  background: linear-gradient(135deg,#0f172a,#172554 52%,#2563eb);
  box-shadow: 0 12px 28px rgba(15,23,42,.18);
}

.brand h1 {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 850;
  letter-spacing: -.5px;
}

.brand p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: .82rem;
}

.login-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 25px;
  box-shadow: 0 18px 45px rgba(15,23,42,.10);
}

.login-title {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 800;
}

.login-sub {
  margin-top: 4px;
  color: var(--muted);
  font-size: .8rem;
}

.form-control {
  min-height: 43px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-weight: 600;
  border-color: #cbd5e1;
}

.login-btn {
  min-height: 46px;
  border: 0;
  border-radius: 11px;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(135deg,#2563eb,#1d4ed8);
  box-shadow: 0 8px 18px rgba(37,99,235,.22);
  transition: .16s ease;
}

.login-btn:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 11px 22px rgba(37,99,235,.28);
}

.security-note {
  margin-top: 17px;
  padding-top: 15px;
  border-top: 1px solid #eef2f7;
  text-align: center;
  color: #94a3b8;
  font-size: .72rem;
}

.back-link {
  display: block;
  margin-top: 15px;
  text-align: center;
  color: #2563eb;
  font-size: .82rem;
  font-weight: 700;
  text-decoration: none;
}

.lowstock-hero .sub {
  margin-top: 4px;
  opacity: .82;
  font-size: 13px;
}

.lowstock-note {
  padding: 10px 16px;
  background: #f8fafc;
  border-bottom: 1px solid var(--line);
  color: #64748b;
  font-size: 12px;
}

.lowstock-note strong {
  color: #334155;
}

.lowstock-table-wrap {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 7px 22px rgba(15,23,42,.055);
  overflow: auto;
}

.lowstock-table {
  width: 100%;
  min-width: 1100px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
  margin: 0;
}

.lowstock-table tbody td {
  border-color: #e2e8f0;
  padding: 9px;
  vertical-align: middle;
  text-align: center;
}

.lowstock-table .brand-size {
  font-size: 11px;
  color: #64748b;
  margin-left: 3px;
}

.qty,.avg-sale,.order-qty {
  text-align: right!important;
  white-space: nowrap;
  font-weight: 700;
}

.current-stock {
  font-weight: 900;
  color: #1e293b;
}

.avg-sale {
  color: #475569;
}

.case-pack {
  color: #64748b;
  font-size: 11px;
  white-space: nowrap;
}

.order-needed {
  color: #b91c1c!important;
  font-weight: 900;
}

.order-ok {
  color: #198754!important;
  font-weight: 800;
}

.order-main {
  display: block;
}

.order-sub {
  display: block;
  margin-top: 2px;
  font-size: 10px;
  color: #64748b;
  font-weight: 600;
}

.order-badge {
  display: inline-block;
  margin-left: 5px;
  padding: 2px 6px;
  border-radius: 999px;
  background: #fff1f2;
  color: #be123c;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .3px;
}

.min-input {
  width: 105px;
  min-height: 38px;
  text-align: right;
  border: 2px solid #bfdbfe;
  border-radius: 9px;
  font-weight: 700;
}

.status-low {
  color: #b45309;
}

.status-ok {
  color: #198754;
}

.lowstock-actions {
  padding: 14px 18px;
  background: #f8fafc;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: flex-end;
}

.lowstock-actions .btn {
  min-width: 190px;
}

.date-filter {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.17);
  padding: 13px;
  border-radius: 16px;
  backdrop-filter: blur(8px);
}

.date-filter .form-control {
  border: 0;
  border-radius: 10px;
  min-height: 42px;
}

.metric-card {
  height: 100%;
  position: relative;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 7px 20px rgba(15,23,42,.055);
  transition: .2s;
}

.metric-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(15,23,42,.1);
  border-color: #bfdbfe;
}

.metric-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: #eff6ff;
  display: grid;
  place-items: center;
  font-size: 21px;
  margin-bottom: 14px;
}

.metric-value {
  font-size: 1.22rem;
  font-weight: 800;
  color: #172033;
  margin-top: 7px;
  white-space: nowrap;
}

.summary-card,.action-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 19px;
  box-shadow: 0 7px 22px rgba(15,23,42,.06);
  overflow: hidden;
  height: 100%;
}

.summary-card .card-header,.action-card .card-header {
  background: #fff;
  border-bottom: 1px solid #edf2f7;
  padding: 18px 20px;
  font-weight: 800;
}

.summary-card .card-body,.action-card .card-body,
.sales-register-filter {
  padding: 18px 20px;
}

.summary-table th {
  font-weight: 600;
  color: #475569;
}

.summary-table td {
  font-weight: 800;
  text-align: right;
}

.summary-table>tbody>tr>*>* {
  border: 0;
}

.summary-row {
  border-bottom: 1px solid #edf2f7;
}

.summary-row:last-child,
.pl-row:last-child,
.brand-item:last-child {
  border-bottom: 0;
}

.action-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-decoration: none;
  color: #1e293b;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 13px;
  margin-bottom: 10px;
  transition: .18s;
}

.action-link:hover {
  background: #eff6ff;
  color: #1d4ed8;
  border-color: #bfdbfe;
  transform: translateX(2px);
}

.action-left {
  display: flex;
  align-items: center;
  gap: 11px;
}

.action-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: #f1f5f9;
  display: grid;
  place-items: center;
}

.opening-page {
  max-width: 1500px;
  margin: 20px auto 70px;
  padding: 0 14px;
}

.opening-hero {
  background: linear-gradient(135deg,#0f172a 0%,#172554 52%,#2563eb 100%);
  color: #fff;
  border-radius: 20px;
  padding: 24px 26px;
  margin-bottom: 16px;
  box-shadow: 0 14px 34px rgba(15,23,42,.16);
  position: relative;
  overflow: hidden;
}

.opening-hero:after {
  content: "";
  position: absolute;
  width: 230px;
  height: 230px;
  right: -80px;
  top: -110px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%;
  box-shadow: 0 0 0 35px rgba(255,255,255,.04),0 0 0 70px rgba(255,255,255,.025);
}

.opening-title {
  font-size: 25px;
  font-weight: 800;
  margin: 0;
  position: relative;
  z-index: 1;
}

.opening-sub {
  margin-top: 5px;
  color: rgba(255,255,255,.75);
  font-size: 13px;
  position: relative;
  z-index: 1;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  position: relative;
  z-index: 2;
}

.opening-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 5px 20px rgba(15,23,42,.06);
  overflow: hidden;
  margin-bottom: 16px;
}

.opening-card-head {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.opening-card-head h5 {
  margin: 0;
  font-weight: 800;
  color: var(--ink);
}

.opening-card-head small {
  color: var(--muted);
}

.date-box {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 15px;
}

.date-box .form-label {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--muted);
}

.opening-info {
  border-radius: 13px;
  padding: 13px 15px;
  margin: 15px 18px 0;
  font-size: 13px;
}

.opening-info.info {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
}

.opening-info.warn {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
}

.opening-info.danger {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.opening-table-wrap {
  padding: 0 18px 18px;
}

.opening-table {
  margin: 0;
  border: 1px solid var(--line);
}

.opening-table thead th {
  background: #0f172a;
  color: #fff;
  border-color: #26344d;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .035em;
  padding: 11px 12px;
  white-space: nowrap;
}

.opening-table tbody td {
  padding: 8px 12px;
  vertical-align: middle;
  border-color: var(--line);
  font-size: 13px;
}

.opening-table .qty-input {
  max-width: 150px;
  font-weight: 700;
  text-align: right;
}

.category-badge {
  display: inline-block;
  background: #eef2ff;
  color: #3730a3;
  border-radius: 7px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 800;
}

.size-text {
  font-weight: 700;
  color: #334155;
}

.locked-input {
  background: #f1f5f9!important;
  cursor: not-allowed;
}

.pl-page {
  max-width: 1450px;
  margin: 0 auto;
  padding: 0 16px 45px;
}

.pl-header {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg,#0b1736,#162b63 55%,#2563eb);
  color: #fff;
  border-radius: 0 0 22px 22px;
  padding: 27px 30px;
  margin: 0 0 30px;
  box-shadow: 0 10px 25px rgba(15,23,42,.16);
}

.pl-header:after {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  right: -100px;
  top: -175px;
  background: rgba(255,255,255,.06);
}

.pl-title-wrap {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 14px;
}

.pl-icon {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  background: rgba(255,255,255,.13);
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 800;
}

.pl-title {
  margin: 0;
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -.4px;
}

.pl-subtitle {
  margin: 5px 0 0;
  opacity: .78;
  font-size: .86rem;
}

.pl-period {
  display: inline-block;
  margin-top: 10px;
  padding: 6px 11px;
  border-radius: 8px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.16);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .2px;
}

.pl-filter {
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
  background: #fff;
  border: 1px solid var(--pl-border);
  border-radius: 15px;
  padding: 18px;
  box-shadow: 0 4px 15px rgba(15,23,42,.05);
  margin-bottom: 22px;
}

.pl-filter label {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .5px;
  font-weight: 800;
  color: var(--pl-muted);
}

.pl-filter .form-control {
  min-height: 42px;
  border-radius: 9px;
}

.pl-filter .btn {
  min-height: 42px;
  border-radius: 9px;
  font-weight: 700;
}

.pl-info {
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
  border: 0;
  border-left: 4px solid #2563eb;
  background: #eff6ff;
  color: #1e3a8a;
  border-radius: 10px;
  padding: 13px 16px;
  margin-bottom: 22px;
}

.pl-section {
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
  background: #fff;
  border: 1px solid var(--pl-border);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(15,23,42,.05);
  margin-bottom: 18px;
}

.pl-section-head {
  padding: 14px 16px;
  border-bottom: 1px solid #edf2f7;
}

.pl-section-title {
  margin: 0;
  color: var(--pl-ink);
  font-size: 1.05rem;
  font-weight: 800;
}

.pl-section-note {
  margin-top: 3px;
  color: var(--pl-muted);
  font-size: .82rem;
}

.pl-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid #edf2f7;
}

.pl-label {
  font-weight: 650;
  color: #334155;
}

.pl-value {
  font-weight: 800;
  color: #172033;
  text-align: right;
}

.pl-highlight {
  background: #fffbeb;
}

.pl-highlight .pl-value {
  color: #92400e;
}

.pl-profit .pl-value {
  color: #1d4ed8;
  font-size: 1.12rem;
}

.pl-net {
  background: #ecfdf5;
  border-top: 2px solid #bbf7d0;
}

.pl-net .pl-value {
  font-size: 1.2rem;
}

.sales-register-card-title {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  font-weight: 800;
  color: #0f172a;
}

.sales-register-dual {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  gap: 16px;
  padding: 16px;
}

.sales-register-panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

.sales-register-table,
.stock-table {
  margin: 0;
  width: 100%;
}

.sales-register-table thead th {
  background: #0f172a;
  color: #fff;
  font-weight: 700;
  white-space: nowrap;
  font-size: 11px;
  letter-spacing: .6px;
  text-transform: uppercase;
  padding: 11px 13px;
}

.sales-register-table tbody td,.sales-register-table tfoot td {
  vertical-align: middle;
  border-color: #e2e8f0;
  padding: 11px 13px;
}

.sales-register-table .money {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.sales-register-table tfoot {
  background: #eef4ff;
}

.sales-register-table tfoot td {
  border-top: 2px solid #93c5fd;
}

.sales-register-empty {
  padding: 40px!important;
  text-align: center;
  color: var(--muted);
}

.sales-register-current-badge {
  font-size: 10px;
  margin-left: 8px;
  padding: 6px 9px;
  border-radius: 999px;
  background: #dcfce7!important;
  color: #166534!important;
}

.grand-card .sales-register-card-title {
  background: linear-gradient(90deg,#eff6ff,#fff);
}

.grand-card .sales-register-table tbody td {
  background: #f8fbff;
  font-size: 14px;
}

.shop-container {
  max-width: 1350px;
  margin: 28px auto;
  padding: 0 16px;
}

.hero h2 {
  font-weight: 800;
  margin: 0;
}

.hero p {
  opacity: .78;
  margin: 6px 0 0;
}

.master-card {
  border: 0;
  border-radius: 18px;
  box-shadow: 0 8px 25px rgba(15,23,42,.07);
  overflow: hidden;
}

.master-card .card-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 18px 22px;
  font-weight: 700;
}

.brand-list {
  max-height: 520px;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 6px;
  background: #f8fafc;
}

.brand-item {
  border-bottom: 1px solid #edf1f5;
  padding: 9px 12px;
  background: #fff;
  transition: .15s;
}

.brand-item label {
  width: 100%;
  cursor: pointer;
  margin: 0;
}

.form-switch .form-check-input {
  width: 3em;
  height: 1.5em;
  cursor: pointer;
}

.wholesale-box {
  background: linear-gradient(135deg,#eff6ff,#f8fafc);
  border: 1px solid #bfdbfe;
  border-radius: 14px;
  padding: 16px 18px;
}

.stock-card .card-head {
  padding: 14px 18px;
  border-bottom: 1px solid var(--sv-line);
  background: #f8fafc;
  font-weight: 800;
}

.stock-filter {
  padding: 15px 18px;
}

.stock-filter label {
  font-size: .78rem;
  font-weight: 800;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: .25px;
}

.stock-table thead th {
  background: #0f172a;
  color: #fff;
  border-color: #1e293b;
  white-space: nowrap;
  padding: 12px 11px;
  font-size: .78rem;
  letter-spacing: .2px;
}

.stock-table td {
  vertical-align: middle;
  padding: 9px 11px;
  border-color: #e2e8f0;
}

.brand-cell {
  font-weight: 800;
  color: #1e293b;
}

.brand-cell small {
  font-weight: 600;
  color: #64748b;
}

.qty-input {
  min-width: 105px;
  text-align: right;
  font-weight: 700;
}

.system-qty {
  background: #f1f5f9!important;
  color: #475569;
}

.diff {
  font-weight: 800;
  text-align: right;
  white-space: nowrap;
}

.diff.positive {
  color: #15803d;
}

.diff.negative {
  color: #dc2626;
}

.diff.zero {
  color: #64748b;
}

.stock-actions {
  padding: 15px 18px;
  border-top: 1px solid var(--sv-line);
  background: #f8fafc;
  display: flex;
  align-items: center;
  gap: 12px;
}

.history-note {
  padding: 12px 18px;
  color: #64748b;
  font-size: .78rem;
  border-top: 1px solid #e2e8f0;
}

.outstanding {
  background: #fff3cd;
  border: 1px solid #ffe69c;
  border-radius: 12px;
  padding: 14px 20px;
  font-weight: 700;
  font-size: 18px;
}

@keyframes popupIn {
from {
  transform: scale(.94);
  opacity: 0;
}

to {
  transform: scale(1);
  opacity: 1;
}
}

@media (max-width:576px) {
.daily-stock-page {
  margin: 10px auto;
  padding: 0 6px 18px;
}

.stock-hero {
  padding: 16px;
}

.stock-date-badge {
  margin-top: 12px;
  min-width: 125px;
}
}

@media (max-width:576px) {
.page,.wrap {
  margin: 10px 6px;
  padding: 12px;
  border-radius: 10px;
}

.navbar-brand {
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
}

@media (max-width:576px) {
.erp-home {
  padding: 16px 9px 30px;
}

.home-hero {
  padding: 28px 22px;
  border-radius: 20px;
}

.home-hero h1 {
  font-size: 1.8rem;
}

.section-bar {
  align-items: flex-start;
  flex-direction: column;
  gap: 8px;
}

.shop-card {
  border-radius: 17px;
}
}

@media (max-width:576px) {
.erp-page {
  padding: 14px 7px 30px;
}

.erp-hero {
  padding: 18px;
}

.erp-hero .btn {
  width: 100%;
}
}

@media (max-width:900px) {
.bank-page {
  margin: 12px auto 90px;
  padding: 0 8px;
}

.bank-hero {
  border-radius: 17px;
  padding: 20px 17px;
}

.bank-card {
  border-radius: 16px;
}

.bank-table th,.bank-table td {
  padding: 9px 8px;
  font-size: 12px;
}
}

@media print {
body {
  background: #fff!important;
  color: #000!important;
}

.bank-hero,.bank-filter,.no-print,.bank-stat-wrap {
  display: none!important;
}

.bank-page {
  max-width: none!important;
  margin: 0!important;
  padding: 0!important;
}

.bank-card {
  border: 0!important;
  box-shadow: none!important;
  border-radius: 0!important;
}

.bank-table {
  width: 100%!important;
  font-size: 8.5pt!important;
}

.bank-table th,.bank-table td {
  border: 1px solid #777!important;
  padding: 5px!important;
}

@page {
size:A4 landscape;
}
}

@media (max-width:576px) {
.management-dashboard {
  padding: 16px 9px 30px;
}

.mgmt-hero {
  padding: 24px 20px;
  border-radius: 20px;
}

.mgmt-hero h2 {
  font-size: 1.7rem;
}

.brand-toolbar,
.bm-actions {
  padding: 13px;
}

.bm-actions .btn {
  width: 100%;
}
}

@media (max-width:767.98px) {
.management-dashboard {
  padding: 16px 9px 30px;
}

.mgmt-hero {
  padding: 24px 20px;
  border-radius: 20px;
}

.mgmt-hero h2 {
  font-size: 1.7rem;
}

.register-filter .card-body {
  padding: 14px;
}

.summary-value {
  font-size: 18px;
}

.brand-info-name {
  font-size: 17px;
}

.statement-header {
  padding: 13px;
}
}

@media (max-width:768px) {
.cash-page {
  margin: 12px auto 90px;
  padding: 0 8px;
}

.cash-hero {
  border-radius: 17px;
  padding: 20px 17px;
}

.cash-card {
  border-radius: 16px;
}

.cash-filter {
  padding: 14px;
}

.cash-table th,.cash-table td {
  padding: 10px 9px;
  font-size: 13px;
}

.row-closing th,.row-closing td {
  font-size: 15px;
}
}

@media print {
body {
  background: #fff!important;
  color: #000!important;
}

.cash-hero,.cash-filter {
  display: none!important;
}

.cash-page {
  max-width: none!important;
  margin: 0!important;
  padding: 0!important;
}

.cash-card {
  border: 0!important;
  box-shadow: none!important;
  border-radius: 0!important;
}

.cash-table {
  width: 100%!important;
  font-size: 10pt!important;
}

.cash-table th,.cash-table td {
  border: 1px solid #777!important;
  padding: 6px!important;
}

@page {
size:A4 portrait;
}
}

@media (max-width:992px) {
.stock-stats {
  grid-template-columns: repeat(2,minmax(0,1fr));
}
}

@media (max-width:576px) {
.stock-stats {
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

.stat-box {
  min-height: 92px;
  padding: 15px 16px;
  border-radius: 15px;
}

.stat-value {
  font-size: 1.55rem;
}
}

@media (max-width:768px) {
.daily-stock-page {
  margin: 12px auto 90px;
  padding: 0 8px;
}

.stock-hero,.page-header,.hero {
  border-radius: 17px;
  padding: 20px 17px;
}

.toolbar,.top-actions {
  border-radius: 13px;
}

.reg {
  font-size: 12px;
}

.reg th,.reg td {
  padding: 7px 6px;
}

.close-input {
  width: 72px;
}

.save-bar {
  left: 8px;
  right: 8px;
  bottom: 8px;
}
}

@media print {
* {
  -webkit-print-color-adjust: exact!important;
  print-color-adjust: exact!important;
}

body {
  background: #fff!important;
  color: #000!important;
  font-size: 9px!important;
}

.navbar,.no-print,button,.btn,input,select,textarea,.toolbar,.top-actions,.save-bar,
   #brandFilter,.dropdown,.alert-dismissible,
.stock-hero,.page-header,.hero {
  display: none!important;
}

.daily-stock-page {
  max-width: none!important;
  margin: 0!important;
  padding: 0!important;
}

.table-responsive {
  border: 0!important;
  box-shadow: none!important;
  border-radius: 0!important;
  overflow: visible!important;
}

table.reg {
  font-size: 8px!important;
  width: 100%!important;
  page-break-inside: auto;
}

.reg th {
  background: #e5e7eb!important;
  color: #000!important;
  border: 1px solid #777!important;
  padding: 4px 3px!important;
}

.reg td {
  border: 1px solid #999!important;
  padding: 3px!important;
  background: #fff!important;
}

.reg tr {
  page-break-inside: avoid;
  page-break-after: auto;
}

.category-row td,.category-header {
  background: #ddd!important;
  color: #000!important;
}

.total-row td {
  background: #fff3b0!important;
}

.closing-value-row td {
  background: #f2f2f2!important;
}

.close-input {
  display: inline!important;
  border: 0!important;
  width: auto!important;
  min-height: 0!important;
  padding: 0!important;
  background: transparent!important;
  box-shadow: none!important;
  color: #000!important;
}

.print-total-sale {
  display: block!important;
  background: #fff!important;
  color: #000!important;
  border: 2px solid #000!important;
  border-radius: 0!important;
  margin: 8px 0 0!important;
  padding: 7px!important;
  font-size: 11px!important;
}

.stock-card,.card,.content-card {
  border: 0!important;
  box-shadow: none!important;
  border-radius: 0!important;
}

@page {
size:A4 landscape;
}
}

@media (max-width:1100px) {
.stats,.quick-grid {
  grid-template-columns: repeat(2,1fr);
}
}

@media (max-width:576px) {
.erp-dashboard {
  padding: 16px 9px 32px;
}

.dash-hero {
  padding: 24px 20px;
  border-radius: 20px;
}

.dash-hero h2 {
  font-size: 1.65rem;
}

.stats,.quick-grid {
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.stat {
  padding: 14px;
}

.stat .value {
  font-size: .98rem;
}

.section-head {
  align-items: flex-start;
}

.date-panel {
  width: 100%;
}
}

@media (max-width:700px) {
.data-clear-page {
  margin: 12px auto 70px;
  padding: 0 8px;
}

.clear-hero {
  border-radius: 17px;
  padding: 20px 17px;
}

.clear-card {
  border-radius: 15px;
}
}

@media (max-width:1100px) {
.closing-summary-grid {
  grid-template-columns: repeat(3,minmax(0,1fr));
}
}

@media (max-width:768px) {
.closing-page {
  margin: 12px auto 90px;
  padding: 0 8px;
}

.closing-hero {
  border-radius: 17px;
  padding: 20px 17px;
}

.closing-summary-grid {
  grid-template-columns: repeat(2,minmax(0,1fr));
}

.closing-check-grid {
  grid-template-columns: 1fr;
}
}

@media (max-width:480px) {
.closing-summary-grid {
  grid-template-columns: 1fr;
}
}

@media print {
body {
  background: #fff!important;
  color: #000!important;
}

.closing-hero,.closing-date-card,.no-print {
  display: none!important;
}

.closing-page {
  max-width: none!important;
  margin: 0!important;
  padding: 0!important;
}

.closing-summary-item,.closing-check-card {
  box-shadow: none!important;
  border-radius: 0!important;
}

@page {
size:A4 portrait;
}
}

@media (max-width:768px) {
.expenditure-page,.daily-stock-page,.wrap {
  margin: 12px auto 80px;
  padding: 0 8px;
}

.page-hero,.stock-hero,.expenditure-hero {
  border-radius: 17px;
  padding: 20px 17px;
}

.card,.form-card,.content-card {
  border-radius: 15px!important;
}

.card-body {
  padding: 14px;
}
}

@media (max-width:576px) {
.entry-table {
  min-width: 650px;
}
}

@media (max-width:1100px) {
.cash-stats {
  grid-template-columns: repeat(2,minmax(0,1fr));
}
}

@media (max-width:768px) {
.daily-cash-page {
  margin: 12px auto 80px;
  padding: 0 8px;
}

.cash-hero {
  border-radius: 17px;
  padding: 20px 17px;
}

.cash-date-badge {
  width: 100%;
  margin-top: 13px;
}

.cash-card {
  border-radius: 15px;
}

.cash-card-header {
  padding: 14px;
}

.transaction-card {
  padding: 12px;
}

.cash-stats {
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.cash-stat {
  padding: 13px;
}

.cash-stat .value {
  font-size: 1rem;
}

.cash-card .p-3 {
  padding: 14px!important;
}

.entry-table {
  min-width: 650px;
}

.saved-table {
  min-width: 800px;
}
}

@media (max-width:420px) {
.cash-stats {
  grid-template-columns: 1fr;
}

.cash-stat .value {
  font-size: 1.08rem;
}
}

@media print {
.daily-cash-page {
  max-width: none;
  margin: 0;
  padding: 0;
}

.cash-hero {
  background: #fff!important;
  color: #000!important;
  box-shadow: none;
  border: 1px solid #ddd;
}

.cash-hero h3 {
  color: #000!important;
}

.cash-hero .sub {
  color: #555!important;
}

.cash-date-badge {
  color: #000;
  border-color: #ddd;
}

.cash-card {
  box-shadow: none;
}

.no-print {
  display: none!important;
}
}

@media (max-width:768px) {
.category-page {
  margin: 12px auto 90px;
  padding: 0 8px;
}

.category-hero {
  border-radius: 17px;
  padding: 20px 17px;
}

.category-card {
  border-radius: 16px;
}

.stat-row {
  grid-template-columns: 1fr;
}

.category-table th,.category-table td {
  padding: 10px 9px;
  font-size: 13px;
}
}

@media print {
body {
  background: #fff!important;
  color: #000!important;
}

.category-hero,.no-print {
  display: none!important;
}

.category-page {
  max-width: none!important;
  margin: 0!important;
  padding: 0!important;
}

.category-card {
  border: 0!important;
  box-shadow: none!important;
  border-radius: 0!important;
}

.category-table th,.category-table td {
  border: 1px solid #777!important;
  padding: 6px!important;
}

@page {
size:A4 portrait;
}
}

@media (max-width:768px) {
.daily-stock-page {
  margin: 12px auto 80px;
  padding: 0 8px;
}

.stock-hero {
  border-radius: 17px;
  padding: 20px 17px;
}

.stock-date-badge {
  margin-top: 12px;
  width: 100%;
}

.wrap> .d-flex:not(.stock-hero) {
  border-radius: 13px;
  padding: 13px;
}

#masterResults {
  min-width: 280px;
}

.card {
  border-radius: 15px!important;
}
}

@media (max-width:768px) {
.exp-summary-page {
  margin: 12px auto 80px;
  padding: 0 8px;
}

.exp-hero {
  border-radius: 17px;
  padding: 20px 17px;
}

.exp-month-badge {
  margin-top: 12px;
  width: 100%;
}

.exp-summary-page .filter-panel {
  border-radius: 13px;
}
}

@media (max-width:480px) {
body {
  padding: 15px;
}

.login-card {
  padding: 20px;
  border-radius: 18px;
}
}

@media print {
* {
  -webkit-print-color-adjust: exact!important;
  print-color-adjust: exact!important;
}

body {
  background: #fff!important;
  color: #000!important;
  font-size: 9px!important;
}

.navbar,.no-print,button,.btn,input,select,textarea,.toolbar,.top-actions,.save-bar,
   #brandFilter,.dropdown,.alert-dismissible,
.stock-hero,.page-header,.hero {
  display: none!important;
}

.daily-stock-page {
  max-width: none!important;
  margin: 0!important;
  padding: 0!important;
}

.table-responsive {
  border: 0!important;
  box-shadow: none!important;
  border-radius: 0!important;
  overflow: visible!important;
}

table.reg {
  font-size: 8px!important;
  width: 100%!important;
  page-break-inside: auto;
}

.reg th {
  background: #e5e7eb!important;
  color: #000!important;
  border: 1px solid #777!important;
  padding: 4px 3px!important;
}

.reg td {
  border: 1px solid #999!important;
  padding: 3px!important;
  background: #fff!important;
}

.reg tr {
  page-break-inside: avoid;
  page-break-after: auto;
}

.category-row td,.category-header {
  background: #ddd!important;
  color: #000!important;
}

.total-row td {
  background: #fff3b0!important;
}

.closing-value-row td {
  background: #f2f2f2!important;
}

.close-input {
  display: inline!important;
  border: 0!important;
  width: auto!important;
  min-height: 0!important;
  padding: 0!important;
  background: transparent!important;
  box-shadow: none!important;
  color: #000!important;
}

.print-total-sale {
  display: block!important;
  background: #fff!important;
  color: #000!important;
  border: 2px solid #000!important;
  border-radius: 0!important;
  margin: 8px 0 0!important;
  padding: 7px!important;
  font-size: 11px!important;
}

.stock-card,.card,.content-card {
  border: 0!important;
  box-shadow: none!important;
  border-radius: 0!important;
}

@page {
size:A4 portrait;
}
}

@media (max-width:768px) {
.lowstock-page {
  margin: 12px auto 90px;
  padding: 0 8px;
}

.lowstock-hero {
  border-radius: 17px;
  padding: 20px 17px;
}

.lowstock-toolbar {
  border-radius: 13px;
}

.lowstock-actions {
  padding: 12px;
}

.lowstock-actions .btn {
  width: 100%;
}
}

@media print {
.lowstock-page {
  max-width: none!important;
  margin: 0!important;
  padding: 0!important;
}

.lowstock-hero,.lowstock-toolbar,.lowstock-note,.lowstock-actions {
  display: none!important;
}

.lowstock-table-wrap {
  border: 0!important;
  box-shadow: none!important;
  border-radius: 0!important;
  overflow: visible!important;
}

.lowstock-table {
  font-size: 8px!important;
  width: 100%!important;
  min-width: 0!important;
}

.lowstock-table th {
  background: #e5e7eb!important;
  color: #000!important;
  border: 1px solid #777!important;
}

.lowstock-table td {
  border: 1px solid #999!important;
}
}

@media (max-width:576px) {
.management-dashboard {
  padding: 16px 9px 30px;
}

.mgmt-hero {
  padding: 24px 20px;
  border-radius: 20px;
}

.mgmt-hero h2 {
  font-size: 1.7rem;
}

.date-filter,
.date-filter .col-auto,
.date-filter .form-control,.date-filter .btn {
  width: 100%;
}

.metric-value {
  font-size: 1.05rem;
}
}

@media (max-width:768px) {
.opening-page {
  padding: 0 8px;
  margin-top: 12px;
}

.opening-hero {
  padding: 19px;
}

.opening-title {
  font-size: 21px;
}

.opening-table-wrap {
  padding: 0 10px 12px;
}

.opening-info {
  margin-left: 10px;
  margin-right: 10px;
}

.opening-card-head {
  padding: 13px;
}

.opening-table tbody td,.opening-table thead th {
  padding: 8px;
}

.opening-table .qty-input {
  max-width: 110px;
}
}

@media (max-width:576px) {
.pl-page {
  padding: 0 9px 30px;
}

.pl-header {
  padding: 21px 18px;
  border-radius: 0 0 17px 17px;
}

.pl-title {
  font-size: 1.38rem;
}

.pl-period {
  font-size: .72rem;
}

.pl-row {
  padding: 11px 13px;
}

.pl-value {
  font-size: .95rem;
}
}

@media (max-width:991px) {
.sales-register-dual {
  grid-template-columns: 1fr;
}

.sales-register-wrap {
  margin: 12px auto 90px;
  padding: 0 8px;
}

.sales-hero {
  border-radius: 17px;
  padding: 20px 17px;
}

.sales-register-card {
  border-radius: 16px;
}

.sales-register-table th,.sales-register-table td {
  padding: 9px 8px;
  font-size: 12px;
}
}

@media print {
body {
  background: #fff!important;
  color: #000!important;
}

.sales-hero,.sales-register-filter,.no-print {
  display: none!important;
}

.sales-register-wrap {
  max-width: none!important;
  margin: 0!important;
  padding: 0!important;
}

.sales-register-card {
  border: 0!important;
  box-shadow: none!important;
  border-radius: 0!important;
}

.sales-register-table {
  font-size: 9pt!important;
}

.sales-register-table th,.sales-register-table td {
  border: 1px solid #777!important;
  padding: 5px!important;
}

@page {
size:A4 landscape;
}
}

@media (max-width:576px) {
.shop-container {
  margin: 14px auto;
  padding: 0 8px;
}

.hero {
  padding: 21px 18px;
  border-radius: 17px;
}

.master-card .card-body {
  padding: 16px;
}
}

@media (max-width:768px) {
.stock-wrap {
  padding: 0 8px;
  margin-top: 14px;
}

.stock-hero {
  padding: 18px;
}

.stock-date-badge {
  width: 100%;
  text-align: left;
  margin-top: 8px;
}

.stock-filter .d-flex,
.stock-actions {
  flex-wrap: wrap;
}

.stock-filter .btn,
.stock-actions .btn,
.stock-actions .me-auto {
  width: 100%;
}
}

@media (max-width:576px) {
.stock-wrap {
  padding: 0 6px 28px;
}

.stock-card {
  border-radius: 14px;
}

.stock-table {
  font-size: .82rem;
}

.stock-table th,.stock-table td {
  padding: 8px 7px;
}
}
