/*
 * Modern UI Overrides for NexoPOS/Tendoo
 * Layers on top of AdminLTE v2.3.3 + Bootstrap 3.3.4
 * Safe to revert — just remove this file and the one-line include.
 */

/* ===== Typography ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

body,
.login-page,
.register-page {
  font-family: 'Inter', 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== Global Colors & Base ===== */
.content-wrapper,
.right-side {
  background-color: #f0f2f5;
}

a {
  transition: color 0.2s ease;
}

/* ===== Sidebar ===== */
.main-sidebar,
.left-side {
  background-color: #1e2a3a;
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.12);
}

.sidebar-menu > li > a {
  padding: 11px 16px;
  font-size: 13.5px;
  font-weight: 500;
  border-left: 3px solid transparent;
  transition: all 0.2s ease;
}

.sidebar-menu > li:hover > a,
.sidebar-menu > li.active > a {
  background-color: rgba(255, 255, 255, 0.08);
  border-left-color: #4a90d9;
}

.sidebar-menu > li.active > a {
  background-color: rgba(255, 255, 255, 0.12);
  border-left-color: #5ca0e8;
  font-weight: 600;
}

.sidebar-menu > li > .treeview-menu {
  background-color: rgba(0, 0, 0, 0.15);
}

.sidebar-menu .treeview-menu > li > a {
  padding: 8px 16px 8px 32px;
  font-size: 13px;
  transition: all 0.2s ease;
}

.sidebar-menu .treeview-menu > li > a:hover {
  background-color: rgba(255, 255, 255, 0.06);
}

.sidebar .user-panel {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 12px;
  margin-bottom: 12px;
}

/* ===== Header / Navbar ===== */
.main-header .navbar {
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.main-header .logo {
  font-weight: 600;
  letter-spacing: 0.3px;
}

.skin-blue .main-header .navbar {
  background: linear-gradient(135deg, #3c7bc4 0%, #2b6cb0 100%);
}

.skin-blue .main-header .logo {
  background: linear-gradient(135deg, #34609c 0%, #2a5a96 100%);
}

.navbar-custom-menu > .nav > li > a,
.navbar-nav > .user-menu > .dropdown-menu > li.user-header {
  transition: background-color 0.2s ease;
}

.navbar-custom-menu > .nav > li > a:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Dropdown menus */
.dropdown-menu {
  border: none;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  margin-top: 4px;
  animation: fadeInDown 0.15s ease-out;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dropdown-menu > li > a {
  padding: 8px 16px;
  font-size: 13.5px;
  transition: background-color 0.15s ease;
}

.dropdown-menu > li > a:hover {
  background-color: #f0f4f8;
}

/* ===== Boxes / Cards ===== */
.box {
  border-radius: 8px;
  border: none;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
  margin-bottom: 20px;
  transition: box-shadow 0.2s ease;
  overflow: hidden;
}

.box:hover {
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.09);
}

.box-primary {
  border-top: none;
  border-left: 4px solid #357abd;
}

.box-success {
  border-top: none;
  border-left: 4px solid #00a65a;
}

.box-warning {
  border-top: none;
  border-left: 4px solid #f39c12;
}

.box-info {
  border-top: none;
  border-left: 4px solid #00c0ef;
}

.box-danger,
.box-default {
  border-top: none;
}

.box-header {
  padding: 14px 18px;
  border-bottom: 1px solid #eef1f5;
}

.box-header .box-title {
  font-size: 15px;
  font-weight: 600;
  color: #2c3e50;
}

.box-body {
  padding: 16px 18px;
}

.box-footer {
  padding: 12px 18px;
  background-color: #fafbfc;
  border-top: 1px solid #eef1f5;
}

.box-header .btn-box-tool {
  color: #97a5b5;
  transition: color 0.2s ease;
}

.box-header .btn-box-tool:hover {
  color: #5a6a7a;
}

/* ===== Buttons ===== */
.btn {
  border-radius: 6px;
  font-weight: 500;
  font-size: 13.5px;
  padding: 7px 16px;
  border: none;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.btn:hover {
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.14);
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.btn-primary {
  background: linear-gradient(135deg, #4a90d9 0%, #357abd 100%);
}

.btn-primary:hover,
.btn-primary:focus {
  background: linear-gradient(135deg, #3d80c9 0%, #2d6aad 100%);
}

.btn-success {
  background: linear-gradient(135deg, #27ae60 0%, #1e9450 100%);
}

.btn-success:hover,
.btn-success:focus {
  background: linear-gradient(135deg, #219a52 0%, #188440 100%);
}

.btn-danger {
  background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

.btn-danger:hover,
.btn-danger:focus {
  background: linear-gradient(135deg, #d44332 0%, #a93226 100%);
}

.btn-warning {
  background: linear-gradient(135deg, #f39c12 0%, #e08e0b 100%);
  color: #fff;
}

.btn-warning:hover,
.btn-warning:focus {
  background: linear-gradient(135deg, #e08e0b 0%, #c87f0a 100%);
  color: #fff;
}

.btn-default {
  background-color: #fff;
  border: 1px solid #d5dbe3;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  color: #4a5568;
}

.btn-default:hover {
  background-color: #f7f9fb;
  border-color: #c0c8d3;
}

.btn-flat {
  border-radius: 6px;
}

.btn-sm {
  padding: 5px 12px;
  font-size: 12.5px;
}

.btn-xs {
  padding: 3px 8px;
  font-size: 11.5px;
  border-radius: 4px;
}

/* ===== Forms ===== */
.form-control {
  height: 40px;
  border-radius: 6px;
  border: 1px solid #d5dbe3;
  font-size: 13.5px;
  padding: 8px 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) inset;
}

.form-control:focus {
  border-color: #4a90d9;
  box-shadow: 0 0 0 3px rgba(74, 144, 217, 0.15);
  outline: none;
}

textarea.form-control {
  height: auto;
}

select.form-control {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}

.input-group-addon {
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid #d5dbe3;
  background-color: #f7f9fb;
  color: #4a5568;
  font-size: 13px;
  font-weight: 500;
}

label {
  font-weight: 500;
  font-size: 13px;
  color: #4a5568;
  margin-bottom: 6px;
}

.has-feedback .form-control-feedback {
  line-height: 40px;
  height: 40px;
}

/* ===== Tables ===== */
.table {
  border-collapse: separate;
  border-spacing: 0;
}

.table > thead > tr > th {
  background-color: #f7f9fb;
  border-bottom: 2px solid #e2e8f0;
  font-weight: 600;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #64748b;
  padding: 12px 14px;
}

.table > tbody > tr > td {
  padding: 11px 14px;
  border-top: 1px solid #eef1f5;
  vertical-align: middle;
  font-size: 13.5px;
}

.table > tbody > tr:hover > td {
  background-color: #f0f6ff;
}

.table-striped > tbody > tr:nth-of-type(odd) {
  background-color: #fafbfc;
}

.table-striped > tbody > tr:nth-of-type(odd):hover > td {
  background-color: #f0f6ff;
}

.table-bordered > thead > tr > th,
.table-bordered > tbody > tr > td {
  border-color: #eef1f5;
}

/* ===== Pagination ===== */
.pagination > li > a,
.pagination > li > span {
  border-radius: 6px;
  margin: 0 2px;
  border: 1px solid #e2e8f0;
  color: #4a5568;
  padding: 6px 12px;
  font-size: 13px;
  transition: all 0.15s ease;
}

.pagination > li > a:hover {
  background-color: #eef2f7;
  border-color: #d5dbe3;
}

.pagination > .active > a,
.pagination > .active > a:hover,
.pagination > .active > span {
  background-color: #4a90d9;
  border-color: #4a90d9;
  border-radius: 6px;
}

/* ===== Alerts ===== */
.alert {
  border-radius: 8px;
  border: none;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  padding: 14px 18px;
  font-size: 13.5px;
}

.alert-success {
  background-color: #ecfdf5;
  color: #065f46;
}

.alert-danger {
  background-color: #fef2f2;
  color: #991b1b;
}

.alert-warning {
  background-color: #fffbeb;
  color: #92400e;
}

.alert-info {
  background-color: #eff6ff;
  color: #1e40af;
}

/* ===== Labels & Badges ===== */
.label {
  border-radius: 4px;
  font-weight: 500;
  font-size: 11.5px;
  padding: 3px 8px;
}

.badge {
  border-radius: 10px;
  font-weight: 500;
  padding: 4px 8px;
  font-size: 11px;
}

/* ===== Login / Setup Pages ===== */
.login-page,
.register-page {
  background: linear-gradient(135deg, #e8eef5 0%, #f0f2f5 50%, #e3ecf7 100%);
}

.login-box,
.register-box {
  margin-top: 5%;
}

.login-box-body,
.register-box-body {
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  padding: 28px 32px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  background-color: #fff;
}

.login-box-body .form-control,
.register-box-body .form-control {
  height: 44px;
  border-radius: 8px;
  font-size: 14px;
}

.login-box-body .btn-primary,
.register-box-body .btn-primary {
  height: 44px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  letter-spacing: 0.3px;
}

.login-box-msg,
.register-box-msg {
  font-size: 14px;
  color: #64748b;
  margin-bottom: 20px;
}

.register-logo a,
.login-logo a {
  color: #2c3e50;
  font-weight: 700;
  font-size: 22px;
}

/* ===== Content Header / Page Title ===== */
.content-header {
  padding: 20px 20px 8px;
}

.content-header > h1 {
  font-size: 22px;
  font-weight: 600;
  color: #1e293b;
}

.content-header > .breadcrumb {
  background: transparent;
  font-size: 13px;
}

.content-header > .breadcrumb > li > a {
  color: #4a90d9;
}

/* ===== Info Boxes & Small Boxes ===== */
.info-box {
  border-radius: 10px;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
  min-height: 80px;
}

.info-box-icon {
  border-radius: 10px 0 0 10px;
}

.small-box {
  border-radius: 10px;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.small-box > .inner {
  padding: 14px;
}

.small-box > .small-box-footer {
  background-color: rgba(0, 0, 0, 0.08);
  font-size: 13px;
  padding: 5px 0;
}

/* ===== Tabs ===== */
.nav-tabs {
  border-bottom: 2px solid #e2e8f0;
}

.nav-tabs > li > a {
  border-radius: 6px 6px 0 0;
  font-size: 13.5px;
  font-weight: 500;
  color: #64748b;
  padding: 10px 18px;
  transition: all 0.15s ease;
  border: none;
  margin-bottom: -2px;
}

.nav-tabs > li > a:hover {
  background-color: #f7f9fb;
  border: none;
  border-bottom: 2px solid #94a3b8;
}

.nav-tabs > li.active > a,
.nav-tabs > li.active > a:hover,
.nav-tabs > li.active > a:focus {
  border: none;
  border-bottom: 2px solid #4a90d9;
  color: #4a90d9;
  font-weight: 600;
  background-color: transparent;
}

/* ===== Modal ===== */
.modal-content {
  border-radius: 12px;
  border: none;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15);
}

.modal-header {
  border-bottom: 1px solid #eef1f5;
  padding: 18px 24px;
}

.modal-body {
  padding: 20px 24px;
}

.modal-footer {
  border-top: 1px solid #eef1f5;
  padding: 14px 24px;
}

.modal-title {
  font-size: 17px;
  font-weight: 600;
  color: #1e293b;
}

/* ===== Footer ===== */
.main-footer {
  border-top: 1px solid #e2e8f0;
  background-color: #fafbfc;
  font-size: 13px;
  color: #94a3b8;
}

/* ===== Scrollbar (WebKit) ===== */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: #c4c9d2;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a0a7b4;
}

/* ===== POS Checkout Refinements ===== */
.cart-container {
  border-radius: 10px;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
}

.product-grid-item {
  border-radius: 8px;
  transition: box-shadow 0.2s ease, transform 0.15s ease;
}

.product-grid-item:hover {
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}

.product-grid-item.active {
  box-shadow: inset 0 0 0 3px #4a90d9;
  border-radius: 8px;
}

.product-grid-item.active:hover {
  box-shadow: inset 0 0 0 3px #4a90d9;
}

/* ===== Progress Bars ===== */
.progress {
  border-radius: 8px;
  height: 8px;
  background-color: #e2e8f0;
  box-shadow: none;
}

.progress-bar {
  border-radius: 8px;
}

/* ===== GroceryCRUD table overrides ===== */
.floatThead-wrapper table {
  border-radius: 0;
}

/* ===== Selection / Misc ===== */
::selection {
  background-color: #d0e2f7;
  color: #1e293b;
}

/* Smoother transitions for collapsible elements */
.sidebar-menu .treeview-menu {
  transition: all 0.25s ease;
}

/* Refine iCheck square-blue to match modern palette */
.icheckbox_square-blue.checked {
  border-color: #4a90d9;
}

/* ==========================================================================
   PHASE 1: Plugin Widgets & Global Components
   ========================================================================== */

/* ===== Select2 Modern ===== */
.select2-container--default .select2-selection--single {
  height: 40px;
  border: 1px solid #d5dbe3;
  border-radius: 6px;
  background-color: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 38px;
  color: #2c3e50;
  padding-left: 14px;
  font-size: 13.5px;
}

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

.select2-container--default .select2-selection--single .select2-selection__arrow b {
  border-color: #94a3b8 transparent transparent transparent;
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
  color: #94a3b8;
}

.select2-container--default.select2-container--open .select2-selection--single,
.select2-container--default.select2-container--focus .select2-selection--single {
  border-color: #4a90d9;
  box-shadow: 0 0 0 3px rgba(74, 144, 217, 0.15);
}

.select2-container--default .select2-selection--multiple {
  min-height: 40px;
  border: 1px solid #d5dbe3;
  border-radius: 6px;
  background-color: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.select2-container--default.select2-container--focus .select2-selection--multiple {
  border-color: #4a90d9;
  box-shadow: 0 0 0 3px rgba(74, 144, 217, 0.15);
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
  background-color: #eef2f7;
  border: 1px solid #d5dbe3;
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 12.5px;
  color: #2c3e50;
  margin-top: 6px;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
  color: #94a3b8;
  margin-right: 4px;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
  color: #e74c3c;
}

.select2-dropdown {
  border: 1px solid #d5dbe3;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  margin-top: 4px;
  overflow: hidden;
}

.select2-container--open .select2-dropdown--below {
  border-top: 1px solid #e2e8f0;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

.select2-container--open .select2-dropdown--above {
  border-bottom: 1px solid #e2e8f0;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.select2-search--dropdown .select2-search__field {
  border: 1px solid #d5dbe3;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 13.5px;
  outline: none;
  transition: border-color 0.2s ease;
}

.select2-search--dropdown .select2-search__field:focus {
  border-color: #4a90d9;
  box-shadow: 0 0 0 2px rgba(74, 144, 217, 0.12);
}

.select2-results__option {
  padding: 8px 14px;
  font-size: 13.5px;
  transition: background-color 0.1s ease;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
  background-color: #4a90d9;
  color: #fff;
  border-radius: 4px;
  margin: 2px 4px;
  padding: 8px 10px;
}

.select2-container--default .select2-results__option[aria-selected=true] {
  background-color: #eef2f7;
}

/* ===== DataTables Modern ===== */
div.dataTables_wrapper {
  padding: 0;
}

div.dataTables_length label {
  font-size: 13px;
  color: #64748b;
  font-weight: 500;
}

div.dataTables_length select {
  border: 1px solid #d5dbe3;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 13px;
  height: 34px;
  background-color: #fff;
  transition: border-color 0.2s ease;
}

div.dataTables_length select:focus {
  border-color: #4a90d9;
  outline: none;
  box-shadow: 0 0 0 2px rgba(74, 144, 217, 0.12);
}

div.dataTables_filter label {
  font-size: 13px;
  color: #64748b;
  font-weight: 500;
}

div.dataTables_filter input {
  border: 1px solid #d5dbe3;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 13px;
  height: 34px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

div.dataTables_filter input:focus {
  border-color: #4a90d9;
  outline: none;
  box-shadow: 0 0 0 3px rgba(74, 144, 217, 0.15);
}

div.dataTables_info {
  font-size: 12.5px;
  color: #94a3b8;
  padding-top: 12px;
}

div.dataTables_paginate {
  padding-top: 12px;
}

div.dataTables_paginate .paginate_button {
  border-radius: 6px !important;
  margin: 0 2px !important;
  border: 1px solid #e2e8f0 !important;
  color: #4a5568 !important;
  padding: 5px 12px !important;
  font-size: 13px !important;
  transition: all 0.15s ease !important;
  background: #fff !important;
}

div.dataTables_paginate .paginate_button:hover {
  background: #eef2f7 !important;
  border-color: #d5dbe3 !important;
  color: #2c3e50 !important;
  box-shadow: none !important;
}

div.dataTables_paginate .paginate_button.current,
div.dataTables_paginate .paginate_button.current:hover {
  background: #4a90d9 !important;
  border-color: #4a90d9 !important;
  color: #fff !important;
  box-shadow: none !important;
}

div.dataTables_paginate .paginate_button.disabled,
div.dataTables_paginate .paginate_button.disabled:hover {
  color: #c0c8d3 !important;
  background: #f7f9fb !important;
  border-color: #e2e8f0 !important;
  cursor: default !important;
}

.dataTables_processing {
  background-color: rgba(255, 255, 255, 0.9) !important;
  border: none !important;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  padding: 12px 20px !important;
  font-size: 13px;
  color: #64748b;
}

table.dataTable thead .sorting:after,
table.dataTable thead .sorting_asc:after,
table.dataTable thead .sorting_desc:after {
  opacity: 0.5;
}

table.dataTable thead .sorting_asc:after,
table.dataTable thead .sorting_desc:after {
  opacity: 1;
  color: #4a90d9;
}

/* ===== DatePicker Modern ===== */
.datepicker {
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  border: 1px solid #e2e8f0;
  padding: 8px;
}

.datepicker table tr td,
.datepicker table tr th {
  border-radius: 6px;
  font-size: 13px;
  transition: background-color 0.1s ease;
}

.datepicker table tr td.active,
.datepicker table tr td.active:hover,
.datepicker table tr td.active.active,
.datepicker table tr td span.active,
.datepicker table tr td span.active:hover {
  background: #4a90d9 !important;
  background-image: none !important;
  color: #fff;
  border-radius: 6px;
}

.datepicker table tr td.today,
.datepicker table tr td.today:hover {
  background-color: #eef6ff;
  color: #4a90d9;
  font-weight: 600;
}

.datepicker table tr td:hover,
.datepicker table tr td span:hover {
  background-color: #f0f4f8;
}

.datepicker table tr td.day:hover {
  background-color: #f0f4f8;
  border-radius: 6px;
}

.datepicker thead tr:first-child th:hover {
  background-color: #f0f4f8;
  border-radius: 6px;
}

.datepicker .datepicker-switch {
  font-weight: 600;
  font-size: 14px;
  color: #2c3e50;
}

.datepicker .prev,
.datepicker .next {
  color: #64748b;
}

.datepicker .dow {
  font-weight: 600;
  color: #94a3b8;
  font-size: 11.5px;
  text-transform: uppercase;
}

/* DateRangePicker */
.daterangepicker {
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  border: 1px solid #e2e8f0;
}

.daterangepicker td.active,
.daterangepicker td.active:hover {
  background-color: #4a90d9;
  color: #fff;
  border-radius: 6px;
}

.daterangepicker td.in-range {
  background-color: #eef6ff;
  color: #2c3e50;
}

.daterangepicker .input-mini {
  border-radius: 6px;
  border: 1px solid #d5dbe3;
  padding: 6px 10px;
  font-size: 13px;
}

.daterangepicker .input-mini:focus {
  border-color: #4a90d9;
}

.daterangepicker .ranges li {
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 13px;
  transition: background-color 0.15s ease;
}

.daterangepicker .ranges li:hover {
  background-color: #f0f4f8;
}

.daterangepicker .ranges li.active {
  background-color: #4a90d9;
  color: #fff;
}

.daterangepicker .btn {
  border-radius: 6px;
}

/* ===== iCheck Modern ===== */
.icheckbox_square-blue,
.iradio_square-blue {
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

/* ===== Bootstrap-Select Modern ===== */
.bootstrap-select .btn {
  height: 40px;
  border: 1px solid #d5dbe3 !important;
  border-radius: 6px !important;
  background-color: #fff !important;
  color: #2c3e50 !important;
  font-size: 13.5px !important;
  padding: 8px 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) inset !important;
}

.bootstrap-select .btn:focus,
.bootstrap-select.open .btn {
  border-color: #4a90d9 !important;
  box-shadow: 0 0 0 3px rgba(74, 144, 217, 0.15) !important;
  outline: none !important;
}

.bootstrap-select .dropdown-menu {
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  border: 1px solid #e2e8f0;
  padding: 4px;
}

.bootstrap-select .dropdown-menu > li > a {
  padding: 8px 14px;
  font-size: 13.5px;
  border-radius: 4px;
  transition: background-color 0.1s ease;
}

.bootstrap-select .dropdown-menu > li > a:hover,
.bootstrap-select .dropdown-menu > li.selected > a {
  background-color: #eef2f7;
}

.bootstrap-select .dropdown-menu > li.active > a {
  background-color: #4a90d9;
  color: #fff;
}

.bootstrap-select .bs-searchbox .form-control {
  border-radius: 6px;
  border: 1px solid #d5dbe3;
  font-size: 13px;
  height: 36px;
}

.bootstrap-select .bs-searchbox .form-control:focus {
  border-color: #4a90d9;
  box-shadow: 0 0 0 2px rgba(74, 144, 217, 0.12);
}

.bootstrap-select .filter-option {
  line-height: 22px;
}

.bootstrap-select .caret {
  border-top-color: #94a3b8;
}

/* ===== Notification Dropdown Modern ===== */
.notifications-menu .dropdown-menu {
  width: 320px;
  border-radius: 10px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
}

.notifications-menu .dropdown-menu > li.header {
  padding: 12px 18px;
  font-size: 13px;
  font-weight: 600;
  color: #2c3e50;
  background-color: #f7f9fb;
  border-bottom: 1px solid #eef1f5;
  border-radius: 10px 10px 0 0;
}

.notifications-menu .dropdown-menu > li > ul.menu > li > a {
  padding: 10px 16px;
  font-size: 13px;
  border-bottom: 1px solid #f5f7fa;
  transition: background-color 0.15s ease;
}

.notifications-menu .dropdown-menu > li > ul.menu > li > a:hover {
  background-color: #f0f4f8;
}

.notifications-menu .dropdown-menu > li > ul.menu > li > a .fa {
  font-size: 14px;
  margin-right: 8px;
}

.notifications-menu .dropdown-menu > li.footer > a {
  padding: 10px 18px;
  font-size: 13px;
  color: #4a90d9;
  font-weight: 500;
  background-color: #f7f9fb;
  border-radius: 0 0 10px 10px;
}

/* ===== User Dropdown Modern ===== */
.user-menu .dropdown-menu {
  width: 300px;
  border-radius: 10px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
  padding: 0;
}

.user-menu .dropdown-menu > li.user-header {
  border-radius: 10px 10px 0 0;
  padding: 24px 20px;
  text-align: center;
}

.user-menu .dropdown-menu > li.user-header > img {
  width: 80px;
  height: 80px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.user-menu .dropdown-menu > li.user-header > p {
  font-size: 15px;
  font-weight: 500;
  margin-top: 12px;
}

.user-menu .dropdown-menu > li.user-footer {
  padding: 12px 20px;
  background-color: #f7f9fb;
  border-top: 1px solid #eef1f5;
  border-radius: 0 0 10px 10px;
}

.user-menu .dropdown-menu > li.user-footer .btn {
  font-size: 13px;
  padding: 6px 16px;
}

/* ==========================================================================
   PHASE 2: POS Checkout Pages
   ========================================================================== */

/* ===== Checkout v2-1 Modern ===== */
#cart-details-wrapper .box-header,
#product-list-wrapper .box-header {
  background-color: #f7f9fb;
  border-bottom: 1px solid #eef1f5;
  padding: 10px 14px;
}

#cart-details-wrapper .box-header .input-group .form-control,
#product-list-wrapper .box-header .input-group .form-control {
  border-radius: 6px;
  height: 38px;
  font-size: 13.5px;
}

#cart-details-wrapper .box-header .input-group .btn,
#product-list-wrapper .box-header .input-group .btn {
  border-radius: 6px;
  height: 38px;
  font-size: 13px;
}

#cart-item-table-header thead tr.active td {
  background-color: #f7f9fb;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: #64748b;
  padding: 10px 12px;
  border-bottom: 2px solid #e2e8f0;
}

#cart-table-body {
  border: none;
}

#cart-table-body .table tbody tr:hover td {
  background-color: #f0f6ff;
}

#cart-table-body .table tbody tr td {
  font-size: 13.5px;
  padding: 8px 12px;
  vertical-align: middle;
  border-top: 1px solid #eef1f5;
}

#cart-details tfoot td {
  font-size: 13.5px;
  padding: 8px 12px;
  border-top: 1px solid #eef1f5;
}

#cart-table-notice td {
  color: #94a3b8;
  font-style: italic;
  padding: 24px 12px;
  text-align: center;
}

/* Category slider */
.cattegory-slider {
  background-color: #fafbfc;
}

.slick-button {
  transition: background-color 0.15s ease;
}

.slick-button:hover {
  background-color: #eef2f7 !important;
}

.toggle-categories {
  transition: background-color 0.15s ease;
}

.category-toggled {
  background: #eef2f7 !important;
  box-shadow: inset 0px 2px 4px rgba(0, 0, 0, 0.06) !important;
}

/* Product grid items */
.item-list-container .product-grid-item {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #eef1f5;
  transition: box-shadow 0.2s ease, transform 0.15s ease;
}

.item-list-container .product-grid-item:hover {
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}

.product-item-details {
  background: rgba(23, 23, 23, 0.45) !important;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: 0 0 8px 8px;
  font-size: 12.5px !important;
  padding: 6px 8px !important;
}

/* Search field */
.search-field-wrapper .input-group .form-control {
  height: 42px;
  font-size: 14px;
}

.search-field-wrapper .input-group .btn {
  height: 42px;
}

/* Checkout buttons row */
.tab-cart > li > a,
.tab-grid > li > a {
  font-weight: 500;
  font-size: 13.5px;
}

/* Loading overlay for product list */
#product-list-splash {
  background: rgba(255, 255, 255, 0.85);
  border-radius: 8px;
}

#product-list-splash .fa-refresh {
  color: #4a90d9;
}

/* Calculator widget */
.calculator {
  border-radius: 10px !important;
  background-color: #e2e8f0 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.calculator > input[type=text] {
  border-radius: 8px !important;
  background-color: #f7f9fb !important;
  font-family: 'Inter', monospace;
  color: #1e293b;
}

.calculator .key {
  border-radius: 8px !important;
  background-color: #fff !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
  transition: all 0.1s ease;
  font-family: 'Inter', sans-serif;
}

.calculator .key:hover {
  background-color: #f0f4f8 !important;
  transform: translateY(-1px);
}

.calculator .key:active {
  box-shadow: inset 0px 1px 3px rgba(0, 0, 0, 0.15) !important;
  transform: translateY(0);
}

.calculator .key.action {
  background-color: #fef3c7 !important;
}

/* Cash register / Cash drawer */
.cash-register-container .btn,
.cash-drawer .btn {
  border-radius: 6px;
  font-weight: 500;
}

/* ===== Checkout v3 Modern ===== */
#online-ordering {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

#online-ordering .card {
  border-radius: 10px;
  border: none;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
}

#online-ordering .card-header {
  background-color: #f7f9fb;
  border-bottom: 1px solid #eef1f5;
  padding: 10px 14px;
  border-radius: 10px 10px 0 0;
}

#online-ordering .cart-table .table thead th,
#online-ordering .cart-table .table thead td {
  background-color: #f7f9fb;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: #64748b;
  border-bottom: 2px solid #e2e8f0;
}

#online-ordering .cart-table .table tbody tr:hover td,
#online-ordering .cart-table .table tbody tr:hover th {
  background-color: #f0f6ff;
}

#online-ordering .input-group .btn-outline-secondary {
  border-color: #d5dbe3;
  color: #4a5568;
  font-weight: 600;
  transition: all 0.15s ease;
}

#online-ordering .input-group .btn-outline-secondary:hover {
  background-color: #4a90d9;
  border-color: #4a90d9;
  color: #fff;
}

#online-ordering .input-group .form-control {
  text-align: center;
  font-weight: 600;
}

#online-ordering .button-wrapper .btn {
  border-radius: 6px;
  font-weight: 500;
  font-size: 13px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
  border: none !important;
  transition: all 0.15s ease;
}

#online-ordering .button-wrapper .btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15) !important;
}

/* ===== Checkout Shared Elements ===== */
/* Full-screen loading overlay */
.nexo-overlay {
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.nexo-refresh-icon {
  color: #4a90d9 !important;
}

/* Loading roller animation */
.lds-roller div:after {
  background: #4a90d9 !important;
}

.overlay-loader {
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

/* AdminLTE overlay spinner */
.overlay {
  background: rgba(255, 255, 255, 0.8);
}

.overlay > .fa {
  color: #4a90d9;
}

/* Payment/receipt modals */
.modal-dialog .modal-content .table tfoot td {
  font-weight: 600;
  font-size: 14px;
}

/* ===== POS Action Buttons ===== */
.box-footer .btn-group .btn {
  border-radius: 6px;
  margin: 0 2px;
}

/* Cart pay/hold/cancel/discount buttons */
#cart-details-wrapper .box-footer .btn,
.cart-footer-buttons .btn {
  border-radius: 6px;
  font-weight: 600;
  font-size: 13px;
  padding: 8px 16px;
  transition: all 0.15s ease;
}

/* ==========================================================================
   PHASE 3: Dashboard & Welcome
   ========================================================================== */

/* ===== Dashboard Charts ===== */
.nav-pills.nav-stacked > li > a {
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 13.5px;
  color: #4a5568;
  transition: background-color 0.15s ease;
  margin-bottom: 2px;
}

.nav-pills.nav-stacked > li > a:hover {
  background-color: #f0f4f8;
}

.nav-pills.nav-stacked > li > a .pull-right {
  font-weight: 600;
  font-size: 14px;
}

.nav-pills.nav-stacked > li > a .text-success {
  color: #059669 !important;
}

.nav-pills.nav-stacked > li > a .text-red {
  color: #dc2626 !important;
}

.nav-pills.nav-stacked > li > a .text-blue {
  color: #4a90d9 !important;
}

/* Chart container box refinements */
.box-solid .box-header .box-title {
  font-size: 14px;
  font-weight: 600;
  color: #2c3e50;
}

.box-solid .box-header .btn-group .btn-default {
  border-radius: 6px;
  border: 1px solid #d5dbe3;
  background-color: #fff;
}

.box-solid .box-header .btn-group .btn-default:hover {
  background-color: #f0f4f8;
}

/* ===== Dashboard Welcome ===== */
.jumbotron {
  border-radius: 12px;
  background-color: #f0f6ff;
  border: 1px solid #d0e2f7;
  padding: 24px 28px;
}

.jumbotron h1,
.jumbotron h2 {
  font-weight: 700;
  color: #1e293b;
}

.jumbotron p {
  color: #64748b;
  font-size: 14px;
}

/* ===== Main Store Summary Card ===== */
.box.box-solid {
  border-radius: 8px;
  overflow: hidden;
}

.box.box-solid .box-header {
  border-radius: 8px 8px 0 0;
}

/* ==========================================================================
   PHASE 4: Management List Pages (GroceryCRUD)
   ========================================================================== */

/* ===== GroceryCRUD List Refinements ===== */
.groceryCrudTable thead th {
  background-color: #f7f9fb;
  font-weight: 600;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: #64748b;
  padding: 12px 14px;
  border-bottom: 2px solid #e2e8f0;
}

.groceryCrudTable tbody td {
  padding: 10px 14px;
  font-size: 13.5px;
  vertical-align: middle;
  border-top: 1px solid #eef1f5;
}

.groceryCrudTable tbody tr:hover td {
  background-color: #f0f6ff;
}

/* CRUD action buttons */
.grocery-crud-table-button-group .btn {
  border-radius: 4px;
  font-size: 12px;
  padding: 4px 10px;
  margin-right: 3px;
}

a.grocery-crud-button,
a.gc-btn {
  border-radius: 6px !important;
  font-size: 13px;
  padding: 6px 14px;
  font-weight: 500;
  transition: all 0.15s ease;
}

/* Toolbar buttons (add, export, print) */
.crud-action-tools a.btn,
.gc-tools a.btn,
.add-button a.btn {
  border-radius: 6px;
  font-weight: 500;
  font-size: 13px;
  padding: 7px 16px;
}

/* Row actions container */
td .btn-group-xs > .btn {
  border-radius: 4px;
  margin: 0 1px;
}

/* CRUD filter row */
.grocery-crud-table tr.filter-row td {
  padding: 6px 8px;
}

.grocery-crud-table tr.filter-row td input,
.grocery-crud-table tr.filter-row td select {
  border-radius: 6px;
  border: 1px solid #d5dbe3;
  font-size: 12.5px;
  padding: 4px 8px;
  height: 32px;
}

.grocery-crud-table tr.filter-row td input:focus,
.grocery-crud-table tr.filter-row td select:focus {
  border-color: #4a90d9;
  outline: none;
  box-shadow: 0 0 0 2px rgba(74, 144, 217, 0.12);
}

/* ===== GroceryCRUD Form Refinements ===== */
.grocery-crud-form .form-group {
  margin-bottom: 18px;
}

.grocery-crud-form .form-group label {
  font-weight: 500;
  font-size: 13px;
  color: #4a5568;
}

.grocery-crud-form .form-group .form-control {
  border-radius: 6px;
  height: 40px;
  font-size: 13.5px;
}

.grocery-crud-form textarea.form-control {
  height: auto;
  min-height: 80px;
}

/* File upload in CRUD */
.gc-file-upload,
.grocery-crud-form .fileinput-button {
  border-radius: 6px;
  border: 2px dashed #d5dbe3;
  background-color: #fafbfc;
  padding: 12px;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.gc-file-upload:hover,
.grocery-crud-form .fileinput-button:hover {
  border-color: #4a90d9;
  background-color: #f0f6ff;
}

/* CRUD relation dropdown */
.grocery-crud-form .chosen-container,
.grocery-crud-form .select2-container {
  width: 100% !important;
}

/* Form submit buttons */
.grocery-crud-form .form-button-group .btn {
  border-radius: 6px;
  font-weight: 500;
  font-size: 14px;
  padding: 8px 24px;
  margin-right: 8px;
}

/* ==========================================================================
   PHASE 5: Management Form Pages
   ========================================================================== */

/* ===== Item/Product Forms ===== */
.not-available {
  background: #94a3b8 !important;
  color: #fff;
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 12px;
}

/* Item form tab panels */
.tab-content {
  padding: 16px 0;
}

.tab-content .tab-pane .form-group {
  margin-bottom: 16px;
}

/* Grouped items table */
.grouped-items-table .table th {
  background-color: #f7f9fb;
  font-size: 12.5px;
  font-weight: 600;
}

/* ===== Customer Forms ===== */
customers-main .form-group .form-control,
[ng-controller] .form-group .form-control {
  border-radius: 6px;
  height: 40px;
}

/* Customer account history */
.customer-history-table .table tbody tr:hover td {
  background-color: #f0f6ff;
}

/* Import wizard */
.import-wizard .step-indicator {
  font-weight: 600;
  color: #4a90d9;
}

/* ===== Provider Forms ===== */
.provider-history .table td {
  font-size: 13.5px;
}

/* ===== Order Detail/Edit/Refund ===== */
.order-details .table {
  margin-bottom: 0;
}

.order-details .table tfoot td {
  font-weight: 600;
  font-size: 14px;
  background-color: #f7f9fb;
  border-top: 2px solid #e2e8f0;
}

/* Refund modal */
.refund-modal .form-control {
  border-radius: 6px;
}

/* Payment popup */
.payment-popup .btn-lg {
  border-radius: 8px;
  font-weight: 600;
  padding: 12px 24px;
}

/* ==========================================================================
   PHASE 6: Settings Pages
   ========================================================================== */

/* ===== Settings Tab Navigation ===== */
.settings-tabs .nav-tabs,
.box-body > .nav-tabs {
  border-bottom: 2px solid #e2e8f0;
  margin-bottom: 20px;
}

.settings-tabs .nav-tabs > li > a,
.box-body > .nav-tabs > li > a {
  border-radius: 6px 6px 0 0;
  font-weight: 500;
  font-size: 13.5px;
  color: #64748b;
  padding: 10px 18px;
  border: none;
  margin-bottom: -2px;
  transition: all 0.15s ease;
}

.settings-tabs .nav-tabs > li.active > a,
.box-body > .nav-tabs > li.active > a {
  border: none;
  border-bottom: 2px solid #4a90d9;
  color: #4a90d9;
  font-weight: 600;
  background-color: transparent;
}

/* ===== Settings Form Fields ===== */
.settings-section,
.box-body .form-horizontal .form-group {
  padding: 6px 0;
}

.form-horizontal .control-label {
  font-weight: 500;
  font-size: 13px;
  color: #4a5568;
}

/* Toggle-like checkbox area */
.checkbox label,
.radio label {
  font-size: 13.5px;
  color: #4a5568;
}

/* Color picker */
.colorpicker {
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

/* WYSIWYG editor container */
.wysihtml5-toolbar .btn {
  border-radius: 4px;
  font-size: 12px;
}

.wysihtml5-sandbox {
  border-radius: 0 0 6px 6px !important;
  border: 1px solid #d5dbe3 !important;
}

/* ==========================================================================
   PHASE 7: Reports & Financial Pages
   ========================================================================== */

/* ===== Common Report Styles ===== */
.report-filter-panel {
  background-color: #f7f9fb;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 20px;
  border: 1px solid #eef1f5;
}

.report-summary-card {
  border-radius: 8px;
  padding: 16px;
  text-align: center;
  background-color: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.report-summary-card h3 {
  font-size: 24px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 4px;
}

.report-summary-card p {
  font-size: 13px;
  color: #94a3b8;
  margin: 0;
}

/* Report tables */
.report-table .table > thead > tr > th {
  background-color: #f7f9fb;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #64748b;
}

.report-table .table > tfoot > tr > td {
  background-color: #f7f9fb;
  font-weight: 700;
  font-size: 14px;
  color: #1e293b;
  border-top: 2px solid #e2e8f0;
}

/* Date range selector bar */
.box-header .input-daterange .form-control,
.box-header .daterangepicker-input {
  height: 36px;
  border-radius: 6px;
  font-size: 13px;
}

/* ===== Daily Report ===== */
.daily-report .box-header h3 {
  font-weight: 600;
  font-size: 16px;
  color: #2c3e50;
}

/* ===== Financial Books Pages ===== */
.book-table .table th {
  background-color: #f7f9fb;
}

.book-table .table td {
  font-size: 13.5px;
}

.book-table .table tr.total-row td {
  font-weight: 700;
  font-size: 14px;
  background-color: #eef6ff;
  border-top: 2px solid #4a90d9;
}

/* ==========================================================================
   PHASE 8: Invoices, Receipts & Print Views
   ========================================================================== */

/* ===== Invoice View (screen only) ===== */
@media screen {
  .order-details {
    padding: 12px 0;
  }

  .order-details h2 {
    font-weight: 700;
    font-size: 20px;
    color: #1e293b;
  }

  .order-details .table {
    border-radius: 8px;
    overflow: hidden;
  }

  .order-details .table > thead > tr > th {
    background-color: #f7f9fb;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: #64748b;
    padding: 12px 14px;
  }

  .order-details .table > tbody > tr > td {
    padding: 10px 14px;
    font-size: 13.5px;
  }
}

/* ===== Receipt Preview (screen only, not print) ===== */
@media screen {
  #printing {
    font-family: 'Inter', sans-serif;
  }

  #printing .container-fluid {
    max-width: 400px;
    margin: 20px auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    padding: 20px;
  }
}

/* ==========================================================================
   PHASE 9: Remaining Module Pages
   ========================================================================== */

/* ===== Stock Management ===== */
.stock-transfer-table .table th {
  background-color: #f7f9fb;
}

.stock-transfer-form .form-control {
  border-radius: 6px;
}

/* ===== Rewards & Coupons ===== */
.reward-card {
  border-radius: 8px;
  padding: 16px;
  border: 1px solid #eef1f5;
  transition: box-shadow 0.2s ease;
}

.reward-card:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* ===== Stores Pages ===== */
.store-card,
.store-dashboard-card {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.2s ease, transform 0.15s ease;
}

.store-card:hover {
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

/* Store selector in header */
.store-selector-menu .dropdown-menu {
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.store-selector-menu .dropdown-menu > li > a {
  padding: 8px 16px;
  font-size: 13.5px;
  transition: background-color 0.1s ease;
}

.store-selector-menu .dropdown-menu > li > a:hover {
  background-color: #f0f4f8;
}

/* ===== Miscellaneous Pages ===== */
/* Category reorder drag */
.sortable-placeholder {
  background-color: #eef6ff;
  border: 2px dashed #4a90d9;
  border-radius: 6px;
  min-height: 40px;
}

/* Tax management */
.tax-form .form-control {
  border-radius: 6px;
}

/* User groups list */
.user-groups-table .table th {
  background-color: #f7f9fb;
}

/* Permission checkboxes */
.permission-grid .checkbox {
  padding: 6px 0;
}

/* Ads management */
.ads-table .table th {
  background-color: #f7f9fb;
}

/* ==========================================================================
   PHASE 10: Responsive & Polish
   ========================================================================== */

/* ===== Responsive Fixes ===== */
@media (max-width: 767px) {
  .content-header > h1 {
    font-size: 18px;
  }

  .box-header .box-title {
    font-size: 14px;
  }

  .box-body {
    padding: 12px;
  }

  .table-responsive {
    border: none;
    border-radius: 8px;
  }

  /* Sidebar mobile overlay */
  .sidebar-open .main-sidebar {
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.2);
  }

  /* Checkout mobile */
  #cart-details-wrapper,
  #product-list-wrapper {
    margin-bottom: 10px;
  }

  #cart-details-wrapper .box-header .input-group .btn span {
    font-size: 11px;
  }

  /* DataTables responsive */
  div.dataTables_wrapper {
    overflow-x: auto;
  }

  /* Compact forms on mobile */
  .form-horizontal .control-label {
    text-align: left;
    margin-bottom: 4px;
  }
}

@media (max-width: 991px) {
  .nav-tabs > li > a {
    padding: 8px 12px;
    font-size: 12.5px;
  }

  .box-header .box-tools {
    position: relative;
    top: 0;
    right: 0;
    margin-top: 8px;
  }
}

/* Scrollable table wrapper */
.table-responsive::-webkit-scrollbar {
  height: 6px;
}

.table-responsive::-webkit-scrollbar-thumb {
  background: #c4c9d2;
  border-radius: 3px;
}

/* ===== Print Styles ===== */
@media print {
  .main-sidebar,
  .main-header,
  .main-footer,
  .content-header .breadcrumb,
  .no-print {
    display: none !important;
  }

  .content-wrapper {
    margin-left: 0 !important;
    background: #fff !important;
  }

  .box {
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
  }

  .table > thead > tr > th {
    background-color: #f5f5f5 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  body {
    font-size: 12pt;
    color: #000;
  }

  a {
    text-decoration: none;
    color: #000;
  }
}

/* ===== Empty States ===== */
.empty-state,
.no-data-message,
#cart-table-notice td,
.no-results {
  text-align: center;
  padding: 32px 16px;
  color: #94a3b8;
  font-style: italic;
  font-size: 14px;
}

.empty-state .fa,
.no-data-message .fa {
  font-size: 36px;
  color: #d5dbe3;
  margin-bottom: 12px;
  display: block;
}

/* ===== Animation & Polish ===== */
/* Content wrapper page load */
.content-wrapper .content {
  animation: fadeIn 0.25s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Box/card appear */
.box {
  animation: cardAppear 0.3s ease-out;
}

@keyframes cardAppear {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Sidebar submenu expand */
.sidebar-menu .treeview-menu {
  transition: max-height 0.25s ease, opacity 0.2s ease;
}

/* Notification slide */
.alert {
  animation: alertSlide 0.3s ease-out;
}

@keyframes alertSlide {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Smooth focus transitions for all interactive elements */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
  outline: none;
  transition: box-shadow 0.2s ease;
}

/* Tooltip modern look */
.tooltip-inner {
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 12.5px;
  font-weight: 500;
  background-color: #1e293b;
}

.tooltip.top .tooltip-arrow {
  border-top-color: #1e293b;
}

.tooltip.bottom .tooltip-arrow {
  border-bottom-color: #1e293b;
}

/* Popover modern look */
.popover {
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  border: 1px solid #e2e8f0;
}

.popover-title {
  border-radius: 10px 10px 0 0;
  background-color: #f7f9fb;
  font-weight: 600;
  font-size: 14px;
  padding: 12px 16px;
  border-bottom: 1px solid #eef1f5;
}

.popover-content {
  padding: 14px 16px;
  font-size: 13.5px;
}

/* Panel modern look */
.panel {
  border-radius: 8px;
  border: none;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
}

.panel-heading {
  border-radius: 8px 8px 0 0;
  font-weight: 600;
  padding: 14px 18px;
}

.panel-body {
  padding: 16px 18px;
}

.panel-footer {
  border-radius: 0 0 8px 8px;
  background-color: #fafbfc;
  padding: 12px 18px;
}

/* Well / Callout modernization */
.well {
  border-radius: 8px;
  background-color: #f7f9fb;
  border: 1px solid #eef1f5;
  box-shadow: none;
  padding: 16px 18px;
}

.callout {
  border-radius: 8px;
  border-left-width: 4px;
  padding: 16px 18px;
}

/* List group modernization */
.list-group-item {
  border-color: #eef1f5;
  padding: 12px 16px;
  font-size: 13.5px;
  transition: background-color 0.15s ease;
}

.list-group-item:first-child {
  border-radius: 8px 8px 0 0;
}

.list-group-item:last-child {
  border-radius: 0 0 8px 8px;
}

.list-group-item:hover {
  background-color: #f7f9fb;
}

.list-group-item.active {
  background-color: #4a90d9;
  border-color: #4a90d9;
}

/* Breadcrumb modernization */
.breadcrumb {
  background-color: transparent;
  border-radius: 6px;
  padding: 8px 0;
  font-size: 13px;
}

.breadcrumb > li + li:before {
  color: #94a3b8;
  content: "\f105";
  font-family: FontAwesome;
  font-size: 11px;
  padding: 0 8px;
}

.breadcrumb > .active {
  color: #64748b;
}

/* Input group modernization */
.input-group .form-control,
.input-group .input-group-addon,
.input-group .input-group-btn > .btn {
  position: relative;
}

.input-group .form-control {
  z-index: 2;
}

.input-group .input-group-btn .btn {
  border-radius: 6px;
  border: 1px solid #d5dbe3;
  height: 40px;
}

.input-group .input-group-addon:first-child,
.input-group .form-control:first-child,
.input-group .input-group-btn:first-child > .btn,
.input-group .input-group-btn:first-child > .btn-group > .btn {
  border-right: none;
  border-radius: 6px 0 0 6px;
}

.input-group .input-group-addon:last-child,
.input-group .form-control:last-child,
.input-group .input-group-btn:last-child > .btn,
.input-group .input-group-btn:last-child > .btn-group > .btn {
  border-left: none;
  border-radius: 0 6px 6px 0;
}

.input-group .form-control:not(:first-child):not(:last-child),
.input-group .input-group-addon:not(:first-child):not(:last-child),
.input-group .input-group-btn:not(:first-child):not(:last-child) > .btn,
.input-group .input-group-btn:not(:first-child):not(:last-child) > .btn-group > .btn {
  border-radius: 0;
}

.input-group .input-group-addon + .form-control,
.input-group .input-group-addon + .input-group-btn > .btn,
.input-group .form-control + .input-group-btn > .btn,
.input-group .input-group-btn + .form-control,
.input-group .input-group-btn + .input-group-addon {
  margin-left: 0;
}

.input-group .input-group-addon,
.input-group .input-group-btn > .btn {
  white-space: nowrap;
}

.input-group.input-group-sm .form-control,
.input-group.input-group-sm .input-group-addon,
.input-group.input-group-sm .input-group-btn > .btn {
  height: 34px;
  font-size: 12.5px;
}

.input-group.input-group-sm .input-group-addon {
  padding: 5px 10px;
}

.input-group.input-group-sm .input-group-btn > .btn {
  padding-top: 6px;
  padding-bottom: 6px;
}

.input-group.input-group-lg .form-control,
.input-group.input-group-lg .input-group-addon,
.input-group.input-group-lg .input-group-btn > .btn {
  height: 46px;
}

.input-group select.form-control {
  z-index: 3;
}

/* Thumbnail modernization */
.thumbnail {
  border-radius: 8px;
  border: 1px solid #eef1f5;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.2s ease;
}

.thumbnail:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Nav pills (non-stacked) */
.nav-pills > li > a {
  border-radius: 6px;
  font-size: 13.5px;
  font-weight: 500;
  color: #4a5568;
  padding: 8px 16px;
  transition: all 0.15s ease;
}

.nav-pills > li > a:hover {
  background-color: #f0f4f8;
}

.nav-pills > li.active > a,
.nav-pills > li.active > a:hover,
.nav-pills > li.active > a:focus {
  background-color: #4a90d9;
  color: #fff;
}

/* Knob / dial widgets */
.knob-label {
  font-size: 13px;
  font-weight: 500;
  color: #64748b;
}

/* Direct chat (used in checkout) */
.direct-chat-messages {
  border-top: 1px solid #eef1f5;
}

.direct-chat-msg {
  margin-bottom: 12px;
}

/* Timeline modernization */
.timeline > li > .timeline-item {
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  border: 1px solid #eef1f5;
}

.timeline > li > .timeline-item > .timeline-header {
  border-bottom: 1px solid #eef1f5;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
}

.timeline > li > .timeline-item > .timeline-body {
  padding: 14px 16px;
  font-size: 13.5px;
}

/* Notification/toast modernization */
.bootstrap-growl,
[data-notify] {
  border-radius: 8px !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12) !important;
  font-size: 13.5px;
  padding: 12px 18px !important;
}

/* Slick slider (category carousel) */
.slick-item {
  border-radius: 6px;
  transition: all 0.15s ease;
  margin: 0 4px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

.slick-item:hover {
  background-color: #eef2f7;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08) !important;
}

.slick-item.active,
.slick-item.selected {
  background-color: #4a90d9;
  color: #fff;
  box-shadow: 0 2px 6px rgba(74, 144, 217, 0.3) !important;
}
