/* «القروبات» — group travel screens; built on the app's own tokens (style.css :root) */
.gt{display:flex;flex-direction:column;gap:1rem}
.gt h2{font-size:1.25rem;font-weight:800;color:var(--dark)}
.gt h3{font-size:1rem;font-weight:800;color:var(--dark)}
.gt .muted{color:var(--muted)}
.gt-num,.gt .num{font-variant-numeric:tabular-nums;direction:ltr;unicode-bidi:isolate}
.gt-ccy{color:var(--muted);font-weight:700}
.gt-ref{color:var(--muted);font-weight:700;font-size:.8rem}
.gt-head{display:flex;justify-content:space-between;align-items:flex-start;gap:1rem;flex-wrap:wrap}
.gt-head__a,.gt-row,.gt-acts{display:flex;gap:.45rem;flex-wrap:wrap;align-items:center}
.gt-row{margin-top:.75rem}
.gt-tabs{display:flex;gap:.25rem;border-bottom:1px solid var(--line);overflow-x:auto}
.gt-tab{padding:.55rem .9rem;font-weight:800;font-size:.86rem;color:var(--muted);text-decoration:none;border-bottom:2.5px solid transparent;white-space:nowrap;transition:color .15s,border-color .15s}
.gt-tab:hover{color:var(--dark)}
.gt-tab.is-on{color:var(--dark);border-color:var(--orange)}
.gt-card,.gt-sec{background:#fff;border:1px solid var(--line);border-radius:14px;padding:1rem 1.1rem;box-shadow:var(--shadow)}
.gt-card h3,.gt-sec h3{margin-bottom:.6rem}
.gt-card__h,.gt-sec__h{display:flex;justify-content:space-between;align-items:center;gap:.75rem;flex-wrap:wrap;margin-bottom:.6rem}
.gt-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:.8rem}
a.gt-card{display:flex;flex-direction:column;gap:.3rem;text-decoration:none;color:inherit;transition:transform .15s,box-shadow .15s}
a.gt-card:hover,a.gt-card:focus-visible{transform:translateY(-2px);box-shadow:0 12px 28px rgba(24,32,54,.12);outline:none}
.gt-card__t{display:flex;justify-content:space-between;gap:.5rem;align-items:flex-start}
.gt-card__m{color:var(--muted);font-size:.85rem;font-weight:700}
.gt-card__p{font-weight:800;color:var(--dark);margin-top:.2rem}
.gt-kpis{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:.6rem}
.gt-kpi{background:var(--bg);border-radius:12px;padding:.7rem .85rem;display:flex;flex-direction:column;gap:.15rem}
.gt-kpi small{color:var(--muted);font-weight:700;font-size:.78rem}
.gt-kpi b{font-size:1.1rem;font-weight:800;color:var(--dark)}
.gt-steps{list-style:none;margin:.8rem 0 0;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:.5rem}
.gt-step{display:flex;gap:.55rem;align-items:flex-start;padding:.6rem .7rem;border-radius:12px;border:1px solid var(--line,#e5e7eb);background:var(--card,#fff)}
.gt-step div{display:flex;flex-direction:column;gap:.15rem;min-width:0}
.gt-step b,.gt-step a{font-weight:800;font-size:.86rem;color:var(--dark)}
.gt-step small{color:var(--muted);font-size:.76rem;font-weight:700}
.gt-step__n{flex:none;width:1.6rem;height:1.6rem;border-radius:50%;display:grid;place-items:center;font-weight:800;font-size:.8rem;background:var(--bg);color:var(--muted)}
.gt-step.is-done .gt-step__n{background:#16a34a;color:#fff}
.gt-step.is-now{border-color:#d97706;box-shadow:0 0 0 2px rgba(217,119,6,.15)}
.gt-step.is-now .gt-step__n{background:#d97706;color:#fff}
.gt-scroll{overflow-x:auto}
.gt-t{width:100%;border-collapse:collapse;font-size:.86rem}
.gt-t th{background:#f6f8fb;text-align:start;padding:.55rem .7rem;font-weight:800;color:var(--muted);white-space:nowrap;border-bottom:1px solid var(--line)}
.gt-t td{padding:.55rem .7rem;border-bottom:1px solid var(--line);vertical-align:top}
.gt-t tfoot th{background:none;color:var(--dark)}
.gt-dim td{opacity:.6}
.gt-chip{display:inline-block;padding:.12rem .55rem;border-radius:999px;font-size:.74rem;font-weight:800;white-space:nowrap}
.gt-chip--ok{background:#dcfce7;color:#166534}
.gt-chip--warn{background:#fef3c7;color:#92400e}
.gt-chip--bad{background:#fee2e2;color:#991b1b}
.gt-chip--draft{background:#e0f2fe;color:#075985}
.gt-chip--muted{background:#eef0f4;color:#4b5563}
.gt-bad{color:var(--red);font-weight:700}
.gt-warn{color:#b45309;font-weight:700}
.gt-note{background:#fffbeb;border:1px solid #fde68a;border-radius:10px;padding:.6rem .8rem;font-size:.85rem}
.gt-bar{display:flex;height:8px;border-radius:99px;background:#eef0f4;overflow:hidden;min-width:120px}
.gt-bar i{display:block;height:100%}
.gt-bar__c{background:var(--green)}
.gt-bar__h{background:var(--yellow)}
.gt-bar__l{display:block;color:var(--muted);font-size:.76rem;margin-top:.25rem}
.gt-td-bar{min-width:180px}
.gt-links,.gt-list{list-style:none;display:flex;flex-direction:column;gap:.2rem;margin-top:.25rem}
.gt-link{color:var(--blue-d);font-weight:800;text-decoration:none}
.gt-link:hover{text-decoration:underline}
.gt-x{background:none;border:1px solid var(--line);border-radius:8px;width:1.5rem;height:1.5rem;line-height:1;color:var(--muted);cursor:pointer}
.gt-x:hover,.gt-x:focus-visible{color:var(--red);border-color:var(--red)}
.gt-picks{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:.6rem}
.gt-pick{display:flex;flex-direction:column;gap:.2rem;background:#fff;border:1px solid var(--line);border-radius:12px;padding:.8rem;text-decoration:none;color:inherit;transition:border-color .15s}
.gt-pick:hover,.gt-pick:focus-visible{border-color:var(--orange);outline:none}
.gt-pick small{color:var(--muted);display:flex;gap:.4rem;align-items:center}
.gt-hotel{margin-top:.8rem}
.gt-sep{margin-top:1.4rem;padding-top:1rem;border-top:1px solid var(--line)}
.gt-pickbox{max-height:320px;overflow:auto;border:1px solid var(--line);border-radius:10px}
.gt-qty{width:5rem}
.gt-hotel__h{margin-bottom:.5rem}
.gt-rooms{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:.6rem}
.gt-room{border:1px solid var(--line);border-radius:12px;padding:.6rem .7rem;background:#fff}
.gt-room.is-shared{border-color:var(--blue);background:#f0f9ff}
.gt-room__h{display:flex;justify-content:space-between;align-items:center;gap:.4rem;margin-bottom:.35rem}
.gt-room select{width:100%;margin-top:.35rem}
/* forms in the shared modal */
.gt-dlg{display:flex;flex-direction:column;gap:.7rem;max-height:70vh;overflow:auto}
.gt-dlg label,.gt-f{display:flex;flex-direction:column;gap:.3rem;font-weight:800;font-size:.82rem;color:var(--dark)}
.gt-dlg input,.gt-dlg select,.gt-dlg textarea,.gt-room select{border:1.5px solid var(--line);border-radius:10px;padding:.5rem .7rem;font-family:inherit;font-weight:600;font-size:.88rem;background:#fff}
.gt-dlg input:focus,.gt-dlg select:focus,.gt-dlg textarea:focus{border-color:var(--orange);outline:none}
.gt-dlg .gt-chk,.gt-chk{flex-direction:row;align-items:center;gap:.5rem;font-weight:700}
.gt-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:.6rem}
.gt-svc-d{border:0;padding:0;margin:.6rem 0 0;min-inline-size:0}
.gt-svc-d[hidden]{display:none}
.gt-gaps{display:block;color:var(--red);font-size:.78rem;margin-top:.2rem}
.gt-fs{border:1px dashed var(--line);border-radius:12px;padding:.7rem .8rem;display:flex;flex-direction:column;gap:.55rem}
.gt-fs summary{cursor:pointer;font-weight:800;font-size:.85rem}
.gt-preview{background:var(--bg);border-radius:10px;padding:.6rem .8rem;font-size:.86rem}
.gt-preview:empty{display:none}
.gt-preview ul{margin:.3rem 1.1rem 0}
@media (max-width:640px){.gt-card,.gt-sec{padding:.8rem}.gt-head h2{font-size:1.1rem}}
/* the app's global .num is inline; inside our tables a cell must stay a cell */
.gt-t td.num,.gt-t th.num{display:table-cell;text-align:start}
.gt-t td.gt-acts{display:table-cell;white-space:nowrap}
.gt-t td.gt-acts>*+*{margin-inline-start:.35rem}
/* allocation review */
.gt-card--warn{border-inline-start:4px solid #f59e0b;background:#fffbeb}
.gt-amt{width:9rem;max-width:100%;text-align:end;font-variant-numeric:tabular-nums}
/* add a contract from the departure */
.gt-sec__note{margin:.25rem 0 .5rem;font-size:.85rem;color:#92400e}
.gt-sec__note--muted{margin:.25rem 0 .5rem;font-size:.85rem}
.gt-fetch{align-self:flex-start;margin-top:.25rem;font-size:.78rem;padding:.25rem .7rem}
.gt-fetchres{grid-column:1/-1;font-size:.82rem;font-weight:600;background:#f1f5f9;border-radius:8px;padding:.45rem .7rem;line-height:1.7}
.gt-fetchres--ok{background:#ecfdf5;color:#065f46}
.gt-pickrow{display:grid!important;grid-template-columns:auto 1fr;gap:.6rem;align-items:start;padding:.5rem .7rem;border-bottom:1px solid #e2e8f0;cursor:pointer;margin:0}
.gt-pickrow:hover{background:#f8fafc}
.gt-pickrow__b{display:flex;flex-direction:column;gap:.15rem;font-weight:400}
.gt-pickrow input{margin-top:.3rem}
.gt-sub{margin:.8rem 0 .4rem;font-size:.92rem}
.gt-check{display:flex;gap:.45rem;align-items:center;font-weight:600}
/* room types of a hotel service */
.gt-rt{border:1px dashed var(--line);border-radius:12px;padding:.7rem .8rem;margin:0;display:flex;flex-direction:column;gap:.5rem;min-inline-size:0}
.gt-rt[hidden]{display:none}
.gt-rt legend{font-weight:800;font-size:.88rem;padding:0 .3rem}
.gt-rt p{margin:0;font-size:.8rem}
.gt-rt-wrap{overflow-x:auto}
.gt-rt-t{width:100%;border-collapse:collapse;font-size:.82rem}
.gt-rt-t th{text-align:start;font-weight:800;padding:.25rem .3rem;color:var(--dark);white-space:nowrap}
.gt-rt-t td{padding:.2rem .3rem}
.gt-rt-t input{width:100%;min-width:5.5rem}
.gt-rt-t td:first-child input{min-width:9rem}
.gt-rt-foot{display:flex;align-items:center;gap:.7rem;flex-wrap:wrap;font-size:.82rem}
.gt-ccy-pick{position:relative}
.gt-ccy-list{position:absolute;inset-inline:0;top:100%;z-index:30;background:#fff;border:1.5px solid var(--line);border-radius:10px;max-height:240px;overflow:auto;margin-top:.2rem;box-shadow:0 8px 24px rgba(0,0,0,.08);font-weight:600}
.gt-ccy-list[hidden]{display:none}
.gt-ccy-list button{display:flex;justify-content:space-between;gap:.6rem;width:100%;text-align:start;border:0;background:none;padding:.45rem .65rem;font:inherit;font-size:.82rem;cursor:pointer}
.gt-ccy-list button:hover,.gt-ccy-list button.is-on{background:var(--bg)}
.gt-ccy-list small{color:#64748b;font-weight:600}
.gt-ccy-list .gt-bad{font-size:.75rem}
.gt-ccy-hint{font-size:.74rem;font-weight:600;color:#64748b}
.gt-ccy-hint.gt-bad{color:var(--red)}
.gt-ac{position:relative}
.gt-ac-list{position:absolute;inset-inline:0;top:100%;z-index:40;background:#fff;border:1.5px solid var(--line);border-radius:10px;max-height:300px;overflow:auto;margin-top:.2rem;box-shadow:0 10px 28px rgba(0,0,0,.12);font-weight:600;min-width:16rem}
.gt-ac-list[hidden]{display:none}
.gt-ac-list button{display:flex;align-items:center;justify-content:space-between;gap:.6rem;width:100%;text-align:start;border:0;border-bottom:1px solid var(--line);background:none;padding:.5rem .7rem;font:inherit;font-size:.84rem;cursor:pointer;transition:background .15s}
.gt-ac-list button:last-of-type{border-bottom:0}
.gt-ac-list button:hover,.gt-ac-list button.is-on{background:var(--bg)}
.gt-ac-t{display:flex;flex-direction:column;gap:.1rem;min-width:0}
.gt-ac-t b{font-weight:700;overflow:hidden;text-overflow:ellipsis}
.gt-ac-t small{color:#64748b;font-weight:600;font-size:.74rem}
.gt-ac-src{flex:none;font-size:.7rem;font-weight:700;padding:.1rem .45rem;border-radius:999px;background:#f1f5f9;color:#475569}
.gt-ac-src--g{background:#e8f0fe;color:#1a56db}
.gt-ac-msg{margin:0;padding:.55rem .7rem;font-size:.8rem;color:#64748b}
/* «تسجيل رقم»: travellers checklist with select-all and per-contract groups */
.gt-pax{border:1.5px solid var(--line);border-radius:12px;padding:.6rem .7rem;display:flex;flex-direction:column;gap:.45rem}
.gt-pax__h{display:flex;justify-content:space-between;align-items:center;gap:.5rem;flex-wrap:wrap}
.gt-pax__hint{margin:0;font-size:.76rem;font-weight:600}
.gt-pax__list{max-height:16rem;overflow:auto;display:flex;flex-direction:column;gap:.5rem}
.gt-pax__g{display:flex;flex-direction:column;gap:.15rem}
.gt-pax__gh{border-bottom:1px solid var(--line);padding-bottom:.2rem}
.gt-dlg .gt-pax__row{padding-inline-start:1.3rem;font-weight:600;cursor:pointer}
.gt-pax__row .muted{margin-inline-start:auto;font-size:.75rem}
.gt-pax input[type=checkbox]{width:1rem;height:1rem;accent-color:var(--orange);cursor:pointer}
