/* ============================================================
   Tahseeel Collect — redesign chrome (sidebar, topbar, shared components)
   Everything is scoped under .ds-shell so pages NOT yet redesigned
   (which share the same header.php includes) are unaffected.
   Visual source: Multivendor Redesign.dc.html (PortalSidebar collect
   variant + c2/c3 screen chrome) + ds tokens.
   ============================================================ */

.ds-shell {
  display: flex;
  align-items: stretch;
  min-height: 100vh;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-latin);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}
[dir="rtl"] .ds-shell { font-family: var(--font-arabic); }

/* ---------- sidebar ---------- */
.ds-sidebar {
  width: 248px;
  flex: none;
  background: var(--navy);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: sticky;
  top: 0;
  max-height: 100vh;
  z-index: 1030;
}
.ds-sidebar__brand {
  padding: 22px 20px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}
.ds-sidebar__brand img { height: 24px; display: block; }

.ds-sidebar__profile {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 6px 16px 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  flex: none;
  cursor: pointer;
  text-decoration: none;
}
.ds-sidebar__avatar {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex: none;
}
.ds-sidebar__avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.ds-sidebar__who { min-width: 0; }
.ds-sidebar__name {
  font-size: 14px;
  font-weight: 700;
  color: #FFFFFF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ds-sidebar__meta { font-size: 12px; color: rgba(255, 255, 255, 0.55); }

/* collapsed profile sub-menu (Profile / Settings / Logout) */
.ds-sidebar__usernav { padding: 0 16px 4px; }
.ds-sidebar__usernav .nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
}
.ds-sidebar__usernav .nav-link:hover { color: #FFFFFF; background: rgba(255, 255, 255, 0.06); }

.ds-sidebar__nav {
  flex: 1;
  padding: 2px 8px 8px;
  overflow-y: auto;
  scrollbar-width: thin;
}
.ds-sidebar__caption {
  padding: 14px 12px 5px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 600;
  margin: 0;
}
.ds-sidebar__nav ul { list-style: none; margin: 0; padding: 0; }
.ds-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 0 12px;
  margin: 2px 8px;
  border-radius: 12px;
  position: relative;
  font-size: 14px;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 500;
  text-decoration: none;
}
.ds-nav-link:hover { color: #FFFFFF; background: rgba(255, 255, 255, 0.05); }
.ds-nav-link.active {
  color: #FFFFFF;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.08);
}
.ds-nav-link.active::before {
  content: "";
  position: absolute;
  inset-inline-start: -8px;
  top: 11px;
  width: 3px;
  height: 18px;
  border-radius: 2px;
  background: var(--accent);
}
.ds-nav-link svg { flex: none; }
.ds-nav-link .ds-nav-label {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ds-nav-badge {
  font-size: 10px;
  font-weight: 700;
  background: var(--accent);
  color: #FFFFFF;
  border-radius: var(--radius-pill);
  padding: 2px 7px;
}
/* keep header.js role-gating classes working on the new links */
.ds-shell .opacity-50 { opacity: 0.5; }
.ds-shell .cursor-no-drop { cursor: no-drop; }

.ds-sidebar__bottom {
  flex: none;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 10px 16px 14px;
}
.ds-sidebar__bottom .ds-nav-link { margin: 0; }

/* ---------- content column ---------- */
.ds-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

/* ---------- topbar ---------- */
.ds-topbar {
  height: 64px;
  background: var(--surface);
  border-bottom: 1px solid var(--divider);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 28px;
  flex: none;
  position: sticky;
  top: 0;
  z-index: 1020;
}
.ds-topbar__title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: var(--ls-snug);
  margin-inline-end: auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ds-topbar__back {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-secondary);
  text-decoration: none;
}
.ds-topbar__back:hover { color: var(--accent); }
.ds-topbar__lang {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-secondary);
  cursor: pointer;
  background: none;
  border: 0;
  padding: 6px 10px;
  border-radius: 10px;
}
.ds-topbar__lang:hover { background: var(--navy-tint); color: var(--ink); }
.ds-topbar__iconbtn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  color: var(--ink-secondary);
  background: none;
  border: 0;
  cursor: pointer;
}
.ds-topbar__iconbtn:hover { background: var(--navy-tint); color: var(--ink); }
.ds-topbar__dot {
  position: absolute;
  top: 6px;
  inset-inline-end: 7px;
  width: 7px;
  height: 7px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  border: 1.5px solid var(--surface);
}
.ds-topbar__avatar {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-pill);
  background: var(--navy);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex: none;
  text-decoration: none;
}
.ds-topbar__avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.ds-whatsapp {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  background: #25d366;
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.ds-whatsapp:hover { background: #1fb659; color: #FFFFFF; }

/* ---------- page body ---------- */
.ds-body {
  padding: 24px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex: 1;
}

/* ---------- shared components ---------- */
.ds-card {
  background: var(--surface-card);
  border-radius: var(--radius-card);
  box-shadow: var(--card-shadow);
  border: 1px solid var(--card-border);
}
.ds-card--pad { padding: 20px 22px; }

.ds-hero {
  background: var(--navy);
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  padding: 26px 28px;
  color: #FFFFFF;
}
.ds-hero::before {
  content: "";
  position: absolute;
  top: -90px;
  inset-inline-end: -70px;
  width: 260px;
  height: 260px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.045);
}
.ds-hero::after {
  content: "";
  position: absolute;
  bottom: -110px;
  inset-inline-end: 120px;
  width: 230px;
  height: 230px;
  border-radius: var(--radius-pill);
  background: rgba(240, 83, 107, 0.14);
}
.ds-hero > * { position: relative; z-index: 1; }

.ds-statgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.ds-stat { padding: 18px 20px; }
.ds-stat__label {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-tertiary);
}
.ds-stat__value {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: var(--ls-snug);
  margin-top: 4px;
}
.ds-stat__value small { font-size: 13px; font-weight: 600; color: var(--ink-tertiary); }
.ds-stat__meta { font-size: 12.5px; color: var(--ink-secondary); margin-top: 2px; }
.ds-stat__meta.good { color: var(--success); font-weight: 600; }

.ds-chip {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
}
.ds-chip--success { background: var(--success-tint); color: var(--success); }
.ds-chip--warning { background: var(--warning-tint); color: var(--warning); }
.ds-chip--danger  { background: var(--accent-tint);  color: var(--accent); }
.ds-chip--muted   { background: var(--navy-tint);    color: var(--ink-secondary); }

.ds-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  border: 0;
  text-decoration: none;
  font-family: inherit;
}
.ds-btn--primary { background: var(--navy); color: #FFFFFF; }
.ds-btn--primary:hover { background: #354456; color: #FFFFFF; }
.ds-btn--accent { background: var(--accent); color: #FFFFFF; }
.ds-btn--accent:hover { background: #d9455f; color: #FFFFFF; }
.ds-btn--ghost {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--ink);
  font-weight: 600;
}
.ds-btn--ghost:hover { border-color: var(--ink-tertiary); color: var(--ink); }
.ds-btn--sm { height: 36px; padding: 0 14px; font-size: 13px; }
.ds-btn--outline-danger {
  background: transparent;
  border: 1.5px solid var(--accent);
  color: var(--accent);
}

/* pill filter buttons (table toolbars) */
.ds-pill {
  height: 34px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  color: var(--ink-secondary);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  background: var(--surface);
  font-family: inherit;
  text-decoration: none;
}
.ds-pill.active, .ds-pill:hover { border-color: var(--navy); }
.ds-pill.active { background: var(--navy); color: #FFFFFF; border-color: var(--navy); }

/* search input (rounded, grey) */
.ds-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--canvas);
  border-radius: var(--radius-pill);
  height: 38px;
  padding: 0 14px;
  color: var(--ink-tertiary);
  font-size: 13.5px;
  flex: 1;
  max-width: 320px;
}
.ds-search input {
  border: 0;
  background: transparent;
  outline: none;
  flex: 1;
  min-width: 0;
  font-size: 13.5px;
  color: var(--ink);
  font-family: inherit;
}
.ds-search input::placeholder { color: var(--ink-tertiary); }

/* fields */
.ds-field-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-secondary);
  margin-bottom: 6px;
  display: block;
}
.ds-input, .ds-select {
  width: 100%;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0 14px;
  font-size: 13.5px;
  color: var(--ink);
  background: var(--surface);
  font-family: inherit;
  outline: none;
}
.ds-input:focus, .ds-select:focus {
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 4px var(--focus-ring);
}
textarea.ds-input { height: auto; padding: 12px 14px; }

/* card-wrapped DataTables restyle (applies to existing DataTables markup) */
.ds-tablecard { overflow: hidden; }
.ds-tablecard .ds-tablebar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--divider);
  flex-wrap: wrap;
}
.ds-tablecard table.dataTable,
.ds-tablecard table {
  width: 100% !important;
  border-collapse: collapse !important;
  font-size: 13.5px !important;
}
.ds-tablecard table thead th {
  font-size: 12px !important;
  font-weight: 600 !important;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-tertiary) !important;
  padding: 10px 12px !important;
  border-bottom: 1px solid var(--divider) !important;
  background: var(--surface) !important;
  text-align: start !important;
}
.ds-tablecard table tbody td {
  padding: 13px 12px !important;
  border-bottom: 1px solid var(--divider) !important;
  color: var(--ink) !important;
  vertical-align: middle !important;
}
.ds-tablecard table tbody tr:hover td { background: rgba(42, 55, 71, 0.02) !important; }
.ds-tablecard .dataTables_wrapper { padding: 0 20px 14px; }
.ds-tablecard .dataTables_info { font-size: 13px; color: var(--ink-tertiary); padding-top: 14px !important; }
.ds-tablecard .dataTables_paginate { padding-top: 10px !important; }
.ds-tablecard .dataTables_paginate .paginate_button {
  border-radius: 10px !important;
  border: 1px solid var(--border) !important;
  color: var(--ink-secondary) !important;
  font-size: 13px;
  margin: 0 3px;
  padding: 5px 11px;
  background: var(--surface) !important;
}
.ds-tablecard .dataTables_paginate .paginate_button.current {
  background: var(--navy) !important;
  color: #FFFFFF !important;
  border-color: var(--navy) !important;
}
.ds-tablecard .dt-buttons .btn,
.ds-tablecard .dt-button {
  height: 38px;
  padding: 0 16px !important;
  border-radius: 12px !important;
  border: 1px solid var(--border) !important;
  background: var(--surface) !important;
  color: var(--ink) !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
}
.ds-tablecard .dataTables_length select {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 4px 8px;
  font-size: 13px;
  color: var(--ink-secondary);
}

/* icon tile for activity/ledger rows */
.ds-tile {
  width: var(--size-icon-tile);
  height: var(--size-icon-tile);
  border-radius: var(--radius-icon-tile);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.ds-tile--success { background: var(--success-tint); color: var(--success); }
.ds-tile--accent  { background: var(--accent-tint);  color: var(--accent); }
.ds-tile--muted   { background: var(--navy-tint);    color: var(--ink-secondary); }

/* list rows (recent activity / ledgers) */
.ds-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 22px;
  border-top: 1px solid var(--divider);
}
.ds-row__title { font-size: 14.5px; font-weight: 600; }
.ds-row__meta { font-size: 12.5px; color: var(--ink-tertiary); margin-top: 1px; }
.ds-row__amt { font-size: 14.5px; font-weight: 700; text-align: end; }
.ds-row__amt.in { color: var(--success); }

/* empty state */
.ds-empty {
  border: 1px dashed var(--border);
  border-radius: 14px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}
.ds-empty__title { font-size: 13.5px; font-weight: 600; color: var(--ink-secondary); }
.ds-empty__meta { font-size: 12.5px; color: var(--ink-tertiary); }

/* day-group header (ledgers) */
.ds-dayhead {
  padding: 8px 22px 2px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-tertiary);
}

/* ---------- responsive ---------- */
.ds-navtoggler { display: none; }
@media (max-width: 991px) {
  .ds-sidebar {
    position: fixed;
    inset-inline-start: 0;
    top: 0;
    bottom: 0;
    transform: translateX(-100%);
    transition: transform 0.25s var(--ease-sheet);
  }
  [dir="rtl"] .ds-sidebar { transform: translateX(100%); }
  .ds-shell.nav-open .ds-sidebar { transform: translateX(0); }
  .ds-shell.nav-open .ds-scrim {
    position: fixed;
    inset: 0;
    background: var(--scrim);
    z-index: 1025;
  }
  .ds-navtoggler {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 0;
    background: none;
    color: var(--ink-secondary);
    cursor: pointer;
  }
  .ds-statgrid { grid-template-columns: repeat(2, 1fr); }
  .ds-body { padding: 16px; }
  .ds-topbar { padding: 0 16px; }
}
@media (max-width: 575px) {
  .ds-statgrid { grid-template-columns: 1fr; }
}

/* ============================================================
   Bootstrap-form → design-system styling for redesigned form pages.
   Scoped to .ds-shell (page body) and .ds-modal (Bootstrap modals, which
   render outside .ds-shell) so untouched legacy pages keep their look.
   Lets the create-invoice pages adopt the new chrome while keeping their
   exact form markup, field IDs and modals — no JS change.
   ============================================================ */
.ds-shell .form-label,
.ds-modal .form-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-secondary);
  margin-bottom: 6px;
}
.ds-shell .form-control,
.ds-shell .form-select,
.ds-modal .form-control,
.ds-modal .form-select {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0 14px;
  height: 46px;
  font-size: 14px;
  color: var(--ink);
  background: var(--surface);
  box-shadow: none;
}
.ds-shell textarea.form-control,
.ds-modal textarea.form-control {
  height: auto;
  padding: 12px 14px;
}
.ds-shell .form-control:focus,
.ds-shell .form-select:focus,
.ds-modal .form-control:focus,
.ds-modal .form-select:focus {
  border: 1.5px solid var(--accent);
  box-shadow: 0 0 0 4px var(--focus-ring);
  outline: none;
}
.ds-shell .card {
  background: var(--surface-card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card);
  box-shadow: var(--card-shadow);
}
.ds-shell .card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}
.ds-shell .btn-primary,
.ds-modal .btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  border-radius: 12px;
  font-weight: 700;
}
.ds-shell .btn-primary:hover,
.ds-modal .btn-primary:hover {
  background: #d9455f;
  border-color: #d9455f;
}
.ds-shell .btn-secondary,
.ds-modal .btn-secondary {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--ink);
  border-radius: 12px;
  font-weight: 600;
}
.ds-shell .btn-secondary:hover,
.ds-modal .btn-secondary:hover {
  border-color: var(--ink-tertiary);
  color: var(--ink);
}
.ds-modal .modal-content {
  border-radius: 18px;
  border: 0;
}
.ds-shell .table-bordered > :not(caption) > * > * {
  border-color: var(--divider);
}

/* ============================================================
   Split-panel auth pages (c1 sign-in, c18 register, c19 forgot).
   Standalone pages (no .ds-shell); top-level so they apply directly.
   ============================================================ */
.ds-auth {
  display: flex;
  min-height: 100vh;
  background: var(--surface);
  font-family: var(--font-latin);
  color: var(--ink);
}
[dir="rtl"] .ds-auth { font-family: var(--font-arabic); }
.ds-auth__brand {
  width: 46%;
  background: var(--navy);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 44px 48px;
  color: #FFFFFF;
}
.ds-auth__brand::before {
  content: "";
  position: absolute;
  top: -120px;
  inset-inline-end: -120px;
  width: 360px;
  height: 360px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
}
.ds-auth__brand::after {
  content: "";
  position: absolute;
  bottom: -140px;
  inset-inline-start: -80px;
  width: 420px;
  height: 420px;
  border-radius: 999px;
  background: rgba(240, 83, 107, 0.14);
}
.ds-auth__brand > * { position: relative; z-index: 1; }
.ds-auth__logo { height: 30px; width: auto; align-self: flex-start; display: block; }
.ds-auth__headline {
  font-size: 38px;
  line-height: 44px;
  font-weight: 800;
  letter-spacing: -0.02em;
  max-width: 440px;
}
.ds-auth__sub {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 14px;
  max-width: 400px;
}
.ds-auth__foot { font-size: 12.5px; color: rgba(255, 255, 255, 0.45); }
.ds-auth__form {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}
.ds-auth__card {
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.ds-auth__title { font-size: 26px; font-weight: 800; letter-spacing: -0.01em; }
.ds-auth__subtitle { font-size: 14.5px; color: var(--ink-secondary); margin-top: 6px; }
/* password field with an inline show/hide icon */
.ds-auth .ds-passwrap,
.ds-modal .ds-passwrap,
.ds-shell .ds-passwrap {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  padding-inline-end: 12px;
}
.ds-auth .ds-passwrap:focus-within,
.ds-modal .ds-passwrap:focus-within,
.ds-shell .ds-passwrap:focus-within {
  border: 1.5px solid var(--accent);
  box-shadow: 0 0 0 4px var(--focus-ring);
}
.ds-auth .ds-passwrap .ds-input,
.ds-auth .ds-passwrap .form-control,
.ds-modal .ds-passwrap .ds-input,
.ds-modal .ds-passwrap .form-control,
.ds-shell .ds-passwrap .ds-input,
.ds-shell .ds-passwrap .form-control {
  border: 0 !important;
  box-shadow: none !important;
  background: transparent;
}
.ds-auth .ds-passwrap ion-icon,
.ds-modal .ds-passwrap ion-icon,
.ds-shell .ds-passwrap ion-icon { font-size: 20px; cursor: pointer; color: var(--ink-tertiary); flex: none; }
@media (max-width: 860px) {
  .ds-auth__brand { display: none; }
}

/* ============================================================
   Public customer pay pages (c22 twins: OpenLinkAr, OIMPay/Ar,
   payMent-LInk/Ar). Standalone pages that keep their Bootstrap form
   markup — body.ds-paypage restyles it to the c22 look with zero field
   changes. LTR + RTL both handled.
   ============================================================ */
body.ds-paypage {
  margin: 0;
  background: var(--canvas);
  font-family: var(--font-latin);
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body.ds-paypage[dir="rtl"], html[dir="rtl"] body.ds-paypage { font-family: var(--font-arabic); }
.ds-paypage__bar {
  height: 60px;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  flex: none;
}
.ds-paypage #content,
.ds-paypage .content { flex: 1; }
.ds-paypage .content__boxed { max-width: 600px; margin: 0 auto; width: 100%; }
.ds-paypage .content__wrap { padding: 32px 16px; }
.ds-paypage .row { justify-content: center; margin: 0; }
.ds-paypage .col-md-3 { display: none; }        /* legacy centering spacers */
.ds-paypage .col-md-6 { flex: 0 0 100%; max-width: 100%; width: 100%; }
.ds-paypage .card {
  border: 0;
  border-radius: 20px;
  box-shadow: 0 1px 2px rgba(33, 43, 56, 0.05);
  background: var(--surface);
}
.ds-paypage .card-body { padding: 28px; }
.ds-paypage .card-title { font-size: 17px; font-weight: 800; letter-spacing: -0.01em; }
.ds-paypage .form-label { font-size: 12.5px; font-weight: 600; color: var(--ink-secondary); margin-bottom: 6px; }
.ds-paypage .form-control,
.ds-paypage .form-select {
  border: 1px solid var(--border);
  border-radius: 12px;
  height: 48px;
  font-size: 14px;
  box-shadow: none;
  color: var(--ink);
}
.ds-paypage textarea.form-control { height: auto; }
.ds-paypage .form-control:focus,
.ds-paypage .form-select:focus {
  border: 1.5px solid var(--accent);
  box-shadow: 0 0 0 4px var(--focus-ring);
}
.ds-paypage .btn-outline-primary {
  color: var(--ink);
  border-color: var(--border);
  background: var(--surface);
}
.ds-paypage .btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  border-radius: 12px;
  font-weight: 700;
  width: 100%;
  height: 54px;
  font-size: 15.5px;
}
.ds-paypage .btn-primary:hover { background: #d9455f; border-color: #d9455f; }
.ds-paypage #BizName { font-size: 17px !important; font-weight: 800; }
.ds-paypage footer { flex: none; }
.ds-paypage .social-icons { color: var(--ink-secondary) !important; }

/* ============================================================
   Server-rendered DataTables row content (status badges + action
   buttons) restyled to the design system. Scoped to .ds-shell tables so
   only redesigned pages are affected. The endpoints keep emitting plain
   Bootstrap .badge/.btn markup — this makes it look native with no
   backend change.
   ============================================================ */
.ds-shell .table .badge {
  border-radius: var(--radius-pill);
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
}
.ds-shell .table .badge.bg-success { background: var(--success-tint) !important; color: var(--success) !important; }
.ds-shell .table .badge.bg-danger  { background: var(--accent-tint)  !important; color: var(--accent)  !important; }
.ds-shell .table .badge.bg-warning { background: var(--warning-tint) !important; color: var(--warning) !important; }
.ds-shell .table .badge.bg-secondary,
.ds-shell .table .badge.bg-info    { background: var(--navy-tint)    !important; color: var(--ink-secondary) !important; }

.ds-shell .table .btn {
  border-radius: 10px;
  font-weight: 600;
  font-size: 12.5px;
  padding: 5px 12px;
}
.ds-shell .table .btn-primary { background: var(--navy);       border-color: var(--navy); }
.ds-shell .table .btn-primary:hover { background: #354456; border-color: #354456; }
.ds-shell .table .btn-info    { background: var(--navy-tint);  border-color: transparent; color: var(--ink-secondary); }
.ds-shell .table .btn-success { background: var(--success);    border-color: var(--success); }
.ds-shell .table .btn-danger  { background: var(--accent);     border-color: var(--accent); }
.ds-shell .table .btn-warning { background: var(--warning);    border-color: var(--warning); color: #FFFFFF; }
.ds-shell .table .btn-secondary { background: var(--surface); border: 1px solid var(--border); color: var(--ink); }
/* the invoice-row action icons (ti-*) already inherit; keep their pointer */
.ds-shell .table .invoiceIcon { cursor: pointer; }
