/* LiveGoOrder CRM — affectation des commandes (v4.27.0) */
.as-none{ color:#8c8095; font-style:italic; font-size:12px; }
.as-cell{ display:flex; flex-direction:column; gap:2px; min-width:96px; } .as-cell small{ color:#8c8095; font-size:11px; font-weight:700; }
.as-tag{ display:inline-block; width:fit-content; padding:2px 9px; border-radius:99px; font-style:normal; font-size:11px; font-weight:800; }
.as-tag.cb{ background:#fff4e0; color:#a35a00; } .as-tag.na{ background:#fdeaea; color:#a8283a; }

/* strip of counters on top of Orders / Activity */
.as-strip{ display:flex; flex-direction:column; gap:8px; padding:12px 14px; margin-bottom:12px; border:1px solid var(--border,#ece6f1); border-radius:16px; background:#fff; }
.as-strip.hidden,.as-order-box.hidden,.as-product-box.hidden,.as-live-box.hidden,.as-filter.hidden{ display:none !important; }
.as-strip.inline{ margin-bottom:0; }
.as-strip-title{ font-size:11px; font-weight:800; letter-spacing:.06em; text-transform:uppercase; color:#8c8095; }
.as-chips{ display:flex; flex-wrap:wrap; gap:8px; }
.as-chip{ display:flex; align-items:baseline; gap:8px; min-height:40px; padding:0 14px; border:1px solid var(--border,#ece6f1); border-radius:12px; background:#fff; font:inherit; cursor:pointer; color:#4b4258; }
.as-chip b{ font-size:20px; color:var(--primary,#602d9a); } .as-chip span{ font-size:12px; font-weight:700; }
.as-chip:hover{ border-color:#c9b6dd; background:#faf6fd; }
.as-chip.callback b{ color:#a35a00; } .as-chip.noAnswer b,.as-chip.cancelled b{ color:#a8283a; } .as-chip.confirmed b{ color:#16a34a; }
.as-chip.unassigned.alert{ border-color:#f1b0b0; background:#fff5f5; } .as-chip.unassigned.alert b{ color:#c0392b; }

/* order modal */
.as-order-box,.as-product-box,.as-live-box{ margin:14px 0; padding:14px 16px; border:1px solid var(--purple-200,#e3d2f5); border-radius:16px; background:var(--purple-50,#f7f1fc); display:flex; flex-direction:column; gap:10px; min-width:0; }
.as-owner{ display:flex; flex-wrap:wrap; gap:8px; align-items:baseline; } .as-owner small{ color:#8c8095; font-weight:700; }
.as-src{ padding:2px 9px; border-radius:99px; background:#fff; border:1px solid var(--purple-200,#e3d2f5); font-size:11px; font-weight:800; color:var(--primary,#602d9a); }
.as-reassign,.as-marks{ display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
.as-reassign select,.as-reassign input,.as-marks input{ min-height:38px; max-width:100%; } .as-reassign input{ flex:1 1 180px; } .as-marks input:first-child{ flex:1 1 180px; }
.as-link{ align-self:flex-start; border:0; background:none; padding:0; font:inherit; font-size:12px; font-weight:800; color:var(--primary,#602d9a); text-decoration:underline; cursor:pointer; }
.as-history{ display:flex; flex-direction:column; gap:6px; padding:10px 12px; border-radius:12px; background:#fff; border:1px solid var(--border,#ece6f1); }
.as-history.hidden{ display:none; }
.as-h-row{ display:grid; grid-template-columns:130px minmax(0,1fr); gap:10px; font-size:12.5px; } .as-h-row time{ color:#8c8095; font-weight:700; } .as-h-row i{ color:#6d6277; }

/* product / live */
.as-checks{ display:flex; flex-wrap:wrap; gap:8px 14px; } .as-check{ display:inline-flex; gap:6px; align-items:center; font-size:13px; font-weight:600; }
.as-row{ display:flex; flex-wrap:wrap; gap:14px; align-items:flex-end; } .as-row label{ display:flex; flex-direction:column; gap:4px; font-size:12px; font-weight:700; }
.as-multi{ position:relative; } .as-multi summary{ cursor:pointer; min-height:38px; display:flex; align-items:center; padding:0 12px; border:1px solid var(--border,#ece6f1); border-radius:10px; background:#fff; font-size:13px; max-width:260px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.as-multi[open] summary{ border-color:var(--primary,#602d9a); }
.as-multi-list{ position:absolute; z-index:30; margin-top:4px; min-width:220px; max-height:240px; overflow:auto; display:flex; flex-direction:column; gap:6px; padding:10px 12px; border:1px solid var(--border,#ece6f1); border-radius:12px; background:#fff; box-shadow:0 14px 30px rgba(54,24,92,.16); }
.as-table td,.as-table th{ vertical-align:middle; } .as-table.clickable tbody tr{ cursor:pointer; } .as-table.clickable tbody tr:hover{ background:#faf6fd; }
.as-bulk{ display:flex; flex-wrap:wrap; gap:8px; align-items:center; } .as-spacer{ flex:1; }

/* activity page */
.as-root{ display:flex; flex-direction:column; gap:16px; min-width:0; }
.as-head{ display:flex; flex-wrap:wrap; gap:10px; justify-content:space-between; align-items:center; }
.as-periods{ display:flex; gap:6px; padding:5px; border:1px solid var(--border,#ece6f1); border-radius:16px; background:#fff; overflow-x:auto; }
.as-period{ flex:0 0 auto; min-height:38px; padding:0 14px; border:0; border-radius:12px; background:transparent; font:inherit; font-size:13px; font-weight:700; color:#6d6277; cursor:pointer; }
.as-period.active{ background:var(--primary,#602d9a); color:#fff; box-shadow:0 6px 16px rgba(96,45,154,.28); }
.as-kpis{ display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; } .as-kpis.times{ grid-template-columns:repeat(3,minmax(0,1fr)); } .as-kpis.rates{ grid-template-columns:repeat(6,minmax(0,1fr)); }
.as-kpi{ padding:14px 16px; border:1px solid var(--border,#ece6f1); border-radius:16px; background:#fff; display:flex; flex-direction:column; gap:4px; min-width:0; }
.as-kpi small{ color:#8c8095; font-weight:700; font-size:11px; } .as-kpi b{ font-size:22px; line-height:1.15; overflow-wrap:anywhere; }
.as-kpi.good b{ color:#16a34a; } .as-kpi.bad b{ color:#c0392b; }
.as-panel{ padding:16px; border:1px solid var(--border,#ece6f1); border-radius:18px; background:#fff; display:flex; flex-direction:column; gap:10px; min-width:0; }
.as-alerts{ display:flex; flex-direction:column; gap:8px; }
.as-alert{ display:flex; flex-wrap:wrap; gap:8px; align-items:center; padding:10px 14px; border-radius:12px; border:1px solid var(--border,#ece6f1); background:#fff; font-size:13px; }
.as-alert.warn{ background:#fff8e8; border-color:#f3dca4; } .as-alert.bad{ background:#fff3f3; border-color:#f1b0b0; } .as-alert.good{ background:#effcf4; border-color:#bfe8cf; }
.as-back{ display:flex; gap:12px; align-items:center; } .as-back h3{ margin:0; }
.as-avail-sel{ min-height:34px; }

/* topbar availability */
.as-avail{ display:inline-flex !important; flex-direction:row !important; align-items:center; gap:6px; padding:0 6px 0 12px; height:42px; border:1px solid var(--border,#ece6f1); border-radius:14px; background:#fff; }
.as-avail select{ border:0 !important; background:transparent !important; box-shadow:none !important; font:inherit; font-size:12px; font-weight:800; min-height:34px !important; width:auto !important; padding:0 4px; }
.as-avail-dot{ width:10px; height:10px; border-radius:50%; background:#16a34a; } .as-avail-dot.unavailable{ background:#f59e0b; } .as-avail-dot.leave{ background:#9ca3af; }

[dir="rtl"] .as-h-row{ direction:rtl; } [dir="rtl"] .as-multi-list{ right:0; }
@media (max-width:1100px){ .as-kpis,.as-kpis.rates{ grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:560px){ .as-kpis.times{ grid-template-columns:1fr; } .as-h-row{ grid-template-columns:1fr; } }

/* demo banner */
.as-demo-banner{ display:flex; flex-wrap:wrap; gap:6px 14px; align-items:center; justify-content:center; padding:7px 14px; background:linear-gradient(90deg,#602d9a,#7a43b6); color:#fff; font-size:12.5px; text-align:center; } .as-demo-banner b{ letter-spacing:.04em; text-transform:uppercase; font-size:11.5px; } .as-demo-banner span{ opacity:.92; }

/* orders table: the extra column must not squeeze the others */
#page-orders .table-wrap{ overflow-x:auto; }
#page-orders .table-wrap table{ min-width:1280px; }
#ordersBody td:first-child{ min-width:168px; font-size:12px; word-break:break-all; }
#ordersBody td:last-child{ white-space:nowrap; min-width:96px; }
#ordersBody td:last-child .btn{ white-space:nowrap !important; word-break:normal !important; overflow-wrap:normal !important; min-width:84px; }
#ordersBody td{ vertical-align:middle; }
#ordersBody td:nth-last-child(2){ min-width:112px; }
.as-table td:first-child{ min-width:150px; } .as-table td .sub{ white-space:nowrap; }

/* product cards: owner line */
.as-card-owner{ display:flex; flex-direction:column; align-items:flex-start; gap:6px; margin:10px 0 2px; padding:8px 10px; border-radius:12px; background:var(--purple-50,#f7f1fc); border:1px solid var(--purple-200,#e3d2f5); font-size:12.5px; }
.as-card-owner-label{ width:100%; font-size:10.5px; font-weight:800; letter-spacing:.05em; text-transform:uppercase; color:#8c8095; }
.as-card-owner b{ flex:1 1 auto; min-width:0; overflow-wrap:anywhere; }

.app-version{ margin:8px 4px 2px; text-align:center; font-size:10.5px; letter-spacing:.04em; color:rgba(255,255,255,.55); }

/* ---- Équipe (v4.30) */
.ta-tabs{ display:flex; gap:6px; flex-wrap:wrap; margin:2px 0 4px; padding:5px; border:1px solid var(--border,#ece6f1); border-radius:16px; background:#fff; width:fit-content; max-width:100%; overflow-x:auto; }
.ta-tab{ min-height:38px; padding:0 16px; border:0; border-radius:12px; background:transparent; font:inherit; font-size:13px; font-weight:800; color:#6d6277; cursor:pointer; white-space:nowrap; }
.ta-tab.active{ background:var(--primary,#602d9a); color:#fff; box-shadow:0 6px 16px rgba(96,45,154,.28); }
.ta-grid2{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; } .ta-grid3{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.ta-roles{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.as-kpi-sub{ font-size:11px; color:#8c8095; font-weight:600; line-height:1.3; }
.ta-panel-head{ display:flex; justify-content:space-between; align-items:center; gap:10px; flex-wrap:wrap; }
.ta-sub{ margin-top:12px; }
.ta-chart{ width:100%; height:auto; aspect-ratio:720/150; display:block; }
.ta-legend{ display:flex; gap:16px; flex-wrap:wrap; font-size:12px; color:#6d6277; } .ta-legend i{ display:inline-block; width:10px; height:10px; border-radius:3px; margin-right:6px; }
.ta-hours{ display:grid; grid-template-columns:repeat(24,minmax(0,1fr)); gap:3px; } .ta-hour{ display:flex; flex-direction:column; align-items:center; gap:3px; } .ta-hour i{ display:block; width:100%; height:34px; border-radius:6px; background:#7c3aed; } .ta-hour small{ height:12px; font-size:10px; color:#8c8095; }
.ta-hbars{ display:flex; flex-direction:column; gap:8px; } .ta-hbar{ display:grid; grid-template-columns:minmax(90px,150px) minmax(0,1fr) auto; gap:10px; align-items:center; font-size:13px; }
.ta-hbar-label{ overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-weight:600; } .ta-hbar-track{ height:10px; border-radius:99px; background:#f1ebf7; overflow:hidden; } .ta-hbar-track i{ display:block; height:100%; border-radius:99px; }
.ta-person{ display:flex; gap:10px; align-items:center; min-width:190px; } .ta-avatar{ flex:0 0 auto; width:34px; height:34px; border-radius:50%; display:inline-flex; align-items:center; justify-content:center; background:#efe6fa; color:var(--primary,#602d9a); font-size:12px; font-weight:800; } .ta-avatar.big{ width:56px; height:56px; font-size:18px; }
.ta-dot{ display:inline-block; width:9px; height:9px; border-radius:50%; background:#cbd5e1; margin-left:4px; vertical-align:middle; } .ta-dot.on{ background:#16a34a; box-shadow:0 0 0 3px rgba(22,163,74,.18); }
.ta-sort{ border:0; background:none; font:inherit; font-weight:800; color:inherit; cursor:pointer; padding:0; white-space:nowrap; } .ta-sort.on{ color:var(--primary,#602d9a); }
.ta-table th,.ta-table td{ white-space:nowrap; } .ta-table td:first-child{ white-space:normal; }
.ta-chips{ display:flex; flex-wrap:wrap; gap:8px; margin-top:10px; }
.ta-member-head{ display:flex; gap:16px; align-items:center; margin-bottom:6px; } .ta-member-head h3{ margin:0; font-size:22px; }
.ta-cat-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(250px,1fr)); gap:12px; } .ta-cat-card{ border:1px solid var(--border,#ece6f1); border-radius:14px; padding:12px 14px; background:#fff; }
.ta-cat-head{ display:flex; align-items:center; gap:8px; margin-bottom:6px; } .ta-cat-head span:last-child{ margin-left:auto; font-weight:800; color:var(--primary,#602d9a); }
.ta-cat{ flex:0 0 auto; display:inline-block; width:10px; height:10px; border-radius:50%; } .ta-cat-card ul{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:4px; font-size:13px; } .ta-cat-card li{ display:flex; justify-content:space-between; gap:10px; }
.ta-filters{ display:flex; flex-wrap:wrap; gap:8px; margin-bottom:8px; } .ta-filters select,.ta-filters input{ min-height:38px; max-width:100%; } .ta-filters input{ flex:1 1 220px; }
.ta-count{ margin-bottom:6px; } .ta-events{ display:flex; flex-direction:column; }
.ta-event{ display:grid; grid-template-columns:14px minmax(0,1fr) auto auto; gap:12px; align-items:flex-start; padding:10px 0; border-bottom:1px solid #f1ebf7; font-size:13px; } .ta-event:last-child{ border-bottom:0; }
.ta-event .ta-cat{ margin-top:5px; } .ta-event time{ color:#8c8095; font-size:12px; white-space:nowrap; } .ta-event-user{ font-size:12px; font-weight:700; color:#6d6277; white-space:nowrap; } .ta-target{ color:#4b4258; overflow-wrap:anywhere; }
.ta-pager{ display:flex; gap:12px; align-items:center; justify-content:center; padding-top:10px; }
@media (max-width:1100px){ .ta-grid2,.ta-grid3,.ta-roles{ grid-template-columns:1fr; } .ta-event{ grid-template-columns:14px minmax(0,1fr); } .ta-event time,.ta-event-user{ grid-column:2; } }
[dir="rtl"] .ta-dot{ margin-left:0; margin-right:4px; } [dir="rtl"] .ta-cat-head span:last-child{ margin-left:0; margin-right:auto; }
