/* =====================================================================
   Delegations: request form extras, client cabinet, quotes, travel board.
   Uses the national palette from milliy.css (lojuvard, feruza, oltin, anor).
   ===================================================================== */

/* ---------- Request form ---------- */
.rfp-progress { grid-template-columns: repeat(var(--steps, 4), minmax(0, 1fr)); }
.rfp-progress li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 900px) and (min-width: 641px) { .rfp-progress li span { font-size: 12px; } }
.field-hint { display: block; margin-top: 5px; font-size: 12px; color: #5F5E62; font-weight: 600; }

.service-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.service-choice { position: relative; cursor: pointer; }
.service-choice input { position: absolute; opacity: 0; pointer-events: none; }
.service-choice > span { display: grid; grid-template-columns: 40px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; height: 100%;
  padding: 14px 14px; border: 1.5px solid var(--line); border-radius: 16px; background: #fff; transition: border-color .15s, background .15s, box-shadow .15s; }
.service-choice i { grid-row: span 2; width: 40px; height: 40px; display: grid; place-items: center; clip-path: var(--octagon); background: #E9E5DC; color: var(--lojuvard, #3A3A3C); font-style: normal; transition: background .15s, color .15s; }
.service-choice b { font-size: 14px; line-height: 1.3; }
.service-choice small { font-size: 12px; color: #5F5E62; font-weight: 600; line-height: 1.35; }
.service-choice:hover > span { border-color: #C9C3B6; }
.service-choice input:checked + span { border-color: var(--lojuvard, #3A3A3C); background: #EEF2FA; box-shadow: 0 6px 18px rgba(27,63,139,.10); }
.service-choice input:checked + span i { background: var(--lojuvard, #3A3A3C); color: #fff; }
.service-choice input:focus-visible + span { outline: 3px solid rgba(42,196,244,.45); outline-offset: 2px; }
.service-grid.is-invalid { outline: 2px solid #DC2626; outline-offset: 6px; border-radius: 16px; }

.svc-panel { border: 1.5px solid var(--line); border-radius: 18px; background: #fff; overflow: hidden; }
.svc-panel header { display: flex; align-items: center; gap: 12px; padding: 14px 18px; background: linear-gradient(90deg, #F3F1EC, #fff); border-bottom: 1px solid var(--line); }
.svc-panel header i { width: 34px; height: 34px; display: grid; place-items: center; clip-path: var(--octagon); background: var(--lojuvard, #3A3A3C); color: #fff; font-style: normal; }
.svc-panel header h3 { font-size: 16px; font-weight: 800; margin: 0; }
.svc-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 14px; padding: 16px 18px 4px; }
.svc-fields .svc-wide { grid-column: 1 / -1; }
.svc-check { margin: 4px 0 14px; }
.chip-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-choice { cursor: pointer; position: relative; }
.chip-choice input { position: absolute; opacity: 0; pointer-events: none; }
.chip-choice span { display: inline-block; padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font-size: 13px; font-weight: 700; transition: all .15s; }
.chip-choice input:checked + span { background: var(--lojuvard, #3A3A3C); border-color: var(--lojuvard, #3A3A3C); color: #fff; }
.chip-choice input:focus-visible + span { outline: 3px solid rgba(42,196,244,.45); }
@media (max-width: 760px) { .svc-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 460px) { .svc-fields { grid-template-columns: 1fr; padding: 14px 14px 2px; } .svc-panel header { padding: 12px 14px; } }

.account-box { margin-top: 10px; padding: 18px 18px 6px; border-radius: 18px; background: #F6F1E4; border: 1px solid #EBDDBD; position: relative; overflow: hidden; }
.account-box::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--flag-rule, linear-gradient(90deg, #0099B5, #CE1126, #1EB53A)); }
.account-box-head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.account-box-head i { flex-shrink: 0; width: 38px; height: 38px; display: grid; place-items: center; clip-path: var(--octagon); background: var(--oltin, #2AC4F4); color: #2B2B2D; font-style: normal; }
.account-box-head b { display: block; font-size: 16px; }
.account-box-head p { margin: 2px 0 0; font-size: 14px; color: #5F5E62; }
.account-box > p { margin-bottom: 12px; }

.ref-pill { display: inline-block; font: 800 15px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .06em; padding: 9px 14px; border-radius: 10px; background: #EEF2FA; color: var(--lojuvard, #3A3A3C); margin: 0 0 14px; }
.ref-pill.on-dark { background: rgba(255,255,255,.12); color: #fff; margin: 0; font-size: 13px; padding: 7px 11px; }

.how-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.how-list li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; font-size: 14px; font-weight: 600; color: #3C3747; }
.how-list b { width: 28px; height: 28px; display: grid; place-items: center; clip-path: var(--octagon); background: var(--lojuvard, #3A3A3C); color: #fff; font-size: 12px; }
.feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.feature-list li { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; font-size: 14px; }
.feature-list i { flex-shrink: 0; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 10px; background: #EEF2FA; color: var(--lojuvard, #3A3A3C); font-style: normal; }

/* ---------- Header link ---------- */
.cabinet-btn { position: relative; }
.cabinet-dot { position: absolute; top: 8px; right: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--flag-green, #1EB53A); box-shadow: 0 0 0 2px #fff; }

/* ---------- Cabinet header ---------- */
.cabinet-head { padding: 118px 0 34px; }
.cabinet-head-row { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-end; justify-content: space-between; position: relative; z-index: 1; }
.cabinet-title { font-size: clamp(28px, 4vw, 44px); font-weight: 800; letter-spacing: -.02em; line-height: 1.08; margin: 0 0 12px; color: #fff; }
.cabinet-back { display: inline-block; margin-bottom: 14px; color: rgba(255,255,255,.72); font-weight: 700; font-size: 14px; }
.cabinet-back:hover { color: var(--oltin-light, #2AC4F4); }
.cabinet-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; color: rgba(255,255,255,.78); font-weight: 600; font-size: 14px; }
.cabinet-meta > span { display: inline-flex; align-items: center; gap: 6px; }
.cabinet-user { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 10px; border-radius: 16px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); color: #fff; max-width: 100%; }
.cabinet-user b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 220px; }
.cabinet-user small { display: block; font-size: 12px; color: rgba(255,255,255,.6); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 220px; }
.cabinet-avatar { flex-shrink: 0; width: 38px; height: 38px; display: grid; place-items: center; clip-path: var(--octagon); background: var(--oltin, #2AC4F4); color: #2B2B2D; font-weight: 800; }
.cabinet-icon-btn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; color: #fff; background: rgba(255,255,255,.06); border: 0; cursor: pointer; transition: background .15s; }
.cabinet-icon-btn:hover { background: rgba(255,255,255,.18); }
.cabinet-body { padding: 28px 0 88px; }

/* ---------- Progress & tabs ---------- */
.dlg-flow { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; list-style: none; padding: 0; margin: 0 0 22px; counter-reset: f; }
.dlg-flow li { counter-increment: f; display: flex; align-items: center; gap: 8px; padding-top: 10px; border-top: 4px solid var(--line); font-size: 13px; font-weight: 700; color: #5F5E62; min-width: 0; }
.dlg-flow li::before { content: counter(f); flex-shrink: 0; width: 24px; height: 24px; display: grid; place-items: center; clip-path: var(--octagon); background: #E9E5DC; font-size: 11px; }
.dlg-flow li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dlg-flow li.is-done { border-color: var(--feruza, #0C8C9E); color: var(--ink); }
.dlg-flow li.is-done::before { content: '✓'; background: var(--feruza, #0C8C9E); color: #fff; }
.dlg-flow li.is-current { border-color: var(--oltin, #2AC4F4); color: var(--ink); }
.dlg-flow li.is-current::before { background: var(--oltin, #2AC4F4); color: #2B2B2D; }
@media (max-width: 760px) { .dlg-flow li span { display: none; } .dlg-flow li { justify-content: center; } .dlg-flow li.is-current span { display: none; } }

.dlg-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 0 24px; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 18px; -webkit-overflow-scrolling: touch; }
.dlg-tabs::-webkit-scrollbar { display: none; }
.dlg-tabs a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 12px; font-weight: 700; font-size: 14px; color: #5F5E62; white-space: nowrap; transition: background .15s, color .15s; }
.dlg-tabs a:hover { background: #F6F1E4; color: var(--ink); }
.dlg-tabs a.is-active { background: var(--lojuvard, #3A3A3C); color: #fff; }
.dlg-tabs em { font-style: normal; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--anor, #B8322F); color: #fff; font-size: 11px; display: grid; place-items: center; }

/* ---------- Status pills ---------- */
.st { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; white-space: nowrap; background: #E9E5DC; color: #5F5E62; line-height: 1.2; }
.st::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }
.st-new { background: #FFF4D6; color: #7A4F0C; }
.st-review, .st-requested { background: #EAF0FA; color: #3A3A3C; }
.st-quoted, .st-awaiting { background: #FFF1CC; color: #7A4F0C; }
.st-changes, .st-change { background: #FBE3E1; color: #9B2420; }
.st-approved { background: #DFF3E6; color: #11663A; }
.st-confirmed { background: #0C8C9E; color: #fff; }
.st-live { background: #3A3A3C; color: #fff; }
.st-completed { background: #ECE7DC; color: #5F5E62; }
.st-cancelled, .st-declined { background: #EFECE6; color: #5F5E62; text-decoration: line-through; }
.hero-dark .st-confirmed, .hero-dark .st-live { box-shadow: 0 0 0 1px rgba(255,255,255,.25); }

/* ---------- Overview blocks ---------- */
.next-step { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding: 18px 20px; border-radius: 20px; background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--feruza, #0C8C9E); }
.next-step > i { flex-shrink: 0; width: 44px; height: 44px; display: grid; place-items: center; clip-path: var(--octagon); background: #E3F3F5; color: var(--feruza, #0C8C9E); font-style: normal; }
.next-step.is-gold { border-left-color: var(--oltin, #2AC4F4); background: #FFFBF0; }
.next-step.is-gold > i { background: #FFF1CC; color: #0A6A96; }
.next-step .label-sm { margin: 0 0 2px; }
.next-step > div { flex: 1 1 240px; }
@media (max-width: 640px) { .next-step > a, .next-step > form, .next-step > form .btn-primary { flex: 1 1 100%; width: 100%; justify-content: center; } }
.stat-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.stat-tile { display: block; padding: 16px 18px; border-radius: 18px; background: #fff; border: 1px solid var(--line); position: relative; overflow: hidden; min-width: 0; }
.stat-tile::after { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--flag-rule, linear-gradient(90deg, #0099B5, #CE1126, #1EB53A)); opacity: .9; }
a.stat-tile:hover { border-color: #C9C3B6; }
.stat-tile span { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; font-weight: 800; color: #5F5E62; }
.stat-tile b { display: block; font-size: 26px; font-weight: 800; letter-spacing: -.02em; margin: 4px 0 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat-tile b em { font-style: normal; font-size: 16px; color: #5F5E62; }
.stat-tile small { font-size: 13px; color: #5F5E62; font-weight: 600; }
@media (max-width: 640px) { .stat-row { grid-template-columns: 1fr; } .stat-tile b { font-size: 22px; } }

.facts-dl { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px 20px; margin: 0; }
.facts-dl dt { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: #5F5E62; font-weight: 800; }
.facts-dl dd { margin: 3px 0 0; font-weight: 700; }
.brief-notes { margin-top: 18px; padding: 14px 16px; border-radius: 14px; background: #F3F1EC; font-size: 14px; color: #3C3747; }
.activity { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.activity li { display: grid; gap: 2px; font-size: 13px; padding-left: 14px; border-left: 2px solid #EBDDBD; }
.activity b { font-size: 11px; color: #5F5E62; }

.dlg-card { display: block; padding: 22px; border-radius: 22px; background: #fff; border: 1px solid var(--line); position: relative; overflow: hidden; transition: transform .2s, box-shadow .2s, border-color .2s; }
.dlg-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--flag-band, linear-gradient(#0099B5 0 33%, #fff 33% 66%, #1EB53A 66%)); }
.dlg-card:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(43,43,45,.10); border-color: #C9C3B6; }
.dlg-card-top { display: flex; justify-content: space-between; gap: 10px; align-items: center; margin-bottom: 10px; }
.dlg-card .ref { font: 800 13px ui-monospace, Menlo, monospace; letter-spacing: .06em; color: var(--lojuvard, #3A3A3C); }
.dlg-card h3 { font-size: 20px; font-weight: 800; margin: 0 0 4px; }
.dlg-card .meta { color: #5F5E62; font-size: 14px; font-weight: 600; margin: 0 0 14px; }
.dlg-card dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0; }
.dlg-card dt { font-size: 10px; text-transform: uppercase; letter-spacing: .1em; color: #5F5E62; font-weight: 800; }
.dlg-card dd { margin: 2px 0 0; font-weight: 800; font-size: 14px; }
.dlg-card-alert { margin-top: 14px; display: flex; gap: 8px; align-items: center; padding: 10px 12px; border-radius: 12px; background: #FFF1CC; color: #7A4F0C; font-weight: 700; font-size: 13px; }
.form-alert { padding: 12px 14px; border-radius: 12px; background: #FBE3E1; color: #9B2420; font-weight: 700; font-size: 14px; }

/* ---------- Buttons ---------- */
.btn-sm { padding: 8px 12px !important; font-size: 13px !important; border-radius: 10px !important; gap: 6px; }
.icon-btn { width: 34px; height: 34px; display: inline-grid; place-items: center; border-radius: 10px; color: #5F5E62; background: transparent; border: 0; cursor: pointer; }
.icon-btn:hover { background: #E9E5DC; color: var(--ink); }
.icon-btn.danger:hover { background: #FBE3E1; color: #9B2420; }
.flip-x { transform: scaleX(-1); }

/* ---------- Services & quote ---------- */
.svc-group-title { display: flex; align-items: center; gap: 10px; font-size: 13px; text-transform: uppercase; letter-spacing: .1em; font-weight: 800; color: var(--lojuvard, #3A3A3C); margin: 0 0 10px; }
.svc-group-title i { width: 28px; height: 28px; display: grid; place-items: center; clip-path: var(--octagon); background: #EAF0FA; font-style: normal; }
.svc-item { background: #fff; border: 1px solid var(--line); border-left: 5px solid #C9C3B6; border-radius: 18px; padding: 16px 18px; margin-bottom: 10px; scroll-margin-top: 110px; }
.svc-item:target { box-shadow: 0 0 0 3px rgba(42,196,244,.45); }
.st-border-quoted { border-left-color: var(--oltin, #2AC4F4); }
.st-border-approved { border-left-color: #1E9E57; }
.st-border-confirmed { border-left-color: var(--feruza, #0C8C9E); }
.st-border-change { border-left-color: var(--anor, #B8322F); }
.st-border-declined, .st-border-cancelled { opacity: .7; }
.svc-item-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.svc-item h4 { font-size: 16px; font-weight: 800; margin: 0; }
.svc-when { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 4px 0 0; color: #5F5E62; font-size: 13px; font-weight: 600; }
.svc-desc { margin: 10px 0 0; font-size: 14px; color: #3C3747; }
.svc-answers { margin-top: 10px; font-size: 13px; }
.svc-answers summary { cursor: pointer; color: var(--feruza, #0C8C9E); font-weight: 700; }
.svc-answers dl { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px 16px; margin: 10px 0 0; padding: 12px 14px; border-radius: 12px; background: #F3F1EC; }
.svc-answers dt { font-size: 11px; color: #5F5E62; font-weight: 700; }
.svc-answers dd { margin: 0; font-weight: 700; }
.svc-price { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
.svc-price .calc { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: #5F5E62; }
.svc-price .calc small { color: #5F5E62; }
.svc-price b { font-size: 20px; font-weight: 800; letter-spacing: -.01em; }
.svc-comment { margin: 10px 0 0; padding: 10px 12px; border-radius: 12px; background: #FBE3E1; color: #6E1B18; font-size: 14px; }
.svc-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; margin-top: 14px; }
.svc-actions form { margin: 0; }
.svc-change { flex: 1 1 260px; }
.svc-change > summary { list-style: none; display: inline-flex; cursor: pointer; }
.svc-change > summary::-webkit-details-marker { display: none; }
.svc-change[open] > summary { background: #F6F1E4; }
.add-service > summary { cursor: pointer; display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--lojuvard, #3A3A3C); list-style: none; }
.add-service > summary::-webkit-details-marker { display: none; }

.quote-box dl { margin: 0; display: grid; gap: 8px; }
.quote-box dl > div { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.quote-box dt { color: #5F5E62; font-weight: 600; }
.quote-box dd { margin: 0; font-weight: 700; white-space: nowrap; }
.quote-box .total { border-top: 2px solid var(--ink); padding-top: 10px; margin-top: 4px; font-size: 18px; }
.quote-box .total dt, .quote-box .total dd { color: var(--ink); font-weight: 800; }
.quote-box .approved dt, .quote-box .approved dd { color: #11663A; }
.legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.legend li { display: grid; gap: 4px; justify-items: start; }
.legend small { font-size: 12px; color: #5F5E62; font-weight: 600; }

/* ---------- Tables ---------- */
.table-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.table-head h3 { display: flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 800; margin: 0; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 760px; }
.data-table th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: #5F5E62; font-weight: 800; padding: 10px 14px; background: #F3F1EC; border-bottom: 1px solid var(--line); white-space: nowrap; }
.data-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table td small { display: block; color: #5F5E62; font-size: 12px; font-weight: 600; margin-top: 2px; }
.data-table td.actions { white-space: nowrap; text-align: right; }
.data-table td.actions form { display: inline; margin: 0; }
.data-table tr.is-editing td { background: #FFFBF0; }
.data-table tr:target td { background: #FFFBF0; }
.vs { display: inline-block; padding: 2px 8px; border-radius: 99px; font-size: 11px; font-weight: 800; background: #E9E5DC; color: #5F5E62; white-space: nowrap; }
.vs-needed, .vs-expected, .vs-scheduled { background: #FFF1CC; color: #7A4F0C; }
.vs-applied, .vs-landed, .vs-picked_up { background: #EAF0FA; color: #3A3A3C; }
.vs-issued, .vs-met, .vs-checked_in { background: #DFF3E6; color: #11663A; }
.vs-at_hotel, .vs-departed { background: #0C8C9E; color: #fff; }
.vs-no_show { background: #FBE3E1; color: #9B2420; }
.import-box { position: relative; }
.import-box > summary { list-style: none; cursor: pointer; }
.import-box > summary::-webkit-details-marker { display: none; }
.import-pop { position: absolute; right: 0; top: calc(100% + 8px); z-index: 20; width: min(340px, calc(100vw - 40px)); padding: 16px; border-radius: 16px; background: #fff; border: 1px solid var(--line); box-shadow: 0 18px 40px rgba(43,43,45,.14); }
@media (max-width: 640px) { .import-pop { right: auto; left: 0; } }

.member-group { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
.member-group legend { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; font-weight: 800; color: var(--lojuvard, #3A3A3C); margin-bottom: 10px; display: flex; align-items: center; gap: 10px; width: 100%; }
.member-group legend::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.member-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 0 14px; }
.member-grid .member-wide { grid-column: 1 / -1; }
#member-form { scroll-margin-top: 100px; }

/* ---------- Travel board ---------- */
.flight-no { display: inline-block; font: 800 14px ui-monospace, Menlo, monospace; letter-spacing: .08em; padding: 5px 9px; border-radius: 8px; background: var(--lojuvard-deep, #2B2B2D); color: var(--oltin-light, #2AC4F4); }
.pax-list summary { cursor: pointer; font-weight: 700; color: var(--feruza, #0C8C9E); }
.pax-list ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; font-size: 13px; }
.chips { display: flex; flex-wrap: wrap; gap: 4px; }

/* ---------- Programme ---------- */
.timeline-days { display: grid; gap: 18px; }
.tl-day { background: #fff; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; break-inside: avoid; }
.tl-day header { display: flex; align-items: center; gap: 14px; padding: 14px 18px; background: linear-gradient(90deg, #F3F1EC, #fff); border-bottom: 1px solid var(--line); }
.tl-day header b { display: block; font-size: 16px; }
.tl-day header small { color: #5F5E62; font-weight: 700; font-size: 12px; }
.tl-num { width: 36px; height: 36px; display: grid; place-items: center; clip-path: var(--octagram, var(--octagon)); background: var(--oltin, #2AC4F4); color: #2B2B2D; font-weight: 800; flex-shrink: 0; }
.tl-day ul { list-style: none; margin: 0; padding: 6px 0; }
.tl-day li { display: grid; grid-template-columns: 52px 34px 1fr auto; gap: 12px; align-items: center; padding: 10px 18px; }
.tl-day li + li { border-top: 1px dashed var(--line); }
.tl-day time { font: 800 13px ui-monospace, Menlo, monospace; color: var(--lojuvard, #3A3A3C); }
.tl-day li i { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: #EAF0FA; color: var(--lojuvard, #3A3A3C); font-style: normal; }
.tl-day li.tl-arr i, .tl-day li.tl-dep i { background: var(--lojuvard-deep, #2B2B2D); color: var(--oltin-light, #2AC4F4); }
.tl-day li b { display: block; font-size: 14px; }
.tl-day li small { display: block; font-size: 12px; color: #5F5E62; font-weight: 600; }
@media (max-width: 560px) { .tl-day li { grid-template-columns: 44px 1fr; } .tl-day li i { display: none; } .tl-day li .st { grid-column: 2; justify-self: start; } }

/* ---------- Messages ---------- */
.thread { display: flex; flex-direction: column; gap: 12px; max-height: 640px; overflow-y: auto; margin-bottom: 16px; }
.msg { display: flex; flex-direction: column; align-items: flex-start; max-width: 82%; }
.msg.is-mine { align-self: flex-end; align-items: flex-end; }
.msg .bubble { padding: 12px 15px; border-radius: 18px 18px 18px 6px; background: #E9E5DC; font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }
.msg.is-mine .bubble { background: var(--lojuvard, #3A3A3C); color: #fff; border-radius: 18px 18px 6px 18px; }
.msg small { margin-top: 4px; font-size: 11px; color: #5F5E62; font-weight: 700; }
.sys { align-self: center; text-align: center; font-size: 12px; color: #5F5E62; font-weight: 600; max-width: 90%; }
.sys span { display: inline-block; padding: 4px 10px; border-radius: 99px; background: #F3F1EC; border: 1px solid var(--line); }
.sys small { display: block; margin-top: 2px; font-size: 10px; }
.compose { scroll-margin-top: 110px; }

/* ---------- Print ---------- */
@media print {
  .cabinet-head, .dlg-tabs, .dlg-flow, .svc-actions, .add-service, .table-head .flex, .data-table .actions, #member-form, .compose { display: none !important; }
  .cabinet-body { padding: 0; }
}
@media (max-width: 640px) {
  .svc-item-head { flex-direction: column-reverse; align-items: flex-start; gap: 8px; }
  .svc-item { padding: 14px; }
  .svc-actions > form, .svc-actions > form .btn-primary { flex: 1 1 auto; }
}
