/* FixorOne - Mechanic Workshop Management System
 * Theme support with CSS variables
 *
 * Design Guidelines:
 * - When possible, add icons to improve the design and user experience
 * - Use SVG icons for better performance and scalability
 * - Maintain consistent icon sizing and spacing
 */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
}
/* Layout */.app-container {
  display: flex;
  min-height: 100vh;
}
/* Sidebar */.sidebar {
  width: 280px;
  background-color: var(--sidebar-bg);
  border-right: 1px solid var(--border-color);
  padding: 1rem 1rem 2rem 1rem;
  display: flex;
  flex-direction: column;
  position: fixed;
  left: 0;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 50;
  transition: transform 0.3s ease, background-color 0.3s ease;
}
.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}
.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-color);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.mobile-close {
  display: none;
  background: none;
  border: none;
  color: var(--sidebar-text);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 0.5rem;
  transition: background-color 0.2s ease;
}
.mobile-close:hover {
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
}
.mobile-menu-toggle {
  display: none;
  background-color: #4ade80;
  border: none;
  border-radius: 0.5rem;
  padding: 0.75rem;
  cursor: pointer;
  color: #ffffff;
  box-shadow: var(--shadow);
  transition: background-color 0.2s ease;
  flex-shrink: 0;
}
.mobile-menu-toggle:hover {
  background-color: #22c55e;
}
/* Overlay for mobile menu */.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 40;
}
@media (max-width: 768px) {
  .sidebar-overlay {
    left: 280px;
  }

  .sidebar-overlay.active {
    display: block;
  }
}
.nav-menu {
  list-style: none;
  flex: 1;
}
.nav-item {
  margin-bottom: 0.25rem;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  color: var(--sidebar-text);
  text-decoration: none;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
}
.nav-link:hover {
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
}
.nav-link.active {
  background-color: var(--accent-color);
  color: #ffffff;
}
/* Main content */.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin-left: 280px;
  min-height: 100vh;
  background-color: var(--bg-primary);
  transition: background-color 0.3s ease;
}
/* Support page without sidebar margin */.main-content.no-sidebar-margin {
  margin-left: 0;
}
/* Header */.header {
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}
.search-bar {
  flex: 1;
  max-width: 800px;
  margin: 0 2rem 0 0;
  position: relative;
}
.search-input {
  width: 100%;
  padding: 0.5rem 1rem;
  background-color: var(--input-bg);
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  color: var(--text-primary);
  font-size: 0.875rem;
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}
.search-input::placeholder {
  color: var(--text-secondary);
}
/* Search Dropdown */.search-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  right: 0;
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  max-height: 400px;
  overflow-y: auto;
  z-index: 1000;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}
.search-dropdown-section {
  border-bottom: 1px solid var(--border-color);
  transition: border-color 0.3s ease;
}
.search-dropdown-section:last-child {
  border-bottom: none;
}
.search-dropdown-header {
  padding: 0.5rem 1rem;
  background-color: var(--bg-tertiary);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: background-color 0.3s ease;
}
.search-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  text-decoration: none;
  color: var(--text-primary);
  transition: background-color 0.2s ease, color 0.3s ease;
  cursor: pointer;
}
.search-dropdown-item:hover {
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
}
.search-dropdown-item-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background-color: var(--bg-secondary);
  border-radius: 0.375rem;
  color: var(--accent-color);
  flex-shrink: 0;
  transition: background-color 0.3s ease;
}
.search-dropdown-item-content {
  flex: 1;
  min-width: 0;
}
.search-dropdown-item-title {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.3s ease;
}
.search-dropdown-item-subtitle {
  font-size: 0.75rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.3s ease;
}
.search-dropdown-empty {
  padding: 1.5rem;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.875rem;
}
.user-profile {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.header-actions {
  display: flex;
  align-items: center;
  width: 100%;
}
.header-actions-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 0 0 45%;
  justify-content: flex-end;
}
.theme-toggle {
  flex: 0 0 auto;
}
.user-info {
  flex: 0 0 auto;
}
.notification-icon {
  flex: 0 0 auto;
  margin-left: 1rem;
}
.desktop-only {
  display: block;
}
.mobile-only {
  display: none;
}
@media (max-width: 768px) {
  .desktop-only {
    display: none;
  }
  .mobile-only {
    display: block;
  }
}
.user-info {
  text-align: right;
}
.user-name {
  font-weight: 600;
  color: var(--text-primary);
}
.user-email {
  font-size: 0.875rem;
  color: var(--text-secondary);
}
.notification-icon {
  position: relative;
  cursor: pointer;
  color: var(--text-secondary);
}
.notification-button {
  background: transparent;
  border: none;
  padding: 0.5rem;
  border-radius: 0.5rem;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.notification-button:hover {
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
}
.notifications-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  width: 320px;
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}
.notifications-header {
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
  transition: border-color 0.3s ease;
}
.notifications-header h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}
.notifications-content {
  padding: 1rem;
  max-height: 400px;
  overflow-y: auto;
}
.notification-item {
  padding: 0.75rem;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  margin-bottom: 0.5rem;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}
.notification-item:last-child {
  margin-bottom: 0;
}
.no-notifications {
  padding: 2rem 1rem;
  text-align: center;
  color: var(--text-secondary);
}
.no-notifications p {
  margin: 0;
  font-size: 0.875rem;
}
/* Content area */.content {
  padding: 2rem;
  flex: 1;
  overflow-x: hidden;
}
/* Cards */.card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  margin-bottom: 1.5rem;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text-primary);
}
/* Stats cards */.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  .stat-card {
    padding: 1rem;
  }
}
.stat-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  padding: 1.5rem;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}
.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-color);
  margin-bottom: 0;
}
.stat-label {
  color: var(--text-secondary);
  font-size: 0.875rem;
}
.stat-change {
  font-size: 0.75rem;
  margin-top: 0.5rem;
}
.stat-change.positive {
  color: var(--accent-color);
}
.stat-change.negative {
  color: #ef4444;
}
/* Grid layouts */.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.5rem;
}
/* Lists */.list-item {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: border-color 0.3s ease;
}
.list-item-text-primary {
  color: var(--text-primary);
  transition: color 0.3s ease;
}
.list-item-text-secondary {
  color: var(--text-secondary);
  transition: color 0.3s ease;
}
.list-item:last-child {
  border-bottom: none;
}
/* Badges */.badge {
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}
.badge-green {
  background-color: var(--accent-color);
  color: #ffffff;
}
.badge-yellow {
  background-color: #f59e0b;
  color: #ffffff;
}
.badge-red {
  background-color: #ef4444;
  color: #ffffff;
}
.badge-blue {
  background-color: #3b82f6;
  color: #ffffff;
}
.badge-gray {
  background-color: #6b7280;
  color: #ffffff;
}
/* Buttons */.btn {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 0.5rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.btn-primary {
  background-color: var(--accent-color);
  color: #ffffff;
}
.btn-primary:hover {
  background-color: var(--accent-hover);
}
.btn-secondary {
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}
.btn-secondary:hover {
  background-color: var(--border-color);
}
.btn-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
}
/* Links */.link {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 500;
}
.link:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}
/* Forms */.form-group {
  margin-bottom: 1rem;
}
.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-primary);
}
.form-input {
  width: 100%;
  padding: 0.5rem 1rem;
  background-color: var(--input-bg);
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  color: var(--text-primary);
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}
.form-input:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.1);
}
/* Tables */.table {
  width: 100%;
  border-collapse: collapse;
}
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.quote-item-padding {
  padding: 2rem;
}
.table th,.table td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
  transition: border-color 0.3s ease;
}
.table th {
  background-color: var(--bg-tertiary);
  font-weight: 600;
  color: var(--text-primary);
  transition: background-color 0.3s ease;
  white-space: nowrap;
}
.table tbody tr:hover {
  background-color: var(--bg-tertiary);
  transition: background-color 0.3s ease;
}
.welcome-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}
.text-center {
  text-align: center;
}
.flex {
  display: flex;
}
.flex-1 {
  flex: 1;
}
.items-center {
  align-items: center;
}
.gap-2 {
  gap: 0.5rem;
}
.gap-3 {
  gap: 0.75rem;
}
.font-bold {
  font-weight: 700;
}
.font-medium {
  font-weight: 500;
}
.font-semibold {
  font-weight: 600;
}
.text-white {
  color: #ffffff;
}
.text-primary {
  color: var(--text-primary) !important;
}
.text-gray-400 {
  color: #9ca3af;
}
.text-gray-500 {
  color: #6b7280;
}
.text-green-400 {
  color: #4ade80;
}
.text-yellow-400 {
  color: #facc15;
}
.text-red-400 {
  color: #f87171;
}
.text-3xl {
  font-size: 1.875rem;
  line-height: 2.25rem;
}
.text-lg {
  font-size: 1.125rem;
  line-height: 1.75rem;
}
.text-sm {
  font-size: 0.875rem;
  line-height: 1.25rem;
}
.mb-2 {
  margin-bottom: 0.5rem;
}
.mt-1 {
  margin-top: 0.25rem;
}
.py-8 {
  padding-top: 2rem;
  padding-bottom: 2rem;
}
/* Alert styles */.alert {
  padding: 1rem;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
}
.alert-info {
  background-color: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #93c5fd;
}
.alert-warning {
  background-color: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #fcd34d;
}
/* Form Styles */.appointment-form {
  max-width: 600px;
}
.form-group {
  margin-bottom: 2rem;
}
.form-label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  font-weight: 500;
}
.form-input,.form-select,.form-textarea {
  width: 100%;
  padding: 0.75rem;
  background-color: var(--input-bg);
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  color: var(--text-primary);
  font-size: 0.875rem;
  transition: border-color 0.2s ease, background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}
.form-input:focus,.form-select:focus,.form-textarea:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.1);
}
/* Devise forms (login, registration, forgot password) - use Tailwind classes instead of custom CSS */
/* Make input icons visible and properly positioned */.devise-form .absolute.inset-y-0 {
  display: flex;
  align-items: center;
  z-index: 10;
}
/* Ensure input icons are visible in both light and dark modes */.devise-form input + .absolute .text-gray-400 {
  color: #9ca3af !important;
}
[data-theme="dark"] .devise-form input + .absolute .text-gray-400 {
  color: #6b7280 !important;
}
/* Override button heights and margins */.devise-form .actions {
  margin-top: 1.5rem;
}
.devise-form .actions button[type="submit"] {
  padding: 0.625rem 1rem;
  height: 2.75rem;
  line-height: 1.5;
  box-sizing: border-box;
}
.devise-form a.btn {
  padding: 0.625rem 1rem;
  height: 2.75rem;
  line-height: 1.5;
  box-sizing: border-box;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}
/* Feature highlights grid margin */.devise-form .grid.grid-cols-3 {
  margin-top: 1.5rem;
}
.form-textarea {
  resize: vertical;
  min-height: 100px;
}
.form-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}
/* Appointment Detail Styles */.appointment-details {
  max-width: 800px;
}
/* Activity Grid Styles */.activity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.activity-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
}
.activity-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  border-color: var(--accent-color);
}
.activity-title {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.activity-count {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent-color);
  margin-bottom: 1rem;
  line-height: 1;
}
.activity-link {
  margin-top: 0.5rem;
}
.detail-section {
  margin-bottom: 2rem;
}
.section-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
  transition: border-color 0.3s ease;
}
.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}
.detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem;
  background-color: var(--bg-tertiary);
  border-radius: 0.5rem;
  transition: background-color 0.3s ease;
}
.detail-label {
  font-weight: 500;
  color: var(--text-secondary);
}
.detail-value {
  font-weight: 600;
  color: var(--text-primary);
}
.detail-content {
  padding: 1rem;
  background-color: var(--bg-tertiary);
  border-radius: 0.5rem;
  line-height: 1.6;
  color: var(--text-primary);
  transition: background-color 0.3s ease;
}
.action-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
/* Responsive */@media (max-width: 768px) {
  .welcome-actions {
    justify-content: center;
  }
  .app-container {
    flex-direction: column;
  }
  .sidebar {
    transform: translateX(-100%);
    width: 280px;
    padding: 1rem;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .mobile-close {
    display: flex;
  }
  .main-content {
    margin-left: 0;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  .grid-2,  .grid-3 {
    grid-template-columns: 1fr;
  }
  .header {
    flex-direction: column;
    gap: 0;
    padding: 0.75rem 1rem;
    align-items: center;
  }
  .header-actions {
    gap: 0.5rem;
    width: 100%;
    display: flex;
    align-items: center;
  }
  .search-bar {
    margin: 0;
    flex: 1;
    order: 2;
  }
  .header-actions-right {
    display: none;
  }
  .mobile-menu-toggle {
    order: 1;
  }
  .notification-icon {
    order: 3;
  }
  .form-actions {
    flex-direction: column;
  }
  .content {
    padding: 0.5rem 0.25rem;
  }
  .card {
    padding: 1rem;
    border-radius: 0.5rem;
  }
  .mobile-theme-toggle {
    display: block;
  }
}
.mobile-theme-toggle {
  display: none;
}
/* Quote Summary Section */.quote-summary {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  transition: background-color 0.3s ease;
}
.summary-label {
  font-weight: 500;
  color: var(--text-secondary);
  font-size: 0.875rem;
}
.summary-value {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.875rem;
}
.summary-input {
  width: 80px;
  padding: 0.375rem 0.5rem;
  background-color: var(--input-bg);
  border: 1px solid var(--border-color);
  border-radius: 0.375rem;
  color: var(--text-primary);
  font-size: 0.875rem;
  font-weight: 600;
  text-align: right;
  transition: border-color 0.2s ease, background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}
.summary-input:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 2px rgba(66, 133, 244, 0.1);
}
.summary-divider {
  height: 1px;
  background-color: var(--border-color);
  margin: 0.5rem 0;
  transition: background-color 0.3s ease;
}
.total-row {
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  border-top: 2px solid var(--accent-color);
}
.total-label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}
.total-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent-color);
}
/* Quote Form Layout */.quote-form {
  width: 100%;
}
.form-section {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}
/* Responsive adjustments for quote summary */@media (max-width: 1024px) {
  .quote-summary {
    order: -1;
  }
}
/* Quote Tabs */.quote-tabs,.tab-buttons {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
  transition: border-color 0.3s ease;
  width: 100%;
}
.tab-button {
  flex: 1;
  padding: 0.75rem 1rem;
  border: none;
  background-color: var(--bg-secondary);
  color: var(--text-secondary);
  font-weight: 500;
  cursor: pointer;
  border-radius: 0.5rem 0.5rem 0 0;
  transition: background-color 0.3s ease, color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  min-width: 0;
}
.tab-button:hover {
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
}
.tab-button.active {
  background-color: var(--accent-color);
  color: #ffffff;
}
.tab-count {
  background-color: rgba(0, 0, 0, 0.2);
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  min-width: 20px;
  text-align: center;
}
.tab-button.active .tab-count {
  background-color: rgba(255, 255, 255, 0.3);
}
/* Tab Content */.tab-content {
  animation: fadeIn 0.3s ease;
  overflow: visible;
}
.tab-content.hidden {
  display: none;
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
/* Quote Items Table */.quote-items-table {
  background-color: var(--bg-secondary);
  border-radius: 0.5rem;
  overflow-x: auto;
  transition: background-color 0.3s ease;
  width: 100%;
}
.quote-items-table .table {
  margin-bottom: 0;
  width: 100%;
  min-width: 600px;
}
.quote-items-table .table th {
  background-color: var(--bg-tertiary);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 0.75rem 1rem;
  white-space: nowrap;
  transition: background-color 0.3s ease;
}
.btn-icon {
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.quote-items-table .table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-color);
  transition: border-color 0.3s ease;
}
.quote-items-table .table tbody tr:last-child td {
  border-bottom: none;
}
.quote-items-table .table tbody tr:hover {
  background-color: var(--bg-tertiary);
  transition: background-color 0.3s ease;
}
/* Table Inputs */.table-input {
  width: 100%;
  max-width: 200px;
  padding: 0.375rem 0.5rem;
  background-color: var(--input-bg);
  border: 1px solid var(--border-color);
  border-radius: 0.375rem;
  color: var(--text-primary);
  font-size: 0.875rem;
  transition: border-color 0.2s ease, background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}
.table-input:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 2px rgba(66, 133, 244, 0.1);
}
.table-input-sm {
  width: 60px;
  text-align: right;
}
@media (min-width: 1024px) {
  .table-input-sm {
    width: 70px;
  }
}
.table-cell-right {
  text-align: right;
  font-weight: 600;
  color: var(--text-primary);
}
/* Empty State */.empty-state {
  padding: 2rem;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.875rem;
}
/* Tab Footer */.tab-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
  transition: border-color 0.3s ease;
}
.subtotal-display {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
}
.subtotal-display span {
  font-weight: 600;
  color: var(--text-primary);
}
/* Danger Button */.btn-danger {
  background-color: #ef4444;
  color: #ffffff;
  border: none;
}
.btn-danger:hover {
  background-color: #dc2626;
}
.btn-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
}
/* Responsive adjustments for tabs */@media (max-width: 1024px) {
  /* Ensure the parent grid doesn't force single column layout for the form section */  .lg\:col-span-2 {
    grid-column: span 2 !important;
  }
  .form-section {
    padding: 1rem 0.5rem;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
  }
  .form-section .quote-tabs,  .form-section .tab-buttons {
    display: flex !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
    max-width: 100% !important;
    gap: 0.25rem !important;
  }
  .form-section .tab-button {
    flex: 1 !important;
    flex-shrink: 1 !important;
    min-width: 0 !important;
    padding: 0.5rem 0.25rem !important;
    font-size: 0.65rem !important;
    white-space: nowrap !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
  }
  .form-section .tab-button svg {
    display: none !important;
  }
  .form-section .tab-count {
    margin-left: 0.25rem;
  }
  /* Override any grid layout that might be affecting the tabs */  .form-section .tab-buttons,  .form-section .tab-buttons > * {
    float: none !important;
    display: flex !important;
  }
  .quote-items-table .table {
    font-size: 0.875rem;
  }
  .quote-items-table .table th,  .quote-items-table .table td {
    padding: 0.5rem;
  }
  .table-input-sm {
    width: 60px;
  }
  .tab-footer {
    flex-direction: column;
    gap: 0.75rem;
    align-items: stretch;
  }
  .tab-footer .btn {
    width: 100%;
  }
  .subtotal-display {
    text-align: center;
  }
}
/* Quotes Index Page Styles */.quotes-index {
  padding: 0;
  margin-bottom: 2rem;
}
/* Customers Index Page Styles */.customers-index {
  padding: 0;
  margin-bottom: 2rem;
}
/* Customers New/Show Page Styles */.customers-new,
.customers-show {
  padding: 0;
  margin-bottom: 2rem;
}
/* Vehicles Index/New/Edit/Show Page Styles */.vehicles-index,
.vehicles-new,
.vehicles-edit,
.vehicles-show {
  padding: 0;
  margin-bottom: 2rem;
}
/* Estimate Templates Index Page Styles */.estimate-templates-index {
  padding: 0;
  margin-bottom: 2rem;
}
/* Disabled Button State */.btn-disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}
/* Error Alert Styles */.alert-error {
  background-color: var(--color-error-bg, #fee2e2);
  border: 1px solid var(--color-error-border, #ef4444);
  color: var(--color-error-text, #991b1b);
  padding: 1rem;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  font-weight: 500;
}
.alert-error h4 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-weight: 600;
}
.alert-error ul {
  margin: 0;
  padding-left: 1.5rem;
}
.alert-info {
  background-color: var(--color-info-bg, #dbeafe);
  border: 1px solid var(--color-info-border, #3b82f6);
  color: var(--color-info-text, #1e40af);
  padding: 1rem;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  font-weight: 500;
}
.btn-danger {
  background-color: var(--color-danger-bg, #ef4444);
  color: var(--color-danger-text, #ffffff);
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  font-weight: 500;
  transition: background-color 0.2s;
}
.btn-danger:hover {
  background-color: var(--color-danger-hover, #dc2626);
}
.header-actions {
  display: flex;
  gap: 0.5rem;
}
.quotes-search-input {
  flex: 1;
  min-width: 300px;
}
.quotes-status-select {
  width: 200px;
}
.quotes-index .grid-cols-5 {
  grid-template-columns: repeat(5, 1fr);
}
@media (max-width: 1024px) {
  .quotes-index .grid-cols-5 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .quotes-index .grid-cols-5 {
    grid-template-columns: 1fr;
  }
}
.quotes-index table tbody tr a {
  display: contents;
  text-decoration: none;
}
.quotes-index table tbody tr:hover td {
  background-color: var(--bg-tertiary);
}
/* Evidence Thumbnail Styles */
.evidence-thumbnail-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
  display: inline-block;
}
.evidence-thumbnail-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.evidence-thumbnail {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 0.5rem;
  border: 2px solid var(--border-color);
  transition: border-color 0.3s ease;
}
.evidence-thumbnail-btn:hover .evidence-thumbnail {
  border-color: var(--accent-color);
}
/* Evidence Modal Styles */
.evidence-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.evidence-modal-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}
.evidence-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #ffffff;
  transition: background-color 0.2s ease;
  z-index: 10;
}
.evidence-modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
}
.evidence-modal-body {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
}
.evidence-modal-image {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 0.5rem;
}
.evidence-modal-video {
  max-width: 100%;
  max-height: 85vh;
  border-radius: 0.5rem;
}
/* Evidence Item Styles */
.evidence-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}
.evidence-item {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}
.evidence-item:hover {
  background-color: var(--bg-tertiary);
}
.evidence-preview {
  flex-shrink: 0;
  display: flex;
  justify-content: center;
}
.evidence-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.evidence-name {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.875rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.evidence-meta {
  font-size: 0.75rem;
  color: var(--text-secondary);
}
.video-icon {
  width: 100px;
  height: 100px;
  background-color: var(--bg-tertiary);
  border: 2px solid var(--border-color);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: border-color 0.3s ease;
}
.evidence-thumbnail-btn:hover .video-icon {
  border-color: var(--accent-color);
}
.no-file {
  width: 100px;
  height: 100px;
  background-color: var(--bg-tertiary);
  border: 2px dashed var(--border-color);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 0.75rem;
}
.btn-delete {
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  color: var(--text-secondary);
  border-radius: 0.375rem;
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.btn-delete:hover {
  background-color: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}
/* Status badge colors matching the screenshot */.quotes-index .bg-gray-500 {
  background-color: #6b7280;
}
.quotes-index .bg-blue-500 {
  background-color: #3b82f6;
}
.quotes-index .bg-yellow-500 {
  background-color: #eab308;
}
.quotes-index .bg-green-500 {
  background-color: #22c55e;
}

/* Searchable Select Component */
.ss-native-select {
  display: none;
}
[data-controller="searchable-select"] {
  position: relative;
}
.ss-input-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.ss-field-wrapper {
  display: flex;
  flex: 1;
  position: relative;
}
.ss-search-input {
  width: 100%;
  padding-right: 32px;
}
.ss-toggle-btn {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
}
.ss-toggle-btn:hover {
  color: var(--text-primary);
}
.ss-wrapper[data-searchable-select-target="dropdown"] {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  max-height: 180px;
  overflow-y: auto;
  z-index: 100;
}
.ss-wrapper[data-searchable-select-target="dropdown"].is-open {
  display: block;
}
.ss-option {
  padding: 8px 12px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-primary);
  transition: background-color 0.15s;
}
.ss-option:hover {
  background-color: var(--bg-tertiary);
}
.ss-option.is-highlighted {
  background-color: var(--bg-tertiary);
}
.ss-empty {
  padding: 12px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 14px;
}

.estimate-summary-bg {
  background-color: var(--bg-secondary);
}
.quotes-index .bg-teal-500 {
  background-color: #14b8a6;
}
.quotes-index .bg-red-500 {
  background-color: #ef4444;
}
.quotes-index .bg-orange-500 {
  background-color: #f97316;
}
.quotes-index .bg-purple-500 {
  background-color: #a855f7;
}
.quotes-index .bg-gray-400 {
  background-color: #9ca3af;
}
/* Text colors for quotes index */.quotes-index .text-green-400 {
  color: #4ade80;
}
.quotes-index .text-yellow-400 {
  color: #facc15;
}
.quotes-index .text-red-400 {
  color: #f87171;
}
.quotes-index .text-blue-400 {
  color: #60a5fa;
}
/* Button hover states for quotes index */.quotes-index .hover\:bg-blue-700:hover {
  background-color: #1d4ed8;
}
/* Focus ring styles for quotes index */.quotes-index .focus\:ring-2:focus {
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5);
}
.quotes-index .focus\:ring-blue-500:focus {
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5);
}
/* Table header background using CSS variables */.quotes-index table thead tr {
  background-color: var(--bg-tertiary);
}
.quotes-index table thead th {
  background-color: var(--bg-tertiary);
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
}

/* Image Upload Styles */
.image-upload-dropzone {
  border: 2px dashed var(--border-color);
  border-radius: 0.75rem;
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background-color: var(--bg-secondary);
}

.image-upload-dropzone:hover {
  border-color: var(--accent-color);
  background-color: var(--bg-tertiary);
}

.image-upload-dropzone.drag-over {
  border-color: var(--accent-color);
  background-color: rgba(66, 133, 244, 0.1);
}

.image-upload-preview {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 200px;
}

.image-upload-preview-img {
  max-width: 200px;
  max-height: 200px;
  border-radius: 0.5rem;
  object-fit: contain;
}

.image-upload-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  color: var(--text-secondary);
}

.image-upload-placeholder svg {
  color: var(--text-secondary);
}

.image-upload-placeholder-text {
  font-size: 0.875rem;
  font-weight: 500;
}

.image-upload-placeholder-hint {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.image-upload-error {
  margin-top: 0.5rem;
  padding: 0.75rem;
  background-color: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 0.5rem;
  color: #f87171;
  font-size: 0.875rem;
}

.modal-content {
  background-color: var(--color-bg-primary);
  margin: 8% auto;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: 0.75rem;
  width: 80%;
  max-width: 800px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.modal-title {
  color: var(--text-primary);
}

.google-calendar-section {
  border-top: 1px solid var(--border-color);
  padding-top: 1.5rem;
}

.google-calendar-card {
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  padding: 1.5rem;
}

.google-calendar-title {
  color: var(--text-primary);
}

.google-calendar-text {
  color: var(--text-secondary);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid var(--color-border);
  transition: border-color 0.3s ease;
}

.modal-header h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text-primary);
}

.modal-close {
  background: none;
  border: 1px solid transparent;
  color: var(--color-text-secondary);
  cursor: pointer;
  padding: 0.375rem;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.modal-close:hover {
  background-color: var(--bg-tertiary);
  border-color: var(--border-color);
  color: var(--text-primary);
}

.modal-body {
  padding: 1.5rem;
  max-height: 65vh;
  overflow-y: auto;
}

.btn-success {
  background-color: #22c55e;
  color: #ffffff;
  border: none;
}

.btn-success:hover {
  background-color: #16a34a;
}

/* Main Content Layout */
.main-content {

  margin-left: 280px;

  flex: 1;

  display: flex;

  flex-direction: column;

  min-height: 100vh;

  transition: margin-left 0.3s ease;

}

@media (max-width: 1024px) {

  .main-content {

    margin-left: 0;

  }

}

/* Filters Container */
.filters {

  margin-bottom: 2rem;

}

@media (max-width: 768px) {

  .filters {

    margin-bottom: 1rem;

  }

  .filters .flex {

    flex-direction: column;

    gap: 0.75rem;

  }

  .filters .form-input,
  .filters .form-select,
  .filters .btn {

    width: 100%;

  }

  /* Item Type Badges */
  .item-type-badge {

    display: inline-block;

    padding: 0.25rem 0.5rem;

    border-radius: 0.375rem;

    font-size: 0.75rem;

    font-weight: 600;

    text-transform: uppercase;

  }

  .item-type-badge.labor {

    background-color: #dbeafe;

    color: #1e40af;

  }

  .item-type-badge.parts {

    background-color: #fce7f3;

    color: #9d174d;

  }

  .item-type-badge.additional_charge {

    background-color: #fef3c7;

    color: #92400e;

  }

  /* Item Buttons Container */
  .item-buttons {

    display: flex;

    gap: 0.5rem;

    flex-wrap: wrap;

    margin-top: 1rem;

  }

  /* Title Text - handles light/dark mode automatically */
  .title-text {
    color: var(--text-primary) !important;
    transition: color 0.3s ease;

  }

}

/* Toast notifications */
  .toast-container {

    position: fixed;

    top: 1.5rem;

    right: 1.5rem;

    z-index: 9999;

    display: flex;

    flex-direction: column;

    gap: 0.5rem;

    pointer-events: none;

  }

  .toast {

    padding: 0.75rem 1.25rem;

    border-radius: 0.5rem;

    font-size: 0.875rem;

    font-weight: 500;

    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);

    opacity: 0;

    transform: translateY(0.5rem);

    transition: opacity 0.25s ease, transform 0.25s ease;

    pointer-events: auto;

    max-width: 360px;

  }

  .toast.toast-visible {

    opacity: 1;

    transform: translateY(0);

  }

  .toast-error {

    background-color: #fee2e2;

    color: #991b1b;

    border-left: 4px solid #ef4444;

  }

  .toast-info {

    background-color: #dbeafe;

    color: #1e40af;

    border-left: 4px solid #3b82f6;

  }

  .toast-success {

    background-color: #d1fae5;

    color: #065f46;

    border-left: 4px solid #10b981;

  }

/* Calendar */
.appointments-calendar {
  background: var(--color-bg-primary);
  border-radius: 8px;
  overflow: hidden;
}

.calendar-date-text {
  color: var(--color-text-primary);
}

.calendar-week {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 200px);
  overflow-y: auto;
}

.calendar-header {
  display: flex;
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  background: var(--color-bg-primary);
  z-index: 10;
}

.calendar-time-header {
  width: 60px;
  flex-shrink: 0;
  border-right: 1px solid var(--color-border);
}

.calendar-day-header {
  flex: 1;
  padding: 12px 8px;
  text-align: center;
  border-right: 1px solid var(--color-border);
  background: var(--color-bg-secondary);
}

.calendar-day-header.today {
  background: var(--color-bg-tertiary);
}

.calendar-day-header .day-name {
  font-size: 12px;
  color: var(--color-text-secondary);
  margin-bottom: 4px;
}

.calendar-day-header .day-number {
  font-size: 18px;
  font-weight: bold;
  color: var(--color-text-primary);
}

.calendar-day-header .day-number.current {
  background: var(--color-accent);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  line-height: 32px;
  margin: 0 auto;
}

.calendar-day-header .day-date {
  font-size: 11px;
  color: var(--color-text-secondary);
  margin-top: 2px;
}

.calendar-body {
  display: flex;
  flex-direction: column;
}

.calendar-row {
  display: flex;
  min-height: 60px;
  border-bottom: 1px solid var(--color-border);
}

.calendar-time {
  width: 60px;
  flex-shrink: 0;
  padding: 8px;
  text-align: center;
  color: var(--color-text-secondary);
  font-size: 12px;
  border-right: 1px solid var(--color-border);
  background: var(--color-bg-primary);
}

.calendar-cell {
  flex: 1;
  border-right: 1px solid var(--color-border);
  position: relative;
  min-height: 60px;
  background: var(--color-bg-secondary);
}

.calendar-cell:hover {
  background: var(--color-bg-tertiary);
}

.calendar-cell-clickable {
  cursor: pointer;
  position: relative;
}

.cell-hover-info {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 12px;
  color: var(--color-accent);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  white-space: nowrap;
  text-align: center;
  background: rgba(0, 0, 0, 0.9);
  padding: 4px 8px;
  border-radius: 4px;
}

.calendar-cell-clickable:hover .cell-hover-info {
  opacity: 1;
}

.calendar-cell-disabled {
  background: var(--color-bg-tertiary);
  opacity: 0.4;
  pointer-events: none;
  cursor: not-allowed;
}

.calendar-cell-disabled .cell-hover-info {
  display: none;
}

.calendar-cell-button {
  width: 100%;
  height: 100%;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.calendar-cell-button:hover .cell-hover-info {
  opacity: 1;
}

.calendar-cell-current {
  background: rgba(66, 133, 244, 0.15);
  border: 2px solid var(--color-accent);
}

.calendar-event {
  margin: 2px 4px;
  padding: 8px;
  border-radius: 4px;
  background: var(--color-bg-secondary);
  border-left: 3px solid var(--color-text-secondary);
  cursor: pointer;
  transition: all 0.2s;
}

.calendar-event:hover {
  background: var(--color-bg-tertiary);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.calendar-event.scheduled { border-left-color: #f59e0b; }
.calendar-event.confirmed { border-left-color: #10b981; }
.calendar-event.in_progress { border-left-color: #3b82f6; }
.calendar-event.completed { border-left-color: #6b7280; }
.calendar-event.cancelled { border-left-color: #ef4444; opacity: 0.6; }
.calendar-event.no_show { border-left-color: #f97316; opacity: 0.6; }

.event-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.event-time {
  font-size: 11px;
  color: var(--color-text-secondary);
  margin-bottom: 2px;
}

.event-service {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 2px;
}

.event-vehicle {
  font-size: 11px;
  color: var(--color-text-secondary);
}

.calendar-week::-webkit-scrollbar { width: 8px; }
.calendar-week::-webkit-scrollbar-track { background: #1a1a1a; }
.calendar-week::-webkit-scrollbar-thumb { background: #444; border-radius: 4px; }
.calendar-week::-webkit-scrollbar-thumb:hover { background: #555; }

/* Calendar appointment modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal[data-modal-open-value="true"] {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.modal-content {
  position: relative;
  background: var(--color-bg-primary);
  border-radius: 12px;
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--color-border);
}

.modal-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin: 0;
}

.modal-close {
  background: transparent;
  border: none;
  color: var(--color-text-secondary);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background: var(--color-bg-secondary);
  color: var(--color-text-primary);
}

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

.modal[data-modal-open-value="true"] .modal-content {
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from { opacity: 0; transform: scale(0.95) translateY(-20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* Screen display (Vista de Pantalla) */
.appointments-calendar-upcoming {
  height: 100vh;
  overflow: hidden;
}

.appointments-calendar-upcoming .calendar-week {
  height: calc(100vh - 150px);
}

.appointments-calendar-upcoming .calendar-time-header,
.appointments-calendar-upcoming .calendar-time {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  flex-shrink: 0;
}

.appointments-calendar-upcoming .calendar-row {
  min-height: 80px;
}

.appointments-calendar-upcoming .calendar-event {
  font-size: 14px;
  padding: 10px;
}

.appointments-calendar-upcoming .event-service {
  font-size: 14px;
}

.appointments-calendar-upcoming .event-vehicle {
  font-size: 12px;
}

.calendar-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity 0.2s;
  padding: 4px;
  width: 100%;
  height: 100%;
}

.calendar-logo:hover {
  opacity: 0.8;
}

.calendar-logo img {
  max-height: 56px;
  max-width: 70px;
  object-fit: contain;
}

.event-customer-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-top: 2px;
}

.event-customer-phone {
  font-size: 11px;
  color: var(--color-text-secondary);
  margin-top: 1px;
}

/* Estimates Shared Page Styles */
.estimates-shared {
  padding: 0;
  margin-bottom: 2rem;
}

.estimates-shared .share-history,
.estimates-shared .access-audit {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.estimates-shared .share-item,
.estimates-shared .access-item {
  padding: 0.75rem;
  background-color: var(--bg-secondary);
  border-radius: 0.5rem;
  border: 1px solid var(--border-color);
}

.estimates-shared .share-action,
.estimates-shared .access-result {
  font-weight: 600;
  font-size: 0.875rem;
}

.estimates-shared .share-meta,
.estimates-shared .access-meta {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

.estimates-shared .share-phone {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

.estimates-shared .access-reason {
  font-size: 0.75rem;
  margin-top: 0.25rem;
}

/* Toast notification for share link copied */
.toast-container {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toast-notification {
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}
