:root {
  /* Brand Colors */
  --mo-orange: #FD5902;       /* BLAZE ORANGE - Brand color */
  --mo-orange-hover: #e04f02; /* Darker shade for hover */
  --mo-orange-active: #c44502; /* Darker shade for active */
  
  /* Primary Colors */
  --mo-ivory: #FCF9E8;        /* IVORY - Background */
  --mo-jet-black: #1C2831;    /* JET BLACK - Dark text/elements */
  
  /* Secondary Colors */
  --mo-white: #FFFFFF;        /* WHITE */
  --mo-light-blue: #AACFDF;   /* LIGHT BLUE - Accents, links */
  --mo-light-blue-hover: #8bb8cc; /* Darker light blue for hover */
  --mo-dark-teal: #075056;    /* DARK TEAL - Primary for links, active states */
  --mo-dark-teal-hover: #063d42; /* Darker teal for hover */
  --mo-dark-teal-light: #e6f0f1; /* Light teal for backgrounds */
  --mo-black: #000000;        /* BLACK */
  
  /* Legacy/Compatibility - Using brand colors */
  --mo-primary: #075056;      /* DARK TEAL - Primary for links, active states */
  --mo-primary-hover: #063d42;
  --mo-primary-light: #e6f0f1;
  --mo-bg: #FCF9E8;           /* IVORY - Background */
  --mo-muted: #8d96a0;
  --mo-border: #d7dde5;
  --mo-border-soft: #e8ecf1;
  --mo-card: #FFFFFF;         /* WHITE - Card backgrounds */
  --mo-dark: #1C2831;         /* JET BLACK - Dark elements */
  --mo-shadow: 0 6px 18px rgba(33, 37, 41, 0.08);
  
  /* Standardized Font Sizes */
  --mo-font-xs: 0.75rem;      /* 12px - Section titles, captions */
  --mo-font-sm: 0.875rem;     /* 14px - Labels, helper text, small text */
  --mo-font-base: 1rem;       /* 16px - Base body text */
  --mo-font-md: 1.125rem;     /* 18px - Subheadings */
  --mo-font-lg: 1.25rem;      /* 20px - Card titles, important text */
  --mo-font-xl: 1.5rem;       /* 24px - Main headings */
}

* {
  box-sizing: border-box;
}

body {
  background: var(--mo-bg);
  font-family: "Inter", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: #212529;
  font-size: var(--mo-font-base);
  line-height: 1.5;
}

/* Standardized Font Size Classes */
.text-xs {
  font-size: var(--mo-font-xs);
}

.text-sm {
  font-size: var(--mo-font-sm);
}

.text-base {
  font-size: var(--mo-font-base);
}

.text-md {
  font-size: var(--mo-font-md);
}

.text-lg {
  font-size: var(--mo-font-lg);
}

.text-xl {
  font-size: var(--mo-font-xl);
}

/* Override Bootstrap small class */
small,
.small {
  font-size: var(--mo-font-sm) !important;
}

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

/* Base Button Styles */
.btn {
  transition: all 0.2s ease-in-out;
  font-weight: 500;
  border-radius: 6px;
}

.btn:focus {
  box-shadow: 0 0 0 0.2rem rgba(7, 80, 86, 0.25);
  outline: none;
}

.btn:active:not(:disabled):not(.disabled) {
  transform: translateY(1px);
}

/* Bootstrap Button Overrides */
.btn-secondary {
  transition: all 0.2s ease-in-out;
}

.btn-secondary:hover:not(:disabled):not(.disabled) {
  background-color: #5c636a;
  border-color: #565e64;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(108, 117, 125, 0.3);
}

.btn-secondary:active:not(:disabled):not(.disabled) {
  background-color: #565e64;
  border-color: #51585e;
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(108, 117, 125, 0.2);
}

.btn-light {
  transition: all 0.2s ease-in-out;
}

.btn-light:hover:not(:disabled):not(.disabled) {
  background-color: #f8f9fa;
  border-color: #f8f9fa;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(248, 249, 250, 0.3);
}

.btn-light:active:not(:disabled):not(.disabled) {
  background-color: #f8f9fa;
  border-color: #f8f9fa;
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(248, 249, 250, 0.2);
}

.btn-link {
  transition: all 0.2s ease-in-out;
  text-decoration: none;
}

.btn-link:hover:not(:disabled):not(.disabled) {
  text-decoration: underline;
  opacity: 0.8;
  transform: translateY(-1px);
}

.btn-link:active:not(:disabled):not(.disabled) {
  opacity: 0.7;
  transform: translateY(0);
}

.btn-danger {
  transition: all 0.2s ease-in-out;
}

.btn-danger:hover:not(:disabled):not(.disabled) {
  background-color: #bb2d3b;
  border-color: #b02a37;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
}

.btn-danger:active:not(:disabled):not(.disabled) {
  background-color: #b02a37;
  border-color: #a52834;
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(220, 53, 69, 0.2);
}

/* Disabled Button States */
.btn:disabled,
.btn.disabled {
  opacity: 0.65;
  cursor: not-allowed;
  pointer-events: none;
  transform: none !important;
  box-shadow: none !important;
}

/* Form Controls Hover Effects */
.form-control {
  transition: all 0.2s ease-in-out;
}

.form-control:hover:not(:disabled):not([readonly]) {
  border-color: var(--mo-dark-teal);
}

.form-control:focus {
  border-color: var(--mo-dark-teal);
  box-shadow: 0 0 0 0.2rem rgba(7, 80, 86, 0.15);
}

.form-select {
  transition: all 0.2s ease-in-out;
}

.form-select:hover:not(:disabled) {
  border-color: var(--mo-dark-teal);
}

.form-select:focus {
  border-color: var(--mo-dark-teal);
  box-shadow: 0 0 0 0.2rem rgba(7, 80, 86, 0.15);
}

/* Link Hover Effects */
a {
  transition: all 0.2s ease-in-out;
}

a:hover:not(.btn):not(.app-menu-item):not(.app-menu-sub a) {
  opacity: 0.8;
}

.edit-link:hover {
  color: var(--mo-dark-teal-hover) !important;
  transform: translateX(2px);
}

.edit-link:active {
  color: var(--mo-dark-teal) !important;
}

/* Card Hover Effects */
.card {
  transition: all 0.2s ease-in-out;
}

.card:hover {
  box-shadow: 0 4px 12px rgba(33, 37, 41, 0.1);
}

.card-header[style*="cursor: pointer"]:hover {
  background-color: #e9ecef !important;
}

/* Menu Item Hover Enhancement */
.app-menu-item:hover {
  background: var(--mo-ivory);
  transform: translateX(4px);
}

.app-menu-sub a:hover {
  color: var(--mo-dark-teal-hover);
  transform: translateX(4px);
}

/* Tab Bar Hover Effects */
.tab-bar a {
  transition: all 0.2s ease-in-out;
}

.tab-bar a:hover:not(.active) {
  background-color: #f8f9fa;
}

.tab-bar a.active {
  background: #f1f3f6;
  font-weight: 600;
}

.btn-orange {
  background: var(--mo-orange);
  color: #fff;
  border: none;
}

.btn-orange:hover:not(:disabled):not(.disabled) {
  background: var(--mo-orange-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(253, 89, 2, 0.3);
}

.btn-orange:active:not(:disabled):not(.disabled) {
  background: var(--mo-orange-active);
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(253, 89, 2, 0.2);
}

.btn-dark {
  background: var(--mo-jet-black);
  color: #fff;
  border: none;
}

.btn-dark:hover:not(:disabled):not(.disabled) {
  background: #25313a;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(28, 40, 49, 0.3);
}

.btn-dark:active:not(:disabled):not(.disabled) {
  background: #1a2329;
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(28, 40, 49, 0.2);
}

.app-topbar {
  background: #fff;
  border-bottom: 1px solid var(--mo-border-soft);
}

.app-brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--mo-ivory);
  border: 2px solid var(--mo-orange);
  display: grid;
  place-items: center;
  color: var(--mo-orange);
  font-weight: 700;
}

.app-brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.app-menu-canvas {
  width: 280px;
  border-right: 1px solid var(--mo-border-soft);
}

.app-menu-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.app-menu-brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.app-menu-title {
  font-weight: 700;
  letter-spacing: 0.5px;
}

.app-menu-subtitle {
  font-size: var(--mo-font-xs);
  color: #6c757d;
  letter-spacing: 1px;
}

.app-menu-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.app-menu-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  color: #2f3a44;
  text-decoration: none;
  font-weight: 600;
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
}

.app-menu-item i {
  font-size: 1.1rem;
  color: #52627a;
}

.app-menu-item:hover {
  background: #f4f6f9;
}

.app-menu-item-active {
  background: var(--mo-dark-teal-light);
  color: var(--mo-dark-teal);
}

.app-menu-item-active i {
  color: var(--mo-dark-teal);
}

.app-menu-sub {
  background: var(--mo-dark-teal-light);
  border-radius: 12px;
  padding: 12px 14px;
  margin-left: 6px;
  display: grid;
  gap: 8px;
}

.app-menu-sub a {
  text-decoration: none;
  color: var(--mo-dark-teal);
  font-weight: 600;
  font-size: var(--mo-font-sm);
}

.app-menu-trigger {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
}

.app-brand-text {
  line-height: 1;
}

.app-brand-text strong {
  font-size: 1.1rem;
  letter-spacing: 0.5px;
}

.app-brand-text span {
  font-size: var(--mo-font-xs);
  color: #6c757d;
  letter-spacing: 1px;
}

.app-card {
  background: var(--mo-card);
  border-radius: 10px;
  border: 1px solid var(--mo-border);
}

.app-card-soft {
  background: var(--mo-card);
  border-radius: 14px;
  border: 1px solid var(--mo-border);
  box-shadow: var(--mo-shadow);
}

.app-divider {
  height: 1px;
  background: var(--mo-border);
}

.app-muted {
  color: var(--mo-muted);
}

.app-input-row {
  border: 1px solid var(--mo-border);
  border-radius: 4px;
  background: #fff;
  display: flex;
  align-items: center;
  padding: 6px 8px;
  gap: 8px;
}

.app-input-row input, .app-input-row select, .app-input-row textarea {
  border: none;
  outline: none;
  box-shadow: none;
  width: 100%;
  font-size: var(--mo-font-sm);
  transition: all 0.2s ease-in-out;
  background: transparent;
}

.app-input-row textarea {
  resize: vertical;
  min-height: 80px;
}

.app-input-row input[type="file"] {
  cursor: pointer;
}

.app-input-row:hover {
  border-color: var(--mo-dark-teal);
  box-shadow: 0 0 0 0.1rem rgba(7, 80, 86, 0.1);
}

.app-input-row input:focus,
.app-input-row select:focus {
  outline: none;
}

.app-input-row:focus-within {
  border-color: var(--mo-dark-teal);
  box-shadow: 0 0 0 0.2rem rgba(7, 80, 86, 0.15);
}

/* Select2 styling within app-input-row */
.app-input-row .select2-container--bootstrap-5 {
  width: 100% !important;
  flex: 1;
}

.app-input-row .select2-container--bootstrap-5 .select2-selection {
  border: none;
  background: transparent;
  box-shadow: none;
  height: auto;
  min-height: auto;
}

.app-input-row .select2-container--bootstrap-5 .select2-selection__rendered {
  padding-left: 32px !important;
  padding-right: 0;
}

.app-input-row .select2-container--bootstrap-5 .select2-selection__arrow {
  right: 8px;
}

.app-section-title {
  font-size: var(--mo-font-xs);
  letter-spacing: 1px;
  color: #6c757d;
}

.app-row-tile {
  background: #fff;
  border: 1px solid var(--mo-border);
  border-radius: 8px;
  padding: 10px 12px;
  transition: all 0.2s ease-in-out;
}

.app-row-tile:hover {
  background-color: #f8f9fa;
  border-color: var(--mo-dark-teal);
  transform: translateX(4px);
  box-shadow: 0 2px 8px rgba(7, 80, 86, 0.1);
}

.app-row-tile:active {
  transform: translateX(2px);
}

.app-row-tile i {
  color: var(--mo-dark-teal);
  font-size: 1.1rem;
  transition: all 0.2s ease-in-out;
}

.app-row-tile:hover i {
  transform: scale(1.1);
}

.app-table {
  width: 100%;
  font-size: var(--mo-font-sm);
  border-collapse: separate;
  border-spacing: 0 6px;
}

.app-table td {
  padding: 6px 8px;
}

.app-table-row {
  background: var(--mo-white);
  border-radius: 4px;
}

/* inline styles from index.html */ :root {
  --mo-orange: #FD5902;
  --mo-bg: #FCF9E8;
  --mo-card: #FFFFFF;
  --mo-muted: #8d96a0;
}

body {
  background: var(--mo-bg);
}

.topbar {
  background: #fff;
  border-bottom: 1px solid #e8ecf1;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--mo-ivory);
  border: 2px solid var(--mo-orange);
  display: grid;
  place-items: center;
  color: var(--mo-orange);
  font-weight: 700;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-text {
  line-height: 1;
}

.brand-text strong {
  font-size: 1.1rem;
  letter-spacing: 0.5px;
}

.brand-text span {
  font-size: 0.6rem;
  color: #6c757d;
  letter-spacing: 1px;
}

.search-wrap {
  background: #fff;
  border-radius: 10px;
  border: 1px solid #dfe5ec;
  overflow: hidden;
}

.search-wrap input {
  border: none;
  box-shadow: none;
}

.search-btn {
  background: var(--mo-orange);
  color: #fff;
  border: none;
  transition: all 0.2s ease-in-out;
}

.search-btn:hover:not(:disabled):not(.disabled) {
  background: var(--mo-orange-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(253, 89, 2, 0.3);
}

.search-btn:active:not(:disabled):not(.disabled) {
  background: var(--mo-orange-active);
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(253, 89, 2, 0.2);
}

.search-btn:disabled,
.search-btn.disabled {
  background: var(--mo-orange) !important;
  color: #fff !important;
  border: none !important;
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
  transform: none !important;
  box-shadow: none !important;
}

.card-list .card {
  border-radius: 10px;
  box-shadow: 0 1px 0 #e6ebf1;
}

.card-list .card.actionable {
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.card-list .card.actionable:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(33, 37, 41, 0.15);
}

.card-list .card.actionable:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(33, 37, 41, 0.1);
}

.progress {
  height: 10px;
  background: #d3d7de;
  border-radius: 6px;
}

.progress-bar {
  background: var(--mo-dark-teal);
  border-radius: 6px;
}

.stat-label {
  color: #333;
  font-weight: 600;
}

.stat-value {
  color: #212529;
}

.percent {
  color: var(--mo-dark-teal);
  font-weight: 700;
}

/* inline styles from scan-components.html */ :root {
  --mo-orange: #FD5902;
  --mo-bg: #FCF9E8;
}

.card-box {
  background: #fff;
  border-radius: 10px;
  border: 1px solid #d7dde5;
}

.form-row {
  border: 1px solid #d7dde5;
  border-radius: 4px;
  background: #fff;
  display: flex;
  align-items: center;
  padding: 6px 8px;
  gap: 8px;
}

.form-row input, .form-row select {
  border: none;
  outline: none;
  box-shadow: none;
  width: 100%;
  font-size: var(--mo-font-sm);
  transition: all 0.2s ease-in-out;
}

.form-row:hover {
  border-color: var(--mo-dark-teal);
  box-shadow: 0 0 0 0.1rem rgba(7, 80, 86, 0.1);
}

.form-row input:focus,
.form-row select:focus {
  outline: none;
}

.form-row:focus-within {
  border-color: var(--mo-dark-teal);
  box-shadow: 0 0 0 0.2rem rgba(7, 80, 86, 0.15);
}

.scan-table {
  width: 100%;
  font-size: var(--mo-font-sm);
  border-collapse: separate;
  border-spacing: 0 6px;
}

.scan-table td {
  padding: 6px 8px;
}

.scan-row {
  background: var(--mo-white);
  border-radius: 4px;
  transition: all 0.3s ease-out;
}

.scan-row:hover {
  background: var(--mo-ivory);
}

.delete-btn {
  transition: all 0.2s ease-in-out;
  padding: 4px;
  border-radius: 4px;
  display: inline-block;
}

.delete-btn:hover {
  background-color: rgba(220, 53, 69, 0.1);
  transform: scale(1.2);
  color: #dc3545 !important;
}

.delete-btn:active {
  transform: scale(1.1);
}

.status-failed {
  color: #e43d30;
  font-weight: 600;
}

.status-passed {
  color: #22a95c;
  font-weight: 600;
}

.btn-black {
  background: #000;
  color: #fff;
  border: none;
}

.btn-black:hover:not(:disabled):not(.disabled) {
  background: #1a1a1a;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.btn-black:active:not(:disabled):not(.disabled) {
  background: #0d0d0d;
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* inline styles from login.html */ :root {
  --mo-orange: #FD5902;
  --mo-bg: #FCF9E8;
}

.login-card {
  background: #fff;
  border-radius: 14px;
  border: 1px solid #e1e6ee;
  box-shadow: 0 8px 20px rgba(33, 37, 41, 0.08);
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--mo-ivory);
  border: 2px solid var(--mo-orange);
  display: grid;
  place-items: center;
  color: var(--mo-orange);
  font-weight: 700;
}

.brand-text strong {
  font-size: 1.25rem;
  letter-spacing: 0.5px;
}

.brand-text span {
  font-size: 0.65rem;
  color: #6c757d;
  letter-spacing: 1px;
}

/* inline styles from time.html */ :root {
  --mo-orange: #FD5902;
  --mo-bg: #FCF9E8;
  --mo-muted: #8d96a0;
}

.job-card {
  background: #fff;
  border-radius: 10px;
  border: 1px solid #d7dde5;
}

.job-title {
  font-size: 0.75rem;
  letter-spacing: 1px;
  color: #6c757d;
}

.job-divider {
  height: 1px;
  background: #d7dde5;
}

.tab-bar {
  background: #fff;
  border: 1px solid #d7dde5;
  border-radius: 8px;
  overflow: hidden;
  display: inline-flex;
}

.tab-bar a {
  padding: 6px 14px;
  font-size: var(--mo-font-sm);
  text-decoration: none;
  color: #2f3a44;
}

.tab-bar .active {
  background: #f1f3f6;
  font-weight: 600;
}

.btn-dark {
  background: #1f2a33;
  color: #fff;
  border: none;
}

.btn-dark-alt {
  background: #24313a;
  color: #fff;
  border: none;
}

.btn-dark-alt:hover:not(:disabled):not(.disabled) {
  background: #2d3e49;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(36, 49, 58, 0.3);
}

.btn-dark-alt:active:not(:disabled):not(.disabled) {
  background: #1e2830;
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(36, 49, 58, 0.2);
}

.time-card {
  background: #fff;
  border-radius: 10px;
  border: 1px solid #d7dde5;
}

.time-card .title {
  font-weight: 600;
}

.edit-link {
  color: var(--mo-dark-teal);
  text-decoration: none;
  font-size: var(--mo-font-sm);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* inline styles from dashboard.html */ .topbar {
  background: #fff;
  border-bottom: 1px solid #e8ecf1;
}

.dash-card {
  background: #fff;
  border-radius: 14px;
  border: 1px solid #d7dde5;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  color: #212529;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.dash-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(33, 37, 41, 0.12);
  border-color: var(--mo-dark-teal);
}

.dash-card:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(33, 37, 41, 0.08);
}

.dash-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--mo-dark-teal-light);
  color: var(--mo-dark-teal);
  font-size: 1.3rem;
}

.dash-sub {
  color: #6c757d;
  font-size: var(--mo-font-sm);
}

/* inline styles from cycle.html */ :root {
  --mo-orange: #FD5902;
  --mo-bg: #FCF9E8;
  --mo-card: #FFFFFF;
  --mo-muted: #8d96a0;
}

.cycle-strip {
  background: var(--mo-dark-teal-light);
  border-radius: 10px;
  padding: 10px;
}

.cycle-input {
  border: 1px solid #c7cbd1;
  background: #fff;
  border-radius: 4px;
  height: 32px;
  font-weight: 600;
  text-align: center;
}

.sheet-card {
  border: 1px solid #b9bec6;
  background: #fff;
  border-radius: 4px;
}

.row-tile {
  background: #fff;
  border: 1px solid #cfd5dc;
  border-radius: 8px;
  padding: 10px 12px;
}

.row-tile i {
  color: var(--mo-dark-teal);
  font-size: 1.1rem;
}

/* inline styles from create-shift.html */ :root {
  --mo-orange: #FD5902;
  --mo-bg: #FCF9E8;
  --mo-muted: #8d96a0;
}

.form-card {
  background: #fff;
  border-radius: 10px;
  border: 1px solid #d7dde5;
}

.section-title {
  font-weight: 600;
  font-size: var(--mo-font-base);
}

/* inline styles from add-inventory.html */ :root {
  --mo-orange: #FD5902;
  --mo-bg: #FCF9E8;
}

/* inline styles from blogs.html */ :root {
  --mo-orange: #FD5902;
  --mo-bg: #FCF9E8;
  --mo-muted: #8d96a0;
}

.search-wrap {
  background: #fff;
  border-radius: 8px;
  border: 1px solid #dfe5ec;
  overflow: hidden;
}

.btn-darkgray {
  background: #2f3a44;
  color: #fff;
  border: none;
}

.btn-darkgray:hover:not(:disabled):not(.disabled) {
  background: #3a4752;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(47, 58, 68, 0.3);
}

.btn-darkgray:active:not(:disabled):not(.disabled) {
  background: #252e36;
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(47, 58, 68, 0.2);
}

.pill-row {
  background: #fff;
  border: 1px solid #d7dde5;
  border-radius: 8px;
}

.pill-row .status {
  color: var(--mo-dark-teal);
  font-size: var(--mo-font-xs);
}

.action-card {
  background: #fff;
  border: 1px solid #d7dde5;
  border-radius: 8px;
}

.action-item {
  padding: 10px 12px;
  border-top: 1px solid #d7dde5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.2s ease-in-out;
}

.action-item:first-of-type {
  border-top: none;
}

.action-item:hover {
  background-color: #f8f9fa;
  cursor: pointer;
}

.action-item:active {
  background-color: #e9ecef;
}

.orange-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--mo-orange);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: var(--mo-font-xs);
}

/* Storage Capacity Grid */
#storageGrid {
  max-height: 500px;
  overflow-y: auto;
  padding: 8px;
  background: #f8f9fa;
  border-radius: 8px;
}

.storage-square {
  min-height: 20px;
}

.storage-square:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* ============================================
   iPad & Tablet Responsive Styles (768px+)
   ============================================ */

/* iPad Portrait & Landscape (768px - 1023px) */
@media screen and (min-width: 768px) and (max-width: 1023px) {
  :root {
    /* Slightly larger font sizes for iPad */
    --mo-font-xs: 0.8125rem;    /* 13px */
    --mo-font-sm: 0.9375rem;     /* 15px */
    --mo-font-base: 1.0625rem;   /* 17px */
    --mo-font-md: 1.25rem;       /* 20px */
    --mo-font-lg: 1.375rem;      /* 22px */
    --mo-font-xl: 1.625rem;      /* 26px */
  }

  body {
    font-size: var(--mo-font-base);
  }

  /* Header adjustments */
  .app-topbar {
    padding: 1rem 1.5rem;
  }

  .app-brand-mark {
    width: 40px;
    height: 40px;
  }

  /* Menu adjustments */
  .app-menu-canvas {
    width: 320px;
  }

  .app-menu-item {
    padding: 12px 16px;
    font-size: var(--mo-font-base);
  }

  .app-menu-item i {
    font-size: 1.2rem;
  }

  /* Card spacing */
  .app-card {
    padding: 1.5rem;
  }

  .card-box {
    padding: 1.5rem;
  }

  /* Form inputs */
  .app-input-row {
    padding: 10px 12px;
    min-height: 44px; /* Better touch targets for iPad */
  }

  .form-control,
  .form-select {
    font-size: var(--mo-font-base);
    padding: 0.625rem 0.875rem;
    min-height: 44px;
  }

  /* Buttons */
  .btn {
    padding: 0.625rem 1.25rem;
    font-size: var(--mo-font-base);
    min-height: 44px;
  }

  .btn-sm {
    padding: 0.5rem 1rem;
    font-size: var(--mo-font-sm);
    min-height: 38px;
  }

  /* Tables */
  .app-table,
  .scan-table {
    font-size: var(--mo-font-base);
  }

  .app-table td,
  .scan-table td {
    padding: 10px 12px;
  }

  /* Section titles */
  .app-section-title {
    font-size: var(--mo-font-xs);
  }

  /* Search wrap */
  .search-wrap {
    padding: 0.5rem;
  }

  .search-wrap input {
    font-size: var(--mo-font-base);
    padding: 0.625rem 0.875rem;
  }

  /* Progress bars */
  .progress {
    height: 12px;
  }

  /* Dashboard cards */
  .dash-card {
    padding: 1.5rem;
  }

  .dash-icon {
    width: 52px;
    height: 52px;
    font-size: 1.4rem;
  }

  /* Row tiles */
  .app-row-tile,
  .row-tile {
    padding: 14px 16px;
  }

  /* Job cards */
  .job-card {
    padding: 1.5rem;
  }

  /* Time cards */
  .time-card {
    padding: 1.5rem;
  }

  /* Cycle strip */
  .cycle-strip {
    padding: 12px;
  }

  .cycle-input {
    height: 40px;
    font-size: var(--mo-font-base);
  }

  /* Modal adjustments */
  .modal-dialog {
    max-width: 90%;
  }

  .modal-body {
    padding: 1.5rem;
  }

  /* Accordion headers */
  .accordion-header-mould {
    padding: 1rem 1.25rem;
  }

  /* Tab bar */
  .tab-bar a {
    padding: 8px 18px;
    font-size: var(--mo-font-base);
  }

  /* Action items */
  .action-item {
    padding: 12px 16px;
  }

  /* Storage grid */
  #storageGrid {
    padding: 12px;
  }

  .storage-square {
    min-height: 24px;
  }
}

/* iPad Pro & Large Tablets (1024px+) */
@media screen and (min-width: 1024px) {
  :root {
    /* Desktop-appropriate font sizes */
    --mo-font-xs: 0.875rem;      /* 14px */
    --mo-font-sm: 1rem;          /* 16px */
    --mo-font-base: 1.125rem;    /* 18px */
    --mo-font-md: 1.375rem;      /* 22px */
    --mo-font-lg: 1.5rem;        /* 24px */
    --mo-font-xl: 1.75rem;       /* 28px */
  }

  body {
    font-size: var(--mo-font-base);
  }

  /* Header adjustments */
  .app-topbar {
    padding: 1.25rem 2rem;
  }

  .app-brand-mark {
    width: 44px;
    height: 44px;
  }

  /* Menu adjustments */
  .app-menu-canvas {
    width: 360px;
  }

  .app-menu-item {
    padding: 14px 18px;
    font-size: var(--mo-font-base);
  }

  .app-menu-item i {
    font-size: 1.3rem;
  }

  /* Card spacing */
  .app-card {
    padding: 2rem;
  }

  .card-box {
    padding: 2rem;
  }

  /* Form inputs */
  .app-input-row {
    padding: 12px 16px;
    min-height: 48px;
  }

  .form-control,
  .form-select {
    font-size: var(--mo-font-base);
    padding: 0.75rem 1rem;
    min-height: 48px;
  }

  /* Buttons */
  .btn {
    padding: 0.75rem 1.5rem;
    font-size: var(--mo-font-base);
    min-height: 48px;
  }

  .btn-sm {
    padding: 0.625rem 1.25rem;
    font-size: var(--mo-font-sm);
    min-height: 42px;
  }

  /* Tables */
  .app-table,
  .scan-table {
    font-size: var(--mo-font-base);
  }

  .app-table td,
  .scan-table td {
    padding: 12px 16px;
  }

  /* Section titles */
  .app-section-title {
    font-size: var(--mo-font-xs);
  }

  /* Search wrap */
  .search-wrap {
    padding: 0.625rem;
  }

  .search-wrap input {
    font-size: var(--mo-font-base);
    padding: 0.75rem 1rem;
  }

  /* Progress bars */
  .progress {
    height: 14px;
  }

  /* Dashboard cards */
  .dash-card {
    padding: 2rem;
  }

  .dash-icon {
    width: 56px;
    height: 56px;
    font-size: 1.5rem;
  }

  /* Row tiles */
  .app-row-tile,
  .row-tile {
    padding: 16px 20px;
  }

  /* Job cards */
  .job-card {
    padding: 2rem;
  }

  /* Time cards */
  .time-card {
    padding: 2rem;
  }

  /* Cycle strip */
  .cycle-strip {
    padding: 14px;
  }

  .cycle-input {
    height: 44px;
    font-size: var(--mo-font-base);
  }

  /* Modal adjustments */
  .modal-dialog {
    max-width: 85%;
  }

  .modal-body {
    padding: 2rem;
  }

  /* Accordion headers */
  .accordion-header-mould {
    padding: 1.25rem 1.5rem;
  }

  /* Tab bar */
  .tab-bar a {
    padding: 10px 20px;
    font-size: var(--mo-font-base);
  }

  /* Action items */
  .action-item {
    padding: 14px 18px;
  }

  /* Storage grid */
  #storageGrid {
    padding: 16px;
  }

  .storage-square {
    min-height: 28px;
  }

  /* Container max-width for better readability */
  .container-fluid {
    max-width: 1400px;
    margin: 0 auto;
  }

  /* Card list grid adjustments */
  .card-list {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
  }

  /* Better spacing for larger screens */
  main.container-fluid {
    padding: 2rem;
  }
}

  /* iPad Landscape Orientation Specific */
@media screen and (min-width: 1024px) and (orientation: landscape) {
  /* Optimize for landscape iPad */
  .card-list {
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  }

  /* Wider modals in landscape */
  .modal-dialog.modal-lg {
    max-width: 900px;
  }

  .modal-dialog.modal-xl {
    max-width: 1200px;
  }
}

/* Additional iPad-specific improvements */
@media screen and (min-width: 768px) {
  /* Better spacing for iPad */
  .container-fluid {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  /* Improved touch targets */
  .btn-link,
  .app-menu-item,
  .action-item,
  .row-tile,
  .app-row-tile {
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  /* Better form spacing */
  .form-label {
    margin-bottom: 0.5rem;
    font-size: var(--mo-font-sm);
  }

  /* Improved card spacing */
  .card-list {
    gap: 1.25rem;
  }

  /* Better table readability */
  .app-table th,
  .scan-table th {
    font-size: var(--mo-font-sm);
    font-weight: 600;
    padding: 12px;
  }

  /* Improved icon sizes */
  .bi {
    font-size: 1.1em;
  }

  /* Better offcanvas sizing */
  .offcanvas {
    max-width: 400px;
  }

  /* Improved search input */
  .search-wrap {
    min-height: 48px;
  }

  .search-btn {
    min-height: 48px;
    padding: 0.75rem 1.5rem;
  }
}

/* iPad Pro specific optimizations */
@media screen and (min-width: 1024px) {
  /* Even better spacing for iPad Pro */
  .container-fluid {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  /* Larger touch targets for iPad Pro */
  .btn-link,
  .app-menu-item,
  .action-item {
    min-height: 48px;
  }

  /* Better grid layouts */
  .card-list {
    gap: 1.5rem;
  }

  /* Improved modal sizing */
  .modal-dialog {
    margin: 1.5rem auto;
  }

  /* Better form group spacing */
  .mb-3,
  .mb-4 {
    margin-bottom: 1.5rem !important;
  }

  /* Improved section spacing */
  .app-section-title {
    margin-bottom: 1rem;
  }

  /* Better divider spacing */
  .app-divider,
  .job-divider {
    margin: 1rem 0;
  }
}
