/* ===== دليل الشركات والمدراء (2026-10-10) — logo tiles per kind, company side panel, people table ===== */
.cd { display: flex; flex-direction: column; gap: 14px; --cd-r: 14px; }
.cd-i { width: 16px; height: 16px; flex: none; vertical-align: -3px; }

/* toolbar */
.cd-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; background: #fff; border: 1px solid var(--line); border-radius: var(--cd-r); padding: 10px 12px; box-shadow: var(--shadow); }
.cd-bar__sp { flex: 1; }
.cd-bar .btn { display: inline-flex; align-items: center; gap: 6px; }
.cd-search { display: flex; align-items: center; gap: 8px; border: 1.5px solid var(--line); border-radius: 10px; padding: 0 10px; background: #f8fafc; width: 340px; max-width: 100%; color: var(--muted); transition: border-color .18s, background .18s; }
.cd-search:focus-within { border-color: var(--blue); background: #fff; }
.cd-search input { border: 0; outline: 0; background: none; font: inherit; font-size: .88rem; font-weight: 600; padding: .5rem 0; width: 100%; color: var(--ink); }
.cd-seg { display: inline-flex; background: #f1f5f9; border-radius: 10px; padding: 3px; }
.cd-seg__b { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; border-radius: 8px; padding: .35rem .8rem; font-weight: 800; font-size: .82rem; color: #475569; transition: background .18s, color .18s; }
.cd-seg__b.is-on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(15, 23, 42, .12); }
.cd-check { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .85rem; cursor: pointer; }

/* kind tabs */
.cd-tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: thin; }
.cd-tab { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: .38rem .9rem; font-weight: 800; font-size: .82rem; color: var(--ink); transition: background .18s, border-color .18s, color .18s; }
.cd-tab:hover { border-color: var(--orange); }
.cd-tab small { background: #f1f5f9; color: #475569; border-radius: 999px; padding: 0 7px; font-size: .72rem; }
.cd-tab.is-on { background: var(--dark); border-color: var(--dark); color: #fff; }
.cd-tab.is-on small { background: rgba(255, 255, 255, .16); color: #fff; }
.cd-tab:focus-visible, .cd-tile:focus-visible, .cd-seg__b:focus-visible, .cd-ic:focus-visible, .cd-co:focus-visible, .cd-more:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }

/* figures */
.cd-figs { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.cd-fig { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--cd-r); padding: 12px 14px; }
.cd-fig > .cd-i { width: 38px; height: 38px; padding: 9px; border-radius: 10px; background: #f1f5f9; color: #334155; }
.cd-fig b { display: block; font-size: 1.25rem; line-height: 1.2; }
.cd-fig span { color: var(--muted); font-size: .8rem; font-weight: 700; }
.cd-fig.is-warn > .cd-i { background: #fef3c7; color: #b45309; }

/* sections + tiles */
.cd-list { display: flex; flex-direction: column; gap: 22px; }
.cd-sec__h { display: flex; align-items: center; gap: 10px; font-size: 1.02rem; margin: 0 0 10px; }
.cd-sec__h small { color: var(--muted); font-weight: 700; font-size: .8rem; margin-inline-start: 4px; }
.cd-sec__i { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--k-bg, #eef2f7); color: var(--k-fg, #334155); }
.cd-sec--airline { --k-bg: #e0f2fe; --k-fg: #075985; }
.cd-sec--cruise { --k-bg: #ede9fe; --k-fg: #5b21b6; }
.cd-sec--hotel { --k-bg: #fef3c7; --k-fg: #92400e; }
.cd-sec--agency { --k-bg: #dcfce7; --k-fg: #166534; }
.cd-sec--personal { --k-bg: #f1f5f9; --k-fg: #475569; }
.cd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.cd-grid--feature { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.cd-tile { position: relative; display: flex; align-items: center; gap: 12px; text-align: start; background: #fff; border: 1px solid var(--line); border-radius: var(--cd-r); padding: 12px; min-width: 0; color: inherit; transition: border-color .18s, box-shadow .18s, transform .18s; }
.cd-tile:hover { border-color: #cbd5e1; box-shadow: 0 6px 18px rgba(15, 23, 42, .08); transform: translateY(-1px); }
.cd-tile--feature { padding: 16px; border-top: 3px solid #0ea5e9; }
.cd-tile__b { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.cd-tile__n { font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cd-tile--feature .cd-tile__n { font-size: 1.05rem; }
.cd-tile__s { color: var(--muted); font-size: .76rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; direction: ltr; text-align: end; }
.cd-tile__m { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; color: #475569; font-size: .78rem; font-weight: 700; margin-top: 2px; }
.cd-tile__m .cd-i { width: 14px; height: 14px; color: var(--muted); }
.cd-tile__m .is-star { color: #d97706; }
.cd-dot { width: 3px; height: 3px; border-radius: 50%; background: #cbd5e1; margin: 0 4px; }
.cd-hit { background: #fef9c3; color: #854d0e; border-radius: 6px; padding: 0 6px; font-size: .72rem; }
.cd-more { display: block; margin: 10px auto 0; border: 1.5px dashed #cbd5e1; background: #fff; border-radius: 10px; padding: .45rem 1.2rem; font-weight: 800; font-size: .84rem; color: #334155; }
.cd-more:hover { border-color: var(--orange); }

/* logos + avatars */
.cd-logo { position: relative; flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: #fff; border: 1px solid var(--line); overflow: hidden; }
.cd-logo img { width: 78%; height: 78%; object-fit: contain; }
.cd-logo.has-img .cd-mono, .cd-logo:not(.has-img) img { display: none; }
.cd-logo--xs { width: 26px; height: 26px; border-radius: 7px; }
.cd-logo--xs img { width: 100%; height: 100%; }
.cd-logo--lg { width: 60px; height: 60px; border-radius: 14px; }
.cd-logo--xl { width: 76px; height: 76px; border-radius: 18px; }
.cd-logo.is-personal { background: #f1f5f9; color: #64748b; }
.cd-logo.is-personal .cd-i { width: 50%; height: 50%; }
.cd-mono { width: 100%; height: 100%; display: grid; place-items: center; font-weight: 800; font-size: .95rem; letter-spacing: .02em; color: hsl(var(--h) 55% 30%); background: hsl(var(--h) 70% 93%); }
.cd-logo--xs .cd-mono { font-size: .62rem; }
.cd-logo--lg .cd-mono { font-size: 1.2rem; }
.cd-logo--xl .cd-mono { font-size: 1.5rem; }
.cd-av { flex: none; display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; font-weight: 800; font-size: .78rem; color: hsl(var(--h) 55% 28%); background: hsl(var(--h) 70% 91%); }
.cd-av .cd-i { width: 16px; height: 16px; }
.cd-av.is-mgr { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #f59e0b; }

/* badges, small controls */
.cd-badge { display: inline-flex; align-items: center; gap: 4px; font-size: .72rem; font-weight: 800; padding: 2px 9px; border-radius: 999px; background: #eef2f7; color: #334155; white-space: nowrap; vertical-align: 1px; }
.cd-badge .cd-i { width: 12px; height: 12px; vertical-align: 0; }
.cd-badge.is-airline { background: #e0f2fe; color: #075985; }
.cd-badge.is-agency { background: #dcfce7; color: #166534; }
.cd-badge.is-hotel { background: #fef3c7; color: #92400e; }
.cd-badge.is-cruise { background: #ede9fe; color: #5b21b6; }
.cd-badge.is-mgr { background: #fef3c7; color: #92400e; margin-inline-start: 6px; }
.cd-ic { display: inline-grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 8px; background: none; color: #64748b; transition: background .15s, color .15s; flex: none; }
.cd-ic:hover { background: #f1f5f9; color: var(--ink); }
.cd-ic .cd-i { width: 15px; height: 15px; }
.cd-mail { display: inline-flex; align-items: center; gap: 6px; direction: ltr; max-width: 100%; }
.cd-mail > a { color: inherit; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cd-mail > a:hover { color: var(--blue-d); text-decoration: underline; }
.cd-mail > .cd-i { color: var(--muted); width: 14px; height: 14px; }
.cd-mail .cd-ic { width: 26px; height: 26px; }
.cd-warn { display: flex; align-items: center; gap: 5px; color: #b45309; font-size: .76rem; font-weight: 700; direction: rtl; }
.cd-warn .cd-i { width: 13px; height: 13px; }
.cd-none { color: #cbd5e1; }
.cd-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 40px 16px; background: #fff; border: 1px dashed #cbd5e1; border-radius: var(--cd-r); color: var(--muted); }
.cd-empty > .cd-i { width: 30px; height: 30px; }
.cd-empty b { color: var(--ink); }

/* people table */
.cd-tablecard { background: #fff; border: 1px solid var(--line); border-radius: var(--cd-r); overflow: hidden; padding-bottom: 8px; }
.cd-people td { vertical-align: middle; }
.cd-who { display: flex; align-items: center; gap: 10px; min-width: 180px; }
.cd-who small { display: block; color: var(--muted); font-size: .76rem; font-weight: 600; }
.cd-co { display: inline-flex; align-items: center; gap: 8px; border: 0; background: none; font: inherit; font-weight: 700; color: inherit; padding: 2px 4px; border-radius: 8px; text-align: start; }
.cd-co:hover { background: #f1f5f9; }
.cd-people td.ltr { direction: ltr; text-align: start; white-space: nowrap; }
.cd-people td.ltr a { color: inherit; }

/* company panel */
.cd-scrim { position: fixed; inset: 0; background: rgba(15, 23, 42, .32); z-index: 60; opacity: 0; transition: opacity .2s; }
.cd-panel { position: fixed; inset-block: 0; inset-inline-end: 0; width: min(560px, 100vw); background: #fff; z-index: 61; overflow-y: auto; box-shadow: -12px 0 40px rgba(15, 23, 42, .18);
  transform: translateX(-100%); transition: transform .22s ease; outline: none; display: flex; flex-direction: column; }
[dir="ltr"] .cd-panel { transform: translateX(100%); }
.cd.is-panel .cd-panel { transform: none; }
.cd.is-panel .cd-scrim { opacity: 1; }
.cd-panel__h { display: flex; align-items: flex-start; gap: 16px; padding: 22px 22px 14px; background: linear-gradient(180deg, #f8fafc, #fff); border-bottom: 1px solid var(--line); }
.cd-panel__t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.cd-panel__t h2 { font-size: 1.3rem; line-height: 1.35; }
.cd-panel__en { color: #475569; font-weight: 700; font-size: .9rem; direction: ltr; }
.cd-panel__links { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 2px; }
.cd-panel__links a { display: inline-flex; align-items: center; gap: 5px; color: var(--blue-d); font-size: .82rem; font-weight: 700; text-decoration: none; direction: ltr; }
.cd-panel__links a:hover { text-decoration: underline; }
.cd-panel__links .cd-i { width: 14px; height: 14px; }
.cd-panel__x { margin-inline-start: auto; }
.cd-panel__acts { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 22px; border-bottom: 1px solid var(--line); }
.cd-panel__acts .btn { display: inline-flex; align-items: center; gap: 6px; }
.cd-panel__notes { margin: 12px 22px 0; padding: 10px 12px; background: #fffbeb; border-radius: 10px; color: #78350f; font-size: .85rem; white-space: pre-line; }
.cd-panel__body { padding: 8px 22px 28px; display: flex; flex-direction: column; gap: 18px; }
.cd-pgroup h4 { display: flex; align-items: center; gap: 8px; font-size: .9rem; color: #334155; margin: 10px 0 6px; }
.cd-pgroup h4 small { background: #f1f5f9; border-radius: 999px; padding: 0 8px; font-size: .72rem; color: #475569; }
.cd-pgroup h4 .cd-i { color: var(--muted); }
.cd-people-list { list-style: none; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.cd-person { display: flex; align-items: flex-start; gap: 12px; padding: 12px; }
.cd-person + .cd-person { border-top: 1px solid #f1f5f9; }
.cd-person:hover { background: #fafbfc; }
.cd-person__b { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cd-person__n b { font-size: .92rem; }
.cd-person__t { color: #475569; font-size: .8rem; font-weight: 600; }
.cd-person__c { display: flex; flex-wrap: wrap; gap: 2px 14px; font-size: .82rem; color: #334155; margin-top: 2px; }
.cd-person__x { color: var(--muted); font-size: .78rem; white-space: pre-line; }

/* forms */
.cd-hint { color: #475569; font-size: .84rem; margin: 0 0 8px; display: block; }
.cd-paste { width: 100%; box-sizing: border-box; border: 1.5px solid var(--line); border-radius: 10px; padding: 8px; font: .8rem/1.5 ui-monospace, monospace; direction: ltr; }
.cd-sum { margin-top: 10px; display: grid; gap: 4px; font-size: .9rem; background: #f8fafc; border-radius: 10px; padding: 10px 12px; }
.cd-sum small { color: var(--muted); }
.cd-del { margin-inline-end: auto; color: var(--red, #dc2626); }
.cd-air-hits { display: flex; flex-direction: column; gap: 2px; margin-top: 4px; }
.cd-air { display: flex; align-items: center; gap: 8px; text-align: start; border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 6px 10px; font: inherit; font-size: .85rem; }
.cd-air:hover { border-color: var(--blue); background: #f0f9ff; }
.cd-air small { color: var(--muted); margin-inline-start: auto; }
.cd-logo-edit { display: flex; align-items: center; gap: 14px; background: #f8fafc; border-radius: 12px; padding: 10px 12px; }
.cd-logo-edit > div { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.cd-logo-edit > div > b { width: 100%; }
.cd-logo-edit .cd-hint { margin: 0; width: 100%; }

@media (max-width: 640px) {
  .cd-search { width: 100%; order: -1; }
  .cd-bar__sp { display: none; }
  .cd-grid, .cd-grid--feature { grid-template-columns: 1fr; }
  .cd-figs { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .cd-fig { padding: 8px 10px; gap: 0; }
  .cd-fig > .cd-i { display: none; }
  .cd-fig b { font-size: 1.05rem; }
  .cd-fig span { font-size: .72rem; }
  .cd-panel__h, .cd-panel__acts, .cd-panel__body { padding-inline: 14px; }
  .cd-panel__h { padding-top: 16px; gap: 12px; }
  .cd-logo--xl { width: 60px; height: 60px; }
}
@media (prefers-reduced-motion: reduce) { .cd-tile, .cd-panel, .cd-scrim { transition: none; } }
