.ci-logo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, #17a2b8, #00bcd4);
  color: #fff;
  font-weight: 700;
  margin-right: 10px;
}

.ci-logo-text {
  display: inline-flex;
  align-items: center;
}

.ci-logo-link {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.ci-logo-light {
  display: block;
  width: 170px;
  max-width: 100%;
  max-height: 42px;
  height: auto;
  object-fit: contain;
  object-position: left center;
}

.ci-print-logo {
  display: block;
  max-width: 160px;
  max-height: 72px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.ci-receipt-logo {
  display: block;
  max-width: 90px;
  max-height: 42px;
  width: auto;
  height: auto;
  object-fit: contain;
}

h1,
h2,
h3,
h4,
h5,
h6,
.card-title,
.modal-title,
.form-control-label,
.sh-pagetitle h2,
.sh-pagetitle p {
  color: #1c273c !important;
}

.sh-mainpanel,
.sh-pagebody,
.sh-pagebody .card,
.sh-pagebody .card-body,
.sh-pagebody .table,
.sh-pagebody .table td,
.sh-pagebody .table th,
.sh-pagebody p,
.sh-pagebody label {
  color: #111827;
}

.sh-pagebody .text-right,
.sh-pagebody .tx-right,
.sh-pagebody td.text-right,
.sh-pagebody th.text-right,
.sh-pagebody td.tx-right,
.sh-pagebody th.tx-right {
  text-align: right !important;
}

.ci-page-actions .btn {
  margin-right: 8px;
  margin-bottom: 8px;
}

.sh-headpanel-left .sh-icon-link,
.sh-headpanel-left .sh-icon-link i,
.sh-headpanel-left .sh-icon-link span {
  color: #fff !important;
}

.sh-headpanel-left .sh-icon-link {
  min-width: 104px;
  padding: 0 14px;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.sh-headpanel-left .sh-icon-link > div {
  gap: 3px;
}

.sh-headpanel-left .sh-icon-link i {
  font-size: 24px;
  line-height: 1;
}

.sh-headpanel-left .sh-icon-link span {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.15;
}

.sh-headpanel-left .sh-icon-link:hover,
.sh-headpanel-left .sh-icon-link:hover i,
.sh-headpanel-left .sh-icon-link:hover span {
  color: rgba(255, 255, 255, 0.86) !important;
}

.sh-headpanel-left .sh-icon-link:hover {
  background: rgba(255, 255, 255, 0.08);
}

.sh-logopanel {
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  padding-left: 18px;
  padding-right: 14px;
}

.sh-logopanel .ci-logo-link {
  max-width: 174px;
  min-height: 44px;
  overflow: hidden;
}

.sh-logopanel .ci-logo-light {
  width: 170px;
  max-height: 40px;
}

.ci-logopanel-name {
  display: block;
  max-width: 170px;
  overflow: hidden;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hide-left .sh-logopanel .ci-logo-link {
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 1199px) {
  .show-left .sh-logopanel .ci-logo-link {
    opacity: 1;
    pointer-events: auto;
  }
}

.ci-summary-tile {
  border: 0;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(27, 46, 94, 0.08);
}

.ci-summary-tile .card-body {
  padding: 20px;
}

.ci-summary-tile .label {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
  color: #8392a5;
}

.ci-summary-tile .value {
  font-size: 28px;
  font-weight: 700;
  color: #1c273c;
}

.badge-purple {
  background-color: #6f42c1;
  color: #fff;
}

.sh-pagetitle {
  justify-content: flex-start !important;
  flex-direction: row !important;
  text-align: left;
  padding-top: 10px;
}

.sh-pagetitle h2,
.sh-pagetitle p {
  text-align: left;
}

.sh-pagetitle h2 {
  color: #0866c6 !important;
  font-weight: 500 !important;
}

.sh-pagebody {
  padding-top: 20px;
  padding-bottom: 30px;
}

.ci-form-card .card-header,
.ci-table-card .card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ci-form-check {
  display: flex;
  align-items: flex-start;
  padding-left: 0;
}

.ci-form-check .form-check-input,
.ci-checkbox-input {
  position: relative !important;
  top: 0;
  left: 0;
  width: 16px !important;
  min-width: 16px;
  height: 16px;
  margin: 2px 0 0 0 !important;
  flex: 0 0 auto;
  transform: scale(1.1);
  transform-origin: top left;
}

.ci-form-check .form-check-label {
  margin-bottom: 0;
  font-weight: 600;
  color: #1c273c;
}

.ci-form-check-copy {
  display: flex;
  flex-direction: column;
  padding-left: 15px;
}

.ci-table-card .table td,
.ci-table-card .table th {
  vertical-align: middle;
  color: #111827;
}

.table td,
.table th {
  color: #111827;
}

.ci-form-shell {
  width: 100%;
}

.ci-form-shell--narrow {
  max-width: 760px;
  margin: 0 auto;
}

.ci-form-card--stacked .col-md-6 {
  flex: 0 0 100%;
  max-width: 100%;
}

.ci-form-card--stacked .card-body {
  padding: 28px 32px;
}

.ci-form-card--stacked .form-control,
.ci-form-card--stacked .select2,
.ci-form-card--stacked .select2-container,
.ci-form-card--stacked textarea {
  width: 100% !important;
}

.ci-form-card--stacked input[type="date"] {
  max-width: 240px;
}

.ci-form-card--stacked input[name*="phone"],
.ci-form-card--stacked input[name*="mobile"],
.ci-form-card--stacked input[name*="postal_code"],
.ci-form-card--stacked input[name*="sku"],
.ci-form-card--stacked input[name*="barcode"],
.ci-form-card--stacked input[name*="unit_type"],
.ci-form-card--stacked input[name*="selling_price"],
.ci-form-card--stacked input[name*="cost_price"],
.ci-form-card--stacked input[name*="opening_stock"],
.ci-form-card--stacked input[name*="low_stock_alert"] {
  max-width: 280px;
}

.ci-form-card--stacked input[name*="email"],
.ci-form-card--stacked input[name*="website"],
.ci-form-card--stacked input[name*="display_name"],
.ci-form-card--stacked input[name*="company_name"],
.ci-form-card--stacked input[name*="name"] {
  max-width: 520px;
}

.ci-form-card--stacked textarea[name*="notes"],
.ci-form-card--stacked textarea[name*="description"] {
  max-width: 100%;
}

.ci-form-card--stacked .form-check-input {
  width: auto !important;
  max-width: none;
}

.ci-form-card--compact {
  max-width: 680px;
}

.ci-inline-field {
  display: flex;
  align-items: flex-end;
  gap: 12px;
}

.ci-inline-field .ci-inline-field__control {
  flex: 1 1 auto;
}

.ci-inline-field .btn {
  white-space: nowrap;
}

.ci-compact-textarea {
  min-height: 74px;
  height: 74px;
  resize: vertical;
}

.ci-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.ci-section-heading h6,
.ci-section-heading p {
  margin-bottom: 0;
}

.ci-modal .modal-content {
  border: 0;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(28, 39, 60, 0.22);
}

.ci-modal .modal-header {
  padding: 18px 22px;
  border-bottom: 1px solid rgba(28, 39, 60, 0.08);
}

.ci-modal .modal-body {
  padding: 22px;
}

.ci-modal .modal-footer {
  padding: 18px 22px;
  border-top: 1px solid rgba(28, 39, 60, 0.08);
}

.ci-modal .close {
  opacity: 0.75;
}

.ci-modal .close:hover {
  opacity: 1;
}

.ci-receipt-card {
  border: 1px solid rgba(28, 39, 60, 0.08);
  border-radius: 14px;
  padding: 20px;
  background: #fff;
}

.ci-receipt-card .ci-receipt-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.ci-receipt-card .ci-receipt-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 8px 0;
  border-bottom: 1px dashed rgba(28, 39, 60, 0.08);
}

.ci-receipt-card .ci-receipt-row:last-child {
  border-bottom: 0;
}

.ci-receipt-card .ci-receipt-total {
  margin-top: 16px;
  text-align: right;
}

.ci-audit-timeline {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ci-audit-entry {
  position: relative;
  padding: 18px 18px 18px 24px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid rgba(28, 39, 60, 0.08);
}

.ci-audit-entry::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 12px;
  width: 6px;
  height: calc(100% - 44px);
  border-radius: 999px;
  background: rgba(0, 188, 212, 0.35);
}

.ci-expense-receipt-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px;
  border: 1px solid #d8e2ef;
  border-radius: 10px;
  background: #f8fafc;
}

.ci-expense-receipt-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.ci-expense-receipt-copy span {
  color: #667085;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.ci-expense-receipt-copy strong {
  color: #1c273c;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.ci-expense-receipt-preview {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  max-width: 320px;
  padding: 8px 12px;
  border: 1px solid #cdd7e5;
  border-radius: 8px;
  background: #fff;
  color: #1c273c;
  cursor: pointer;
  font-weight: 700;
  text-align: left;
}

.ci-expense-receipt-preview:hover {
  border-color: #0866c6;
  color: #0866c6;
}

.ci-expense-receipt-thumb {
  width: 72px;
  height: 54px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #d8e2ef;
  background: #fff;
}

.ci-expense-image-modal .modal-body {
  padding: 16px;
  background: #f8fafc;
}

.ci-expense-receipt-full {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 75vh;
  margin: 0 auto;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(28, 39, 60, 0.14);
}

.ci-audit-request {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.ci-audit-request-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-weight: 700;
}

.ci-audit-loading {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #667085;
  font-size: 13px;
}

.ci-audit-result {
  width: 100%;
  margin-top: 4px;
}

.htmx-indicator {
  opacity: 0;
}

.htmx-request .htmx-indicator,
.htmx-request.htmx-indicator,
.ci-audit-loading-visible {
  opacity: 1;
}

.ci-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
  border: 2px solid rgba(255, 255, 255, 0.45);
}

.dropdown-link-user {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.dropdown-user {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  max-width: 210px;
  min-height: 38px;
}

.dropdown-user p,
.dropdown-user span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sh-headpanel-right .dropdown-link-user .dropdown-user .ci-user-trigger-name {
  margin: 0;
  color: #fff !important;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
}

.sh-headpanel-right .dropdown-link-user .dropdown-user .ci-user-welcome {
  color: rgba(255, 255, 255, 0.72) !important;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
}

.ci-user-menu-card {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 292px;
  padding: 16px;
  border-bottom: 1px solid rgba(28, 39, 60, 0.08);
  background: linear-gradient(135deg, #f8fbff 0%, #eef5ff 100%);
}

.ci-user-menu-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  background: #f8fafc;
  border: 1px solid rgba(28, 39, 60, 0.1);
}

.ci-user-menu-copy {
  min-width: 0;
}

.ci-user-menu-copy strong,
.ci-user-menu-copy span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ci-user-menu-copy strong {
  color: #1c273c;
  font-size: 15px;
  font-weight: 800;
}

.ci-user-menu-copy span {
  color: #667085;
  font-size: 12px;
}

.sh-headpanel-right .ci-user-dropdown-menu {
  min-width: 292px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 10px;
  box-shadow: 0 18px 45px rgba(28, 39, 60, 0.22);
}

.ci-user-menu-section {
  padding: 10px 10px 8px;
  border-bottom: 1px solid rgba(28, 39, 60, 0.08);
  background: #fff;
}

.ci-user-menu-section-last {
  border-bottom: 0;
}

.ci-user-menu-label {
  display: block;
  margin: 0 6px 7px;
  color: #667085;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ci-user-menu-form {
  margin: 0;
}

.sh-headpanel-right .dropdown-menu .ci-user-menu-item {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  margin: 2px 0;
  padding: 9px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #1f2937;
  text-align: left;
  font-size: 13px;
  font-weight: 700;
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.sh-headpanel-right .dropdown-menu .ci-user-menu-item i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 8px;
  background: #eef5ff;
  color: #0866c6;
  font-size: 14px;
}

.sh-headpanel-right .dropdown-menu .ci-user-menu-item:hover,
.sh-headpanel-right .dropdown-menu .ci-user-menu-item:focus {
  background: #f3f7fb;
  color: #0866c6;
  transform: translateX(2px);
}

.sh-headpanel-right .dropdown-menu .ci-user-menu-signout {
  color: #b42318;
}

.sh-headpanel-right .dropdown-menu .ci-user-menu-signout i {
  background: #fff1f0;
  color: #d92d20;
}

.sh-headpanel-right .dropdown-menu .ci-user-menu-signout:hover,
.sh-headpanel-right .dropdown-menu .ci-user-menu-signout:focus {
  background: #fff5f5;
  color: #b42318;
}

.ci-profile-card {
  height: 100%;
}

.ci-profile-card .card-body {
  display: flex;
  min-height: 260px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.ci-profile-avatar {
  width: 116px;
  height: 116px;
  margin-bottom: 18px;
  border-radius: 50%;
  object-fit: cover;
  background: #f8fafc;
  border: 1px solid rgba(28, 39, 60, 0.1);
}

.ci-profile-card h5 {
  margin-bottom: 4px;
  font-weight: 700;
}

.ci-profile-card p {
  max-width: 100%;
  margin-bottom: 16px;
  overflow-wrap: anywhere;
  color: #667085;
}

.ci-customer-profile-card {
  border: 0;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(27, 46, 94, 0.08);
}

.ci-customer-profile-card,
.ci-customer-profile-card p,
.ci-customer-profile-card span,
.ci-customer-profile-card strong {
  color: #111827;
}

.ci-customer-profile-card .card-body {
  padding: 22px;
}

.ci-customer-hero {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(28, 39, 60, 0.08);
}

.ci-customer-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  border-radius: 50%;
  background: #0866c6;
  color: #fff;
  font-size: 22px;
  font-weight: 800;
}

.ci-customer-hero-copy {
  min-width: 0;
}

.ci-customer-hero-copy h5 {
  margin-bottom: 6px;
  color: #111827 !important;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
}

.ci-customer-detail-list {
  display: grid;
  gap: 10px;
}

.ci-customer-detail-list div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(28, 39, 60, 0.08);
}

.ci-customer-detail-list span,
.ci-customer-address-card span,
.ci-customer-note span {
  color: #4b5563;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ci-customer-detail-list strong {
  max-width: 62%;
  color: #111827;
  font-size: 13px;
  font-weight: 800;
  text-align: right;
  overflow-wrap: anywhere;
}

.ci-customer-address-card,
.ci-customer-note {
  margin-top: 16px;
  padding: 14px;
  border: 1px solid rgba(28, 39, 60, 0.08);
  border-radius: 8px;
  background: #f8fafc;
}

.ci-customer-address-card p,
.ci-customer-note p {
  margin: 6px 0 0;
  color: #111827;
  font-size: 13px;
  line-height: 1.55;
}

.ci-customer-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 18px;
}

.ci-customer-table-card .table td,
.ci-customer-table-card .table th {
  color: #111827;
}

.ci-customer-table-card .table thead th {
  color: #374151;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.ci-customer-total-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.ci-customer-total-card {
  padding: 18px;
  border: 1px solid #d8e2ef;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(27, 46, 94, 0.08);
}

.ci-customer-total-card span {
  display: block;
  margin-bottom: 8px;
  color: #4b5563;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ci-customer-total-card strong {
  display: block;
  color: #111827;
  font-size: 24px;
  font-weight: 900;
  line-height: 1.15;
}

.ci-customer-total-card--balance {
  border-color: rgba(8, 102, 198, 0.28);
  background: #f5f9ff;
}

.ci-customer-total-card--balance strong {
  color: #0866c6;
}

.ci-kpi-list li {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid rgba(28, 39, 60, 0.08);
}

.ci-kpi-list li:last-child {
  border-bottom: 0;
}

.ci-invoice-total h4,
.ci-receipt-total h4 {
  margin-bottom: 0;
}

.ci-note-box {
  background: #f8f9fc;
  border-left: 4px solid #00bcd4;
  padding: 15px;
  border-radius: 8px;
}

.public-invoice-page {
  min-height: 100vh;
  padding: 34px 0 56px;
  background: #f3f5f7;
  color: #1f2933;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

.public-invoice-card {
  width: 880px;
  max-width: 95%;
  margin: 0 auto;
  overflow: hidden;
  background: #fff;
  border: 1px solid #dde3ea;
  border-radius: 11px;
  box-shadow: 0 18px 42px rgba(31, 41, 51, 0.1);
}

.public-invoice-header {
  min-height: 78px;
  padding: 18px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: linear-gradient(135deg, #1287d9 0%, #235be7 100%);
  color: #fff;
}

.public-invoice-brand-row {
  display: flex;
  align-items: center;
  gap: 13px;
}

.public-invoice-logo {
  display: block;
  max-width: 132px;
  max-height: 48px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.invoice-brand-block h1,
.invoice-number-block strong,
.invoice-meta-grid h2,
.invoice-notes-box h2 {
  margin: 0;
  letter-spacing: 0;
}

.invoice-brand-block h1 {
  color: #fff !important;
  font-size: 24px;
  line-height: 1.15;
  font-weight: 700;
}

.invoice-brand-block p {
  margin: 5px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  line-height: 1.35;
}

.invoice-brand-block p span::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin: 0 8px 2px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.65);
}

.invoice-number-block {
  text-align: right;
}

.invoice-number-block strong {
  display: block;
  margin-top: 7px;
  color: #fff;
  font-size: 24px;
  line-height: 1.1;
  font-weight: 700;
}

.public-invoice-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.public-invoice-status-paid {
  background: rgba(22, 163, 74, 0.92);
}

.public-invoice-status-overdue,
.public-invoice-status-cancelled {
  background: rgba(220, 38, 38, 0.92);
}

.public-invoice-body {
  padding: 28px;
}

.public-invoice-body .alert {
  margin-bottom: 22px;
  border-radius: 8px;
}

.invoice-meta-grid,
.invoice-lower-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.78fr);
  gap: 42px;
}

.invoice-meta-grid {
  margin-bottom: 26px;
}

.invoice-meta-grid h2,
.invoice-notes-box h2 {
  color: #5f6b76 !important;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
}

.invoice-customer-name {
  margin-top: 10px !important;
  color: #1f2933 !important;
  font-size: 15px !important;
  font-weight: 700;
}

.invoice-meta-grid p,
.invoice-meta-grid address {
  margin: 4px 0 0;
  color: #5f6b76;
  font-size: 13px;
  line-height: 1.55;
}

.invoice-detail-list dl {
  margin: 10px 0 0;
}

.invoice-detail-list dl div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 4px 0;
  color: #5f6b76;
  font-size: 13px;
  line-height: 1.35;
}

.invoice-detail-list dt {
  font-weight: 600;
}

.invoice-detail-list dd {
  margin: 0;
  color: #1f2933;
  font-weight: 700;
  text-align: right;
}

.invoice-table-wrap {
  width: 100%;
  margin-bottom: 26px;
  overflow-x: auto;
}

.invoice-items-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
}

.invoice-items-table th {
  padding: 10px 13px;
  background: #e2e5e8;
  color: #334155;
  border: 0;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
}

.invoice-items-table td {
  padding: 13px;
  color: #334155;
  border-bottom: 1px solid #edf0f2;
  font-size: 13px;
  line-height: 1.35;
}

.invoice-items-table tbody tr:last-child td {
  border-bottom: 0;
}

.invoice-notes-box {
  min-height: 104px;
  padding: 15px 16px;
  background: #f4f6f8;
  border-left: 4px solid #1d74d8;
  border-radius: 7px;
}

.invoice-notes-box p {
  margin: 9px 0 0;
  color: #596672;
  font-size: 13px;
  line-height: 1.55;
}

.invoice-summary-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.invoice-summary-table th,
.invoice-summary-table td {
  padding: 10px 0;
  border-bottom: 1px solid #e8ecef;
}

.invoice-summary-table tr:first-child th,
.invoice-summary-table tr:first-child td {
  border-top: 1px solid #e8ecef;
}

.invoice-summary-table th {
  color: #596672;
  font-weight: 700;
  text-align: left;
}

.invoice-summary-table td {
  color: #1f2933;
  font-weight: 700;
  text-align: right;
}

.invoice-summary-table .invoice-summary-balance th,
.invoice-summary-table .invoice-summary-balance td {
  color: #0f172a;
  font-size: 15px;
  font-weight: 800;
}

.invoice-action-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 26px;
}

.invoice-action-row form {
  margin: 0;
}

.invoice-btn-outline,
.invoice-btn-primary {
  width: 100%;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.invoice-btn-outline {
  background: #fff;
  border: 1px solid #1d74d8;
  color: #1d74d8;
}

.invoice-btn-outline:hover {
  background: #eef6ff;
  color: #155eaf;
  text-decoration: none;
}

.invoice-btn-primary {
  border: 1px solid #1d74d8;
  background: #1d74d8;
  color: #fff;
  cursor: pointer;
}

.invoice-btn-primary:hover {
  border-color: #155eaf;
  background: #155eaf;
}

.invoice-btn-primary.is-paid {
  border-color: #16a34a;
  background: #16a34a;
  cursor: default;
  opacity: 1;
}

.ci-empty-state {
  padding: 30px;
  text-align: center;
  color: #8392a5;
}

.report-summary-row {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 18px;
  padding: 14px 0 18px;
  border-top: 1px solid rgba(28, 39, 60, 0.08);
}

.report-summary-row div {
  min-width: 150px;
  padding: 12px 14px;
  border: 1px solid rgba(28, 39, 60, 0.08);
  border-radius: 8px;
  background: #f8fafc;
}

.report-summary-row span {
  display: block;
  color: #8392a5;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.report-summary-row strong {
  display: block;
  margin-top: 4px;
  color: #1c273c;
  font-size: 16px;
}

.report-heading {
  font-size: 14px;
}

.report-tile .card-body {
  padding: 14px;
}

.report-tile .value {
  min-height: 42px;
  font-size: 16px;
  line-height: 1.25;
}

.report-tile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.report-tile-actions .btn {
  padding: 4px 8px;
  font-size: 11px;
}

.report-filter-compact .form-control,
.report-filter-compact .select2,
.report-filter-compact .select2-container {
  max-width: 220px;
}

.report-filter-field {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.report-filter-field .form-control-label {
  display: block;
  width: 100%;
  margin-bottom: 6px;
}

.report-filter-field .form-control,
.report-filter-field .select2,
.report-filter-field .select2-container {
  display: block;
  width: 100% !important;
}

.signpanel-wrapper .signbox {
  width: 420px;
  max-width: calc(100vw - 30px);
}

.ci-auth-page {
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(7, 24, 45, 0.84), rgba(9, 105, 232, 0.28) 48%, rgba(246, 250, 255, 0.58)),
    url("../images/branding/surrey-wheels-login-background-optimized.webp") center / cover no-repeat fixed,
    #10243e;
}

.ci-auth-page .signpanel-wrapper {
  position: relative;
  min-height: 100vh;
  padding: 44px 15px;
}

.ci-auth-page .signpanel-wrapper::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 24%, rgba(255, 255, 255, 0.18), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(7, 24, 45, 0.2));
}

.ci-auth-page .signbox {
  position: relative;
  z-index: 1;
  border: 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(7, 24, 45, 0.28);
}

.ci-auth-register-page .signpanel-wrapper .signbox {
  width: 680px;
}

.ci-auth-register-page .signbox-body form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 18px;
}

.ci-auth-register-page .signbox-body .ci-auth-field-full,
.ci-auth-register-page .signbox-body .ci-auth-actions {
  grid-column: 1 / -1;
}

.ci-auth-page .signbox-header {
  background: linear-gradient(135deg, #063b88, #0969e8);
  padding: 28px 30px;
}

.ci-auth-page .signbox-body {
  padding: 30px;
}

.ci-auth-page .signbox-header h2,
.ci-auth-page .signbox-header p {
  color: #fff !important;
}

.ci-auth-page .btn-success {
  background-color: #0866c6;
  border-color: #0866c6;
}

.ci-auth-page .btn-success:hover,
.ci-auth-page .btn-success:focus {
  background-color: #0759ad;
  border-color: #0759ad;
}

.ci-auth-message-wrap {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 1100;
  width: 420px;
  max-width: calc(100vw - 30px);
  transform: translateX(-50%);
}

.ci-auth-message-wrap .alert {
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
}

.ci-password-rules {
  display: grid;
  gap: 6px;
  margin: 10px 0 0;
  padding: 10px 12px;
  border: 1px solid #e4e7ec;
  border-radius: 10px;
  background: #f8fafc;
}

.ci-password-rule {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #667085;
  font-size: 12px;
  font-weight: 600;
}

.ci-password-rule i {
  width: 14px;
  text-align: center;
}

.ci-password-rule.is-invalid {
  color: #dc2626;
}

.ci-password-rule.is-valid {
  color: #16a34a;
}

.ci-otp-form.htmx-request {
  opacity: 0.72;
  pointer-events: none;
}

.ci-otp-status {
  min-height: 18px;
}

@media (max-width: 767.98px) {
  .ci-auth-page {
    background-position: center;
    background-attachment: scroll;
  }

  .ci-auth-register-page .signbox-body form {
    display: block;
  }

  .ci-auth-page .signbox-body,
  .ci-auth-page .signbox-header {
    padding: 24px;
  }
}

.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple {
  border: 1px solid #ced4da;
  min-height: 38px;
}

.invoice-line-table input,
.invoice-line-table select {
  min-width: 120px;
}

.invoice-line-table .form-check {
  margin-bottom: 0;
}

@media print {
  @page {
    margin: 14mm;
  }

  .no-print {
    display: none !important;
  }

  body {
    background: #fff !important;
  }

  .public-invoice-page {
    min-height: auto !important;
    padding: 0 !important;
    background: #fff !important;
  }

  .public-invoice-card {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  .public-invoice-body {
    padding: 24px 0 0 !important;
  }

  .invoice-table-wrap {
    overflow: visible !important;
  }

  .invoice-items-table {
    min-width: 0 !important;
  }

  .sh-sideleft-menu,
  .sh-headpanel,
  .sh-logopanel,
  .sh-footer {
    display: none !important;
  }

  .sh-mainpanel {
    margin-left: 0 !important;
  }
}

.ci-google-auth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #344054;
  background: #fff;
  border-color: #d0d5dd;
  font-weight: 600;
}

.ci-google-auth-btn:hover,
.ci-google-auth-btn:focus {
  color: #1d2939;
  background: #f9fafb;
  border-color: #98a2b3;
}

.ci-google-auth-btn .fa-google {
  color: #db4437;
}

.ci-auth-config-alert {
  margin-top: 12px;
  margin-bottom: 16px;
  font-size: 13px;
}

.ci-auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  color: #98a2b3;
  font-size: 12px;
  text-transform: uppercase;
}

.ci-auth-divider::before,
.ci-auth-divider::after {
  content: "";
  flex: 1;
  border-top: 1px solid #e4e7ec;
}

.ci-pagination-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0 0;
  flex-wrap: wrap;
}

.ci-table-page-controls {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.ci-page-size-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0;
  color: #667085;
  font-size: 13px;
  white-space: nowrap;
}

.ci-page-size-select {
  width: 76px;
  min-width: 76px;
}

.barcode-scan-input {
  min-height: 58px;
  font-size: 24px;
  font-weight: 700;
}

.barcode-action-row,
.barcode-save-stack,
.barcode-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.barcode-items-table {
  min-width: 980px;
}

.barcode-number {
  min-width: 92px;
}

.barcode-summary-card {
  position: sticky;
  top: 90px;
}

.barcode-search-results {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}

.barcode-search-result {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid #d8e2ef;
  border-radius: 6px;
  background: #fff;
  color: #1c273c;
  font-weight: 700;
  text-align: left;
}

.barcode-search-result:hover,
.barcode-search-result:focus {
  border-color: #0866c6;
  color: #0866c6;
}

.ci-template-code,
.ci-email-template-preview {
  width: 100%;
  padding: 12px;
  border: 1px solid #d8e2ef;
  border-radius: 6px;
  background: #f8fafc;
  color: #1c273c;
  font-size: 13px;
  line-height: 1.5;
}

.ci-email-template-preview {
  max-height: 420px;
  overflow: auto;
  white-space: pre-wrap;
}

.ci-pagination-row .page-link {
  min-width: 32px;
  text-align: center;
}

@media (max-width: 767.98px) {
  .public-invoice-page {
    padding: 18px 0 34px;
  }

  .public-invoice-card {
    max-width: 95%;
    border-radius: 10px;
  }

  .public-invoice-header,
  .invoice-meta-grid,
  .invoice-lower-grid,
  .invoice-action-row {
    display: block;
  }

  .public-invoice-header {
    padding: 18px 20px;
  }

  .invoice-number-block {
    margin-top: 16px;
    text-align: left;
  }

  .public-invoice-body {
    padding: 22px 18px;
  }

  .invoice-detail-list,
  .invoice-summary-table {
    margin-top: 22px;
  }

  .invoice-action-row form,
  .invoice-btn-primary {
    margin-top: 12px;
  }

  .ci-form-card--stacked .card-body {
    padding: 22px 18px;
  }

  .ci-form-shell--narrow {
    max-width: 100%;
  }

  .ci-form-card--stacked input,
  .ci-form-card--stacked select,
  .ci-form-card--stacked textarea {
    max-width: 100% !important;
  }

  .ci-inline-field,
  .ci-section-heading,
  .ci-receipt-card .ci-receipt-header,
  .ci-receipt-card .ci-receipt-row {
    display: block;
  }
}
