/*
 * Agents' portal as a program: the same desk, menu bar, windows and grids as the tour operator's back office
 * (classic.css / suitebar.css), laid over the website components the portal shares with the storefront.
 */
body.site.agentapp {
  --desk: #E4E4E7; --face: #F4F4F5; --navy: #2B59FF; --lo: #808080; --r: 0px; --r-sm: 0px; --shadow: none;
  --text: Tahoma, Verdana, 'Segoe UI', Arial, sans-serif; --display: Tahoma, Verdana, 'Segoe UI', Arial, sans-serif;
  background: var(--desk); color: #000; font: 12px/1.4 var(--text); min-height: 100vh; display: flex; flex-direction: column;
}
.agentapp a { color: var(--navy); }
.agentapp .wrap { width: auto; max-width: none; margin: 0; padding: 0 !important; }
.agentapp main.wrap, .agentapp div.wrap { padding: 0 !important; }

/* ---- menu bar ---- */
#agbar { position: sticky; top: 0; z-index: 60; display: flex; align-items: stretch; min-height: 30px; background: #0A0A0A; color: #fff; font: 11px Tahoma, Verdana, Arial, sans-serif; padding: 0 4px; gap: 0; flex-wrap: wrap; }
#agbar a { text-decoration: none; }
#agbar .ab-brand { display: flex; align-items: center; gap: 6px; padding: 0 10px 0 4px; color: #fff; font-weight: bold; font-size: 12px; white-space: nowrap; }
#agbar .ab-brand img { height: 20px; width: auto; display: block; }
#agbar .ab-brand .ab-name { font-size: 12px; }
#agbar .ab-chip { background: #F4F4F5; color: var(--navy); padding: 0 5px; border: 1px solid; border-color: #808080 #fff #fff #808080; font-size: 10px; }
#agbar .ab-menu { position: relative; display: flex; align-items: stretch; }
#agbar .ab-title { display: flex; align-items: center; gap: 5px; padding: 0 10px; color: #fff; cursor: pointer; white-space: nowrap; border: 1px solid transparent; font-size: 11px; }
#agbar .ab-menu:hover > .ab-title, #agbar .ab-menu:focus-within > .ab-title { background: #F4F4F5; color: #000; border-color: #808080 #fff #fff #808080; }
#agbar .ab-menu.on > .ab-title { font-weight: bold; text-decoration: underline; }
#agbar .ab-drop { display: none; position: absolute; top: 100%; left: 0; min-width: 230px; background: #fff; border: 2px solid; border-color: #fff #000 #000 #fff; box-shadow: 4px 4px 10px rgba(0,0,0,.35); z-index: 70; }
#agbar .ab-menu:hover > .ab-drop, #agbar .ab-menu:focus-within > .ab-drop { display: block; }
#agbar .ab-drop a { display: block; padding: 6px 12px; color: #000; border-bottom: 1px solid #e4e4e4; white-space: nowrap; font-size: 12px; }
#agbar .ab-drop a:last-child { border-bottom: 0; }
#agbar .ab-drop a:hover, #agbar .ab-drop a:focus { background: var(--navy); color: #fff; outline: none; }
#agbar .ab-drop a.cur { font-weight: bold; }
#agbar .ab-drop .ab-head { padding: 5px 12px 3px; color: var(--navy); font-size: 10px; font-weight: bold; background: #F4F6FC; border-bottom: 1px solid #dfe3ee; letter-spacing: .3px; }
#agbar .ab-right { margin-left: auto; display: flex; align-items: stretch; flex-wrap: wrap; }
#agbar .ab-user { display: flex; align-items: center; gap: 6px; padding: 0 8px; color: #fff; white-space: nowrap; }
#agbar .ab-user b { color: #ffd54d; }
#agbar .ab-btn { display: flex; align-items: center; margin: 2px 1px; padding: 0 9px; background: #F4F4F5; color: #000; font-weight: bold; border: 2px solid; border-color: #fff #808080 #808080 #fff; white-space: nowrap; font-size: 11px; }
#agbar .ab-btn:active { border-color: #808080 #fff #fff #808080; }
#agbar .ab-btn.on { background: #fff; color: var(--navy); }
#agbar .ab-ico { font-size: 13px; }

/* ---- desk, page title, status bar ---- */
.agentapp .ab-desk { flex: 1; padding: 6px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.agentapp .ab-titlebar { background: var(--navy); color: #fff; font-weight: bold; padding: 5px 10px; display: flex; justify-content: space-between; gap: 10px; align-items: center; border: 2px solid; border-color: #fff #000 #000 #fff; box-shadow: 2px 2px 6px rgba(0,0,0,.25); }
.agentapp .ab-titlebar span { font-weight: normal; opacity: .9; }
.agentapp .ab-status { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; background: var(--face); border: 2px solid; border-color: #fff #808080 #808080 #fff; padding: 2px 8px; margin: 0 6px 6px; color: #555; font-size: 11px; }

/* ---- type ---- */
.agentapp h1 { font: bold 15px/1.3 var(--text); color: var(--navy); margin: 2px 0 8px; letter-spacing: 0; }
.agentapp h1 .pt { display: none; }
.agentapp h2 { font: bold 13px/1.3 var(--text); color: var(--navy); letter-spacing: 0; }
.agentapp h3 { font: bold 12px/1.3 var(--text); letter-spacing: 0; }
.agentapp .muted { color: #5F6368; }
.agentapp .small { font-size: 11px; }
.agentapp .mono, .agentapp .tbl td.n, .agentapp .tbl th.n { font-family: Consolas, 'Courier New', monospace; }
.agentapp .sec-head { margin: 0 0 6px; gap: 10px; align-items: center; }
.agentapp .sec-head h2 { font-size: 13px; }

/* ---- windows (panels) ---- */
.agentapp .panel { background: var(--face); border: 2px solid; border-color: #fff #000 #000 #fff; border-radius: 0; box-shadow: 3px 3px 8px rgba(0,0,0,.3); padding: 6px; margin: 0 0 6px; }
.agentapp .panel > h2:first-child, .agentapp .panel > h3:first-child { background: var(--navy); color: #fff; font-size: 12px; margin: -6px -6px 6px; padding: 4px 8px; display: flex; align-items: center; gap: 6px; }
.agentapp .panel > h2:first-child .mk-step-n { background: #fff; color: var(--navy); width: 18px; height: 18px; font-size: 11px; }
.agentapp .book-grid { gap: 6px; }

/* ---- grids ---- */
.agentapp .tbl { font-size: 12px; background: #fff; border-collapse: collapse; }
.agentapp .tbl th { position: static; background: var(--face); color: #000; font-size: 11px; text-transform: none; letter-spacing: 0; font-weight: bold; border: 1px solid #b0b0b0; padding: 3px 6px; white-space: nowrap; }
.agentapp .tbl td { border: 1px solid #e0e0e0; padding: 3px 6px; vertical-align: top; }
.agentapp .tbl tbody tr:nth-child(even) > td { background: #f7f7f7; }
.agentapp .tbl tbody tr:hover > td, .agentapp .tbl tr[data-href]:hover td { background: #DDE4F5; }
.agentapp .tbl td.ph span { width: 54px; height: 38px; border-radius: 0; }
.agentapp .ag-list .btn-sm { padding: 3px 9px; }

/* ---- buttons & fields ---- */
.agentapp .btn-primary, .agentapp .btn-ghost, .agentapp .btn-dark { border-radius: 0; font: bold 12px/1 var(--text); padding: 5px 12px; min-height: 24px; border: 2px solid; box-shadow: none; }
.agentapp .btn-primary { background: var(--navy); color: #fff; border-color: #7f9bff #0d2d9e #0d2d9e #7f9bff; }
.agentapp .btn-ghost, .agentapp .btn-dark { background: var(--face); color: #000; border-color: #fff #808080 #808080 #fff; }
.agentapp .btn-primary:active, .agentapp .btn-ghost:active { border-color: #808080 #fff #fff #808080; }
.agentapp .btn-sm { padding: 3px 9px; font-size: 11px; }
.agentapp .inp, .agentapp input[type=text], .agentapp input[type=email], .agentapp input[type=tel], .agentapp input[type=date], .agentapp input[type=number], .agentapp input[type=password], .agentapp select, .agentapp textarea {
  border-radius: 0; border: 2px solid; border-color: #808080 #fff #fff #808080; background: #fff; font: 12px var(--text); padding: 2px 5px; min-height: 24px; height: auto; box-shadow: none; }
.agentapp label { font-size: 11px; }
.agentapp .badge2 { border-radius: 0; font-size: 11px; padding: 1px 6px; border: 1px solid rgba(0,0,0,.15); }
.agentapp .note { border-radius: 0; }

/* ---- KPI tiles ---- */
.agentapp .usps { margin: 0 0 6px; gap: 6px; }
.agentapp .usp { border-radius: 0; box-shadow: none; background: #fff; border: 2px solid; border-color: #808080 #fff #fff #808080; padding: 8px 10px; }
.agentapp .usp b { font: bold 16px var(--text); color: var(--navy); }
.agentapp .usp .ico { font-size: 18px; }

/* ---- search box & filters: a toolbar ---- */
.agentapp .searchbox, .agentapp .searchbox.compact { margin: 0 0 6px; border-radius: 0; box-shadow: none; background: var(--face); border: 2px solid; border-color: #fff #808080 #808080 #fff; padding: 6px; }
.agentapp .searchbox * { border-radius: 0 !important; }
.agentapp .searchbox .sb-tile, .agentapp .searchbox .field { background: #fff; border: 2px solid; border-color: #808080 #fff #fff #808080; box-shadow: none; }
.agentapp .searchbox .go, .agentapp .searchbox button[type=submit] { background: var(--navy); color: #fff; font: bold 13px var(--text); }
.agentapp .ag-filters { background: var(--face); border: 2px solid; border-color: #fff #808080 #808080 #fff; border-radius: 0; box-shadow: none; padding: 6px; margin: 0 0 6px; }
.agentapp .ag-filters label { text-transform: none; letter-spacing: 0; font-size: 11px; color: #333; }
.agentapp .ag-view a { border-radius: 0; font-size: 11px; }
.agentapp .ag-view a.on { background: var(--navy); }

/* ---- hotel / booking pages shared with the storefront ---- */
.agentapp .hp-gal, .agentapp .gallery, .agentapp .card, .agentapp .mk-card, .agentapp .hp-box { border-radius: 0 !important; }
.agentapp .empty { background: #fff; border: 2px solid; border-color: #808080 #fff #fff #808080; padding: 20px; border-radius: 0; }
.agentapp .lightbox { z-index: 100; }
.agentapp aside.sum .panel { position: sticky; top: 36px; }

@media (max-width: 760px) {
  #agbar .ab-title .ab-lbl { display: none; }
  #agbar .ab-title { padding: 0 9px; font-size: 14px; }
  #agbar .ab-user .ab-who { display: none; }
  #agbar .ab-drop { position: fixed; top: 32px; left: 4px; right: 4px; min-width: 0; }
  .agentapp .ab-desk { padding: 4px; }
  .agentapp .ag-home, .agentapp .book-grid { grid-template-columns: 1fr !important; }
  .agentapp .usps { grid-template-columns: 1fr 1fr !important; }
  .agentapp .panel { overflow-x: auto; max-width: 100%; }
  .agentapp .sec-head { flex-wrap: wrap; }
  .agentapp .ab-titlebar span { display: none; }
  .agentapp .tbl th { top: 0; }
}

.agentapp .field label { text-transform: none; letter-spacing: 0; font-size: 11px; color: #333; font-weight: bold; }
.agentapp .field input, .agentapp .field select { width: 100%; }
.agentapp .ab-status { margin-top: auto; }
.agentapp .ag-more-btn, .agentapp .ag-view a, .agentapp .ag-view { border-radius: 0 !important; }
