/**
 * Lightspeed-inspired list / report / form page chrome (every page)
 * Keeps app data/fields; only visual shell.
 */
body.zoho-theme:not(.pos-sale-theme) {
  --ls-accent: #5844ed;
  --ls-accent-hover: #4634d6;
  --ls-canvas: #f3f4f6;
  --ls-border: #e5e7eb;
  --ls-text: #1f2430;
  --ls-muted: #6b7280;
}

body.zoho-theme .content-header > h1,
body.zoho-theme .content-header h1,
body.zoho-theme .ls-page-title {
  font-size: 26px !important;
  font-weight: 700 !important;
  color: var(--ls-text) !important;
  letter-spacing: -0.02em;
  margin: 0 0 4px;
}

body.zoho-theme .content-header .small-box,
body.zoho-theme .ls-page-subtitle,
body.zoho-theme .content-header p,
body.zoho-theme .content-header small {
  color: var(--ls-muted) !important;
  font-size: 13px;
}

body.zoho-theme .btn-primary,
body.zoho-theme .tw-dw-btn-primary,
body.zoho-theme a.btn-primary,
body.zoho-theme .btn.btn-primary {
  background: var(--ls-accent) !important;
  border-color: var(--ls-accent) !important;
  color: #fff !important;
  border-radius: 6px;
  font-weight: 600;
  box-shadow: none;
}

body.zoho-theme .btn-primary:hover,
body.zoho-theme .btn-primary:focus,
body.zoho-theme .tw-dw-btn-primary:hover {
  background: var(--ls-accent-hover) !important;
  border-color: var(--ls-accent-hover) !important;
}

body.zoho-theme .btn-default,
body.zoho-theme .btn-secondary {
  border-radius: 6px;
  border-color: var(--ls-border);
  background: #fff;
  color: var(--ls-text);
}

body.zoho-theme .box,
body.zoho-theme .box-solid,
body.zoho-theme .panel,
body.zoho-theme .card,
body.zoho-theme .modal-content {
  border: 1px solid var(--ls-border) !important;
  border-radius: 8px !important;
  box-shadow: none !important;
  background: #fff !important;
}

body.zoho-theme .box-header {
  border-bottom: 1px solid #eef0f3;
  padding: 14px 16px;
  background: #fff !important;
}

body.zoho-theme .box-body {
  padding: 12px 16px 16px;
  background: #fff;
}

body.zoho-theme table.dataTable thead th,
body.zoho-theme .table > thead > tr > th {
  background: #f7f8fa !important;
  border-bottom: 1px solid var(--ls-border) !important;
  color: #4b5563 !important;
  font-size: 12px;
  font-weight: 600;
  padding: 12px 14px;
  white-space: nowrap;
}

body.zoho-theme table.dataTable tbody td,
body.zoho-theme .table > tbody > tr > td {
  padding: 14px;
  border-top: 1px solid #eef0f3;
  font-size: 13.5px;
  vertical-align: middle;
  color: var(--ls-text);
}

body.zoho-theme .table > tbody > tr:hover {
  background: #fafafa;
}

body.zoho-theme .table a,
body.zoho-theme table.dataTable a,
body.zoho-theme .table a:not(.btn) {
  color: var(--ls-accent) !important;
  font-weight: 500;
}

body.zoho-theme .table a:hover,
body.zoho-theme table.dataTable a:hover {
  color: var(--ls-accent-hover) !important;
  text-decoration: underline;
}

body.zoho-theme .content-wrapper,
body.zoho-theme .content {
  background: transparent !important;
}

body.zoho-theme:not(.pos-sale-theme) .content-header {
  padding: 4px clamp(16px, 2.2vw, 28px) 10px !important;
}

body.zoho-theme:not(.pos-sale-theme) section.content,
body.zoho-theme:not(.pos-sale-theme) #scrollable-container > .content {
  padding: 4px clamp(16px, 2.2vw, 28px) 28px !important;
}

/* Filter row polish */
body.zoho-theme .form-control,
body.zoho-theme select.form-control,
body.zoho-theme input.form-control {
  border-radius: 6px;
  border-color: #d7dbe3;
  min-height: 36px;
  background: #fff;
  color: var(--ls-text);
}

body.zoho-theme .form-control:focus {
  border-color: var(--ls-accent);
  box-shadow: 0 0 0 3px rgba(88, 68, 237, 0.15);
}

body.zoho-theme .box-header.with-border .btn-primary,
body.zoho-theme .box-tools .btn-primary,
body.zoho-theme .content-header .btn-primary,
body.zoho-theme a.btn-modal.btn-primary,
body.zoho-theme .pull-right > .btn-primary {
  min-height: 36px;
  padding: 8px 16px;
  font-size: 13px;
  border-radius: 6px !important;
}

body.zoho-theme .row.filter-form,
body.zoho-theme .filters-row,
body.zoho-theme .pos-form-filters {
  background: #fff;
  border: 1px solid var(--ls-border);
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 14px;
}

body.zoho-theme .dataTables_wrapper .dataTables_filter input,
body.zoho-theme .dataTables_wrapper .dataTables_length select {
  border-radius: 6px;
  border: 1px solid #d7dbe3;
  min-height: 34px;
}

body.zoho-theme .dataTables_wrapper .dataTables_paginate .paginate_button.current {
  background: var(--ls-accent) !important;
  border-color: var(--ls-accent) !important;
  color: #fff !important;
  border-radius: 6px !important;
}

body.zoho-theme .btn-info,
body.zoho-theme .btn-xs.btn-primary {
  background: var(--ls-accent) !important;
  border-color: var(--ls-accent) !important;
}

body.zoho-theme .btn-info:hover {
  background: var(--ls-accent-hover) !important;
  border-color: var(--ls-accent-hover) !important;
}

body.zoho-theme .breadcrumb {
  background: transparent;
  padding-left: 0;
  margin-bottom: 8px;
}

body.zoho-theme .breadcrumb > li > a {
  color: var(--ls-accent);
}

/* Select2 / tags */
body.zoho-theme .select2-container--default .select2-selection--single,
body.zoho-theme .select2-container--default .select2-selection--multiple {
  border-color: #d7dbe3 !important;
  border-radius: 6px !important;
  min-height: 36px;
}

body.zoho-theme .select2-container--default.select2-container--focus .select2-selection--single,
body.zoho-theme .select2-container--default.select2-container--focus .select2-selection--multiple {
  border-color: var(--ls-accent) !important;
}

body.zoho-theme .select2-container--default .select2-results__option--highlighted[aria-selected] {
  background-color: var(--ls-accent) !important;
}

/* Nav tabs on settings / forms */
body.zoho-theme .nav-tabs {
  border-bottom-color: var(--ls-border);
}

body.zoho-theme .nav-tabs > li > a {
  border-radius: 6px 6px 0 0;
  color: var(--ls-muted);
}

body.zoho-theme .nav-tabs > li.active > a,
body.zoho-theme .nav-tabs > li.active > a:hover,
body.zoho-theme .nav-tabs > li.active > a:focus {
  color: var(--ls-accent) !important;
  border-color: var(--ls-border) var(--ls-border) #fff !important;
  font-weight: 600;
}
