/* Modern Dashboard Layout with Dark Sidebar */
:root {
  --sidebar-width: 260px;
  --sidebar-bg: #1a1a1a;
  --sidebar-text: #e0e0e0;
  --sidebar-hover: #2d2d2d;
  --sidebar-active: #007bff;
  --main-bg: #f8f9fa;
  --border-color: #dee2e6;
  --shadow: 0 0 0.875rem 0 rgba(33, 37, 41, 0.05);
  --header-height: 70px;
  --force-desktop: false;
}

/* Force desktop layout when variable is set */
html[style*="--force-desktop: true"] .sidebar {
  position: fixed !important;
  left: 0 !important;
  transform: none !important;
  width: var(--sidebar-width) !important;
}

html[style*="--force-desktop: true"] .main-content {
  margin-left: var(--sidebar-width) !important;
  width: calc(100% - var(--sidebar-width)) !important;
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: #495057;
  background-color: var(--main-bg);
  margin: 0;
  padding: 0;
}

/* Layout Structure */
.dashboard-wrapper {
  display: flex;
  min-height: 100vh;
  position: relative;
}

/* Sidebar Styles */
.sidebar {
  width: var(--sidebar-width);
  background: var(--sidebar-bg);
  color: var(--sidebar-text);
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  z-index: 900;
  overflow-y: auto;
  overflow-x: hidden;
  transition: width 0.3s ease, transform 0.3s ease;
  box-shadow: 2px 0 5px rgba(0,0,0,0.1);
}

.sidebar * {
  transition: all 0.3s ease;
}

.sidebar .feather {
  color: inherit !important;
  background: transparent !important;
}

.sidebar.collapsed {
  width: 60px;
}

.sidebar.collapsed .sidebar-text {
  opacity: 0;
  width: 0;
  overflow: hidden;
  white-space: nowrap;
  transition: opacity 0.3s ease, width 0.3s ease;
  display: none;
}

.sidebar.collapsed .sidebar-header {
    padding: 1.5rem 1rem;
    justify-content: flex-start;
}

.sidebar.collapsed .sidebar-header h3 {
    justify-content: flex-start;
    text-align: left;
}

.sidebar.collapsed .sidebar-header h3 .sidebar-text {
    display: none;
}

.sidebar.collapsed .btn-collapse-desktop {
    position: absolute;
    top: 1.5rem;
    right: 0.5rem;
    min-width: 24px;
    height: 24px;
}

.sidebar.collapsed .btn-collapse-desktop i {
    transform: rotate(180deg);
}

.sidebar.collapsed .sidebar-menu a {
    justify-content: flex-start;
    padding: 0.75rem 1rem;
    text-align: left;
}

.sidebar.collapsed .sidebar-menu a i {
    margin-right: 0;
    margin-left: 0;
}

.sidebar.collapsed .sidebar-menu a span {
    display: none;
}

.btn-collapse-desktop {
  background: none;
  border: none;
  color: var(--sidebar-text);
  padding: 0.25rem;
  cursor: pointer;
  border-radius: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  min-width: 32px;
  height: 32px;
}

.btn-collapse-desktop:hover {
  background-color: var(--sidebar-hover);
  color: #fff;
}

.btn-collapse-desktop i {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
  color: inherit;
}

.sidebar-header {
  padding: 1.5rem 1rem;
  border-bottom: 1px solid #333;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
}

.sidebar-header h3 {
  color: var(--sidebar-text);
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  transition: all 0.3s ease;
}

.sidebar-header h3 i {
  color: var(--sidebar-text);
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.btn-collapse-desktop {
  background: none;
  border: none;
  color: var(--sidebar-text);
  padding: 0.25rem;
  cursor: pointer;
  border-radius: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.btn-collapse-desktop:hover {
  background-color: var(--sidebar-hover);
  color: #fff;
}

.btn-collapse-desktop i {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.sidebar-text {
  transition: opacity 0.3s ease, width 0.3s ease;
  overflow: hidden;
  white-space: nowrap;
}

.sidebar-menu {
  padding: 1rem 0;
  list-style: none;
  margin: 0;
}

.sidebar-menu li {
  margin-bottom: 0.25rem;
}

.sidebar-menu a {
  display: flex;
  align-items: center;
  padding: 0.75rem 1.5rem;
  color: var(--sidebar-text);
  text-decoration: none;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
  position: relative;
  white-space: nowrap;
}

.sidebar-menu a:hover {
  background-color: var(--sidebar-hover);
  color: #fff;
}

.sidebar-menu a.active {
  background-color: var(--sidebar-hover);
  border-left-color: var(--sidebar-active);
  color: #fff;
}

.sidebar-menu li a.active {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    transform: translateX(5px);
}

.sidebar-menu .no-permissions-message {
    padding: 1rem;
}

.sidebar-menu .no-permissions-message .alert {
    margin: 0;
    padding: 0.75rem;
    font-size: 0.875rem;
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    color: #856404;
}

.sidebar-menu .no-permissions-message .alert i {
    margin-right: 0.5rem;
}

.sidebar-menu a i {
  width: 20px;
  height: 20px;
  margin-right: 0.75rem;
  flex-shrink: 0;
  color: inherit;
  transition: margin-right 0.3s ease;
}

.sidebar-menu a span {
  font-size: 0.9rem;
  font-weight: 500;
  transition: opacity 0.3s ease;
  overflow: hidden;
}

/* Main Content Area */
.main-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  min-height: 100vh;
  background: var(--main-bg);
  transition: margin-left 0.3s ease;
  width: calc(100% - var(--sidebar-width));
  position: relative;
  overflow-x: hidden;
  max-width: calc(100% - var(--sidebar-width));
}

.main-content.sidebar-collapsed {
  margin-left: 60px;
  width: calc(100% - 60px);
  max-width: calc(100% - 60px);
}

/* Header */
.main-header {
  background: #fff;
  padding: 0 2rem;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #495057;
  cursor: pointer;
}

.header-title h1 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  color: #212529;
}

.header-actions {
  display: flex !important;
  align-items: center !important;
  gap: 1rem !important;
  flex-shrink: 0 !important;
  min-width: 0 !important;
  position: relative !important;
  z-index: 100 !important;
}

.user-dropdown {
  position: relative;
}

/* User dropdown base positioning - JavaScript controls visibility */
.user-dropdown {
  position: relative;
}

.user-dropdown .dropdown-menu {
  /* Base styles only - JavaScript handles show/hide */
}

/* NO CSS INTERFERENCE - JavaScript controls all dropdown behavior */

/* User dropdown - minimal CSS, let JavaScript control everything */
.user-dropdown {
  position: relative;
}

/* Remove all Bootstrap dropdown interference */
.user-dropdown .dropdown-menu.show,
.user-dropdown .dropdown-menu:not(.show) {
  /* Let JavaScript control visibility completely */
}

.user-dropdown .dropdown-toggle i[data-feather] {
  flex-shrink: 0 !important;
  width: 16px !important;
  height: 16px !important;
  display: inline-block !important;
  stroke: currentColor !important;
  stroke-width: 2 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
  fill: none !important;
}

/* Ensure dropdown toggle is always visible */
.user-dropdown .dropdown-toggle::after {
  display: none !important;
}

/* Fix Bootstrap dropdown arrow */
.user-dropdown .dropdown-toggle .feather-chevron-down {
  transition: transform 0.15s ease-in-out !important;
}

.user-dropdown .dropdown-toggle[aria-expanded="true"] .feather-chevron-down {
  transform: rotate(180deg) !important;
}

/* Content Area */
.content-area {
  padding: 2rem;
  max-width: 100%;
  width: 100%;
  position: relative;
  z-index: 1;
}

/* Ensure all buttons and interactive elements in content area are clickable */
.content-area .btn,
.content-area .table .btn,
.content-area button,
.content-area a,
.content-area input,
.content-area select,
.content-area textarea,
.content-area .form-control {
  pointer-events: auto !important;
  position: relative !important;
  z-index: 1 !important;
}

.content-area .btn:hover,
.content-area button:hover {
  cursor: pointer !important;
}

/* Ensure table elements are clickable but at lower z-index than modals */
.content-area .table {
  pointer-events: auto !important;
  position: relative !important;
  z-index: 0 !important;
}

.content-area .table td,
.content-area .table th {
  pointer-events: auto !important;
  position: relative !important;
  z-index: 0 !important;
}

/* Ensure proper layout for dashboard cards and forms */
.row {
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}

.col, .col-1, .col-2, .col-3, .col-4, .col-5, .col-6, 
.col-7, .col-8, .col-9, .col-10, .col-11, .col-12,
.col-sm, .col-md, .col-lg, .col-xl,
.col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6,
.col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12,
.col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6,
.col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12,
.col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6,
.col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12,
.col-xl-1, .col-xl-2, .col-xl-3, .col-xl-4, .col-xl-5, .col-xl-6,
.col-xl-7, .col-xl-8, .col-xl-9, .col-xl-10, .col-xl-11, .col-xl-12 {
  padding-left: 15px;
  padding-right: 15px;
}

/* Cards */
.card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
}

.card-header {
  padding: 1rem 1.5rem;
  background: #f8f9fa;
  border-bottom: 1px solid var(--border-color);
  border-radius: 0.5rem 0.5rem 0 0;
}

.card-body {
  padding: 1.5rem;
}

.card-title {
  margin: 0 0 0.5rem 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: #212529;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  vertical-align: middle;
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: 0.375rem;
  transition: all 0.15s ease-in-out;
}

.btn-primary {
  color: #fff;
  background-color: #007bff;
  border-color: #007bff;
}

.btn-primary:hover {
  background-color: #0056b3;
  border-color: #004085;
}

.btn-success {
  color: #fff;
  background-color: #28a745;
  border-color: #28a745;
}

.btn-success:hover {
  background-color: #1e7e34;
  border-color: #1c7430;
}

.btn-danger {
  color: #fff;
  background-color: #dc3545;
  border-color: #dc3545;
}

.btn-danger:hover {
  background-color: #c82333;
  border-color: #bd2130;
}

.btn-outline-secondary {
  color: #6c757d;
  border-color: #6c757d;
  background-color: transparent;
}

.btn-outline-secondary:hover {
  color: #fff;
  background-color: #6c757d;
  border-color: #6c757d;
}

.btn-sm {
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
}

/* Tables */
.table {
  width: 100%;
  margin-bottom: 1rem;
  color: #495057;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: 0.75rem;
  vertical-align: top;
  border-top: 1px solid var(--border-color);
}

.table thead th {
  vertical-align: bottom;
  border-bottom: 2px solid var(--border-color);
  background-color: #f8f9fa;
  font-weight: 600;
  color: #212529;
}

.table-striped tbody tr:nth-of-type(odd) {
  background-color: rgba(0, 0, 0, 0.02);
}

.table-hover tbody tr:hover {
  background-color: rgba(0, 0, 0, 0.075);
}

/* Status Badges */
.badge {
  display: inline-block;
  padding: 0.35em 0.65em;
  font-size: 0.75em;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
  border-radius: 0.375rem;
}

.badge-success {
  color: #fff;
  background-color: #28a745;
}

.badge-warning {
  color: #212529;
  background-color: #ffc107;
}

.badge-danger {
  color: #fff;
  background-color: #dc3545;
}

.badge-secondary {
  color: #fff;
  background-color: #6c757d;
}

/* Alerts */
.alert {
  position: relative;
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
  border: 1px solid transparent;
  border-radius: 0.375rem;
}

.alert-success {
  color: #155724;
  background-color: #d4edda;
  border-color: #c3e6cb;
}

.alert-warning {
  color: #856404;
  background-color: #fff3cd;
  border-color: #ffeaa7;
}

.alert-danger {
  color: #721c24;
  background-color: #f8d7da;
  border-color: #f5c6cb;
}

/* Forms */
.form-group {
  margin-bottom: 1rem;
}

.form-label {
  display: inline-block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #495057;
}

.form-control {
  display: block;
  width: 100%;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.5;
  color: #495057;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid #ced4da;
  border-radius: 0.375rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
  color: #495057;
  background-color: #fff;
  border-color: #80bdff;
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Desktop layout - Ensure proper sidebar collapse behavior */
@media (min-width: 769px) {
    .dashboard-wrapper {
        display: flex !important;
        min-height: 100vh !important;
        position: relative !important;
    }

    .sidebar {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        height: 100vh !important;
        z-index: 1000 !important;
        width: var(--sidebar-width);
        transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        will-change: width;
        overflow: hidden;
    }

    /* Prevent transition on page load */
    .sidebar.no-transition,
    .main-content.no-transition {
        transition: none !important;
    }

    .main-content {
        margin-left: var(--sidebar-width);
        width: calc(100% - var(--sidebar-width));
        max-width: calc(100% - var(--sidebar-width));
        transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1), width 0.3s cubic-bezier(0.4, 0, 0.2, 1), max-width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        will-change: margin-left, width, max-width;
        min-height: 100vh !important;
        position: relative !important;
        flex: 1 !important;
    }

    /* Collapsed sidebar styles - Maximum specificity */
    body .dashboard-wrapper .sidebar.collapsed {
        width: 60px !important;
        min-width: 60px !important;
        max-width: 60px !important;
    }

    body .dashboard-wrapper .main-content.sidebar-collapsed {
        margin-left: 60px !important;
        width: calc(100% - 60px) !important;
        max-width: calc(100% - 60px) !important;
        min-width: calc(100% - 60px) !important;
    }

    /* Ensure immediate style application during transitions */
    .sidebar.collapsed {
        width: 60px !important;
    }

    .main-content.sidebar-collapsed {
        margin-left: 60px !important;
        width: calc(100% - 60px) !important;
        max-width: calc(100% - 60px) !important;
    }

    /* Prevent any layout interference */
    .sidebar.collapsed .sidebar-header {
        padding: 1.5rem 0.5rem;
        justify-content: center;
        text-align: center;
    }

    .sidebar.collapsed .sidebar-header h3 {
        justify-content: center;
        text-align: center;
        width: 100%;
    }

    .sidebar.collapsed .sidebar-header h3 .sidebar-text {
        display: none;
        opacity: 0;
        width: 0;
    }

    .sidebar.collapsed .sidebar-menu a {
        padding: 0.75rem 0;
        justify-content: center;
        text-align: center;
        width: 100%;
    }

    .sidebar.collapsed .sidebar-menu a i {
        margin-right: 0;
        margin-left: 0;
    }

    .sidebar.collapsed .sidebar-menu a .sidebar-text {
        display: none;
        opacity: 0;
        width: 0;
    }

    .sidebar.collapsed .btn-collapse-desktop {
        position: absolute;
        top: 1.5rem;
        right: 0.5rem;
        min-width: 24px;
        height: 24px;
    }

    .sidebar.collapsed .btn-collapse-desktop i {
        transform: rotate(180deg);
    }

    /* Force GPU acceleration for smooth transitions */
    .sidebar,
    .main-content {
        transform: translateZ(0);
        backface-visibility: hidden;
        perspective: 1000px;
    }

    /* Prevent any external CSS from overriding collapsed state */
    .sidebar.collapsed {
        width: 60px !important;
        min-width: 60px !important;
        max-width: 60px !important;
    }

    .main-content.sidebar-collapsed {
        margin-left: 60px !important;
        width: calc(100% - 60px) !important;
        max-width: calc(100% - 60px) !important;
        min-width: calc(100% - 60px) !important;
    }
}

/* Mobile Responsiveness - Improved mobile layout */
@media (max-width: 768px) {
    /* Sidebar mobile behavior */
    .sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100vh;
        z-index: 1050;
        transition: left 0.3s ease;
        transform: translateX(0);
    }

    .sidebar.show {
        left: 0;
        transform: translateX(0);
    }

    .sidebar.collapsed {
        width: 280px;
        left: -100%;
    }

    .sidebar.collapsed.show {
        left: 0;
    }

    /* Main content mobile adjustments */
    .main-content {
        margin-left: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0;
    }

    .main-content.sidebar-collapsed {
        margin-left: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Header mobile adjustments */
    .header-toggle {
        display: block;
    }

    .main-header {
        padding: 0 1rem;
        flex-wrap: nowrap;
        gap: 0.5rem;
        justify-content: space-between;
    }

    .header-title {
        flex: 1;
        min-width: 0;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .header-title h1 {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        min-width: 0;
margin: 0;
    }

    .header-actions {
        flex-shrink: 0;
        gap: 0.5rem;
    }

    .user-dropdown .dropdown-toggle {
        padding: 0.375rem 0.75rem !important;
        font-size: 0.875rem !important;
        max-width: 150px !important;
        min-width: 40px !important;
    }

    .user-dropdown .dropdown-toggle span {
        display: none !important;
    }

    .user-dropdown .dropdown-toggle i[data-feather]:first-child {
        margin-right: 0 !important;
    }

    .user-dropdown .dropdown-toggle i[data-feather]:last-child {
        margin-left: 0 !important;
    }

    .btn-collapse-desktop {
        display: none;
    }

    /* Content area mobile */
    .content-area {
        padding: 1rem;
        width: 100%;
        max-width: 100%;
    }

    /* Page header mobile - Ensure button visibility */
    .d-flex.justify-content-between {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .text-end {
        width: 100% !important;
        text-align: left !important;
    }

    /* Force button visibility on mobile */
    #addNewLocationBtn,
    #addNewCounterBtn,
    .btn-primary {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: auto !important;
        margin-bottom: 0.5rem !important;
        position: relative !important;
        z-index: 1000 !important;
        background-color: #007bff !important;
        border-color: #007bff !important;
        color: white !important;
    }

    /* Cards mobile */
    .card {
        margin-bottom: 1rem;
        border-radius: 0.375rem;
    }

    .card-body {
        padding: 1rem;
    }

    .card-header {
        padding: 0.75rem 1rem;
    }

    /* Tables mobile */
    .table-responsive {
        font-size: 0.9rem;
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border-radius: 0.375rem;
    }

    .table th,
    .table td {
        padding: 0.5rem;
        font-size: 0.875rem;
    }

    /* Buttons mobile */
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
        white-space: nowrap;
    }

    .btn-sm {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
    }

    .btn-group .btn {
        padding: 0.25rem 0.5rem;
        font-size: 0.8rem;
    }

    /* Hide sidebar text when collapsed on mobile */
    .sidebar.collapsed .sidebar-text {
        display: none;
    }

    /* Forms mobile */
    .form-control {
        padding: 0.5rem 0.75rem;
        font-size: 16px; /* Prevent zoom on iOS */
    }

    /* Header title mobile */
    .header-title h1 {
        font-size: 1.25rem;
    }

    /* Dashboard wrapper mobile */
.dashboard-wrapper {
        display: block;
        min-height: 100vh;
        width: 100%;
    }

    .stats-cards .col-lg-3 {
        margin-bottom: 1rem;
        flex: 0 0 100%;
        max-width: 100%;
    }

    /* Row and column adjustments for mobile */
    .row {
        margin-left: 0;
        margin-right: 0;
        width: 100%;
    }

    .col,
    .col-1, .col-2, .col-3, .col-4, .col-5, .col-6,
    .col-7, .col-8, .col-9, .col-10, .col-11, .col-12,
    .col-sm, .col-md, .col-lg, .col-xl,
    .col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6,
    .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12,
    .col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6,
    .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12,
    .col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6,
    .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12,
    .col-xl-1, .col-xl-2, .col-xl-3, .col-xl-4, .col-xl-5, .col-xl-6,
    .col-xl-7, .col-xl-8, .col-xl-9, .col-xl-10, .col-xl-11, .col-xl-12 {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
}

/* Feather icons alignment */
[data-feather] {
    vertical-align: text-bottom;
    width: 1em;
    height: 1em;
}

/* Disabled form field styling */
.form-control:disabled,
.form-select:disabled,
.form-check-input:disabled {
    background-color: #e9ecef !important;
    color: #6c757d !important;
    cursor: not-allowed !important;
    opacity: 0.65 !important;
    pointer-events: none !important;
}

.form-control[readonly] {
    background-color: #e9ecef !important;
    color: #6c757d !important;
    cursor: not-allowed !important;
    opacity: 0.65 !important;
}

/* Specific styling for disabled checkboxes */
.form-check-input:disabled + .form-check-label {
    color: #6c757d !important;
    opacity: 0.65 !important;
    cursor: not-allowed !important;
}

/* Restricted edit mode indicators */
.restricted-field {
    background-color: #e9ecef !important;
    color: #6c757d !important;
    cursor: not-allowed !important;
    opacity: 0.65 !important;
    pointer-events: none !important;
}

/* Feather icons alignment */
[data-feather] {
    vertical-align: text-bottom;
    width: 1em;
    height: 1em;
}

/* Disabled form field styling */
.form-control:disabled,
.form-select:disabled,
.form-check-input:disabled {
    background-color: #e9ecef !important;
    color: #6c757d !important;
    cursor: not-allowed !important;
    opacity: 0.65 !important;
    pointer-events: none !important;
}

.form-control[readonly] {
    background-color: #e9ecef !important;
    color: #6c757d !important;
    cursor: not-allowed !important;
    opacity: 0.65 !important;
}

/* Specific styling for disabled checkboxes */
.form-check-input:disabled + .form-check-label {
    color: #6c757d !important;
    opacity: 0.65 !important;
    cursor: not-allowed !important;
}

/* Restricted edit mode indicators */
.restricted-field {
    background-color: #e9ecef !important;
    color: #6c757d !important;
    cursor: not-allowed !important;
    opacity: 0.65 !important;
    pointer-events: none !important;
}

/* Custom styles for the appointment booking system */

/* Loading spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Enterprise selection styles */
.enterprise-list {
    margin: 2rem 0;
}

.enterprise-card {
    margin-bottom: 1rem;
}

.enterprise-card input[type="radio"] {
    display: none;
}

.enterprise-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border: 2px solid #e9ecef;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fff;
    text-decoration: none;
    color: inherit;
}

.enterprise-label:hover {
    border-color: #007bff;
    background: #f8f9fa;
    text-decoration: none;
    color: inherit;
}

.enterprise-card input[type="radio"]:checked + .enterprise-label {
    border-color: #007bff;
    background: #e7f3ff;
}

.enterprise-info h4 {
    margin: 0 0 0.25rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

.enterprise-role {
    font-size: 0.875rem;
    color: #6c757d;
    background: #f8f9fa;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
}

.enterprise-card input[type="radio"]:checked + .enterprise-label .enterprise-role {
    background: #007bff;
    color: white;
}