/*
 * AKVOL theme — loaded last in layouts/app.blade.php (and the login page), on top of the
 * vendor styles. Remove the <link> to return to the vendor look.
 *
 * Navy shell, white surfaces, orange as the single accent; system font.
 */
:root {
  --ak-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --ak-navy-900: #0f1a26;
  --ak-navy-800: #16222f;
  --ak-navy-700: #1f2f40;
  --ak-navy-600: #2b3e52;
  --ak-navy-text: #b8c4d1;

  --ak-accent: #e8650a;
  --ak-accent-600: #cf5806;
  --ak-accent-50: #fff4ec;
  --ak-accent-ring: rgba(232, 101, 10, 0.18);

  --ak-bg: #f3f5f8;
  --ak-surface: #ffffff;
  --ak-border: #e3e8ee;
  --ak-border-soft: #eef1f5;
  --ak-text: #1b2633;
  --ak-text-2: #3e4b5b;
  --ak-muted: #6b7889;
  --ak-link: #1f3a5f;

  --ak-green: #067647;  --ak-green-bg: #ecfdf3;
  --ak-red: #b42318;    --ak-red-bg: #fef3f2;
  --ak-blue: #175cd3;   --ak-blue-bg: #eff8ff;
  --ak-amber: #b54708;  --ak-amber-bg: #fffaeb;

  --ak-radius: 12px;
  --ak-radius-sm: 8px;
  --ak-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
  --ak-shadow-lg: 0 12px 32px rgba(16, 24, 40, 0.14);
}

/* ===================================================================== base */
html body {
  font-family: var(--ak-font) !important;
  font-size: 14px;
  color: var(--ak-text);
  background: var(--ak-bg) !important;
  -webkit-font-smoothing: antialiased;
}

body .right_col,
body .main_container,
body .container.body {
  background: var(--ak-bg) !important;
}

body .right_col {
  padding: 0 24px 32px !important;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--ak-text);
  font-weight: 600;
}

a {
  color: var(--ak-link);
}

::selection {
  background: var(--ak-accent-ring);
}

* {
  scrollbar-width: thin;
  scrollbar-color: #c4ccd6 transparent;
}

/* ================================================================== sidebar */
body .left_col {
  background: var(--ak-navy-800) !important;
  box-shadow: 1px 0 0 rgba(255, 255, 255, 0.04);
}

body .nav_title {
  background: var(--ak-navy-900) !important;
  border: 0 !important;
  height: auto !important;
  min-height: 72px;
  display: flex !important;
  align-items: center;
  padding: 14px 18px !important;
}

body .nav_title .site_title {
  display: flex;
  align-items: center;
  width: 100%;
  height: auto;
  padding: 0 !important;
  margin: 0 !important;
}

/* the uploaded logo is dark on transparent: show it white on the navy bar */
body .nav_title .site_title img.profilepic {
  display: block;
  width: 100% !important;
  max-width: 190px;
  height: auto !important;
  max-height: 46px;
  object-fit: contain;
  object-position: left center;
  filter: brightness(0) invert(1);
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  margin: 0 !important;
}

body #sidebar-menu {
  padding: 12px 0 24px;
}

body #sidebar-menu .side-menu > li {
  margin: 1px 10px;
  border-radius: var(--ak-radius-sm);
}

/* the layout pins menu text with -webkit-text-fill-color, so colour alone does not apply */
body #sidebar-menu a,
body #sidebar-menu .dropdown > a {
  -webkit-text-fill-color: currentColor !important;
}

body #sidebar-menu .side-menu > li > a,
body #sidebar-menu .side-menu > li > .dropdown > a {
  display: flex !important;
  align-items: center;
  gap: 2px;
  color: var(--ak-navy-text) !important;
  background: transparent !important;
  font-size: 13.5px;
  font-weight: 500;
  padding: 9px 12px !important;
  border-radius: var(--ak-radius-sm);
  transition: background-color 0.15s, color 0.15s;
}

body #sidebar-menu .side-menu > li > a i,
body #sidebar-menu .side-menu > li > .dropdown > a i {
  width: 18px;
  text-align: center;
  color: #7f91a5 !important;
  font-size: 14px;
  background: transparent !important;
}

body #sidebar-menu .dropdown-right-icon {
  margin-left: auto;
  font-size: 10px;
  opacity: 0.6;
}

body #sidebar-menu .side-menu > li > a:hover,
body #sidebar-menu .side-menu > li > .dropdown:hover > a {
  background: var(--ak-navy-700) !important;
  color: #fff !important;
}

body #sidebar-menu .side-menu > li > a:hover i,
body #sidebar-menu .side-menu > li > .dropdown:hover > a i {
  color: #fff !important;
}

body #sidebar-menu li.active,
body #sidebar-menu li.current-page,
body #sidebar-menu .dropdown:hover {
  background: transparent !important;
  width: auto !important;
}

body #sidebar-menu .side-menu > li.active > a,
body #sidebar-menu .side-menu > li.active > .dropdown > a {
  background: var(--ak-navy-600) !important;
  color: #fff !important;
  box-shadow: inset 3px 0 0 var(--ak-accent);
}

body #sidebar-menu .side-menu > li.active > a i,
body #sidebar-menu .side-menu > li.active > .dropdown > a i {
  color: var(--ak-accent) !important;
}

/* flyout submenus */
body #sidebar-menu .dropdown-content {
  background: var(--ak-surface) !important;
  border: 1px solid var(--ak-border);
  border-radius: var(--ak-radius-sm);
  box-shadow: var(--ak-shadow-lg);
  padding: 6px !important;
  min-width: 210px;
}

body #sidebar-menu .dropdown-content a {
  color: var(--ak-text-2) !important;
  padding: 8px 12px !important;
  margin: 0 !important;
  border-radius: 6px;
  font-size: 13.5px;
}

body #sidebar-menu .dropdown-content a:hover {
  background: var(--ak-accent-50) !important;
  color: var(--ak-accent-600) !important;
}

/* ================================================================== top bar */
body .page-title {
  position: sticky;
  top: 0;
  z-index: 40;
  margin: 0 -24px 20px !important;
  padding: 0 !important;
  background: var(--ak-surface) !important;
  border-bottom: 1px solid var(--ak-border);
}

body .page-title .nav_menu {
  background: transparent !important;
  border: 0 !important;
  margin: 0 !important;
  padding: 0 24px !important;
  min-height: 64px;
  display: flex;
  align-items: center;
}

body .page-title .nav_menu > nav {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

body .page-title .nav_menu > nav > .nav.toggle {
  margin-right: auto;
  order: 0;
}

body .page-title .nav_menu > nav > .global_plus {
  order: 1;
}

body .page-title .nav_menu > nav > .dropdown_profile {
  order: 2;
  display: flex;
  align-items: center;
  gap: 6px;
}

body .page-title .nav_menu > nav img.m-1,
body .page-title .nav_menu > nav .dropdown_profile img:not(.rounded) {
  width: 38px !important;
  height: 38px !important;
  border-radius: 10px;
}

body .page-title .nav.toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 !important;
  width: auto !important;
}

body .page-title .titleup,
body .page-title .titleup a {
  font-size: 20px !important;
  font-weight: 600 !important;
  color: var(--ak-text) !important;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

body .page-title .titleup img.back-arrow,
body .page-title .titleup img[class*="back"] {
  width: 20px;
  height: 20px;
  opacity: 0.7;
}

body .page-title .titleup img {
  border-radius: 6px;
}

body .dropdown_profile img.rounded,
body .authpic img {
  border-radius: 50% !important;
  box-shadow: 0 0 0 2px var(--ak-surface), 0 0 0 3px var(--ak-border);
}

/* ============================================================ panels/cards */
body .x_panel,
body .card,
body .panel,
body .info-box {
  background: var(--ak-surface) !important;
  border: 1px solid var(--ak-border) !important;
  border-radius: var(--ak-radius) !important;
  box-shadow: var(--ak-shadow) !important;
}

body .panel-body.shadow,
body .shadow {
  box-shadow: none !important;
}

body .x_title,
body .panel-heading,
body .card-header {
  border-bottom: 1px solid var(--ak-border-soft) !important;
  background: transparent !important;
}

body .x_title h2,
body .panel-title,
body .card-title {
  font-size: 15px !important;
  font-weight: 600 !important;
  color: var(--ak-text) !important;
}

/* ============================================================== dashboard */
body .panel.info-box {
  overflow: hidden;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

a:hover > body .panel.info-box,
a:hover .panel.info-box {
  border-color: #cfd6df !important;
  box-shadow: 0 6px 16px rgba(16, 24, 40, 0.08) !important;
  transform: translateY(-1px);
}

body .panel-body.member {
  display: flex !important;
  align-items: center;
  gap: 16px;
  padding: 20px !important;
  text-align: left !important;
  min-height: 0 !important;
  height: auto !important;
  border: 0 !important;
}

body .panel-body.member img.dashboard_background {
  width: 52px !important;
  height: 52px !important;
  padding: 12px;
  border-radius: 14px;
  flex: 0 0 52px;
  margin: 0 !important;
}

body .panel-body.member .info-box-stats {
  margin: 0 !important;
  padding: 0 !important;
  text-align: left !important;
}

body .panel-body.member .info-box-stats br {
  display: none;
}

body .panel-body.member .counter {
  font-size: 26px !important;
  font-weight: 700 !important;
  color: var(--ak-text) !important;
  line-height: 1.1;
  margin: 0 0 4px !important;
  letter-spacing: -0.02em;
}

body .panel-body.member .info-box-title {
  font-size: 11.5px !important;
  font-weight: 600;
  color: var(--ak-muted) !important;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* "recently added" lists and other icon lists */
body .right_col li img.rounded[src*="vehicle"],
body .right_col li img[src*="avtar"],
body .right_col td img[src*="avtar"] {
  width: 36px !important;
  height: 36px !important;
  border-radius: 10px !important;
  object-fit: cover;
}

/* ================================================================ calendar */
body .fc .fc-toolbar-title {
  font-size: 18px !important;
  font-weight: 600 !important;
  color: var(--ak-text) !important;
}

body .fc .fc-col-header-cell {
  background: #f8fafc !important;
}

body .fc .fc-col-header-cell-cushion {
  color: var(--ak-muted) !important;
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

body .fc-theme-standard td,
body .fc-theme-standard th,
body .fc-theme-standard .fc-scrollgrid {
  border-color: var(--ak-border-soft) !important;
}

body .fc .fc-daygrid-day-number {
  color: var(--ak-text-2);
  font-size: 12.5px;
}

body .fc .fc-day-today {
  background: var(--ak-accent-50) !important;
}

body .fc .fc-daygrid-event,
body .fc .fc-event {
  border-radius: 6px !important;
  border: 0 !important;
  padding: 1px 6px;
  font-size: 11.5px;
  font-weight: 600;
}

body .fc .fc-daygrid-more-link {
  color: var(--ak-muted);
  font-size: 11.5px;
  text-transform: lowercase;
}

body .fc .fc-button {
  background: var(--ak-surface) !important;
  border: 1px solid var(--ak-border) !important;
  color: var(--ak-text-2) !important;
  box-shadow: none !important;
  text-transform: none;
  font-size: 13px;
}

body .fc .fc-button-active,
body .fc .fc-button:active {
  background: var(--ak-navy-800) !important;
  border-color: var(--ak-navy-800) !important;
  color: #fff !important;
}

/* ================================================================== tables */
body table.dataTable,
body table.jambo_table,
body .table {
  border-collapse: separate !important;
  border-spacing: 0;
  color: var(--ak-text);
}

body table.jambo_table thead th,
body table.dataTable thead th,
body .table thead th {
  background: #f8fafc !important;
  color: var(--ak-muted) !important;
  font-size: 11.5px !important;
  font-weight: 600 !important;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--ak-border) !important;
  border-top: 0 !important;
  padding-top: 12px !important;
  padding-bottom: 12px !important;
  white-space: nowrap;
}

body table.dataTable tbody td,
body .table tbody td {
  vertical-align: middle;
  border-color: var(--ak-border-soft) !important;
  padding-top: 12px !important;
  padding-bottom: 12px !important;
  font-size: 13.5px;
}

body table.dataTable tbody tr,
body .table tbody tr {
  background: var(--ak-surface);
  transition: background-color 0.12s;
}

body table.dataTable tbody tr:hover,
body .table tbody tr:hover {
  background: #f8fafc !important;
}

body table.dataTable tbody td a.link-text,
body table.dataTable tbody td > a:not(.btn):not(.dropdown-item),
body .table tbody td a.link-text {
  color: var(--ak-link) !important;
  font-weight: 600;
  text-decoration: none;
}

body table.dataTable tbody td a.link-text:hover,
body table.dataTable tbody td > a:not(.btn):not(.dropdown-item):hover {
  color: var(--ak-accent) !important;
}

/* list avatars: the vendor renders a 52px orange tile on every row */
body table.dataTable tbody td img[width="52px"],
body table.dataTable tbody td img[width="50px"],
body table.dataTable tbody td img.rounded {
  width: 34px !important;
  height: 34px !important;
  border-radius: 9px !important;
  object-fit: cover;
}

/* DataTables controls */
body .dataTables_filter input,
body .dt-search input,
body .dataTables_length select,
body .dt-length select {
  border: 1px solid var(--ak-border) !important;
  border-radius: var(--ak-radius-sm) !important;
  background: var(--ak-surface) !important;
  height: 38px;
  padding: 0 12px !important;
  box-shadow: none !important;
}

body .dataTables_filter input:focus,
body .dt-search input:focus {
  border-color: var(--ak-accent) !important;
  box-shadow: 0 0 0 3px var(--ak-accent-ring) !important;
  outline: 0;
}

body .dataTables_info,
body .dt-info {
  color: var(--ak-muted) !important;
  font-size: 13px;
}

body .dt-paging .dt-paging-button,
body .dataTables_paginate .paginate_button {
  border: 1px solid transparent !important;
  border-radius: 8px !important;
  color: var(--ak-text-2) !important;
  background: transparent !important;
  min-width: 34px;
  margin: 0 2px !important;
}

body .dt-paging .dt-paging-button:hover,
body .dataTables_paginate .paginate_button:hover {
  background: var(--ak-bg) !important;
  border-color: var(--ak-border) !important;
  color: var(--ak-text) !important;
}

body .dt-paging .dt-paging-button.current,
body .dataTables_paginate .paginate_button.current {
  background: var(--ak-navy-800) !important;
  border-color: var(--ak-navy-800) !important;
  color: #fff !important;
}

/* ========================================================= status badges */
/* the views print statuses as coloured text; show them as pills */
body .right_col span[style*="rgb(0, 128, 0)"],
body .right_col span[style*="rgb(255, 0, 0)"],
body .right_col span[style*="rgb(255, 165, 0)"],
body .right_col span[style*="rgb(0, 0, 255)"],
body .right_col span[style*="rgb(33, 143, 233)"],
body .right_col .status-completed,
body .right_col .status-open,
body .right_col .status-upcoming,
body .right_col .status-progress,
body .right_col .status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
}

body .right_col span[style*="rgb(0, 128, 0)"]::before,
body .right_col span[style*="rgb(255, 0, 0)"]::before,
body .right_col span[style*="rgb(255, 165, 0)"]::before,
body .right_col span[style*="rgb(0, 0, 255)"]::before,
body .right_col span[style*="rgb(33, 143, 233)"]::before,
body .right_col .status-completed::before,
body .right_col .status-open::before,
body .right_col .status-upcoming::before,
body .right_col .status-progress::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

body .right_col span[style*="rgb(0, 128, 0)"],
body .right_col .status-completed,
body .right_col .status-paid {
  color: var(--ak-green) !important;
  background: var(--ak-green-bg) !important;
}

body .right_col span[style*="rgb(255, 0, 0)"],
body .right_col .status-open,
body .right_col .status-unpaid {
  color: var(--ak-red) !important;
  background: var(--ak-red-bg) !important;
}

body .right_col span[style*="rgb(255, 165, 0)"],
body .right_col .status-progress,
body .right_col .status-partial {
  color: var(--ak-amber) !important;
  background: var(--ak-amber-bg) !important;
}

body .right_col span[style*="rgb(0, 0, 255)"],
body .right_col span[style*="rgb(33, 143, 233)"],
body .right_col .status-upcoming {
  color: var(--ak-blue) !important;
  background: var(--ak-blue-bg) !important;
}

/* the vendor marks this month's dates with label-danger; show them as a calm chip */
body .label.label-danger {
  background: #eef2f6 !important;
  color: var(--ak-text-2) !important;
  border-radius: 6px;
  padding: 3px 8px;
  font-weight: 600;
}

/* =================================================================== forms */
body .form-control,
body .form-select,
body .select2-container--default .select2-selection--single,
body .select2-container--default .select2-selection--multiple {
  border: 1px solid #d0d7e0 !important;
  border-radius: var(--ak-radius-sm) !important;
  min-height: 40px;
  color: var(--ak-text);
  background-color: var(--ak-surface);
  font-size: 14px;
  box-shadow: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

body textarea.form-control {
  min-height: 88px;
}

body .form-control::placeholder {
  color: #98a2b3;
}

body .form-control[readonly],
body .form-control:disabled {
  background-color: #f8fafc !important;
}

body .select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 38px;
  color: var(--ak-text);
  padding-left: 12px;
}

body .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 38px;
  right: 6px;
}

body .form-control:focus,
body .form-select:focus,
body .select2-container--default.select2-container--focus .select2-selection--single,
body .select2-container--default.select2-container--open .select2-selection--single {
  border-color: var(--ak-accent) !important;
  box-shadow: 0 0 0 3px var(--ak-accent-ring) !important;
  outline: 0;
}

body .select2-dropdown {
  border: 1px solid var(--ak-border) !important;
  border-radius: var(--ak-radius-sm) !important;
  box-shadow: var(--ak-shadow-lg);
  overflow: hidden;
}

body .select2-results__option--highlighted[aria-selected],
body .select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
  background: var(--ak-accent-50) !important;
  color: var(--ak-accent-600) !important;
}

body .select2-search--dropdown .select2-search__field {
  border: 1px solid var(--ak-border) !important;
  border-radius: 6px;
}

body .control-label,
body label.control-label,
body .form-label {
  color: var(--ak-text-2);
  font-weight: 500;
  font-size: 13px;
}

body .color-danger,
body label.color-danger {
  color: #d92d20 !important;
}

body .form-check-input:checked,
body input[type="checkbox"]:checked,
body input[type="radio"]:checked {
  accent-color: var(--ak-accent);
}

/* section headings inside forms ("ADIM 1: SERVİS BİLGİLERİ" …) */
body .right_col .panel-heading.step1,
body .right_col .panel-heading.step2,
body .right_col .form-section-title {
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 0.05em;
  color: var(--ak-text) !important;
  text-transform: uppercase;
  border-bottom: 1px solid var(--ak-border-soft);
  padding-bottom: 10px;
  margin-bottom: 18px;
}

/* ================================================================= buttons */
body .btn {
  border-radius: var(--ak-radius-sm) !important;
  font-weight: 500;
  font-size: 14px;
  box-shadow: none !important;
}

body .btn-success,
body .btn-primary,
body .btn-submit {
  background: var(--ak-accent) !important;
  border-color: var(--ak-accent) !important;
  color: #fff !important;
}

body .btn-success:hover,
body .btn-primary:hover,
body .btn-submit:hover {
  background: var(--ak-accent-600) !important;
  border-color: var(--ak-accent-600) !important;
}

body .btn-default,
body .btn-secondary,
body .btn-outline-secondary {
  background: var(--ak-surface) !important;
  border: 1px solid var(--ak-border) !important;
  color: var(--ak-text-2) !important;
}

body .btn-default:hover,
body .btn-secondary:hover,
body .btn-outline-secondary:hover {
  background: var(--ak-bg) !important;
}

body .btn-danger {
  background: #d92d20 !important;
  border-color: #d92d20 !important;
}

/* =================================================================== tabs */
body .nav-tabs {
  border-bottom: 1px solid var(--ak-border) !important;
  gap: 4px;
}

body .nav-tabs .nav-link,
body .nav-tabs > li > a {
  border: 0 !important;
  border-bottom: 2px solid transparent !important;
  color: var(--ak-muted) !important;
  font-weight: 600;
  font-size: 13px;
  background: transparent !important;
  padding: 10px 14px !important;
  margin-bottom: -1px;
}

body .nav-tabs .nav-link:hover,
body .nav-tabs > li > a:hover {
  color: var(--ak-text) !important;
}

body .nav-tabs .nav-link.active,
body .nav-tabs > li.active > a {
  color: var(--ak-accent) !important;
  border-bottom-color: var(--ak-accent) !important;
}

/* =========================================================== detail header */
body .view_page_header_bg {
  background: linear-gradient(120deg, var(--ak-navy-900), var(--ak-navy-700)) !important;
  border-radius: var(--ak-radius) !important;
  padding: 24px 20px !important;
  margin: 0 0 20px !important;
  color: #fff;
}

body .view_page_header_bg .group_thumbs {
  display: none !important;
}

body .view_page_header_bg .nav_text,
body .view_page_header_bg .user-name,
body .view_page_header_bg .heading_view,
body .view_page_header_bg label,
body .view_page_header_bg lable {
  color: #fff !important;
}

body .view_page_header_bg .nav_text i,
body .view_page_header_bg .heading_view i {
  color: #f59a5b;
  margin-right: 4px;
}

body .view_page_header_bg .d-lg-inline {
  margin-right: 18px;
}

body .view_page_header_bg .user-name {
  font-size: 22px !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em;
}

body .user_view_profile_image {
  width: 96px !important;
  height: 96px !important;
  border-radius: 20px !important;
  border: 3px solid rgba(255, 255, 255, 0.9) !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  object-fit: cover;
  background: var(--ak-surface);
}

body .view_user_edit_btn img {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}

/* ================================================================= misc */
body .alert {
  border-radius: var(--ak-radius-sm) !important;
  border: 1px solid transparent;
  box-shadow: none;
}

body .alert-success,
body .alert-info {
  background: var(--ak-accent-50) !important;
  border-color: #fbd5b8 !important;
  color: #7a3305 !important;
}

body .dropdown-menu {
  border: 1px solid var(--ak-border) !important;
  border-radius: var(--ak-radius-sm) !important;
  box-shadow: var(--ak-shadow-lg) !important;
  padding: 6px !important;
}

body .dropdown-menu .dropdown-item {
  border-radius: 6px;
  padding: 7px 10px;
  font-size: 13.5px;
  color: var(--ak-text-2);
}

body .dropdown-menu .dropdown-item:hover {
  background: var(--ak-accent-50);
  color: var(--ak-accent-600);
}

body .dropdown-menu .dropdown-item img {
  width: 16px;
  height: 16px;
  opacity: 0.75;
}

body .modal-content {
  border: 0 !important;
  border-radius: var(--ak-radius) !important;
  box-shadow: var(--ak-shadow-lg) !important;
}

body .modal-header {
  border-bottom: 1px solid var(--ak-border-soft) !important;
  padding: 16px 20px !important;
}

body .modal-header .modal-title {
  font-size: 17px;
  font-weight: 600;
}

body .modal-footer {
  border-top: 1px solid var(--ak-border-soft) !important;
}

body .swal-modal,
body .swal2-popup {
  border-radius: var(--ak-radius) !important;
  font-family: var(--ak-font) !important;
}

body footer {
  background: transparent !important;
  color: var(--ak-muted) !important;
  border-top: 1px solid var(--ak-border) !important;
  font-size: 12.5px;
}

body .data_not_found img {
  opacity: 0.55;
  max-width: 160px;
}

/* ======================================================= sidebar fixes */
/* items with a submenu are wrapped in div.dropdown (12px/14px padding, fixed 240px width) */
body #sidebar-menu .side-menu > li > .dropdown {
  padding: 0 !important;
  margin: 0 !important;
  width: auto !important;
  background: transparent !important;
}

body #sidebar-menu .side-menu > li,
body #sidebar-menu .side-menu > li > a,
body #sidebar-menu .side-menu > li > .dropdown > a {
  border: 0 !important;
  outline: 0 !important;
}

/* flyout opens beside the item, not over it */
body #sidebar-menu .side-menu > li > .dropdown > .dropdown-content {
  left: 100% !important;
  top: 0 !important;
  margin-left: 8px;
}

/* ===================================================== dashboard stat cards */
body .panel-body.member {
  flex-direction: column;
  align-items: flex-start !important;
  gap: 14px;
  padding: 22px !important;
  min-height: 150px !important;
}

body .panel-body.member img.dashboard_background {
  width: 48px !important;
  height: 48px !important;
  padding: 6px;
  flex: 0 0 auto;
}

body .panel-body.member .counter {
  display: block !important;
  font-size: 28px !important;
}

body .panel-body.member .info-box-title {
  display: block;
}

body #sidebar-menu .side-menu > li > .dropdown > a {
  width: 100% !important;
}

body #sidebar-menu .side-menu > li > .dropdown {
  display: block !important;
}

body .dt-paging .dt-paging-button.current,
body .dataTables_paginate .paginate_button.current {
  -webkit-text-fill-color: #fff !important;
}

/* ===================================================== detail page header */
body .right_col .view_page_header_bg {
  height: auto !important;
  min-height: 0 !important;
}

body .right_col .view_page_header_bg .user_profile_header_left {
  display: flex !important;
  align-items: center;
  gap: 22px;
  height: auto !important;
}

body .right_col .view_page_header_bg .user_profile_header_left > .row {
  flex: 1;
  margin: 0 !important;
}

body .right_col .view_page_header_bg img.user_view_profile_image {
  position: static !important;
  width: 88px !important;
  height: 88px !important;
  flex: 0 0 88px;
  border-radius: 20px !important;
  border: 3px solid rgba(255, 255, 255, 0.9) !important;
  margin: 0 !important;
}

body .right_col .view_page_header_bg .view_top1 {
  padding: 0 !important;
  margin: 0 !important;
}

body .right_col .panel-heading.step1 .ln_solid,
body .right_col .panel-heading.step2 .ln_solid {
  display: none;
}

body .right_col .panel-heading.step1,
body .right_col .panel-heading.step2 {
  display: block !important;
  padding: 16px 20px 10px !important;
  margin: 0 0 8px !important;
}

/* the vendor offsets the content (.top_nav) by 230px while the sidebar is 240px wide; only where the
   sidebar sits beside the content — on phones and tablets it is hidden (or a drawer) and the content is full width */
@media (min-width: 992px) {
  body.nav-md .container.body .top_nav,
  body.nav-md .main_container .top_nav {
    margin-left: 240px !important;
  }
}
@media (max-width: 991px) {
  body .container.body .top_nav,
  body .main_container .top_nav {
    margin-left: 0 !important;
  }
}

body.nav-md .right_col {
  margin-left: 0 !important;
}

body.nav-md .right_col .page-title {
  margin-left: -24px !important;
  margin-right: -24px !important;
}

body .right_col .page-title {
  width: auto !important;
}

/* detail pages: the tabs sat ~80px below the header band */
body .right_col .view_page_header_bg + section > .panel-body {
  padding-top: 0 !important;
}

body .right_col .view_page_header_bg + section > .panel-body > .row.mt-4:first-child {
  margin-top: 0 !important;
}

/* "recently added customers": icon + two text lines side by side */
body .top_profiles .x_content {
  display: flex !important;
  align-items: center;
  gap: 12px;
  float: none !important;
  width: 100%;
  padding: 8px 0 !important;
  border-bottom: 1px solid var(--ak-border-soft);
}

body .top_profiles .x_content:last-child {
  border-bottom: 0;
}

body .top_profiles a.userpic {
  float: none !important;
  flex: 0 0 auto;
  margin: 0 !important;
}

body .top_profiles .x_content p {
  margin: 0;
}

/* ==================================================================== login */
body.ak-login {
  min-height: 100vh;
  margin: 0;
  background: var(--ak-bg) !important;
}

.ak-login__shell {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  min-height: 100vh;
}

.ak-login__brand {
  background: radial-gradient(120% 90% at 20% 10%, var(--ak-navy-600) 0%, var(--ak-navy-800) 45%, var(--ak-navy-900) 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px;
  position: relative;
  overflow: hidden;
}

.ak-login__brand::after {
  content: "";
  position: absolute;
  left: 64px;
  bottom: 64px;
  width: 56px;
  height: 4px;
  border-radius: 2px;
  background: var(--ak-accent);
}

.ak-login__logo {
  display: block;
  width: 100%;
  max-width: 380px;
  height: auto;
  filter: brightness(0) invert(1);
}

.ak-login__logo--small {
  display: none;
  max-width: 200px;
  margin: 0 auto 28px;
  filter: none;
}

.ak-login__tagline {
  margin: 20px 0 0;
  color: var(--ak-navy-text);
  font-size: 15px;
  letter-spacing: 0.02em;
}

.ak-login__panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px 24px;
}

.ak-login__card {
  width: 100%;
  max-width: 400px;
  margin: auto 0;
}

.ak-login__title {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
  color: var(--ak-text);
}

.ak-login__subtitle {
  color: var(--ak-muted);
  margin: 0 0 28px;
}

.ak-login__field {
  margin-bottom: 18px;
}

.ak-login__field .form-label {
  font-weight: 600;
  font-size: 13px;
  color: var(--ak-text-2);
  margin-bottom: 6px;
}

.ak-login .form-control {
  height: 46px;
  border: 1px solid #d0d7e0;
  border-radius: 10px;
  font-size: 15px;
  padding: 0 14px;
}

.ak-login .form-control:focus {
  border-color: var(--ak-accent);
  box-shadow: 0 0 0 3px var(--ak-accent-ring);
}

.ak-login .form-control.is-invalid {
  border-color: #d92d20;
}

.ak-login__password {
  position: relative;
}

.ak-login__password .form-control {
  padding-right: 46px;
}

.ak-login__toggle {
  position: absolute;
  top: 0;
  right: 0;
  width: 46px;
  height: 46px;
  border: 0;
  background: transparent;
  color: var(--ak-muted);
}

.ak-login__toggle:hover {
  color: var(--ak-text);
}

.ak-login__error {
  color: #d92d20;
  font-size: 13px;
  margin-top: 6px;
}

.ak-login__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 4px 0 24px;
  font-size: 14px;
}

.ak-login__remember {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ak-text-2);
  margin: 0;
  cursor: pointer;
}

.ak-login__remember input {
  width: 16px;
  height: 16px;
  accent-color: var(--ak-accent);
}

.ak-login__link {
  color: var(--ak-accent-600);
  font-weight: 600;
  text-decoration: none;
}

.ak-login__link:hover {
  text-decoration: underline;
}

.ak-login .ak-login__submit {
  width: 100%;
  height: 48px;
  border-radius: 10px !important;
  font-size: 15px;
  font-weight: 600;
  background: var(--ak-accent) !important;
  border-color: var(--ak-accent) !important;
}

.ak-login .ak-login__submit:hover {
  background: var(--ak-accent-600) !important;
  border-color: var(--ak-accent-600) !important;
}

.ak-login__footer {
  color: var(--ak-muted);
  font-size: 12.5px;
  margin-top: 32px;
  text-align: center;
}

@media (max-width: 900px) {
  .ak-login__shell {
    grid-template-columns: 1fr;
  }

  .ak-login__brand {
    display: none;
  }

  .ak-login__logo--small {
    display: block;
  }
}

/* the sidebar's inner scroll-view and menu are 260px inside a 240px column and spill over the content */
body .left_col .scroll-view,
body .left_col.scroll-view,
body #sidebar-menu {
  width: 240px !important;
  max-width: 240px;
}

body .nav_title {
  width: 240px !important;
  box-shadow: none !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
}

/* every menu row is full width, with or without a submenu */
body #sidebar-menu .side-menu > li > a {
  width: 100% !important;
  box-sizing: border-box;
}

/* the menu list is a wrapping flex row; items without .w-100 shrank to their text */
body #sidebar-menu .side-menu > li {
  flex: 0 0 calc(100% - 20px);
  width: calc(100% - 20px) !important;
}

body .label {
  white-space: nowrap;
}

/* scrolling DataTables size their columns from a hidden copy of the header inside the body.
   Keep its text (so the widths stay right) but give it no height. */
body .dt-scroll-body > table > thead > tr > th,
body .dataTables_scrollBody > table > thead > tr > th {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  border-top: 0 !important;
  border-bottom: 0 !important;
  height: 0 !important;
  background: transparent !important;
}

body .dt-scroll-body > table > thead .dt-scroll-sizing,
body .dataTables_scrollBody > table > thead .dataTables_sizing {
  height: 0 !important;
  overflow: hidden !important;
}

body .dt-scroll-body > table > thead .dt-column-order {
  display: none !important;
}

/* =====================================================================
   Pass 3 — one spacing / radius scale for every page structure
   spacing 4·8·12·16·20·24 · radius: cards 12, controls 8, pills 999
   ===================================================================== */

/* ---------- cards: even padding and gaps, no card-in-card borders ---------- */
body .right_col .x_panel {
  padding: 20px !important;
  margin-bottom: 20px !important;
}

body .right_col .x_panel .x_panel,
body .right_col .x_panel .panel,
body .right_col .x_panel .card,
body .right_col .panel .panel {
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  background: transparent !important;
}

body .right_col .x_content {
  padding: 0 !important;
}

body .right_col .ln_solid {
  border-top: 1px solid var(--ak-border-soft) !important;
  margin: 16px 0 !important;
}

/* ---------- tab strips (settings, details, invoices, reports) ---------- */
body .right_col ul.nav.nav-tabs {
  background: var(--ak-surface);
  border: 1px solid var(--ak-border) !important;
  border-radius: var(--ak-radius);
  box-shadow: var(--ak-shadow);
  padding: 0 8px;
  margin: 0 0 16px !important;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  gap: 2px;
  width: 100%;
}

body .right_col ul.nav.nav-tabs .nav-link,
body .right_col ul.nav.nav-tabs > li > a {
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  padding: 14px 12px !important;
  white-space: nowrap;
  border-bottom-width: 2px !important;
  margin-bottom: 0 !important;
}

/* ---------- form section headings ---------- */
body .right_col form.upperform h4,
body .right_col .form-horizontal h4 {
  font-size: 13px !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ak-text) !important;
  margin: 8px 0 16px !important;
  padding: 0 0 10px !important;
  border-bottom: 1px solid var(--ak-border-soft);
}

/* ---------- accordion (access rights …): one bordered list ---------- */
body .right_col .accordion {
  border: 1px solid var(--ak-border);
  border-radius: var(--ak-radius);
  overflow: hidden;
  background: var(--ak-surface);
}

body .right_col .accordion .accordion-item {
  margin: 0 !important;
  border: 0 !important;
  border-bottom: 1px solid var(--ak-border-soft) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

body .right_col .accordion .accordion-item:last-child {
  border-bottom: 0 !important;
}

body .right_col .accordion .accordion-button {
  font-weight: 600;
  font-size: 14px;
  color: var(--ak-text);
  padding: 16px 20px;
  background: var(--ak-surface);
  box-shadow: none !important;
}

body .right_col .accordion .accordion-button:not(.collapsed) {
  background: #f8fafc;
  color: var(--ak-accent-600);
}

body .right_col .accordion .accordion-body {
  padding: 16px 20px 20px;
  border-top: 1px solid var(--ak-border-soft);
}

/* the access-rights card holds only the accordion: let the list be the card */
body .right_col .x_panel:has(> .panel-group > .accordion) {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}

/* ---------- detail pages: header band → tabs spacing ---------- */
body .right_col .view_page_header_bg + .row > section > .panel-body,
body .right_col .view_page_header_bg + section > .panel-body {
  padding-top: 0 !important;
}

body .right_col .view_page_header_bg + .row > section > .panel-body > .row.mt-4:first-child,
body .right_col .view_page_header_bg + section > .panel-body > .row.mt-4:first-child {
  margin-top: 0 !important;
}

/* ---------- default avatars: calm slate instead of bright orange tiles ---------- */
body .right_col img[src$="/avtar.png"],
body .right_col img[src*="/avtar.png?"],
body .right_col img.user_view_profile_image[src$="/avtar.png"] {
  filter: grayscale(1) brightness(0.62) sepia(0.35) hue-rotate(175deg) saturate(1.6);
}

body .right_col img.center-image {
  max-width: 220px;
  border-radius: var(--ak-radius);
}

/* ---------- export buttons (reports, lists) ---------- */
body .right_col .dt-buttons {
  display: inline-flex;
  gap: 8px;
  margin-bottom: 12px;
}

body .right_col .dt-buttons .btn,
body .right_col .dt-buttons .dt-button {
  background: var(--ak-surface) !important;
  border: 1px solid var(--ak-border) !important;
  color: var(--ak-text-2) !important;
  border-radius: var(--ak-radius-sm) !important;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px !important;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

body .right_col .dt-buttons .btn:hover,
body .right_col .dt-buttons .dt-button:hover {
  border-color: var(--ak-accent) !important;
  color: var(--ak-accent-600) !important;
}

/* ---------- empty state ---------- */
body .right_col .data_not_found,
body .right_col p.text-center > img[src*="No-Data"] {
  margin: 24px auto !important;
}

body .right_col img[src*="No-Data"] {
  max-width: 180px !important;
  opacity: 0.55;
}

/* ---------- page header: back arrow spacing ---------- */
body .page-title .titleup > a,
body .page-title .titleup a:has(> img) {
  display: inline-flex;
  align-items: center;
  margin-right: 10px;
}

body .page-title .titleup img[src*="Back"] {
  width: 20px !important;
  height: 20px !important;
}

body .page-title img.back-arrow,
body .page-title img[src*="Back"] {
  margin-right: 10px !important;
}

/* outline buttons on the same scale as the rest */
body .right_col .btn-outline-secondary,
body .right_col .btn-outline-danger,
body .right_col .btn-outline-primary {
  font-size: 14px !important;
  font-weight: 600;
  padding: 7px 14px !important;
  line-height: 1.4;
}

body .right_col .btn-outline-danger {
  background: var(--ak-surface) !important;
  border: 1px solid #f3c1bc !important;
  color: #d92d20 !important;
}

body .right_col .btn-outline-danger:hover {
  background: var(--ak-red-bg) !important;
}

body .right_col .btn-sm.btn-outline-danger:has(> i:only-child),
body .right_col .btn-sm.btn-outline-secondary:has(> i:only-child) {
  width: 34px;
  height: 34px;
  padding: 0 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* segmented choice (e.g. customer balances filter) */
body .right_col .ak-segmented {
  display: inline-flex;
  padding: 3px;
  gap: 2px;
  background: #eef1f5;
  border-radius: 10px;
}

body .right_col .ak-segmented .btn {
  background: transparent !important;
  border: 0 !important;
  color: var(--ak-muted) !important;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 14px !important;
  border-radius: 8px !important;
}

body .right_col .ak-segmented .btn.active {
  background: var(--ak-surface) !important;
  color: var(--ak-text) !important;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.1) !important;
}

/* content headings inside pages share one scale */
body .right_col h1 { font-size: 22px; }
body .right_col h2 { font-size: 18px; }
body .right_col h3 { font-size: 17px; }
body .right_col h5 { font-size: 15px; }

/* bordered tables: same soft lines as the rest */
body .right_col .table-bordered,
body .right_col .table-bordered th,
body .right_col .table-bordered td {
  border-color: var(--ak-border-soft) !important;
}

body .right_col .table-bordered {
  border-radius: var(--ak-radius-sm);
  overflow: hidden;
}

/* bulk "select all" under lists is a secondary action */
body .right_col .btn.select_all,
body .right_col #select-all-btn {
  background: var(--ak-surface) !important;
  border: 1px solid var(--ak-border) !important;
  color: var(--ak-text-2) !important;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 12px !important;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

body .right_col .btn.select_all input,
body .right_col #select-all-btn input {
  accent-color: var(--ak-accent);
  margin: 0;
}

/* modal backdrop: dim the page so dialogs stand out */
body .modal-backdrop {
  background-color: var(--ak-navy-900) !important;
}

body .modal-backdrop.show {
  opacity: 0.45 !important;
}

body .modal.show {
  background: rgba(15, 26, 38, 0.35);
}

/* profile page: same navy band as the other detail pages (no cover photo) */
body .right_col .view_page_header_img {
  background: linear-gradient(120deg, var(--ak-navy-900), var(--ak-navy-700));
  border-radius: var(--ak-radius);
  padding: 24px !important;
  margin: 0 0 20px !important;
  min-height: 0 !important;
  height: auto !important;
}

body .right_col .view_page_header_img .row {
  margin: 0 !important;
}

body .right_col .view_page_header_img .user_profile_header_left {
  display: flex !important;
  align-items: center;
  gap: 22px;
  position: static !important;
}

body .right_col .view_page_header_img img.user_view_profile_img {
  position: static !important;
  width: 88px !important;
  height: 88px !important;
  border-radius: 20px !important;
  border: 3px solid rgba(255, 255, 255, 0.9) !important;
  object-fit: cover;
  margin: 0 !important;
}

body .right_col .view_page_header_img .user-name {
  position: static !important;
  color: #fff !important;
  font-size: 22px !important;
  font-weight: 700 !important;
  margin: 0 !important;
}

/* ============================================ sidebar: submenus open in place */
/* hover flyouts closed while the pointer crossed the gap; submenus now expand inside the
   sidebar on click (layout script toggles .ak-open; the current section starts open) */
body #sidebar-menu .side-menu > li > .dropdown > .dropdown-content {
  position: static !important;
  display: none !important;
  left: auto !important;
  top: auto !important;
  margin: 2px 0 6px !important;
  min-width: 0 !important;
  width: auto !important;
  padding: 2px 0 2px 26px !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

body #sidebar-menu .side-menu > li.ak-open > .dropdown > .dropdown-content {
  display: block !important;
}

body #sidebar-menu .side-menu > li > .dropdown > .dropdown-content a {
  display: block !important;
  color: var(--ak-navy-text) !important;
  font-size: 13px !important;
  font-weight: 500;
  padding: 7px 12px !important;
  margin: 1px 0 !important;
  border-radius: 6px;
  border-left: 0 !important;
  position: relative;
}

body #sidebar-menu .side-menu > li > .dropdown > .dropdown-content a::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 50%;
  width: 5px;
  height: 5px;
  margin-top: -2.5px;
  border-radius: 50%;
  background: #4a5d72;
}

body #sidebar-menu .side-menu > li > .dropdown > .dropdown-content a:hover {
  background: var(--ak-navy-700) !important;
  color: #fff !important;
}

body #sidebar-menu .side-menu > li > .dropdown > .dropdown-content a.ak-current {
  color: #fff !important;
  background: var(--ak-navy-600) !important;
}

body #sidebar-menu .side-menu > li > .dropdown > .dropdown-content a.ak-current::before {
  background: var(--ak-accent);
}

/* hovering a section no longer highlights it as if it were open */
body #sidebar-menu .side-menu > li > .dropdown:hover > a {
  background: var(--ak-navy-700) !important;
}

body #sidebar-menu .dropdown-right-icon {
  transition: transform 0.15s;
}

body #sidebar-menu .side-menu > li.ak-open .dropdown-right-icon {
  transform: rotate(90deg);
}

/* ====================================================== dashboard calendar */
body .fc .fc-daygrid-day.fc-day-today,
body .fc td.fc-day-today {
  background: #fff8f2 !important;
}

body .fc .fc-day-today .fc-daygrid-day-number {
  background: var(--ak-accent);
  color: #fff !important;
  border-radius: 999px;
  min-width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 4px;
  padding: 0 6px;
}

body .fc .fc-daygrid-event .fc-event-title,
body .fc .fc-daygrid-event .fc-event-main {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body .fc .fc-daygrid-event {
  margin: 1px 4px !important;
}

/* group captions inside a submenu (Ayarlar: İşletme / Personel / Tanımlar / Sistem) */
body #sidebar-menu .dropdown-content .ak-menu-caption {
  color: #6f8296;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 12px 12px 4px 0;
  margin-left: -14px;
}

body #sidebar-menu .dropdown-content .ak-menu-caption:first-child {
  padding-top: 4px;
}

/* calendar legend follows the (darker) event colours */
body .service-indic.service-open-indic,
body .service-indic {
  background-color: #C9731F !important;
}

body .service-indic.service-complete-indic {
  background-color: #2E8B62 !important;
}

body .fc .fc-daygrid-event {
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* dashboard calendar: "book a service" shows as a small pill instead of filling the day */
body .fc .ak-book-btn {
  position: absolute;
  left: 6px;
  bottom: 6px;
  z-index: 3;
  align-items: center;
  gap: 4px;
  border: 1px solid var(--ak-accent);
  background: var(--ak-surface);
  color: var(--ak-accent-600);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(16, 24, 40, 0.12);
}

body .fc .ak-book-btn:hover {
  background: var(--ak-accent);
  color: #fff;
}

/* ============================================================ empty states */
body .right_col .ak-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  max-width: 560px;
  margin: 24px auto;
  padding: 40px 28px;
  background: var(--ak-surface);
  border: 1px dashed #d3dae3;
  border-radius: var(--ak-radius);
}

body .right_col .ak-empty__icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ak-accent-50);
  color: var(--ak-accent);
  font-size: 24px;
  margin-bottom: 6px;
}

body .right_col .ak-empty__title {
  font-size: 17px;
  font-weight: 700;
  color: var(--ak-text);
  margin: 0;
}

body .right_col .ak-empty__text {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ak-muted);
  margin: 0;
  max-width: 460px;
}

body .right_col .ak-empty__action {
  margin-top: 10px;
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  padding: 9px 18px !important;
  font-weight: 600 !important;
}

/* small variant inside a card section (customer page, vehicle description …) */
body .right_col .ak-empty--compact {
  max-width: none;
  margin: 8px 0;
  padding: 20px 16px;
  border: 0;
  background: transparent;
  gap: 4px;
}

body .right_col .ak-empty--compact .ak-empty__icon {
  width: 40px;
  height: 40px;
  font-size: 17px;
  border-radius: 12px;
}

body .right_col .ak-empty--compact .ak-empty__title {
  font-size: 14px;
}

body .right_col .ak-empty--compact .ak-empty__text {
  font-size: 13px;
}

body .right_col .ak-empty--compact .ak-empty__action {
  padding: 6px 12px !important;
  font-size: 13px !important;
  margin-top: 6px;
}

/* ======================================== dashboard calendar: service chips */
body .fc .fc-daygrid-event.ak-ev {
  display: flex !important;
  align-items: center;
  margin: 2px 5px !important;
  padding: 3px 7px 3px 8px !important;
  border: 0 !important;
  border-left: 3px solid var(--ak-ev-line) !important;
  border-radius: 6px !important;
  background: var(--ak-ev-bg) !important;
  color: var(--ak-ev-text) !important;
  box-shadow: none !important;
  cursor: pointer;
  transition: background-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

body .fc .fc-daygrid-event.ak-ev .fc-event-main,
body .fc .fc-daygrid-event.ak-ev .fc-event-title,
body .fc .fc-daygrid-event.ak-ev .fc-event-time {
  color: var(--ak-ev-text) !important;
}

body .fc .fc-daygrid-event.ak-ev .fc-event-title {
  font-size: 12px;
  font-weight: 800 !important;
  letter-spacing: 0.05em;
  font-variant-numeric: tabular-nums;
}

body .fc .fc-daygrid-event.ak-ev .fc-daygrid-event-dot {
  display: none;
}

body .fc .fc-daygrid-event.ak-ev:hover {
  background: var(--ak-ev-hover) !important;
  box-shadow: 0 4px 12px rgba(16, 24, 40, 0.14) !important;
  transform: translateY(-1px);
}

body .fc .ak-ev--done {
  --ak-ev-bg: #e6f4ec;
  --ak-ev-hover: #cfead9;
  --ak-ev-line: #2E8B62;
  --ak-ev-text: #14532d;
}

body .fc .ak-ev--open {
  --ak-ev-bg: #fdecdc;
  --ak-ev-hover: #f9d9bc;
  --ak-ev-line: #C9731F;
  --ak-ev-text: #7a3a0c;
}

/* tooltip on the chips */
body .tooltip .tooltip-inner {
  background: var(--ak-navy-900);
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  padding: 7px 10px;
  border-radius: 8px;
  max-width: 320px;
}

body .tooltip.bs-tooltip-start .tooltip-arrow::before,
body .tooltip.bs-tooltip-auto[data-popper-placement^=left] .tooltip-arrow::before {
  border-left-color: var(--ak-navy-900);
}

/* ===================================================== dashboard: quick actions, summary, open services */
.ak-quick { display: grid; grid-template-columns: repeat(auto-fill, minmax(172px, 1fr)); gap: 10px; margin: 4px 0 16px; }
.ak-quick__btn {
  display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 14px;
  background: var(--ak-surface); border: 1px solid var(--ak-border); border-radius: var(--ak-radius-sm);
  color: var(--ak-text) !important; font-weight: 600; font-size: 13.5px; white-space: nowrap; text-decoration: none !important;
  box-shadow: var(--ak-shadow); transition: border-color .15s, box-shadow .15s, transform .15s;
}
.ak-quick__btn i { width: 30px; height: 30px; flex: 0 0 30px; display: grid; place-items: center; border-radius: 8px; background: var(--ak-accent-50); color: var(--ak-accent); font-size: 14px; }
.ak-quick__btn:hover { border-color: var(--ak-accent); box-shadow: 0 4px 14px var(--ak-accent-ring); transform: translateY(-1px); }
.ak-quick__btn--primary { background: var(--ak-accent); border-color: var(--ak-accent); color: #fff !important; }
.ak-quick__btn--primary i { background: rgba(255, 255, 255, .2); color: #fff; }
.ak-quick__btn--primary:hover { background: var(--ak-accent-600); }

.ak-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 16px; }
.ak-stat {
  display: flex; align-items: center; gap: 14px; padding: 16px; background: var(--ak-surface);
  border: 1px solid var(--ak-border); border-radius: var(--ak-radius); text-decoration: none !important;
  box-shadow: var(--ak-shadow); transition: box-shadow .15s, border-color .15s;
}
.ak-stat:hover { border-color: var(--ak-navy-600); box-shadow: var(--ak-shadow-lg); }
.ak-stat__icon { width: 42px; height: 42px; flex: 0 0 42px; display: grid; place-items: center; border-radius: 10px; background: var(--ak-blue-bg); color: var(--ak-blue); font-size: 17px; }
.ak-stat--accent .ak-stat__icon { background: var(--ak-accent-50); color: var(--ak-accent); }
.ak-stat--ok .ak-stat__icon { background: var(--ak-green-bg); color: var(--ak-green); }
.ak-stat__body { display: flex; flex-direction: column; min-width: 0; }
.ak-stat__value { font-size: 24px; font-weight: 700; line-height: 1.1; color: var(--ak-text); font-variant-numeric: tabular-nums; }
.ak-stat__label { font-size: 12.5px; color: var(--ak-muted); margin-top: 2px; }

.ak-open-list { padding: 16px !important; }
.ak-open-list__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.ak-open-list__all { font-size: 12.5px; font-weight: 600; color: var(--ak-accent) !important; }
.ak-open-list__row {
  display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 10px 8px;
  border-top: 1px solid var(--ak-border-soft); color: var(--ak-text) !important; text-decoration: none !important; border-radius: 6px;
}
.ak-open-list__row:hover { background: var(--ak-accent-50); }
.ak-open-list__plate { font-weight: 800; font-size: 13px; letter-spacing: .5px; padding: 2px 8px 2px 13px; border: 1.5px solid var(--ak-navy-800); border-radius: 5px; background: #fff; color: var(--ak-navy-900); white-space: nowrap; box-shadow: inset 6px 0 0 #1d4ed8; }
.ak-open-list__who { font-size: 13px; color: var(--ak-text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ak-open-list__date { font-size: 12px; color: var(--ak-muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.ak-open-list__empty { color: var(--ak-muted); font-size: 13px; padding: 16px 0; text-align: center; }

/* ===================================================== service detail: action bar, vehicle card */
.ak-actionbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  margin: 16px 0 0; padding: 12px 14px; background: var(--ak-surface);
  border: 1px solid var(--ak-border); border-radius: var(--ak-radius); box-shadow: var(--ak-shadow);
}
.ak-actionbar__status { display: flex; align-items: center; gap: 10px; }
.ak-actionbar__job { font-weight: 700; color: var(--ak-text); font-variant-numeric: tabular-nums; }
.ak-actionbar__buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.ak-actionbar__buttons .btn { display: inline-flex; align-items: center; gap: 7px; margin: 0 !important; white-space: nowrap; }

.ak-pill { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; }
.ak-pill--open { background: var(--ak-amber-bg); color: var(--ak-amber); }
.ak-pill--warn { background: var(--ak-blue-bg); color: var(--ak-blue); }
.ak-pill--done { background: var(--ak-green-bg); color: var(--ak-green); }

.ak-vehicle-card { height: calc(100% - 8px); }
.ak-vehicle-card__top { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.ak-plate {
  display: inline-flex; align-items: center; padding: 6px 12px; border: 2px solid var(--ak-navy-800); border-radius: 6px;
  background: #fff; color: var(--ak-navy-900); font-weight: 800; font-size: 18px; letter-spacing: 1px; white-space: nowrap;
  box-shadow: inset 8px 0 0 #1d4ed8; padding-left: 18px;
}
.ak-vehicle-card__name { font-weight: 700; font-size: 15px; color: var(--ak-text); }
.ak-vehicle-card__sub { font-size: 13px; color: var(--ak-muted); }
.ak-facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; }
.ak-facts dt { font-weight: 500; color: var(--ak-muted); font-size: 13px; }
.ak-facts dd { margin: 0; font-weight: 600; color: var(--ak-text); font-size: 13px; font-variant-numeric: tabular-nums; }
.ak-photo-strip { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.ak-photo-strip img { width: 84px; height: 64px; object-fit: cover; border-radius: 6px; border: 1px solid var(--ak-border); }
a.ak-header-link { color: inherit !important; text-decoration: none; }
a.ak-header-link:hover { text-decoration: underline; }

/* ===================================================== job card totals panel */
.ak-summary {
  margin: 8px 0 16px auto; max-width: 380px; padding: 14px 16px; background: var(--ak-surface);
  border: 1px solid var(--ak-border); border-radius: var(--ak-radius); box-shadow: var(--ak-shadow);
}
.ak-summary__row { display: flex; justify-content: space-between; gap: 16px; padding: 6px 0; font-size: 14px; color: var(--ak-text-2); font-variant-numeric: tabular-nums; }
.ak-summary__row + .ak-summary__row { border-top: 1px solid var(--ak-border-soft); }
.ak-summary__row--total { font-size: 17px; font-weight: 700; color: var(--ak-text); border-top: 2px solid var(--ak-text) !important; margin-top: 4px; padding-top: 10px; }
.ak-summary__note { margin: 8px 0 0; font-size: 12px; color: var(--ak-muted); }

/* ===================================================== service payments */
.ak-payments { margin-top: 20px; padding: 16px; background: var(--ak-surface); border: 1px solid var(--ak-border); border-radius: var(--ak-radius); box-shadow: var(--ak-shadow); }
.ak-payments__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.ak-payments__head .btn { display: inline-flex; align-items: center; gap: 7px; margin: 0 !important; }
.ak-payments__figures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.ak-payments__figures > div { padding: 12px 14px; border-radius: var(--ak-radius-sm); background: var(--ak-bg); display: flex; flex-direction: column; gap: 2px; }
.ak-payments__figures span { font-size: 12.5px; color: var(--ak-muted); }
.ak-payments__figures strong { font-size: 18px; font-variant-numeric: tabular-nums; color: var(--ak-text); }
.ak-payments__figures .is-open { background: var(--ak-amber-bg); }
.ak-payments__figures .is-open strong { color: var(--ak-amber); }
.ak-payments__figures .is-closed { background: var(--ak-green-bg); }
.ak-payments__figures .is-closed strong { color: var(--ak-green); }
.ak-payments__table td, .ak-payments__table th { vertical-align: middle; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) { .ak-payments__figures { grid-template-columns: 1fr; } }
.ak-segmented--wide { display: flex; flex-wrap: wrap; gap: 6px; }
.ak-segmented--wide label { margin: 0; cursor: pointer; }
.ak-segmented--wide input { position: absolute; opacity: 0; pointer-events: none; }
.ak-segmented--wide span { display: inline-block; padding: 8px 14px; border: 1px solid var(--ak-border); border-radius: var(--ak-radius-sm); font-weight: 600; font-size: 13.5px; background: var(--ak-surface); }
.ak-segmented--wide input:checked + span { border-color: var(--ak-accent); background: var(--ak-accent-50); color: var(--ak-accent-600); }
.ak-segmented--wide input:focus-visible + span { outline: 2px solid var(--ak-accent-ring); }
#ak-payment-modal .form-label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 13px; color: var(--ak-text-2); }

/* ===================================================== vehicle page: owner and service history */
.ak-vh { margin: 20px 12px 8px; }
.ak-vh__cards { display: grid; grid-template-columns: minmax(260px, 1fr) 2fr; gap: 14px; margin-bottom: 16px; }
@media (max-width: 900px) { .ak-vh__cards { grid-template-columns: 1fr; } }
.ak-vh-card, .ak-vh-group { background: var(--ak-surface); border: 1px solid var(--ak-border); border-radius: var(--ak-radius); box-shadow: var(--ak-shadow); padding: 16px; }
.ak-vh-card__label { margin: 0 0 4px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .4px; color: var(--ak-muted); }
a.ak-vh-card__name { font-size: 17px; font-weight: 700; color: var(--ak-text) !important; }
.ak-vh-card__meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 4px; font-size: 13px; color: var(--ak-text-2); }
.ak-vh-prev { list-style: none; margin: 0; padding: 0; }
.ak-vh-prev li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-top: 1px solid var(--ak-border-soft); font-size: 13px; }
.ak-vh-prev li span { color: var(--ak-muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.ak-vh-figures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; align-content: start; }
.ak-vh-figures > div { padding: 12px 14px; border-radius: var(--ak-radius-sm); background: var(--ak-surface); border: 1px solid var(--ak-border); display: flex; flex-direction: column; gap: 2px; }
.ak-vh-figures span { font-size: 12.5px; color: var(--ak-muted); }
.ak-vh-figures strong { font-size: 18px; color: var(--ak-text); font-variant-numeric: tabular-nums; }
.ak-vh-figures .is-open { background: var(--ak-amber-bg); border-color: transparent; }
.ak-vh-figures .is-open strong { color: var(--ak-amber); }
@media (max-width: 640px) { .ak-vh-figures { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ak-vh-group { margin-bottom: 14px; padding: 0; overflow: hidden; }
.ak-vh-group__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--ak-border); background: var(--ak-bg); }
.ak-vh-group__sum { font-size: 13px; color: var(--ak-text-2); font-variant-numeric: tabular-nums; }
.ak-vh-table td, .ak-vh-table th { vertical-align: middle; font-size: 13px; font-variant-numeric: tabular-nums; }
.ak-vh-work { max-width: 360px; color: var(--ak-text-2); }

/* ===================================================== vehicle maintenance timeline */
.ak-tl { display: flex; flex-direction: column; gap: 8px; padding: 16px; }
.ak-tl__row {
  display: grid; grid-template-columns: 110px 1fr auto; gap: 16px; align-items: center; padding: 12px 14px;
  background: var(--ak-surface); border: 1px solid var(--ak-border); border-left: 3px solid var(--ak-navy-600);
  border-radius: var(--ak-radius-sm); color: var(--ak-text) !important; text-decoration: none !important; transition: border-color .15s, box-shadow .15s;
}
.ak-tl__row:hover { border-color: var(--ak-accent); box-shadow: 0 4px 14px var(--ak-accent-ring); }
.ak-tl__when { display: flex; flex-direction: column; font-variant-numeric: tabular-nums; }
.ak-tl__when span { font-size: 12.5px; color: var(--ak-muted); }
.ak-tl__title { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13.5px; margin-bottom: 6px; }
.ak-tl__chips { display: flex; flex-wrap: wrap; gap: 5px; font-size: 12.5px; }
.ak-chip { padding: 2px 8px; border-radius: 999px; background: var(--ak-bg); border: 1px solid var(--ak-border-soft); color: var(--ak-text-2); }
.ak-chip--more { background: var(--ak-accent-50); color: var(--ak-accent-600); border-color: transparent; }
.ak-tl__amount { display: flex; flex-direction: column; align-items: flex-end; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ak-tl__balance { font-size: 12px; font-weight: 600; color: var(--ak-amber); }
.ak-tl__paid { font-size: 12px; color: var(--ak-green); }
@media (max-width: 700px) { .ak-tl__row { grid-template-columns: 1fr; gap: 8px; } .ak-tl__amount { align-items: flex-start; } }
.ak-vh-card .btn { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }

/* ===================================================== list filter bar */
.ak-filters { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin: 0 0 12px; padding: 12px; background: var(--ak-surface); border: 1px solid var(--ak-border); border-radius: var(--ak-radius); box-shadow: var(--ak-shadow); }
.ak-filters .form-control, .ak-filters .form-select { min-height: 38px; margin: 0; }
.ak-filters .btn { margin: 0 !important; white-space: nowrap; }

/* dashboard quick actions: 4 × 2, larger */
.ak-quick { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.ak-quick__btn { min-height: 68px; padding: 12px 16px; gap: 14px; font-size: 15px; }
.ak-quick__btn i { width: 42px; height: 42px; flex: 0 0 42px; border-radius: 10px; font-size: 19px; }
@media (max-width: 900px) { .ak-quick { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ak-vh-card .btn, .ak-actionbar .btn, .ak-payments .btn { width: auto !important; min-width: 0 !important; height: auto !important; padding: 7px 12px !important; line-height: 1.3 !important; }
.ak-form-hint { margin: -4px 0 10px; font-size: 12.5px; color: var(--ak-muted); }

/* ===================================================== stock: part groups and quick stock */
.ak-stock { display: flex; flex-direction: column; gap: 6px; }
.ak-stock__bar { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.ak-stock__bar .form-control { max-width: 360px; margin: 0; }
.ak-stock__count { font-size: 13px; color: var(--ak-muted); }
.ak-stock__group { background: var(--ak-surface); border: 1px solid var(--ak-border); border-radius: var(--ak-radius-sm); overflow: hidden; }
.ak-stock__group > summary {
  display: grid; grid-template-columns: 170px 1fr auto 90px; gap: 12px; align-items: center; padding: 10px 14px;
  cursor: pointer; list-style: none; font-size: 13.5px;
}
.ak-stock__group > summary::-webkit-details-marker { display: none; }
.ak-stock__group[open] > summary { background: var(--ak-bg); border-bottom: 1px solid var(--ak-border); }
.ak-stock__group > summary:hover { background: var(--ak-accent-50); }
.ak-stock__no { font-weight: 700; font-variant-numeric: tabular-nums; }
.ak-stock__name { color: var(--ak-text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ak-stock__variants { font-size: 12px; color: var(--ak-muted); white-space: nowrap; }
.ak-stock__total { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.ak-stock__table td, .ak-stock__table th { vertical-align: middle; font-size: 13px; }
@media (max-width: 700px) { .ak-stock__group > summary { grid-template-columns: 1fr auto; } .ak-stock__name, .ak-stock__variants { display: none; } }
.is-negative { color: var(--ak-red) !important; }

.ak-qs { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; transition: background .3s; border-radius: 8px; padding: 2px; }
.ak-qs__current { min-width: 48px; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.ak-qs__btn { width: 30px; height: 30px; border: 1px solid var(--ak-border); border-radius: 8px; background: var(--ak-surface); font-weight: 700; font-size: 16px; line-height: 1; color: var(--ak-text); }
.ak-qs__btn:hover { border-color: var(--ak-accent); color: var(--ak-accent); }
.ak-qs__amount { width: 56px; height: 30px; border: 1px solid var(--ak-border); border-radius: 8px; text-align: center; font-variant-numeric: tabular-nums; }
.ak-qs.is-busy { opacity: .6; pointer-events: none; }
.ak-qs.is-saved { background: var(--ak-green-bg); }

/* back arrow in page titles (was a blurry PNG) */
.ak-back-arrow { font-size: 18px; line-height: 1; color: var(--ak-text-2); vertical-align: middle; transition: color .15s, transform .15s; }
a:hover > .ak-back-arrow { color: var(--ak-accent); transform: translateX(-2px); }

/* ===================================================== service photos + lightbox */
.ak-photos { margin: 16px 0; padding: 16px; background: var(--ak-surface); border: 1px solid var(--ak-border); border-radius: var(--ak-radius); box-shadow: var(--ak-shadow); }
.ak-photos__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.ak-photos__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.ak-photos__actions .btn { display: inline-flex; align-items: center; gap: 7px; margin: 0 !important; cursor: pointer; width: auto !important; height: auto !important; padding: 8px 14px !important; }
.ak-photos__status { margin: 0 0 8px; font-size: 13px; color: var(--ak-text-2); min-height: 1em; }
.ak-photos__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.ak-photos__item { position: relative; margin: 0; }
.ak-photos__open { display: block; width: 100%; padding: 0; border: 1px solid var(--ak-border); border-radius: 8px; overflow: hidden; background: var(--ak-bg); cursor: zoom-in; }
.ak-photos__open img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.ak-photos__del { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border: 0; border-radius: 50%; background: rgba(15, 26, 38, .75); color: #fff; font-size: 16px; line-height: 1; }
.ak-photos__del:hover { background: var(--ak-red); }
.ak-lightbox { max-width: min(96vw, 1400px); max-height: 94vh; padding: 0; border: 0; border-radius: 10px; background: #000; }
.ak-lightbox::backdrop { background: rgba(0, 0, 0, .8); }
.ak-lightbox img { display: block; max-width: min(96vw, 1400px); max-height: 94vh; object-fit: contain; }
.ak-lightbox__close { position: absolute; top: 8px; right: 8px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .9); font-size: 22px; line-height: 1; }
.ak-mini-link { display: inline-grid; place-items: center; width: 20px; height: 20px; margin-left: 4px; border-radius: 6px; background: var(--ak-accent-50); color: var(--ak-accent) !important; font-size: 11px; vertical-align: 1px; text-decoration: none !important; }
.ak-mini-link:hover { background: var(--ak-accent); color: #fff !important; }

/* ===================================================== customer page overview */
.ak-co { margin: 16px 12px 8px; }
.ak-co__figures { grid-template-columns: repeat(6, minmax(0, 1fr)); margin-bottom: 14px; }
@media (max-width: 1200px) { .ak-co__figures { grid-template-columns: repeat(3, minmax(0, 1fr)); } } @media (max-width: 640px) { .ak-co__figures { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ak-co__cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-bottom: 14px; }
.ak-co__lists { display: grid; grid-template-columns: 1fr 1.4fr; gap: 14px; align-items: start; }
@media (max-width: 900px) { .ak-co__cards, .ak-co__lists { grid-template-columns: 1fr; } }
.ak-co .ak-vh-group { margin-bottom: 0; }
.ak-co .ak-open-list__row { margin: 0 8px; }
.ak-co .ak-open-list__row.is-former { opacity: .7; }
.ak-co__service { display: grid; grid-template-columns: 86px 80px 1fr auto auto; gap: 10px; align-items: center; padding: 9px 14px; border-top: 1px solid var(--ak-border-soft); color: var(--ak-text) !important; text-decoration: none !important; font-size: 13px; font-variant-numeric: tabular-nums; }
.ak-co__service:hover { background: var(--ak-accent-50); }
.ak-co .ak-facts { grid-template-columns: max-content 1fr; }
.ak-dialog { width: min(460px, 92vw); padding: 20px; border: 0; border-radius: var(--ak-radius); box-shadow: var(--ak-shadow-lg); }
.ak-dialog::backdrop { background: rgba(15, 26, 38, .55); }
.ak-dialog .btn { width: auto !important; height: auto !important; margin: 0 !important; }
.ak-filters__date { position: relative; margin: 0; }
.ak-filters__date span { position: absolute; top: -8px; left: 10px; padding: 0 4px; font-size: 11px; color: var(--ak-muted); background: var(--ak-surface); line-height: 1.2; }

/* ===================================================== report pages: range, presets, bars */
.ak-report-range { grid-template-columns: repeat(auto-fill, minmax(170px, 220px)); }
.ak-report-range .btn { width: auto !important; }
.ak-presets { display: flex; flex-wrap: wrap; gap: 6px; margin: -4px 0 14px; }
.ak-presets .ak-chip { text-decoration: none !important; font-size: 13px; padding: 4px 12px; }
.ak-presets .ak-chip:hover { border-color: var(--ak-accent); color: var(--ak-accent-600); }
.ak-presets .ak-chip.is-active { background: var(--ak-accent); border-color: var(--ak-accent); color: #fff; }
.ak-bar-cell { width: 35%; }
.ak-bar { display: block; height: 8px; border-radius: 4px; background: var(--ak-accent); min-width: 2px; }

/* ===================================================== finance summary */
.ak-fin { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 1000px) { .ak-fin { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ak-fin__card { display: flex; flex-direction: column; gap: 2px; padding: 16px; background: var(--ak-surface); border: 1px solid var(--ak-border); border-radius: var(--ak-radius); box-shadow: var(--ak-shadow); color: var(--ak-text) !important; text-decoration: none !important; border-top: 3px solid var(--ak-border); }
a.ak-fin__card:hover { box-shadow: var(--ak-shadow-lg); }
.ak-fin__card span { font-size: 12.5px; color: var(--ak-muted); }
.ak-fin__card strong { font-size: 21px; font-variant-numeric: tabular-nums; }
.ak-fin__card small { font-size: 12px; color: var(--ak-muted); }
.ak-fin__card.is-in { border-top-color: var(--ak-green); }
.ak-fin__card.is-in strong { color: var(--ak-green); }
.ak-fin__card.is-out { border-top-color: var(--ak-red); }
.ak-fin__card.is-out strong { color: var(--ak-red); }
.ak-fin-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; margin: 0 0 14px; padding: 12px 16px; background: var(--ak-surface); border: 1px solid var(--ak-border); border-radius: var(--ak-radius); box-shadow: var(--ak-shadow); color: var(--ak-text) !important; text-decoration: none !important; }
.ak-fin-strip:hover { border-color: var(--ak-accent); }
.ak-fin-strip > span { display: flex; flex-direction: column; font-variant-numeric: tabular-nums; }
.ak-fin-strip small { font-size: 11.5px; color: var(--ak-muted); }
.ak-fin-strip__title { font-weight: 700; }
.ak-fin-strip__more { margin-left: auto; flex-direction: row !important; gap: 6px; align-items: center; color: var(--ak-accent) !important; font-weight: 600; font-size: 13px; }
.ak-fin-groups { display: grid; grid-template-columns: 1.2fr 1.2fr .8fr 1.2fr; gap: 12px; }
@media (max-width: 1100px) { .ak-fin-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .ak-fin-groups { grid-template-columns: 1fr; } }
.ak-fin-group { padding: 14px 16px; background: var(--ak-surface); border: 1px solid var(--ak-border); border-top: 3px solid var(--ak-border); border-radius: var(--ak-radius); box-shadow: var(--ak-shadow); }
.ak-fin-group.is-in { border-top-color: var(--ak-green); }
.ak-fin-group.is-out { border-top-color: var(--ak-red); }
.ak-fin-group__title { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin: 0 0 8px; font-weight: 600; color: var(--ak-text-2); }
.ak-fin-group__title strong { font-size: 20px; font-variant-numeric: tabular-nums; color: var(--ak-text); }
.ak-fin-group.is-in .ak-fin-group__title strong { color: var(--ak-green); }
.ak-fin-group.is-out .ak-fin-group__title strong { color: var(--ak-red); }
.ak-fin-line { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 7px 0; border-top: 1px solid var(--ak-border-soft); color: var(--ak-text) !important; text-decoration: none !important; font-size: 13.5px; margin: 0; }
a.ak-fin-line:hover { color: var(--ak-accent-600) !important; }
.ak-fin-line small { display: block; font-size: 11.5px; color: var(--ak-muted); }
.ak-fin-line strong { font-variant-numeric: tabular-nums; white-space: nowrap; }
.ak-fin-line--note { color: var(--ak-muted) !important; }

/* ===================================================== gate pass: pick a service */
.ak-gp-search { max-width: 220px; margin: 0; }
.ak-gp-list { max-height: 420px; overflow-y: auto; }
.ak-gp-row { display: grid; grid-template-columns: 18px auto 1fr auto auto; gap: 12px; align-items: center; padding: 10px 16px; margin: 0; border-top: 1px solid var(--ak-border-soft); cursor: pointer; font-size: 13px; font-weight: 400; }
.ak-gp-row:hover { background: var(--ak-accent-50); }
.ak-gp-row.is-selected { background: var(--ak-accent-50); box-shadow: inset 3px 0 0 var(--ak-accent); }
.ak-gp-row small { display: block; font-size: 11.5px; color: var(--ak-muted); }
.ak-gp-row input { accent-color: var(--ak-accent); }
.ak-gp-selected { padding: 12px 14px; border: 1px dashed var(--ak-border); border-radius: var(--ak-radius-sm); margin-bottom: 12px; line-height: 1.8; }
.ak-gp-fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 280px)); gap: 12px; }
.ak-gp-fields label { margin: 0; font-weight: 400; }
.ak-gp-fields span { display: block; font-size: 12.5px; color: var(--ak-muted); margin-bottom: 4px; }
#ak-gp-save { width: auto !important; }
@media (max-width: 700px) { .ak-gp-row { grid-template-columns: 18px auto 1fr; } .ak-gp-row > span:nth-child(4), .ak-gp-row > span:nth-child(5) { grid-column: 3; } }
.ak-gp-fields label { display: block !important; width: auto !important; }

/* service detail charges: no filled orange bars — lines and bold headings (prints in black and white) */
.ak-sr-head { margin: 22px 0 8px; padding: 0 0 6px; border-bottom: 2px solid var(--ak-text); color: var(--ak-text); font-weight: 700; text-transform: uppercase; letter-spacing: .5px; font-size: 13px; background: none; }
tr.ak-sr-grand td { border-top: 2px solid var(--ak-text) !important; border-bottom: 2px solid var(--ak-text) !important; background: none !important; color: var(--ak-text) !important; font-weight: 700; font-size: 16px; }
@media print {
  .left_col, .top_nav, .nav_menu, .ak-actionbar, .ak-payments, .ak-photos, #ak-payment-modal, .nav-tabs, .footer_fixed, footer { display: none !important; }
  .right_col { margin: 0 !important; padding: 0 !important; }
  body, .x_panel, .ak-vh-card, .guardian_div { background: #fff !important; box-shadow: none !important; }
  .ak-sr-head { color: #000; border-bottom-color: #000; }
  tr.ak-sr-grand td { color: #000 !important; border-color: #000 !important; }
  .view_page_header_bg { background: none !important; color: #000 !important; border-bottom: 2px solid #000; }
  .view_page_header_bg * { color: #000 !important; }
  .ak-pill { border: 1px solid #000; background: none !important; color: #000 !important; }
  a { color: #000 !important; text-decoration: none !important; }
}
@media print { table td, table th { color: #000 !important; background: none !important; } }

/* ===================================================== service lines, editable in place */
.ak-lines { margin-top: 16px; padding: 16px; background: var(--ak-surface); border: 1px solid var(--ak-border); border-radius: var(--ak-radius); box-shadow: var(--ak-shadow); }
.ak-lines__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px; }
.ak-lines__table th { font-size: 11.5px; text-transform: uppercase; color: var(--ak-muted); white-space: nowrap; }
.ak-lines__table td { vertical-align: middle; font-size: 13px; font-variant-numeric: tabular-nums; padding-top: 5px; padding-bottom: 5px; }
.ak-lines__table tr.is-free td { color: var(--ak-muted); }
.ak-lines__in { width: 72px; height: 30px; padding: 2px 6px; border: 1px solid var(--ak-border); border-radius: 6px; text-align: right; font-variant-numeric: tabular-nums; background: var(--ak-surface); }
.ak-lines__in--wide { width: 110px; }
.ak-lines__in:focus { outline: none; border-color: var(--ak-accent); box-shadow: 0 0 0 3px var(--ak-accent-ring); }
.ak-lines__state { width: 22px; text-align: center; font-weight: 700; }
.ak-lines__state.is-ok { color: var(--ak-green); }
.ak-lines__state.is-err { color: var(--ak-red); }
.ak-lines__totals { width: min(420px, 100%); margin: 12px 0 0 auto; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.ak-lines__totals td { padding: 5px 4px; }
.ak-lines__totals td:last-child { text-align: right; white-space: nowrap; }
@media print { .ak-lines__in { border: 0; width: auto; padding: 0; } .ak-lines__state { display: none; } }
.ak-lines__add { display: flex; flex-direction: column; gap: 8px; margin: 12px 0 4px; padding: 10px 12px; background: var(--ak-bg); border-radius: var(--ak-radius-sm); }
.ak-lines__addform { display: grid; grid-template-columns: 120px 1fr 72px 110px auto auto; gap: 8px; align-items: center; margin: 0; }
.ak-lines__addform .form-control { margin: 0; height: 34px; }
.ak-lines__addform .btn { width: auto !important; margin: 0 !important; height: 34px; padding: 4px 14px !important; }
.ak-lines__addlabel { font-weight: 600; font-size: 13px; white-space: nowrap; }
.ak-lines__addlabel i { color: var(--ak-accent); margin-right: 4px; }
@media (max-width: 760px) { .ak-lines__addform { grid-template-columns: 1fr 72px 100px; } .ak-lines__addform .ak-lines__vat { grid-column: 1 / -1; } .ak-lines__addlabel { grid-column: 1 / -1; } .ak-lines__addform .btn { grid-column: 1 / -1; } }
.ak-lines__state { width: 62px; white-space: nowrap; }
.ak-lines__del { width: 24px; height: 24px; border: 0; border-radius: 50%; background: transparent; color: var(--ak-muted); font-size: 17px; line-height: 1; }
.ak-lines__del:hover { background: var(--ak-red-bg); color: var(--ak-red); }
.ak-lines__state.is-ok .ak-lines__del { color: var(--ak-green); }
.ak-lines__state.is-busy { opacity: .5; }
.ak-lines__state.is-err .ak-lines__del { color: var(--ak-red); }
@media print { .ak-lines__add, .ak-lines__del { display: none !important; } }
.ak-lines__vat { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.ak-lines__vat select.ak-lines__in { width: 66px; text-align: left; padding-right: 2px; }
.ak-lines__addform .ak-lines__vat select.ak-lines__in { width: 100px; height: 34px; }
.ak-lines__incl { display: inline-flex; align-items: center; gap: 3px; margin: 0; font-size: 11.5px; font-weight: 500; color: var(--ak-muted); cursor: pointer; }
.ak-lines__incl input.ak-lines__in { width: 15px; height: 15px; padding: 0; margin: 0; accent-color: var(--ak-accent); }
@media print { .ak-lines__vat select.ak-lines__in { appearance: none; } .ak-lines__incl:not(:has(:checked)) { display: none; } }
/* service notes */
.ak-notes { margin-top: 16px; padding: 16px; background: var(--ak-surface); border: 1px solid var(--ak-border); border-radius: var(--ak-radius); box-shadow: var(--ak-shadow); }
.ak-notes__form { margin-bottom: 12px; padding: 10px 12px; background: var(--ak-bg); border-radius: var(--ak-radius-sm); }
.ak-notes__form textarea { resize: vertical; }
.ak-notes__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 8px; }
.ak-notes__bar .btn { width: auto !important; margin: 0 !important; }
.ak-notes__share { display: inline-flex; align-items: center; gap: 5px; margin: 0; font-size: 13px; cursor: pointer; }
.ak-notes__item { padding: 10px 0; border-top: 1px solid var(--ak-border); }
.ak-notes__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; }
.ak-notes__meta form { margin: 0; }
.ak-notes__tag { padding: 1px 8px; border-radius: 999px; background: var(--ak-accent-ring); font-size: 11.5px; }
.ak-notes__text { margin: 6px 0 0; white-space: pre-line; }
.ak-notes__files { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.ak-notes__files img { width: 72px; height: 72px; object-fit: cover; border-radius: 6px; border: 1px solid var(--ak-border); }
.ak-notes__doc { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid var(--ak-border); border-radius: 6px; font-size: 12.5px; }
.ak-notes__del { width: 24px; height: 24px; border: 0; border-radius: 50%; background: transparent; color: var(--ak-muted); font-size: 17px; line-height: 1; }
.ak-notes__del:hover { background: var(--ak-red-bg); color: var(--ak-red); }
@media print { .ak-notes__form, .ak-notes__del { display: none !important; } }
/* customer account */
.ak-account__table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.ak-account__table td { padding: 6px 0; border-bottom: 1px solid var(--ak-border); vertical-align: top; }
.ak-account__table td:last-child { text-align: right; white-space: nowrap; padding-left: 12px; font-weight: 600; }
.ak-account__hint { display: block; font-size: 11.5px; line-height: 1.35; color: var(--ak-muted); }
.ak-account__total td { border-bottom: 0; padding-top: 8px; font-weight: 700; font-size: 15px; }
.ak-account__total.is-open td:last-child { color: var(--ak-amber); }
.ak-account__foot { margin: 8px 0 0; font-size: 13px; color: var(--ak-muted); }
.ak-cj { margin-top: 12px; }
.ak-cj__top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px); gap: 12px; margin-bottom: 12px; }
.ak-cj__top .ak-vh-figures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 860px) { .ak-cj__top { grid-template-columns: 1fr; } }
.ak-cj__table td, .ak-cj__table th { white-space: nowrap; font-variant-numeric: tabular-nums; }
.ak-cj__table td.is-open { color: var(--ak-amber); font-weight: 700; }
.ak-co__due { color: var(--ak-amber); font-weight: 600; }
/* duplicate customers */
.ak-dup { padding: 4px 0 24px; }
.ak-dup__intro { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; color: var(--ak-muted); max-width: 980px; }
.ak-dup__intro .btn-group { align-self: flex-start; flex-wrap: wrap; }
.ak-dup__group { margin-bottom: 12px; padding: 12px 14px; background: var(--ak-surface); border: 1px solid var(--ak-border); border-radius: var(--ak-radius); box-shadow: var(--ak-shadow); }
.ak-dup__head { display: flex; gap: 6px; margin-bottom: 6px; }
.ak-dup__table td, .ak-dup__table th { vertical-align: middle; font-size: 13px; }
.ak-dup__table th { font-size: 11.5px; text-transform: uppercase; color: var(--ak-muted); white-space: nowrap; }
.ak-dup__table input[type=radio], .ak-dup__table input[type=checkbox] { width: 17px; height: 17px; accent-color: var(--ak-accent); }
.ak-dup__due { color: var(--ak-amber); font-weight: 600; }
.ak-dup__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.ak-dup__actions .btn { width: auto !important; margin: 0 !important; }
/* maintenance reminders */
.ak-rem__bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.ak-rem__bar .btn-group { flex-wrap: wrap; }
.ak-rem__rule select { min-width: 200px; }
.ak-rem { padding: 12px 14px; background: var(--ak-surface); border: 1px solid var(--ak-border); border-radius: var(--ak-radius); box-shadow: var(--ak-shadow); }
.ak-rem__table td, .ak-rem__table th { vertical-align: middle; font-size: 13px; }
.ak-rem__table th { font-size: 11.5px; text-transform: uppercase; color: var(--ak-muted); white-space: nowrap; }
.ak-rem__table tr.is-sent td { background: var(--ak-green-bg); }
.ak-rem__actions { white-space: nowrap; }
.ak-rem__actions .btn { width: auto !important; margin: 0 2px !important; padding: 3px 8px !important; }
.ak-rem__rules { padding: 12px 14px; background: var(--ak-surface); border: 1px solid var(--ak-border); border-radius: var(--ak-radius); }
.ak-rem__rules td { vertical-align: top; }
.ak-rem__rules .btn { width: auto !important; }
.ak-vh-km { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; margin-bottom: 14px; }
.ak-vh-km__list { list-style: none; margin: 10px 0 0; padding: 0; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.ak-vh-km__list li { display: flex; justify-content: space-between; padding: 3px 0; border-top: 1px solid var(--ak-border); }
.ak-vh-km__due { display: flex; flex-direction: column; gap: 2px; padding: 6px 0; border-top: 1px solid var(--ak-border); font-size: 13px; }
.ak-vh-km__due:first-of-type { border-top: 0; }
.ak-vh-km__due .ak-pill { align-self: flex-start; }
.ak-work-sum { display: block; min-width: 180px; max-width: 320px; white-space: normal; font-size: 12.5px; line-height: 1.35; }
/* e-mail reminders on a service */
.ak-mrem { margin-top: 16px; padding: 16px; background: var(--ak-surface); border: 1px solid var(--ak-border); border-radius: var(--ak-radius); box-shadow: var(--ak-shadow); }
.ak-mrem__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
.ak-mrem__head .btn, .ak-mrem__quick .btn { width: auto !important; margin: 0 !important; }
.ak-mrem__warn { margin: 0 0 8px; padding: 8px 10px; border-radius: var(--ak-radius-sm); background: var(--ak-amber-bg); color: var(--ak-amber); font-size: 13px; }
.ak-mrem__warn a { margin-left: 6px; }
.ak-mrem__row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 7px 0; border-top: 1px solid var(--ak-border); font-size: 13px; }
.ak-mrem__row form { margin: 0; }
.ak-mrem__quick { display: flex; flex-wrap: wrap; gap: 6px; }
.ak-lines__bell { width: 24px; height: 24px; border: 0; border-radius: 50%; background: transparent; color: var(--ak-muted); font-size: 13px; }
.ak-lines__bell:hover { background: var(--ak-accent-ring); color: var(--ak-accent); }
@media print { .ak-mrem, .ak-lines__bell { display: none !important; } }
/* customer portal: appointment request */
.ak-appt { display: grid; grid-template-columns: minmax(0, 520px) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 900px) { .ak-appt { grid-template-columns: 1fr; } }
.ak-appt__form, .ak-appt__list { padding: 16px; background: var(--ak-surface); border: 1px solid var(--ak-border); border-radius: var(--ak-radius); box-shadow: var(--ak-shadow); }
.ak-appt__form .btn { width: auto !important; }
/* staff header: appointment requests bell */
.ak-bell { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin: 4px; border-radius: 10px; color: var(--ak-text); background: var(--ak-surface); border: 1px solid var(--ak-border); }
.ak-bell__count { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--ak-accent); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
.ak-bell-menu { min-width: 280px; }
.ak-bell-menu .dropdown-item { white-space: normal; font-size: 13px; }
/* customer sidebar: the appointment link stands out */
.ak-menu-cta { padding: 6px 10px 10px; }
body #sidebar-menu .side-menu > li.ak-menu-cta > a { display: flex !important; align-items: center; justify-content: center; gap: 8px; padding: 12px 14px !important; background: var(--ak-accent) !important; color: #fff !important; border-radius: 10px; font-weight: 700; box-shadow: 0 4px 14px rgba(234, 107, 0, .35); }
body #sidebar-menu .side-menu > li.ak-menu-cta > a:hover { filter: brightness(1.07); }
body #sidebar-menu .side-menu > li.ak-menu-cta > a i { color: #fff !important; margin-right: 0 !important; }
/* phones: profile card collapses to the name row; tabs scroll sideways instead of wrapping */
@media (max-width: 768px) {
  body .view_page_header_bg.ak-card-collapsible { cursor: pointer; position: relative; }
  body .view_page_header_bg.ak-card-collapsible::after { content: "\f078"; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; right: 14px; top: 14px; color: #fff; opacity: .8; transition: transform .2s; }
  body .view_page_header_bg.ak-card-collapsible:not(.is-collapsed)::after { transform: rotate(180deg); }
  body .view_page_header_bg.is-collapsed { height: auto !important; min-height: 0 !important; padding-top: 10px !important; padding-bottom: 10px !important; }
  body .view_page_header_bg.is-collapsed .group_thumbs,
  body .view_page_header_bg.is-collapsed .nav_text.mt-2,
  body .view_page_header_bg.is-collapsed .heading_view,
  body .view_page_header_bg.is-collapsed .view_top1 .row,
  body .view_page_header_bg.is-collapsed .fa-wrench { display: none !important; }
  body .view_page_header_bg.is-collapsed .user_view_profile_image { width: 40px !important; height: 40px !important; }
  body .view_page_header_bg.is-collapsed .view_top1 { margin: 0 !important; }
  .panel-body .nav-tabs { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .panel-body .nav-tabs .nav-item { flex: 0 0 auto; }
}
/* virtual POS */
.ak-pay { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 520px); gap: 16px; align-items: start; }
@media (max-width: 900px) { .ak-pay { grid-template-columns: 1fr; } }
.ak-pay__card { padding: 16px; background: var(--ak-surface); border: 1px solid var(--ak-border); border-radius: var(--ak-radius); box-shadow: var(--ak-shadow); }
.ak-pay__owed { font-size: 26px; font-weight: 700; margin: 4px 0; font-variant-numeric: tabular-nums; }
.ak-pay__choice { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; cursor: pointer; }
.ak-pay__choice input { width: 17px; height: 17px; accent-color: var(--ak-accent); }
.ak-pay__amount { display: flex; align-items: center; gap: 8px; max-width: 220px; margin: 0 0 6px 25px; }
.ak-pay__providers { display: flex; gap: 18px; }
.ak-pay__go { width: 100% !important; margin-top: 8px !important; padding: 12px !important; font-weight: 700; }
.ak-pay__result { text-align: center; grid-column: 1 / -1; max-width: 460px; }
.ak-pay__result > i { font-size: 42px; margin-bottom: 8px; }
.ak-pay__result.is-paid > i { color: var(--ak-green); }
.ak-pay__result.is-failed > i { color: var(--ak-red); }
.ak-pay__result .btn { width: auto !important; }
.ak-pay__frame iframe { width: 100%; min-height: 720px; border: 0; background: #fff; border-radius: var(--ak-radius); }
.ak-pay__settings { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; align-items: start; }
.ak-pay__settings > .btn { width: auto !important; justify-self: start; }
.ak-pay-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 12px 0; padding: 12px 14px; background: var(--ak-surface); border: 1px solid var(--ak-border); border-radius: var(--ak-radius); }
.ak-pay-bar .btn, .ak-account__pay { width: auto !important; margin: 8px 0 0 !important; }
.ak-pay-bar .btn { margin: 0 !important; }
/* bank accounts: settings and the transfer card customers see */
.ak-banks { padding: 16px; background: var(--ak-surface); border: 1px solid var(--ak-border); border-radius: var(--ak-radius); box-shadow: var(--ak-shadow); }
.ak-bank { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--ak-border); }
.ak-bank:first-of-type { border-top: 0; }
.ak-bank__badge { flex: 0 0 44px; height: 44px; border-radius: 10px; background: var(--bank); color: #fff; font-weight: 800; font-size: 13px; display: flex; align-items: center; justify-content: center; letter-spacing: .02em; overflow: hidden; }
.ak-bank__badge img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.ak-bank__body { min-width: 0; flex: 1; }
.ak-bank__name { font-weight: 700; margin: 0 0 4px; }
.ak-bank__line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 2px 0; font-size: 13px; }
.ak-bank__line > span { color: var(--ak-muted); min-width: 70px; }
.ak-copy { border: 0; background: transparent; padding: 2px 4px; border-radius: 6px; font: inherit; color: var(--ak-text); cursor: copy; text-align: left; }
.ak-copy:hover { background: var(--ak-accent-ring); }
.ak-bank__iban .ak-copy:not(.ak-copy__btn) { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 700; letter-spacing: .03em; }
.ak-copy__btn { width: auto !important; margin: 0 !important; padding: 2px 10px !important; cursor: pointer; }
.ak-bank__line.is-copied .ak-copy:not(.ak-copy__btn) { background: var(--ak-green-bg); color: var(--ak-green); }
.ak-banks-settings .ak-bankform { padding: 12px 0; border-top: 1px solid var(--ak-border); }
.ak-bankform__title { font-weight: 700; margin-bottom: 8px; }
.ak-bankform.is-new { background: var(--ak-bg); padding: 12px; border-radius: var(--ak-radius-sm); border-top: 0; margin-top: 8px; }
.ak-bankform__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.ak-bankform__grid label { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--ak-muted); margin: 0; }
.ak-bankform__iban { grid-column: span 2; }
@media (max-width: 640px) { .ak-bankform__iban { grid-column: auto; } }
.ak-bankform__actions { display: flex; gap: 8px; margin-top: 10px; }
.ak-bankform__actions .btn { width: auto !important; margin: 0 !important; }
.ak-pay__banks { grid-column: 1 / -1; max-width: 860px; }
.ak-pay__banks:empty { display: none; }
.ak-bankform__title { display: flex; align-items: center; gap: 8px; }
.ak-bank__badge--sm { flex: 0 0 30px; height: 30px; font-size: 10.5px; border-radius: 8px; }
.ak-bankform__grid label > span:first-child { white-space: nowrap; }
/* phones and tablets: the menu opens as a drawer over the page (the vendor's narrow icon column
   centred the labels and wrapped them); tapping outside closes it */
@media (max-width: 991px) {
  body.nav-sm .container.body .col-md-3.left_col { position: fixed !important; top: 0; left: 0; bottom: 0; width: 280px !important; max-width: 86vw; z-index: 1050; overflow-y: auto; display: block !important; box-shadow: 0 0 40px rgba(15, 23, 42, .35); }
  body.nav-sm .container.body .col-md-3.left_col .left_col, body.nav-sm .left_col .scroll-view { width: 100% !important; }
  body.nav-sm .container.body .right_col, body.nav-sm .container.body .top_nav { margin-left: 0 !important; width: 100% !important; }
  body.nav-sm::after { content: ""; position: fixed; inset: 0; background: rgba(15, 23, 42, .45); z-index: 1040; }
  body.nav-sm .navbar.nav_title { width: 100% !important; text-align: left; }
  body.nav-sm #sidebar-menu .side-menu > li { width: 100% !important; float: none; }
  body.nav-sm #sidebar-menu .side-menu > li > a,
  body.nav-sm #sidebar-menu .side-menu > li > .dropdown > a { display: flex !important; flex-direction: row !important; align-items: center; justify-content: flex-start !important; gap: 12px; text-align: left !important; font-size: 14px !important; font-weight: 500; padding: 11px 16px !important; white-space: nowrap; line-height: 1.3; }
  body.nav-sm #sidebar-menu .side-menu > li > a i,
  body.nav-sm #sidebar-menu .side-menu > li > .dropdown > a i { display: inline-block !important; width: 22px !important; font-size: 16px !important; margin: 0 !important; text-align: center; }
  body.nav-sm #sidebar-menu .side-menu > li > .dropdown { width: 100% !important; }
  body.nav-sm #sidebar-menu .side-menu > li > .dropdown > a .dropdown-right-icon { margin-left: auto !important; width: auto !important; font-size: 11px !important; }
  body.nav-sm #sidebar-menu .side-menu > li > .dropdown > .dropdown-content { position: static !important; inset: auto !important; margin: 0 !important; width: auto !important; min-width: 0 !important; box-shadow: none !important; background: transparent !important; padding-left: 44px !important; }
  body.nav-sm #sidebar-menu .side-menu > li.ak-menu-cta { padding: 10px 14px 12px; }
  body.nav-sm #sidebar-menu .side-menu > li.ak-menu-cta > a { justify-content: center !important; white-space: normal; }
  body.nav-sm #sidebar-menu .side-menu > li.ak-menu-cta > a i { width: auto !important; }
}
.ak-copy__btn i { margin-right: 5px; }
/* phones: the header stays one row — menu button, title (shortened with … if it does not fit), icons */
@media (max-width: 768px) {
  body .page-title .nav_menu { padding: 0 12px !important; min-height: 56px; }
  body .page-title .nav_menu > nav { flex-wrap: nowrap !important; gap: 6px; }
  body .page-title .nav_menu > nav > .nav.toggle { display: flex !important; flex-direction: row !important; flex-wrap: nowrap !important; align-items: center; flex: 1 1 auto; min-width: 0; float: none !important; margin: 0 !important; }
  body .page-title .nav.toggle #menu_toggle { flex: 0 0 auto; padding: 0 !important; }
  body .page-title .titleup { min-width: 0; flex: 1 1 auto; overflow: hidden; margin: 0 !important; }
  body .page-title .titleup, body .page-title .titleup a { font-size: 17px !important; white-space: nowrap; }
  body .page-title .titleup { display: block !important; text-overflow: ellipsis; }
  body .page-title .titleup a { display: inline !important; }
  body .page-title .nav_menu > nav > .global_plus, body .page-title .nav_menu > nav > .dropdown_profile { flex: 0 0 auto; }
  body .page-title .nav_menu > nav img.m-1, body .page-title .nav_menu > nav .dropdown_profile img:not(.rounded), body .ak-bell { width: 34px !important; height: 34px !important; margin: 2px !important; }
  body .dropdown_profile img.rounded, body .authpic img { width: 34px !important; height: 34px !important; }
}
@media (max-width: 991px) {
  body.nav-sm #sidebar-menu .side-menu > li > .dropdown > .dropdown-content { padding-left: 16px !important; }
  body.nav-sm #sidebar-menu .side-menu > li > .dropdown > .dropdown-content a { display: flex !important; justify-content: flex-start !important; text-align: left !important; width: 100% !important; padding: 7px 12px 7px 22px !important; font-size: 13.5px !important; white-space: nowrap; }
  body.nav-sm #sidebar-menu .side-menu > li > .dropdown > .dropdown-content .ak-menu-caption { text-align: left !important; padding-left: 22px !important; }
}
/* phones: list tables as cards (see the layout script) */
@media (max-width: 768px) {
  .ak-mcards-wrap .dt-scroll-head, .ak-mcards-wrap .dataTables_scrollHead { display: none !important; }
  .ak-mcards-wrap .dt-scroll-body, .ak-mcards-wrap .dataTables_scrollBody { overflow: visible !important; height: auto !important; max-height: none !important; }
  table.ak-mcards { display: block !important; width: 100% !important; min-width: 0 !important; border: 0 !important; margin: 0 !important; }
  table.ak-mcards thead { display: none !important; }
  table.ak-mcards tbody, table.ak-mcards tr, table.ak-mcards td { display: block; width: 100% !important; }
  table.ak-mcards tbody tr { position: relative; padding: 10px 44px 10px 12px; border-bottom: 1px solid var(--ak-border) !important; background: var(--ak-surface); cursor: pointer; }
  table.ak-mcards tbody td { display: none !important; border: 0 !important; padding: 0 !important; text-align: left !important; white-space: normal !important; }
  table.ak-mcards tbody td.ak-m-main { display: block !important; }
  table.ak-mcards tbody td.ak-m-main { font-weight: 600; }
  table.ak-mcards tbody td.ak-m-main ~ td.ak-m-main { color: var(--ak-muted); font-size: 13px; font-weight: 400; margin-top: 2px; }
  .ak-m-toggle { position: absolute; top: 10px; right: 10px; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--ak-border); background: var(--ak-bg); color: var(--ak-text); font-size: 18px; line-height: 1; font-weight: 600; }
  table.ak-mcards tbody tr.ak-m-open { background: var(--ak-bg); }
  table.ak-mcards tbody tr.ak-m-open td:not(.ak-m-main) { display: flex !important; justify-content: space-between; gap: 12px; padding: 5px 0 !important; border-top: 1px dashed var(--ak-border) !important; font-size: 13px; }
  table.ak-mcards tbody tr.ak-m-open td:not(.ak-m-main)::before { content: attr(data-label); color: var(--ak-muted); font-size: 12px; flex: 0 0 40%; }
  table.ak-mcards tbody tr.ak-m-open td[data-label=""]::before { content: none; }
  table.ak-mcards tbody tr.ak-m-open td:not(.ak-m-main) > * { text-align: right; }
  table.ak-mcards .dropdown-menu { position: absolute !important; }
}
/* service lines on desktop: the phone summary and + stay hidden */
.ak-lines__sum, .ak-lines__more { display: none; }
/* phones: each service line is a card — name, one summary line and the total; + opens the fields */
@media (max-width: 768px) {
  .ak-lines .table-responsive { overflow: visible !important; }
  .ak-lines__table thead { display: none; }
  .ak-lines__table, .ak-lines__table tbody, .ak-lines__table tr { display: block; width: 100% !important; }
  .ak-lines__table tr { position: relative; padding: 10px 2px; border-bottom: 1px solid var(--ak-border); }
  .ak-lines__table td { display: none !important; width: auto !important; min-width: 0 !important; max-width: none !important; border: 0 !important; padding: 0 !important; }
  .ak-lines__table td.ak-lines__name { display: block !important; width: auto !important; padding-right: 128px !important; font-weight: 600; font-size: 14px; line-height: 1.35; white-space: normal; word-break: normal; overflow-wrap: anywhere; }
  .ak-lines__sum { display: block; font-weight: 400; font-size: 12.5px; color: var(--ak-muted); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .ak-lines__table td.ak-lines__total { display: block !important; position: absolute; top: 12px; right: 40px; text-align: right; font-size: 14px; white-space: nowrap; }
  .ak-lines__more { display: inline-flex; align-items: center; justify-content: center; position: absolute; top: 7px; right: 2px; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--ak-border); background: var(--ak-bg); color: var(--ak-text); font-size: 18px; font-weight: 600; line-height: 1; }
  .ak-lines__table tr.is-open { background: var(--ak-bg); padding: 10px 8px; border-radius: var(--ak-radius-sm); }
  .ak-lines__table tr.is-open .ak-lines__more { right: 8px; }
  .ak-lines__table tr.is-open td.ak-lines__total { right: 46px; }
  .ak-lines__table tr.is-open td[data-label] { display: flex !important; align-items: center; justify-content: space-between; gap: 12px; padding: 7px 0 !important; border-top: 1px dashed var(--ak-border) !important; }
  .ak-lines__table tr.is-open td[data-label]:first-of-type, .ak-lines__table tr.is-open td.ak-lines__name + td[data-label] { margin-top: 8px; }
  .ak-lines__table tr.is-open td[data-label]::before { content: attr(data-label); color: var(--ak-muted); font-size: 13px; white-space: nowrap; }
  .ak-lines__table tr.is-open td[data-label] .ak-lines__in { width: 150px !important; height: 38px; font-size: 15px; }
  .ak-lines__table tr.is-open td[data-label] .ak-lines__vat { display: inline-flex; align-items: center; gap: 12px; }
  .ak-lines__table tr.is-open td[data-label] .ak-lines__vat select.ak-lines__in { width: 84px !important; }
  .ak-lines__table tr.is-open .ak-lines__incl { font-size: 13px; }
  .ak-lines__table tr.is-open .ak-lines__incl input.ak-lines__in { width: 18px !important; height: 18px !important; flex: 0 0 18px; }
  .ak-lines__table tr.is-open td.ak-lines__state { display: flex !important; justify-content: flex-end; gap: 10px; padding-top: 8px !important; }
  .ak-lines__table tr.is-open .ak-lines__bell, .ak-lines__table tr.is-open .ak-lines__del { width: 38px; height: 38px; font-size: 16px; border: 1px solid var(--ak-border); background: var(--ak-surface); }
  .ak-lines__table tr.is-free td.ak-lines__total { color: var(--ak-muted); }
  /* add forms: the name gets its own row */
  .ak-lines__addform { grid-template-columns: 1fr 1fr !important; }
  .ak-lines__addform [name=pick] { grid-column: 1 / -1; }
  .ak-lines__addform input.ak-lines__in { width: 100% !important; height: 38px; }
  .ak-lines__addform .ak-lines__vat { grid-column: 1 / -1; display: flex; gap: 12px; }
  .ak-lines__addform .ak-lines__vat select.ak-lines__in { width: 130px !important; }
}
@media (max-width: 768px) {
  .ak-mcards-wrap, .ak-mcards-wrap .dt-scroll-body { width: 100% !important; }
  .dt-container .dt-search input, .dt-container .dt-input[type=search] { width: 100% !important; max-width: 100%; float: none !important; }
  .dt-container .dt-search { width: 100%; }
}
@media (max-width: 768px) {
  table.ak-mcards tbody tr.ak-m-open td[data-label=""] { display: none !important; }
  table.ak-mcards tbody td.ak-m-main > *:not(.ak-m-toggle) { margin: 0 !important; }
  table.ak-mcards tbody td.ak-m-main .d-block { display: inline !important; margin-left: 6px !important; }
}
/* the open / close arrow of mobile cards: down when closed, up when open */
.ak-m-toggle i, .ak-lines__more i { font-size: 12px; transition: transform .2s; }
tr.ak-m-open .ak-m-toggle i, tr.is-open .ak-lines__more i { transform: rotate(180deg); }
/* the number plate look, small, for lists */
.ak-plate--sm { font-size: 13px; padding: 2px 8px 2px 13px; border-width: 1.5px; border-radius: 5px; letter-spacing: .5px; box-shadow: inset 6px 0 0 #1d4ed8; text-decoration: none !important; color: var(--ak-navy-900) !important; line-height: 1.5; }
a.ak-plate--sm:hover { background: var(--ak-accent-ring); }
/* detail pop-ups: print / PDF at the top next to × */
.modal-header { gap: 10px; }
.modal-header .modal-title { margin-right: auto; }
.ak-modal-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.ak-modal-actions a { text-decoration: none; }
.ak-modal-actions .ak-modal-btn { display: inline-flex !important; align-items: center; gap: 6px; width: auto !important; margin: 0 !important; padding: 5px 12px !important; font-size: 13px; font-weight: 600; background: var(--ak-surface) !important; color: var(--ak-text) !important; border: 1px solid var(--ak-border) !important; border-radius: 8px; }
.ak-modal-actions .ak-modal-btn:hover { border-color: var(--ak-accent) !important; color: var(--ak-accent) !important; }
.ak-modal-actions .ak-modal-btn i { font-size: 14px; }
.modal-footer.ak-modal-footer--empty { display: none !important; }
@media print { .ak-modal-actions { display: none !important; } }
.ak-modal-actions .ak-modal-btn { min-height: 34px; padding: 6px 14px !important; border-width: 1.5px !important; }
.ak-docmail { margin: 0 0 12px; padding: 12px; background: var(--ak-bg); border: 1px solid var(--ak-border); border-radius: var(--ak-radius-sm); }
.ak-docmail .btn { width: auto !important; margin: 0 !important; }
/* dashboard, latest service records: on phones five rows, "show more" for the rest */
.ak-open-list__more { display: none; }
@media (max-width: 768px) {
  .ak-open-list--latest:not(.is-expanded) a.ak-open-list__row:nth-of-type(n+6) { display: none; }
  .ak-open-list__more { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; margin-top: 6px; padding: 9px; border: 1px solid var(--ak-border); border-radius: var(--ak-radius-sm); background: var(--ak-bg); color: var(--ak-text); font-weight: 600; font-size: 13px; }
  .ak-open-list__more i { font-size: 11px; transition: transform .2s; }
  .ak-open-list--latest.is-expanded .ak-open-list__more i { transform: rotate(180deg); }
}
.btn.ak-btn-dark { background: #111827 !important; border: 1px solid #111827 !important; color: #fff !important; }
.btn.ak-btn-dark:hover { background: #000 !important; color: #fff !important; }
.btn.ak-btn-dark i { color: #fff !important; }
/* service action bar: groups and colour weight */
.ak-actionbar__buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.ak-actionbar__group { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ak-actionbar__group:empty { display: none; }
.ak-actionbar__group + .ak-actionbar__group { padding-left: 14px; border-left: 1px solid var(--ak-border); }
.btn.ak-btn-link { background: transparent !important; border: 0 !important; color: var(--ak-muted) !important; padding-left: 6px !important; padding-right: 6px !important; }
.btn.ak-btn-link:hover { color: var(--ak-text) !important; text-decoration: underline; }
.btn.ak-btn-green { background: #15803d !important; border: 1px solid #15803d !important; color: #fff !important; }
.btn.ak-btn-green:hover { background: #166534 !important; color: #fff !important; }
.btn.ak-btn-green i { color: #fff !important; }
.btn.ak-btn-green-outline { background: #fff !important; border: 1.5px solid #15803d !important; color: #15803d !important; }
@media (max-width: 768px) { .ak-actionbar__group + .ak-actionbar__group { padding-left: 0; border-left: 0; } }
