/* JS Butt International — Travel Agency Manager
   Theme: royal blue #2e3192 + black + white, cream footer (agency website theme).
   Mobile rule: wide tables scroll INSIDE their own box; the page never widens. */

:root{
  --blue:#2e3192; --blue-dark:#232670; --sky:#3f51c9;
  --ink:#141414; --muted:#6b7280; --line:#e3e5f0;
  --bg:#f4f5fa; --cream:#f7f1e5; --wa:#1faa55;
  --red:#c0392b; --amber:#b7791f; --green:#1e7d46;
  --radius:10px;
}
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{font-family:'Roboto',Arial,sans-serif;background:var(--bg);color:var(--ink);font-size:15px;line-height:1.45}
a{color:var(--blue);text-decoration:none}
a:hover{text-decoration:underline}
img{max-width:100%}
.container{max-width:1200px;margin:0 auto;padding:0 16px}
h1,h2,h3{font-family:'Roboto Slab',serif;color:var(--ink);margin:0 0 6px}
.eyebrow{text-transform:uppercase;letter-spacing:.12em;color:var(--blue);font-weight:700;font-size:12px;margin-bottom:2px}
.muted{color:var(--muted)}
.small{font-size:13px}
.right{text-align:right}
.nowrap{white-space:nowrap}

/* ---- top black contact band ---- */
.topband{background:#0d0d0d;color:#e8e8e8;font-size:13px}
.topband-in{display:flex;justify-content:space-between;gap:12px;padding:6px 16px;flex-wrap:wrap}
.topband a{color:#e8e8e8;margin-left:14px;white-space:nowrap}
.tb-right{margin-left:auto}

/* ---- slanted blue welcome strip ---- */
.welcome-strip{background:var(--blue);color:#fff;position:relative;overflow:hidden}
.welcome-strip::after{content:"";position:absolute;top:0;right:-30px;width:180px;height:100%;
  background:var(--blue-dark);transform:skewX(-24deg)}
.welcome-in{position:relative;z-index:1;display:flex;justify-content:space-between;gap:12px;
  padding:8px 16px;font-weight:500;flex-wrap:wrap}
.welcome-in a{color:#fff;text-decoration:underline}
.welcome-user{font-weight:400}

/* ---- white header with logo ---- */
.site-header{background:#fff;border-bottom:1px solid var(--line)}
.header-in{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 16px;flex-wrap:wrap}
.brand{display:flex;align-items:center;gap:12px;color:var(--ink)}
.brand:hover{text-decoration:none}
.brand-logo{height:52px;width:auto}
.brand-name{display:block;font-family:'Roboto Slab',serif;font-weight:700;font-size:20px;line-height:1.1}
.brand-tag{display:block;color:var(--muted);font-size:13px}

/* ---- nav ---- */
.mainnav{background:var(--blue)}
.nav-in{display:flex;flex-wrap:wrap;gap:2px;padding:0 16px}
.mainnav a{color:#fff;padding:11px 14px;font-weight:500;border-bottom:3px solid transparent}
.mainnav a:hover{text-decoration:none;background:var(--blue-dark)}
.mainnav a.active{border-bottom-color:#fff;background:var(--blue-dark)}

/* ---- mobile hamburger + side drawer (all options live here on phones) ---- */
.hamburger{display:none;background:var(--blue);border:1px solid var(--blue);border-radius:8px;
  width:44px;height:40px;padding:9px 10px;cursor:pointer;flex-direction:column;justify-content:space-between}
.hamburger span{display:block;height:3px;background:#fff;border-radius:2px}
.drawer-overlay{display:none;position:fixed;inset:0;background:rgba(10,10,30,.5);z-index:998}
.drawer{position:fixed;top:0;left:-290px;width:272px;max-width:84vw;height:100%;height:100dvh;overflow-y:auto;
  background:var(--blue);z-index:999;padding:14px 14px 22px;transition:left .25s ease;
  display:flex;flex-direction:column;gap:4px;box-shadow:2px 0 18px rgba(0,0,0,.25)}
.drawer-head{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:12px}
.drawer-logo{height:44px;width:auto;background:#fff;border-radius:8px;padding:4px 8px}
.drawer-close{background:transparent;border:none;color:#fff;font-size:28px;line-height:1;cursor:pointer;padding:2px 6px}
.drawer-new{background:#fff;color:var(--blue);font-weight:700;border-radius:8px;padding:11px 14px;margin-bottom:10px;text-align:center}
.drawer-new:hover{text-decoration:none;background:#eef2ff}
.drawer-link{color:#fff;padding:11px 14px;border-radius:8px;font-weight:500;border-left:3px solid transparent}
.drawer-link:hover{text-decoration:none;background:var(--blue-dark)}
.drawer-link.active{background:var(--blue-dark);border-left-color:#fff}
.drawer-logout{margin-top:12px;border-top:1px solid rgba(255,255,255,.25);border-radius:0 0 8px 8px}
body.menu-open{overflow:hidden}
body.menu-open .drawer{left:0}
body.menu-open .drawer-overlay{display:block}

/* ---- layout ---- */
.page-main{padding:22px 16px 34px}
.page-head{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:16px}
.card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:18px;margin-bottom:18px}
.card h3{font-size:17px}

/* ---- flashes ---- */
.flash{border-radius:8px;padding:11px 14px;margin-bottom:14px;border:1px solid}
.flash-success{background:#e9f7ee;border-color:#bfe6cc;color:#14532d}
.flash-error{background:#fdeeee;border-color:#f3c2c2;color:#7f1d1d}
.flash-info{background:#eef2ff;border-color:#ccd6ff;color:#1e2a6e}

/* ---- KPI cards ---- */
.kpi-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:14px;margin-bottom:18px}
.kpi{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:16px;border-top:4px solid var(--blue)}
.kpi .k-label{text-transform:uppercase;font-size:12px;letter-spacing:.08em;color:var(--muted);font-weight:700}
.kpi .k-value{font-family:'Roboto Slab',serif;font-size:26px;font-weight:700;margin-top:4px}
.kpi .k-sub{font-size:13px;color:var(--muted)}
.progress{height:12px;background:#e8eaf5;border-radius:99px;overflow:hidden}
.progress > div{height:100%;background:var(--blue);border-radius:99px}

/* ---- hero (dashboard) ---- */
.hero{border-radius:var(--radius);overflow:hidden;position:relative;color:#fff;margin-bottom:18px;
  background:#1b1c4d url('hero.jpg') center/cover no-repeat;min-height:190px;display:flex;align-items:flex-end}
.hero::before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(20,21,66,.88) 30%,rgba(20,21,66,.25))}
.hero-in{position:relative;z-index:1;padding:22px}
.hero h2{color:#fff;font-size:26px}
.hero p{margin:4px 0 0;color:#dfe2ff}

/* ---- destination tiles ---- */
.dest-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(165px,1fr));gap:12px}
.dest-tile{border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;background:#fff;display:block;color:var(--ink)}
.dest-tile:hover{text-decoration:none;box-shadow:0 4px 16px rgba(46,49,146,.15)}
.dest-photo{height:104px;background:linear-gradient(135deg,var(--blue),var(--sky));background-size:cover;background-position:center}
.dest-body{padding:10px 12px}
.dest-name{font-weight:700}
.dest-tag{font-size:12.5px;color:var(--muted)}
.chips{display:flex;flex-wrap:wrap;gap:8px}
.chip{border:1px solid var(--line);background:#fff;border-radius:99px;padding:6px 8px 6px 6px;display:inline-flex;align-items:center;gap:8px;cursor:pointer;font:inherit}
.chip img{width:34px;height:34px;border-radius:50%;object-fit:cover}
.chip .chip-ph{width:34px;height:34px;border-radius:50%;background:var(--blue);color:#fff;display:inline-flex;align-items:center;justify-content:center;font-weight:700}
.chip.sel{border-color:var(--blue);background:#eef2ff}

/* ---- tables: scroll inside their own box ---- */
.table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch;border:1px solid var(--line);border-radius:var(--radius);background:#fff}
table{border-collapse:collapse;width:100%;min-width:660px}
th,td{padding:10px 12px;text-align:left;border-bottom:1px solid var(--line);vertical-align:top}
th{background:#f0f1f9;font-size:13px;text-transform:uppercase;letter-spacing:.04em;color:#33365e;white-space:nowrap}
tr:last-child td{border-bottom:none}
tbody tr:hover{background:#fafbff}

/* ---- status pills ---- */
.pill{display:inline-block;padding:2px 10px;border-radius:99px;font-size:12.5px;font-weight:600;white-space:nowrap}
.pill-New{background:#e8eaf5;color:#232670}
.pill-DocumentsPending{background:#fff3d6;color:#7a5200}
.pill-Submitted{background:#e0ecff;color:#1d4ed8}
.pill-InProcess{background:#ece4ff;color:#5b21b6}
.pill-Approved{background:#dcf5e5;color:#14532d}
.pill-Rejected{background:#fde3e3;color:#7f1d1d}
.pill-Delivered{background:#d9f2f2;color:#0f4c4c}
.due{color:var(--red);font-weight:700}
.ok{color:var(--green);font-weight:600}
.warn{color:var(--amber);font-weight:600}

/* ---- buttons ---- */
.btn{display:inline-block;border:1px solid var(--blue);background:var(--blue);color:#fff;
  padding:8px 14px;border-radius:8px;font:inherit;font-weight:500;cursor:pointer;text-align:center}
.btn:hover{background:var(--blue-dark);text-decoration:none}
.btn-ghost{background:#fff;color:var(--blue)}
.btn-ghost:hover{background:#eef2ff}
.btn-wa{background:var(--wa);border-color:var(--wa);color:#fff}
.btn-wa:hover{background:#178a46}
.btn-danger{background:#fff;border-color:#e5b4b4;color:var(--red)}
.btn-danger:hover{background:#fdeeee}
.btn-sm{padding:5px 10px;font-size:13.5px;border-radius:7px}
.btn[disabled]{opacity:.55;cursor:not-allowed}
.actions{display:flex;gap:6px;flex-wrap:wrap}

/* ---- filter chips ---- */
.filters{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:14px}
.filters a{border:1px solid var(--line);background:#fff;color:var(--ink);border-radius:99px;padding:6px 13px;font-size:13.5px}
.filters a.active{background:var(--blue);border-color:var(--blue);color:#fff}

/* ---- forms ---- */
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.field{display:flex;flex-direction:column;gap:5px}
.field.full{grid-column:1/-1}
label{font-weight:600;font-size:13.5px}
input,select,textarea{font:inherit;padding:9px 11px;border:1px solid #c9ccdf;border-radius:8px;background:#fff;width:100%}
input:focus,select,textarea:focus{outline:2px solid rgba(46,49,146,.35);border-color:var(--blue)}
textarea{resize:vertical;min-height:64px}
.form-section{border-top:2px solid var(--line);margin-top:20px;padding-top:16px}
.form-section:first-child{border-top:none;margin-top:0;padding-top:0}
.switch-row{display:flex;gap:8px;margin-bottom:14px;flex-wrap:wrap}
.switch-row .chip{font-weight:600}
.switch-row .chip.sel{background:var(--blue);color:#fff;border-color:var(--blue)}
.help{font-size:13px;color:var(--muted)}
.inline-form{display:inline}

/* ---- login ---- */
.login-wrap{max-width:420px;margin:6vh auto;padding:0 16px}
.login-card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:26px;text-align:left}
.login-card .brand-logo{height:56px}
.login-head{text-align:center;margin-bottom:18px}

/* ---- lists ---- */
.attn-list{margin:0;padding-left:18px}
.attn-list li{margin-bottom:6px}
.method-row{display:flex;justify-content:space-between;padding:7px 0;border-bottom:1px dashed var(--line)}
.method-row:last-child{border-bottom:none}

/* ---- footer ---- */
.site-footer{background:var(--cream);border-top:1px solid #eadfc8;margin-top:10px}
.footer-in{display:flex;gap:26px;flex-wrap:wrap;padding:26px 16px}
.footer-logo{height:48px;width:auto}
.footer-tag{color:var(--muted);max-width:320px}
.footer-reach h4{font-family:'Roboto Slab',serif;margin:0 0 8px;text-transform:uppercase;letter-spacing:.06em}
.footer-reach p{margin:0 0 6px;color:#3f3a2e}
.footer-bottom{background:#0d0d0d;color:#cfcfcf;font-size:13px;padding:10px 0}

/* ---- receipt ---- */
.receipt{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:26px;max-width:820px;margin:0 auto}
.receipt-head{display:flex;gap:16px;align-items:center;border-bottom:3px solid var(--blue);padding-bottom:14px;margin-bottom:16px;flex-wrap:wrap}
.receipt-head img{height:56px;width:auto}
.receipt table{min-width:0}
.receipt table th{background:#fff;text-transform:none;letter-spacing:0;font-size:14px}

/* ---- responsive ---- */
@media (max-width:760px){
  .form-grid{grid-template-columns:1fr}
  .tb-hide-sm{display:none}
  .mainnav{display:none}
  .hamburger{display:inline-flex}
  .header-in > .btn{display:none}
  .topband{font-size:12.5px}
  .brand-name{font-size:17px}
  .brand-logo{height:42px}
  .hero h2{font-size:21px}
  .page-main{padding:16px 12px 28px}
  .container{padding:0 12px}
  .topband-in,.welcome-in,.nav-in,.footer-in{padding-left:12px;padding-right:12px}
  th,td{padding:8px 9px}
}

/* ---- print (receipt) ---- */
@media print{
  .topband,.welcome-strip,.site-header,.mainnav,.site-footer,.no-print,.flash,.hamburger,.drawer,.drawer-overlay{display:none !important}
  body{background:#fff}
  .page-main{padding:0}
  .container{max-width:none;padding:0}
  .receipt{border:none;border-radius:0;max-width:none;padding:0}
  .site-header{border-bottom:none}
}
