/* Sutradhar — clean white enterprise UI on Bootstrap 5.3.
   Palette: white surfaces, light grey canvas, standard blue primary, semantic green / amber / red. */
:root {
  --sd-canvas: #f5f7fa;
  --sd-surface: #ffffff;
  --sd-surface-2: #f9fafb;
  --sd-border: #e5e7eb;
  --sd-border-strong: #d1d5db;
  --sd-text: #111827;
  --sd-text-2: #374151;
  --sd-muted: #6b7280;
  --sd-primary: #2563eb;
  --sd-primary-600: #1d4ed8;
  --sd-primary-50: #eff6ff;
  --sd-primary-100: #dbeafe;
  --sd-success: #16a34a;
  --sd-warning: #d97706;
  --sd-danger: #dc2626;
  --sd-info: #0891b2;
  --sd-radius: 10px;
  --sd-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 1px 3px rgba(16, 24, 40, .06);
  --sd-shadow-lg: 0 10px 30px rgba(16, 24, 40, .10);
  --sd-sidebar-w: 256px;
  --sd-topbar-h: 60px;

  --bs-primary: var(--sd-primary);
  --bs-primary-rgb: 37, 99, 235;
  --bs-link-color: var(--sd-primary);
  --bs-link-color-rgb: 37, 99, 235;
  --bs-link-hover-color: var(--sd-primary-600);
  --bs-body-font-family: "Inter", "Noto Sans Devanagari", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --bs-body-font-size: .875rem;
  --bs-body-color: var(--sd-text);
  --bs-body-bg: var(--sd-canvas);
  --bs-border-color: var(--sd-border);
  --bs-border-radius: 8px;
  --bs-secondary-color: var(--sd-muted);
}
html[lang="mr"] body { --bs-body-font-family: "Noto Sans Devanagari", "Inter", system-ui, sans-serif; }
body { background: var(--sd-canvas); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5, h6 { color: var(--sd-text); font-weight: 600; letter-spacing: -.01em; }
.text-muted, .text-secondary { color: var(--sd-muted) !important; }
.tabular { font-variant-numeric: tabular-nums; }
.min-w-0 { min-width: 0; }
.fw-medium { font-weight: 500; }
a { text-decoration: none; }
a:hover { text-decoration: underline; }
.btn:hover, .nav-link:hover, .dropdown-item:hover, .list-group-item:hover, a.card:hover, .stretched-link:hover,
.sb-link:hover, .page-link:hover { text-decoration: none; }

/* ---------- buttons & inputs ---------- */
.btn { font-weight: 500; border-radius: 8px; font-size: .875rem; padding: .45rem .9rem; }
.btn-sm { padding: .3rem .65rem; font-size: .8125rem; }
.btn-primary { --bs-btn-bg: var(--sd-primary); --bs-btn-border-color: var(--sd-primary); --bs-btn-hover-bg: var(--sd-primary-600);
  --bs-btn-hover-border-color: var(--sd-primary-600); --bs-btn-active-bg: #1e40af; --bs-btn-disabled-bg: #93c5fd; --bs-btn-disabled-border-color: #93c5fd; }
.btn-light { --bs-btn-bg: #fff; --bs-btn-border-color: var(--sd-border-strong); --bs-btn-color: var(--sd-text-2);
  --bs-btn-hover-bg: var(--sd-surface-2); --bs-btn-hover-border-color: #9ca3af; --bs-btn-active-bg: #f3f4f6; }
.btn-soft { background: var(--sd-primary-50); color: var(--sd-primary-600); border: 1px solid var(--sd-primary-100); }
.btn-soft:hover { background: var(--sd-primary-100); color: var(--sd-primary-600); }
.btn-icon { width: 34px; height: 34px; padding: 0; display: inline-grid; place-items: center; }
.form-control, .form-select { border-color: var(--sd-border-strong); border-radius: 8px; font-size: .875rem; padding: .48rem .75rem; }
.form-control:focus, .form-select:focus { border-color: var(--sd-primary); box-shadow: 0 0 0 3px rgba(37, 99, 235, .15); }
.form-control-sm, .form-select-sm { padding: .3rem .6rem; font-size: .8125rem; }
.form-label { font-weight: 500; color: var(--sd-text-2); font-size: .8125rem; margin-bottom: .3rem; }
.form-label .req { color: var(--sd-danger); }
.form-text { font-size: .75rem; }
.form-check-input:checked { background-color: var(--sd-primary); border-color: var(--sd-primary); }
.invalid-feedback { display: block; }

/* ---------- layout ---------- */
.app { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: var(--sd-sidebar-w); z-index: 1030; background: var(--sd-surface);
  border-right: 1px solid var(--sd-border); display: flex; flex-direction: column; transition: transform .2s ease; }
.sidebar .brand { height: var(--sd-topbar-h); display: flex; align-items: center; gap: .65rem; padding: 0 1.1rem;
  border-bottom: 1px solid var(--sd-border); color: var(--sd-text); flex-shrink: 0; }
.sidebar .brand:hover { text-decoration: none; }
.sidebar .brand img { width: 32px; height: 32px; }
.brand-name { font-weight: 700; font-size: 1rem; line-height: 1.1; }
.brand-sub { font-size: .7rem; color: var(--sd-muted); font-family: "Noto Sans Devanagari", sans-serif; }
.sidebar nav { overflow-y: auto; padding: .5rem .6rem 1.5rem; flex: 1; scrollbar-width: thin; }
.sb-group { font-size: .6875rem; text-transform: uppercase; letter-spacing: .06em; color: #9ca3af; font-weight: 600;
  padding: .9rem .6rem .3rem; display: flex; align-items: center; justify-content: space-between; cursor: default; }
button.sb-group { background: none; border: 0; width: 100%; cursor: pointer; }
button.sb-group .bi { transition: transform .15s; }
button.sb-group.collapsed .bi { transform: rotate(-90deg); }
.sb-link { display: flex; align-items: center; gap: .65rem; padding: .42rem .6rem; border-radius: 7px; color: var(--sd-text-2);
  font-weight: 500; font-size: .845rem; position: relative; white-space: nowrap; }
.sb-link .bi { font-size: 1rem; color: #9ca3af; width: 1.1rem; text-align: center; }
.sb-link:hover { background: var(--sd-surface-2); color: var(--sd-text); }
.sb-link.active { background: var(--sd-primary-50); color: var(--sd-primary-600); }
.sb-link.active .bi { color: var(--sd-primary); }
.sb-link .badge { margin-left: auto; }
.sb-project { margin: .6rem .2rem .2rem; padding: .7rem .75rem; border: 1px solid var(--sd-border); border-radius: 10px; background: var(--sd-surface-2); }
.sb-project .code { font-size: .7rem; color: var(--sd-muted); font-weight: 600; letter-spacing: .03em; }
.sb-project .name { font-weight: 600; font-size: .85rem; line-height: 1.25; }
.sidebar-foot { padding: .75rem 1.1rem; border-top: 1px solid var(--sd-border); font-size: .72rem; color: var(--sd-muted); }

.main { margin-left: var(--sd-sidebar-w); min-height: 100vh; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 1020; height: var(--sd-topbar-h); background: var(--sd-surface);
  border-bottom: 1px solid var(--sd-border); display: flex; align-items: center; gap: .75rem; padding: 0 1.5rem; }
.topbar .icon-btn { width: 36px; height: 36px; display: inline-grid; place-items: center; border-radius: 8px; color: var(--sd-muted);
  background: transparent; border: 1px solid transparent; position: relative; }
.topbar .icon-btn:hover { background: var(--sd-surface-2); border-color: var(--sd-border); color: var(--sd-text); }
.topbar .dot { position: absolute; top: 5px; right: 5px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px;
  background: var(--sd-danger); color: #fff; font-size: .62rem; font-weight: 700; display: grid; place-items: center; }
.search-trigger { display: flex; align-items: center; gap: .5rem; width: 340px; max-width: 40vw; padding: .45rem .75rem;
  border: 1px solid var(--sd-border-strong); border-radius: 8px; background: var(--sd-surface); color: var(--sd-muted); font-size: .85rem; }
.search-trigger:hover { border-color: #9ca3af; }
.search-trigger kbd { margin-left: auto; background: var(--sd-surface-2); color: var(--sd-muted); border: 1px solid var(--sd-border);
  font-size: .68rem; padding: .05rem .35rem; border-radius: 5px; box-shadow: none; }
.content { padding: 1.5rem; flex: 1; width: 100%; max-width: 1600px; }
.page-foot { padding: 1rem 1.5rem; color: var(--sd-muted); font-size: .75rem; border-top: 1px solid var(--sd-border); background: var(--sd-surface); }

@media (max-width: 991.98px) {
  .sidebar { transform: translateX(-100%); }
  body.sidebar-open .sidebar { transform: none; box-shadow: var(--sd-shadow-lg); }
  .main { margin-left: 0; }
  .search-trigger { width: auto; }
  .search-trigger span, .search-trigger kbd { display: none; }
  .content { padding: 1rem; }
  .topbar { padding: 0 1rem; }
}

/* ---------- page header ---------- */
.page-head { display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-end; justify-content: space-between; margin-bottom: 1.25rem; }
.page-head h1 { font-size: 1.375rem; margin: 0; }
.page-head .subtitle { color: var(--sd-muted); margin-top: .25rem; font-size: .875rem; }
.breadcrumb { font-size: .78rem; margin-bottom: .4rem; --bs-breadcrumb-divider: "›"; }
.breadcrumb a { color: var(--sd-muted); }
.breadcrumb-item.active { color: var(--sd-text-2); }

/* ---------- cards ---------- */
.card { border: 1px solid var(--sd-border); border-radius: var(--sd-radius); background: var(--sd-surface); box-shadow: var(--sd-shadow); }
.card-header { background: var(--sd-surface); border-bottom: 1px solid var(--sd-border); padding: .85rem 1.1rem; font-weight: 600;
  display: flex; align-items: center; justify-content: space-between; gap: .5rem; border-radius: var(--sd-radius) var(--sd-radius) 0 0 !important; }
.card-header .sub { font-weight: 400; color: var(--sd-muted); font-size: .8rem; }
.card-body { padding: 1.1rem; }
.card-footer { background: var(--sd-surface-2); border-top: 1px solid var(--sd-border); }
.section-title { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--sd-muted); font-weight: 600; margin-bottom: .6rem; }
.kpi { padding: 1rem 1.1rem; height: 100%; }
.kpi .kpi-label { color: var(--sd-muted); font-size: .8rem; font-weight: 500; display: flex; align-items: center; gap: .4rem; }
.kpi .kpi-value { font-size: 1.6rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; margin-top: .25rem; font-variant-numeric: tabular-nums; }
.kpi .kpi-foot { font-size: .75rem; color: var(--sd-muted); margin-top: .2rem; }
.kpi-icon { width: 30px; height: 30px; border-radius: 8px; display: inline-grid; place-items: center; font-size: .95rem; }
.tone-blue { background: var(--sd-primary-50); color: var(--sd-primary); }
.tone-green { background: #f0fdf4; color: var(--sd-success); }
.tone-amber { background: #fffbeb; color: var(--sd-warning); }
.tone-red { background: #fef2f2; color: var(--sd-danger); }
.tone-cyan { background: #ecfeff; color: var(--sd-info); }
.tone-grey { background: #f3f4f6; color: var(--sd-muted); }
.hover-lift { transition: box-shadow .15s, border-color .15s; }
.hover-lift:hover { box-shadow: var(--sd-shadow-lg); border-color: var(--sd-border-strong); }

/* ---------- tables ---------- */
.table { --bs-table-bg: transparent; margin-bottom: 0; font-size: .845rem; color: var(--sd-text); }
.table > thead th { font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--sd-muted); font-weight: 600;
  background: var(--sd-surface-2); border-bottom: 1px solid var(--sd-border); padding: .6rem .85rem; white-space: nowrap; }
.table > thead th a { color: inherit; }
.table > tbody td { padding: .62rem .85rem; vertical-align: middle; border-color: var(--sd-border); }
.table-hover > tbody > tr:hover > * { --bs-table-hover-bg: #f8fafc; }
.table td a { font-weight: 500; }
.table-wrap { overflow-x: auto; }
.row-link { cursor: pointer; }

/* ---------- chips, dots, avatars ---------- */
.chip { display: inline-flex; align-items: center; gap: .3rem; padding: .12rem .55rem; border-radius: 999px; font-size: .72rem;
  font-weight: 600; white-space: nowrap; line-height: 1.5; border: 1px solid transparent; }
.chip-primary { background: var(--sd-primary-50); color: #1d4ed8; border-color: var(--sd-primary-100); }
.chip-secondary { background: #f3f4f6; color: #4b5563; border-color: #e5e7eb; }
.chip-success { background: #f0fdf4; color: #15803d; border-color: #bbf7d0; }
.chip-warning { background: #fffbeb; color: #b45309; border-color: #fde68a; }
.chip-danger { background: #fef2f2; color: #b91c1c; border-color: #fecaca; }
.chip-info { background: #ecfeff; color: #0e7490; border-color: #a5f3fc; }
.rag-dot { display: inline-block; width: .6rem; height: .6rem; border-radius: 50%; vertical-align: middle; }
.rag-dot.bg-success { background: var(--sd-success) !important; }
.rag-dot.bg-warning { background: #f59e0b !important; }
.rag-dot.bg-danger { background: var(--sd-danger) !important; }
.avatar { --size: 30px; width: var(--size); height: var(--size); border-radius: 50%; display: inline-grid; place-items: center;
  font-size: calc(var(--size) * .38); font-weight: 600; color: #fff; flex-shrink: 0; object-fit: cover; background: hsl(var(--hue, 220) 55% 48%); }
.avatar-sm { --size: 24px; } .avatar-lg { --size: 64px; }
.avatar-stack .avatar { margin-left: -6px; box-shadow: 0 0 0 2px #fff; } .avatar-stack .avatar:first-child { margin-left: 0; }

/* ---------- filter bar ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; padding: .75rem 1rem; border-bottom: 1px solid var(--sd-border); }
.toolbar .form-control, .toolbar .form-select { width: auto; min-width: 150px; }
.toolbar .search { min-width: 240px; flex: 0 1 300px; }

/* ---------- stepper ---------- */
.stepper { display: flex; overflow-x: auto; padding: .25rem 0 .25rem; scrollbar-width: thin; }
.step { flex: 1 0 auto; min-width: 92px; display: flex; flex-direction: column; align-items: center; position: relative; text-align: center; }
.step::before { content: ""; position: absolute; top: 13px; left: -50%; right: 50%; height: 2px; background: var(--sd-border); }
.step:first-child::before { display: none; }
.step .dot { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; z-index: 1; font-size: .75rem; font-weight: 700;
  background: #fff; border: 2px solid var(--sd-border-strong); color: var(--sd-muted); }
.step .label { margin-top: .35rem; font-size: .72rem; font-weight: 600; color: var(--sd-muted); white-space: nowrap; }
.step.done::before, .step.current::before { background: var(--sd-primary); }
.step.done .dot { background: var(--sd-primary); border-color: var(--sd-primary); color: #fff; }
.step.current .dot { border-color: var(--sd-primary); color: var(--sd-primary); box-shadow: 0 0 0 4px var(--sd-primary-100); }
.step.current .label { color: var(--sd-primary-600); }
.step form { display: flex; flex-direction: column; align-items: center; z-index: 1; }
.step button { all: unset; cursor: pointer; display: contents; }

/* ---------- tabs ---------- */
.tabs { display: flex; gap: .25rem; border-bottom: 1px solid var(--sd-border); overflow-x: auto; padding: 0 .75rem; scrollbar-width: none; }
.tabs .nav-link { border: 0; border-bottom: 2px solid transparent; color: var(--sd-muted); font-weight: 500; padding: .7rem .75rem;
  border-radius: 0; white-space: nowrap; background: none; font-size: .845rem; }
.tabs .nav-link:hover { color: var(--sd-text); }
.tabs .nav-link.active { color: var(--sd-primary-600); border-bottom-color: var(--sd-primary); }
.tabs .count { background: #f3f4f6; color: var(--sd-muted); border-radius: 999px; padding: 0 .4rem; font-size: .7rem; margin-left: .25rem; }

/* ---------- progress ---------- */
.progress { height: 6px; border-radius: 999px; background: #eef0f3; }
.progress-bar { background: var(--sd-primary); border-radius: 999px; }
.progress-bar.bg-amber { background: #f59e0b; }

/* ---------- detail definition grid ---------- */
.dl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1rem 1.5rem; }
.dl-grid .dl-item .k { font-size: .75rem; color: var(--sd-muted); font-weight: 500; margin-bottom: .15rem; }
.dl-grid .dl-item .v { font-weight: 500; color: var(--sd-text); word-break: break-word; }
.dl-grid .dl-item.wide { grid-column: 1 / -1; }
.dl-grid .dl-item.wide .v { font-weight: 400; white-space: pre-line; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: .45rem 1.25rem; font-size: .845rem; }
.kv dt { color: var(--sd-muted); font-weight: 500; } .kv dd { margin: 0; font-weight: 500; }

/* ---------- empty state ---------- */
.empty { text-align: center; padding: 2.75rem 1rem; color: var(--sd-muted); }
.empty .icon { width: 52px; height: 52px; border-radius: 14px; background: var(--sd-primary-50); color: var(--sd-primary);
  display: inline-grid; place-items: center; font-size: 1.4rem; margin-bottom: .75rem; }
.empty h6 { color: var(--sd-text); margin-bottom: .25rem; }

/* ---------- kanban ---------- */
.board { display: flex; gap: 1rem; overflow-x: auto; padding-bottom: 1rem; align-items: flex-start; }
.board-col { background: #f3f4f6; border-radius: 10px; width: 290px; flex-shrink: 0; display: flex; flex-direction: column; max-height: calc(100vh - 230px); }
.board-col-head { padding: .7rem .85rem; font-weight: 600; font-size: .8rem; display: flex; align-items: center; gap: .4rem; text-transform: uppercase;
  letter-spacing: .03em; color: var(--sd-text-2); }
.board-col-head .count { margin-left: auto; font-weight: 600; color: var(--sd-muted); }
.board-col-head.over { color: var(--sd-danger); }
.board-list { padding: 0 .6rem .6rem; min-height: 60px; overflow-y: auto; flex: 1; }
.board-card { background: #fff; border: 1px solid var(--sd-border); border-radius: 8px; padding: .65rem .7rem; margin-bottom: .5rem; box-shadow: var(--sd-shadow);
  cursor: grab; font-size: .82rem; }
.board-card:hover { border-color: var(--sd-border-strong); }
.board-card .key { font-size: .7rem; color: var(--sd-muted); font-weight: 600; }
.board-card.sortable-ghost { opacity: .4; }
.board-card.sortable-chosen { box-shadow: var(--sd-shadow-lg); }
.type-icon { width: 16px; height: 16px; border-radius: 4px; display: inline-grid; place-items: center; font-size: .6rem; color: #fff; }
.type-Story { background: #16a34a; } .type-Task { background: #2563eb; } .type-Bug { background: #dc2626; }
.type-Spike { background: #7c3aed; } .type-Sub-task { background: #0891b2; } .type-Epic { background: #9333ea; }
.points { background: #f3f4f6; border-radius: 999px; padding: 0 .45rem; font-size: .7rem; font-weight: 600; color: var(--sd-text-2); }

/* ---------- heat map ---------- */
.heatmap { display: grid; grid-template-columns: 34px repeat(5, 1fr); gap: 4px; }
.heatmap .cell { aspect-ratio: 1.6; border-radius: 6px; display: grid; place-items: center; font-weight: 700; font-size: .9rem; color: #111827; }
.heatmap .axis { display: grid; place-items: center; font-size: .72rem; color: var(--sd-muted); font-weight: 600; }
.heat-1 { background: #dcfce7; } .heat-2 { background: #fef9c3; } .heat-3 { background: #fed7aa; } .heat-4 { background: #fecaca; }

/* ---------- palette & toasts ---------- */
.palette .modal-content { border-radius: 12px; border: 1px solid var(--sd-border); overflow: hidden; box-shadow: var(--sd-shadow-lg); }
.palette input { border: 0; font-size: 1rem; padding: .95rem 1rem; box-shadow: none !important; }
.palette .results { max-height: 380px; overflow-y: auto; border-top: 1px solid var(--sd-border); }
.palette .result { display: flex; align-items: center; gap: .75rem; padding: .6rem 1rem; color: var(--sd-text); }
.palette .result:hover, .palette .result.active { background: var(--sd-primary-50); text-decoration: none; }
.palette .result .type { margin-left: auto; font-size: .68rem; color: var(--sd-muted); text-transform: uppercase; letter-spacing: .05em; }
.toast-stack { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 1100; display: flex; flex-direction: column; gap: .5rem; }
.toast { border: 1px solid var(--sd-border); border-radius: 10px; box-shadow: var(--sd-shadow-lg); background: #fff; min-width: 320px; }
.toast .toast-body { display: flex; gap: .6rem; align-items: flex-start; }
.toast.t-success { border-left: 4px solid var(--sd-success); } .toast.t-error { border-left: 4px solid var(--sd-danger); }
.toast.t-warning { border-left: 4px solid #f59e0b; } .toast.t-info { border-left: 4px solid var(--sd-primary); }

/* ---------- misc ---------- */
.list-clean { list-style: none; padding: 0; margin: 0; }
.list-clean > li { padding: .65rem 1rem; border-bottom: 1px solid var(--sd-border); }
.list-clean > li:last-child { border-bottom: 0; }
.timeline { border-left: 2px solid var(--sd-border); margin-left: .5rem; padding-left: 1.1rem; }
.timeline .t-item { position: relative; padding-bottom: 1rem; }
.timeline .t-item::before { content: ""; position: absolute; left: -1.45rem; top: .3rem; width: 10px; height: 10px; border-radius: 50%;
  background: #fff; border: 2px solid var(--sd-primary); }
.comment { border: 1px solid var(--sd-border); border-radius: 10px; padding: .75rem .9rem; background: #fff; }
.comment.internal { background: #fffbeb; border-color: #fde68a; }
.markdown h1, .markdown h2, .markdown h3 { margin-top: 1.2rem; }
.markdown pre { background: #f3f4f6; padding: .75rem; border-radius: 8px; }
.markdown table { border-collapse: collapse; } .markdown td, .markdown th { border: 1px solid var(--sd-border); padding: .35rem .6rem; }
.raci-cell { width: 30px; height: 26px; display: inline-grid; place-items: center; border-radius: 6px; font-weight: 700; font-size: .75rem; }
.raci-R { background: var(--sd-primary-50); color: var(--sd-primary-600); } .raci-A { background: #fffbeb; color: #b45309; }
.raci-C { background: #ecfeff; color: #0e7490; } .raci-I { background: #f3f4f6; color: var(--sd-muted); }
.grid-quadrant { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.grid-quadrant > div { border: 1px dashed var(--sd-border-strong); border-radius: 10px; padding: .75rem; min-height: 90px; background: var(--sd-surface-2); }
.checklist-item.done label { text-decoration: line-through; color: var(--sd-muted); }
.sla-bar { height: 4px; border-radius: 2px; background: #eef0f3; overflow: hidden; } .sla-bar > span { display: block; height: 100%; }
.poker-card { width: 64px; height: 88px; border: 2px solid var(--sd-border-strong); border-radius: 10px; display: grid; place-items: center;
  font-size: 1.4rem; font-weight: 700; background: #fff; cursor: pointer; }
.poker-card.selected, .poker-card:hover { border-color: var(--sd-primary); color: var(--sd-primary); background: var(--sd-primary-50); }
.retro-col { background: var(--sd-surface-2); border: 1px solid var(--sd-border); border-radius: 10px; padding: .75rem; min-height: 300px; }
.retro-note { background: #fff; border: 1px solid var(--sd-border); border-radius: 8px; padding: .55rem .65rem; margin-bottom: .5rem; font-size: .82rem; }
.week-grid input { width: 64px; text-align: center; }
.login-shell { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; background: #fff; }
.login-side { background: linear-gradient(160deg, #1e3a8a 0%, #2563eb 60%, #3b82f6 100%); color: #e0e7ff; padding: 3rem; display: flex;
  flex-direction: column; justify-content: space-between; }
.login-side h1 { color: #fff; font-size: 2.4rem; font-weight: 700; }
.login-side .tag { font-family: "Noto Sans Devanagari", sans-serif; color: #bfdbfe; font-size: 1.2rem; }
.login-side .lifecycle span { display: inline-block; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; padding: .2rem .7rem; font-size: .76rem; margin: 0 .25rem .4rem 0; }
.login-form { display: grid; place-items: center; padding: 2rem; }
.login-form form { width: 100%; max-width: 380px; }
@media (max-width: 860px) { .login-shell { grid-template-columns: 1fr; } .login-side { padding: 2rem; } .login-side h1 { font-size: 1.8rem; } }
.gantt-container { overflow-x: auto; } .gantt .bar-progress { fill: var(--sd-primary) !important; } .gantt .bar { fill: #bfdbfe !important; }

/* ---------- print ---------- */
@media print {
  .sidebar, .topbar, .toast-stack, .no-print, .toolbar, .pagination, .page-foot, .btn { display: none !important; }
  .main { margin: 0 !important; } .content { padding: 0; max-width: none; }
  .card { box-shadow: none; break-inside: avoid; } body { background: #fff; font-size: 10.5pt; }
}

/* actions area: compact controls in the page header */
.page-head > div:last-child { align-items: center; }
.page-head form { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: 0; }
.page-head .form-select, .page-head .form-control { width: auto; min-width: 150px; max-width: 260px; }
.page-head .btn { white-space: nowrap; }
.type-icon { width: 14px; height: 14px; border-radius: 3px; vertical-align: -2px; }
.toolbar .search .form-control { padding-left: 2.1rem !important; }
.table td:first-child a, .table td:first-child { white-space: nowrap; }
