:root {
  --purple: #5f2b91;
  --purple-dark: #2b176b;
  --purple-soft: #f4effb;
  --border: #ddd2f0;
  --text: #172033;
  --muted: #667085;
  --good: #0f9f6e;
  --warn: #b7791f;
  --bad: #c62828;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  background: #ffffff;
  color: var(--text);
  font-family: "Segoe UI", Arial, sans-serif;
}

body.modal-open {
  overflow: hidden;
}

body.backend-locked {
  display: block;
  overflow: hidden;
}

body.backend-locked > .sidebar,
body.backend-locked > .shell,
body.backend-locked > .request-modal {
  display: none !important;
}

button,
input,
select,
textarea {
  font: inherit;
}

.admin-login-screen {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 10% 12%, rgba(14, 165, 233, 0.14), transparent 32%),
    radial-gradient(circle at 90% 88%, rgba(43, 23, 107, 0.16), transparent 34%),
    #ffffff;
}

.admin-login-card {
  width: min(430px, 100%);
  border: 1px solid #bfe7ff;
  border-radius: 22px;
  background: #ffffff;
  padding: 30px;
  box-shadow: 0 30px 80px rgba(15, 82, 140, 0.18);
}

.admin-login-logo {
  width: 148px;
  margin-bottom: 22px;
}

.admin-login-logo img {
  width: 100%;
  display: block;
}

.admin-login-card h1 {
  margin: 8px 0 8px;
  color: #0f172a;
  font-size: 28px;
  line-height: 1.15;
}

.admin-login-copy {
  margin: 0 0 22px;
  color: var(--muted);
  font-weight: 700;
}

.admin-login-form {
  display: grid;
  gap: 14px;
}

.admin-login-form label {
  display: grid;
  gap: 7px;
}

.admin-login-form span {
  color: #475569;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.admin-login-form input {
  width: 100%;
  min-height: 48px;
  border: 1px solid #bfe7ff;
  border-radius: 12px;
  background: #f7fcff;
  color: var(--text);
  padding: 0 14px;
  font-weight: 800;
  outline: none;
}

.admin-login-form input:focus {
  border-color: #0ea5e9;
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.14);
}

.admin-login-error {
  min-height: 18px;
  margin: 0;
  color: var(--bad);
  font-size: 13px;
  font-weight: 900;
}

.sidebar {
  min-height: 100vh;
  padding: 24px;
  border-right: 1px solid var(--border);
  background: #ffffff;
}

.brand-card {
  width: 150px;
  margin-bottom: 30px;
}

.brand-card img {
  width: 100%;
  display: block;
}

nav {
  display: grid;
  gap: 10px;
}

.nav-item {
  width: 100%;
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: #ffffff;
  color: #334155;
  text-align: left;
  padding: 0 14px;
  cursor: pointer;
  font-weight: 700;
}

.nav-item:hover,
.nav-item.active {
  background: linear-gradient(180deg, var(--purple), var(--purple-dark));
  color: #ffffff;
  box-shadow: 0 14px 28px rgba(45, 27, 109, 0.22);
}

.logout-nav-item {
  margin-top: 12px;
  border-color: #f1d5d5;
  color: #991b1b;
}

.shell {
  min-width: 0;
  padding: 20px 24px;
}

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.topbar-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  max-width: 720px;
}

.sync-token-input {
  width: 220px;
  min-height: 42px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #ffffff;
  padding: 0 12px;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  outline: none;
}

.sync-token-input:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(95, 43, 145, 0.12);
}

.sync-status {
  flex-basis: 100%;
  margin: -2px 0 0;
  min-height: 18px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-align: right;
}

.sync-status[data-tone="ok"] {
  color: var(--good);
}

.sync-status[data-tone="warn"] {
  color: var(--warn);
}

.sync-status[data-tone="error"] {
  color: var(--bad);
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--purple);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--text);
}

.topbar h1 {
  font-size: 26px;
}

.topbar span {
  color: var(--muted);
  font-size: 14px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.stats-grid article,
.table-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 18px 48px rgba(45, 27, 109, 0.08);
}

.stats-grid article {
  padding: 18px;
}

.stats-grid span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.stats-grid strong {
  display: block;
  margin-top: 8px;
  font-size: 34px;
}

.billing-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 220px));
  gap: 8px;
  margin: 10px 0 8px;
}

.billing-summary-grid article {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fbf9ff;
  padding: 7px 10px;
}

.billing-summary-grid span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.billing-summary-grid strong {
  display: block;
  margin-top: 2px;
  color: var(--purple-dark);
  font-size: 20px;
  line-height: 1.05;
}

.billing-toggle {
  display: inline-grid;
  grid-template-columns: repeat(3, minmax(90px, 1fr));
  gap: 3px;
  margin-top: 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--purple-soft);
  padding: 3px;
}

.billing-toggle button {
  min-height: 32px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--purple);
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
}

.billing-toggle button.active {
  background: linear-gradient(180deg, var(--purple), var(--purple-dark));
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(45, 27, 109, 0.22);
}

.view {
  display: none;
}

.view.active {
  display: block;
}

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

.table-note {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}

.table-note[data-tone="ok"] {
  color: var(--good);
}

.table-note[data-tone="warn"] {
  color: var(--warn);
}

.table-note[data-tone="error"] {
  color: var(--bad);
}

.connection-form {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.settings-card {
  max-width: 760px;
}

.rate-system-layout {
  display: grid;
  grid-template-columns: minmax(360px, 760px) minmax(280px, 420px);
  gap: 16px;
  align-items: start;
}

.settings-grid {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.settings-grid.two-column {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rate-settings-grid {
  grid-template-columns: repeat(4, minmax(130px, 1fr));
}

.rate-tax-grid {
  grid-template-columns: repeat(2, minmax(150px, 220px));
}

.rate-line-settings {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fbfdff;
  padding: 10px;
}

.rate-line-header,
.rate-line-row {
  display: grid;
  grid-template-columns: minmax(190px, 1.2fr) minmax(110px, 0.8fr) minmax(110px, 0.8fr) minmax(120px, 0.8fr);
  align-items: center;
  gap: 10px;
}

.rate-line-header span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.rate-line-row {
  border-top: 1px solid var(--border);
  padding-top: 8px;
}

.rate-line-row:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.rate-line-row strong,
.rate-line-row b {
  color: var(--ink);
  font-size: 13px;
}

.rate-line-row b {
  text-align: right;
  color: var(--purple-dark);
}

.settings-grid label {
  display: grid;
  gap: 7px;
}

.settings-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.settings-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.settings-readonly-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fbf9ff;
  padding: 11px 12px;
}

.settings-readonly-row span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.settings-readonly-row strong {
  color: var(--purple-dark);
  font-size: 16px;
}

.settings-sync-status {
  margin-top: 12px;
  text-align: left;
}

.rate-example-card {
  display: grid;
  gap: 10px;
}

.billing-preview-grid {
  display: grid;
  gap: 8px;
}

.billing-preview-grid > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--border);
  padding: 8px 0;
}

.billing-preview-grid span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.billing-preview-grid strong {
  color: var(--purple-dark);
  font-size: 16px;
}

.billing-preview-grid .billing-preview-total {
  margin-top: 4px;
  border-bottom: 0;
  border-radius: 10px;
  background: linear-gradient(180deg, var(--purple), var(--purple-dark));
  padding: 12px;
}

.billing-preview-total span,
.billing-preview-total strong {
  color: #ffffff;
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 190px auto;
  gap: 12px;
  margin-bottom: 16px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #ffffff;
  color: var(--text);
  padding: 11px 12px;
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(95, 43, 145, 0.14);
}

.table-card {
  padding: 16px;
}

.compact-data-card {
  padding: 14px 16px 16px;
}

.compact-data-card h2 {
  font-size: 20px;
}

.compact-data-card .panel-heading {
  margin-bottom: 6px;
}

.compact-data-card .table-note {
  font-size: 12px;
}

.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.status-pill {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border-radius: 999px;
  background: #eef2f7;
  color: #334155;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 900;
  text-transform: capitalize;
}

.status-pending {
  background: #fff7ed;
  color: var(--warn);
}

.status-under_review {
  background: #eff6ff;
  color: #1d4ed8;
}

.status-active {
  background: #ecfdf5;
  color: var(--good);
}

.billing-pill {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border: 1px solid rgba(91, 44, 145, 0.22);
  border-radius: 999px;
  background: #f5efff;
  color: var(--purple-dark);
  padding: 0 11px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.billing-prepaid {
  background: #f4efff;
}

.billing-postpaid {
  background: #eef2ff;
  color: #3730a3;
}

.status-locked,
.status-rejected {
  background: #fef2f2;
  color: var(--bad);
}

.hidden {
  display: none !important;
}

.empty-state {
  border: 1px dashed var(--border);
  border-radius: 12px;
  color: var(--muted);
  padding: 24px;
  text-align: center;
}

.activation-form {
  display: grid;
  gap: 18px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

label {
  display: grid;
  gap: 6px;
  color: #344054;
  font-size: 13px;
  font-weight: 800;
}

.wide {
  grid-column: 1 / -1;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.action-row.compact {
  justify-content: flex-start;
  padding-top: 0;
  border-top: 0;
}

.primary-button,
.secondary-button,
.ghost-button,
.danger-button,
.warning-button,
.success-button {
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 0 16px;
  cursor: pointer;
  font-weight: 850;
}

.primary-button {
  background: linear-gradient(180deg, var(--purple), var(--purple-dark));
  color: #ffffff;
}

.secondary-button {
  border-color: var(--border);
  background: #ffffff;
  color: var(--purple);
}

.compact-button {
  min-height: 34px;
  border-radius: 9px;
  padding: 0 12px;
  font-size: 13px;
}

.ghost-button {
  border-color: var(--border);
  background: #ffffff;
  color: var(--purple);
}

.danger-button {
  background: #fef2f2;
  color: var(--bad);
}

.warning-button {
  background: #fff7ed;
  color: var(--warn);
}

.success-button {
  background: #ecfdf5;
  color: var(--good);
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

th,
td {
  border-top: 1px solid var(--border);
  padding: 9px 10px;
  text-align: left;
}

th {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.brand-row {
  cursor: pointer;
  transition: background 160ms ease, box-shadow 160ms ease;
}

.brand-row:hover,
.brand-row.selected {
  background: var(--purple-soft);
}

.brand-row td:first-child {
  font-weight: 900;
}

.brand-overview {
  display: grid;
  gap: 14px;
}

.brand-overview-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
}

.brand-overview-header h3 {
  font-size: 18px;
}

.brand-overview-header > div:first-child span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.brand-action-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
  gap: 8px;
}

.brand-action-grid button {
  min-height: 74px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #ffffff;
  color: var(--text);
  cursor: pointer;
  padding: 10px;
  text-align: left;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.brand-action-grid button:hover {
  border-color: var(--purple);
  background: var(--purple-soft);
  transform: translateY(-1px);
}

.brand-action-grid span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.brand-action-grid strong {
  display: block;
  margin-top: 8px;
  color: var(--purple-dark);
  font-size: 17px;
  line-height: 1.2;
}

.brand-usage-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(220px, 0.65fr);
  gap: 10px;
}

.usage-chart-card,
.non-whatsapp-card {
  min-height: 120px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fbf9ff;
  padding: 14px;
}

.usage-chart-card {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
}

.usage-pie {
  width: 108px;
  height: 108px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(#e5e7eb 0% 100%);
  position: relative;
}

.usage-pie::after {
  content: "";
  position: absolute;
  inset: 22px;
  border-radius: 50%;
  background: #ffffff;
}

.usage-pie span {
  position: relative;
  z-index: 1;
  color: var(--purple-dark);
  font-size: 24px;
  font-weight: 950;
}

.usage-chart-card h4 {
  margin: 0;
  font-size: 17px;
}

.usage-chart-card p {
  margin: 4px 0 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.usage-legend {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 12px;
}

.usage-legend-item {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.usage-legend-item i {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.usage-legend-item strong {
  color: var(--text);
}

.non-whatsapp-card {
  display: grid;
  align-content: start;
  gap: 10px;
}

.non-whatsapp-card span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.non-whatsapp-card strong {
  display: block;
  margin-top: 4px;
  color: var(--purple-dark);
  font-size: 28px;
  line-height: 1;
}

.non-whatsapp-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.non-whatsapp-preview span {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #ffffff;
  color: var(--text);
  padding: 5px 8px;
  font-size: 12px;
  text-transform: none;
}

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

.detail-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.brand-action-modal-panel {
  width: min(920px, calc(100vw - 48px));
}

.brand-overview-modal-panel {
  width: min(1040px, calc(100vw - 48px));
}

.brand-bill-modal-panel {
  width: min(1080px, calc(100vw - 48px));
}

.brand-bill-content {
  display: grid;
  gap: 14px;
}

.bill-paper {
  display: grid;
  gap: 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #ffffff;
  padding: 18px;
}

.bill-header {
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr) minmax(160px, 0.3fr);
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 14px;
}

.bill-logo-box {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #ffffff;
}

.bill-logo-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
}

.bill-header h3 {
  margin: 4px 0;
  font-size: 24px;
}

.bill-header span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.bill-number {
  display: grid;
  gap: 5px;
  justify-items: end;
  text-align: right;
}

.bill-number span,
.bill-summary-grid span,
.bill-total-box span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.bill-number strong {
  color: var(--purple-dark);
  font-size: 15px;
}

.bill-number small {
  color: var(--muted);
  font-weight: 700;
}

.bill-info-grid,
.bill-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.bill-summary-grid article {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--purple-soft);
  padding: 12px;
}

.bill-summary-grid strong {
  display: block;
  margin-top: 8px;
  color: var(--purple-dark);
  font-size: 22px;
}

.bill-table-section h4 {
  margin: 0 0 8px;
  font-size: 17px;
}

.bill-total-box {
  display: grid;
  gap: 8px;
  justify-self: end;
  width: min(420px, 100%);
}

.bill-total-box > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border);
  padding: 8px 0;
}

.bill-total-box b {
  color: var(--text);
}

.bill-total-box .grand-total {
  grid-template-columns: minmax(0, 1fr) auto;
  border-bottom: 0;
  border-radius: 10px;
  background: linear-gradient(180deg, var(--purple), var(--purple-dark));
  color: #ffffff;
  padding: 12px;
}

.bill-total-box .grand-total span,
.bill-total-box .grand-total strong {
  color: #ffffff;
}

.bill-total-box .grand-total strong {
  font-size: 22px;
}

.bill-rate-note,
.bill-send-note {
  margin: 0;
  border: 1px solid #fde68a;
  border-radius: 10px;
  background: #fffbeb;
  color: #92400e;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 800;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.detail-grid-summary {
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
}

.detail-table {
  font-size: 13px;
}

.detail-table td:last-child {
  white-space: nowrap;
}

.detail-row {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fbf9ff;
  padding: 10px 12px;
}

.detail-row span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.detail-row strong {
  display: block;
  margin-top: 4px;
  color: var(--text);
  font-size: 14px;
  overflow-wrap: anywhere;
}

.compact-empty {
  padding: 18px;
}

.empty-table-cell {
  color: var(--muted);
  padding: 28px !important;
  text-align: center;
  font-weight: 700;
}

.request-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
}

.request-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.36);
  backdrop-filter: blur(6px);
}

.request-modal-panel {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100vw - 48px));
  max-height: calc(100vh - 48px);
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #ffffff;
  padding: 24px;
  box-shadow: 0 34px 90px rgba(31, 20, 74, 0.28);
}

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

.modal-close-button {
  min-height: 34px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #ffffff;
  color: var(--purple);
  padding: 0 14px;
  cursor: pointer;
  font-weight: 900;
}

.checklist {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
  padding-left: 20px;
  color: #334155;
  font-weight: 700;
}

@media (max-width: 1000px) {
  body {
    grid-template-columns: 1fr;
  }

  .sidebar {
    min-height: auto;
  }

  .dashboard-grid,
  .rate-system-layout,
  .settings-grid.two-column,
  .rate-settings-grid,
  .rate-line-header,
  .rate-line-row,
  .billing-summary-grid,
  .billing-toggle,
  .brand-action-grid,
  .brand-usage-panel,
  .usage-chart-card,
  .detail-grid,
  .bill-header,
  .bill-info-grid,
  .bill-summary-grid,
  .stats-grid,
  .toolbar,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .bill-number {
    justify-items: start;
    text-align: left;
  }
}

@media print {
  body {
    display: block;
    background: #ffffff;
  }

  body > .sidebar,
  body > .shell,
  .request-modal:not(#brandBillModal),
  #brandBillModal .request-modal-backdrop,
  #brandBillModal .panel-heading,
  #brandBillModal .bill-send-note {
    display: none !important;
  }

  #brandBillModal,
  #brandBillModal .request-modal-panel {
    position: static !important;
    display: block !important;
    width: auto !important;
    max-height: none !important;
    overflow: visible !important;
    padding: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
    background: #ffffff !important;
  }

  .bill-paper {
    border: 0;
    border-radius: 0;
    padding: 0;
  }

  .bill-summary-grid article,
  .detail-row,
  .bill-total-box .grand-total {
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
}
