/* Wasl: navy and cyan logistics theme, inspired by mkmadas-logistics.com.ly. */
@font-face { font-family: Tajawal; src: url('/fonts/Tajawal-Medium.ttf'); font-weight: 500; font-display: swap; }
:root {
  --navy: #1b3162;
  --navy-deep: #0d1838;
  --cyan: #15b5d5;
  --cyan-dark: #087e98;
  --ink: #1b3162;
  --muted: #5d6b82;
  --green: #1b3162;
  --light: #e8f8fc;
  --line: #dce4ef;
  --gold: #7adcf0;
  --paper: #f4f8fc;
  --shadow: 0 4px 18px #0d18380a;
  --brand-gradient: linear-gradient(135deg, #0d1838 0%, #1b3162 55%, #146d88 100%);
  font-family: Tajawal, Arial, sans-serif;
  font-size: 16px;
}
body { line-height: 1.75; -webkit-font-smoothing: antialiased; }
h1,h2,h3 { color: var(--navy); font-weight: 800; }
h1 { font-size: clamp(26px, 2.5vw, 34px); line-height: 1.5; }
h2 { font-size: 22px; line-height: 1.5; }
h3 { font-size: 18px; line-height: 1.6; }
small { font-size: 13px; }
::selection { background: #b7edf6; color: var(--navy-deep); }
.shell { grid-template-columns: 264px minmax(0,1fr); }
.sidebar { padding: 30px 20px; gap: 26px; border-color: var(--line); }
.brand { color: var(--navy); font-size: 30px; }
.brand .logo { color: var(--cyan-dark); }
.brand span { color: var(--muted); font-size: 10px; letter-spacing: 1.5px; margin-top: 5px; }
.nav a { color: var(--muted); font-size: 14px; padding: 12px 14px; border-radius: 12px; }
.nav a:hover { background: var(--paper); color: var(--navy); }
.nav a.active { background: var(--light); color: var(--navy); box-shadow: inset -3px 0 var(--cyan); }
html[dir=ltr] .nav a.active { box-shadow: inset 3px 0 var(--cyan); }
.nav a.active .icon { color: var(--cyan-dark); }
.section-label { color: var(--muted); font-size: 12px; letter-spacing: .5px; }
.sidebar-bottom { background: var(--brand-gradient); color: white; border: 0; border-radius: 18px; padding: 20px; }
.sidebar-bottom p { color: #d9e6f5; font-size: 13px; }
.sidebar-bottom .text-link { color: var(--gold); }
.topbar { height: 84px; background: #ffffffeb; border-color: var(--line); }
.avatar { color: var(--navy); background: var(--light); }
.topbar .user small { font-size: 12px; }
.content { padding: 30px 36px 48px; max-width: 1480px; }
.page-head { margin-bottom: 28px; }
.page-head p { font-size: 14px; }
.btn { min-height: 50px; border-radius: 50px; padding: 12px 23px; font-size: 14px; font-weight: 700; background: var(--navy); color: white; border: 1px solid transparent; }
.btn:hover { background: #22407e; box-shadow: 0 6px 20px #1b31621c; }
.btn.secondary { color: var(--navy); background: white; border: 1px solid var(--line); }
.btn.secondary:hover { border-color: var(--cyan-dark); background: var(--light); }
.btn.gold { background: linear-gradient(135deg,#15b5d5,#0e97b4); color: var(--navy-deep); box-shadow: 0 8px 26px #15b5d52e; }
.btn.small { min-height: 44px; padding: 9px 16px; font-size: 13px; border-radius: 50px; }
.btn.danger { background: #fae8e6; color: var(--red); }
.icon-btn { min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }
.btn.icon-btn { background: transparent; color: var(--navy); border: 0; padding: 10px; }
.hero .btn.icon-btn,.shipment-hero .btn.icon-btn { color: white; }
button:focus-visible,a:focus-visible,input:focus,select:focus,textarea:focus { outline: 3px solid var(--cyan-dark); outline-offset: 3px; }
.text-link { color: var(--cyan-dark); font-size: 14px; font-weight: 700; text-decoration: none; }
.hero { background: var(--brand-gradient); border-radius: 26px; box-shadow: 0 16px 40px #0d18381a; }
.hero h2 { color: white; font-size: 34px; line-height: 1.5; }
.hero h2 .hero-accent { color: var(--gold); }
.hero p { color: #d9e6f5; font-size: 16px; line-height: 1.9; }
.eyebrow { color: var(--gold); font-size: 13px; font-weight: 700; letter-spacing: .8px; }
.hero .eyebrow { display: inline-flex; padding: 7px 15px; border: 1px solid #7adcf045; border-radius: 50px; background: #15b5d510; }
.hero .btn.secondary { color: white; background: #ffffff08; border: 1px solid #ffffff70; }
.hero .btn.secondary:hover { background: #ffffff18; }
.hero-badge { border-radius: 50px; color: #e4f8fd; background: #ffffff0d; }
.hero-art > svg circle { stroke: var(--cyan); }
.hero-art > svg path[fill] { fill: var(--cyan); }
.hero-art > svg path[stroke="#895243"] { stroke: var(--navy); }
.hero-art > svg text:last-of-type { fill: var(--gold); }
.hero-art > svg circle[fill] { fill: var(--gold); }
.public-header { padding: 20px max(30px,calc((100vw - 1200px)/2)); border-bottom: 1px solid var(--line); }
.public-header nav { font-size: 14px; font-weight: 700; }
.public-header nav > a:not(.btn):hover { color: var(--cyan-dark); }
.public-content { max-width: 1280px; padding: 40px 30px 60px; }
.public-content .hero { min-height: 480px; grid-template-columns: 1.2fr 1fr; }
.public-content .hero-copy { padding: 52px 44px; }
.public-content .hero h2 { font-size: clamp(34px,3.3vw,48px); max-width: 620px; font-weight: 800; }
.public-content .hero p { margin-block: 20px 26px; }
.public-content .hero-copy > .btn { margin-block: 4px; }
.steps { gap: 22px; margin: 30px 0 48px; }
.step { padding: 28px; border-radius: 22px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.step .num { display: none; }
.step .service-icon { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 18px; background: var(--light); color: var(--cyan-dark); margin-bottom: 20px; }
.step .service-icon .icon { width: 28px; height: 28px; }
.step p { font-size: 14px; }
.shipment-feature { display: flex; align-items: center; justify-content: space-between; padding: 32px; gap: 28px; min-height: 220px; }
.shipment-feature .hero-copy { padding: 0; }
.shipment-feature .feature-icon { width: 90px; height: 90px; stroke: var(--gold); opacity: .85; }
.shipment-feature .btn { color: var(--navy-deep); background: var(--cyan); }
.stats { gap: 18px; }
.stat { border: 1px solid var(--line); border-radius: 18px; padding: 24px; align-items: center; box-shadow: var(--shadow); }
.stat strong { color: var(--navy); font-size: 34px; line-height: 1.5; }
.stat small { font-size: 14px; }
.stat-icon { background: var(--light); color: var(--cyan-dark); border-radius: 16px; width: 48px; height: 48px; }
.panel { border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); }
.panel-head { padding: 24px; }
.panel-head h2 { font-size: 21px; }
.panel.pad,.warehouse-card { padding: 26px; }
.grid { gap: 24px; }
table { font-size: 14px; }
th { background: var(--paper); color: var(--muted); font-size: 13px; padding: 16px 22px; }
td { padding: 20px 22px; border-color: var(--line); }
td .sub { font-size: 12px; margin-top: 6px; }
tbody tr:hover { background: #f8fcfe; }
.badge { font-size: 12px; padding: 6px 10px; border-radius: 8px; background: #e5f5ec; color: #14765b; }
.badge.warn { background: #fff0d4; color: #895200; }
.badge.info { background: var(--light); color: var(--cyan-dark); }
.badge.gray { background: #edf1f6; color: var(--muted); }
.field { font-size: 14px; gap: 8px; margin-bottom: 20px; }
.field input,.field select,.field textarea,input.search { min-height: 52px; border-color: var(--line); border-radius: 12px; padding: 13px 16px; }
.field input[type=checkbox],.parcel-choice input { accent-color: var(--cyan-dark); }
.form-grid { gap: 0 20px; }
.help,.empty p,.warning { font-size: 14px; }
.row { font-size: 14px; }
.address-block { background: var(--paper); font-size: 14px; border-radius: 14px; border: 1px solid #e6edf5; padding: 18px; }
.flag { background: var(--light); border-radius: 14px; flex-shrink: 0; }
.warehouse-top { margin-bottom: 20px; }
.warehouse-top small { font-size: 13px; }
.track,.quote-result,.route-info { background: var(--light); border: 1px solid #cfeaf2; border-radius: 18px; }
.quote-result .total { color: var(--navy); }
.message { background: var(--paper); border-radius: 16px; font-size: 15px; }
.message.staff,.notification.unread { background: var(--light); }
.notification p { font-size: 15px; }
.empty { padding: 48px 24px; }
.parcel-choice { border-radius: 16px; padding: 18px; background: white; }
.parcel-choice:has(input:checked) { border-color: var(--cyan-dark); background: var(--light); }
dialog { background: var(--paper); border: 1px solid var(--line); border-radius: 26px; padding: 28px; box-shadow: 0 30px 80px #0d183838; }
dialog::backdrop { background: #0d183880; }
.modal-head h2 { font-size: 24px; }
.modal-actions { flex-wrap: wrap; }
#toast { background: var(--navy-deep); font-size: 15px; }
.auth-page { max-width: 540px; border-top: 4px solid var(--cyan); }
.footer { font-size: 12px; border-top: 1px solid var(--line); margin-top: 30px; }
.searchbar { margin-bottom: 24px; }
dialog.shipment-dialog { font-family: inherit; }
dialog.shipment-dialog,.shipment-dialog .modal-head,.shipment-actions { background: var(--paper); color: var(--ink); }
.shipment-hero { background: var(--brand-gradient); border-radius: 22px; }
.shipment-hero h2 { color: white; }
.shipment-state-icon { color: var(--navy-deep); background: var(--cyan); }
.shipment-hero p,.shipment-hero small,.shipment-hero .icon-btn { color: #d9e6f5; }
.shipment-route p,.journey-event { color: var(--muted); }
.shipment-route p { border-color: var(--line); }
.journey-event:before { background: var(--line); }
.journey-event.current { background: var(--light); color: var(--ink); }
.journey-dot { border-color: var(--line); background: var(--cyan-dark); }
.current .journey-dot { background: var(--cyan-dark); }
.shipment-experience summary { color: var(--cyan-dark); }
.shipment-actions .btn { border-radius: 50px; }
.shipment-actions .secondary { color: var(--navy); background: white; border: 1px solid var(--line); }
.list-tools { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 20px; }
.list-tools button { border-radius: 50px; padding: 10px 16px; min-height: 44px; background: transparent; color: var(--navy); font-weight: 700; }
.list-tools button[aria-pressed=true] { background: var(--light); }
.result-count { color: var(--muted); font-size: 13px; margin-bottom: 12px; }
.booking-progress { padding: 16px; background: var(--light); color: var(--navy); border-radius: 14px; margin-bottom: 24px; font-weight: 700; word-spacing: 4px; }
section[hidden] { display: none!important; }
.operation-stat { border-radius: 18px; box-shadow: var(--shadow); }
.operation-queues button[aria-pressed=true] { background: var(--navy); border-color: var(--navy); box-shadow: inset 0 -3px var(--cyan); }
.operation-toolbar { background: #edf9fc; }
.operation-table td:last-child .btn { display: flex; width: 100%; white-space: normal; text-align: center; }
.trip-card progress { accent-color: var(--cyan-dark); }
.trip-overview { border: 1px solid #cfeaf2; }
.trip-scanner { border-color: var(--cyan-dark); }
html { scrollbar-gutter: stable; }
@media(max-width:1100px) {
 .shell { grid-template-columns: 230px minmax(0,1fr); }
 .content { padding: 24px; }
 .stat { padding: 18px; }
 .stat-icon { display: none; }
}
@media(max-width:780px) {
 .shell { display: block; }
 .content { padding: 24px 18px; }
 .sidebar { width: 280px; }
 .topbar { padding: 0 18px; }
 .page-head { flex-wrap: wrap; }
 .page-head h1 { font-size: 26px; }
 .hero h2 { font-size: 28px; }
 .shipment-feature { padding: 24px; min-height: 200px; }
 .shipment-feature .feature-icon { display: none; }
 .stat { padding: 20px; }
 .stat strong { font-size: 30px; }
 .stat small { font-size: 13px; }
 .public-header { padding: 18px; flex-wrap: wrap; gap: 12px; }
 .public-header nav { margin-inline-start: auto; }
 .public-header nav a[href="#login"] { display: inline-flex; }
 .public-content { padding: 24px 16px 40px; }
 .public-content .hero { grid-template-columns: 1fr; min-height: auto; }
 .public-content .hero-copy { padding: 32px 24px; }
 .public-content .hero h2 { font-size: 34px; }
 .public-content .hero p { font-size: 15px; }
 .panel-head { padding: 20px; }
 .panel-head h2 { font-size: 20px; }
 .row { flex-wrap: wrap; }
 .shipment-cities { gap: 12px; }
 .shipment-actions { gap: 10px; }
 .shipment-actions .btn { padding-inline: 12px; }
}
@media(max-width:480px) {
 .topbar > .row { margin: 0; flex-wrap: nowrap; }
 .topbar > .row > .muted { display: none; }
 .topbar { height: 72px; gap: 8px; }
 .topbar .actions { gap: 4px; }
 .topbar .btn.small { padding-inline: 12px; }
 .mobile-menu { display: inline-flex; background: transparent; color: var(--ink); padding: 8px; }
 .public-header .brand span { font-size: 9px; }
 .public-content .hero-copy > .btn { width: 100%; }
}
@media(prefers-reduced-motion:no-preference) {
 .nav a,.btn,.list-tools button { transition: background-color 160ms ease,box-shadow 160ms ease,color 160ms ease; }
 #booking-parcels:not([hidden]),#booking-delivery:not([hidden]) { animation: wasl-panel-in 150ms ease-out; }
 @keyframes wasl-panel-in { from { opacity: 0; } to { opacity: 1; } }
}
@media(prefers-reduced-motion:reduce) { * { scroll-behavior: auto!important; animation: none!important; transition: none!important; } }
@media print {
 .invoice,.invoice h2,.invoice strong { color: black; }
 dialog[open] { background: white; box-shadow: none; }
}

.public-toggle { display:none; }
.stat { text-align:start; color:var(--ink); }
.operation-summary { gap:8px; margin-bottom:12px; }
.operation-stat { flex-direction:row; align-items:center; gap:10px; padding:8px 14px; }
.operation-stat strong { font-size:24px; }
.operation-search { padding:12px 16px; margin-bottom:10px; }
.operation-queues { display:inline-flex; vertical-align:middle; margin:0 0 10px; padding:0; }
.operation-queue-picker { display:inline-flex; flex-direction:row; align-items:center; margin:0 8px 10px; }
.operation-queue-picker select { min-height:42px; width:auto; padding:6px; }
.operation-list .panel-head { padding:12px 18px; }
.operation-toolbar { padding-block:6px; }
@media(max-width:780px){
 .public-toggle { display:inline-flex; margin-inline-start:auto; }
 .public-header nav { display:none; }
 .public-header.expanded nav { display:flex; width:100%; flex-wrap:wrap; }
 .public-header.expanded nav a { display:inline-flex; align-items:center; min-height:44px; }
}
@media(max-width:600px){.operation-queues{display:none}.operation-queue-picker{display:flex;margin-inline:0}.operation-stat{padding:8px}.operation-stat strong{font-size:22px}}

.field .customer-code-entry { display:flex; align-items:center; gap:.35rem; padding-inline-start:1rem; border:1px solid #d5e0ef; border-radius:12px; background:white; }
.field .customer-code-entry:focus-within { outline:2px solid #276985; }
.field .customer-code-entry input { min-width:0; flex:1; padding-inline-start:0; text-align:left; border:0; outline:0; box-shadow:none; }
#intake-name:empty { display:none; }

.fcl-facts { display:grid; grid-template-columns:repeat(auto-fit,minmax(11rem,1fr)); gap:1rem; margin:1rem 0; }
.fcl-facts dt { font-size:.88rem; color:#506078; }
.fcl-facts dd { margin:0; overflow-wrap:anywhere; font-weight:600; }
.field[hidden] { display:none; }
