/* ==========================================================================
   Gofixit Portal — Professional CSS for Mobile Repair Service Providers
   ========================================================================== */

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Brand */
  --brand-primary: #321EAE;
  --brand-primary-light: #4a35c9;
  --brand-primary-dark: #25178a;
  --brand-accent: #6c5ce7;
  --brand-accent-light: #a29bfe;

  /* Neutrals */
  --white: #ffffff;
  --gray-50: #f8f9fc;
  --gray-100: #f1f3f8;
  --gray-200: #e2e6ef;
  --gray-300: #c8cdd9;
  --gray-400: #9ba3b5;
  --gray-500: #6b7394;
  --gray-600: #4a5073;
  --gray-700: #343a52;
  --gray-800: #1e2338;
  --gray-900: #0f1225;

  /* Status colors */
  --success: #00b894;
  --success-bg: #e6f9f4;
  --warning: #fdcb6e;
  --warning-bg: #fef9e7;
  --danger: #e74c3c;
  --danger-bg: #fdecea;
  --info: #0984e3;
  --info-bg: #e8f4fd;
  --purple: #6c5ce7;
  --purple-bg: #f0eeff;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.06), 0 2px 4px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.08), 0 4px 10px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.1);

  /* Border radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-normal: 250ms ease;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  background: var(--gray-50);
  color: var(--gray-700);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--brand-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--brand-accent);
}

/* ---------- Login Page ---------- */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--gray-900) 0%, var(--brand-primary-dark) 50%, var(--brand-primary) 100%);
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.login-page::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 80%;
  height: 150%;
  background: radial-gradient(ellipse, rgba(108, 92, 231, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.login-page::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -20%;
  width: 60%;
  height: 80%;
  background: radial-gradient(ellipse, rgba(50, 30, 174, 0.2) 0%, transparent 70%);
  pointer-events: none;
}

.login-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  padding: 48px 40px;
  width: 100%;
  max-width: 440px;
  position: relative;
  z-index: 1;
}

.login-logo {
  text-align: center;
  margin-bottom: 8px;
}

.login-logo img {
  height: 40px;
  width: auto;
}

.login-title {
  text-align: center;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 4px;
}

.login-subtitle {
  text-align: center;
  font-size: 0.95rem;
  color: var(--gray-500);
  margin-bottom: 32px;
}

.login-form .form-group {
  margin-bottom: 20px;
}

.login-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-600);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.login-form input[type="text"],
.login-form input[type="password"],
.login-form input[type="email"] {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-size: 1rem;
  color: var(--gray-700);
  background: var(--gray-50);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  outline: none;
}

.login-form input:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 4px rgba(50, 30, 174, 0.1);
  background: var(--white);
}

.login-form input::placeholder {
  color: var(--gray-400);
}

.remember-me-group {
  margin-bottom: 16px;
}

.remember-me-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--gray-600);
  cursor: pointer;
  font-weight: 500;
}

.remember-me-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--brand-primary);
  cursor: pointer;
}

.login-btn {
  display: block;
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-accent) 100%);
  color: var(--white);
  border: none;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  margin-top: 8px;
}

.login-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(50, 30, 174, 0.35);
}

.login-btn:active {
  transform: translateY(0);
}

.login-error {
  background: var(--danger-bg);
  color: var(--danger);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  margin-top: 16px;
  text-align: center;
  border: 1px solid rgba(231, 76, 60, 0.2);
}

.login-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 0.85rem;
  color: var(--gray-400);
}

/* ---------- Portal Layout ---------- */
.portal-wrapper {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  width: 260px;
  background: linear-gradient(180deg, var(--gray-900) 0%, var(--brand-primary-dark) 100%);
  color: var(--white);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 100;
  transition: transform var(--transition-normal);
}

.sidebar-header {
  padding: 24px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-logo img {
  height: 28px;
  width: auto;
  filter: brightness(0) invert(1);
}

.sidebar-logo span {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.sidebar-nav {
  flex: 1;
  padding: 16px 12px;
  overflow-y: auto;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: rgba(255, 255, 255, 0.65);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 500;
  transition: all var(--transition-fast);
  margin-bottom: 2px;
}

.sidebar-nav a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.sidebar-nav a.active {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  font-weight: 600;
}

.sidebar-nav a svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.sidebar-section {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-section-title {
  display: block;
  padding: 0 16px 8px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.3);
}

.sidebar-admin {
  padding: 0 12px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-admin a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  color: rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 500;
  transition: all var(--transition-fast);
  text-decoration: none;
  margin-top: 4px;
}

.sidebar-admin a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.sidebar-admin a svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.sidebar-admin .sidebar-section-title {
  padding: 8px 16px 4px;
}

/* HowTo Section */
.sidebar-howto-link {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 4px 12px;
  padding: 8px 16px;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 500;
  transition: all var(--transition-fast);
  height: 36px;
  line-height: 1;
}

.sidebar-howto-link svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.sidebar-howto-link span {
  margin-left: 4px;
}

.sidebar-howto-link:hover {
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.08);
}

.sidebar-footer {
  padding: 0 12px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: auto;
}

.sidebar-footer a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  color: rgba(255, 255, 255, 0.4);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 500;
  transition: all var(--transition-fast);
  text-decoration: none;
  height: 36px;
  line-height: 1;
}

.sidebar-footer a svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.sidebar-footer a:hover {
  color: var(--danger);
  background: rgba(231, 76, 60, 0.08);
}

/* Main Content */
.main-content {
  flex: 1;
  margin-left: 260px;
  padding: 0;
  min-height: 100vh;
}

/* Top Bar */
.top-bar {
  background: var(--white);
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 50;
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.top-bar-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--gray-800);
}

.top-bar-breadcrumb {
  font-size: 0.85rem;
  color: var(--gray-400);
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
  color: var(--gray-600);
}

.mobile-menu-btn:hover {
  background: var(--gray-100);
}

/* Content Area */
.content-area {
  padding: 32px;
}

/* ---------- Dashboard / Index ---------- */
.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.stat-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: box-shadow var(--transition-fast), transform var(--transition-fast);
}

.stat-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.stat-card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 1.25rem;
}

.stat-card-icon.new {
  background: var(--info-bg);
  color: var(--info);
}

.stat-card-icon.open {
  background: var(--warning-bg);
  color: #e17055;
}

.stat-card-icon.closed {
  background: var(--success-bg);
  color: var(--success);
}

.stat-card-icon.total {
  background: var(--purple-bg);
  color: var(--purple);
}

.stat-card-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--gray-400);
  margin-bottom: 4px;
}

.stat-card-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--gray-800);
  line-height: 1.2;
}

/* Profile Cards Grid */
.profiles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.profile-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  overflow: hidden;
  transition: box-shadow var(--transition-fast), transform var(--transition-fast);
}

.profile-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.profile-card-header {
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--gray-200);
}

.profile-card-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gray-800);
}

.profile-card-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.profile-card-status.enabled {
  background: var(--success-bg);
  color: var(--success);
}

.profile-card-status.disabled {
  background: var(--danger-bg);
  color: var(--danger);
}

.profile-card-status::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.profile-card-body {
  padding: 20px 24px;
}

.profile-card-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.profile-stat {
  text-align: center;
  padding: 12px 8px;
  background: var(--gray-50);
  border-radius: var(--radius-sm);
}

.profile-stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gray-800);
  line-height: 1.2;
}

.profile-stat-value.new {
  color: var(--info);
}

.profile-stat-value.open {
  color: #e17055;
}

.profile-stat-value.closed {
  color: var(--success);
}

.profile-stat-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--gray-400);
  margin-top: 2px;
}

.profile-card-actions {
  display: flex;
  gap: 8px;
}

.profile-card-actions a {
  flex: 1;
  text-align: center;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.profile-card-actions a.edit {
  background: var(--gray-100);
  color: var(--gray-600);
}

.profile-card-actions a.edit:hover {
  background: var(--gray-200);
  color: var(--gray-800);
}

.profile-card-actions a.view {
  background: var(--brand-primary);
  color: var(--white);
}

.profile-card-actions a.view:hover {
  background: var(--brand-primary-light);
}

/* Create Profile Form */
.create-section {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  padding: 28px;
}

.create-section h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--gray-200);
}

/* Profile filter tabs */
.profile-tabs {
  display: inline-flex;
  gap: 4px;
  background: var(--gray-100);
  padding: 4px;
  border-radius: var(--radius-md);
}

.profile-sort {
  display: inline-flex;
  gap: 4px;
  background: var(--gray-100);
  padding: 4px;
  border-radius: var(--radius-md);
  margin-left: 12px;
}

.sort-btn {
  background: transparent;
  color: var(--gray-500);
  border: none;
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.sort-btn:hover {
  color: var(--gray-700);
  background: var(--white);
}

.sort-btn.active {
  background: var(--white);
  color: var(--brand-primary);
  box-shadow: var(--shadow-sm);
}

.tab-btn {
  background: transparent;
  color: var(--gray-500);
  border: none;
  border-radius: var(--radius-sm);
  padding: 8px 18px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.tab-btn:hover {
  color: var(--gray-700);
  background: var(--white);
}

.tab-btn.active {
  background: var(--white);
  color: var(--brand-primary);
  box-shadow: var(--shadow-sm);
}

.create-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  align-items: end;
}

.create-form .form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.create-form label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-600);
}

.create-form input {
  padding: 12px 14px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  color: var(--gray-700);
  background: var(--gray-50);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  outline: none;
}

.create-form input:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 4px rgba(50, 30, 174, 0.1);
  background: var(--white);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-accent) 100%);
  color: var(--white);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(50, 30, 174, 0.35);
}

.btn-secondary {
  background: var(--gray-100);
  color: var(--gray-600);
}

.btn-secondary:hover {
  background: var(--gray-200);
  color: var(--gray-800);
}

.btn-success {
  background: var(--success);
  color: var(--white);
}

.btn-success:hover {
  background: #00a383;
}

.btn-danger {
  background: var(--danger);
  color: var(--white);
}

.btn-danger:hover {
  background: #c0392b;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.8rem;
}

/* ---------- Orders Table ---------- */
.orders-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.orders-header h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--gray-800);
}

.orders-header .new-count {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--info-bg);
  color: var(--info);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.table-wrapper {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  overflow-x: auto;
}

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

/* Location orders table - auto column sizing */
.location-orders-table {
  table-layout: auto;
  width: max-content;
}

.location-orders-table tbody td {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}

.data-table thead {
  background: var(--gray-800);
  color: var(--white);
}

.data-table thead th {
  padding: 14px 8px;
  text-align: left;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  border-bottom: 2px solid var(--brand-primary);
}

.data-table tbody tr {
  border-bottom: 1px solid var(--gray-200);
  transition: background var(--transition-fast);
}

.data-table tbody tr:hover {
  background: var(--gray-50);
}

.data-table tbody tr.registered {
  background: var(--info-bg);
}

.data-table tbody tr.registered:hover {
  background: #d6edfa;
}

.data-table tbody td {
  padding: 12px 8px;
  color: var(--gray-700);
  vertical-align: middle;
}

.data-table tbody td.notes-cell {
  white-space: normal;
  word-wrap: break-word;
  max-width: 300px;
}

.data-table tbody td a {
  font-weight: 600;
}

/* Status select */
.status-select {
  padding: 6px 10px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--gray-700);
  background: var(--white);
  cursor: pointer;
  outline: none;
  transition: border-color var(--transition-fast);
  min-width: 140px;
}

.status-select:focus {
  border-color: var(--brand-primary);
}

.status-date-input {
  padding: 8px 12px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--gray-700);
  background: var(--white);
  outline: none;
  margin-left: 10px;
  min-width: 140px;
}

.status-date-input:focus {
  border-color: var(--brand-primary);
}

.status-submit {
  padding: 5px 12px;
  background: var(--brand-primary);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.status-submit:hover {
  background: var(--brand-primary-light);
}

/* Status form layout */
.status-form-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* Status text styling */
.location-orders-table td.status-cell span.status-text {
  display: block;
  padding: 6px 0;
  font-size: 0.85rem;
  color: var(--gray-600);
}

.location-orders-table td.status-cell {
  padding: 8px 12px;
}

/* Price input */
.price-input {
  padding: 6px 10px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  width: 90px;
  text-align: right;
  outline: none;
}

.price-input:focus {
  border-color: var(--brand-primary);
}

/* ---------- Profile Page ---------- */
.profile-hero {
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-accent) 100%);
  color: var(--white);
  padding: 40px 32px;
  border-radius: var(--radius-lg);
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
}

.profile-hero::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.profile-hero h1 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 4px;
  position: relative;
}

.profile-hero p {
  font-size: 1rem;
  opacity: 0.85;
  position: relative;
}

.profile-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 24px;
  margin-bottom: 28px;
}

.info-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  overflow: hidden;
}

.info-card-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  gap: 10px;
}

.info-card-header h2 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gray-800);
}

.info-card-header svg {
  width: 22px;
  height: 22px;
  color: var(--brand-primary);
}

.info-card-body {
  padding: 24px;
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-100);
}

.info-row:last-child {
  border-bottom: none;
}

.info-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--gray-400);
  flex-shrink: 0;
}

.info-value {
  font-size: 0.95rem;
  color: var(--gray-700);
  text-align: right;
  word-break: break-word;
}

.info-value a {
  color: var(--brand-primary);
}

/* Upload section */
.upload-section {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  padding: 28px;
  text-align: center;
}

.upload-section h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 16px;
}

.upload-section p {
  font-size: 0.9rem;
  color: var(--gray-500);
  margin-top: 16px;
}

.upload-section p a {
  font-weight: 600;
}

.file-input-wrapper {
  display: inline-flex;
  gap: 12px;
  align-items: center;
}

.file-input-wrapper input[type="file"] {
  padding: 10px;
  border: 2px dashed var(--gray-300);
  border-radius: var(--radius-sm);
  cursor: pointer;
  background: var(--gray-50);
}

.file-input-wrapper input[type="file"]:hover {
  border-color: var(--brand-primary);
}

/* ---------- Profile Edit Page ---------- */
.edit-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.edit-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  overflow: hidden;
}

.edit-card-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--gray-200);
  background: var(--gray-50);
}

.edit-card-header h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gray-800);
}

.edit-card-body {
  padding: 24px;
}

.edit-table {
  width: 100%;
  border-collapse: collapse;
}

.edit-table tr {
  border-bottom: 1px solid var(--gray-100);
}

.edit-table tr:last-child {
  border-bottom: none;
}

.edit-table td {
  padding: 12px 0;
  vertical-align: middle;
}

.edit-table td:first-child {
  width: 45%;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-600);
  padding-right: 16px;
}

.edit-table td:first-child::after {
  content: ':';
}

.edit-table td:last-child {
  width: 55%;
}

.edit-table input[type="text"],
.edit-table input[type="email"],
.edit-table input[type="number"] {
  width: 100%;
  padding: 10px 12px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--gray-700);
  background: var(--gray-50);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  outline: none;
}

.edit-table input:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 4px rgba(50, 30, 174, 0.1);
  background: var(--white);
}

.edit-table input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--brand-primary);
  cursor: pointer;
}

.edit-table label {
  font-size: 0.9rem;
  color: var(--gray-600);
  cursor: pointer;
}

.edit-table .radio-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.edit-table .radio-group label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.edit-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--gray-200);
}

.profile-image-preview {
  margin-top: 24px;
  text-align: center;
}

.profile-image-preview img {
  max-width: 200px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 3px solid var(--gray-200);
}

/* ---------- Price List Editor (Tabs) ---------- */
.price-editor {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  overflow: hidden;
}

.price-editor-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--gray-200);
}

.price-editor-header h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gray-800);
}

.price-editor-header p {
  font-size: 0.85rem;
  color: var(--gray-500);
  margin-top: 4px;
}

/* Device group tabs */
.device-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--gray-200);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.device-tabs input[type="radio"] {
  display: none;
}

.device-tabs label {
  padding: 14px 24px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-500);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.device-tabs label:hover {
  color: var(--gray-700);
  background: var(--gray-50);
}

.device-tabs input[type="radio"]:checked + label {
  color: var(--brand-primary);
  border-bottom-color: var(--brand-primary);
  background: var(--white);
}

.tab-content {
  display: none;
  padding: 24px;
}

/* Show tab content based on checked radio - use attribute selector */
.device-tabs input[type="radio"][data-index="1"]:checked ~ .tab-content[data-device-index="iPhone"],
.device-tabs input[type="radio"][data-index="2"]:checked ~ .tab-content[data-device-index="Samsung"],
.device-tabs input[type="radio"][data-index="3"]:checked ~ .tab-content[data-device-index="Mac"],
.device-tabs input[type="radio"][data-index="4"]:checked ~ .tab-content[data-device-index="iPad"],
.device-tabs input[type="radio"][data-index="5"]:checked ~ .tab-content[data-device-index="Xiaomi"],
.device-tabs input[type="radio"][data-index="6"]:checked ~ .tab-content[data-device-index="OnePlus"],
.device-tabs input[type="radio"][data-index="7"]:checked ~ .tab-content[data-device-index="Google"],
.device-tabs input[type="radio"][data-index="8"]:checked ~ .tab-content[data-device-index="Test"],
.device-tabs input[type="radio"][data-index="9"]:checked ~ .tab-content[data-device-index="AppleWatch"] {
  display: block;
}

/* Service sub-tabs */
.service-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--gray-200);
  margin-bottom: 20px;
  overflow-x: auto;
}

.service-tab-content {
  display: none;
}

.service-tabs li {
  list-style: none;
}

.service-tabs li label {
  display: block;
  padding: 10px 18px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-500);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.service-tabs li label:hover {
  color: var(--gray-700);
}

.service-tabs li.active label {
  color: var(--brand-primary);
  border-bottom-color: var(--brand-primary);
}

/* Price tables */
.price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.price-table thead th,
.price-table thead td {
  padding: 10px 12px;
  text-align: center;
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--gray-500);
  background: var(--gray-50);
  border-bottom: 2px solid var(--gray-200);
}

.price-table thead th:first-child {
  text-align: left;
  padding-left: 16px;
}

.price-table thead .service-header {
  background: var(--brand-primary);
  color: var(--white);
  text-transform: none;
  font-size: 0.85rem;
}

.price-table thead td {
  padding: 6px 12px;
  text-align: center;
  font-weight: 500;
  font-size: 0.75rem;
  color: var(--gray-600);
  border-bottom: 1px solid var(--gray-200);
}

.price-table thead .quality-divider {
  border-right: 2px solid var(--gray-200);
}

.price-table tbody td.quality-divider {
  border-right: 2px solid var(--gray-200);
}

.price-table tbody td {
  padding: 10px 12px;
  text-align: center;
  border-bottom: 1px solid var(--gray-100);
}

.price-table tbody td:first-child {
  text-align: left;
  padding-left: 16px;
  font-weight: 600;
  color: var(--gray-700);
}

.price-table tbody tr:hover {
  background: var(--gray-50);
}

.price-table input[type="text"] {
  width: 110px;
  padding: 6px 8px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  text-align: center;
  color: var(--gray-700);
  background: var(--white);
  outline: none;
  transition: border-color var(--transition-fast);
}

.price-table input[type="text"]:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(50, 30, 174, 0.1);
}

/* TAT fields */
.tat-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
  padding: 20px;
  background: var(--gray-50);
  border-radius: var(--radius-md);
}

.tat-field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gray-600);
  margin-bottom: 6px;
}

.tat-field input {
  width: 100%;
  padding: 10px 12px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--gray-700);
  background: var(--white);
  outline: none;
  transition: border-color var(--transition-fast);
}

.tat-field input:focus {
  border-color: var(--brand-primary);
}

.tat-field input[readonly] {
  background: var(--gray-100);
  cursor: not-allowed;
}

.top-spot-field {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--warning-bg);
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}

.top-spot-field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-700);
  cursor: pointer;
}

.top-spot-field input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--warning);
}

/* ---------- Modal / Dialog ---------- */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
}

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

.modal-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gray-800);
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--gray-400);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.modal-close:hover {
  background: var(--gray-100);
  color: var(--gray-700);
}

.modal-body {
  padding: 24px;
}

.modal-body .form-group {
  margin-bottom: 16px;
}

.modal-body label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-600);
  margin-bottom: 6px;
}

.modal-body input {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  color: var(--gray-700);
  background: var(--gray-50);
  outline: none;
  transition: border-color var(--transition-fast);
}

.modal-body input:focus {
  border-color: var(--brand-primary);
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--gray-200);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* ---------- Badge / Tags ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.badge-new {
  background: var(--info-bg);
  color: var(--info);
}

.badge-open {
  background: var(--warning-bg);
  color: #e17055;
}

.badge-closed {
  background: var(--success-bg);
  color: var(--success);
}

.badge-registered {
  background: var(--info-bg);
  color: var(--info);
}

.badge-ongoing {
  background: var(--warning-bg);
  color: #e17055;
}

.badge-completed {
  background: var(--success-bg);
  color: var(--success);
}

.badge-cancelled {
  background: var(--danger-bg);
  color: var(--danger);
}

/* ---------- Empty State ---------- */
.empty-state {
  text-align: center;
  padding: 60px 24px;
  color: var(--gray-400);
}

.empty-state svg {
  width: 64px;
  height: 64px;
  margin-bottom: 16px;
  opacity: 0.4;
}

.empty-state h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gray-600);
  margin-bottom: 8px;
}

.empty-state p {
  font-size: 0.9rem;
  margin-bottom: 20px;
}

/* ---------- Footer ---------- */
.portal-footer {
  margin-top: auto;
  padding: 20px 32px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--gray-400);
  border-top: 1px solid var(--gray-200);
  background: var(--white);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .edit-layout {
    grid-template-columns: 1fr;
  }

  .profiles-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }
}

@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .main-content {
    margin-left: 0;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .content-area {
    padding: 20px 16px;
  }

  .top-bar {
    padding: 12px 16px;
  }

  .dashboard-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .stat-card {
    padding: 16px;
  }

  .stat-card-value {
    font-size: 1.5rem;
  }

  .profiles-grid {
    grid-template-columns: 1fr;
  }

  .profile-cards-grid {
    grid-template-columns: 1fr;
  }

  .create-form {
    grid-template-columns: 1fr;
  }

  .login-card {
    padding: 32px 24px;
  }

  .login-title {
    font-size: 1.5rem;
  }

  .profile-hero {
    padding: 28px 20px;
  }

  .profile-hero h1 {
    font-size: 1.4rem;
  }

  .tat-fields {
    grid-template-columns: 1fr;
  }

  .device-tabs label {
    padding: 12px 16px;
    font-size: 0.85rem;
  }

  .price-table {
    font-size: 0.8rem;
  }

  .price-table input[type="text"] {
    width: 55px;
    padding: 4px 6px;
  }
}

@media (max-width: 480px) {
  .dashboard-stats {
    grid-template-columns: 1fr;
  }

  .profile-card-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .profile-stat {
    padding: 10px 4px;
  }

  .profile-stat-value {
    font-size: 1.25rem;
  }

  .profile-card-actions {
    flex-direction: column;
  }

  .data-table {
    font-size: 0.8rem;
  }

  .data-table thead th,
  .data-table tbody td {
    padding: 8px 10px;
  }

  .status-select {
    min-width: 120px;
    font-size: 0.8rem;
  }
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.hidden { display: none !important; }

/* ---------- Animations ---------- */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeIn 0.3s ease forwards;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
  background: var(--gray-300);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gray-400);
}

/* ---------- Column Toggle ---------- */
.column-toggle-wrapper {
  position: relative;
}

.btn-column-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--gray-100);
  color: var(--gray-700);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-column-toggle:hover {
  background: var(--gray-200);
  border-color: var(--gray-300);
}

.btn-column-toggle svg:first-child {
  color: var(--brand-primary);
}

.btn-column-toggle svg:last-child {
  margin-left: 2px;
  transition: transform var(--transition-fast);
}

.btn-column-toggle.active svg:last-child {
  transform: rotate(180deg);
}

.column-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 200;
  min-width: 220px;
  max-height: 400px;
  overflow-y: auto;
}

.column-dropdown.open {
  display: block;
  animation: dropdownFadeIn 0.15s ease;
}

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

.column-dropdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--gray-200);
  background: var(--gray-50);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.column-dropdown-header span {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gray-700);
}

.btn-reset-columns {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  background: transparent;
  color: var(--brand-primary);
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-reset-columns:hover {
  background: rgba(50, 30, 174, 0.08);
}

.btn-reset-columns svg {
  flex-shrink: 0;
}

.column-list {
  padding: 8px;
}

.column-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition-fast);
  user-select: none;
}

.column-item:hover {
  background: var(--gray-50);
}

.column-item input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--brand-primary);
  cursor: pointer;
  flex-shrink: 0;
}

.column-item span {
  font-size: 0.85rem;
  color: var(--gray-700);
  white-space: nowrap;
}

/* Hidden columns */
.data-table th.hidden-col,
.data-table td.hidden-col {
  display: none !important;
}

/* ---------- Data Table ---------- */
.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  font-size: 0.75rem;
}

.data-table thead {
  background: var(--gray-50);
  border-bottom: 2px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 10;
}

.data-table th {
  padding: 8px 10px;
  text-align: left;
  font-weight: 600;
  color: var(--gray-700);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  border-right: 1px solid var(--gray-100);
}

.data-table th:last-child {
  border-right: none;
}

.data-table tbody tr {
  border-bottom: 1px solid var(--gray-100);
  transition: background var(--transition-fast);
}

.data-table tbody tr:last-child {
  border-bottom: none;
}

.data-table tbody tr:hover {
  background: var(--gray-50);
}

.data-table td {
  padding: 6px 10px;
  color: var(--gray-800);
  vertical-align: middle;
  border-right: 1px solid var(--gray-100);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 150px;
}

.data-table td:first-child {
  font-weight: 500;
}

.data-table td:last-child {
  border-right: none;
}

.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-height: calc(100vh - 200px);
}

.table-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.order-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.order-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.order-card-header {
  padding: 16px;
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-100);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.order-card-header h3 {
  margin: 0;
  font-size: 0.9rem;
  color: var(--gray-800);
}

.order-card-body {
  padding: 16px;
}

.order-card-body dl {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin: 0;
}

.order-card-body dt {
  font-size: 0.7rem;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.order-card-body dd {
  font-size: 0.85rem;
  color: var(--gray-800);
  margin: 0;
  font-weight: 500;
}

.status-badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.status-registered {
  background: #dbeafe;
  color: #1e40af;
}

.status-repair-booked {
  background: #fef3c7;
  color: #92400e;
}

.status-order-finished {
  background: #d1fae5;
  color: #065f46;
}

.status-canceled {
  background: #fee2e2;
  color: #991b1b;
}

.status-awaiting-pickup {
  background: #e0e7ff;
  color: #3730a3;
}

.status-on-going {
  background: #fef9c3;
  color: #854d0e;
}

.status-waiting-for-customer {
  background: #fce7f3;
  color: #9d174d;
}

.status-send-shipping-label {
  background: #ccfbf1;
  color: #115e59;
}

.status-shipping-label-sent {
  background: #f3e8ff;
  color: #6b21a8;
}

/* ---------- Print ---------- */
@media print {
  .sidebar, .top-bar, .mobile-menu-btn, .btn {
    display: none !important;
  }

  .main-content {
    margin-left: 0 !important;
  }

  .table-wrapper {
    box-shadow: none;
    border: 1px solid #ccc;
  }
}
