/* =============================================================
   MaxTrack Portal — Master Stylesheet
   File: maxtrack.css
   Link in every page: <link rel="stylesheet" href="maxtrack.css">
   ============================================================= */

/* ── Google Fonts ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500;600;700&family=DM+Mono:wght@400;500&display=swap');

/* ── Design Tokens ────────────────────────────────────────── */
:root {
  /* Brand */
  --orange:          #FF3A00;
  --orange-dark:     #CC2E00;
  --orange-light:    #FF6A40;
  --orange-pale:     #FFF0EC;
  --orange-mid:      #FFD5C8;

  /* Neutrals */
  --white:           #FFFFFF;
  --gray-50:         #F8F8F8;
  --gray-100:        #F2F2F2;
  --gray-200:        #E5E5E5;
  --gray-300:        #D4D4D4;
  --gray-400:        #A3A3A3;
  --gray-500:        #737373;
  --gray-600:        #525252;
  --gray-700:        #404040;
  --gray-800:        #262626;
  --gray-900:        #171717;
  --black:           #0D0D0D;

  /* Semantic colours */
  --text-primary:    #1A1A1A;
  --text-secondary:  #525252;
  --text-muted:      #A3A3A3;
  --text-inverse:    #FFFFFF;

  --bg-page:         #F5F5F5;
  --bg-card:         #FFFFFF;
  --bg-subtle:       #F8F8F8;

  --border:          #E5E5E5;
  --border-strong:   #D4D4D4;

  /* Status colours */
  --green:           #16A34A;
  --green-bg:        #F0FDF4;
  --green-border:    #BBF7D0;

  --blue:            #2563EB;
  --blue-bg:         #EFF6FF;
  --blue-border:     #BFDBFE;

  --amber:           #D97706;
  --amber-bg:        #FFFBEB;
  --amber-border:    #FDE68A;

  --red:             #DC2626;
  --red-bg:          #FEF2F2;
  --red-border:      #FECACA;

  /* Typography */
  --font-sans:       'DM Sans', sans-serif;
  --font-mono:       'DM Mono', monospace;

  /* Spacing */
  --radius-sm:       4px;
  --radius:          8px;
  --radius-lg:       12px;
  --radius-xl:       16px;

  /* Shadows */
  --shadow-sm:       0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow:          0 4px 6px rgba(0,0,0,0.06), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-md:       0 10px 15px rgba(0,0,0,0.07), 0 4px 6px rgba(0,0,0,0.04);
  --shadow-lg:       0 20px 25px rgba(0,0,0,0.08), 0 8px 10px rgba(0,0,0,0.04);

  /* Transitions */
  --transition:      all 0.18s ease;
}

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 15px; -webkit-font-smoothing: antialiased; }

body {
  font-family:  var(--font-sans);
  font-size:    0.9rem;
  line-height:  1.6;
  color:        var(--text-primary);
  background:   var(--bg-page);
  min-height:   100vh;
}

a { color: var(--orange); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--orange-dark); }

img { max-width: 100%; display: block; }

/* ── Layout Shell ─────────────────────────────────────────── */
.mt-shell {
  display:    flex;
  min-height: 100vh;
}

.mt-main {
  flex:       1;
  display:    flex;
  flex-direction: column;
  min-width:  0;
  overflow-x: hidden;
}

.mt-content {
  flex:    1;
  padding: 28px 32px;
}

/* ── Top Navigation Bar ───────────────────────────────────── */
.mt-topbar {
  background:    #1E1E1E;
  border-bottom: 2px solid var(--orange);
  height:        60px;
  display:       flex;
  align-items:   center;
  padding:       0 24px;
  gap:           20px;
  position:      sticky;
  top:           0;
  z-index:       100;
  box-shadow:    0 2px 8px rgba(0,0,0,0.35);
}

.mt-topbar-logo {
  display:     flex;
  align-items: center;
  gap:         12px;
  flex-shrink: 0;
}

/* Actual logo image — swap out the text mark */
.mt-topbar-logo .logo-img {
  height:      36px;
  width:       auto;
  display:     block;
  flex-shrink: 0;
}

/* Fallback text mark if image not yet uploaded */
.mt-topbar-logo .logo-mark {
  width:           34px;
  height:          34px;
  background:      var(--orange);
  border-radius:   var(--radius-sm);
  display:         flex;
  align-items:     center;
  justify-content: center;
  font-family:     var(--font-mono);
  font-weight:     500;
  font-size:       13px;
  color:           var(--white);
  letter-spacing:  -0.5px;
}

.mt-topbar-logo .logo-text {
  font-size:      1.05rem;
  font-weight:    700;
  color:          var(--white);
  letter-spacing: -0.3px;
  line-height:    1;
}

.mt-topbar-logo .logo-text span {
  color: var(--orange);
}

.mt-topbar-logo .logo-tagline {
  font-size:      0.65rem;
  color:          rgba(255,255,255,0.38);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight:    400;
  margin-top:     2px;
}

.mt-topbar-divider {
  width:       1px;
  height:      28px;
  background:  rgba(255,255,255,0.12);
  flex-shrink: 0;
}

.mt-topbar-account {
  font-size:   0.8rem;
  color:       rgba(255,255,255,0.5);
  font-weight: 400;
}

.mt-topbar-account strong {
  color:       rgba(255,255,255,0.85);
  font-weight: 600;
}

.mt-topbar-spacer { flex: 1; }

.mt-topbar-user {
  display:     flex;
  align-items: center;
  gap:         10px;
}

.mt-topbar-user .user-name {
  font-size:   0.85rem;
  font-weight: 600;
  color:       rgba(255,255,255,0.9);
  text-align:  right;
}

.mt-topbar-user .user-role {
  font-size:      0.68rem;
  color:          var(--orange-light);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-weight:    500;
  text-align:     right;
}

/* Logout button in topbar */
.mt-topbar-logout {
  font-family:    var(--font-sans);
  font-size:      0.75rem;
  font-weight:    500;
  color:          rgba(255,255,255,0.45);
  background:     transparent;
  border:         1px solid rgba(255,255,255,0.15);
  border-radius:  var(--radius-sm);
  padding:        4px 10px;
  cursor:         pointer;
  transition:     var(--transition);
  white-space:    nowrap;
}

.mt-topbar-logout:hover {
  color:          var(--orange-light);
  border-color:   var(--orange);
  background:     rgba(255,58,0,0.08);
}

.mt-avatar {
  width:           34px;
  height:          34px;
  background:      rgba(255,58,0,0.2);
  border:          1.5px solid var(--orange);
  border-radius:   50%;
  display:         flex;
  align-items:     center;
  justify-content: center;
  font-family:     var(--font-mono);
  font-size:       0.72rem;
  font-weight:     500;
  color:           var(--orange-light);
  flex-shrink:     0;
}

/* ── Sidebar Navigation ───────────────────────────────────── */
.mt-sidebar {
  width:         230px;
  min-width:     230px;
  background:    var(--white);
  border-right:  1px solid var(--border);
  padding:       20px 0;
  display:       flex;
  flex-direction: column;
  gap:           4px;
}

.mt-nav-section {
  padding:        16px 16px 4px;
  font-size:      0.68rem;
  font-weight:    700;
  color:          var(--text-muted);
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.mt-nav-item {
  display:     flex;
  align-items: center;
  gap:         10px;
  padding:     9px 16px;
  margin:      0 8px;
  border-radius: var(--radius);
  cursor:      pointer;
  font-size:   0.875rem;
  font-weight: 500;
  color:       var(--text-secondary);
  transition:  var(--transition);
  border:      1px solid transparent;
  text-decoration: none;
}

.mt-nav-item:hover {
  background: var(--orange-pale);
  color:      var(--orange);
  border-color: transparent;
}

.mt-nav-item.active {
  background:   var(--orange-pale);
  color:        var(--orange);
  border-color: var(--orange-mid);
  font-weight:  600;
}

.mt-nav-item .nav-icon {
  width:        14px;
  height:       14px;
  flex-shrink:  0;
  opacity:      0.5;
  stroke-width: 1.8;
}

.mt-nav-item:hover .nav-icon  { opacity: 0.85; }
.mt-nav-item.active .nav-icon { opacity: 1; }

.mt-nav-badge {
  margin-left:   auto;
  background:    var(--red-bg);
  color:         var(--red);
  border:        1px solid var(--red-border);
  font-size:     0.7rem;
  font-weight:   700;
  padding:       1px 7px;
  border-radius: 20px;
  font-family:   var(--font-mono);
}

.mt-nav-divider {
  border:        none;
  border-top:    1px solid var(--border);
  margin:        8px 16px;
}

/* ── Page Header ──────────────────────────────────────────── */
.mt-page-header {
  display:         flex;
  align-items:     flex-start;
  justify-content: space-between;
  margin-bottom:   24px;
  gap:             16px;
}

.mt-page-title {
  font-size:      1.4rem;
  font-weight:    700;
  color:          var(--gray-900);
  letter-spacing: -0.4px;
  line-height:    1.2;
}

.mt-page-subtitle {
  font-size:   0.82rem;
  color:       var(--text-muted);
  margin-top:  3px;
  font-weight: 400;
}

.mt-page-actions {
  display:     flex;
  align-items: center;
  gap:         10px;
  flex-shrink: 0;
}

/* ── Stat Cards ───────────────────────────────────────────── */
.mt-stat-row {
  display:               grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap:                   14px;
  margin-bottom:         24px;
}

.mt-stat-card {
  background:    var(--white);
  border:        1px solid var(--border);
  border-radius: var(--radius-lg);
  padding:       18px 20px;
  box-shadow:    var(--shadow-sm);
  position:      relative;
  overflow:      hidden;
  transition:    var(--transition);
}

.mt-stat-card::before {
  content:    '';
  position:   absolute;
  top:        0; left: 0; right: 0;
  height:     3px;
  background: var(--gray-200);
}

.mt-stat-card.orange::before { background: var(--orange); }
.mt-stat-card.green::before  { background: var(--green); }
.mt-stat-card.blue::before   { background: var(--blue); }
.mt-stat-card.red::before    { background: var(--red); }
.mt-stat-card.amber::before  { background: var(--amber); }

.mt-stat-card:hover {
  box-shadow:   var(--shadow-md);
  transform:    translateY(-1px);
}

.mt-stat-label {
  font-size:      0.72rem;
  font-weight:    600;
  color:          var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom:  8px;
}

.mt-stat-value {
  font-size:   1.9rem;
  font-weight: 700;
  color:       var(--gray-900);
  line-height: 1;
  font-family: var(--font-mono);
  letter-spacing: -1px;
}

.mt-stat-value.orange { color: var(--orange); }
.mt-stat-value.green  { color: var(--green); }
.mt-stat-value.blue   { color: var(--blue); }
.mt-stat-value.red    { color: var(--red); }
.mt-stat-value.amber  { color: var(--amber); }

.mt-stat-delta {
  font-size:   0.75rem;
  color:       var(--green);
  margin-top:  5px;
  font-weight: 500;
}
.mt-stat-delta.down { color: var(--red); }
.mt-stat-delta.flat { color: var(--text-muted); }

/* ── Cards / Panels ───────────────────────────────────────── */
.mt-card {
  background:    var(--white);
  border:        1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow:    var(--shadow-sm);
  margin-bottom: 20px;
}

.mt-card-header {
  display:         flex;
  align-items:     center;
  justify-content: space-between;
  padding:         16px 20px;
  border-bottom:   1px solid var(--border);
  gap:             12px;
}

.mt-card-title {
  font-size:   0.95rem;
  font-weight: 700;
  color:       var(--gray-900);
  display:     flex;
  align-items: center;
  gap:         8px;
}

.mt-card-title-dot {
  width:         8px;
  height:        8px;
  border-radius: 50%;
  background:    var(--orange);
  flex-shrink:   0;
}

.mt-card-meta {
  font-size:  0.78rem;
  color:      var(--text-muted);
  font-family: var(--font-mono);
}

.mt-card-body { padding: 20px; }

.mt-card-footer {
  padding:       14px 20px;
  border-top:    1px solid var(--border);
  background:    var(--bg-subtle);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

/* ── Tables ───────────────────────────────────────────────── */
.mt-table-wrap {
  overflow-x: auto;
}

table.mt-table {
  width:           100%;
  border-collapse: collapse;
  font-size:       0.855rem;
}

table.mt-table thead th {
  background:     var(--gray-50);
  color:          var(--text-muted);
  font-size:      0.72rem;
  font-weight:    700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding:        10px 14px;
  text-align:     left;
  border-bottom:  2px solid var(--border);
  white-space:    nowrap;
}

table.mt-table thead th:first-child { border-radius: var(--radius-sm) 0 0 0; }
table.mt-table thead th:last-child  { border-radius: 0 var(--radius-sm) 0 0; }

table.mt-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition:    background 0.12s;
}

table.mt-table tbody tr:last-child { border-bottom: none; }
table.mt-table tbody tr:hover      { background: var(--orange-pale); }

table.mt-table tbody td {
  padding:        11px 14px;
  color:          var(--text-primary);
  vertical-align: middle;
}

.td-mono {
  font-family: var(--font-mono);
  font-size:   0.82rem;
  font-weight: 500;
  color:       var(--gray-800);
}

.td-orange {
  font-family: var(--font-mono);
  font-size:   0.82rem;
  font-weight: 600;
  color:       var(--orange);
}

.td-muted { color: var(--text-muted); font-size: 0.82rem; }

/* ── Status Badges ────────────────────────────────────────── */
.mt-badge {
  display:        inline-flex;
  align-items:    center;
  gap:            5px;
  font-size:      0.72rem;
  font-weight:    600;
  padding:        3px 9px;
  border-radius:  20px;
  letter-spacing: 0.3px;
  white-space:    nowrap;
}

.mt-badge::before {
  content:       '';
  width:         6px;
  height:        6px;
  border-radius: 50%;
  flex-shrink:   0;
}

.mt-badge-delivered  { background: var(--green-bg);  color: var(--green);  border: 1px solid var(--green-border);  }
.mt-badge-delivered::before  { background: var(--green); }

.mt-badge-transit    { background: var(--blue-bg);   color: var(--blue);   border: 1px solid var(--blue-border);   }
.mt-badge-transit::before    { background: var(--blue); animation: pulse-dot 1.5s ease-in-out infinite; }

.mt-badge-pending    { background: var(--amber-bg);  color: var(--amber);  border: 1px solid var(--amber-border);  }
.mt-badge-pending::before    { background: var(--amber); }

.mt-badge-exception  { background: var(--red-bg);    color: var(--red);    border: 1px solid var(--red-border);    }
.mt-badge-exception::before  { background: var(--red); }

.mt-badge-draft      { background: var(--gray-100);  color: var(--gray-500); border: 1px solid var(--gray-200); }
.mt-badge-draft::before      { background: var(--gray-400); }

.mt-badge-confirmed  { background: var(--orange-pale); color: var(--orange); border: 1px solid var(--orange-mid); }
.mt-badge-confirmed::before  { background: var(--orange); }

.mt-badge-cancelled  { background: var(--gray-100);  color: var(--gray-500); border: 1px solid var(--gray-200); }
.mt-badge-cancelled::before  { background: var(--gray-400); }

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

/* ── Buttons ──────────────────────────────────────────────── */
.mt-btn {
  display:         inline-flex;
  align-items:     center;
  justify-content: center;
  gap:             7px;
  font-family:     var(--font-sans);
  font-size:       0.855rem;
  font-weight:     600;
  padding:         9px 18px;
  border-radius:   var(--radius);
  border:          1px solid transparent;
  cursor:          pointer;
  transition:      var(--transition);
  text-decoration: none;
  white-space:     nowrap;
  line-height:     1;
}

/* Primary */
.mt-btn-primary {
  background:   var(--orange);
  color:        var(--white);
  border-color: var(--orange);
  box-shadow:   0 1px 3px rgba(255,58,0,0.3);
}
.mt-btn-primary:hover {
  background:   var(--orange-dark);
  border-color: var(--orange-dark);
  color:        var(--white);
  box-shadow:   0 4px 8px rgba(255,58,0,0.3);
  transform:    translateY(-1px);
}

/* Secondary / outline */
.mt-btn-secondary {
  background:   var(--white);
  color:        var(--text-primary);
  border-color: var(--border-strong);
}
.mt-btn-secondary:hover {
  background:   var(--gray-50);
  border-color: var(--gray-400);
  color:        var(--text-primary);
}

/* Ghost */
.mt-btn-ghost {
  background:   transparent;
  color:        var(--text-secondary);
  border-color: transparent;
}
.mt-btn-ghost:hover {
  background:   var(--orange-pale);
  color:        var(--orange);
}

/* Danger */
.mt-btn-danger {
  background:   var(--white);
  color:        var(--red);
  border-color: var(--red-border);
}
.mt-btn-danger:hover {
  background:   var(--red-bg);
  border-color: var(--red);
}

/* Sizes */
.mt-btn-sm { padding: 5px 12px; font-size: 0.78rem; }
.mt-btn-lg { padding: 12px 24px; font-size: 0.95rem; }

/* ── Forms ────────────────────────────────────────────────── */
.mt-form-group {
  display:        flex;
  flex-direction: column;
  gap:            5px;
  margin-bottom:  16px;
}

.mt-label {
  font-size:   0.8rem;
  font-weight: 600;
  color:       var(--text-secondary);
}

.mt-label .required { color: var(--orange); margin-left: 2px; }

.mt-input,
.mt-select,
.mt-textarea {
  width:         100%;
  padding:       9px 13px;
  font-family:   var(--font-sans);
  font-size:     0.875rem;
  color:         var(--text-primary);
  background:    var(--white);
  border:        1.5px solid var(--border-strong);
  border-radius: var(--radius);
  outline:       none;
  transition:    var(--transition);
  line-height:   1.5;
}

.mt-input:focus,
.mt-select:focus,
.mt-textarea:focus {
  border-color: var(--orange);
  box-shadow:   0 0 0 3px rgba(255,58,0,0.12);
}

.mt-input::placeholder  { color: var(--text-muted); }
.mt-textarea::placeholder { color: var(--text-muted); }

.mt-textarea { resize: vertical; min-height: 90px; }

.mt-select {
  appearance:      none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23A3A3A3' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat:   no-repeat;
  background-position: right 12px center;
  padding-right:   36px;
  cursor:          pointer;
}

.mt-input-group {
  display: flex;
  gap:     10px;
}

.mt-form-grid   { display: grid; gap: 16px; }
.mt-grid-2      { grid-template-columns: 1fr 1fr; }
.mt-grid-3      { grid-template-columns: 1fr 1fr 1fr; }
.mt-grid-4      { grid-template-columns: 1fr 1fr 1fr 1fr; }

.mt-form-hint {
  font-size: 0.75rem;
  color:     var(--text-muted);
  margin-top: 3px;
}

.mt-form-error {
  font-size:   0.75rem;
  color:       var(--red);
  margin-top:  3px;
  font-weight: 500;
}

.mt-input.error  { border-color: var(--red); }
.mt-input.error:focus { box-shadow: 0 0 0 3px rgba(220,38,38,0.12); }

/* ── Section Divider ──────────────────────────────────────── */
.mt-section-label {
  font-size:      0.72rem;
  font-weight:    700;
  color:          var(--orange);
  text-transform: uppercase;
  letter-spacing: 1px;
  padding:        0 0 8px;
  border-bottom:  2px solid var(--orange-pale);
  margin-bottom:  16px;
  display:        flex;
  align-items:    center;
  gap:            8px;
}

/* ── Alerts / Notices ─────────────────────────────────────── */
.mt-alert {
  display:       flex;
  gap:           12px;
  padding:       13px 16px;
  border-radius: var(--radius);
  border:        1px solid;
  font-size:     0.855rem;
  margin-bottom: 16px;
}

.mt-alert-success { background: var(--green-bg);  color: var(--green);  border-color: var(--green-border); }
.mt-alert-error   { background: var(--red-bg);    color: var(--red);    border-color: var(--red-border);   }
.mt-alert-warning { background: var(--amber-bg);  color: var(--amber);  border-color: var(--amber-border); }
.mt-alert-info    { background: var(--blue-bg);   color: var(--blue);   border-color: var(--blue-border);  }
.mt-alert-orange  { background: var(--orange-pale); color: var(--orange); border-color: var(--orange-mid); }

/* ── Breadcrumb ───────────────────────────────────────────── */
.mt-breadcrumb {
  display:     flex;
  align-items: center;
  gap:         6px;
  font-size:   0.8rem;
  color:       var(--text-muted);
  margin-bottom: 20px;
}

.mt-breadcrumb a { color: var(--text-muted); }
.mt-breadcrumb a:hover { color: var(--orange); }
.mt-breadcrumb .sep { color: var(--gray-300); }
.mt-breadcrumb .current { color: var(--text-primary); font-weight: 500; }

/* ── Tracking Timeline ────────────────────────────────────── */
.mt-timeline { padding: 4px 0; }

.mt-tl-item {
  display:       flex;
  gap:           14px;
  padding-bottom: 20px;
  position:      relative;
}

.mt-tl-item:last-child { padding-bottom: 0; }

.mt-tl-left {
  display:        flex;
  flex-direction: column;
  align-items:    center;
  width:          20px;
  flex-shrink:    0;
}

.mt-tl-dot {
  width:         14px;
  height:        14px;
  border-radius: 50%;
  border:        2px solid var(--gray-300);
  background:    var(--white);
  flex-shrink:   0;
  z-index:       1;
}

.mt-tl-dot.done    { background: var(--green);  border-color: var(--green); }
.mt-tl-dot.active  { background: var(--orange); border-color: var(--orange);
                      box-shadow: 0 0 0 4px rgba(255,58,0,0.15); }
.mt-tl-dot.pending { background: var(--white);  border-color: var(--gray-300); }

.mt-tl-line {
  flex:       1;
  width:      2px;
  background: var(--border);
  margin:     2px 0;
  min-height: 20px;
}

.mt-tl-content { flex: 1; padding-top: 0; }

.mt-tl-event {
  font-weight: 600;
  font-size:   0.875rem;
  color:       var(--text-primary);
}

.mt-tl-meta {
  font-size:  0.78rem;
  color:      var(--text-muted);
  margin-top: 2px;
}

/* ── Login Page ───────────────────────────────────────────── */
.mt-login-page {
  min-height:      100vh;
  background:      var(--gray-50);
  display:         flex;
  align-items:     center;
  justify-content: center;
  padding:         24px;
}

.mt-login-box {
  width:         420px;
  background:    var(--white);
  border-radius: var(--radius-xl);
  box-shadow:    var(--shadow-lg);
  overflow:      hidden;
  border:        1px solid var(--border);
}

.mt-login-header {
  background:     var(--orange);
  padding:        32px 32px 28px;
  text-align:     center;
}

.mt-login-header .logo {
  font-size:      1.6rem;
  font-weight:    700;
  color:          var(--white);
  letter-spacing: -0.5px;
}

.mt-login-header .tagline {
  font-size:  0.8rem;
  color:      rgba(255,255,255,0.75);
  margin-top: 4px;
  font-weight: 400;
}

.mt-login-body { padding: 32px; }

.mt-login-footer {
  padding:    14px 32px;
  background: var(--gray-50);
  border-top: 1px solid var(--border);
  font-size:  0.75rem;
  color:      var(--text-muted);
  text-align: center;
}

/* ── Utility Classes ──────────────────────────────────────── */
.mt-flex         { display: flex; }
.mt-flex-center  { display: flex; align-items: center; justify-content: center; }
.mt-flex-between { display: flex; align-items: center; justify-content: space-between; }
.mt-flex-end     { display: flex; justify-content: flex-end; }
.mt-gap-8        { gap: 8px; }
.mt-gap-12       { gap: 12px; }
.mt-gap-16       { gap: 16px; }

.mt-text-orange  { color: var(--orange); }
.mt-text-muted   { color: var(--text-muted); }
.mt-text-sm      { font-size: 0.8rem; }
.mt-text-mono    { font-family: var(--font-mono); }
.mt-fw-600       { font-weight: 600; }
.mt-fw-700       { font-weight: 700; }

.mt-mt-0         { margin-top: 0; }
.mt-mb-0         { margin-bottom: 0; }
.mt-mb-16        { margin-bottom: 16px; }
.mt-mb-24        { margin-bottom: 24px; }

.mt-w-full       { width: 100%; }
.mt-sr-only      { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .mt-sidebar       { display: none; }
  .mt-content       { padding: 20px 16px; }
  .mt-grid-2,
  .mt-grid-3,
  .mt-grid-4        { grid-template-columns: 1fr; }
  .mt-stat-row      { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .mt-stat-row      { grid-template-columns: 1fr; }
  .mt-page-header   { flex-direction: column; }
  .mt-page-actions  { width: 100%; }
}
