/* ==================================================================
   Gestor de tareas · estilos (mobile-first, sobre Bootstrap 5.3)
   ================================================================== */
:root {
  --brand: #4f46e5;
  --brand-rgb: 79, 70, 229;
  --bg: #f5f6fa;
  --surface: #ffffff;
  --surface-2: #f8f9fc;
  --line: #e4e7ef;
  --ink: #1e2433;
  --ink-2: #5b6478;
  --side-bg: #111827;
  --side-ink: #c9cfdb;
  --side-active: rgba(255, 255, 255, .08);
  --radius: 12px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 1px 3px rgba(16, 24, 40, .06);
  --shadow-lg: 0 12px 32px rgba(16, 24, 40, .12);
  --sidebar-w: 248px;
  --bs-primary: var(--brand);
  --bs-primary-rgb: var(--brand-rgb);
  --bs-link-color: var(--brand);
  --bs-link-color-rgb: var(--brand-rgb);
  --bs-body-font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --bs-body-color: var(--ink);
  --bs-body-bg: var(--bg);
}
[data-bs-theme="dark"] {
  --bg: #0f1320;
  --surface: #171c2b;
  --surface-2: #1d2334;
  --line: #2a3145;
  --ink: #e6e9f2;
  --ink-2: #9aa3b8;
  --side-bg: #0b0e17;
  --bs-body-color: var(--ink);
  --bs-body-bg: var(--bg);
}
html, body { height: 100%; }
html { scroll-padding-top: 72px; }
body { background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased; }
.btn-primary { --bs-btn-bg: var(--brand); --bs-btn-border-color: var(--brand); --bs-btn-hover-bg: color-mix(in srgb, var(--brand) 88%, #000); --bs-btn-hover-border-color: color-mix(in srgb, var(--brand) 88%, #000); --bs-btn-active-bg: color-mix(in srgb, var(--brand) 80%, #000); --bs-btn-disabled-bg: var(--brand); --bs-btn-disabled-border-color: var(--brand); }
.btn-outline-primary { --bs-btn-color: var(--brand); --bs-btn-border-color: var(--brand); --bs-btn-hover-bg: var(--brand); --bs-btn-hover-border-color: var(--brand); --bs-btn-active-bg: var(--brand); }
.text-primary { color: var(--brand) !important; }
.bg-primary { background-color: var(--brand) !important; }
.form-control:focus, .form-select:focus, .form-check-input:focus { border-color: color-mix(in srgb, var(--brand) 60%, #fff); box-shadow: 0 0 0 .2rem rgba(var(--brand-rgb), .18); }
.form-check-input:checked { background-color: var(--brand); border-color: var(--brand); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.skip-link { position: absolute; z-index: 2000; top: 8px; left: 8px; background: #fff; padding: 8px 12px; border-radius: 8px; }
.boot { position: fixed; inset: 0; display: grid; place-items: center; background: var(--bg); z-index: 3000; }

/* ---------------- Acceso ---------------- */
.auth { min-height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px 16px;
  background: radial-gradient(1200px 600px at 10% -10%, rgba(var(--brand-rgb), .18), transparent 60%), radial-gradient(900px 500px at 110% 110%, rgba(34, 197, 94, .12), transparent 60%), var(--bg); }
.auth-card { width: 100%; max-width: 410px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 32px 28px; box-shadow: var(--shadow-lg); }
.auth-logo { max-height: 72px; max-width: 220px; object-fit: contain; }
.auth-foot { margin-top: 16px; }

/* ---------------- Estructura ---------------- */
.app { min-height: 100%; }
.sidebar { background: var(--side-bg) !important; color: var(--side-ink); display: flex; flex-direction: column; }
@media (min-width: 992px) {
  .sidebar { position: fixed !important; inset: 0 auto 0 0; width: var(--sidebar-w); visibility: visible !important; transform: none !important; }
  .main { margin-left: var(--sidebar-w); }
}
@media (max-width: 991.98px) { .sidebar { width: min(86vw, 300px) !important; } }
.sidebar-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 16px 10px; }
.brand { display: flex; gap: 10px; align-items: center; color: #fff; text-decoration: none; min-width: 0; }
.brand img { border-radius: 9px; object-fit: contain; background: rgba(255,255,255,.06); }
.brand span { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand strong { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand small { color: #8b93a7; font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 170px; }
.sidebar-nav { flex: 1; overflow-y: auto; padding: 8px 10px 16px; }
.nav-sec { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: #6b7389; padding: 14px 10px 6px; }
.nav-link-x { display: flex; align-items: center; gap: 11px; color: var(--side-ink); text-decoration: none; padding: 8px 10px; border-radius: 9px; font-size: 14.5px; }
.nav-link-x i { font-size: 17px; width: 20px; text-align: center; opacity: .9; }
.nav-link-x:hover { background: var(--side-active); color: #fff; }
.nav-link-x.active { background: rgba(var(--brand-rgb), .9); color: #fff; }
.nav-link-x .count { margin-left: auto; font-size: 11px; background: rgba(255,255,255,.12); padding: 1px 7px; border-radius: 99px; }
.sidebar-foot { color: #59607a; padding: 10px 18px; }

.topbar { position: sticky; top: 0; z-index: 1020; display: flex; align-items: center; gap: 10px; padding: 10px 16px; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.btn-icon { border: 0; background: transparent; color: var(--ink-2); width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 10px; }
.btn-icon:hover { background: var(--surface); color: var(--ink); }
.search { position: relative; flex: 1; max-width: 520px; }
.search > i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--ink-2); }
.search input { padding-left: 36px; border-radius: 10px; background: var(--surface); }
.search-results { width: 100%; max-height: 70vh; overflow: auto; }
.search-results.show { display: block; }
.topbar-actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.btn-new { border-radius: 10px; }
.bell-badge { position: absolute; top: 3px; right: 2px; font-size: 10px; }
.notif-menu { width: min(380px, 92vw); max-height: 70vh; overflow: auto; padding: 0; }
.notif-item { display: flex; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; }
.notif-item:hover { background: var(--surface-2); }
.notif-item.unread { background: rgba(var(--brand-rgb), .05); }
.notif-item .ico { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; flex: none; background: rgba(var(--brand-rgb), .1); color: var(--brand); }
.crumbs-wrap { padding: 10px 20px 0; }
.breadcrumb { margin: 0; font-size: 13px; flex-wrap: nowrap; overflow-x: auto; white-space: nowrap; }
.breadcrumb a { text-decoration: none; }
.view { padding: 12px 20px 40px; outline: none; }
@media (max-width: 575.98px) { .view { padding: 10px 12px 80px; } .crumbs-wrap { padding: 8px 12px 0; } .topbar { padding: 8px 10px; } }

/* ---------------- Componentes ---------------- */
.page-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-bottom: 14px; }
.page-head h1 { font-size: 1.45rem; margin: 0; font-weight: 650; letter-spacing: -.01em; display: flex; align-items: center; gap: 10px; }
.page-head .sub { color: var(--ink-2); font-size: 14px; }
.page-head .actions { margin-left: auto; display: flex; flex-wrap: wrap; gap: 8px; }
.cardx { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.cardx-h { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-weight: 600; }
.cardx-h .actions { margin-left: auto; }
.cardx-b { padding: 14px 16px; }
.muted { color: var(--ink-2); }
.small-2 { font-size: 12.5px; }
.empty { text-align: center; padding: 36px 16px; color: var(--ink-2); }
.empty i { font-size: 38px; display: block; margin-bottom: 8px; opacity: .55; }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 99px; font-size: 12px; font-weight: 500; line-height: 1.6; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2); white-space: nowrap; }
.chip-status { color: #fff; border: 0; }
.chip-dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; display: inline-block; }
.prio { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.prio-urgent { color: #dc2626; } .prio-high { color: #ea580c; } .prio-normal { color: #2563eb; } .prio-low { color: #64748b; }
.avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; display: inline-grid; place-items: center; font-size: 11px; font-weight: 700; color: #fff; flex: none; background: #94a3b8; border: 2px solid var(--surface); }
.avatar-lg { width: 72px; height: 72px; font-size: 24px; }
.avatar-md { width: 36px; height: 36px; font-size: 13px; }
.avatars { display: inline-flex; }
.avatars .avatar + .avatar { margin-left: -8px; }
.progress-thin { height: 6px; border-radius: 99px; background: var(--surface-2); }
.progress-thin .progress-bar { background: var(--brand); border-radius: 99px; }
.kpi { padding: 14px 16px; display: flex; gap: 12px; align-items: center; }
.kpi .ico { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; font-size: 20px; flex: none; }
.kpi .val { font-size: 1.55rem; font-weight: 700; line-height: 1; }
.kpi .lbl { font-size: 12.5px; color: var(--ink-2); margin-top: 3px; }
.def { font-size: 11.5px; color: var(--ink-2); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.filters .form-select, .filters .form-control { width: auto; min-width: 140px; font-size: 14px; }
@media (max-width: 575.98px) { .filters .form-select, .filters .form-control { flex: 1 1 45%; min-width: 0; } }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--surface); }
.seg button { border: 0; background: transparent; padding: 6px 12px; font-size: 13.5px; color: var(--ink-2); }
.seg button.on { background: rgba(var(--brand-rgb), .1); color: var(--brand); font-weight: 600; }
.cat-chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 12px; }
.cat-chip { border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 8px 12px; display: flex; align-items: center; gap: 8px; white-space: nowrap; font-size: 13.5px; color: var(--ink); }
.cat-chip .n { font-weight: 700; font-size: 16px; }
.cat-chip.on { border-color: var(--brand); box-shadow: 0 0 0 2px rgba(var(--brand-rgb), .15); }

/* ---------------- Árbol de tareas ---------------- */
.tree { list-style: none; margin: 0; padding: 0; }
.tree .tree { padding-left: 22px; border-left: 1px dashed var(--line); margin-left: 15px; }
.trow { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; min-height: 46px; }
.trow:hover { background: var(--surface-2); }
.trow .tog { width: 24px; height: 24px; border: 0; background: transparent; color: var(--ink-2); border-radius: 6px; flex: none; display: grid; place-items: center; }
.trow .tog:hover { background: var(--line); }
.trow .tog.leaf { visibility: hidden; }
.trow .check { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #c4c9d6; background: transparent; flex: none; display: grid; place-items: center; color: #fff; font-size: 13px; padding: 0; }
.trow .check:hover { border-color: #16a34a; }
.trow .check.done { background: #16a34a; border-color: #16a34a; }
.trow .check:disabled { opacity: .45; }
.trow .ttl { flex: 1; min-width: 0; }
.trow .ttl a { color: var(--ink); text-decoration: none; font-weight: 520; }
.trow .ttl a:hover { color: var(--brand); }
.trow .ttl .meta { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 12px; color: var(--ink-2); margin-top: 2px; }
.trow.resolved .ttl a { color: var(--ink-2); text-decoration: line-through; }
.trow.ctx { opacity: .75; }
.trow.ctx .ttl a { font-weight: 600; color: var(--ink-2); }
.trow .side { display: flex; align-items: center; gap: 10px; flex: none; }
.trow .due { font-size: 12.5px; color: var(--ink-2); white-space: nowrap; }
.trow .due.over { color: #dc2626; font-weight: 600; }
.trow .due.today { color: #ea580c; font-weight: 600; }
.trow .menu-btn { width: 30px; height: 30px; }
@media (max-width: 767.98px) { .trow .side .hide-sm { display: none !important; } .tree .tree { padding-left: 12px; margin-left: 10px; } }
.proj-group { margin-bottom: 14px; }
.proj-group > .cardx-h { cursor: pointer; }
.proj-icon { width: 30px; height: 30px; border-radius: 8px; display: inline-grid; place-items: center; color: #fff; flex: none; font-size: 15px; }
.flag { font-size: 10.5px; padding: 1px 7px; border-radius: 99px; font-weight: 600; }
.flag-overdue { background: #fee2e2; color: #b91c1c; } .flag-today { background: #ffedd5; color: #c2410c; } .flag-pending { background: #f1f5f9; color: #475569; }
.flag-urgent { background: #fce7f3; color: #be185d; } .flag-blocked { background: #fee2e2; color: #991b1b; } .flag-new { background: #dcfce7; color: #15803d; } .flag-upcoming { background: #e0e7ff; color: #4338ca; }
[data-bs-theme="dark"] .flag { filter: brightness(.9) saturate(1.2); }

/* ---------------- Proyectos ---------------- */
.proj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.proj-card { padding: 16px; display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: inherit; transition: transform .12s, box-shadow .12s; border-top: 4px solid var(--pc, var(--brand)); }
.proj-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); color: inherit; }
.proj-card h3 { font-size: 16px; margin: 0; font-weight: 650; }

/* ---------------- Ficha ---------------- */
.detail-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 1200px) { .detail-grid { grid-template-columns: minmax(0, 1fr) 340px; } }
.props { display: grid; grid-template-columns: 120px 1fr; gap: 10px 12px; font-size: 14px; align-items: center; }
.props dt { color: var(--ink-2); font-weight: 500; font-size: 13px; }
.props dd { margin: 0; min-width: 0; }
.nav-tabs-x { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; margin-bottom: 14px; }
.nav-tabs-x button { border: 0; background: transparent; padding: 10px 12px; color: var(--ink-2); border-bottom: 2px solid transparent; white-space: nowrap; font-size: 14px; }
.nav-tabs-x button.on { color: var(--brand); border-bottom-color: var(--brand); font-weight: 600; }
.nav-tabs-x .badge { font-weight: 600; background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line); }
.rich { overflow-wrap: anywhere; }
.rich img { max-width: 100%; height: auto; border-radius: 6px; }
.rich table { border-collapse: collapse; margin: 8px 0; max-width: 100%; }
.rich td, .rich th { border: 1px solid var(--line); padding: 4px 8px; }
.rich p:last-child { margin-bottom: 0; }
.comment { display: flex; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.comment:last-child { border-bottom: 0; }
.comment .body { flex: 1; min-width: 0; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { position: relative; padding: 0 0 14px 22px; font-size: 13.5px; }
.timeline li::before { content: ""; position: absolute; left: 5px; top: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--c, #94a3b8); }
.timeline li::after { content: ""; position: absolute; left: 9px; top: 18px; bottom: 0; width: 1px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.file-row { display: flex; align-items: center; gap: 10px; padding: 8px 4px; border-bottom: 1px solid var(--line); }
.file-row .fi { font-size: 24px; width: 32px; text-align: center; flex: none; }
.dropzone { border: 2px dashed var(--line); border-radius: 12px; padding: 18px; text-align: center; color: var(--ink-2); cursor: pointer; }
.dropzone.over { border-color: var(--brand); background: rgba(var(--brand-rgb), .05); }

/* ---------------- Selector de personas ---------------- */
.picker { position: relative; }
.picker .chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px; min-height: 40px; border: 1px solid var(--bs-border-color); border-radius: 8px; background: var(--bs-body-bg); cursor: text; }
.picker .chips input { border: 0; outline: 0; flex: 1; min-width: 120px; background: transparent; color: inherit; }
.picker .pchip { display: inline-flex; align-items: center; gap: 6px; background: rgba(var(--brand-rgb), .1); color: var(--brand); border-radius: 99px; padding: 2px 4px 2px 8px; font-size: 13px; }
.picker .pchip button { border: 0; background: transparent; color: inherit; padding: 0 4px; line-height: 1; }
.picker .pchip select { border: 0; background: transparent; color: inherit; font-size: 12px; }
.picker .opts { position: absolute; z-index: 1060; left: 0; right: 0; top: 100%; max-height: 240px; overflow: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow-lg); display: none; }
.picker .opts.show { display: block; }
.picker .opts button { display: flex; width: 100%; gap: 8px; align-items: center; border: 0; background: transparent; padding: 7px 10px; text-align: left; color: inherit; font-size: 14px; }
.picker .opts button:hover, .picker .opts button.hl { background: var(--surface-2); }

/* ---------------- Calendario y Gantt ---------------- */
.fc { --fc-border-color: var(--line); --fc-today-bg-color: rgba(var(--brand-rgb), .06); --fc-page-bg-color: var(--surface); --fc-neutral-bg-color: var(--surface-2); --fc-list-event-hover-bg-color: var(--surface-2); font-size: 13.5px; }
.fc .fc-toolbar-title { font-size: 1.15rem; text-transform: capitalize; }
.fc .fc-button-primary { background: var(--surface); color: var(--ink); border-color: var(--line); text-transform: capitalize; }
.fc .fc-button-primary:not(:disabled).fc-button-active, .fc .fc-button-primary:not(:disabled):active { background: var(--brand); border-color: var(--brand); color: #fff; }
.fc .fc-button-primary:hover { background: var(--surface-2); color: var(--ink); border-color: var(--line); }
.fc .ev-resolved { opacity: .6; text-decoration: line-through; }
.fc .ev-overdue { box-shadow: inset 3px 0 0 #b91c1c; }
.fc .ev-blocked { background-image: repeating-linear-gradient(45deg, rgba(255,255,255,.18) 0 6px, transparent 6px 12px); }
.fc .ev-project { border-style: dashed !important; font-weight: 600; }
@media (max-width: 767.98px) { .fc .fc-toolbar { flex-direction: column; gap: 8px; } .fc .fc-toolbar-title { font-size: 1rem; } }
.legend { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: 12.5px; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i.sw { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.gantt-wrap { height: calc(100vh - 250px); min-height: 420px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.gantt_task_line.g-overdue { box-shadow: 0 0 0 2px #dc2626; }
.gantt_task_line.g-resolved { opacity: .55; }
.gantt_task_line.g-context, .gantt_row.g-context { opacity: .55; }
.gantt_task_line.gantt_milestone { background: #7c3aed; border-color: #6d28d9; }
.gantt_task_line.gantt_project { background: #64748b; border-color: #475569; }
.gantt_grid_head_cell, .gantt_scale_cell { font-size: 12px; }
.gantt-mobile .gantt_grid { display: none; }

/* ---------------- Admin ---------------- */
.perm-table th, .perm-table td { font-size: 13px; vertical-align: middle; }
.perm-table td.scope select { font-size: 12.5px; padding: 2px 24px 2px 6px; min-width: 120px; }
.table-cards thead { display: none; }
@media (min-width: 768px) { .table-cards thead { display: table-header-group; } }
@media (max-width: 767.98px) {
  .table-cards tbody tr { display: block; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; padding: 8px 10px; background: var(--surface); }
  .table-cards tbody td { display: flex; justify-content: space-between; gap: 10px; border: 0; padding: 4px 2px; }
  .table-cards tbody td::before { content: attr(data-label); color: var(--ink-2); font-size: 12px; font-weight: 600; }
  .table-cards tbody td[data-label=""]::before { content: none; }
}
.status-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.status-row .sw { width: 16px; height: 16px; border-radius: 5px; flex: none; }
.drag-handle { cursor: grab; color: var(--ink-2); }
.sortable-ghost { opacity: .4; }

/* ---------------- Modales y formularios ---------------- */
.modal-content { border-radius: 16px; border: 1px solid var(--line); background: var(--surface); }
.modal-header, .modal-footer { border-color: var(--line); }
@media (max-width: 575.98px) { .modal-dialog { margin: 0; } .modal-content { border-radius: 0; min-height: 100vh; } .modal-dialog-scrollable { height: 100%; max-height: 100%; } }
.form-label { font-weight: 550; font-size: 13.5px; margin-bottom: 4px; }
.form-text { font-size: 12px; }
.tox-tinymce { border-radius: 8px !important; }
.req::after { content: " *"; color: #dc2626; }
.loading-row { padding: 30px; text-align: center; color: var(--ink-2); }
.bar { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; display: flex; }
.bar > span { display: block; height: 100%; }
.kanban-legend { font-size: 12px; }
.sticky-actions { position: sticky; bottom: 0; background: var(--surface); padding: 10px 0; border-top: 1px solid var(--line); }
.chart-box { position: relative; height: 240px; }
.text-truncate-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
@media print { .sidebar, .topbar, .crumbs-wrap, .page-head .actions, .filters { display: none !important; } .main { margin: 0 !important; } }
/* Evita desbordamientos horizontales en móvil */
.main { min-width: 0; }
.detail-grid > *, .row > * { min-width: 0; }
.page-head h1 { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 575.98px) { .page-head .actions { margin-left: 0; width: 100%; } .search { min-width: 0; } }
@media (max-width: 767.98px) {
  .trow { flex-wrap: wrap; row-gap: 2px; }
  .trow .ttl { flex: 1 1 calc(100% - 70px); }
  .trow .side { width: 100%; padding-left: 56px; justify-content: flex-start; gap: 8px; }
  .trow .side .dropdown { margin-left: auto; }
}
