/*
 * Munshi app theme. Loads after vendor.css and app.css and restyles AdminLTE 2 /
 * Bootstrap 3 without touching the markup. Selectors prefixed with body[class*="skin-"]
 * outrank every AdminLTE skin, so the look holds whichever theme colour a business picked.
 */

/* ---------- base ---------- */
body,
.main-header .logo,
.h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6,
.btn, .form-control, .select2-container, .popover, .tooltip, .modal, .dropdown-menu {
  font-family: var(--font-ui);
}
body {
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
a { color: #2f5d8a; }
a:hover, a:focus { color: var(--ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

.content-wrapper,
.right-side,
body[class*="skin-"] .content-wrapper { background: var(--counter); }

/* ---------- top bar ---------- */
body[class*="skin-"] .main-header .navbar {
  background: var(--receipt);
  border-bottom: 1px solid var(--rule);
}
/* the POS button is the one bold accent inside the app: the price tag */
.main-header a.btn[href*="/pos/create"],
.main-header a.btn[href*="/pos/create"]:focus {
  background: var(--tag);
  border-color: var(--tag);
  color: var(--ink);
}
.main-header a.btn[href*="/pos/create"]:hover { background: var(--tag-deep); border-color: var(--tag-deep); color: var(--ink); }

body[class*="skin-"] .main-header .logo,
body[class*="skin-"] .main-header .logo:hover {
  background: var(--ink);
  color: var(--receipt);
  font-weight: 750;
  border-right: 0;
}
body[class*="skin-"] .main-header .navbar .sidebar-toggle,
body[class*="skin-"] .main-header .navbar .nav > li > a {
  color: var(--ink);
}
body[class*="skin-"] .main-header .navbar .sidebar-toggle:hover,
body[class*="skin-"] .main-header .navbar .nav > li > a:hover,
body[class*="skin-"] .main-header .navbar .nav .open > a {
  background: var(--counter);
  color: var(--ink);
}
.main-header .navbar-custom-menu .btn { box-shadow: none; }
/* the header prints today's date in inline white; on the light bar it needs ink */
.main-header .navbar-custom-menu > div[style*="#fff"] { color: var(--slate) !important; }

/* ---------- sidebar ---------- */
/* the light skins force a white sidebar with !important, so this has to match it */
body[class*="skin-"] .main-sidebar,
body[class*="skin-"] .left-side,
body[class*="skin-"] .wrapper {
  background: var(--ink) !important;
}
body[class*="skin-"] .main-sidebar { border-right: 0; }
/* the business name already sits in the header logo; the sidebar copy repeats it */
body[class*="skin-"] .main-sidebar .sidebar > .logo { display: none; }
body[class*="skin-"] .main-sidebar .logo,
body[class*="skin-"] .sidebar > .logo {
  display: block;
  background: var(--ink);
  padding: 18px 18px 14px;
  color: var(--receipt);
  font-weight: 750;
  font-size: 16.8px;
  letter-spacing: -0.01em;
}
body[class*="skin-"] .sidebar-menu > li.header {
  background: transparent;
  color: rgba(252, 252, 250, 0.45);
}
body[class*="skin-"] .sidebar-menu > li > a {
  margin: 1px 10px;
  padding: 10px 12px;
  border-left: 0;
  border-radius: 8px;
  color: rgba(252, 252, 250, 0.74);
  font-weight: 550;
}
body[class*="skin-"] .sidebar-menu > li > a > .fa,
body[class*="skin-"] .sidebar-menu > li > a > .fas {
  width: 22px;
  color: rgba(252, 252, 250, 0.5);
}
/* the light skins set these states with !important too */
body[class*="skin-"] .sidebar-menu > li:hover > a,
body[class*="skin-"] .sidebar-menu > li.menu-open > a {
  background: rgba(252, 252, 250, 0.06) !important;
  color: var(--receipt) !important;
}
body[class*="skin-"] .sidebar-menu > li.active > a {
  background: rgba(255, 207, 51, 0.12) !important;
  color: var(--receipt) !important;
  box-shadow: inset 3px 0 0 var(--tag);
}
body[class*="skin-"] .sidebar-menu > li.active > a > .fa,
body[class*="skin-"] .sidebar-menu > li.active > a > .fas { color: var(--tag); }
body[class*="skin-"] .sidebar-menu > li > .treeview-menu {
  margin: 2px 10px 6px;
  padding: 4px 0;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.22) !important;
}
body[class*="skin-"] .treeview-menu > li > a {
  padding: 7px 12px 7px 34px;
  color: rgba(252, 252, 250, 0.62) !important;
  font-weight: 450;
}
body[class*="skin-"] .treeview-menu > li > a:hover,
body[class*="skin-"] .treeview-menu > li.active > a {
  color: var(--receipt) !important;
  background: transparent !important;
}
body[class*="skin-"] .treeview-menu > li.active > a { font-weight: 650; }
body[class*="skin-"].sidebar-mini.sidebar-collapse .sidebar-menu > li:hover > a > span:not(.pull-right),
body[class*="skin-"].sidebar-mini.sidebar-collapse .sidebar-menu > li:hover > .treeview-menu {
  background: var(--ink);
}

/* ---------- page header ---------- */
.content-header > h1 {
  color: var(--ink);
  font-size: 27.2px;
  font-weight: 800;
  letter-spacing: -0.01em;
  font-stretch: 112%;
  font-variation-settings: "wdth" 112;
}
.content-header > h1 > small { color: var(--slate); font-weight: 450; font-stretch: 100%; font-variation-settings: normal; }
/* Urdu script needs room: a subtitle that wraps under the heading goes on its own line instead of over it */
html[lang="ur"] .content-header > h1 > small { display: block; margin-top: 6px; line-height: 2; }
@media (max-width: 767px) { .content-header > h1 > small { display: block; margin-top: 4px; } }

/* dashboard welcome band: solid ink instead of the blue gradient */
body[class*="skin-"] .content-wrapper .content-header-custom,
.content-header-custom {
  background: var(--ink);
  background-image: none;
  padding: 26px 15px 190px;
}
body[class*="skin-"] .content-wrapper .content-header-custom h1 {
  font-size: 32px;
  color: var(--receipt) !important;
}

/* ---------- boxes ---------- */
.box,
.nav-tabs-custom {
  border: 1px solid var(--rule);
  border-top: 1px solid var(--rule);
  border-radius: 12px;
  box-shadow: none;
  background: var(--receipt);
}
.box.box-solid { border: 1px solid var(--rule); }
/* coloured box variants (box-primary, box-info...) keep the plain card edge */
.box.box { border-top-color: var(--rule); }
.box.box-solid[class*="box-"] > .box-header { background: transparent; color: var(--ink); }
.box.box-solid[class*="box-"] > .box-header .box-title,
.box.box-solid[class*="box-"] > .box-header .btn { color: inherit; }
.box > .box-header { padding: 14px 18px; border-radius: 12px 12px 0 0; }
.box > .box-header.with-border { border-bottom: 1px solid var(--rule); }
.box .box-header > .box-title,
.box .box-header > .fa + .box-title { font-size: 17.6px; font-weight: 700; }
.box > .box-body { padding: 16px 18px; }
.box > .box-footer { border-top: 1px solid var(--rule); background: transparent; border-radius: 0 0 12px 12px; }

/* dashboard figures: flat tiles with a tinted icon chip, no tilting */
.info-box,
.info-box-new-style {
  border: 1px solid var(--rule);
  border-radius: 12px;
  box-shadow: none !important;
  background: var(--receipt);
  transform: none !important;
  transition: none !important;
  min-height: 92px;
}
.info-box-new-style:hover { transform: none !important; }
.info-box-new-style .info-box-icon {
  border-radius: 12px;
  width: 58px;
  height: 58px;
  box-shadow: none !important;
}
.info-box-new-style .info-box-content { margin-left: 58px; padding-left: 14px; }
.info-box-text { color: var(--slate); text-transform: none; font-weight: 550; font-size: 14.4px; }
.info-box-number { font-size: 23.2px; font-weight: 800; letter-spacing: -0.01em; }
.info-box-icon.bg-aqua, .info-box-icon.bg-light-blue, .info-box-icon.bg-blue { background: #e4ecf4 !important; color: #2f5d8a !important; }
.info-box-icon.bg-green, .info-box-icon.bg-olive { background: var(--till-soft) !important; color: var(--till) !important; }
.info-box-icon.bg-yellow, .info-box-icon.bg-orange { background: #fff3c4 !important; color: #8a6400 !important; }
.info-box-icon.bg-red, .info-box-icon.bg-maroon { background: var(--void-soft) !important; color: var(--void) !important; }

.small-box { border-radius: 12px; box-shadow: none; }

/* ---------- buttons ---------- */
.btn {
  border-radius: 8px;
  font-weight: 600;
  border-width: 1.5px;
  box-shadow: none;
}
.btn.btn-flat { border-radius: 8px; }
.btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; box-shadow: var(--focus); }
.btn-primary, .btn-primary:focus { background: var(--ink); border-color: var(--ink); color: var(--receipt); }
.btn-primary:hover, .btn-primary:active, .btn-primary.active, .open > .dropdown-toggle.btn-primary { background: var(--ink-soft); border-color: var(--ink-soft); color: var(--receipt); }
.btn-success, .btn-success:focus { background: var(--till); border-color: var(--till); color: #fff; }
.btn-success:hover, .btn-success:active, .open > .dropdown-toggle.btn-success { background: #176a4c; border-color: #176a4c; color: #fff; }
.btn-danger, .btn-danger:focus { background: var(--void); border-color: var(--void); color: #fff; }
.btn-danger:hover, .btn-danger:active { background: #a83526; border-color: #a83526; color: #fff; }
.btn-warning, .btn-warning:focus { background: var(--tag); border-color: var(--tag); color: var(--ink); }
.btn-warning:hover, .btn-warning:active { background: var(--tag-deep); border-color: var(--tag-deep); color: var(--ink); }
.btn-info, .btn-info:focus { background: #2f5d8a; border-color: #2f5d8a; color: #fff; }
.btn-info:hover, .btn-info:active { background: #264d73; border-color: #264d73; color: #fff; }
.btn-default { background: var(--receipt); border-color: var(--rule); color: var(--ink); }
.btn-default:hover, .btn-default:active, .open > .dropdown-toggle.btn-default { background: var(--counter); border-color: #c4cbbf; color: var(--ink); }

/* ---------- forms ---------- */
.form-control,
.input-group .form-control {
  height: 38px;
  border: 1.5px solid var(--rule);
  border-radius: 8px;
  box-shadow: none;
  color: var(--ink);
}
textarea.form-control { height: auto; }
.form-control.input-sm { height: 32px; border-radius: 7px; }
.form-control:focus { border-color: var(--ink); box-shadow: var(--focus); }
.input-group .form-control:not(:first-child):not(:last-child),
.input-group-addon:not(:first-child):not(:last-child) { border-radius: 0; }
.input-group .form-control:first-child,
.input-group-addon:first-child,
.input-group-btn:first-child > .btn { border-radius: 8px 0 0 8px; }
.input-group .form-control:last-child,
.input-group-addon:last-child,
.input-group-btn:last-child > .btn { border-radius: 0 8px 8px 0; }
.input-group-addon { background: var(--counter); border: 1.5px solid var(--rule); color: var(--slate); }
label { font-weight: 600; color: var(--ink-soft); }
.has-error .form-control { border-color: var(--void); }
.has-error .help-block, .has-error .control-label, label.error { color: var(--void); }

.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple {
  min-height: 38px;
  border: 1.5px solid var(--rule);
  border-radius: 8px;
}
.select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 35px; }
.select2-container--default .select2-selection--single .select2-selection__arrow { height: 35px; }
.select2-container--default.select2-container--focus .select2-selection--multiple,
.select2-container--default.select2-container--open .select2-selection--single { border-color: var(--ink); }
.select2-container--default .select2-results__option--highlighted[aria-selected] { background: var(--ink); color: var(--receipt); }
.select2-dropdown { border: 1.5px solid var(--ink); border-radius: 8px; overflow: hidden; }

/* ---------- tables ---------- */
.table > thead > tr > th,
table.dataTable thead th {
  background: #f4f6f2;
  border-bottom: 1px solid var(--rule) !important;
  color: var(--ink-soft);
  font-weight: 650;
  font-size: 13.8px;
}
.table > tbody > tr > td { border-top: 1px solid #e7ebe4; }
.table-striped > tbody > tr:nth-of-type(odd) { background: #fafbf8; }
.table-hover > tbody > tr:hover { background: #f1f4ee; }
.table-bordered, .table-bordered > thead > tr > th, .table-bordered > tbody > tr > td { border-color: #e2e7df; }
.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
  border: 1.5px solid var(--rule);
  border-radius: 8px;
  padding: 5px 10px;
}
.pagination > li > a, .pagination > li > span { color: var(--ink); border-color: var(--rule); }
.pagination > .active > a, .pagination > .active > a:hover, .pagination > .active > span { background: var(--ink); border-color: var(--ink); color: var(--receipt); }
.pagination > li:first-child > a { border-radius: 8px 0 0 8px; }
.pagination > li:last-child > a { border-radius: 0 8px 8px 0; }
.dt-buttons .btn { margin-right: 4px; }

/* ---------- tabs, dropdowns, modals, labels ---------- */
.nav-tabs-custom > .nav-tabs { border-bottom: 1px solid var(--rule); }
.nav-tabs-custom > .nav-tabs > li { border-top: 0; margin-bottom: -1px; }
.nav-tabs-custom > .nav-tabs > li > a { color: var(--slate); font-weight: 600; }
.nav-tabs-custom > .nav-tabs > li.active { border-top: 0; }
.nav-tabs-custom > .nav-tabs > li.active > a { color: var(--ink); box-shadow: inset 0 -3px 0 var(--tag); }
.dropdown-menu {
  border: 1px solid var(--rule);
  border-radius: 10px;
  box-shadow: 0 12px 30px -12px rgba(28, 27, 41, 0.35);
  padding: 6px;
}
.dropdown-menu > li > a { border-radius: 6px; padding: 7px 12px; }
.dropdown-menu > li > a:hover { background: var(--counter); color: var(--ink); }
.modal-content { border: 0; border-radius: 14px; box-shadow: 0 30px 60px -20px rgba(28, 27, 41, 0.5); }
.modal-header { border-bottom: 1px solid var(--rule); padding: 16px 20px; }
.modal-title { font-weight: 750; }
.modal-footer { border-top: 1px solid var(--rule); }
.label, .badge { border-radius: 999px; font-weight: 650; padding: 0.3em 0.7em; }
.label-success, .bg-green { background-color: var(--till) !important; }
.label-danger, .bg-red { background-color: var(--void) !important; }
.label-warning, .bg-yellow { background-color: var(--tag) !important; color: var(--ink) !important; }
.label-primary { background-color: var(--ink) !important; }
.callout { border-radius: 10px; }
.bg-gray, .footer-total { background-color: var(--counter-deep) !important; color: var(--ink) !important; }

/* the date filter sits on the dark welcome band */
#dashboard_date_filter {
  background: rgba(252, 252, 250, 0.08);
  border-color: rgba(252, 252, 250, 0.35);
  color: var(--receipt);
}
#dashboard_date_filter:hover { background: rgba(252, 252, 250, 0.16); }
.alert { border-radius: 10px; }

/* ================= the older screens: same look as the rest of Munshi ================= */

/* product mark beside the shop name, and the signature at the foot of the menu */
.main-header .logo { display: flex; align-items: center; gap: 10px; }
.main-header .logo .logo-mark { flex: none; }
.main-header .logo .logo-mark .brand__mark { width: 26px; height: 26px; }
.main-header .logo .logo-lg { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-collapse .main-header .logo .logo-mark { margin: 0 auto; }
.sidebar-brand { margin: 18px 10px 24px; padding: 14px 12px 0; border-top: 1px solid rgba(252, 252, 250, 0.1); }
.sidebar-brand .brand { opacity: 0.9; }
.sidebar-brand .brand__name { font-size: 16px; }
.sidebar-brand__note { margin: 4px 0 0 40px; color: rgba(252, 252, 250, 0.45); font-size: 12px; line-height: 1.4; }
.sidebar-collapse .sidebar-brand { display: none; }

/* profile menu: a small card instead of the big coloured panel */
.navbar-nav > .user-menu > .dropdown-menu { width: 264px; padding: 0; border-radius: 12px; overflow: hidden; }
body[class*="skin-"] .main-header li.user-header,
.navbar-nav > .user-menu > .dropdown-menu > li.user-header {
  display: flex; align-items: center; gap: 12px; height: auto; padding: 16px;
  background: var(--receipt) !important; border-bottom: 1px solid var(--rule); text-align: start;
}
.navbar-nav > .user-menu > .dropdown-menu > li.user-header > img {
  width: 44px; height: 44px; margin: 0; border: 1px solid var(--rule); border-radius: 50%; object-fit: cover; flex: none;
}
.user-header__avatar {
  display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%;
  background: var(--ink); color: var(--tag); font-weight: 800; font-size: 16px; letter-spacing: 0.02em;
}
.navbar-nav > .user-menu > .dropdown-menu > li.user-header > p {
  margin: 0; color: var(--ink) !important; font-size: 15px; font-weight: 700; text-align: start; overflow-wrap: anywhere;
}
.navbar-nav > .user-menu > .dropdown-menu > li.user-header > p > small { display: block; margin-top: 2px; color: var(--slate); font-size: 12.8px; font-weight: 500; }
.navbar-nav > .user-menu > .dropdown-menu > .user-footer { display: flex; justify-content: space-between; gap: 8px; padding: 10px 12px; background: var(--receipt); }
.navbar-nav > .user-menu > .dropdown-menu > .user-footer > div { float: none !important; }
.navbar-nav > .user-menu > .dropdown-menu > .user-footer .btn { padding: 6px 14px; }

/* side-tab pages (business settings, invoice and barcode settings...) */
div.pos-tab-container {
  display: flex; flex-wrap: wrap; padding: 0 !important; overflow: hidden;
  background: var(--receipt); border: 1px solid var(--rule); border-radius: 12px; box-shadow: none;
}
div.pos-tab-menu { padding: 10px !important; background: #f4f6f2; border-right: 1px solid var(--rule); }
div.pos-tab-menu div.list-group { margin: 0; }
div.pos-tab-menu div.list-group > a,
div.pos-tab-menu div.list-group > a:first-child,
div.pos-tab-menu div.list-group > a:last-child {
  margin: 1px 0; padding: 9px 12px; border: 0; border-radius: 8px; background: transparent;
  color: var(--ink-soft); font-weight: 600; text-align: start !important;
}
div.pos-tab-menu div.list-group > a .fa,
div.pos-tab-menu div.list-group > a .glyphicon { color: var(--slate); }
div.pos-tab-menu div.list-group > a:hover { background: var(--counter-deep); color: var(--ink); }
div.pos-tab-menu div.list-group > a.active,
div.pos-tab-menu div.list-group > a.active:hover,
div.pos-tab-menu div.list-group > a.active .fa,
div.pos-tab-menu div.list-group > a.active .glyphicon { background: var(--ink); color: var(--receipt); border-color: var(--ink); }
div.pos-tab-menu div.list-group > a.active { box-shadow: inset 3px 0 0 var(--tag); }
div.pos-tab-menu div.list-group > a.active:after { display: none; }
div.pos-tab-content { padding: 20px 22px; background: transparent; }
@media (max-width: 767px) {
  div.pos-tab-container { display: block; }
  div.pos-tab-menu, div.pos-tab { width: 100%; }
  div.pos-tab-menu { border-right: 0; border-bottom: 1px solid var(--rule); }
  div.pos-tab-menu div.list-group { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
  div.pos-tab-menu div.list-group::-webkit-scrollbar { display: none; }
  div.pos-tab-menu div.list-group > a { flex: none; white-space: nowrap; }
  div.pos-tab-content { padding: 16px; }
}

/* table tools: quiet pills instead of the row of square export buttons */
.dataTables_wrapper .dt-buttons { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.dataTables_wrapper .dt-buttons .btn,
.dataTables_wrapper .dt-buttons .btn.btn-sm {
  margin: 0; padding: 5px 12px; border: 1.5px solid var(--rule); border-radius: 999px;
  background: var(--receipt); color: var(--ink-soft); font-size: 13px; font-weight: 600;
}
.dataTables_wrapper .dt-buttons .btn:hover { background: var(--counter); border-color: #c4cbbf; color: var(--ink); }
.dataTables_wrapper .dt-buttons .btn .fa,
.dataTables_wrapper .dt-buttons .btn .fas { color: var(--slate); }
.dataTables_wrapper .dataTables_length label,
.dataTables_wrapper .dataTables_filter label,
.dataTables_wrapper .dataTables_info { color: var(--slate); font-weight: 500; }
/* "Processing…": a centred pill with a spinner. Bootstrap's own rule (div.dataTables_wrapper div…) gives it a
   200px width and a -100px margin, which pushed it half out of the table, so this matches that selector */
div.dataTables_wrapper div.dataTables_processing {
  position: absolute; top: 40%; left: 50%; z-index: 5;
  display: inline-flex; align-items: center; gap: 10px;
  width: auto; height: auto; margin: 0; padding: 9px 18px; transform: translate(-50%, -50%);
  border: 0; border-radius: 999px; background: var(--ink); color: var(--receipt);
  font-size: 14px; font-weight: 600; line-height: 1.2; text-align: start; white-space: nowrap;
  box-shadow: 0 10px 24px -12px rgba(28, 27, 41, 0.5);
}
div.dataTables_wrapper div.dataTables_processing::before {
  content: ""; flex: none; width: 15px; height: 15px; border: 2px solid rgba(252, 252, 250, 0.3); border-top-color: var(--tag);
  border-radius: 50%; animation: munshi-spin 0.7s linear infinite;
}
@keyframes munshi-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { div.dataTables_wrapper div.dataTables_processing::before { animation-duration: 2s; } }
/* with fewer columns the table still fills its card */
.dataTables_wrapper table.dataTable, .dataTables_scrollHeadInner { width: 100% !important; }
.dataTables_scrollBody, .table-responsive { scrollbar-width: thin; scrollbar-color: #c4cbbf transparent; }
.dataTables_scrollBody::-webkit-scrollbar, .table-responsive::-webkit-scrollbar { height: 8px; width: 8px; }
.dataTables_scrollBody::-webkit-scrollbar-thumb, .table-responsive::-webkit-scrollbar-thumb { background: #c4cbbf; border-radius: 999px; }
/* the actions menu on each row */
table .btn-group > .btn-xs.dropdown-toggle,
table .btn-xs.btn-info.dropdown-toggle {
  padding: 3px 10px; border: 1.5px solid var(--rule); border-radius: 999px;
  background: var(--receipt); color: var(--ink); font-size: 12.5px; font-weight: 650;
}
table .btn-group > .btn-xs.dropdown-toggle:hover,
table .btn-group.open > .btn-xs.dropdown-toggle { background: var(--ink); border-color: var(--ink); color: var(--receipt); }
table img.product-thumbnail-small { border-radius: 6px; object-fit: cover; }

/* list toolbar: search and tools on one line, page size at the end */
.dt-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-bottom: 14px; }
.dt-toolbar__main { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; flex: 1 1 420px; min-width: 0; }
.dt-toolbar__main .dataTables_filter { float: none; text-align: start; margin: 0; flex: 0 1 300px; }
.dt-toolbar__main .dataTables_filter label { display: block; margin: 0; }
.dt-toolbar__main .dataTables_filter input { width: 100% !important; margin: 0 !important; height: 36px; padding-inline-start: 34px !important;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%235d6372' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='7' cy='7' r='5'/%3E%3Cpath d='m11 11 3.5 3.5'/%3E%3C/svg%3E") no-repeat 11px center; }
[dir="rtl"] .dt-toolbar__main .dataTables_filter input { background-position: calc(100% - 11px) center; }
.dt-toolbar__end .dataTables_length { float: none; margin: 0; }
.dt-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; }
.dt-footer .dataTables_info, .dt-footer .dataTables_paginate { float: none; padding: 0 !important; margin: 0; }
div.dt-button-collection {
  width: auto; min-width: 190px; margin-top: 6px; padding: 6px; border: 1px solid var(--rule); border-radius: 10px;
  background: var(--receipt); box-shadow: 0 12px 30px -12px rgba(28, 27, 41, 0.35);
}
div.dt-button-collection .dt-button,
div.dt-button-collection .btn {
  display: block; width: 100%; margin: 0 0 2px !important; padding: 8px 12px !important; border: 0 !important; border-radius: 6px !important;
  background: transparent !important; color: var(--ink) !important; font-size: 14px; font-weight: 550; text-align: start; box-shadow: none !important;
}
div.dt-button-collection .dt-button:hover, div.dt-button-collection .btn:hover { background: var(--counter) !important; }
div.dt-button-collection .dt-button .fa, div.dt-button-collection .btn .fa { width: 18px; color: var(--slate); }
div.dt-button-background { background: transparent !important; }
/* the filter box header: a button that opens the filters, with how many are in use */
#accordion > .box-header .box-title a { display: inline-flex; align-items: center; gap: 8px; }
#accordion > .box-header .box-title a::after {
  content: ""; width: 8px; height: 8px; margin-inline-start: 4px; border: solid var(--slate); border-width: 0 2px 2px 0;
  transform: rotate(45deg) translateY(-2px); transition: transform 0.15s;
}
#accordion > .box-header .box-title a.collapsed::after { transform: rotate(-45deg); }
[dir="rtl"] #accordion > .box-header .box-title a.collapsed::after { transform: rotate(135deg); }
.filter-count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--tag); color: var(--ink); font-size: 12.5px; font-weight: 800; }
.filter-count[hidden] { display: none; }

/* multi-select chips */
.select2-container--default .select2-selection--multiple .select2-selection__choice {
  padding: 1px 10px; border: 1px solid var(--rule); border-radius: 999px;
  background: var(--counter-deep); color: var(--ink); font-weight: 600;
}
.select2-container--default .select2-selection--multiple .select2-selection__choice__remove { margin-right: 5px; color: var(--slate); }
.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover { color: var(--void); }

/* icons in front of fields sit inside the field, not in a grey block */
.input-group-addon,
.input-group-addon[class*="bg-"] { background: var(--receipt) !important; color: var(--slate) !important; border-color: var(--rule) !important; }
.input-group-addon:first-child { border-right: 0; }
.input-group-addon:first-child + .form-control,
.input-group-addon:first-child + .select2-container .select2-selection { border-left: 0; }
.input-group:focus-within > .input-group-addon,
.input-group:focus-within > .form-control { border-color: var(--ink) !important; }
.text-primary { color: var(--ink) !important; }
.btn-link, .btn-link:focus { color: #2f5d8a; }
.btn-link:hover { color: var(--ink); }

/* file pickers */
input[type="file"] { color: var(--slate); font-size: 13.6px; }
input[type="file"]::file-selector-button {
  margin-right: 10px; padding: 6px 14px; border: 1.5px solid var(--rule); border-radius: 8px;
  background: var(--receipt); color: var(--ink); font: inherit; font-weight: 600; cursor: pointer;
}
input[type="file"]::file-selector-button:hover { background: var(--counter); }

/* tick boxes and radio buttons (the old square-blue skin) */
.icheckbox_square-blue,
.iradio_square-blue {
  position: relative; width: 20px; height: 20px;
  background: #fff !important; border: 1.5px solid #b9c1b4; border-radius: 6px;
}
.iradio_square-blue { border-radius: 50%; }
.icheckbox_square-blue.hover, .iradio_square-blue.hover { border-color: var(--ink); }
.icheckbox_square-blue.checked { background: var(--ink) !important; border-color: var(--ink); }
.icheckbox_square-blue.checked::after {
  content: ""; position: absolute; left: 5.5px; top: 1.5px; width: 6px; height: 11px;
  border: solid var(--tag); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg);
}
.iradio_square-blue.checked { border-color: var(--ink); }
.iradio_square-blue.checked::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--ink); }
.icheckbox_square-blue.disabled, .iradio_square-blue.disabled { opacity: 0.5; }

/* the old POS colour helpers, mapped onto the Munshi colours */
.bg-purple, .bg-maroon, .bg-navy, .bg-light-blue, .bg-blue, .bg-aqua { background-color: var(--ink) !important; color: var(--receipt) !important; }
.bg-teal, .bg-olive { background-color: var(--till) !important; color: #fff !important; }
.bg-orange { background-color: var(--tag) !important; color: var(--ink) !important; }
.label-info, .label-default { background-color: var(--counter-deep) !important; color: var(--ink) !important; }
.blue-header th, .add-product-price-table th, .table-th-green th, .table > thead > tr[class*="bg-"] > th {
  background: #f4f6f2 !important; color: var(--ink-soft) !important;
}
.box-header .box-title a, .box-header > a { color: var(--ink); }
.callout.callout-info { border-left-color: #2f5d8a; background: #e9f0f6 !important; color: var(--ink) !important; }
.callout.callout-warning { border-left-color: var(--tag-deep); background: #fff6d6 !important; color: var(--ink) !important; }
.callout.callout-success { border-left-color: var(--till); background: var(--till-soft) !important; color: var(--ink) !important; }
.callout.callout-danger { border-left-color: var(--void); background: var(--void-soft) !important; color: var(--ink) !important; }

/* date pickers */
.daterangepicker td.active, .daterangepicker td.active:hover,
.datepicker table tr td.active, .datepicker table tr td.active:hover, .datepicker table tr td span.active {
  background: var(--ink) !important; background-image: none !important; color: var(--receipt) !important; text-shadow: none;
}
.daterangepicker .ranges li.active { background: var(--ink); color: var(--receipt); }
.daterangepicker .applyBtn { background: var(--ink); border-color: var(--ink); }

/* ---------- forms: plain sections, a fold for rarely used fields, a save bar always in reach ---------- */
.mform { max-width: 1100px; }
.mform__section,
.mform__more { margin-bottom: 16px; background: var(--receipt); border: 1px solid var(--rule); border-radius: 12px; }
.mform__section { padding: 18px 20px 4px; }
/* old screens put floating columns straight in a card: the card holds them */
.mform__section::after, .mform__total::after { content: ""; display: table; clear: both; }
.mform__more { clear: both; }
/* the sale table keeps no empty space under it (that height is for the POS screen) */
.mform .pos_product_div { min-height: 0; height: auto; max-height: none; }
.mform__title { margin: 0 0 14px; color: var(--ink); font-size: 17.6px; font-weight: 750; letter-spacing: -0.01em; }
.mform .form-group { margin-bottom: 14px; }
.mform .help-block { margin-top: 4px; color: var(--slate); font-size: 13px; font-style: normal; }
.mform__check { display: inline-flex; align-items: center; gap: 10px; margin: 4px 0 0; font-weight: 600; }
.mform .select2-container { width: 100% !important; }
.mform__more > summary {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 16px 20px;
  cursor: pointer; list-style: none; border-radius: 12px;
}
.mform__more > summary::-webkit-details-marker { display: none; }
.mform__more > summary::before {
  content: ""; align-self: center; width: 9px; height: 9px; margin-inline-end: 2px;
  border: solid var(--ink); border-width: 0 2px 2px 0; transform: rotate(-45deg); transition: transform 0.15s;
}
[dir="rtl"] .mform__more > summary::before { transform: rotate(135deg); }
.mform__more[open] > summary::before { transform: rotate(45deg); }
.mform__more > summary:hover { background: #f4f6f2; }
.mform__more[open] > summary { border-radius: 12px 12px 0 0; border-bottom: 1px solid var(--rule); }
.mform__more-title { color: var(--ink); font-size: 16px; font-weight: 750; }
.mform__more-hint { color: var(--slate); font-size: 13.6px; }
.mform__more > .row { margin: 0; padding: 16px 5px 4px; }
.mform__savebar {
  position: sticky; bottom: 0; z-index: 20; display: flex; flex-wrap: wrap; gap: 8px;
  margin: 0 -15px; padding: 12px 15px; background: rgba(238, 241, 236, 0.95); border-top: 1px solid var(--rule);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.mform__savebar .btn-big { padding: 10px 18px; font-size: 15px; }
@media (max-width: 767px) {
  .mform__section { padding: 16px 14px 2px; }
  .mform__savebar .btn { flex: 1 1 100%; }
}
/* the price table as a plain strip: cost, profit, sale price */
.mform .add-product-price-table { margin-bottom: 6px; border: 0; }
.mform .add-product-price-table > tbody > tr > th {
  padding: 0 8px 6px !important; border: 0 !important; background: transparent !important; color: var(--ink) !important; font-weight: 700;
}
.mform .add-product-price-table > tbody > tr > td { padding: 0 8px !important; border: 0 !important; vertical-align: top; }
.mform .add-product-price-table .form-control.input-sm { height: 38px; font-size: 15px; }
.mform .add-product-price-table label { font-size: 12.8px; color: var(--slate); }
/* a shop without tax rates: one cost box, no before/with tax labels (the hidden box is kept in step by product.js) */
.mform--no-tax .single-price-table td:first-child > .col-sm-6:nth-child(2) { display: none; }
.mform--no-tax .single-price-table td:first-child > .col-sm-6:first-child { width: 100%; padding: 0; }
.mform--no-tax .single-price-table td label,
.mform--no-tax .single-price-table td > br { display: none; }
/* the fold inside a pop-up form, and the individual / business choice beside the contact type */
.mform__more--modal { margin: 4px 0 0; }
.mform__more--modal > .row { padding-top: 14px; }
.mform__choice { display: flex; flex-wrap: wrap; gap: 6px 18px; padding-top: 30px; }
.mform__choice .radio-inline { display: inline-flex; align-items: center; gap: 7px; margin: 0; padding-left: 0; font-weight: 600; }
.mform__choice .radio-inline input[type="radio"] { position: static; margin: 0; width: 17px; height: 17px; accent-color: var(--ink); }
@media (max-width: 991px) { .mform__choice { padding-top: 0; } }
/* a fold inside a section, a fold whose content is not a grid row, a total kept in view */
.mform__more--inner { margin: 0 0 16px; border-style: dashed; background: transparent; }
.mform__more-body { padding: 16px 20px 6px; }
.mform__more-body::after { content: ""; display: table; clear: both; }
.mform__section > .box-body { padding: 0; }
/* the payment partial puts a row straight inside a row; without this its fields touch the card edge */
.mform__section .payment_row > .row { margin-left: 0; margin-right: 0; }
.mform__rule { margin: 8px 0 18px; border-top: 1px solid var(--rule); }
.mform__total { margin: 0 0 16px; padding: 14px 20px; background: var(--receipt); border: 1px solid var(--rule); border-radius: 12px; font-size: 18px; }
.mform__total .row { margin: 0; }
/* what is still to pay, under a payment */
.mform__due { margin: 4px 0 14px; text-align: end; color: var(--ink); }
/* old boxed parts placed inside a section or the fold lose their own card */
.mform__section .box, .mform__more .box { margin: 0; border: 0; background: transparent; box-shadow: none; }
.mform__section .box > .box-body, .mform__more .box > .box-body { padding: 0; }
/* a single item has one photo, chosen above */
.mform .single-price-table tr > th:nth-child(4),
.mform .single-price-table tr > td:nth-child(4) { display: none; }

/* right to left (Urdu): the tab edge, the menu divider and the field icons swap sides */
[dir="rtl"] div.pos-tab-menu { border-right: 0; border-left: 1px solid var(--rule); }
[dir="rtl"] div.pos-tab-menu div.list-group > a.active { box-shadow: inset -3px 0 0 var(--tag); }
[dir="rtl"] .input-group-addon:first-child { border-right: 1.5px solid var(--rule); border-left: 0; }
[dir="rtl"] .input-group-addon:first-child + .form-control,
[dir="rtl"] .input-group-addon:first-child + .select2-container .select2-selection { border-left: 1.5px solid var(--rule); border-right: 0; }
@media (max-width: 767px) { [dir="rtl"] div.pos-tab-menu { border-left: 0; } }

/* rich-text editor: no menu bar or vendor badge */
.tox .tox-menubar, .tox .tox-statusbar__branding { display: none !important; }
.tox.tox-tinymce { border: 1.5px solid var(--rule) !important; border-radius: 8px !important; }

/* ================= sign-in, registration and password pages ================= */
body.auth-shell { margin: 0; background: var(--receipt); }
.auth-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.85fr) minmax(0, 1.15fr);
  min-height: 100vh;
}
.auth-panel {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 40px 48px;
  overflow: hidden;
  background: var(--ink);
  color: var(--receipt);
}
.auth-panel__home { text-decoration: none; }
.auth-panel__logo { max-width: 160px; height: auto; }
.auth-panel__line { margin: 24px 0 0; max-width: 13ch; font-size: clamp(32px, 3.2vw, 44.8px); font-weight: 800; line-height: 1.05; letter-spacing: -0.01em; }
.auth-panel__receipt { width: 300px; max-width: 100%; transform: rotate(-3deg); transform-origin: top left; }
.auth-panel__receipt .receipt__paper { box-shadow: 0 24px 40px -20px rgba(0, 0, 0, 0.6); }
.auth-panel__note { margin-top: auto; color: rgba(252, 252, 250, 0.6); }

.auth-main { display: flex; flex-direction: column; min-width: 0; }
.auth-topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
  padding: 18px 40px;
  border-bottom: 1px solid var(--rule);
}
.auth-topbar__brand { display: none; text-decoration: none; }
.auth-topbar__lang { width: auto; min-width: 150px; }
.auth-topbar__switch { margin-left: auto; display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; color: var(--slate); }
.auth-topbar__switch a { font-weight: 700; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.auth-body { flex: 1; padding: 48px 40px 64px; }

.auth-card { max-width: 420px; }
.auth-title { color: var(--ink); margin: 0 0 28px; font-size: 35.2px; font-weight: 800; letter-spacing: -0.01em; }
.auth-label { display: block; margin-bottom: 6px; }
.auth-shell .form-control { height: 44px; font-size: 16px; }
.auth-shell .form-group { margin-bottom: 18px; }
.auth-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 26px; }
.auth-actions .btn-login { padding: 11px 28px; font-size: 16px; background: var(--tag); border-color: var(--tag); color: var(--ink); }
.auth-actions .btn-login:hover { background: var(--tag-deep); border-color: var(--tag-deep); color: var(--ink); }
.auth-link { font-weight: 600; color: var(--ink-soft); text-decoration: underline; text-underline-offset: 3px; }
.auth-demo { margin-top: 36px; }

/* older auth markup (password pages, registration) inside the new shell */
.auth-shell .login-form { float: none; width: 100%; max-width: 780px; padding: 0; }
.auth-shell .form-header,
.auth-shell .text-white { color: var(--ink) !important; }
.auth-shell .form-header { margin: 0 0 24px; font-size: 28.8px; font-weight: 800; line-height: 1.15; font-stretch: 112%; font-variation-settings: "wdth" 112; }
.auth-shell .right-col-content-register .form-header { font-size: 25.6px; }

/* registration steps (jQuery Steps): a real sequence, so the numbers stay.
   app.css pins the steps to 33% and the content to slate with !important. */
.auth-shell .wizard > .steps > ul { display: flex; flex-wrap: wrap; gap: 8px; }
.auth-shell .wizard > .steps > ul > li { float: none; width: auto !important; flex: 1 1 150px; margin: 0; }
.auth-shell .wizard > .steps a { height: 100%; }
.auth-shell .wizard > .steps a,
.auth-shell .wizard > .steps a:hover,
.auth-shell .wizard > .steps a:active {
  margin: 0;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 650;
}
.auth-shell .wizard > .steps .current a,
.auth-shell .wizard > .steps .current a:hover { background: var(--ink); color: var(--receipt); }
.auth-shell .wizard > .steps .done a,
.auth-shell .wizard > .steps .done a:hover { background: var(--till-soft); color: var(--till); }
.auth-shell .wizard > .steps .disabled a { background: var(--counter); color: var(--slate); }
.auth-shell .wizard > .content {
  margin: 18px 0;
  min-height: 0;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--receipt) !important;
}
.auth-shell .wizard > .content > .body { position: relative; width: 100%; height: auto; padding: 22px; }
.auth-shell .wizard legend { margin-bottom: 18px; padding: 0 15px 10px; border-bottom: 1px solid var(--rule); color: var(--ink); font-size: 19.2px; font-weight: 750; }
.auth-shell .wizard > .actions a,
.auth-shell .wizard > .actions a:hover,
.auth-shell .wizard > .actions a:active {
  padding: 10px 22px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--receipt);
  font-weight: 650;
}
.auth-shell .wizard > .actions .disabled a { background: var(--counter); color: var(--slate); }
.auth-shell .wizard > .actions li:last-child a[href="#finish"] { background: var(--tag); color: var(--ink); }

@media (max-width: 900px) {
  .auth-grid { grid-template-columns: 1fr; }
  .auth-panel { display: none; }
  .auth-topbar { padding: 14px 20px; }
  .auth-topbar__brand { display: inline-flex; margin-right: auto; }
  .auth-topbar__switch { margin-left: 0; width: 100%; }
  .auth-body { padding: 32px 20px 48px; }
  .auth-shell .wizard > .content > .body { padding: 16px 0; }
  .auth-shell .wizard legend { padding: 0 15px 10px; }
}

/* ================= POS sale screen (body.lockscreen) ================= */
body.lockscreen { background: var(--counter); }
.text-info { color: #2f5d8a !important; }

/* top bar: one quiet button style; close register keeps the void colour */
.pos-header .btn,
.pos-header .btn:focus {
  background: var(--receipt) !important;
  border: 1px solid var(--rule) !important;
  border-radius: 8px;
  color: var(--ink) !important;
}
.pos-header .btn:hover { background: var(--ink) !important; border-color: var(--ink) !important; color: var(--receipt) !important; }
.pos-header #close_register { color: var(--void) !important; }
.pos-header #close_register:hover { background: var(--void) !important; border-color: var(--void) !important; color: #fff !important; }

/* product tiles */
.product_box {
  padding: 8px 6px 6px;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: var(--receipt);
  font-weight: 600;
  transition: border-color 0.12s ease;
}
.product_box:hover { border-color: var(--ink); }
.product_box .image-container { height: 64px; border-radius: 6px; }
.product_box .text { color: var(--ink); }

/* the cart */
#pos_table a, #pos_table .text-link { color: var(--ink) !important; font-weight: 600; }

/* action bar: the money buttons carry colour, everything else stays quiet */
.pos-form-actions {
  background: var(--receipt);
  border-top: 1px solid var(--rule);
  box-shadow: 0 -8px 20px -16px rgba(28, 27, 41, 0.45);
}
.pos-form-actions .btn {
  margin: 0 4px 6px 0;
  padding: 9px 14px;
  border: 1px solid var(--rule) !important;
  border-radius: 8px;
  background: var(--receipt) !important;
  color: var(--ink) !important;
  font-weight: 650;
}
.pos-form-actions .btn:hover { border-color: var(--ink) !important; }
.pos-form-actions [data-pay_method="card"],
.pos-form-actions #pos-finalize { background: var(--ink) !important; border-color: var(--ink) !important; color: var(--receipt) !important; }
.pos-form-actions [data-pay_method="card"]:hover,
.pos-form-actions #pos-finalize:hover { background: var(--ink-soft) !important; }
.pos-form-actions [data-pay_method="cash"] { background: var(--till) !important; border-color: var(--till) !important; color: #fff !important; }
.pos-form-actions [data-pay_method="cash"]:hover { background: #17664a !important; }
.pos-form-actions #pos-cancel,
.pos-form-actions #pos-delete { color: var(--void) !important; }
.pos-form-actions #pos-cancel:hover,
.pos-form-actions #pos-delete:hover { background: var(--void-soft) !important; border-color: var(--void) !important; }

/* the total reads like the bottom line of a receipt */
.pos-total.bg-navy {
  padding: 8px 16px;
  border-radius: 10px;
  background: var(--ink) !important;
  vertical-align: top;
}
.pos-total span.text { width: auto; margin-right: 10px; font-size: 12.8px; line-height: 1.2; color: rgba(252, 252, 250, 0.75); }
.pos-total span.number { font-family: var(--font-receipt); font-size: 28px; font-weight: 700; color: var(--tag); }
