/* TravelBooks v18.11.4 — one pill-shaped button theme, fix-it-right-here messages, Today / Team Board tiles,
   customer page on one screen, Edit Customer in sections, booking windows, proforma, Trip Plan buttons. */

/* ---------------- one button shape everywhere: pills */
.btn, button.btn, a.btn, summary.btn { border-radius: 999px; }
.btn.sm { padding: 4px 12px; }
.tabs a, .tabs button { border-radius: 999px; }

/* ---------------- fix it right here */
#si1814 { border: 0; border-radius: 14px; padding: 0; width: min(420px, 94vw); box-shadow: 0 18px 50px rgba(0, 0, 0, .28); }
#si1814::backdrop { background: rgba(20, 24, 33, .45); }
.si1814 { padding: 20px 22px; display: flex; flex-direction: column; gap: 12px; }
.si1814 h2 { margin: 0; font-size: 17px; }
.si1814 p { margin: 0; }
.si1814err { color: var(--warn, #a3401f); background: var(--warn-soft, #f8e7e0); border-radius: 8px; padding: 8px 10px; font-size: 13px; }
.so1814 { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: #fff1d6; border: 1px solid #f0d9a8; color: #6b4e00; padding: 8px 14px; font-size: 13.5px; }
body > .so1814 { position: sticky; top: 0; z-index: 30; border-width: 0 0 1px; justify-content: center; }
form .so1814 { border-radius: 10px; margin: 0 0 10px; }
.fx1814 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 10px 0 4px; padding: 10px 12px; border-radius: 10px;
  background: var(--warn-soft, #f8e7e0); border: 1px solid #e8b9a6; color: #7a2e12; font-size: 13.5px; }
.fx1814[hidden] { display: none; }
.fx1814 .fxm1814 { flex: 1 1 260px; font-weight: 600; }
.fx1814 .fxm1814.ok { color: var(--good, #2e6b33); }
.fx1814 .fxx1814 { border: 0; background: transparent; font-size: 18px; line-height: 1; cursor: pointer; color: inherit; padding: 0 4px; }
.bad1814 { outline: 2px solid #d9534f !important; outline-offset: 1px; background: #fff7f5 !important; }
.pulse1814 { animation: p1814 1.2s ease 2; border-radius: 10px; }
@keyframes p1814 { 50% { box-shadow: 0 0 0 4px rgba(29, 95, 191, .25); } }

/* ---------------- Today as tiles */
.td1814 .tlg1814 { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.tl1814 { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; text-align: left; padding: 12px 14px; border-radius: 12px; cursor: pointer;
  background: var(--panel, #fff); border: 1px solid var(--line, #e6e2da); color: inherit; font: inherit; min-height: 104px; }
.tl1814:hover { border-color: var(--accent); }
.tl1814.on { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft, #e1ebfa); }
.tl1814.hot .tln1814 { color: var(--warn, #a3401f); }
.tln1814 { font: 700 26px/1 ui-monospace, Consolas, monospace; }
.tlt1814 { font-weight: 600; font-size: 13.5px; line-height: 1.3; }
.tlc1814, .tbc1814 { display: flex; gap: 6px; flex-wrap: wrap; }
.tlc1814 i, .tbc1814 i { font-style: normal; font-size: 11.5px; font-weight: 600; border-radius: 999px; padding: 1px 9px; background: #eceae5; color: #4a4740; }
.tlc1814 i.over, .tbc1814 i.over { background: var(--warn-soft, #f8e7e0); color: var(--warn, #a3401f); }
.tlc1814 i.today, .tbc1814 i.today { background: #fff1d6; color: #8a5a00; }
.tlo1814 .tdl1814 { margin-top: 12px; background: var(--panel, #fff); border: 1px solid var(--accent); border-radius: 12px; padding: 10px 14px; }
.tdl1814 header { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding-bottom: 6px; }
.tdl1814 ul { list-style: none; margin: 0; padding: 0; }
.tdl1814 li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line, #efece6); }
.tdl1814 li a:first-child { display: flex; flex-direction: column; min-width: 0; }
.upd1814 { font-weight: 400; margin-left: 8px; }

/* ---------------- Team Board as tiles */
.tbgrid1813 { align-items: start; }
section.tile1814 > header { cursor: pointer; }
section.tile1814.none1814 > header { cursor: default; }
section.tile1814 > ul, section.tile1814 > p { display: none; }
section.tile1814.open { grid-column: 1 / -1; border-color: var(--accent); }
section.tile1814.open > ul { display: block; }
section.tile1814.open > ul > li { display: flex; }
.tbv1814 { margin-left: 6px; color: var(--muted); transition: transform .15s; }
section.tile1814.open .tbv1814 { transform: rotate(180deg); }
section.tile1814 { min-height: 0; }

/* ---------------- customer page on one screen */
.cp1814 .lhead13 { margin-bottom: 8px; }
.cp1814 .lh-actions .btn, .cp1814 .lh-actions .btn.primary, .cp1814 .lh-actions .btn.danger, .cp1814 .lh-actions .btn.wa {
  background: #fff; color: var(--accent); border: 1px solid var(--accent); }
.cp1814 .lh-actions .btn:hover { background: var(--accent-soft, #e1ebfa); }
.cp1814 .lh-meta .btn { background: #fff; border: 1px solid var(--accent); color: var(--accent); }
.cp1814 .kpis { margin-bottom: 10px; }
.cp1814 .kpis > div { padding: 8px 14px; }
.cp1814 .kpis b { font-size: 18px; }
.cp1814 .rq1810box { margin-bottom: 8px; }
.cp1814 .rq1810box.empty1814 > .small.muted { display: none; }
.cp1814 .rq1810box.empty1814 .rq1810head::after { content: "None yet"; font-size: 12.5px; color: var(--muted); margin-left: 6px; }
.cp1814 .ns1813 { background: var(--accent); color: var(--accent-ink, #fff); border-color: var(--accent); font-size: 15px; padding: 11px 16px;
  box-shadow: 0 6px 16px rgba(29, 95, 191, .22); }
.cp1814 .ns1813 .btn { background: #fff; color: var(--accent); border-color: #fff; font-weight: 600; }
.cp1814 .ns1813.done { background: var(--good-soft, #e6f1e3); color: var(--good, #2e6b33); border-color: #b9d8b4; box-shadow: none; }
.nsk1814 { font-size: 11px; letter-spacing: .8px; text-transform: uppercase; opacity: .85; border-right: 1px solid currentColor; padding-right: 10px; }

/* ---------------- Edit Customer in sections */
.ecw1814 { display: flex; flex-direction: column; gap: 10px; }
.ecw1814 .ec1814 { margin: 0; }

/* ---------------- Trip Plan */
.tpbar1813 { flex-wrap: wrap; gap: 8px; }
.tpbar1813 .btn.c1814a { background: #0d8a6a; border-color: #0d8a6a; color: #fff; }
.tpbar1813 .btn.c1814b { background: var(--accent); border-color: var(--accent); color: #fff; }
.tpbar1813 .btn.c1814c { background: #6b4bb8; border-color: #6b4bb8; color: #fff; }
.tpbar1813 .btn.c1814d { background: #b06a12; border-color: #b06a12; color: #fff; }
.tpbar1813 .btn[class*=c1814]:hover { filter: brightness(1.08); }
details.tpadd1813 > summary[hidden] { display: none; }
.tpc1814 { border: 1px solid var(--accent); background: var(--accent-soft, #e1ebfa); border-radius: 12px; padding: 10px 14px; margin-bottom: 12px; }
.tpcl1814 { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; font-size: 13.5px; }
.tpcl1814 > span { color: var(--muted); } .tpcl1814 > span b { color: var(--ink); }
.tpcl1814 .btn { margin-left: auto; }
.tpcf1814 { display: flex; flex-direction: column; gap: 10px; background: #fff; border-radius: 10px; padding: 10px; }

/* ---------------- booking windows */
.tk1814 .tkr1814 { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.tkx1814 { display: grid; grid-template-columns: minmax(140px, 1fr) minmax(160px, 1.2fr); gap: 8px; align-items: center; font-size: 13px; }
.tkx1814 span { font-weight: 600; }
.pax1813 + .pxadd1810 { margin-top: 8px; }

/* ---------------- proforma: one below the other */
#dlgform.pf1814 .pfr1814 { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto 120px; gap: 10px; align-items: center; padding: 9px 4px;
  border-bottom: 1px solid var(--line, #efece6); cursor: pointer; }
#dlgform.pf1814 .pfr1814 .num { text-align: right; font-variant-numeric: tabular-nums; }
#dlgform.pf1814 h3 { margin: 14px 0 2px; }
#dlgform.pf1814 .chk { display: flex; padding: 8px 2px; border-bottom: 1px solid var(--line, #efece6); }
.pfs1814 { font-size: 11.5px; font-weight: 600; border-radius: 999px; padding: 2px 10px; white-space: nowrap; }
.pfs1814.ok { background: var(--good-soft, #e6f1e3); color: var(--good, #2e6b33); }
.pfs1814.wait { background: #fff1d6; color: #8a5a00; }
.pft1814 { border-top: 2px solid var(--ink, #1d1c1a); margin-top: 6px; padding-top: 10px; }

/* ---------------- task window: date, time and AM / PM on one row */
.dt1813 { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.dt1813 .dtd { flex: 1 1 150px; min-width: 140px; }
.dt1813 select { width: auto; }
.dt1813 .dtl1813 { flex-basis: 100%; }

/* Team Board: closed tiles take less room — more per row */
.tbgrid1813 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
