/* ════════════════════════════════════════════════════════════════
   MOJRO DESIGN TOKENS — Rate Card & Surcharge prototype
   Authored from the project design spec + PNG references.
   These mirror the tokens the host TMS app injects, so every flow
   renders faithfully on its own.
   ════════════════════════════════════════════════════════════════ */
:root{
  /* Type */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Text */
  --color-text-primary:   #1F2328;
  --color-text-secondary: #6B7280;

  /* Surfaces */
  --color-background-primary:   #FFFFFF;   /* cards, rows, modals */
  --color-background-secondary: #F4F5F6;   /* fills, hovers, chips */

  /* Borders — used at 0.5px throughout, no drop shadows */
  --color-border-secondary: #D5D8DC;
  --color-border-tertiary:  #E7E9EC;

  /* Status (semantic) — from the spec palette */
  --color-background-success: #DCFCE7;  --color-text-success: #166534;
  --color-background-warning: #FEF3C7;  --color-text-warning: #B45309;
  --color-background-info:    #EFF6FF;  --color-text-info:    #1D4ED8;  --color-border-info: #BFDBFE;
  --color-background-danger:  #FEE2E2;  --color-text-danger:  #991B1B;

  /* Brand accent */
  --mojro-orange:      #E87722;
  --mojro-orange-dark: #D06518;
  --mojro-orange-tint: #FFF5EE;

  /* Radii */
  --border-radius-md: 8px;
  --border-radius-lg: 12px;

  /* Prototype canvas */
  --proto-canvas: #F0F1F3;
  --proto-nav:    #20242B;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family:var(--font-sans);
  color:var(--color-text-primary);
  background:var(--proto-canvas);
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}

/* ── Prototype top nav (the only chrome — a prototype affordance, not the Mojro app shell) ── */
.proto-nav{
  position:sticky;top:0;z-index:200;
  display:flex;align-items:center;gap:14px;
  height:46px;padding:0 16px;
  background:var(--proto-nav);
  color:#E9EAEC;
  font-family:var(--font-sans);
}
.proto-brand{display:flex;align-items:center;gap:9px;font-size:12px;font-weight:500;letter-spacing:.01em;white-space:nowrap}
.proto-brand .dotmark{width:18px;height:18px;border-radius:5px;background:var(--mojro-orange);display:flex;align-items:center;justify-content:center;font-size:10px;font-weight:700;color:#fff}
.proto-brand .tag{font-size:10px;text-transform:uppercase;letter-spacing:.1em;color:#8B9099;padding-left:9px;border-left:1px solid #3A3F47}
.proto-flows{display:flex;align-items:center;gap:2px;margin-left:6px;overflow-x:auto;scrollbar-width:none}
.proto-flows::-webkit-scrollbar{display:none}
.proto-link{
  padding:5px 11px;border-radius:7px;font-size:12px;line-height:1;cursor:pointer;
  color:#B7BBC2;white-space:nowrap;text-decoration:none;border:none;background:transparent;
  font-family:var(--font-sans);transition:background .12s,color .12s;
}
.proto-link:hover{background:#2C313A;color:#fff}
.proto-link.on{background:var(--mojro-orange);color:#fff}
.proto-home{margin-left:auto;display:flex;align-items:center;gap:6px;font-size:12px;color:#B7BBC2;text-decoration:none;padding:5px 10px;border-radius:7px}
.proto-home:hover{background:#2C313A;color:#fff}

/* The content region each flow renders into — emulates the app content area, no app chrome */
.proto-canvas{max-width:1320px;margin:0 auto;padding:0 28px 56px}

/* Inline-SVG icons (icons.js) */
.m-icon{display:inline-flex;align-items:center;justify-content:center;line-height:0;flex-shrink:0}
.m-icon .m-svg{display:block;width:1em;height:1em}
.ti{display:inline-flex;align-items:center;justify-content:center;line-height:0}

/* Shared focus-ring suppression to match the flat product look */
:focus{outline:none}
