/* ========================================
   SETTINGS REDESIGN - Modern & Responsive
   Applies to settings-pos.php and all sub-pages
   Uses ONLY existing theme.css variables
   ======================================== */

/* ========================================
   1. SIDEBAR
   ======================================== */
.dashboard-container {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 260px;
  background-color: var(--secondary-color);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-color);
  box-shadow: 4px 0 12px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  z-index: 100;
  overflow-y: auto;
  overflow-x: hidden;
}

.logo-container {
  padding: 16px 16px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.dashboard-container img {
  max-width: 100%;
  height: auto;
}

.dashboard-items {
  list-style: none;
  padding: 8px 0;
  margin: 0;
  flex: 1;
  overflow-y: auto;
}

.dashboard-items li {
  padding: 12px 16px;
  position: relative;
  transition: all 0.25s ease;
  border-left: 3px solid transparent;
  cursor: pointer;
  opacity: 1 !important;
  animation: none !important;
}

.dashboard-items li:hover {
  background: rgba(255, 255, 255, 0.06);
  border-left-color: var(--primary-color);
}

.dashboard-items li.active_dashboard {
  background-color: var(--primary-color);
  border-left-color: transparent;
}

.dashboard-items li.active_dashboard:hover {
  background-color: var(--primary-color);
}

.dashboard-items li a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 600;
  font-size: 15px;
  display: block;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.dashboard-items li:hover a,
.dashboard-items li.active_dashboard a {
  opacity: 1;
  color: var(--text-color);
}

/* ========================================
   2. MAIN CONTENT AREA
   ======================================== */
.container-fluid.main-content {
  margin-left: 260px;
  width: auto;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 0 !important;
  background: var(--background-color);
  color: var(--text-color);
}

.main-content-header {
  padding: 16px 24px;
  background: var(--background-color);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.main-content-header h3 {
  margin: 0;
  color: var(--text-color);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 1px;
}

.button_close_setting {
  border-radius: 8px !important;
  background: transparent;
  border: none;
  box-shadow: none;
  color: var(--text-color);
  padding: 8px;
  transition: background 0.2s ease;
}

.button_close_setting:hover {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px !important;
}

.main-content-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  padding-bottom: 80px;
  background: var(--background-color);
}

/* Scrollbar inside settings body */
.main-content-body::-webkit-scrollbar {
  width: 6px;
}

.main-content-body::-webkit-scrollbar-track {
  background: transparent;
}

.main-content-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
}

.main-content-body::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* ========================================
   3. FOOTER
   ======================================== */
.main-content-footer {
  flex-shrink: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: var(--secondary-color);
}

.footer-content {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
}

.footer-content .row,
.footer-content .col {
  display: contents;
}

.footer-content button {
  min-width: 130px;
  height: 42px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.footer-content .cancel_setting {
  background: #C62828;
  color: #fff;
}

.footer-content .cancel_setting:hover {
  background: #d32f2f;
}

.footer-content .save_setting {
  background: #428A47;
  color: #fff;
}

.footer-content .save_setting:hover {
  background: #4caf50;
}

/* ========================================
   4. SETTINGS CARD (Section containers)
   ======================================== */
.settings-card {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.15) 100%);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
}

:root.light-mode .settings-card {
  background: var(--settings-card-bg-light);
  border-color: var(--settings-card-border-light);
  box-shadow: var(--settings-card-shadow-light);
}

/* Section headings inside cards */
.settings-card > h4,
.general_settings h4,
.order_payment_settings h4,
.weighing-scale-setting h4,
.my_company_setting h4 {
  font-size: 20px !important;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 20px !important;
  padding-bottom: 14px;
  border-bottom: 2px solid transparent;
  border-image: linear-gradient(90deg, var(--primary-color) 0%, rgba(255, 103, 0, 0.1) 100%) 1;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  position: relative;
}

.settings-card > h4::before,
.general_settings .application-style > h4::before,
.general_settings .business-style > h4::before,
.order_payment_settings .items_setting > h4::before,
.order_payment_settings .payments-setting > h4::before,
.order_payment_settings .void_item_setting > h4::before,
.weighing-scale-setting .weighing_scales > h4::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 50px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color) 0%, transparent 100%);
}

/* ========================================
   5. SETTINGS ROW (Label + Control pairs)
   ======================================== */
.gen-settings,
.order-payment-settings,
.weighing-settings,
.company_information,
.database_setting,
.machine-settings {
  margin-bottom: 0 !important;
  padding: 14px 16px;
  background-color: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.2s ease;
  font-size: 14px;
}

.gen-settings:hover,
.order-payment-settings:hover,
.weighing-settings:hover,
.company_information:hover {
  background-color: rgba(255, 255, 255, 0.04);
}

:root.light-mode .gen-settings,
:root.light-mode .order-payment-settings,
:root.light-mode .weighing-settings,
:root.light-mode .company_information {
  background-color: var(--settings-row-bg-light);
  border-bottom-color: var(--settings-row-border-light);
}

:root.light-mode .gen-settings:hover,
:root.light-mode .order-payment-settings:hover,
:root.light-mode .weighing-settings:hover,
:root.light-mode .company_information:hover {
  background-color: var(--settings-row-hover-bg-light);
}

/* Row layout: label left, control right */
.gen-settings .row,
.order-payment-settings .row,
.weighing-settings .row,
.company_information .row {
  display: flex;
  align-items: center;
  width: 100%;
  margin: 0;
  flex-wrap: nowrap;
}

.gen-settings .row > .col-6,
.order-payment-settings .row > .col-6,
.weighing-settings .row > .col-6,
.company_information .row > .col-6 {
  flex: 0 0 auto;
  max-width: none;
  padding: 0;
}

.gen-settings .row > .col-6:first-child,
.order-payment-settings .row > .col-6:first-child,
.weighing-settings .row > .col-6:first-child,
.company_information .row > .col-6:first-child {
  flex: 1;
  min-width: 0;
}

.gen-settings .row > .col-6:last-child,
.order-payment-settings .row > .col-6:last-child,
.weighing-settings .row > .col-6:last-child,
.company_information .row > .col-6:last-child {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

/* Labels */
.gen-settings label.labels,
.order-payment-settings label,
.weighing-settings label.labels,
.company_information label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-color);
  margin: 0;
  opacity: 0.9;
}

.gen-settings .labels {
  width: auto !important;
}

/* ========================================
   6. TOGGLE SWITCHES (Modern)
   ======================================== */
.toggle-checkbox {
  display: none;
}

.toggle-label {
  display: inline-block;
  position: relative;
  width: 44px;
  height: 22px;
  background-color: #C62828;
  border-radius: 22px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin: 0 !important;
  flex-shrink: 0;
}

.toggle-label::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  background-color: #fff;
  border-radius: 50%;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.toggle-checkbox:checked + .toggle-label {
  background-color: #428A47;
}

.toggle-checkbox:checked + .toggle-label::before {
  transform: translateX(22px);
}

/* ========================================
   7. INPUTS & SELECTS (Modern)
   ======================================== */
.general-selections,
select.goog-te-combo {
  border-radius: 8px !important;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-color);
  font-size: 14px;
  width: 200px;
  height: 36px;
  padding: 0 12px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}

.general-selections:hover {
  border-color: var(--primary-color);
}

.general-selections:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(255, 103, 0, 0.12);
}

.general-selections option {
  background: var(--secondary-color);
  color: var(--text-color);
}

:root.light-mode .general-selections {
  background: var(--settings-input-bg-light);
  border-color: var(--settings-input-border-light);
}

:root.light-mode .general-selections:hover {
  border-color: var(--settings-input-hover-border-light);
}

:root.light-mode .general-selections:focus {
  box-shadow: var(--settings-input-focus-shadow-light);
}

/* Text inputs in settings */
.gen-settings input[type="text"],
.gen-settings input[type="number"],
.gen-settings input[type="email"],
.gen-settings input[type="password"],
.gen-settings input[type="date"],
.order-payment-settings input[type="text"],
.order-payment-settings input[type="number"],
.weighing-settings input[type="text"],
.weighing-settings input[type="number"],
.company_information input[type="text"],
.company_information input[type="number"],
.company_information input[type="email"],
.company_information input[type="date"],
.company_information input[type="password"],
.main_inputBox {
  border-radius: 8px !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid var(--border-color) !important;
  color: var(--text-color);
  font-size: 14px;
  height: 36px;
  padding: 0 12px;
  outline: none !important;
  box-shadow: none !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  width: 200px;
}

.gen-settings input:hover,
.order-payment-settings input:hover,
.weighing-settings input:hover,
.company_information input:hover {
  border-color: var(--primary-color) !important;
}

.gen-settings input:focus,
.order-payment-settings input:focus,
.weighing-settings input:focus,
.company_information input:focus {
  border-color: var(--primary-color) !important;
  box-shadow: 0 0 0 3px rgba(255, 103, 0, 0.12) !important;
}

:root.light-mode .gen-settings input[type="text"],
:root.light-mode .gen-settings input[type="number"],
:root.light-mode .gen-settings input[type="email"],
:root.light-mode .gen-settings input[type="date"],
:root.light-mode .order-payment-settings input[type="text"],
:root.light-mode .order-payment-settings input[type="number"],
:root.light-mode .weighing-settings input[type="text"],
:root.light-mode .weighing-settings input[type="number"],
:root.light-mode .company_information input[type="text"],
:root.light-mode .company_information input[type="number"],
:root.light-mode .company_information input[type="email"],
:root.light-mode .company_information input[type="date"] {
  background: var(--settings-input-bg-light) !important;
  border-color: var(--settings-input-border-light) !important;
  color: var(--text-color);
}

/* Textarea */
.company_information textarea,
textarea.notes_on_receipt {
  border-radius: 8px !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid var(--border-color) !important;
  color: var(--text-color);
  font-size: 14px;
  padding: 10px 12px;
  outline: none !important;
  box-shadow: none !important;
  transition: border-color 0.2s ease;
  resize: vertical;
  width: 250px;
}

.company_information textarea:focus,
textarea.notes_on_receipt:focus {
  border-color: var(--primary-color) !important;
  box-shadow: 0 0 0 3px rgba(255, 103, 0, 0.12) !important;
}

/* ========================================
   8. FIX inputrowsCol negative margin
   ======================================== */
.inputrowsCol {
  margin-left: 0 !important;
}

/* ========================================
   9. GENERAL SETTINGS - Section wrappers
   ======================================== */
.general_settings {
  outline: none !important;
}

.general_settings .application-style,
.general_settings .business-style,
.general_settings #business-types,
.general_settings #sidebar-option {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.15) 100%);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

:root.light-mode .general_settings .application-style,
:root.light-mode .general_settings .business-style,
:root.light-mode .general_settings #business-types,
:root.light-mode .general_settings #sidebar-option {
  background: var(--settings-card-bg-light);
  border-color: var(--settings-card-border-light);
  box-shadow: var(--settings-card-shadow-light);
}

.general_settings .col-6 {
  width: auto !important;
  justify-content: start;
}

/* VFD Settings */
.vfd-configuration {
  width: 100% !important;
  max-width: 550px;
  padding: 16px !important;
  margin-top: 8px;
  background: rgba(0, 0, 0, 0.15);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.vfd-settings-input {
  border-radius: 8px !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid var(--border-color) !important;
  color: var(--text-color);
  font-size: 14px;
  width: 100% !important;
  height: 36px;
  padding: 0 12px;
  outline: none !important;
  box-shadow: none !important;
}

/* Input wrapper for date fields */
.input-wrapper {
  position: relative;
}

.input-wrapper input {
  width: 200px;
}

/* ========================================
   10. ORDER & PAYMENT SETTINGS
   ======================================== */
.order_payment_settings {
  outline: none !important;
}

.order_payment_settings .items_setting,
.order_payment_settings .payments-setting,
.order_payment_settings .void_item_setting,
.order_payment_settings .order_name_setting {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.15) 100%);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

:root.light-mode .order_payment_settings .items_setting,
:root.light-mode .order_payment_settings .payments-setting,
:root.light-mode .order_payment_settings .void_item_setting,
:root.light-mode .order_payment_settings .order_name_setting {
  background: var(--settings-card-bg-light);
  border-color: var(--settings-card-border-light);
  box-shadow: var(--settings-card-shadow-light);
}

/* Categories section */
#specific_cats .settings-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.settings-subtitle {
  font-size: 12px;
  color: var(--information-color);
  margin-top: 4px;
}

.settings-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 12px 0;
}

/* Category checkboxes */
.custom-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  margin: 4px;
  font-size: 13px;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.2s ease;
}

.custom-check:hover {
  background: rgba(255, 255, 255, 0.06);
}

.updateFilter {
  border-radius: 8px !important;
  padding: 8px 20px !important;
  font-size: 13px !important;
}

/* ========================================
   11. WEIGHING SCALE SETTINGS
   ======================================== */
.weighing-scale-setting {
  outline: none !important;
}

.weighing-scale-setting .weighing_scales {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.15) 100%);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

:root.light-mode .weighing-scale-setting .weighing_scales {
  background: var(--settings-card-bg-light);
  border-color: var(--settings-card-border-light);
  box-shadow: var(--settings-card-shadow-light);
}

/* ========================================
   12. MY COMPANY SETTINGS
   ======================================== */
.my_company_setting {
  outline: none !important;
}

/* Nav tabs - Modern */
.my_company_setting .nav-tabs {
  border-bottom: 2px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 20px;
  gap: 4px;
  flex-wrap: wrap;
}

.my_company_setting .nav-tabs .nav-link {
  border: none;
  border-radius: 8px 8px 0 0;
  color: var(--text-color);
  opacity: 0.7;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 18px;
  transition: all 0.2s ease;
  background: transparent;
}

.my_company_setting .nav-tabs .nav-link:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.05);
}

.my_company_setting .nav-tabs .nav-link.active {
  opacity: 1;
  background: rgba(255, 255, 255, 0.08);
  border-bottom: 2px solid var(--primary-color);
  color: var(--text-color);
}

:root.light-mode .my_company_setting .nav-tabs {
  border-bottom-color: var(--settings-card-border-light);
}

:root.light-mode .my_company_setting .nav-tabs .nav-link.active {
  background: rgba(0, 0, 0, 0.04);
  color: var(--text-color);
}

/* Company data wrapper */
.company_data_wrapper,
.bir_wrapper_container {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.15) 100%);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

:root.light-mode .company_data_wrapper,
:root.light-mode .bir_wrapper_container {
  background: var(--settings-card-bg-light);
  border-color: var(--settings-card-border-light);
  box-shadow: var(--settings-card-shadow-light);
}

.bir-section-title {
  font-size: 18px !important;
  font-weight: 600;
  color: var(--text-color);
  padding-bottom: 12px;
  border-bottom: 2px solid transparent;
  border-image: linear-gradient(90deg, var(--primary-color) 0%, rgba(255, 103, 0, 0.1) 100%) 1;
  position: relative;
}

/* Doc logo section */
.doc-logo {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.15) 100%);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 20px;
}

:root.light-mode .doc-logo {
  background: var(--settings-card-bg-light);
  border-color: var(--settings-card-border-light);
}

.doc-logo h4 {
  font-size: 16px !important;
  margin-bottom: 16px !important;
}

.doc-logo input[type="file"] {
  font-size: 14px;
  margin-bottom: 12px;
}

.doc-logo input[type="submit"],
.ads-img input[type="submit"] {
  background: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.doc-logo input[type="submit"]:hover,
.ads-img input[type="submit"]:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* Test print & other action buttons in settings */
.test_print,
.test_vfd_display,
.reset_databaseBtn,
.fileExplore {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: 8px !important;
  color: var(--text-color) !important;
  font-size: 14px !important;
  padding: 10px 20px !important;
  cursor: pointer;
  transition: all 0.2s ease;
}

.test_print:hover,
.test_vfd_display:hover,
.reset_databaseBtn:hover,
.fileExplore:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: var(--primary-color) !important;
}

/* ========================================
   13. RESPONSIVE BREAKPOINTS
   ======================================== */

/* Tablet */
@media (max-width: 1024px) {
  .dashboard-container {
    width: 220px;
  }

  .container-fluid.main-content {
    margin-left: 220px;
  }

  .main-content-body {
    padding: 16px;
  }

  .gen-settings .row,
  .order-payment-settings .row,
  .weighing-settings .row,
  .company_information .row {
    flex-wrap: wrap;
    gap: 8px;
  }

  .gen-settings .row > .col-6:first-child,
  .order-payment-settings .row > .col-6:first-child,
  .weighing-settings .row > .col-6:first-child,
  .company_information .row > .col-6:first-child {
    flex: 1 0 200px;
  }
}

/* Small tablet / large phone */
@media (max-width: 768px) {
  .dashboard-container {
    width: 100%;
    height: auto;
    position: relative;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  }

  .dashboard-items {
    display: flex;
    flex-wrap: wrap;
    padding: 8px;
    gap: 4px;
  }

  .dashboard-items li {
    border-left: none;
    border-radius: 8px;
    padding: 8px 14px;
  }

  .dashboard-items li.active_dashboard {
    border-radius: 8px;
  }

  .container-fluid.main-content {
    margin-left: 0;
    min-height: auto;
  }

  .main-content-body {
    padding: 12px;
    padding-bottom: 80px;
  }

  .gen-settings .row,
  .order-payment-settings .row,
  .weighing-settings .row,
  .company_information .row {
    flex-direction: column;
    gap: 8px;
  }

  .gen-settings .row > .col-6:last-child,
  .order-payment-settings .row > .col-6:last-child,
  .weighing-settings .row > .col-6:last-child,
  .company_information .row > .col-6:last-child {
    justify-content: flex-start;
  }

  .general-selections,
  .gen-settings input[type="text"],
  .gen-settings input[type="number"],
  .order-payment-settings input[type="number"],
  .weighing-settings input[type="number"],
  .company_information input[type="text"],
  .company_information input[type="number"],
  .company_information input[type="email"],
  .company_information textarea {
    width: 100% !important;
    max-width: 100%;
  }

  .general_settings .application-style,
  .general_settings .business-style,
  .general_settings #business-types,
  .general_settings #sidebar-option,
  .order_payment_settings .items_setting,
  .order_payment_settings .payments-setting,
  .order_payment_settings .void_item_setting,
  .weighing-scale-setting .weighing_scales,
  .company_data_wrapper,
  .bir_wrapper_container {
    padding: 16px;
    border-radius: 10px;
  }

  .footer-content {
    padding: 10px 12px;
  }

  .footer-content button {
    min-width: 100px;
    height: 38px;
    font-size: 13px;
  }
}

/* Small phone */
@media (max-width: 480px) {
  .main-content-header h3 {
    font-size: 20px;
  }

  .dashboard-items li a {
    font-size: 13px;
  }

  .footer-content button {
    min-width: 80px;
    font-size: 12px;
  }
}

/* ========================================
   14. LIGHT MODE OVERRIDES
   ======================================== */
:root.light-mode .dashboard-container {
  box-shadow: 4px 0 12px rgba(0, 0, 0, 0.08);
  border-right-color: rgba(0, 0, 0, 0.1);
}

:root.light-mode .dashboard-items li:hover {
  background: rgba(0, 0, 0, 0.04);
}

:root.light-mode .main-content-header {
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

:root.light-mode .main-content-footer {
  border-top-color: rgba(0, 0, 0, 0.08);
  background: var(--secondary-color);
}

:root.light-mode .button_close_setting:hover {
  background: rgba(0, 0, 0, 0.06);
}

:root.light-mode .main-content-body::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
}

:root.light-mode .main-content-body::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.25);
}

/* ========================================
   15. SETTINGS-INPUT (generic class for inputs)
   ======================================== */
.settings-input {
  border-radius: 8px !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid var(--border-color) !important;
  color: var(--text-color);
  font-size: 14px;
  height: 36px;
  padding: 0 12px;
  outline: none !important;
  box-shadow: none !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  width: 200px;
}

.settings-input:hover {
  border-color: var(--primary-color) !important;
}

.settings-input:focus {
  border-color: var(--primary-color) !important;
  box-shadow: 0 0 0 3px rgba(255, 103, 0, 0.12) !important;
}

:root.light-mode .settings-input {
  background: var(--settings-input-bg-light) !important;
  border-color: var(--settings-input-border-light) !important;
  color: var(--text-color);
}

/* ========================================
   16. MY COMPANY - Extra elements
   ======================================== */
.doc-logo-preview {
  max-width: 250px;
}

.doc-logo-img {
  width: 220px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 8px;
}

.notes-container {
  width: 40%;
  min-width: 250px;
}

/* Ads img table */
.ads-img-table table,
.ewallet-table table {
  width: 100%;
  border-collapse: collapse;
}

.ads-img-table th,
.ewallet-table th {
  background: rgba(255, 255, 255, 0.05);
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ads-img-table td,
.ewallet-table td {
  padding: 10px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 14px;
  vertical-align: middle;
}

:root.light-mode .ads-img-table th,
:root.light-mode .ewallet-table th {
  background: rgba(0, 0, 0, 0.04);
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

:root.light-mode .ads-img-table td,
:root.light-mode .ewallet-table td {
  border-bottom-color: rgba(0, 0, 0, 0.06);
}

/* Update modal */
#updateModal {
  background: var(--secondary-color);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 20px;
  margin-top: 16px;
}

#updateModal label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  font-size: 14px;
}

#updateModal input[type="text"],
#updateModal input[type="file"] {
  width: 100%;
  margin-bottom: 12px;
}

#updateModal button {
  border-radius: 8px;
  padding: 8px 20px;
  font-size: 14px;
  border: none;
  cursor: pointer;
  margin-right: 8px;
}

#updateModal button[type="submit"] {
  background: #428A47;
  color: #fff;
}

#updateModal #closeModal {
  background: #C62828;
  color: #fff;
}
