@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/onest-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/onest-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: dark;
  --bg: #0a1826;
  --sidebar: #0a1a29;
  --sidebar-edge: rgba(145, 185, 219, 0.16);
  --surface: #102438;
  --surface-soft: #132b41;
  --text: #f4f8fc;
  --muted: #91a6b8;
  --muted-strong: #b2c2ce;
  --accent: #29a9ff;
  --accent-soft: rgba(41, 169, 255, 0.11);
  --green: #3ad99f;
  --sidebar-width: 268px;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: "Onest", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button { font: inherit; }

.app-shell { min-height: 100vh; }

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 30;
  display: flex;
  width: var(--sidebar-width);
  flex-direction: column;
  background: linear-gradient(180deg, #0b1d2c 0%, #091824 100%);
  border-right: 1px solid var(--sidebar-edge);
  transition: transform .28s ease;
}

.brand {
  display: flex;
  align-items: center;
  height: 88px;
  padding: 0 28px;
  border-bottom: 1px solid rgba(133, 169, 205, 0.08);
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  margin-right: 12px;
  color: #5cc0ff;
  background: linear-gradient(145deg, rgba(41,169,255,.2), rgba(41,169,255,.05));
  border: 1px solid rgba(85, 190, 255, .25);
  border-radius: 11px;
  box-shadow: inset 0 0 20px rgba(41,169,255,.06), 0 8px 24px rgba(0,0,0,.12);
}

.brand-mark svg { width: 24px; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.brand-copy { display: flex; flex-direction: column; }
.brand-copy span { font-size: 17px; font-weight: 700; letter-spacing: .2em; }
.brand-copy small { margin-top: 3px; color: #567187; font-size: 9px; font-weight: 700; letter-spacing: .22em; }

.navigation { flex: 1; padding: 28px 16px; overflow-y: auto; }
.nav-caption { margin: 0 12px 14px; color: #526a80; font-size: 10px; font-weight: 650; letter-spacing: .13em; }
.nav-group { margin-bottom: 5px; }

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  height: 48px;
  padding: 0 12px;
  color: #7f93a7;
  background: transparent;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  text-align: left;
  text-decoration: none;
  transition: color .18s ease, background .18s ease;
}

.nav-item:hover { color: #c7d9e7; background: rgba(255,255,255,.025); }
.nav-item.active { color: #e6f5ff; background: linear-gradient(90deg, rgba(41,169,255,.13), rgba(41,169,255,.045)); }
.nav-item.active::before { content: ""; position: absolute; left: 0; width: 2px; height: 22px; background: var(--accent); border-radius: 0 3px 3px 0; box-shadow: 0 0 10px rgba(41,169,255,.5); }
.nav-icon { display: grid; width: 24px; height: 24px; place-items: center; margin-right: 11px; }
.nav-icon svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; }
.nav-item > span:nth-child(2) { flex: 1; font-size: 14px; font-weight: 600; }
.chevron { width: 18px; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s ease; }
.nav-group.expanded .chevron { transform: rotate(180deg); }

.submenu { max-height: 0; margin: 0 0 0 35px; overflow: hidden; border-left: 1px solid rgba(114, 151, 183, .13); transition: max-height .25s ease, margin .25s ease; }
.nav-group.expanded .submenu { max-height: 112px; margin-top: 5px; margin-bottom: 10px; }
.submenu-item { position: relative; display: flex; align-items: center; width: 100%; height: 42px; padding: 0 0 0 20px; color: #70869a; background: transparent; border: 0; cursor: pointer; text-align: left; text-decoration: none; font-size: 13.5px; font-weight: 500; transition: color .18s ease; }
.submenu-item:hover { color: #a9bccd; }
.submenu-item.active { color: #5bbdff; }
.submenu-dot { position: absolute; left: -3px; width: 5px; height: 5px; background: #263c50; border-radius: 50%; box-shadow: 0 0 0 4px var(--sidebar); }
.submenu-item.active .submenu-dot { background: var(--accent); box-shadow: 0 0 0 4px var(--sidebar), 0 0 10px rgba(41,169,255,.6); }

.main-content { min-height: 100vh; margin-left: var(--sidebar-width); background: #0d1d2c; }
.topbar { position: relative; z-index: 10; display: flex; align-items: center; justify-content: space-between; height: 88px; padding: 0 36px 0 40px; background: rgba(13, 31, 48, .94); border-bottom: 1px solid rgba(145,185,219,.15); backdrop-filter: blur(18px); }
.topbar-left { display: flex; align-items: center; min-width: 0; }
.breadcrumbs { display: flex; gap: 8px; margin-bottom: 5px; color: #60798f; font-size: 11px; font-weight: 500; letter-spacing: .01em; }
.breadcrumbs b { color: #30475b; font-weight: 400; }
.page-heading h1 { margin: 0; font-size: 22px; font-weight: 650; letter-spacing: -.025em; }
.mobile-menu { display: none; width: 42px; height: 42px; margin-right: 14px; place-items: center; color: #8ba2b7; background: rgba(255,255,255,.03); border: 1px solid rgba(133,169,205,.12); border-radius: 11px; cursor: pointer; }
.mobile-menu svg, .icon-button svg { width: 20px; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.icon-button { position: relative; display: grid; width: 40px; height: 40px; place-items: center; color: #71869a; background: transparent; border: 0; cursor: pointer; }
.icon-button:hover { color: #bcd1e2; }
.notification-mark { position: absolute; top: 8px; right: 8px; width: 5px; height: 5px; background: var(--accent); border: 2px solid #0a1726; border-radius: 50%; box-sizing: content-box; }
.profile-menu { position: relative; }
.profile { display: flex; align-items: center; width: 268px; min-width: 0; padding: 7px 8px; color: inherit; background: rgba(12, 31, 49, .72); border: 1px solid rgba(111, 158, 194, .12); border-radius: 12px; box-shadow: inset 0 1px 0 rgba(255,255,255,.018); text-align: left; }
.profile-trigger { cursor: pointer; }
.avatar { display: grid; width: 36px; height: 36px; flex: 0 0 auto; place-items: center; color: #8bd4ff; background: linear-gradient(145deg, #123b5c, #0b2942); border: 1px solid rgba(71,171,237,.28); border-radius: 10px; font-size: 11px; font-weight: 700; box-shadow: 0 5px 14px rgba(0,0,0,.14); }
.profile-copy { display: flex; min-width: 0; flex: 1; flex-direction: column; margin: 0 10px; overflow: hidden; }
.profile-copy strong { overflow: hidden; color: #dce6ee; font-size: 14px; font-weight: 600; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.profile-copy span { margin-top: 2px; overflow: hidden; color: #718da3; font-size: 11px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.profile-menu-chevron { width: 18px; flex: 0 0 auto; color: #597287; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s ease; }
.profile-menu.open .profile-menu-chevron { transform: rotate(180deg); }
.profile-dropdown { position: absolute; top: calc(100% + 10px); right: 0; z-index: 60; width: 242px; padding: 8px; visibility: hidden; background: #0b1b2c; border: 1px solid rgba(111,158,194,.16); border-radius: 13px; box-shadow: 0 18px 46px rgba(0,0,0,.34); opacity: 0; transform: translateY(-6px); transition: opacity .18s ease, transform .18s ease, visibility .18s ease; }
.profile-menu.open .profile-dropdown { visibility: visible; opacity: 1; transform: translateY(0); }
.profile-dropdown-user { display: flex; min-width: 0; flex-direction: column; padding: 8px 10px 10px; }
.profile-dropdown-user strong { overflow: hidden; color: #dce7ef; font-size: 13px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.profile-dropdown-user span { margin-top: 4px; overflow: hidden; color: #698399; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.profile-dropdown-divider { height: 1px; margin: 0 4px 6px; background: rgba(111,158,194,.1); }
.profile-logout { display: flex; align-items: center; height: 42px; padding: 0 10px; color: #a9bac8; border-radius: 9px; text-decoration: none; font-size: 12px; font-weight: 500; transition: color .18s ease, background .18s ease; }
.profile-logout:hover { color: #f0a4a4; background: rgba(226,91,91,.09); }
.profile-logout svg { width: 18px; margin-right: 10px; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; }

.workspace { position: relative; display: grid; min-height: calc(100vh - 88px); place-items: center; padding: 40px; overflow: hidden; background-image: linear-gradient(rgba(104,157,197,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(104,157,197,.045) 1px, transparent 1px); background-size: 42px 42px; }
.workspace::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 48%, rgba(23,75,110,.12), transparent 35%); pointer-events: none; }
.ambient { position: absolute; width: 240px; height: 240px; background: rgba(22,111,169,.08); filter: blur(90px); border-radius: 50%; pointer-events: none; }
.ambient-one { top: 12%; right: 10%; }
.ambient-two { bottom: 5%; left: 12%; opacity: .5; }
.empty-state { position: relative; z-index: 1; display: flex; max-width: 480px; align-items: center; flex-direction: column; text-align: center; transform: translateY(-3vh); }
.empty-icon { display: grid; width: 72px; height: 72px; place-items: center; margin-bottom: 24px; color: #4f708b; background: rgba(13,32,51,.72); border: 1px solid rgba(97,141,177,.13); border-radius: 20px; box-shadow: 0 22px 55px rgba(0,0,0,.18), inset 0 0 24px rgba(41,169,255,.025); }
.empty-icon svg { width: 31px; stroke: currentColor; stroke-width: 1.35; stroke-linecap: round; stroke-linejoin: round; }
.empty-label { margin-bottom: 12px; color: #40708f; font-size: 9px; font-weight: 700; letter-spacing: .18em; }
.empty-state h2 { margin: 0 0 11px; color: #bdc9d5; font-size: 20px; font-weight: 600; letter-spacing: -.025em; }
.empty-state p { max-width: 430px; margin: 0; color: #60778a; font-size: 13px; line-height: 1.7; }
.sidebar-overlay { display: none; }

.workspace-content { display: block; min-height: calc(100vh - 88px); padding: 32px 38px 46px; overflow: visible; }
.objects-page { position: relative; z-index: 1; width: 100%; max-width: 1600px; margin: 0 auto; }
.objects-summary { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; margin-bottom: 25px; }
.section-eyebrow { display: block; margin-bottom: 8px; color: #3689bc; font-size: 11px; font-weight: 700; letter-spacing: .16em; }
.objects-intro h2 { margin: 0 0 6px; color: #dce6ee; font-size: 25px; font-weight: 600; letter-spacing: -.03em; }
.objects-intro p { margin: 0; color: #5c7488; font-size: 12px; }
.object-create-button { display: flex; height: 46px; align-items: center; justify-content: center; padding: 0 19px; color: #fff; background: linear-gradient(135deg, #159bea, #0878c1); border: 0; border-radius: 10px; box-shadow: 0 10px 24px rgba(8,117,186,.18); cursor: pointer; font-family: "Onest", sans-serif; font-size: 14px; font-weight: 500; letter-spacing: -.01em; transition: filter .18s ease, transform .18s ease, box-shadow .18s ease; }
.object-create-button:hover { filter: brightness(1.08); box-shadow: 0 12px 28px rgba(8,117,186,.25); transform: translateY(-1px); }
.object-create-button:active { transform: translateY(0); }
.create-button-icon { display: grid; width: 26px; height: 26px; place-items: center; margin-right: 10px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.11); border-radius: 7px; }
.create-button-icon svg { width: 15px; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.object-stats { display: flex; align-items: center; gap: 10px; }
.object-stat { display: flex; min-width: 175px; height: 62px; align-items: center; padding: 0 14px; background: rgba(11,28,45,.72); border: 1px solid rgba(111,158,194,.1); border-radius: 12px; }
.object-stat-icon { display: grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center; margin-right: 11px; border-radius: 9px; }
.object-stat-icon.blue { color: #58baf6; background: rgba(41,169,255,.1); }
.object-stat-icon.green { color: #4cdaa6; background: rgba(58,217,159,.1); }
.object-stat-icon.violet { color: #9c91f3; background: rgba(139,122,239,.1); }
.object-stat-icon svg { width: 18px; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; }
.object-stat > span:last-child { display: flex; min-width: 0; flex-direction: column; }
.object-stat strong { color: #dbe6ee; font-size: 17px; font-weight: 650; line-height: 1.1; }
.object-stat small { margin-top: 4px; color: #5e7589; font-size: 9px; white-space: nowrap; }
.datatable-card { overflow: hidden; background: rgba(9,25,41,.82); border: 1px solid rgba(111,158,194,.11); border-radius: 15px; box-shadow: 0 18px 50px rgba(0,0,0,.12); backdrop-filter: blur(12px); }
.datatable-toolbar { display: flex; height: 76px; align-items: center; justify-content: space-between; gap: 20px; padding: 0 19px; border-bottom: 1px solid rgba(111,158,194,.09); }
.datatable-search { position: relative; display: block; width: min(390px, 48%); }
.datatable-search > svg { position: absolute; top: 50%; left: 14px; width: 17px; color: #526d83; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; transform: translateY(-50%); pointer-events: none; }
.datatable-search input { width: 100%; height: 44px; padding: 0 15px 0 42px; color: #dce6ee; background: #0b1d2e; border: 1px solid rgba(111,158,194,.13); border-radius: 10px; outline: 0; font-family: inherit; font-size: 14px; transition: border-color .18s ease, box-shadow .18s ease; }
.datatable-search input::placeholder { color: #496176; }
.datatable-search input:focus { border-color: rgba(41,169,255,.4); box-shadow: 0 0 0 3px rgba(41,169,255,.06); }
.datatable-size { display: flex; align-items: center; gap: 9px; color: #71889b; font-size: 13px; }
.datatable-size select { height: 38px; padding: 0 28px 0 11px; color: #aebfcb; background: #0b1d2e; border: 1px solid rgba(111,158,194,.13); border-radius: 8px; outline: 0; font-family: inherit; font-size: 13px; cursor: pointer; }
.task-toolbar-actions { display: flex; min-width: 0; flex: 1; align-items: center; justify-content: flex-end; gap: 10px; }
.task-toolbar-actions .datatable-search { flex: 0 1 390px; width: 390px; }
.task-reset-filters { display: inline-flex; height: 40px; flex: 0 0 auto; align-items: center; gap: 8px; padding: 0 13px; color: #83acc6; background: rgba(24,69,98,.32); border: 1px solid rgba(75,151,201,.2); border-radius: 9px; cursor: pointer; font: 550 13px Onest, sans-serif; transition: color .18s ease, background .18s ease, border-color .18s ease; }
.task-reset-filters[hidden] { display: none; }
.task-reset-filters:hover { color: #b3d5e9; background: rgba(35,91,127,.42); border-color: rgba(75,166,224,.34); }
.task-reset-filters svg { width: 17px; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; }
.datatable-scroll { position: relative; overflow-x: auto; }
.objects-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.objects-table th { height: 48px; padding: 0 17px; background: rgba(15,35,54,.52); border-bottom: 1px solid rgba(111,158,194,.09); text-align: left; }
.objects-table th:nth-child(1) { width: 31%; }
.objects-table th:nth-child(2) { width: 27%; }
.objects-table th:nth-child(3) { width: 17%; }
.objects-table th:nth-child(4) { width: 14%; }
.objects-table th:nth-child(5) { width: 11%; }
.objects-table th button { display: inline-flex; align-items: center; padding: 0; color: #7d92a3; background: transparent; border: 0; cursor: pointer; font-size: 12px; font-weight: 650; letter-spacing: .05em; text-transform: uppercase; transition: color .18s ease; }
.objects-table th button:hover, .objects-table th button.active { color: #8db4ce; }
.sort-icon { position: relative; width: 9px; height: 12px; margin-left: 7px; opacity: .55; }
.sort-icon::before, .sort-icon::after { content: ""; position: absolute; left: 2px; border-right: 2.5px solid transparent; border-left: 2.5px solid transparent; }
.sort-icon::before { top: 1px; border-bottom: 3px solid currentColor; }
.sort-icon::after { bottom: 1px; border-top: 3px solid currentColor; }
.objects-table th button[data-direction="asc"] .sort-icon::after { opacity: .2; }
.objects-table th button[data-direction="desc"] .sort-icon::before { opacity: .2; }
.objects-table td { height: 62px; padding: 0 17px; overflow: hidden; color: #bdc9d2; border-bottom: 1px solid rgba(111,158,194,.07); font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.objects-table tbody tr { transition: background .15s ease; }
.objects-table tbody tr { cursor: pointer; }
.objects-table tbody tr:hover { background: rgba(31,79,111,.075); }
.objects-table tbody tr:last-child td { border-bottom: 0; }
.objects-table tr[hidden] { display: none; }
.object-id { color: #526b7f; font-size: 10px; font-weight: 600; }
.object-title-cell { display: flex; min-width: 0; align-items: center; color: inherit; text-decoration: none; }
.object-building-icon { display: grid; width: 32px; height: 32px; flex: 0 0 auto; place-items: center; margin-right: 11px; color: #5e91b4; background: rgba(49,115,158,.09); border: 1px solid rgba(76,139,181,.1); border-radius: 8px; }
.object-building-icon svg { width: 17px; stroke: currentColor; stroke-width: 1.45; stroke-linecap: round; stroke-linejoin: round; }
.object-title-cell strong { overflow: hidden; color: #dce6ed; font-size: 16px; font-weight: 550; text-overflow: ellipsis; white-space: nowrap; }
.director-name { overflow: hidden; font-size: 15px; text-overflow: ellipsis; }
.object-phone { color: #8fc0dc; font-size: 15px; text-decoration: none; transition: color .18s ease; }
.object-phone:hover { color: #4fb9f7; }
.object-open-tasks { display: inline-flex; min-width: 34px; height: 28px; align-items: center; justify-content: center; padding: 0 10px; color: #70899b; background: rgba(112,137,155,.08); border: 1px solid rgba(112,137,155,.13); border-radius: 999px; font-size: 13px; font-weight: 650; }
.object-open-tasks.has-tasks { color: #65c5fb; background: rgba(31,156,226,.12); border-color: rgba(48,170,237,.24); }
.table-muted { color: #435a6d; }
.status-badge { display: inline-flex; height: 28px; align-items: center; padding: 0 11px; border-radius: 14px; font-size: 10.5px; font-weight: 550; }
.status-badge i { width: 5px; height: 5px; margin-right: 7px; border-radius: 50%; }
.status-badge.active { color: #61d9ad; background: rgba(58,217,159,.08); border: 1px solid rgba(58,217,159,.12); }
.status-badge.active i { background: #42d8a2; box-shadow: 0 0 7px rgba(58,217,159,.5); }
.status-badge.inactive { color: #6c8295; background: rgba(112,139,160,.06); border: 1px solid rgba(112,139,160,.1); }
.status-badge.inactive i { background: #586f82; }
.datatable-footer { display: flex; min-height: 61px; align-items: center; justify-content: space-between; gap: 20px; padding: 10px 19px; border-top: 1px solid rgba(111,158,194,.09); }
.datatable-footer > span { color: #667f92; font-size: 12px; }
.datatable-pagination { display: flex; align-items: center; gap: 5px; }
.datatable-pagination button { display: grid; width: 31px; height: 31px; place-items: center; color: #62798c; background: transparent; border: 1px solid transparent; border-radius: 8px; cursor: pointer; font-family: inherit; font-size: 10px; transition: color .16s ease, background .16s ease, border-color .16s ease; }
.datatable-pagination button:hover:not(:disabled) { color: #a9bfce; background: rgba(255,255,255,.025); border-color: rgba(111,158,194,.1); }
.datatable-pagination button[aria-current="page"] { color: #77c9fa; background: rgba(41,169,255,.1); border-color: rgba(41,169,255,.15); }
.datatable-pagination button:disabled { opacity: .3; cursor: default; }
.datatable-pagination > span { padding: 0 3px; color: #42596c; font-size: 10px; }
.datatable-empty { display: flex; min-height: 290px; align-items: center; justify-content: center; flex-direction: column; color: #526b7f; }
.datatable-empty[hidden] { display: none; }
.datatable-empty svg { width: 30px; margin-bottom: 13px; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; }
.datatable-empty strong { color: #91a4b4; font-size: 12px; font-weight: 600; }
.datatable-empty span { margin-top: 6px; font-size: 10px; }
.objects-load-error { display: flex; min-height: 120px; align-items: center; justify-content: center; padding: 20px; color: #e5a0a0; background: rgba(202,68,68,.07); border: 1px solid rgba(226,91,91,.14); border-radius: 13px; font-size: 12px; }
.objects-load-error svg { width: 20px; margin-right: 10px; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
.object-modal[hidden] { display: none; }
.object-modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 22px; }
body.modal-open { overflow: hidden; }
.object-modal-backdrop { position: absolute; inset: 0; background: rgba(2,9,16,.72); border: 0; opacity: 0; backdrop-filter: blur(6px); transition: opacity .18s ease; }
.object-modal-dialog { position: relative; z-index: 1; width: min(520px, 100%); overflow: hidden; background: #0a1a2a; border: 1px solid rgba(111,163,202,.17); border-radius: 17px; box-shadow: 0 28px 80px rgba(0,0,0,.45); opacity: 0; transform: translateY(12px) scale(.985); transition: opacity .18s ease, transform .18s ease; }
.object-modal.open .object-modal-backdrop { opacity: 1; }
.object-modal.open .object-modal-dialog { opacity: 1; transform: translateY(0) scale(1); }
.object-modal-header { display: flex; min-height: 92px; align-items: center; justify-content: space-between; padding: 20px 23px; background: rgba(14,37,58,.55); border-bottom: 1px solid rgba(111,158,194,.1); }
.object-modal-header > div > span { color: #398fc4; font-size: 10px; font-weight: 700; letter-spacing: .16em; }
.object-modal-header h2 { margin: 7px 0 0; color: #e0e9f0; font-size: 25px; font-weight: 600; letter-spacing: -.03em; }
.object-modal-close { display: grid; width: 35px; height: 35px; place-items: center; color: #61798d; background: rgba(255,255,255,.025); border: 1px solid rgba(111,158,194,.1); border-radius: 9px; cursor: pointer; transition: color .18s ease, background .18s ease; }
.object-modal-close:hover { color: #b7c7d3; background: rgba(255,255,255,.045); }
.object-modal-close svg { width: 18px; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.object-create-form { padding: 23px; }
.object-form-field { display: block; margin-bottom: 18px; }
.object-form-field > span { display: block; margin: 0 0 9px 2px; color: #a9bbc8; font-size: 14px; font-weight: 550; }
.object-form-field > span b { color: #42aeea; font-weight: 600; }
.object-form-input { position: relative; }
.object-form-input svg { position: absolute; top: 50%; left: 15px; width: 18px; color: #536f84; stroke: currentColor; stroke-width: 1.45; stroke-linecap: round; stroke-linejoin: round; transform: translateY(-50%); pointer-events: none; }
.object-form-input input { width: 100%; height: 52px; padding: 0 15px 0 44px; color: #dce6ee; background: #0b2033; border: 1px solid rgba(111,158,194,.14); border-radius: 10px; outline: 0; font-family: inherit; font-size: 15px; transition: border-color .18s ease, box-shadow .18s ease; }
.object-form-input input::placeholder { color: #455e72; }
.object-form-input input:focus { border-color: rgba(41,169,255,.43); box-shadow: 0 0 0 3px rgba(41,169,255,.065); }
.object-form-error { margin: 2px 0 17px; padding: 11px 13px; color: #efa6a6; background: rgba(202,68,68,.08); border: 1px solid rgba(226,91,91,.16); border-radius: 9px; font-size: 13px; line-height: 1.5; }
.object-form-error[hidden] { display: none; }
.object-modal-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 25px; padding-top: 18px; border-top: 1px solid rgba(111,158,194,.09); }
.object-modal-cancel, .object-modal-submit { display: flex; height: 46px; align-items: center; justify-content: center; padding: 0 18px; border-radius: 9px; cursor: pointer; font-family: inherit; font-size: 14px; font-weight: 550; }
.object-modal-cancel { color: #7c92a4; background: transparent; border: 1px solid rgba(111,158,194,.13); }
.object-modal-cancel:hover { color: #aec0cd; background: rgba(255,255,255,.025); }
.object-modal-submit { min-width: 151px; color: #fff; background: linear-gradient(135deg, #159bea, #0878c1); border: 0; box-shadow: 0 9px 22px rgba(8,117,186,.18); }
.object-modal-submit:disabled { opacity: .65; cursor: wait; }
.object-modal-submit svg { width: 17px; margin-left: 8px; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.object-detail-page { position: relative; z-index: 1; width: 100%; max-width: 1180px; margin: 0 auto; }
.object-back-link { display: inline-flex; align-items: center; margin-bottom: 23px; color: #7890a2; text-decoration: none; font-size: 13px; font-weight: 550; transition: color .18s ease; }
.object-back-link:hover { color: #9eb5c5; }
.object-back-link svg { width: 17px; margin-right: 8px; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; }
.object-detail-hero { display: flex; min-height: 145px; align-items: center; padding: 24px 28px; background: linear-gradient(120deg, rgba(13,39,61,.9), rgba(10,28,44,.72)); border: 1px solid rgba(111,158,194,.12); border-radius: 16px; box-shadow: 0 18px 45px rgba(0,0,0,.12); }
.object-detail-mark { display: grid; width: 76px; height: 76px; flex: 0 0 auto; place-items: center; margin-right: 22px; color: #62b9ed; background: rgba(41,169,255,.09); border: 1px solid rgba(41,169,255,.14); border-radius: 18px; }
.object-detail-mark svg { width: 34px; stroke: currentColor; stroke-width: 1.35; stroke-linecap: round; stroke-linejoin: round; }
.object-detail-heading span { color: #3c94c9; font-size: 11px; font-weight: 700; letter-spacing: .16em; }
.object-detail-heading h2 { margin: 9px 0 0; color: #e0e9ef; font-size: clamp(28px, 3vw, 36px); font-weight: 600; letter-spacing: -.035em; }
.object-detail-heading { min-width: 0; flex: 1; }
.object-detail-edit { display: flex; height: 44px; flex: 0 0 auto; align-items: center; justify-content: center; margin-left: 24px; padding: 0 16px; color: #a8c6d9; background: rgba(41,169,255,.07); border: 1px solid rgba(62,172,238,.16); border-radius: 10px; cursor: pointer; font-family: inherit; font-size: 14px; font-weight: 550; transition: color .18s ease, background .18s ease, border-color .18s ease; }
.object-detail-edit:hover { color: #d4ebf8; background: rgba(41,169,255,.11); border-color: rgba(62,172,238,.25); }
.object-detail-edit svg { width: 17px; margin-right: 9px; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; }
.object-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.object-info-card { min-height: 170px; padding: 21px; background: rgba(9,26,42,.8); border: 1px solid rgba(111,158,194,.1); border-radius: 14px; }
.object-card-heading { display: flex; align-items: center; }
.object-card-icon { display: grid; width: 38px; height: 38px; flex: 0 0 auto; place-items: center; margin-right: 12px; color: #6baed5; background: rgba(56,124,168,.09); border-radius: 10px; }
.object-card-icon svg { width: 19px; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.object-card-heading h3 { margin: 0; color: #bdcad4; font-size: 16px; font-weight: 600; }
.object-card-heading p { margin: 5px 0 0; color: #607a8d; font-size: 12px; }
.object-info-value { margin-top: 24px; padding-top: 17px; border-top: 1px solid rgba(111,158,194,.08); }
.object-info-value strong, .object-info-value a { color: #d2dee6; font-size: 18px; font-weight: 550; text-decoration: none; }
.object-info-value a { color: #73b9df; }
.object-info-value span { color: #657e91; font-size: 15px; }
.object-detail-placeholder { display: flex; min-height: 98px; align-items: center; margin-top: 14px; padding: 20px 22px; background: rgba(9,26,42,.55); border: 1px dashed rgba(111,158,194,.12); border-radius: 14px; }
.object-placeholder-icon { display: grid; width: 40px; height: 40px; flex: 0 0 auto; place-items: center; margin-right: 13px; color: #58758a; background: rgba(72,111,139,.07); border-radius: 10px; }
.object-placeholder-icon svg { width: 19px; stroke: currentColor; stroke-width: 1.45; stroke-linecap: round; stroke-linejoin: round; }
.object-detail-placeholder h3 { margin: 0; color: #93a7b5; font-size: 15px; font-weight: 600; }
.object-detail-placeholder p { margin: 6px 0 0; color: #5d7689; font-size: 12px; }
.object-workspace { margin-top: 14px; overflow: hidden; background: rgba(13,36,55,.92); border: 1px solid rgba(121,177,216,.17); border-radius: 14px; }
.object-workspace-tabs { display: flex; min-width: 0; padding: 8px; background: rgba(7,25,40,.58); border-bottom: 1px solid rgba(121,177,216,.13); }
.object-workspace-tabs button { display: inline-flex; min-width: 0; height: 46px; align-items: center; justify-content: center; gap: 9px; padding: 0 18px; color: #7993a6; background: transparent; border: 0; border-radius: 9px; cursor: pointer; font: 600 14px Onest, sans-serif; transition: color .18s ease, background .18s ease; }
.object-workspace-tabs button:hover { color: #b4cbd9; background: rgba(33,83,116,.18); }
.object-workspace-tabs button.active { color: #6ec9fa; background: rgba(29,139,201,.15); }
.object-workspace-tabs svg { width: 19px; flex: 0 0 auto; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.object-workspace-tabs button > small { display: inline-flex; min-width: 22px; height: 22px; align-items: center; justify-content: center; padding: 0 6px; color: #70c9f7; background: rgba(44,149,207,.15); border: 1px solid rgba(73,166,217,.17); border-radius: 999px; font-size: 10px; }
.object-workspace-body { min-height: 300px; }
.object-workspace-panel[hidden] { display: none; }
.object-panel-heading { display: flex; min-height: 86px; align-items: center; justify-content: space-between; gap: 20px; padding: 19px 22px; border-bottom: 1px solid rgba(121,177,216,.1); }
.object-panel-heading h3 { margin: 0; color: #d8e5ed; font-size: 18px; font-weight: 650; }
.object-panel-heading p { margin: 6px 0 0; color: #809aad; font-size: 13px; }
.object-panel-empty { display: flex; min-height: 210px; align-items: center; justify-content: center; flex-direction: column; padding: 30px; text-align: center; }
.object-panel-empty[hidden] { display: none; }
.object-panel-empty > span { display: grid; width: 48px; height: 48px; place-items: center; margin-bottom: 14px; color: #5caedb; background: rgba(44,132,185,.11); border: 1px solid rgba(73,157,207,.16); border-radius: 13px; }
.object-panel-empty svg { width: 23px; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.object-panel-empty strong { color: #b9ccd8; font-size: 16px; font-weight: 600; }
.object-panel-empty p { max-width: 500px; margin: 7px 0 0; color: #718b9e; font-size: 13px; line-height: 1.5; }
.object-notes-heading { flex-wrap: wrap; }
.object-notes-actions { display: flex; align-items: center; gap: 9px; }
.object-notes-search { position: relative; display: flex; width: 270px; height: 40px; align-items: center; }
.object-notes-search svg { position: absolute; left: 12px; width: 17px; pointer-events: none; stroke: #6d899d; stroke-width: 1.55; stroke-linecap: round; }
.object-notes-search input { width: 100%; height: 100%; padding: 0 12px 0 38px; color: #d2e1e9; background: rgba(6,24,39,.65); border: 1px solid rgba(121,177,216,.16); border-radius: 9px; outline: 0; font: 500 13px Onest,sans-serif; }
.object-notes-search input:focus { border-color: rgba(55,170,234,.45); box-shadow: 0 0 0 3px rgba(30,145,210,.08); }
.object-note-add { display: inline-flex; height: 40px; align-items: center; gap: 8px; padding: 0 14px; color: #e8f7ff; background: #168fcd; border: 1px solid #27a5e5; border-radius: 9px; cursor: pointer; font: 650 13px Onest,sans-serif; }
.object-note-add:hover { background: #1b9bdc; }
.object-note-add svg { width: 17px; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.object-note-list { padding: 0 22px; }
.object-note-list[hidden] { display: none; }
.object-note-item { display: grid; grid-template-columns: 42px minmax(0,1fr) auto; gap: 13px; padding: 19px 0; border-bottom: 1px solid rgba(121,177,216,.1); }
.object-note-item:last-child { border-bottom: 0; }
.object-note-item[hidden] { display: none; }
.object-note-avatar { display: grid; width: 42px; height: 42px; place-items: center; color: #77c8f3; background: rgba(28,121,178,.16); border: 1px solid rgba(64,158,213,.22); border-radius: 11px; font-size: 11px; font-weight: 700; }
.object-note-content { min-width: 0; }
.object-note-meta { display: flex; align-items: baseline; gap: 10px; }
.object-note-meta strong { color: #d5e3eb; font-size: 14px; font-weight: 650; }
.object-note-meta time { color: #7893a6; font-size: 11px; }
.object-note-content p { margin: 8px 0 0; color: #b3c7d3; font-size: 14px; line-height: 1.55; overflow-wrap: anywhere; }
.object-note-actions { display: flex; align-items: flex-start; gap: 2px; }
.object-note-edit, .object-note-delete { display: grid; width: 32px; height: 32px; place-items: center; color: #688296; background: transparent; border: 0; border-radius: 8px; cursor: pointer; opacity: .65; }
.object-note-edit:hover { color: #69c7f8; background: rgba(34,143,205,.1); opacity: 1; }
.object-note-delete:hover { color: #ff7f86; background: rgba(216,68,78,.1); opacity: 1; }
.object-note-edit svg, .object-note-delete svg { width: 16px; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.object-notes-no-results { min-height: 130px; padding: 45px 20px; color: #7b95a8; text-align: center; font-size: 13px; }
.object-notes-no-results[hidden] { display: none; }
.object-note-modal .task-simple-form { padding-top: 20px; }
.object-task-toolbar { display: flex; min-height: 82px; align-items: center; justify-content: space-between; gap: 18px; padding: 15px 22px; border-bottom: 1px solid rgba(121,177,216,.1); }
.object-task-toolbar > p { margin: 0; color: #718b9e; font-size: 13px; }
.object-task-switcher { display: inline-flex; padding: 4px; background: rgba(6,23,37,.58); border: 1px solid rgba(121,177,216,.12); border-radius: 11px; }
.object-task-switcher button { display: inline-flex; height: 40px; align-items: center; gap: 9px; padding: 0 14px; color: #7d96a8; background: transparent; border: 0; border-radius: 8px; cursor: pointer; font: 600 14px Onest,sans-serif; transition: color .16s ease, background .16s ease; }
.object-task-switcher button.active { color: #d5edf9; background: rgba(32,126,181,.18); box-shadow: inset 0 0 0 1px rgba(64,164,220,.16); }
.object-task-switcher small { display: inline-grid; min-width: 23px; height: 22px; place-items: center; padding: 0 6px; color: #6fbfe9; background: rgba(45,142,196,.12); border-radius: 999px; font-size: 10px; }
.object-task-group[hidden] { display: none; }
.object-panel-empty.compact { min-height: 190px; }
.object-task-list { padding: 0 22px; }
.object-task-row { display: grid; min-height: 64px; grid-template-columns: 55px minmax(220px,1fr) 112px 105px 138px 18px; align-items: center; gap: 14px; color: inherit; border-bottom: 1px solid rgba(121,177,216,.1); text-decoration: none; transition: background .16s ease; }
.object-task-row:last-child { border-bottom: 0; }
.object-task-row:hover { margin: 0 -10px; padding: 0 10px; background: rgba(29,104,149,.1); border-radius: 9px; }
.object-task-number { color: #668296; font-size: 11px; font-weight: 650; }
.object-task-row > strong { overflow: hidden; color: #d2e1e9; font-size: 14px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.object-task-section { padding: 5px 8px; color: #75bfe8; background: rgba(39,128,181,.1); border-radius: 7px; font-size: 10px; font-weight: 600; white-space: nowrap; }
.object-task-section.empty { visibility: hidden; }
.object-task-state { color: #9cb3c2; font-size: 12px; white-space: nowrap; }
.object-task-state.state-4 { color: #8fa5b4; }
.object-task-state.state-5 { color: #68d4aa; }
.object-task-row time { color: #91a9b9; font-size: 12px; text-align: right; white-space: nowrap; }
.object-task-row time.overdue { color: #ff858a; }
.object-task-row.urgent .object-task-number { color: #ff858a; }
.object-task-arrow { width: 17px; stroke: #557388; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.object-task-toolbar-actions { display: flex; align-items: center; gap: 10px; }
.object-task-page-size { display: inline-flex; height: 40px; align-items: center; gap: 9px; color: #718b9e; font-size: 12px; }
.object-task-page-size select { width: 76px; height: 38px; padding: 0 8px; color: #b9cad4; appearance: none; -webkit-appearance: none; -moz-appearance: none; background: #0b2234 !important; background-image: none !important; border: 1px solid rgba(121,177,216,.15); border-radius: 8px; outline: none; text-align: center; text-align-last: center; font: 600 13px Onest,sans-serif; }
.object-task-export { display: inline-flex; height: 40px; align-items: center; gap: 8px; padding: 0 13px; color: #8bd7ad; background: rgba(45,169,99,.09); border: 1px solid rgba(70,188,120,.18); border-radius: 9px; text-decoration: none; font: 650 13px Onest,sans-serif; transition: color .16s ease, background .16s ease, border-color .16s ease; }
.object-task-export:hover { color: #b0ecc9; background: rgba(45,169,99,.14); border-color: rgba(87,206,139,.29); }
.object-task-export svg { width: 17px; flex: 0 0 auto; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.object-task-table-wrap { position: relative; min-height: 180px; overflow-x: auto; }
.object-task-table { width: 100%; min-width: 1120px; border-collapse: collapse; table-layout: fixed; }
.object-task-table[hidden] { display: none; }
.object-task-table.is-loading { opacity: .42; pointer-events: none; }
.object-task-table th { height: 38px; padding: 0 10px; color: #688397; background: rgba(8,27,43,.42); border-bottom: 1px solid rgba(121,177,216,.1); text-align: left; font-size: 10px; font-weight: 700; letter-spacing: .045em; text-transform: uppercase; }
.object-task-table th:nth-child(1) { width: 68px; }
.object-task-table th:nth-child(2) { width: 25%; }
.object-task-table th:nth-child(3) { width: 14%; }
.object-task-table th:nth-child(4) { width: 11%; }
.object-task-table th:nth-child(5) { width: 11%; }
.object-task-table th:nth-child(6) { width: 14%; }
.object-task-table th:nth-child(7) { width: 12%; }
.object-task-table th:nth-child(8) { width: 13%; }
.object-task-table td { height: 48px; padding: 0 10px; overflow: hidden; color: #a9bdca; border-bottom: 1px solid rgba(121,177,216,.075); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.object-task-table tbody tr:last-child td { border-bottom: 0; }
.object-task-table tbody tr { transition: background .15s ease; }
.object-task-table tbody tr:hover { background: rgba(29,104,149,.075); }
.object-task-table tbody tr.object-task-table-row-urgent { background: linear-gradient(90deg, rgba(211,67,76,.13), rgba(211,67,76,.025) 42%, transparent 78%); box-shadow: inset 3px 0 #e26068; }
.object-task-table tbody tr.object-task-table-row-urgent:hover { background: linear-gradient(90deg, rgba(222,76,85,.19), rgba(211,67,76,.055) 48%, rgba(29,104,149,.035)); }
.object-task-table-row-urgent .object-task-table-number, .object-task-table-row-urgent .object-task-table-title { color: #ffadb1; }
.object-task-table-number { color: #718ea2; text-decoration: none; font-size: 11px; font-weight: 650; }
.object-task-table-title { display: block; overflow: hidden; color: #d2e1e9; text-decoration: none; font-size: 13px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.object-task-table-category, .object-task-table-section { display: inline-flex; max-width: 100%; height: 24px; align-items: center; padding: 0 8px; overflow: hidden; color: #8fc8e8; background: rgba(39,128,181,.09); border-radius: 6px; text-overflow: ellipsis; white-space: nowrap; }
.object-task-table-priority { color: #9bb0be; }
.object-task-table-priority.urgent { color: #ff9297; font-weight: 650; }
.object-task-table-priority.planned { color: #8098aa; }
.object-task-table-deadline { color: #9fb5c3; }
.object-task-table-deadline.overdue { color: #ff858a; font-weight: 650; }
.object-task-table-state { display: inline-flex; height: 25px; align-items: center; padding: 0 8px; border-radius: 999px; font-size: 11px; font-weight: 600; }
.object-task-table-state.created { color: #ef9b9f; background: rgba(226,91,99,.09); }
.object-task-table-state.working { color: #e8bc78; background: rgba(220,153,56,.09); }
.object-task-table-state.review { color: #80c5ed; background: rgba(55,151,211,.1); }
.object-task-table-state.closed { color: #9fb1bd; background: rgba(112,137,155,.09); }
.object-task-table-state.completed { color: #72d9ae; background: rgba(49,188,133,.09); }
.object-task-table-completed-at { color: #83bfa8; }
.object-task-loading { display: flex; min-height: 180px; align-items: center; justify-content: center; gap: 10px; color: #718b9e; font-size: 13px; }
.object-task-loading[hidden] { display: none; }
.object-task-loading > span { width: 18px; height: 18px; border: 2px solid rgba(75,158,211,.18); border-top-color: #4da8df; border-radius: 50%; animation: task-loading .7s linear infinite; }
.object-task-footer { display: flex; min-height: 54px; align-items: center; justify-content: space-between; gap: 16px; padding: 8px 22px; color: #7891a4; border-top: 1px solid rgba(121,177,216,.1); font-size: 12px; }
.object-task-footer .datatable-pagination { margin-left: auto; }
.object-not-found { position: relative; z-index: 1; display: flex; min-height: 520px; align-items: center; justify-content: center; flex-direction: column; text-align: center; }
.object-not-found .empty-icon { margin-bottom: 18px; }
.object-not-found h2 { margin: 0 0 8px; color: #b7c5d0; font-size: 20px; font-weight: 600; }
.object-not-found p { margin: 0 0 22px; color: #5d7487; font-size: 12px; }
.object-not-found a { color: #65bdf0; font-size: 12px; text-decoration: none; }
.tasks-page { position: relative; z-index: 1; width: 100%; max-width: 1600px; margin: 0 auto; }
.task-status-bar { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.task-status-switcher { display: grid; width: 100%; max-width: 880px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 0; padding: 5px; background: rgba(8,24,39,.72); border: 1px solid rgba(111,158,194,.1); border-radius: 16px; }
.task-create-button { display: inline-flex; height: 52px; flex: 0 0 auto; align-items: center; gap: 9px; margin-left: auto; padding: 0 18px; color: #dff4ff; background: linear-gradient(135deg, rgba(25,157,232,.94), rgba(9,119,190,.96)); border: 1px solid rgba(87,192,248,.32); border-radius: 12px; box-shadow: 0 12px 28px rgba(7,111,177,.2); cursor: pointer; font: 650 14px Onest, sans-serif; transition: transform .18s ease, filter .18s ease, box-shadow .18s ease; white-space: nowrap; }
.task-create-button:hover { filter: brightness(1.1); box-shadow: 0 15px 32px rgba(7,111,177,.27); transform: translateY(-1px); }
.task-create-button svg { width: 19px; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.task-status-tab { position: relative; display: flex; min-width: 0; height: 88px; align-items: center; padding: 0 18px; color: #71889b; background: transparent; border: 1px solid transparent; border-radius: 12px; cursor: pointer; text-align: left; transition: color .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease; }
.task-status-tab:hover { color: #a9bccb; background: rgba(255,255,255,.018); }
.task-status-tab.active { color: #dce7ee; background: linear-gradient(135deg, rgba(18,58,87,.78), rgba(11,37,58,.8)); border-color: rgba(54,157,221,.2); box-shadow: 0 10px 28px rgba(0,0,0,.12), inset 0 1px 0 rgba(255,255,255,.025); }
.task-tab-icon { display: grid; width: 44px; height: 44px; flex: 0 0 auto; place-items: center; margin-right: 14px; border-radius: 11px; }
.task-tab-icon.open { color: #55bdf8; background: rgba(41,169,255,.1); }
.task-tab-icon.closed { color: #5bd4a9; background: rgba(58,217,159,.09); }
.task-tab-icon svg { width: 22px; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; }
.task-tab-copy { display: flex; min-width: 0; flex: 1; flex-direction: column; }
.task-tab-copy strong { color: inherit; font-size: 16px; font-weight: 600; }
.task-tab-copy small { margin-top: 5px; overflow: hidden; color: #5a7387; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.task-status-tab.active .task-tab-copy small { color: #6c879a; }
.task-tab-count { display: grid; min-width: 38px; height: 30px; place-items: center; margin-left: 12px; padding: 0 9px; color: #7190a5; background: rgba(255,255,255,.025); border: 1px solid rgba(111,158,194,.1); border-radius: 15px; font-size: 13px; font-weight: 650; }
.task-status-tab.active .task-tab-count { color: #81cdf8; background: rgba(41,169,255,.09); border-color: rgba(41,169,255,.14); }
.tasks-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.tasks-table th { height: 44px; padding: 0 12px; background: rgba(15,35,54,.52); border-bottom: 1px solid rgba(111,158,194,.09); text-align: left; }
.tasks-table th:nth-child(1) { width: 7%; }
.tasks-table th:nth-child(2) { width: 22%; }
.tasks-table th:nth-child(3) { width: 20%; }
.tasks-table th:nth-child(4) { width: 13%; }
.tasks-table th:nth-child(5) { width: 12%; }
.tasks-table th:nth-child(6) { width: 16%; }
.tasks-table th:nth-child(7) { width: 10%; }
.tasks-table th [data-sort] { display: inline-flex; align-items: center; padding: 0; color: #8196a7; background: transparent; border: 0; cursor: pointer; font-size: 12.5px; font-weight: 650; letter-spacing: .045em; text-transform: uppercase; transition: color .18s ease; }
.tasks-table th [data-sort]:hover, .tasks-table th [data-sort].active { color: #a3c1d4; }
.task-th-content { display: flex; align-items: center; justify-content: space-between; gap: 5px; }
.task-column-filter { position: relative; flex: 0 0 auto; }
.tasks-table th .task-filter-trigger { display: grid; width: 28px; height: 28px; place-items: center; padding: 0; color: #557084; background: transparent; border: 1px solid transparent; border-radius: 7px; cursor: pointer; transition: color .18s ease, background .18s ease, border-color .18s ease; }
.tasks-table th .task-filter-trigger:hover { color: #8ebad6; background: rgba(59,146,204,.07); }
.tasks-table th .task-filter-trigger.active { color: #55baf3; background: rgba(41,169,255,.12); border-color: rgba(41,169,255,.22); box-shadow: 0 0 12px rgba(41,169,255,.1); }
.task-filter-trigger svg { width: 16px; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.task-filter-menu { position: absolute; z-index: 15; top: calc(100% + 8px); right: 0; width: 240px; padding: 11px; background: #0a1d2e; border: 1px solid rgba(91,153,197,.2); border-radius: 10px; box-shadow: 0 15px 35px rgba(0,0,0,.38); }
.task-filter-menu[hidden] { display: none; }
.task-filter-menu > span { display: block; margin: 0 0 7px 2px; color: #668398; font-size: 11px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; }
.task-filter-menu select, .task-mobile-filters select { width: 100%; height: 38px; padding: 0 29px 0 10px; overflow: hidden; color: #b6c5cf; background: #0e273b; border: 1px solid rgba(111,158,194,.17); border-radius: 7px; outline: none; font: 500 13px Onest, sans-serif; text-overflow: ellipsis; transition: border-color .18s ease, background .18s ease; }
.task-filter-menu select:focus, .task-mobile-filters select:focus { background: #102c43; border-color: rgba(69,166,228,.48); }
.tasks-table td { height: 58px; padding: 0 12px; overflow: hidden; color: #c0ccd5; border-bottom: 1px solid rgba(111,158,194,.07); font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.tasks-table tbody tr { cursor: pointer; transition: background .15s ease; }
.tasks-table tbody tr:hover { background: rgba(31,79,111,.075); }
.tasks-table tbody tr:last-child td { border-bottom: 0; }
.tasks-table tr[hidden] { display: none; }
.task-title-cell { display: flex; min-width: 0; align-items: stretch; }
.task-priority-line { width: 3px; min-height: 34px; flex: 0 0 auto; margin-right: 12px; background: #567084; border-radius: 3px; }
.task-priority-line.planned { background: #72889a; }
.task-priority-line.normal { background: #3ea9e8; box-shadow: 0 0 8px rgba(62,169,232,.25); }
.task-priority-line.urgent { background: #ee6f6f; box-shadow: 0 0 8px rgba(238,111,111,.28); }
.task-title-cell > div { display: flex; min-width: 0; justify-content: center; flex-direction: column; }
.task-title-cell strong { overflow: hidden; color: #dde6ec; font-size: 17px; font-weight: 550; text-overflow: ellipsis; white-space: nowrap; }
.task-title-link { overflow: hidden; color: #dde6ec; font-size: 17px; font-weight: 550; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.task-title-link:hover { color: #70c5f5; }
.task-title-cell small { margin-top: 3px; color: #657d90; font-size: 12px; }
.task-number-link { color: #7893a7; font-size: 14px; font-weight: 650; font-variant-numeric: tabular-nums; text-decoration: none; }
.task-number-link:hover { color: #70c5f5; }
.task-meta-separator { margin: 0 6px; color: #3f596d; }
.task-object { display: inline-flex; min-width: 0; align-items: center; overflow: hidden; color: #bbc8d1; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.task-object svg { width: 17px; flex: 0 0 auto; margin-right: 8px; color: #5a819c; stroke: currentColor; stroke-width: 1.45; stroke-linecap: round; stroke-linejoin: round; }
.task-category { display: inline-flex; height: 30px; align-items: center; padding: 0 10px; color: #c0ccd4; background: color-mix(in srgb, var(--category-color) 10%, transparent); border: 1px solid color-mix(in srgb, var(--category-color) 22%, transparent); border-radius: 15px; font-size: 13px; }
.task-category i { width: 6px; height: 6px; margin-right: 7px; background: var(--category-color); border-radius: 50%; box-shadow: 0 0 7px color-mix(in srgb, var(--category-color) 55%, transparent); }
.task-section { display: inline-flex; max-width: 100%; align-items: center; gap: 8px; color: #adc3d2; font-size: 14px; white-space: nowrap; }
.task-section > span { overflow: hidden; text-overflow: ellipsis; }
.task-section > svg { width: 22px; height: 22px; flex: 0 0 auto; color: #58b8e9; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.task-priority { display: inline-flex; align-items: center; color: #9cafbd; font-size: 13px; }
.task-priority i { width: 7px; height: 7px; margin-right: 8px; background: #61798c; border-radius: 2px; transform: rotate(45deg); }
.task-priority.normal i { background: #3ea9e8; }
.task-priority.urgent { color: #e89292; }
.task-priority.urgent i { background: #e86f6f; }
.task-deadline { display: inline-flex; align-items: center; color: #9db0be; font-size: 14px; }
.task-deadline svg { width: 17px; margin-right: 8px; stroke: currentColor; stroke-width: 1.45; stroke-linecap: round; stroke-linejoin: round; }
.task-deadline.normal { color: #72c5a6; }
.task-deadline.soon { color: #e8b76e; }
.task-deadline.overdue { color: #e77f7f; }
.task-state { display: inline-flex; height: 30px; align-items: center; padding: 0 10px; border-radius: 15px; font-size: 13px; font-weight: 550; }
.task-state.created { color: #eb9696; background: rgba(231,105,105,.08); border: 1px solid rgba(231,105,105,.13); }
.task-state.working { color: #e8b879; background: rgba(226,161,78,.08); border: 1px solid rgba(226,161,78,.13); }
.task-state.review { color: #78bff0; background: rgba(63,157,220,.08); border: 1px solid rgba(63,157,220,.13); }
.task-state.closed { color: #91a6b5; background: rgba(113,139,158,.07); border: 1px solid rgba(113,139,158,.12); }
.task-state.completed { color: #65d9ae; background: rgba(58,217,159,.08); border: 1px solid rgba(58,217,159,.13); }
.task-state-cell { display: inline-flex; align-items: center; gap: 10px; }
.task-assignment-dot { width: 8px; height: 8px; flex: 0 0 auto; background: rgba(87,112,131,.12); border: 1px solid rgba(105,133,153,.14); border-radius: 50%; box-shadow: none; opacity: .38; }
.task-assignment-dot.assigned { background: #44c9ff; border-color: #79ddff; box-shadow: 0 0 0 4px rgba(68,201,255,.11), 0 0 10px rgba(68,201,255,.58); opacity: 1; }
.tasks-datatable .task-deadline { color: #d2e0e8; font-weight: 650; letter-spacing: .005em; }
.tasks-datatable .task-deadline svg { stroke-width: 1.75; }
.tasks-datatable .task-deadline.normal { color: #83dfbd; }
.tasks-datatable .task-deadline.soon { color: #f5c575; }
.tasks-datatable .task-deadline.overdue { color: #ff9292; }
.tasks-datatable .task-state { height: 32px; padding: 0 11px; font-weight: 650; }
.tasks-datatable .task-state.created { color: #ffabab; background: rgba(231,105,105,.16); border-color: rgba(242,120,120,.32); }
.tasks-datatable .task-state.working { color: #f6c57f; background: rgba(226,161,78,.16); border-color: rgba(232,171,91,.3); }
.tasks-datatable .task-state.review { color: #91d0fa; background: rgba(63,157,220,.16); border-color: rgba(73,169,231,.3); }
.tasks-datatable .task-state.closed { color: #bacbd6; background: rgba(113,139,158,.15); border-color: rgba(132,158,176,.27); }
.tasks-datatable .task-state.completed { color: #7ce3bd; background: rgba(58,217,159,.15); border-color: rgba(69,222,166,.29); }
.task-mobile-filters { display: none; }
.datatable-loading { display: flex; min-height: 180px; align-items: center; justify-content: center; gap: 11px; color: #6f899c; font-size: 14px; }
.datatable-loading[hidden] { display: none; }
.datatable-loading span { width: 18px; height: 18px; border: 2px solid rgba(75,158,211,.18); border-top-color: #4da8df; border-radius: 50%; animation: task-loading .7s linear infinite; }
.tasks-datatable.is-loading tbody { opacity: .35; }
@keyframes task-loading { to { transform: rotate(360deg); } }

.task-detail-page { position: relative; z-index: 1; width: 100%; max-width: 1540px; margin: 0 auto; }
.task-detail-not-found { display: flex; min-height: 520px; align-items: center; justify-content: center; flex-direction: column; text-align: center; }
.task-detail-not-found h2 { margin: 20px 0 7px; color: #dbe7ef; font-size: 24px; }
.task-detail-not-found p { margin: 0 0 20px; color: #698195; font-size: 15px; }
.task-detail-not-found a { color: #58baf4; font-size: 15px; text-decoration: none; }
.task-detail-hero { display: flex; min-height: 150px; align-items: center; gap: 24px; margin: 16px 0 20px; padding: 25px 28px; background: linear-gradient(135deg, rgba(14,43,66,.94), rgba(8,27,44,.9)); border: 1px solid rgba(87,157,204,.16); border-radius: 16px; box-shadow: 0 20px 50px rgba(0,0,0,.14); }
.task-detail-number { display: inline-flex; height: 30px; align-items: center; padding: 0 11px; color: #71c9f7; background: rgba(41,169,255,.1); border: 1px solid rgba(41,169,255,.2); border-radius: 15px; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.task-detail-title { min-width: 0; flex: 1 1 auto; }
.task-detail-labels { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.task-detail-title h2 { margin: 0; color: #e2ebf1; font-size: clamp(24px, 2.2vw, 34px); font-weight: 600; line-height: 1.2; }
.task-title-edit-row { display: flex; width: 100%; min-width: 0; align-items: center; gap: 9px; }
.task-title-edit-row h2 { min-width: 0; }
.task-title-edit-row.is-editing { max-width: 920px; }
.task-title-edit-row.is-editing .task-inline-editor { padding: 7px; background: rgba(7,24,39,.72); border: 1px solid rgba(74,159,211,.18); border-radius: 12px; box-shadow: 0 10px 28px rgba(0,0,0,.12); }
.task-title-edit-row.is-editing .task-inline-control { height: 44px; padding: 0 14px; background: rgba(12,39,59,.9); border-color: rgba(67,177,240,.34); border-radius: 9px; font-size: 16px; font-weight: 550; }
.task-title-edit-row.is-editing .task-inline-save, .task-title-edit-row.is-editing .task-inline-cancel { height: 44px; padding: 0 15px; border-radius: 9px; font-size: 13px; }
.task-detail-title > p { margin: 9px 0 0; color: #698398; font-size: 14px; }
.task-created-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; margin-top: 9px; color: #698398; font-size: 14px; }
.task-created-date { display: inline-flex; align-items: center; gap: 3px; }
.task-inline-edit-icon.created { width: 22px; height: 22px; margin-left: 1px; }
.task-inline-edit-icon.created svg { width: 13px; height: 13px; }
.task-created-date.is-editing { width: min(100%, 440px); margin-top: 5px; }
.task-created-date .task-inline-editor { width: 100%; }
.task-detail-actions { display: flex; flex: 0 0 auto; align-items: flex-end; gap: 10px; margin-left: auto; }
.task-primary-action { display: inline-flex; height: 42px; align-items: center; gap: 8px; padding: 0 15px; color: #c8e5f6; background: rgba(41,169,255,.14); border: 1px solid rgba(41,169,255,.25); border-radius: 9px; cursor: pointer; font: 550 14px Onest, sans-serif; }
.task-primary-action:hover { background: rgba(41,169,255,.2); }
.task-primary-action svg { width: 17px; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.task-state-buttons { display: flex; align-items: center; gap: 7px; }
.task-state-action { height: 42px; padding: 0 12px; border-radius: 9px; cursor: pointer; font: 550 13px Onest, sans-serif; transition: filter .18s ease, opacity .18s ease; }
.task-state-action:hover { filter: brightness(1.18); }
.task-state-action:disabled { cursor: wait; opacity: .5; }
.task-state-action.working { color: #e6b870; background: rgba(220,151,54,.1); border: 1px solid rgba(220,151,54,.2); }
.task-state-action.completed { color: #69d9ae; background: rgba(54,202,145,.1); border: 1px solid rgba(54,202,145,.2); }
.task-state-action.cancel { color: #9db1bf; background: rgba(104,134,155,.09); border: 1px solid rgba(104,134,155,.18); }
.task-state-action.closed { color: #eb9191; background: rgba(218,82,82,.09); border: 1px solid rgba(218,82,82,.18); }
.task-detail-priority { display: inline-flex; height: 30px; align-items: center; padding: 0 11px; color: #91a7b7; background: rgba(101,130,151,.08); border: 1px solid rgba(101,130,151,.14); border-radius: 15px; font-size: 13px; }
.task-detail-priority.urgent { color: #ef9999; background: rgba(232,92,92,.09); border-color: rgba(232,92,92,.18); }
.task-detail-priority.normal { color: #81c7ef; background: rgba(58,160,222,.08); border-color: rgba(58,160,222,.16); }
.task-detail-priority.is-editing { width: auto; height: auto; padding: 0; background: transparent; border: 0; border-radius: 0; }
.task-detail-priority.is-editing .task-inline-editor { width: auto; padding: 5px; background: rgba(7,24,39,.72); border: 1px solid rgba(74,159,211,.18); border-radius: 10px; box-shadow: 0 8px 22px rgba(0,0,0,.12); }
.task-detail-priority.is-editing .task-inline-control { width: 155px; height: 38px; padding: 0 11px; background: #0c273b; border-color: rgba(67,177,240,.3); border-radius: 8px; font-size: 13px; }
.task-detail-priority.is-editing .task-inline-save, .task-detail-priority.is-editing .task-inline-cancel { height: 38px; padding: 0 11px; font-size: 12px; }
.task-detail-layout { display: grid; grid-template-columns: minmax(0, 1.85fr) minmax(315px, .8fr); gap: 18px; align-items: start; }
.task-detail-main, .task-detail-side { display: grid; min-width: 0; gap: 18px; }
.task-detail-main { display: contents; }
.task-detail-primary { display: grid; min-width: 0; grid-column: 1; grid-row: 1; gap: 18px; align-self: start; }
.task-description-card, .task-data-card { grid-column: auto; grid-row: auto; }
.task-detail-side { grid-column: 2; grid-row: 1; }
.task-cost-card { grid-column: 1 / -1; grid-row: 2; overflow: hidden; }
.task-help-card { grid-column: 1 / -1; grid-row: 3; }
.task-detail-card { min-width: 0; padding: 22px; background: rgba(9,27,44,.84); border: 1px solid rgba(103,159,199,.12); border-radius: 15px; box-shadow: 0 16px 42px rgba(0,0,0,.1); }
.task-detail-card-heading { display: flex; min-width: 0; align-items: center; margin-bottom: 21px; }
.task-detail-card-heading.compact { margin-bottom: 17px; }
.task-detail-card-icon { display: grid; width: 42px; height: 42px; flex: 0 0 auto; place-items: center; margin-right: 13px; color: #58b9f0; background: rgba(41,169,255,.09); border: 1px solid rgba(41,169,255,.13); border-radius: 11px; }
.task-detail-card-icon svg { width: 21px; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.task-detail-card-heading > div { min-width: 0; }
.task-detail-card-heading h3 { margin: 0; color: #d9e5ed; font-size: 18px; font-weight: 600; }
.task-card-title-line { display: flex; align-items: center; gap: 8px; }
.task-user-visible-badge { display: inline-flex; height: 23px; align-items: center; padding: 0 8px; color: #f09a9a; background: rgba(222,76,76,.1); border: 1px solid rgba(231,87,87,.2); border-radius: 12px; font-size: 10px; font-weight: 650; letter-spacing: .025em; white-space: nowrap; }
.task-detail-card-heading p { margin: 4px 0 0; color: #5e788d; font-size: 13px; }
.task-inline-edit-icon { display: grid; width: 26px; height: 26px; flex: 0 0 auto; place-items: center; padding: 0; color: #5d7a8e; background: transparent; border: 0; border-radius: 6px; cursor: pointer; opacity: .65; transition: color .18s ease, background .18s ease, opacity .18s ease; }
.task-inline-edit-icon:hover { color: #72c7f3; background: rgba(41,169,255,.08); opacity: 1; }
.task-inline-edit-icon[hidden] { display: none; }
.task-inline-edit-icon svg { width: 15px; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.task-inline-edit-icon.large { width: 31px; height: 31px; }
.task-inline-edit-icon.card { margin-left: auto; }
.task-detail-priority .task-inline-edit-icon { width: 22px; height: 22px; margin-left: 4px; }
.task-meta-grid > div { position: relative; }
.task-inline-edit-icon.cell { position: absolute; top: 10px; right: 10px; }
.task-meta-grid > div:hover .task-inline-edit-icon.cell { opacity: 1; }
.task-inline-editor { display: flex; width: 100%; min-width: 0; align-items: center; gap: 8px; }
.task-inline-editor.multiline { align-items: stretch; flex-direction: column; }
.task-inline-editor.responsible { align-items: stretch; flex-direction: column; }
.task-inline-editor.responsible .task-inline-actions { justify-content: flex-start; }
.task-inline-control { width: 100%; min-width: 0; height: 40px; padding: 0 10px; color: #d7e3ea; background: #0c273b; border: 1px solid rgba(61,169,232,.4); border-radius: 7px; outline: none; font: 500 14px Onest, sans-serif; }
textarea.task-inline-control { height: auto; min-height: 120px; padding: 10px; line-height: 1.55; resize: vertical; }
.task-inline-actions { display: flex; flex: 0 0 auto; gap: 6px; }
.task-inline-save, .task-inline-cancel { height: 34px; padding: 0 10px; border-radius: 7px; cursor: pointer; font: 550 12px Onest, sans-serif; }
.task-inline-save { color: #dff4ff; background: #138fd5; border: 1px solid #199ee9; }
.task-inline-cancel { color: #849cab; background: transparent; border: 1px solid rgba(111,158,194,.16); }
.task-inline-save:disabled, .task-inline-cancel:disabled { cursor: wait; opacity: .55; }
.task-card-action { display: grid; width: 36px; height: 36px; flex: 0 0 auto; place-items: center; margin-left: 10px; color: #63bfee; background: rgba(41,169,255,.09); border: 1px solid rgba(41,169,255,.16); border-radius: 9px; cursor: pointer; }
.task-detail-side .task-card-action { margin-left: auto; }
.task-card-action:hover { color: #a1daf7; background: rgba(41,169,255,.15); }
.task-card-action:disabled { cursor: wait; opacity: .45; }
.task-card-action svg { width: 17px; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.task-performer-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.task-performer-actions .task-card-action { margin-left: 0; }
.task-self-assign { display: inline-flex; height: 36px; align-items: center; gap: 8px; padding: 0 12px; color: #74cdf8; background: rgba(41,169,255,.09); border: 1px solid rgba(41,169,255,.18); border-radius: 9px; cursor: pointer; font: 650 13px Onest,sans-serif; transition: color .18s ease, background .18s ease, border-color .18s ease; }
.task-self-assign:hover { color: #a3e1ff; background: rgba(41,169,255,.15); border-color: rgba(71,184,247,.3); }
.task-self-assign:disabled { cursor: wait; opacity: .58; }
.task-self-assign svg { width: 17px; flex: 0 0 auto; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.task-description-text { min-height: 100px; color: #bdcad3; font-size: 16px; line-height: 1.75; overflow-wrap: anywhere; }
.task-meta-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid rgba(103,159,199,.08); border-left: 1px solid rgba(103,159,199,.08); }
.task-meta-grid > div { display: flex; min-height: 79px; justify-content: flex-start; flex-direction: column; padding: 14px 17px; border-right: 1px solid rgba(103,159,199,.08); border-bottom: 1px solid rgba(103,159,199,.08); }
.task-meta-grid > .task-meta-combined { gap: 12px; justify-content: flex-start; }
.task-meta-line { position: relative; display: flex; min-width: 0; justify-content: center; flex-direction: column; padding-right: 28px; }
.task-meta-line + .task-meta-line { padding-top: 12px; border-top: 1px solid rgba(103,159,199,.08); }
.task-meta-line .task-inline-edit-icon.cell { top: 0; right: 0; }
.task-meta-line + .task-meta-line .task-inline-edit-icon.cell { top: 10px; }
.task-meta-grid span { margin-bottom: 6px; color: #5c768a; font-size: 12px; font-weight: 550; }
.task-meta-grid strong, .task-meta-grid a { overflow: hidden; color: #bdcbd5; font-size: 15px; font-weight: 550; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.task-meta-grid a { color: #72bfe9; }
.task-meta-grid a:hover { color: #98d4f3; }
.task-meta-section-display { display: inline-flex; align-items: center; gap: 8px; }
.task-meta-section-display svg { width: 22px; height: 22px; flex: 0 0 auto; color: #58b8e9; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.task-inline-editor .task-icon-select { min-width: 220px; flex: 1 1 auto; }
.task-inline-editor .task-icon-select-toggle { height: 40px; }
.task-inline-editor .task-icon-select-menu { min-width: 280px; }
.task-meta-persistent-section { z-index: 5; }
.task-meta-persistent-section .task-icon-select { width: 100%; }
.task-meta-persistent-section .task-icon-select-toggle { height: 46px; padding: 0 11px; }
.task-meta-persistent-section .task-icon-select-content { height: 24px; transform: translateY(3px); }
.task-meta-persistent-section .task-icon-select-content > span { display: flex; height: 24px; align-items: center; line-height: 1; transform: translateY(3px); }
.task-meta-persistent-section .task-icon-select-menu { min-width: 280px; }
.task-meta-persistent-section .task-icon-select.saving { opacity: .65; }
.task-meta-persistent-section .task-icon-select.saving .task-icon-select-toggle { cursor: wait; }
.task-meta-persistent-category { z-index: 5; }
.task-meta-persistent-category .task-icon-select { width: 100%; }
.task-meta-persistent-category .task-icon-select-toggle { height: 46px; padding: 0 11px; }
.task-meta-persistent-category .task-icon-select-content { height: 24px; transform: translateY(3px); }
.task-meta-persistent-category .task-icon-select-content > span { display: flex; height: 24px; align-items: center; line-height: 1; transform: translateY(3px); }
.task-meta-persistent-category .task-icon-select-menu { min-width: 280px; }
.task-meta-persistent-category .task-icon-select.saving { opacity: .65; }
.task-meta-persistent-category .task-icon-select.saving .task-icon-select-toggle { cursor: wait; }
.task-meta-persistent-section:has(.task-icon-select.open), .task-meta-persistent-category:has(.task-icon-select.open) { z-index: 60; }
.task-meta-grid > div.is-editing, .task-meta-line.is-editing { z-index: 60; }
.task-meta-grid > [data-inline-container="section"].is-editing, .task-meta-grid > [data-inline-container="category_id"].is-editing { grid-column: 1 / -1; }
.task-meta-grid .task-inline-editor:has(.task-icon-select) { align-items: stretch; flex-direction: column; }
.task-meta-grid .task-inline-editor:has(.task-icon-select) .task-inline-actions { justify-content: flex-end; }
.task-responsible-phone { display: inline-flex; width: fit-content; align-items: center; gap: 7px; margin-top: 7px; padding: 0; color: #63bff0; background: transparent; border: 0; cursor: pointer; font: 600 15px Onest, sans-serif; }
.task-responsible-phone:hover { color: #9bd9f8; }
.task-responsible-phone.calling { cursor: wait; opacity: .5; }
.task-responsible-phone svg { width: 15px; flex: 0 0 auto; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; }
[data-inline-container="responsible"].is-editing .task-responsible-phone { display: none; }
.task-notes { margin: 22px -22px -22px; border-top: 1px solid rgba(103,159,199,.1); }
.task-notes-heading { display: flex; min-height: 70px; align-items: center; padding: 14px 22px; }
.task-notes-heading > div { display: flex; min-width: 0; align-items: baseline; gap: 9px; }
.task-notes-heading h4 { margin: 0; color: #d7e3ea; font-size: 17px; font-weight: 600; }
.task-notes-heading span { color: #587387; font-size: 12px; }
.task-notes-heading .task-card-action { margin-left: auto; }
.task-note-list { display: grid; border-top: 1px solid rgba(103,159,199,.08); }
.task-note-item { display: grid; grid-template-columns: 38px minmax(0,1fr) auto; gap: 12px; padding: 16px 14px 16px 22px; border-bottom: 1px solid rgba(103,159,199,.07); }
.task-note-item:last-child { border-bottom: 0; }
.task-note-avatar { display: grid; width: 38px; height: 38px; place-items: center; color: #73c7f4; background: rgba(41,169,255,.09); border: 1px solid rgba(41,169,255,.14); border-radius: 10px; font-size: 11px; font-weight: 650; }
.task-note-item > div { min-width: 0; }
.task-note-meta { display: flex; min-width: 0; align-items: baseline; gap: 10px; }
.task-note-meta strong { overflow: hidden; color: #c9d6de; font-size: 14px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.task-note-meta time { flex: 0 0 auto; color: #587387; font-size: 11px; }
.task-note-item p { margin: 7px 0 0; color: #9eb0bd; font-size: 14px; line-height: 1.55; overflow-wrap: anywhere; }
.task-note-actions { display: flex; align-self: center; align-items: center; gap: 2px; }
.task-note-edit, .task-note-delete { display: grid; width: 30px; height: 30px; align-self: center; place-items: center; padding: 0; color: #637b8d; background: transparent; border: 0; border-radius: 7px; cursor: pointer; opacity: .55; transition: color .18s ease, background .18s ease, opacity .18s ease; }
.task-note-edit:hover { color: #68c9f5; background: rgba(41,169,255,.08); opacity: 1; }
.task-note-delete:hover { color: #ec8d8d; background: rgba(222,84,84,.08); opacity: 1; }
.task-note-edit:disabled, .task-note-delete:disabled { cursor: wait; opacity: .3; }
.task-note-edit svg, .task-note-delete svg { width: 16px; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; }
.task-note-action-placeholder { width: 30px; height: 30px; }
.task-notes-empty { display: grid; min-height: 76px; place-items: center; color: #587387; border-top: 1px solid rgba(103,159,199,.08); font-size: 13px; }
.task-cost-total { margin-left: auto; color: #63d7aa; font-size: 19px; font-weight: 650; white-space: nowrap; }
.task-cost-totals { display: flex; flex: 0 0 auto; align-items: flex-end; flex-direction: column; gap: 3px; margin-left: auto; }
.task-cost-totals span { color: #597589; font-size: 10px; }
.task-cost-totals strong { margin-left: 5px; color: #62d6a8; font-size: 15px; font-weight: 650; white-space: nowrap; }
.task-cost-totals span:nth-child(2) strong { color: #7db6d8; }
.task-margin-caption strong.task-margin-value { margin-left: 5px; color: #e3b96f; font-size: 13px; font-weight: 650; }
.task-margin-caption strong.task-margin-value.negative { color: #ec8585; }
.task-cost-scroll { overflow-x: auto; margin: 0 -22px -22px; }
.task-cost-table { width: 100%; min-width: 1080px; border-collapse: collapse; }
.task-cost-table th { height: 42px; padding: 0 14px; color: #607b90; background: rgba(13,39,59,.62); border-top: 1px solid rgba(103,159,199,.08); border-bottom: 1px solid rgba(103,159,199,.08); font-size: 11px; font-weight: 650; letter-spacing: .045em; text-align: left; text-transform: uppercase; }
.task-cost-table td { height: 54px; padding: 0 14px; color: #aebdca; border-bottom: 1px solid rgba(103,159,199,.07); font-size: 14px; }
.task-cost-table td:first-child { color: #d1dce3; font-size: 15px; }
.task-cost-table td strong { color: #d5e1e8; font-weight: 600; }
.task-cost-input { width: 100%; height: 34px; padding: 0 8px; color: #c6d3dc; background: rgba(11,34,52,.65); border: 1px solid transparent; border-radius: 6px; outline: none; font: 500 14px Onest, sans-serif; transition: border-color .18s ease, background .18s ease; }
.task-cost-input:hover { background: rgba(15,43,64,.8); border-color: rgba(96,153,194,.12); }
.task-cost-input:focus { background: #0e2a40; border-color: rgba(61,169,232,.4); }
.task-cost-input.number { min-width: 105px; }
.task-cost-input.qty { min-width: 62px; }
.task-cost-table tr.saving { opacity: .65; }
.task-cost-table tr.saved { background: rgba(54,195,140,.035); }
.task-check { display: inline-grid; place-items: center; cursor: pointer; }
.task-check input { position: absolute; opacity: 0; pointer-events: none; }
.task-check span { position: relative; width: 21px; height: 21px; background: #102b40; border: 1px solid rgba(112,151,177,.24); border-radius: 5px; transition: background .18s ease, border-color .18s ease; }
.task-check span::after { content: ""; position: absolute; top: 3px; left: 6px; width: 6px; height: 11px; border-right: 2px solid transparent; border-bottom: 2px solid transparent; transform: rotate(45deg); transition: border-color .18s ease; }
.task-check input:checked + span { background: rgba(45,177,127,.2); border-color: rgba(58,217,159,.48); }
.task-check input:checked + span::after { border-color: #62dbad; }
.task-row-delete, .task-timeline-delete, .task-timeline-edit { display: grid; width: 30px; height: 30px; flex: 0 0 auto; place-items: center; color: #637b8d; background: transparent; border: 0; border-radius: 7px; cursor: pointer; opacity: .55; transition: color .18s ease, background .18s ease, opacity .18s ease; }
.task-row-delete:hover, .task-timeline-delete:hover { color: #ec8d8d; background: rgba(222,84,84,.08); opacity: 1; }
.task-timeline-edit:hover { color: #73c6f2; background: rgba(41,169,255,.08); opacity: 1; }
.task-row-delete svg, .task-timeline-delete svg, .task-timeline-edit svg { width: 16px; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; }
.task-cost-table td:last-child { white-space: nowrap; }
.task-cost-table td:last-child .task-row-delete { display: inline-grid; margin-left: 8px; vertical-align: middle; }
.task-cost-table tfoot td { color: #7892a5; background: rgba(10,31,49,.74); border-bottom: 0; font-weight: 600; }
.task-cost-table tfoot td:first-child { text-align: right; text-transform: uppercase; }
.task-bool { display: inline-flex; min-width: 44px; height: 25px; align-items: center; justify-content: center; border-radius: 13px; font-size: 12px; }
.task-bool.yes { color: #67d4aa; background: rgba(58,217,159,.08); border: 1px solid rgba(58,217,159,.14); }
.task-bool.no { color: #758d9f; background: rgba(106,135,156,.06); border: 1px solid rgba(106,135,156,.1); }
.task-card-empty { display: grid; min-height: 105px; place-items: center; color: #5c7589; font-size: 14px; }
.task-card-empty.small { min-height: 65px; }
.task-performer-list { display: grid; gap: 10px; }
.task-performer { display: flex; min-width: 0; align-items: center; padding: 10px; background: rgba(18,48,70,.32); border: 1px solid rgba(103,159,199,.08); border-radius: 10px; }
.task-performer-avatar { display: grid; width: 38px; height: 38px; flex: 0 0 auto; place-items: center; margin-right: 11px; color: #74c7f5; background: rgba(41,169,255,.1); border: 1px solid rgba(41,169,255,.15); border-radius: 10px; font-size: 12px; font-weight: 650; }
.task-performer > div { display: flex; min-width: 0; flex-direction: column; }
.task-performer > .task-row-delete { margin-left: auto; }
.task-performer strong { overflow: hidden; color: #cbd8e0; font-size: 14px; font-weight: 550; text-overflow: ellipsis; white-space: nowrap; }
.task-performer > div span { margin-top: 3px; overflow: hidden; color: #607b90; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.task-timeline { position: relative; display: grid; gap: 0; padding-left: 4px; }
.task-timeline::before { content: ""; position: absolute; top: 10px; bottom: 17px; left: 10px; width: 1px; background: rgba(91,147,188,.16); }
.task-timeline-item { position: relative; display: grid; grid-template-columns: 20px minmax(0,1fr) auto; gap: 11px; padding-bottom: 22px; }
.task-timeline-item:last-child { padding-bottom: 2px; }
.task-timeline-dot { position: relative; z-index: 1; width: 13px; height: 13px; margin-top: 4px; background: var(--event-color, #4ba9e4); border: 3px solid #0b2032; border-radius: 50%; box-shadow: 0 0 0 2px color-mix(in srgb, var(--event-color, #4ba9e4) 28%, transparent); }
.task-timeline-dot.created { --event-color: #54d3a4; }
.task-timeline-item > div { display: flex; min-width: 0; flex-direction: column; }
.task-timeline-item strong { color: #c5d2db; font-size: 14px; font-weight: 600; }
.task-timeline-item time { margin-top: 3px; color: #557084; font-size: 12px; }
.task-timeline-item p { margin: 7px 0 0; color: #91a5b4; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.task-timeline-item small { margin-top: 5px; color: #4e687c; font-size: 11px; }
.task-timeline-actions { display: flex; margin-top: -2px; }
.object-modal-dialog.wide { width: min(860px, 100%); }
.object-modal-dialog.small { width: min(500px, 100%); }
.task-edit-modal .object-modal-dialog { max-height: calc(100vh - 44px); overflow-y: auto; }
.task-edit-modal .object-modal-header { position: sticky; z-index: 3; top: 0; background: #0d263b; }
.task-edit-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; padding: 22px; }
.task-edit-form .full { grid-column: 1 / -1; }
.task-simple-form { display: grid; gap: 17px; padding: 22px; }
.task-form-field { display: flex; min-width: 0; flex-direction: column; gap: 7px; }
.task-form-field > span { color: #8399aa; font-size: 13px; font-weight: 550; }
.task-form-field input, .task-form-field select, .task-form-field textarea { width: 100%; min-height: 43px; padding: 0 12px; color: #d5e0e7; background: #0b2235; border: 1px solid rgba(103,159,199,.16); border-radius: 8px; outline: none; font: 500 14px Onest, sans-serif; transition: border-color .18s ease, box-shadow .18s ease; }
.task-form-field textarea { min-height: 110px; padding: 11px 12px; line-height: 1.5; resize: vertical; }
.task-form-field input:focus, .task-form-field select:focus, .task-form-field textarea:focus { border-color: rgba(53,168,232,.48); box-shadow: 0 0 0 3px rgba(41,169,255,.055); }
.task-form-field input:disabled, .task-form-field select:disabled, .task-form-field textarea:disabled { opacity: .6; }
.task-section-field { position: relative; }
.task-section-native { position: absolute; width: 1px !important; height: 1px !important; min-height: 0 !important; padding: 0 !important; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; opacity: 0; pointer-events: none; }
.task-section-field { z-index: 4; }
.task-section-dropdown-toggle { display: flex; width: 100%; height: 54px; align-items: center; justify-content: space-between; padding: 0 14px; color: #c5d8e4; background: #0b2235; border: 1px solid rgba(103,159,199,.2); border-radius: 9px; cursor: pointer; text-align: left; transition: border-color .18s ease, box-shadow .18s ease, background .18s ease; }
.task-section-dropdown-toggle:hover, .task-section-dropdown-toggle.open { background: #0d2940; border-color: rgba(53,168,232,.48); }
.task-section-dropdown-toggle.open { box-shadow: 0 0 0 3px rgba(41,169,255,.055); }
.task-section-toggle-content, .task-section-picker button { display: flex; min-width: 0; align-items: center; }
.task-section-dropdown-toggle svg, .task-section-picker svg { width: 27px; height: 27px; flex: 0 0 auto; margin-right: 11px; color: #5ab5e8; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; }
.task-section-dropdown-toggle .task-section-chevron { width: 20px; height: 20px; margin: 0 0 0 12px; color: #6f8da1; transition: transform .18s ease; }
.task-section-dropdown-toggle.open .task-section-chevron { transform: rotate(180deg); }
.task-section-toggle-content > span, .task-section-picker button > span { display: flex; min-width: 0; flex-direction: column; color: inherit; font-size: 14px; font-weight: 650; line-height: 1.15; }
.task-section-toggle-content small, .task-section-picker small { margin-top: 4px; color: #718da1; font-size: 10px; font-weight: 550; }
.task-section-picker { position: absolute; z-index: 40; top: calc(100% + 5px); right: 0; left: 0; display: grid; padding: 7px; visibility: hidden; opacity: 0; transform: translateY(-5px); background: #0b2133; border: 1px solid rgba(79,158,207,.3); border-radius: 10px; box-shadow: 0 18px 45px rgba(0,8,15,.48); pointer-events: none; transition: opacity .15s ease, transform .15s ease, visibility .15s ease; }
.task-section-picker.open { visibility: visible; opacity: 1; transform: translateY(0); pointer-events: auto; }
.task-section-picker button { width: 100%; height: 52px; padding: 0 12px; color: #9db4c4; background: transparent; border: 0; border-radius: 7px; cursor: pointer; text-align: left; transition: color .15s ease, background .15s ease; }
.task-section-picker button:hover { color: #d6e8f2; background: rgba(34,104,145,.24); }
.task-section-picker button.selected { color: #dbf2ff; background: rgba(29,126,181,.24); }
.task-section-picker button.selected svg { color: #64c8fb; }
.task-section-picker button.selected::after { width: 7px; height: 7px; margin-left: auto; content: ""; background: #4bc2f8; border-radius: 50%; box-shadow: 0 0 0 4px rgba(75,194,248,.1); }
@media (max-width: 420px) { .task-section-dropdown-toggle { height: 52px; padding: 0 12px; } .task-section-picker button { height: 50px; } }
.task-icon-select-native { position: absolute; width: 1px !important; height: 1px !important; min-height: 0 !important; padding: 0 !important; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; opacity: 0; pointer-events: none; }
.task-icon-select { position: relative; width: 100%; }
.task-icon-select.open { z-index: 45; }
.task-icon-select-toggle { display: flex; width: 100%; height: 54px; align-items: center; justify-content: space-between; padding: 0 14px; color: #c5d8e4; background: #0b2235; border: 1px solid rgba(103,159,199,.2); border-radius: 9px; cursor: pointer; text-align: left; transition: border-color .18s ease, box-shadow .18s ease, background .18s ease; }
.task-icon-select-toggle:hover, .task-icon-select.open .task-icon-select-toggle { background: #0d2940; border-color: rgba(53,168,232,.48); }
.task-icon-select.open .task-icon-select-toggle { box-shadow: 0 0 0 3px rgba(41,169,255,.055); }
.task-icon-select-content, .task-icon-select-option { display: flex; min-width: 0; align-items: center; }
.task-icon-select-toggle svg, .task-icon-select-option svg { width: 24px; height: 24px; flex: 0 0 auto; margin-right: 11px; color: #5ab5e8; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; }
.task-icon-select-content > span, .task-icon-select-option > span { overflow: hidden; font-size: 14px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.task-icon-select-toggle .task-icon-select-chevron { width: 20px; height: 20px; margin: 0 0 0 12px; color: #6f8da1; transition: transform .18s ease; }
.task-icon-select.open .task-icon-select-chevron { transform: rotate(180deg); }
.task-icon-select-menu { position: absolute; z-index: 50; top: calc(100% + 5px); right: 0; left: 0; display: grid; max-height: 280px; padding: 7px; overflow-y: auto; visibility: hidden; opacity: 0; transform: translateY(-5px); background: #0b2133; border: 1px solid rgba(79,158,207,.3); border-radius: 10px; box-shadow: 0 18px 45px rgba(0,8,15,.48); pointer-events: none; transition: opacity .15s ease, transform .15s ease, visibility .15s ease; }
.task-icon-select.open .task-icon-select-menu { visibility: visible; opacity: 1; transform: translateY(0); pointer-events: auto; }
.task-icon-select-option { width: 100%; height: 48px; padding: 0 12px; color: #9db4c4; background: transparent; border: 0; border-radius: 7px; cursor: pointer; text-align: left; transition: color .15s ease, background .15s ease; }
.task-icon-select-option:hover { color: #d6e8f2; background: rgba(34,104,145,.24); }
.task-icon-select-option.selected { color: #dbf2ff; background: rgba(29,126,181,.24); }
.task-icon-select-option.selected::after { width: 7px; height: 7px; margin-left: auto; content: ""; background: #4bc2f8; border-radius: 50%; box-shadow: 0 0 0 4px rgba(75,194,248,.1); }
.task-icon-select.priority .task-icon-select-toggle[data-value="1"] svg, .task-icon-select.priority .task-icon-select-option[data-value="1"] svg { color: #6aaed4; }
.task-icon-select.priority .task-icon-select-toggle[data-value="2"] svg, .task-icon-select.priority .task-icon-select-option[data-value="2"] svg { color: #67c6a5; }
.task-icon-select.priority .task-icon-select-toggle[data-value="3"] svg, .task-icon-select.priority .task-icon-select-option[data-value="3"] svg { color: #ef8d73; }
@media (max-width: 420px) { .task-icon-select-toggle { height: 52px; padding: 0 12px; } .task-icon-select-option { height: 48px; } }
.task-responsible-field { position: relative; }
.task-responsible-result { min-height: 20px; padding-left: 2px; color: #708a9e; font-size: 13px; font-weight: 550; }
.task-responsible-result.searching { color: #6baed4; }
.task-responsible-result.found { color: #62cba5; }
.task-responsible-result.error { color: #d9838b; }
.task-inline-editor .task-responsible-result { width: 100%; }
.task-form-error { padding: 10px 12px; color: #e99494; background: rgba(220,75,75,.07); border: 1px solid rgba(220,75,75,.13); border-radius: 8px; font-size: 13px; }
.task-help-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.task-help-list > div { display: flex; min-width: 0; flex-direction: column; padding: 14px; background: rgba(18,48,70,.3); border: 1px solid rgba(103,159,199,.09); border-radius: 10px; }
.task-help-list span { color: #557286; font-size: 11px; }
.task-help-list strong { margin-top: 6px; color: #cbd7df; font-size: 15px; font-weight: 550; }
.task-help-list p { margin: 5px 0 0; color: #688397; font-size: 12px; }

@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); box-shadow: 18px 0 60px rgba(0,0,0,.35); }
  .sidebar.open { transform: translateX(0); }
  .sidebar-overlay { position: fixed; inset: 0; z-index: 20; display: block; visibility: hidden; background: rgba(2,8,14,.66); opacity: 0; backdrop-filter: blur(4px); transition: opacity .25s ease, visibility .25s ease; }
  .sidebar-overlay.visible { visibility: visible; opacity: 1; }
  .main-content { margin-left: 0; }
  .mobile-menu { display: grid; }
  .workspace-content { padding: 28px 24px 38px; }
  .objects-summary { align-items: flex-start; flex-direction: column; }
  .object-create-button { align-self: flex-start; }
  .task-status-switcher { max-width: none; }
  .task-detail-layout { grid-template-columns: 1fr; }
  .task-detail-main { display: grid; min-width: 0; gap: 18px; }
  .task-detail-primary { grid-column: auto; grid-row: auto; }
  .task-description-card, .task-data-card, .task-cost-card, .task-help-card, .task-detail-side { grid-column: auto; grid-row: auto; }
  .task-detail-side { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .task-detail-page { overflow-x: hidden; }
  .topbar { height: 76px; padding: 0 16px; }
  .workspace { min-height: calc(100vh - 76px); padding: 28px 20px; }
  .breadcrumbs { display: none; }
  .page-heading h1 { max-width: 180px; overflow: hidden; font-size: 18px; text-overflow: ellipsis; white-space: nowrap; }
  .topbar-actions { gap: 5px; }
  .profile { width: auto; padding: 0; background: transparent; border: 0; box-shadow: none; }
  .profile-copy { display: none; }
  .profile-menu-chevron { margin-left: 5px; }
  .profile-dropdown { right: -2px; width: min(242px, calc(100vw - 32px)); }
  .icon-button { width: 36px; }
  .avatar { width: 36px; height: 36px; }
  .empty-state { transform: translateY(-2vh); }
  .empty-icon { width: 64px; height: 64px; border-radius: 18px; }
  .empty-state h2 { font-size: 18px; }
  .empty-state p { max-width: 315px; font-size: 12px; }
  .workspace-content { min-height: calc(100vh - 76px); padding: 23px 15px 34px; }
  .objects-summary { gap: 19px; margin-bottom: 18px; }
  .objects-intro h2 { font-size: 22px; }
  .objects-intro p { font-size: 11px; }
  .object-create-button { width: 100%; align-self: stretch; }
  .object-stat-icon { width: 30px; height: 30px; margin: 0 10px 0 0; }
  .object-stat-icon svg { width: 15px; }
  .object-stat strong { font-size: 14px; }
  .object-stat small { overflow: hidden; width: 100%; margin-top: 3px; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
  .datatable-card { overflow: visible; background: transparent; border: 0; border-radius: 0; box-shadow: none; backdrop-filter: none; }
  .datatable-toolbar { height: auto; align-items: stretch; flex-direction: column; gap: 10px; margin-bottom: 13px; padding: 0; border: 0; }
  .datatable-search { width: 100%; }
  .datatable-search input { height: 45px; background: #0b1d2e; }
  .datatable-size { justify-content: flex-end; }
  .datatable-size span { display: none; }
  .datatable-size select { height: 32px; }
  .task-toolbar-actions { width: 100%; }
  .task-toolbar-actions .datatable-search { flex: 1; width: auto; }
  .task-reset-filters { width: 45px; height: 45px; justify-content: center; padding: 0; }
  .task-reset-filters span { display: none; }
  .datatable-scroll { overflow: visible; }
  .objects-table, .objects-table tbody { display: block; }
  .objects-table thead { display: none; }
  .objects-table tbody tr { display: grid; margin-bottom: 10px; padding: 13px 14px; background: rgba(9,25,41,.82); border: 1px solid rgba(111,158,194,.11); border-radius: 12px; }
  .objects-table tbody tr:hover { background: rgba(9,25,41,.82); }
  .objects-table tbody tr[hidden] { display: none; }
  .objects-table td { display: flex; width: 100%; height: auto; min-height: 40px; align-items: center; justify-content: space-between; padding: 9px 0; overflow: visible; border-bottom: 1px solid rgba(111,158,194,.07); font-size: 14.5px; white-space: normal; }
  .objects-table td::before { content: attr(data-label); flex: 0 0 105px; color: #536b7f; font-size: 8px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; }
  .objects-table td:nth-child(1) { min-height: 46px; padding-top: 0; }
  .objects-table td:last-child { padding-bottom: 0; border-bottom: 0; }
  .object-title-cell { flex: 1; justify-content: flex-end; text-align: right; }
  .object-building-icon { display: none; }
  .object-title-cell strong { font-size: 15px; white-space: normal; }
  .director-name, .object-phone { font-size: 14px; }
  .object-open-tasks { min-width: 32px; height: 26px; font-size: 12px; }
  .director-name { max-width: 185px; text-align: right; }
  .datatable-footer { min-height: 56px; padding: 9px 2px; border-top: 0; }
  .datatable-footer > span { font-size: 9px; }
  .datatable-pagination button { width: 29px; height: 29px; }
  .datatable-empty { min-height: 250px; background: rgba(9,25,41,.82); border: 1px solid rgba(111,158,194,.11); border-radius: 12px; }
  .object-modal { padding: 12px; }
  .object-modal-dialog { max-height: calc(100vh - 24px); overflow-y: auto; border-radius: 14px; }
  .object-modal-header { min-height: 80px; padding: 17px 18px; }
  .object-modal-header h2 { font-size: 22px; }
  .object-create-form { padding: 19px 18px; }
  .object-form-input input { height: 50px; font-size: 14px; }
  .object-modal-actions { display: grid; grid-template-columns: .8fr 1.2fr; }
  .object-modal-cancel, .object-modal-submit { width: 100%; padding: 0 10px; }
  .object-detail-page { margin-top: -2px; }
  .object-back-link { margin-bottom: 17px; }
  .object-detail-hero { min-height: 125px; padding: 20px; }
  .object-detail-mark { width: 58px; height: 58px; margin-right: 15px; border-radius: 15px; }
  .object-detail-mark svg { width: 27px; }
  .object-detail-heading h2 { margin-top: 7px; font-size: 24px; }
  .object-detail-hero { align-items: flex-start; flex-wrap: wrap; }
  .object-detail-heading { align-self: center; }
  .object-detail-edit { width: 100%; margin: 18px 0 0; }
  .object-detail-grid { grid-template-columns: 1fr; gap: 10px; margin-top: 10px; }
  .object-info-card { min-height: 145px; padding: 18px; }
  .object-info-value { margin-top: 19px; padding-top: 14px; }
  .object-info-value strong, .object-info-value a { font-size: 16px; }
  .object-detail-placeholder { margin-top: 10px; }
  .task-status-switcher { grid-template-columns: 1fr; gap: 7px; margin-bottom: 17px; padding: 4px; }
  .task-status-bar { align-items: stretch; flex-direction: column; gap: 9px; margin-bottom: 17px; }
  .task-status-bar .task-status-switcher { margin-bottom: 0; }
  .task-create-button { width: 100%; height: 48px; justify-content: center; margin-left: 0; }
  .task-status-tab { height: 75px; padding: 0 13px; }
  .task-tab-icon { width: 38px; height: 38px; margin-right: 11px; }
  .task-tab-copy strong { font-size: 15px; }
  .task-tab-copy small { font-size: 11px; }
  .task-tab-count { min-width: 35px; margin-left: 8px; }
  .tasks-datatable { overflow: visible; background: transparent; border: 0; border-radius: 0; box-shadow: none; backdrop-filter: none; }
  .task-mobile-filters { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0 14px; }
  .task-mobile-filters select { height: 40px; font-size: 13px; }
  .task-mobile-filters select:last-child { grid-column: 1 / -1; }
  .tasks-table, .tasks-table tbody { display: block; }
  .tasks-table thead { display: none; }
  .tasks-table tbody tr { display: grid; margin-bottom: 10px; padding: 13px 14px; background: rgba(9,25,41,.82); border: 1px solid rgba(111,158,194,.11); border-radius: 12px; }
  .tasks-table tbody tr:hover { background: rgba(9,25,41,.82); }
  .tasks-table tbody tr[hidden] { display: none; }
  .tasks-table td { display: flex; width: 100%; height: auto; min-height: 42px; align-items: center; justify-content: space-between; padding: 9px 0; overflow: visible; border-bottom: 1px solid rgba(111,158,194,.07); font-size: 14px; white-space: normal; }
  .tasks-table td::before { content: attr(data-label); flex: 0 0 94px; color: #627b8e; font-size: 10px; font-weight: 650; letter-spacing: .05em; text-transform: uppercase; }
  .tasks-table td:first-child { min-height: 42px; }
  .tasks-table td:nth-child(2) { min-height: 55px; padding-top: 1px; }
  .tasks-table td:last-child { padding-bottom: 1px; border-bottom: 0; }
  .task-title-cell { min-width: 0; flex: 1; justify-content: flex-end; text-align: right; }
  .task-title-cell strong { font-size: 15px; white-space: normal; }
  .task-title-link { font-size: 15px; white-space: normal; }
  .task-title-cell small { font-size: 11px; }
  .task-object { max-width: 205px; justify-content: flex-end; font-size: 14px; white-space: normal; text-align: right; }
  .task-category, .task-state, .task-section { font-size: 13px; }
  .task-priority, .task-deadline { font-size: 13px; }
  .task-detail-hero { min-height: 0; align-items: flex-start; gap: 13px; margin-top: 9px; padding: 18px 15px; }
  .task-detail-number { height: 26px; padding: 0 9px; border-radius: 13px; font-size: 11px; }
  .task-detail-title h2 { font-size: 21px; }
  .task-inline-editor { align-items: stretch; flex-direction: column; }
  .task-inline-actions { justify-content: flex-end; }
  .task-title-edit-row.is-editing .task-inline-editor, .task-detail-priority.is-editing .task-inline-editor { width: 100%; align-items: stretch; flex-direction: column; }
  .task-detail-priority.is-editing { width: 100%; }
  .task-detail-priority.is-editing .task-inline-control { width: 100%; }
  .task-detail-title > p, .task-created-meta { font-size: 12px; line-height: 1.5; }
  .task-detail-actions { width: 100%; align-items: stretch; margin: 3px 0 0; }
  .task-detail-hero { flex-wrap: wrap; }
  .task-state-buttons { width: 100%; flex-wrap: wrap; }
  .task-state-action { flex: 1 1 auto; }
  .task-primary-action { width: 100%; justify-content: center; }
  .task-detail-labels { flex-wrap: wrap; margin-bottom: 8px; }
  .task-detail-labels .task-state, .task-detail-priority { height: 26px; font-size: 11px; }
  .task-detail-layout, .task-detail-main, .task-detail-side { gap: 12px; }
  .task-detail-side { grid-template-columns: 1fr; }
  .task-detail-card { padding: 17px 14px; border-radius: 12px; }
  .task-detail-card-heading { margin-bottom: 17px; }
  .task-detail-card-heading h3 { font-size: 17px; }
  .task-card-title-line { align-items: flex-start; flex-direction: column; gap: 5px; }
  .task-detail-card-heading p { font-size: 11px; }
  .task-detail-card-icon { width: 38px; height: 38px; margin-right: 10px; }
  .task-description-text { font-size: 15px; line-height: 1.65; }
  .task-meta-grid { grid-template-columns: 1fr; }
  .task-meta-grid > div { min-height: 68px; padding: 12px 13px; }
  .task-meta-grid strong, .task-meta-grid a { font-size: 14px; }
  .task-cost-total { font-size: 15px; }
  .task-cost-card .task-detail-card-heading { flex-wrap: wrap; }
  .task-cost-card .task-detail-card-heading > div:not(.task-cost-totals) { flex: 1 1 150px; }
  .task-cost-card .task-detail-card-heading .task-card-action { order: 2; margin-left: auto; }
  .task-cost-totals { width: auto; flex: 0 0 calc(100% - 48px); order: 3; align-items: flex-start; margin: 8px 0 0 48px; }
  .task-cost-scroll { margin: 0 -14px -17px; }
  .task-cost-total { margin-left: auto; }
  .task-edit-form { grid-template-columns: 1fr; gap: 14px; padding: 17px 14px; }
  .task-edit-form .full { grid-column: auto; }
  .task-simple-form { padding: 17px 14px; }
  .task-help-list { grid-template-columns: 1fr; }
}

.auth-page { min-height: 100vh; background: #06111e; }
.auth-page::before { content: ""; position: fixed; inset: 0; background-image: linear-gradient(rgba(86,139,180,.032) 1px, transparent 1px), linear-gradient(90deg, rgba(86,139,180,.032) 1px, transparent 1px); background-size: 44px 44px; pointer-events: none; }
.auth-shell { position: relative; z-index: 1; display: grid; width: 100%; min-height: 100vh; grid-template-columns: minmax(420px, 1.05fr) minmax(500px, .95fr); }
.auth-promo { position: relative; display: flex; flex-direction: column; justify-content: space-between; min-height: 100vh; padding: 42px 7vw 42px 4.5vw; overflow: hidden; border-right: 1px solid rgba(120,166,201,.09); }
.auth-promo::before { content: ""; position: absolute; top: 28%; left: 20%; width: 520px; height: 520px; background: radial-gradient(circle, rgba(20,125,195,.17), transparent 66%); filter: blur(8px); pointer-events: none; }
.auth-promo::after { content: ""; position: absolute; top: 43%; left: 51%; width: 220px; height: 220px; border: 1px solid rgba(57,157,220,.09); border-radius: 50%; box-shadow: 0 0 0 58px rgba(57,157,220,.025), 0 0 0 116px rgba(57,157,220,.016); pointer-events: none; }
.auth-brand { position: relative; z-index: 1; display: flex; align-items: center; }
.auth-promo-copy { position: relative; z-index: 1; max-width: 590px; margin: auto 0; padding: 80px 0; }
.auth-kicker { color: #3da8e9; font-size: 10px; font-weight: 650; letter-spacing: .2em; }
.auth-promo-copy h1 { margin: 20px 0 20px; color: #e9f2f9; font-size: clamp(38px, 4vw, 61px); font-weight: 600; line-height: 1.12; letter-spacing: -.045em; }
.auth-form-panel { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 48px 7vw; background: rgba(8,21,35,.55); backdrop-filter: blur(16px); }
.auth-form { width: 100%; max-width: 410px; }
.auth-form-heading { margin-bottom: 36px; }
.auth-form-heading > span { color: #4386b2; font-size: 9px; font-weight: 700; letter-spacing: .18em; }
.auth-form-heading h2 { margin: 10px 0 7px; color: #edf4f9; font-size: 30px; font-weight: 600; letter-spacing: -.035em; }
.auth-form-heading p { margin: 0; color: #61788c; font-size: 13px; }
.auth-field { display: block; margin-bottom: 20px; }
.auth-field > span { display: block; margin: 0 0 9px 2px; color: #9eb0bf; font-size: 12px; font-weight: 550; }
.auth-input-wrap { position: relative; }
.auth-input-wrap > svg { position: absolute; top: 50%; left: 17px; width: 19px; color: #526d83; stroke: currentColor; stroke-width: 1.45; stroke-linecap: round; stroke-linejoin: round; transform: translateY(-50%); pointer-events: none; }
.auth-input-wrap input { width: 100%; height: 54px; padding: 0 18px 0 49px; color: #e6eef5; caret-color: var(--accent); background: #0b1b2c; border: 1px solid rgba(117,157,189,.16); border-radius: 12px; outline: 0; font-family: inherit; font-size: 14px; transition: border-color .2s ease, box-shadow .2s ease, background .2s ease; }
.auth-input-wrap input::placeholder { color: #42586b; }
.auth-input-wrap input:focus { background: #0d2033; border-color: rgba(46,166,242,.48); box-shadow: 0 0 0 3px rgba(41,169,255,.08); }
.auth-submit { display: flex; align-items: center; justify-content: center; width: 100%; height: 54px; margin-top: 28px; color: #fff; background: linear-gradient(135deg, #159bea, #0878c1); border: 0; border-radius: 12px; box-shadow: 0 13px 30px rgba(8,117,186,.2); cursor: pointer; font-size: 13px; font-weight: 600; transition: transform .18s ease, filter .18s ease, box-shadow .18s ease; }
.auth-submit:hover { filter: brightness(1.08); box-shadow: 0 15px 36px rgba(8,117,186,.28); transform: translateY(-1px); }
.auth-submit:active { transform: translateY(0); }
.auth-submit svg { width: 18px; margin-left: 10px; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.auth-error { display: flex; align-items: center; margin: -14px 0 22px; padding: 12px 14px; color: #efaaaa; background: rgba(202,68,68,.09); border: 1px solid rgba(226,91,91,.18); border-radius: 10px; font-size: 11px; line-height: 1.5; }
.auth-error svg { width: 18px; min-width: 18px; margin-right: 9px; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
.auth-mobile-brand { display: none; }

@media (max-width: 980px) {
  .auth-shell { display: block; }
  .auth-promo { display: none; }
  .auth-form-panel { min-height: 100vh; padding: 40px 24px; }
  .auth-mobile-brand { position: absolute; top: 28px; left: 28px; display: flex; align-items: center; }
  .auth-mobile-brand .brand-mark { width: 34px; height: 34px; margin-right: 10px; }
  .auth-mobile-brand strong { font-size: 15px; letter-spacing: .18em; }
}

@media (max-width: 520px) {
  .auth-form-panel { align-items: flex-start; padding: 132px 22px 42px; }
  .auth-form-heading { margin-bottom: 30px; }
  .auth-form-heading h2 { font-size: 27px; }
  .auth-input-wrap input, .auth-submit { height: 52px; }
}

.telephony-page { position: relative; z-index: 1; width: 100%; }
.telephony-live { margin-bottom: 12px; padding: 18px 20px; background: linear-gradient(135deg, rgba(10,31,49,.94), rgba(9,27,44,.86)); border: 1px solid rgba(76,177,231,.16); border-radius: 15px; box-shadow: 0 16px 45px rgba(0,0,0,.13); }
.telephony-live-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.telephony-live-heading > div { display: flex; align-items: center; }
.telephony-live-heading h2 { margin: 0; color: #e3edf4; font-size: 18px; font-weight: 620; letter-spacing: -.02em; }
.telephony-live-pulse { position: relative; width: 8px; height: 8px; margin-right: 10px; background: #50d8a5; border-radius: 50%; box-shadow: 0 0 0 5px rgba(80,216,165,.09); }
.telephony-live-pulse::after { content: ""; position: absolute; inset: -5px; border: 1px solid rgba(80,216,165,.4); border-radius: 50%; animation: telephonyLivePulse 1.5s ease-out infinite; }
.telephony-live-count { display: grid; min-width: 24px; height: 24px; place-items: center; margin-left: 9px; padding: 0 7px; color: #74dcb7; background: rgba(56,194,143,.09); border-radius: 12px; font-size: 11px; font-weight: 700; }
.telephony-live-heading p { display: flex; align-items: center; margin: 0; color: #58768b; font-size: 10px; }
.telephony-live-heading p i { width: 5px; height: 5px; margin-right: 7px; background: #459ac7; border-radius: 50%; }
.telephony-live-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px; }
.telephony-live-empty { display: flex; min-height: 68px; align-items: center; justify-content: center; color: #607d92; background: rgba(7,22,36,.45); border: 1px dashed rgba(103,159,199,.1); border-radius: 11px; font-size: 13px; }
.telephony-live-empty span { display: grid; width: 32px; height: 32px; place-items: center; margin-right: 10px; color: #4f86a7; background: rgba(43,133,186,.08); border-radius: 9px; }
.telephony-live-empty svg { width: 16px; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.telephony-live-card { min-width: 0; padding: 15px 16px; background: rgba(8,25,40,.72); border: 1px solid rgba(103,159,199,.12); border-radius: 12px; }
.telephony-live-card.talking { border-color: rgba(71,205,155,.22); box-shadow: inset 3px 0 0 rgba(71,205,155,.62); }
.telephony-live-card.ringing { border-color: rgba(67,166,225,.21); box-shadow: inset 3px 0 0 rgba(67,166,225,.58); }
.telephony-live-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.telephony-live-card > a { display: inline-block; overflow: hidden; max-width: 100%; color: #e1ebf2; font-size: 22px; font-weight: 650; letter-spacing: .01em; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.telephony-live-timer { color: #829caf; font-size: 14px; font-weight: 650; font-variant-numeric: tabular-nums; }
.telephony-live-card .telephony-direction { height: 30px; padding: 0 10px; font-size: 13px; font-weight: 650; }
.telephony-live-stage { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 11px; }
.telephony-live-stage > span { display: flex; align-items: center; color: #72d8b2; font-size: 14px; font-weight: 650; }
.telephony-live-card.ringing .telephony-live-stage > span { color: #75c8f1; }
.telephony-live-stage i { width: 6px; height: 6px; margin-right: 7px; background: currentColor; border-radius: 50%; }
.telephony-live-stage small { overflow: hidden; color: #6d899d; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.telephony-toolbar { display: flex; min-height: 88px; align-items: center; justify-content: space-between; gap: 24px; padding: 18px 22px; background: rgba(9,27,44,.86); border: 1px solid rgba(103,159,199,.13); border-radius: 15px; box-shadow: 0 16px 45px rgba(0,0,0,.13); }
.telephony-toolbar-title { display: flex; min-width: 0; align-items: center; }
.telephony-toolbar-icon { display: grid; width: 46px; height: 46px; flex: 0 0 auto; place-items: center; margin-right: 14px; color: #48b9f5; background: rgba(38,156,226,.1); border: 1px solid rgba(57,169,233,.2); border-radius: 12px; }
.telephony-toolbar-icon svg { width: 22px; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.telephony-toolbar-title h2 { margin: 0 0 5px; color: #e3edf4; font-size: 20px; font-weight: 620; letter-spacing: -.025em; }
.telephony-toolbar-title p { margin: 0; color: #638097; font-size: 12px; }
.telephony-date-controls { display: flex; align-items: center; gap: 8px; }
.telephony-date-step, .telephony-today { height: 42px; color: #7691a6; background: #0b2032; border: 1px solid rgba(103,159,199,.15); border-radius: 10px; cursor: pointer; transition: color .18s ease, border-color .18s ease, background .18s ease; }
.telephony-date-step { display: grid; width: 42px; place-items: center; padding: 0; }
.telephony-date-step svg { width: 18px; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.telephony-date-step:hover, .telephony-today:hover { color: #9edaff; background: #0d293f; border-color: rgba(51,164,232,.3); }
.telephony-date-step:disabled { opacity: .3; cursor: default; }
.telephony-date-field { position: relative; display: flex; height: 42px; align-items: center; color: #63849b; background: #0b2032; border: 1px solid rgba(103,159,199,.15); border-radius: 10px; }
.telephony-date-field svg { position: absolute; left: 13px; width: 18px; stroke: currentColor; stroke-width: 1.45; stroke-linecap: round; pointer-events: none; }
.telephony-date-field input { width: 174px; height: 100%; padding: 0 12px 0 41px; color: #c5d4df; color-scheme: dark; background: transparent; border: 0; outline: 0; font: 550 14px Onest, sans-serif; cursor: pointer; }
.telephony-today { padding: 0 15px; font: 600 12px Onest, sans-serif; }
.telephony-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 12px 0; }
.telephony-summary article { display: flex; min-height: 82px; align-items: center; padding: 15px 18px; background: rgba(9,27,44,.8); border: 1px solid rgba(103,159,199,.11); border-radius: 13px; }
.telephony-summary-icon { display: grid; width: 40px; height: 40px; flex: 0 0 auto; place-items: center; margin-right: 13px; border-radius: 10px; }
.telephony-summary-icon svg { width: 19px; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.telephony-summary-icon.all { color: #59bdf1; background: rgba(44,161,226,.1); }
.telephony-summary-icon.incoming { color: #83c9ef; background: rgba(57,151,208,.1); }
.telephony-summary-icon.outgoing { color: #b49bec; background: rgba(128,95,210,.1); }
.telephony-summary-icon.answered { color: #62d6a8; background: rgba(52,198,142,.1); }
.telephony-summary-icon.missed { color: #e67e87; background: rgba(224,84,96,.1); }
.telephony-summary article div { display: flex; min-width: 0; flex-direction: column; }
.telephony-summary small { margin-bottom: 3px; color: #647e92; font-size: 11px; }
.telephony-summary strong { color: #d8e4ec; font-size: 21px; font-weight: 620; }
.telephony-journal { overflow: hidden; background: rgba(9,27,44,.84); border: 1px solid rgba(103,159,199,.13); border-radius: 15px; box-shadow: 0 18px 48px rgba(0,0,0,.12); }
.telephony-table-scroll { overflow-x: auto; }
.telephony-table { width: 100%; min-width: 1250px; border-collapse: collapse; }
.telephony-table th { height: 48px; padding: 0 12px; color: #617d92; background: rgba(12,37,57,.72); border-bottom: 1px solid rgba(103,159,199,.1); font-size: 11px; font-weight: 650; letter-spacing: .045em; text-align: left; text-transform: uppercase; }
.telephony-table td { height: 60px; padding: 0 12px; color: #aebfcb; border-bottom: 1px solid rgba(103,159,199,.075); font-size: 14px; }
.telephony-table tbody tr:last-child td { border-bottom: 0; }
.telephony-table tbody tr { transition: background .16s ease; }
.telephony-table tbody tr:hover { background: rgba(24,69,99,.16); }
.telephony-time { color: #cbd8e1; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.telephony-phone { padding: 0; color: #73c6f2; background: transparent; border: 0; cursor: pointer; font: 600 15px Onest, sans-serif; text-align: left; text-decoration: none; white-space: nowrap; }
.telephony-phone:hover { color: #a2dcf9; }
.telephony-phone.calling { cursor: wait; opacity: .5; }
.telephony-call-toast { position: fixed; z-index: 1000; right: 24px; bottom: 24px; max-width: min(390px, calc(100vw - 30px)); padding: 14px 17px; color: #bcebd9; background: #0d2c29; border: 1px solid rgba(74,211,162,.28); border-radius: 11px; box-shadow: 0 16px 45px rgba(0,0,0,.35); font-size: 14px; font-weight: 550; line-height: 1.4; opacity: 0; pointer-events: none; transform: translateY(12px); transition: opacity .2s ease, transform .2s ease; }
.telephony-call-toast.error { color: #f0b1b1; background: #301b24; border-color: rgba(232,105,115,.28); }
.telephony-call-toast.visible { opacity: 1; transform: translateY(0); }
.telephony-caller { color: #c6d4de; font-size: 14px; font-weight: 560; white-space: nowrap; }
.telephony-caller-button { padding: 0; background: transparent; border: 0; border-bottom: 1px dashed rgba(121,190,230,.34); cursor: pointer; font-family: inherit; }
.telephony-caller-button:hover { color: #82cff5; border-bottom-color: rgba(121,207,250,.72); }
.telephony-person-modal .object-modal-dialog { width: min(680px, 100%); max-height: calc(100vh - 44px); overflow-y: auto; }
.telephony-person-modal-body { display: grid; gap: 15px; padding: 20px 22px 23px; }
.telephony-person-modal-loading, .telephony-person-modal-error { display: flex; min-height: 180px; align-items: center; justify-content: center; color: #8ba4b7; font-size: 14px; }
.telephony-person-modal-error { color: #e49a9f; }
.telephony-person-contact { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.telephony-person-contact > div { display: flex; min-width: 0; flex-direction: column; padding: 13px 14px; background: rgba(16,45,66,.7); border: 1px solid rgba(121,177,216,.15); border-radius: 10px; }
.telephony-person-contact span { margin-bottom: 6px; color: #7d98ac; font-size: 11px; }
.telephony-person-contact strong, .telephony-person-contact button { overflow: hidden; padding: 0; color: #d2dee6; background: transparent; border: 0; font: 600 15px Onest,sans-serif; text-align: left; text-overflow: ellipsis; white-space: nowrap; }
.telephony-person-contact button { width: fit-content; color: #6cc5f2; cursor: pointer; }
.telephony-person-section { padding: 15px; background: rgba(13,37,56,.7); border: 1px solid rgba(121,177,216,.14); border-radius: 11px; }
.telephony-person-section.adom { background: rgba(41,36,73,.32); border-color: rgba(151,128,221,.18); }
.telephony-person-section-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 11px; }
.telephony-person-section-title > div { display: flex; align-items: center; gap: 8px; }
.telephony-person-section-title span { color: #a9bdca; font-size: 14px; font-weight: 650; }
.telephony-person-section-title small { display: grid; min-width: 22px; height: 22px; place-items: center; padding: 0 6px; color: #74c7f2; background: rgba(41,169,255,.1); border-radius: 11px; font-size: 10px; }
.telephony-person-profile { display: inline-flex; align-items: center; gap: 6px; color: #b7a9ef; font-size: 12px; font-weight: 650; text-decoration: none; }
.telephony-person-profile svg { width: 14px; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.telephony-person-list { display: grid; gap: 8px; }
.telephony-person-list + .telephony-person-list { margin-top: 8px; }
.telephony-person-list article { display: flex; min-width: 0; align-items: baseline; justify-content: space-between; gap: 12px; padding: 10px 11px; background: rgba(18,51,73,.48); border: 1px solid rgba(121,177,216,.1); border-radius: 8px; }
.telephony-person-section.adom article { background: rgba(69,55,107,.24); border-color: rgba(151,128,221,.11); }
.telephony-person-list strong { color: #cbd9e2; font-size: 14px; font-weight: 600; }
.telephony-person-list span, .telephony-person-list i { flex: 0 0 auto; color: #829daf; font-size: 12px; font-style: normal; }
.telephony-person-section.adom .telephony-person-list i { color: #a99bdc; }
.telephony-person-empty { padding: 13px; color: #748da0; background: rgba(13,34,51,.45); border-radius: 8px; font-size: 12px; text-align: center; }
@media (max-width: 560px) { .telephony-person-contact { grid-template-columns: 1fr; } .telephony-person-modal-body { padding: 15px 14px 18px; } .telephony-person-list article { align-items: flex-start; flex-direction: column; gap: 4px; } }
.telephony-live-caller { display: block; overflow: hidden; margin-top: 5px; color: #c1cfda; font-size: 17px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.telephony-live-workplaces { margin-top: 12px; padding: 10px 12px; background: rgba(15,48,70,.52); border: 1px solid rgba(103,159,199,.1); border-radius: 10px; }
.telephony-live-workplaces > span { display: block; margin-bottom: 8px; color: #688ba2; font-size: 12px; font-weight: 700; letter-spacing: .055em; text-transform: uppercase; }
.telephony-live-workplaces ul { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.telephony-live-workplaces li { display: flex; min-width: 0; align-items: baseline; justify-content: space-between; gap: 12px; }
.telephony-live-workplaces strong { overflow: hidden; color: #d1dde5; font-size: 15px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.telephony-live-workplaces small { flex: 0 0 auto; color: #7fa1b7; font-size: 14px; font-weight: 550; white-space: nowrap; }
.telephony-live-adom { margin-top: 10px; padding: 10px 12px; background: rgba(42,35,75,.28); border: 1px solid rgba(139,116,218,.15); border-radius: 10px; }
.telephony-live-adom-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.telephony-live-adom-head > span { color: #8a82b1; font-size: 12px; font-weight: 700; letter-spacing: .055em; text-transform: uppercase; }
.telephony-live-adom-head > a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 9px; color: #b5a7ee; background: rgba(122,99,204,.12); border: 1px solid rgba(139,116,218,.2); border-radius: 7px; font-size: 13px; font-weight: 650; text-decoration: none; }
.telephony-live-adom-head > a:hover { color: #c3b8f4; background: rgba(122,99,204,.2); }
.telephony-live-adom-head svg { width: 13px; height: 13px; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.telephony-live-adom-org { display: flex; align-items: baseline; gap: 9px; margin-top: 8px; }
.telephony-live-adom-org span { flex: 0 0 auto; color: #827aa3; font-size: 12px; }
.telephony-live-adom-org strong { color: #cbc4e2; font-size: 15px; font-weight: 650; }
.telephony-live-adom > ul { display: grid; max-height: 150px; gap: 6px; margin: 9px 0 0; padding: 0 3px 0 0; overflow-y: auto; list-style: none; }
.telephony-live-adom > ul li { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 12px; padding-top: 6px; border-top: 1px solid rgba(139,116,218,.09); }
.telephony-live-adom > ul li > span { display: flex; min-width: 0; align-items: center; gap: 9px; }
.telephony-live-adom > ul i { flex: 0 0 auto; color: #a192dc; font-size: 12px; font-style: normal; }
.telephony-live-adom > ul strong { overflow: hidden; color: #d1cddb; font-size: 15px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.telephony-live-adom > ul small { flex: 0 0 auto; color: #b8aaf0; font-size: 15px; font-weight: 700; white-space: nowrap; }
.telephony-route { color: #91a5b4; }
.telephony-direction { display: inline-flex; height: 27px; align-items: center; padding: 0 9px; border-radius: 8px; font-size: 11px; font-weight: 600; white-space: nowrap; }
.telephony-direction svg { width: 14px; margin-right: 5px; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.telephony-direction.incoming { color: #79c7ef; background: rgba(55,153,211,.1); }
.telephony-direction.outgoing { color: #b6a0ed; background: rgba(130,100,210,.1); }
.telephony-employee { color: #aebfcb; white-space: nowrap; }
.telephony-status { display: inline-flex; height: 28px; align-items: center; padding: 0 10px; border-radius: 14px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.telephony-status i { width: 5px; height: 5px; margin-right: 7px; background: currentColor; border-radius: 50%; box-shadow: 0 0 0 3px currentColor; opacity: .65; }
.telephony-status.answered { color: #73dcb5; background: rgba(51,192,139,.1); }
.telephony-status.missed { color: #ed9097; background: rgba(222,81,93,.1); }
.telephony-status.callback { color: #84bdf4; background: rgba(71,147,220,.11); }
.telephony-status.reached { color: #b6a0ee; background: rgba(137,105,219,.11); }
.telephony-duration { color: #849cad; font-variant-numeric: tabular-nums; }
.telephony-record { display: inline-flex; width: 32px; height: 32px; align-items: center; justify-content: center; padding: 0; color: #77bfe7; background: rgba(42,142,199,.08); border: 1px solid rgba(73,161,212,.13); border-radius: 8px; font-size: 12px; font-weight: 600; text-decoration: none; }
.telephony-record:hover { color: #a3ddf9; background: rgba(42,142,199,.14); }
.telephony-record svg { width: 17px; margin: 0; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.telephony-no-record { color: #425e72; }
.telephony-no-status { color: #425e72; }
.telephony-trace-toggle { display: inline-flex; width: 32px; height: 32px; align-items: center; justify-content: center; padding: 0; color: #7898ad; background: rgba(43,116,161,.07); border: 1px solid rgba(83,148,187,.13); border-radius: 8px; cursor: pointer; font: 600 11px Onest, sans-serif; }
.telephony-trace-toggle:hover, .telephony-trace-toggle[aria-expanded="true"] { color: #95d3f4; background: rgba(43,132,187,.13); border-color: rgba(83,166,216,.22); }
.telephony-trace-toggle svg { width: 16px; margin: 0; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .18s ease; }
.telephony-trace-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.telephony-trace-row[hidden] { display: none !important; }
.telephony-trace-row:hover { background: transparent !important; }
.telephony-trace-row > td { height: auto; padding: 0 18px 16px; background: rgba(5,19,31,.42); }
.telephony-trace { padding: 16px 18px; background: rgba(8,25,40,.76); border: 1px solid rgba(87,151,190,.11); border-radius: 11px; }
.telephony-trace-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.telephony-trace-head strong { color: #c8d7e1; font-size: 15px; font-weight: 620; }
.telephony-trace-head span { color: #527087; font-size: 12px; }
.telephony-trace ol { display: flex; align-items: stretch; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.telephony-trace li { position: relative; display: flex; width: 100%; min-width: 0; padding: 0 0 22px 22px; }
.telephony-trace li::before { content: ""; position: absolute; top: 4px; left: 0; width: 7px; height: 7px; background: #4d9bc8; border: 2px solid #102c40; border-radius: 50%; box-shadow: 0 0 0 2px rgba(66,155,208,.17); }
.telephony-trace li:not(:last-child)::after { content: ""; position: absolute; top: 12px; bottom: 4px; left: 3px; width: 1px; background: rgba(77,137,173,.25); }
.telephony-trace li:last-child { padding-bottom: 0; }
.telephony-trace li.answer::before { background: #50c995; }
.telephony-trace li.transfer::before { background: #b08de9; }
.telephony-trace li.end::before { background: #637f92; }
.telephony-trace time { flex: 0 0 68px; margin-right: 12px; color: #63849b; font-size: 12px; font-variant-numeric: tabular-nums; }
.telephony-trace li span { display: flex; min-width: 0; flex-direction: column; }
.telephony-trace li strong { color: #bdccd6; font-size: 14px; font-weight: 620; }
.telephony-trace li small { margin-top: 5px; color: #617b8e; font-size: 12px; line-height: 1.5; }
.telephony-table-message { height: 280px !important; color: #678398 !important; text-align: center; }
.telephony-table-message.empty { font-size: 14px; }
.telephony-table-message.error { color: #d8838a !important; }
.telephony-loader { display: inline-block; width: 17px; height: 17px; margin-right: 9px; vertical-align: -4px; border: 2px solid rgba(72,175,232,.18); border-top-color: #4bb1e8; border-radius: 50%; animation: telephonySpin .7s linear infinite; }
.telephony-empty-icon { display: grid; width: 44px; height: 44px; place-items: center; margin: 0 auto 13px; color: #4d88ad; background: rgba(39,128,181,.08); border: 1px solid rgba(69,150,199,.12); border-radius: 12px; }
.telephony-empty-icon svg { width: 20px; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
@keyframes telephonySpin { to { transform: rotate(360deg); } }
@keyframes telephonyLivePulse { from { opacity: .8; transform: scale(.7); } to { opacity: 0; transform: scale(1.45); } }

@media (max-width: 760px) {
  .telephony-toolbar { align-items: stretch; flex-direction: column; gap: 17px; padding: 17px 14px; }
  .telephony-live { padding: 15px 13px; }
  .telephony-live-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
  .telephony-live-grid { grid-template-columns: 1fr; }
  .telephony-live-card > a { font-size: 20px; }
  .telephony-toolbar-icon { width: 41px; height: 41px; margin-right: 11px; }
  .telephony-toolbar-title h2 { font-size: 18px; }
  .telephony-date-controls { display: grid; grid-template-columns: 42px minmax(0, 1fr) 42px; }
  .telephony-date-field input { width: 100%; }
  .telephony-today { grid-column: 1 / -1; width: 100%; }
  .telephony-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .telephony-summary article { min-height: 73px; align-items: flex-start; flex-direction: column; padding: 11px; }
  .telephony-summary-icon { width: 31px; height: 31px; margin: 0 0 9px; }
  .telephony-summary-icon svg { width: 16px; }
  .telephony-summary small { font-size: 9px; }
  .telephony-summary strong { font-size: 18px; }
  .telephony-journal { overflow: visible; background: transparent; border: 0; border-radius: 0; box-shadow: none; }
  .telephony-table-scroll { overflow: visible; }
  .telephony-table, .telephony-table tbody { display: block; min-width: 0; }
  .telephony-table thead { display: none; }
  .telephony-table tbody tr { display: block; margin-bottom: 10px; padding: 9px 13px; background: rgba(9,27,44,.84); border: 1px solid rgba(103,159,199,.11); border-radius: 12px; }
  .telephony-table tbody tr:hover { background: rgba(9,27,44,.84); }
  .telephony-table td { display: flex; width: 100%; height: auto; min-height: 42px; align-items: center; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid rgba(103,159,199,.07); font-size: 14px; text-align: right; }
  .telephony-table td::before { content: attr(data-label); flex: 0 0 105px; color: #60798d; font-size: 10px; font-weight: 650; letter-spacing: .045em; text-align: left; text-transform: uppercase; }
  .telephony-table td:last-child { border-bottom: 0; }
  .telephony-trace-row { margin-top: -10px !important; padding: 0 !important; border-top: 0 !important; border-radius: 0 0 12px 12px !important; }
  .telephony-trace-row > td { display: block; padding: 0 10px 12px; background: transparent; border: 0; text-align: left; }
  .telephony-trace-row > td::before { display: none; }
  .telephony-trace { padding: 14px; }
  .telephony-trace ol { flex-direction: column; }
  .telephony-trace li { width: 100%; min-width: 0; padding: 0 0 17px 17px; }
  .telephony-trace li:not(:last-child)::after { top: 12px; bottom: 4px; left: 3px; width: 1px; height: auto; }
  .telephony-trace li:last-child { padding-bottom: 0; }
  .telephony-table-message { display: flex !important; min-height: 240px !important; align-items: center !important; justify-content: center !important; flex-direction: column; padding: 25px !important; text-align: center !important; }
  .telephony-table-message::before { display: none; }
  .telephony-loader { margin: 0 0 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

.error-page { position: relative; min-height: 100vh; overflow: hidden; background: #06111e; }
.error-page::before { content: ""; position: fixed; inset: 0; background-image: linear-gradient(rgba(86,139,180,.032) 1px, transparent 1px), linear-gradient(90deg, rgba(86,139,180,.032) 1px, transparent 1px); background-size: 44px 44px; pointer-events: none; }
.error-page::after { content: ""; position: fixed; inset: 0; background: radial-gradient(circle at 50% 46%, rgba(20,105,163,.12), transparent 38%); pointer-events: none; }
.error-header { position: relative; z-index: 2; height: 110px; padding: 32px 4.5vw; }
.error-brand { display: inline-flex; color: inherit; text-decoration: none; }
.error-content { position: relative; z-index: 2; display: flex; min-height: calc(100vh - 150px); align-items: center; flex-direction: column; margin-top: -24px; padding: 30px 24px 70px; text-align: center; }
.error-code { display: flex; align-items: center; justify-content: center; margin-bottom: -7px; color: #102d45; font-size: clamp(126px, 16vw, 220px); font-weight: 650; line-height: .9; letter-spacing: -.09em; user-select: none; }
.error-code > span { text-shadow: 0 22px 80px rgba(0,0,0,.2); }
.error-zero { position: relative; display: grid; width: .72em; height: .78em; place-items: center; margin: 0 .02em; background: linear-gradient(145deg, rgba(22,87,132,.24), rgba(9,30,48,.1)); border: 1px solid rgba(67,150,208,.13); border-radius: 50%; box-shadow: inset 0 0 45px rgba(22,131,200,.05); }
.error-zero i { position: absolute; width: 54%; height: 54%; border: 1px solid rgba(50,134,190,.11); border-radius: 50%; box-shadow: 0 0 0 18px rgba(50,134,190,.025); }
.error-zero svg { position: relative; z-index: 1; width: .18em; color: #3e8cbd; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.error-kicker { margin-bottom: 13px; color: #338abe; font-size: 9px; font-weight: 700; letter-spacing: .21em; }
.error-content h1 { margin: 0 0 12px; color: #dce7ef; font-size: clamp(24px, 3vw, 34px); font-weight: 600; letter-spacing: -.035em; }
.error-content p { margin: 0; color: #5f778b; font-size: 13px; line-height: 1.75; }
.error-actions { display: flex; align-items: center; gap: 11px; margin-top: 30px; }
.error-primary, .error-secondary { display: flex; height: 48px; align-items: center; justify-content: center; border-radius: 11px; font-family: inherit; font-size: 12px; font-weight: 600; text-decoration: none; cursor: pointer; transition: transform .18s ease, filter .18s ease, background .18s ease, border-color .18s ease; }
.error-primary { padding: 0 20px; color: #fff; background: linear-gradient(135deg, #159bea, #0878c1); border: 1px solid transparent; box-shadow: 0 12px 28px rgba(8,117,186,.18); }
.error-primary:hover { filter: brightness(1.08); transform: translateY(-1px); }
.error-secondary { padding: 0 18px; color: #8197a9; background: rgba(11,27,44,.7); border: 1px solid rgba(111,158,194,.14); }
.error-secondary:hover { color: #b8c8d4; background: #0d2033; border-color: rgba(111,158,194,.22); }
.error-primary svg, .error-secondary svg { width: 17px; margin-right: 9px; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; }
.error-glow { position: fixed; width: 260px; height: 260px; background: rgba(20,112,173,.08); border-radius: 50%; filter: blur(90px); pointer-events: none; }
.error-glow-one { top: 8%; right: 8%; }
.error-glow-two { bottom: 2%; left: 8%; opacity: .55; }

@media (max-width: 640px) {
  .error-header { height: 88px; padding: 24px 22px; }
  .error-content { min-height: calc(100vh - 100px); margin-top: -12px; padding: 20px 20px 55px; }
  .error-code { margin-bottom: 5px; font-size: clamp(112px, 41vw, 158px); }
  .error-content h1 { max-width: 320px; font-size: 23px; }
  .error-content p { max-width: 330px; font-size: 12px; }
  .error-content p br { display: none; }
  .error-actions { width: 100%; max-width: 330px; flex-direction: column; }
  .error-primary, .error-secondary { width: 100%; }
}

/* Brighter, higher-contrast dark theme for daylight use. */
.brand-copy small, .nav-caption { color: #7892a7; }
.nav-item { color: #94a8ba; }
.submenu-item { color: #8da2b4; }
.breadcrumbs { color: #8099ad; }
.profile-copy span, .profile-dropdown-user span { color: #8da6b9; }
.objects-intro p, .object-card-heading p, .object-detail-placeholder p, .object-not-found p { color: #7b94a7; }
.datatable-card { background: rgba(13,35,53,.94); border-color: rgba(126,177,214,.17); }
.datatable-footer > span, .datatable-size, .datatable-loading { color: #829aac; }
.datatable-search input::placeholder { color: #6e879b; }
.table-muted { color: #71899b; }
.task-status-switcher { background: rgba(12,34,52,.9); border-color: rgba(126,177,214,.16); }
.task-status-tab { color: #8ea4b6; }
.task-tab-copy small, .task-status-tab.active .task-tab-copy small { color: #7c94a7; }
.task-title-cell small { color: #8299aa; }
.task-number-link { color: #8aa2b4; }
.task-meta-separator { color: #627d91; }
.task-detail-title > p, .task-created-meta { color: #89a1b3; }
.task-detail-card { background: rgba(14,38,58,.95); border-color: rgba(121,177,216,.18); }
.task-detail-card-heading p { color: #7f98aa; }
.task-meta-grid span, .task-card-empty, .task-notes-empty { color: #7b94a7; }
.task-notes-heading span, .task-note-meta time { color: #7891a4; }
.task-timeline-item time { color: #7690a4; }
.task-timeline-item small { color: #70899d; }
.task-performer > div span { color: #7892a6; }
.task-cost-totals span, .task-help-list span { color: #7690a4; }
.task-form-field > span, .task-responsible-result { color: #91a6b6; }
.object-info-card, .object-detail-placeholder { background: rgba(13,36,55,.92); border-color: rgba(121,177,216,.17); }
.telephony-live { background: linear-gradient(135deg, rgba(15,43,64,.97), rgba(13,36,55,.95)); border-color: rgba(91,190,239,.22); }
.telephony-live-heading p { color: #7792a6; }
.telephony-live-empty { color: #809bad; background: rgba(11,31,47,.72); border-color: rgba(120,178,216,.18); }
.telephony-live-card { background: rgba(13,37,56,.94); border-color: rgba(121,177,216,.18); }
.telephony-live-stage small { color: #89a2b4; }
.telephony-toolbar, .telephony-summary article, .telephony-journal { background: rgba(14,38,58,.95); border-color: rgba(121,177,216,.19); }
.telephony-toolbar-title p { color: #829db1; }
.telephony-summary small { color: #829aab; }
.telephony-table th { color: #829bad; background: rgba(18,48,70,.88); border-color: rgba(121,177,216,.16); }
.telephony-table td { color: #c0ccd5; }
.telephony-duration { color: #9bafbe; }
.telephony-trace { background: rgba(13,37,56,.96); border-color: rgba(121,177,216,.17); }
.telephony-trace-head span { color: #7490a5; }
.telephony-trace time { color: #829eb2; }
.telephony-trace li small { color: #8097a9; }
.telephony-no-record, .telephony-no-status { color: #688297; }

@media (max-width: 640px) {
  .datatable-card { background: transparent; border-color: transparent; }
}

@media (max-width: 760px) {
  .telephony-journal { background: transparent; border: 0; }
  .telephony-table tbody tr, .telephony-table tbody tr:hover { background: rgba(14,38,58,.95); border-color: rgba(121,177,216,.17); }
  .telephony-table td::before { color: #8099ad; }
}

.users-page { position: relative; z-index: 1; width: min(100%, 1540px); margin: 0 auto; }
.users-overview { display: flex; align-items: stretch; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.users-stats { display: grid; min-width: 500px; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.users-stats > div { display: flex; min-height: 76px; justify-content: center; flex-direction: column; padding: 13px 17px; background: rgba(14,39,59,.96); border: 1px solid rgba(121,177,216,.18); border-radius: 12px; }
.users-stats span { color: #7892a5; font-size: 12px; font-weight: 550; }
.users-stats strong { margin-top: 4px; color: #d6e5ed; font-size: 24px; font-weight: 650; }
.user-create-button { display: inline-flex; min-width: 210px; align-items: center; justify-content: center; gap: 9px; padding: 0 20px; color: #e4f5ff; background: linear-gradient(135deg,#169bdc,#0b80c4); border: 1px solid rgba(79,190,244,.55); border-radius: 11px; box-shadow: 0 8px 25px rgba(0,113,180,.2); cursor: pointer; font: 650 14px Onest,sans-serif; }
.user-create-button:hover { background: linear-gradient(135deg,#22a9e8,#118dce); }
.user-create-button svg { width: 19px; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.users-datatable { overflow: hidden; }
.users-toolbar { min-height: 76px; }
.users-list-title { display: flex; min-width: 0; flex-direction: column; }
.users-list-title strong { color: #d7e5ed; font-size: 18px; font-weight: 650; }
.users-list-title span { margin-top: 3px; color: #7690a4; font-size: 12px; }
.users-table { width: 100%; min-width: 980px; border-collapse: collapse; }
.users-table th { height: 48px; padding: 0 15px; color: #7e99ad; background: rgba(18,48,70,.88); border-top: 1px solid rgba(121,177,216,.12); border-bottom: 1px solid rgba(121,177,216,.15); font-size: 11px; font-weight: 650; letter-spacing: .055em; text-align: left; text-transform: uppercase; }
.users-table td { height: 72px; padding: 10px 15px; color: #bacbd6; border-bottom: 1px solid rgba(121,177,216,.1); font-size: 14px; }
.users-table tbody tr { transition: background .15s ease; }
.users-table tbody tr:hover { background: rgba(25,72,103,.15); }
.user-identity { display: flex; min-width: 230px; align-items: center; gap: 11px; }
.user-avatar { display: grid; width: 40px; height: 40px; flex: 0 0 auto; place-items: center; color: #78cdf8; background: rgba(30,135,194,.16); border: 1px solid rgba(67,174,232,.25); border-radius: 10px; font-size: 11px; font-weight: 700; }
.user-identity > div, .user-contacts, .user-position { display: flex; min-width: 0; flex-direction: column; }
.user-identity strong { overflow: hidden; color: #d7e3eb; font-size: 15px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.user-identity small { margin-top: 4px; color: #6f8a9e; font-size: 11px; }
.user-contacts a { color: #70c6f2; font-size: 13px; text-decoration: none; }
.user-contacts span, .user-position span { margin-top: 5px; color: #7f98aa; font-size: 12px; }
.user-position strong { color: #bdcdd7; font-size: 13px; font-weight: 600; }
.user-access, .user-status { display: inline-flex; width: fit-content; height: 29px; align-items: center; padding: 0 10px; color: #9cb2c1; background: rgba(101,139,165,.11); border: 1px solid rgba(121,164,194,.17); border-radius: 15px; font-size: 12px; font-weight: 650; white-space: nowrap; }
.user-access.admin { color: #d5b9ff; background: rgba(143,92,211,.13); border-color: rgba(162,112,225,.23); }
.user-status i { width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; }
.user-status.active { color: #79dcba; background: rgba(53,195,143,.12); border-color: rgba(67,211,158,.22); }
.user-status.active i { background: #4ed39f; box-shadow: 0 0 7px rgba(78,211,159,.45); }
.user-status.blocked { color: #e39292; background: rgba(211,79,79,.1); border-color: rgba(221,91,91,.19); }
.user-status.blocked i { background: #df7373; }
.user-lastlogin { color: #91a8b8; font-size: 12px; white-space: nowrap; }
.user-row-actions { display: flex; justify-content: flex-end; gap: 5px; }
.user-row-actions button { display: grid; width: 33px; height: 33px; place-items: center; padding: 0; color: #6f91a8; background: rgba(17,51,74,.5); border: 1px solid rgba(110,165,202,.13); border-radius: 8px; cursor: pointer; transition: color .15s ease,background .15s ease,border-color .15s ease; }
.user-row-actions button:hover { color: #7dcef5; background: rgba(35,119,169,.18); border-color: rgba(63,163,219,.25); }
.user-row-actions button.danger:hover { color: #f09090; background: rgba(208,64,64,.12); border-color: rgba(220,78,78,.22); }
.user-row-actions button:disabled { cursor: not-allowed; opacity: .22; }
.user-row-actions svg { width: 16px; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; }
.users-empty { padding: 45px 20px; color: #7893a7; text-align: center; }
.user-edit-form { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; padding: 22px; }
.user-edit-form .full { grid-column: 1/-1; }
.task-form-field small { color: #667f92; font-size: 11px; }
.user-active-check { display: flex; align-items: center; gap: 10px; align-self: end; min-height: 43px; color: #9fb3c0; cursor: pointer; font-size: 13px; }
.user-active-check input { position: absolute; opacity: 0; pointer-events: none; }
.user-active-check > span { display: block; width: 42px; height: 23px; padding: 3px; background: #183449; border: 1px solid rgba(111,164,199,.2); border-radius: 13px; transition: background .18s ease,border-color .18s ease; }
.user-active-check i { display: block; width: 15px; height: 15px; background: #7891a3; border-radius: 50%; transition: transform .18s ease,background .18s ease; }
.user-active-check input:checked + span { background: rgba(38,177,126,.22); border-color: rgba(70,211,158,.35); }
.user-active-check input:checked + span i { background: #58d3a5; transform: translateX(19px); }
.user-active-check strong { font-weight: 600; }
.object-modal-header p { margin: 5px 0 0; color: #7d97aa; font-size: 12px; }
.user-delete-warning { margin: 0; color: #9eb1be; font-size: 14px; line-height: 1.6; }
.user-delete-warning strong { color: #e2edf3; }
.user-delete-confirm { height: 41px; padding: 0 16px; color: #ffe9e9; background: #b84149; border: 1px solid #d25a61; border-radius: 8px; cursor: pointer; font: 650 13px Onest,sans-serif; }
.user-edit-form.is-busy input, .user-edit-form.is-busy select, .task-simple-form.is-busy input { pointer-events: none; opacity: .65; }

@media (max-width: 760px) {
  .users-overview { flex-direction: column; }
  .users-stats { min-width: 0; }
  .users-stats > div { min-height: 66px; padding: 10px 12px; }
  .users-stats strong { font-size: 20px; }
  .user-create-button { width: 100%; min-height: 50px; }
  .users-toolbar { align-items: stretch; flex-direction: column; gap: 13px; padding: 15px 0; }
  .users-toolbar .datatable-search { width: 100%; }
  .users-datatable { overflow: visible; background: transparent; border: 0; box-shadow: none; }
  .users-datatable .datatable-scroll { overflow: visible; }
  .users-table { display: block; min-width: 0; }
  .users-table thead { display: none; }
  .users-table tbody { display: grid; gap: 10px; }
  .users-table tr { display: block; overflow: hidden; background: rgba(14,39,59,.96); border: 1px solid rgba(121,177,216,.17); border-radius: 12px; }
  .users-table td { display: flex; width: 100%; height: auto; min-height: 48px; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 13px; border-bottom: 1px solid rgba(121,177,216,.09); text-align: right; }
  .users-table td::before { flex: 0 0 auto; content: attr(data-label); color: #7892a5; font-size: 10px; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; }
  .users-table td:first-child { justify-content: flex-start; padding: 13px; }
  .users-table td:first-child::before, .users-table td:last-child::before { display: none; }
  .users-table td:last-child { justify-content: flex-end; border-bottom: 0; }
  .user-identity { min-width: 0; text-align: left; }
  .user-contacts, .user-position { align-items: flex-end; }
  .user-edit-form { grid-template-columns: 1fr; padding: 17px 14px; }
  .user-edit-form .full { grid-column: auto; }
  .object-workspace { margin-top: 10px; border-radius: 12px; }
  .object-workspace-tabs { overflow-x: auto; padding: 6px; scrollbar-width: none; }
  .object-workspace-tabs::-webkit-scrollbar { display: none; }
  .object-workspace-tabs button { height: 42px; flex: 0 0 auto; padding: 0 13px; font-size: 13px; }
  .object-workspace-tabs svg { width: 18px; }
  .object-workspace-body { min-height: 275px; }
  .object-panel-heading { min-height: 78px; padding: 16px; }
  .object-panel-heading h3 { font-size: 17px; }
  .object-panel-heading p { font-size: 12px; line-height: 1.45; }
  .object-panel-empty { min-height: 195px; padding: 24px 18px; }
  .object-panel-empty strong { font-size: 15px; }
  .object-panel-empty p { font-size: 12px; }
  .object-notes-heading { align-items: stretch; }
  .object-notes-actions { width: 100%; }
  .object-notes-search { width: auto; flex: 1; }
  .object-note-add { width: 42px; flex: 0 0 auto; justify-content: center; padding: 0; }
  .object-note-add span { display: none; }
  .object-note-list { padding: 0 16px; }
  .object-note-item { grid-template-columns: 38px minmax(0,1fr) auto; gap: 10px; padding: 16px 0; }
  .object-note-edit, .object-note-delete { width: 28px; height: 30px; }
  .object-note-avatar { width: 38px; height: 38px; }
  .object-note-meta { align-items: flex-start; flex-direction: column; gap: 3px; }
  .object-note-content p { margin-top: 7px; font-size: 13px; }
  .object-task-toolbar { min-height: 74px; align-items: stretch; flex-direction: column; gap: 9px; padding: 13px 16px; }
  .object-task-toolbar > p { display: none; }
  .object-task-switcher { display: grid; width: 100%; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .object-task-switcher button { justify-content: center; padding: 0 10px; }
  .object-task-toolbar-actions { justify-content: space-between; }
  .object-task-page-size > span { display: none; }
  .object-task-export { flex: 0 0 auto; }
  .object-task-table-wrap { min-height: 165px; }
  .object-task-table { min-width: 1060px; }
  .object-task-table th { height: 36px; }
  .object-task-table td { height: 46px; }
  .object-task-footer { padding: 8px 16px; }
  .object-task-list { padding: 0 16px; }
  .object-task-row { min-height: 74px; grid-template-columns: 42px minmax(0,1fr) 16px; gap: 9px; }
  .object-task-row:hover { margin: 0; padding: 0; background: transparent; }
  .object-task-row > strong { white-space: normal; }
  .object-task-section { display: none; }
  .object-task-state { grid-column: 2; font-size: 11px; }
  .object-task-row time { grid-column: 2; color: #819bad; font-size: 11px; text-align: left; }
  .object-task-arrow { grid-column: 3; grid-row: 1 / span 3; }
}
/* Calendar */
.calendar-page { position: relative; z-index: 1; width: 100%; max-width: 1680px; margin: 0 auto; }
.calendar-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 16px; }
.calendar-filters, .calendar-view-switch { display: flex; align-items: center; gap: 8px; }
.calendar-filter { display: inline-flex; height: 42px; align-items: center; gap: 9px; padding: 0 14px; color: #9fb5c5; background: rgba(12,35,53,.94); border: 1px solid rgba(121,177,216,.2); border-radius: 10px; cursor: pointer; font-size: 14px; user-select: none; }
.calendar-filter input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.calendar-check { display: inline-flex; width: 20px; height: 20px; align-items: center; justify-content: center; background: #081d2d; border: 1px solid rgba(121,177,216,.34); border-radius: 6px; }
.calendar-check svg { width: 14px; fill: none; stroke: #071724; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.calendar-filter input:checked + .calendar-check { background: #39aeea; border-color: #39aeea; }
.calendar-filter input:checked + .calendar-check svg { opacity: 1; }
.calendar-filter-dot { width: 8px; height: 8px; background: #55bdf3; border-radius: 50%; box-shadow: 0 0 0 4px rgba(85,189,243,.1); }
.calendar-filter.visit .calendar-filter-dot { background: #45d6a5; box-shadow: 0 0 0 4px rgba(69,214,165,.1); }
.calendar-filter.closed .calendar-filter-dot { background: #879ba9; box-shadow: 0 0 0 4px rgba(135,155,169,.1); }
.calendar-filter.all .calendar-filter-dot { background: #c58cff; box-shadow: 0 0 0 4px rgba(197,140,255,.1); }
.calendar-filter b { font-weight: 650; }
.calendar-view-switch { padding: 4px; background: rgba(8,27,42,.94); border: 1px solid rgba(121,177,216,.18); border-radius: 11px; }
.calendar-view-switch button { height: 34px; padding: 0 16px; color: #7e98aa; background: transparent; border: 0; border-radius: 8px; cursor: pointer; font: 650 14px Onest,sans-serif; }
.calendar-view-switch button:hover { color: #c4d6e1; }
.calendar-view-switch button.active { color: #e9f6fd; background: #176f9f; box-shadow: 0 3px 12px rgba(0,0,0,.18); }
.calendar-card { overflow: hidden; background: rgba(11,32,49,.95); border: 1px solid rgba(121,177,216,.2); border-radius: 15px; box-shadow: 0 18px 60px rgba(0,0,0,.17); }
.calendar-heading { display: grid; min-height: 72px; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px; padding: 12px 18px; background: rgba(14,42,63,.66); border-bottom: 1px solid rgba(121,177,216,.17); }
.calendar-heading h2 { margin: 0; color: #edf8fd; font-size: 21px; font-weight: 720; letter-spacing: -.025em; text-align: center; }
.calendar-period-nav { display: flex; align-items: center; gap: 7px; }
.calendar-period-nav button { display: inline-flex; height: 36px; align-items: center; justify-content: center; color: #9bb4c5; background: #0a2539; border: 1px solid rgba(121,177,216,.2); border-radius: 8px; cursor: pointer; font: 650 13px Onest,sans-serif; }
.calendar-period-nav button:not(.calendar-today) { width: 36px; padding: 0; }
.calendar-period-nav button:hover { color: #f2faff; border-color: rgba(80,188,244,.48); }
.calendar-period-nav svg { width: 17px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.calendar-period-nav .calendar-today { padding: 0 14px; }
.calendar-legend { display: flex; justify-content: flex-end; gap: 16px; color: #7893a6; font-size: 12px; }
.calendar-legend span { display: inline-flex; align-items: center; gap: 7px; }
.calendar-legend span::before { content: ""; width: 8px; height: 8px; background: #55bdf3; border-radius: 50%; }
.calendar-legend .visit::before { background: #45d6a5; }
.calendar-legend .closed::before { background: #879ba9; }
.calendar-stage { position: relative; min-height: 580px; }
.calendar-loading, .calendar-error { display: flex; min-height: 580px; align-items: center; justify-content: center; gap: 12px; color: #7f9aad; font-size: 14px; }
.calendar-loading span { width: 22px; height: 22px; border: 2px solid rgba(98,190,240,.18); border-top-color: #55bdf3; border-radius: 50%; animation: spin .8s linear infinite; }
.calendar-error { color: #f38c91; }
.calendar-month { min-width: 870px; }
.calendar-month-weekdays { display: grid; grid-template-columns: repeat(7,1fr); height: 40px; align-items: center; color: #7590a3; background: rgba(7,25,39,.5); border-bottom: 1px solid rgba(121,177,216,.12); text-align: center; font-size: 12px; font-weight: 700; text-transform: uppercase; }
.calendar-month-grid { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); }
.calendar-month-day { min-height: 118px; padding: 9px; background: rgba(12,37,55,.44); border-right: 1px solid rgba(121,177,216,.105); border-bottom: 1px solid rgba(121,177,216,.105); }
.calendar-month-day:nth-child(7n) { border-right: 0; }
.calendar-month-day.outside { background: rgba(6,22,34,.54); }
.calendar-day-number { display: flex; height: 25px; align-items: center; justify-content: space-between; color: #acc0cd; font-size: 13px; font-weight: 650; }
.calendar-day-number b { display: none; min-width: 20px; height: 20px; align-items: center; justify-content: center; color: #73c9f5; background: rgba(46,152,209,.13); border-radius: 99px; font-size: 10px; }
.calendar-month-day.outside .calendar-day-number { color: #496274; }
.calendar-month-day.today .calendar-day-number > span { display: inline-flex; width: 27px; height: 27px; align-items: center; justify-content: center; color: #fff; background: #d8484f; border-radius: 50%; box-shadow: 0 0 0 4px rgba(216,72,79,.12); }
.calendar-day-events { display: grid; gap: 4px; margin-top: 4px; }
.calendar-event { display: flex; min-width: 0; height: 24px; align-items: center; gap: 6px; padding: 0 7px; overflow: hidden; color: #a8dcf7; background: rgba(47,154,213,.14); border-left: 2px solid #55bdf3; border-radius: 4px; text-decoration: none; font-size: 10px; }
.calendar-event:hover { background: rgba(47,154,213,.24); }
.calendar-event.visit { color: #a3ead2; background: rgba(48,179,137,.13); border-left-color: #45d6a5; }
.calendar-event.closed { color: #bdc9d0; background: rgba(127,149,163,.14); border-left-color: #879ba9; }
.calendar-event.urgent { color: #ffd1d4; background: rgba(217,66,75,.17); border-left-color: #f35e67; }
.calendar-event.overdue { color: #ffe2e4; background: rgba(224,57,68,.28); border-left-color: #ff4d58; box-shadow: inset 0 0 0 1px rgba(255,77,88,.13); }
.calendar-event time { flex: 0 0 auto; font-weight: 750; }
.calendar-event span { overflow: hidden; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.calendar-day-events > small { padding-left: 7px; color: #5f7d91; font-size: 10px; }
.calendar-week { min-width: 900px; }
.calendar-week-header { display: grid; height: 64px; grid-template-columns: 62px repeat(7,minmax(0,1fr)); background: #0a263a; border-bottom: 1px solid rgba(121,177,216,.15); }
.calendar-time-corner { display: flex; align-items: flex-end; justify-content: center; padding-bottom: 8px; color: #4f6c7f; border-right: 1px solid rgba(121,177,216,.12); font-size: 9px; }
.calendar-week-day-head { display: flex; align-items: center; justify-content: center; gap: 8px; color: #7793a6; border-right: 1px solid rgba(121,177,216,.11); }
.calendar-week-day-head span { font-size: 11px; font-weight: 700; text-transform: uppercase; }
.calendar-week-day-head b { display: inline-flex; width: 31px; height: 31px; align-items: center; justify-content: center; color: #b9ccd8; border-radius: 50%; font-size: 15px; }
.calendar-week-day-head.today b { color: #fff; background: #d8484f; }
.calendar-week-scroll { height: calc(100vh - 300px); min-height: 520px; max-height: 850px; overflow: auto; scrollbar-color: #244b64 #091e2e; scrollbar-width: thin; }
.calendar-week-body { position: relative; display: grid; min-height: 1536px; grid-template-columns: 62px 1fr; }
.calendar-time-axis { position: relative; border-right: 1px solid rgba(121,177,216,.13); }
.calendar-time-axis span { position: absolute; right: 9px; color: #617d8f; font-size: 10px; transform: translateY(-50%); }
.calendar-week-columns { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); background-image: repeating-linear-gradient(to bottom,rgba(121,177,216,.11) 0,rgba(121,177,216,.11) 1px,transparent 1px,transparent 64px); }
.calendar-week-column { position: relative; min-width: 0; border-right: 1px solid rgba(121,177,216,.1); }
.calendar-week-column.today { background: rgba(57,155,207,.035); }
.calendar-week-event { position: absolute; z-index: 2; right: 4px; left: 4px; display: grid; min-height: 42px; gap: 1px; padding: 6px 7px; overflow: hidden; color: #bde8fb; background: #124c6d; border-left: 3px solid #58c4f5; border-radius: 6px; text-decoration: none; box-shadow: 0 4px 12px rgba(0,0,0,.18); transform: translateY(2px); }
.calendar-week-event.visit { color: #c7f7e7; background: #125340; border-left-color: #4de0ae; }
.calendar-week-event.closed { color: #d2dce1; background: #334957; border-left-color: #91a5b1; }
.calendar-week-event.urgent { color: #ffe1e3; background: #682f38; border-left-color: #ff6870; }
.calendar-week-event.overdue { color: #fff0f1; background: #7b2f39; border-left-color: #ff4d58; box-shadow: 0 4px 14px rgba(111,25,34,.34), inset 0 0 0 1px rgba(255,102,111,.16); }
.calendar-week-event time { font-size: 9px; font-weight: 800; opacity: .8; }
.calendar-week-event b, .calendar-week-event small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.calendar-week-event b { font-size: 10px; }
.calendar-week-event small { font-size: 8px; opacity: .68; }
.calendar-now-line { position: absolute; z-index: 8; height: 2px; background: #ff4650; pointer-events: none; box-shadow: 0 0 8px rgba(255,70,80,.6); }
.calendar-now-line span { position: absolute; top: 50%; left: -5px; width: 10px; height: 10px; background: #ff4650; border: 2px solid #0b2031; border-radius: 50%; transform: translateY(-50%); }
.calendar-year { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 1px; background: rgba(121,177,216,.13); }
.calendar-year-month { min-width: 0; padding: 17px; background: #0b2538; }
.calendar-year-month h3 { margin: 0 0 13px; color: #dcecf5; cursor: pointer; font-size: 14px; font-weight: 700; }
.calendar-year-month h3:hover { color: #58c4f5; }
.calendar-year-weekdays, .calendar-year-days { display: grid; grid-template-columns: repeat(7,1fr); text-align: center; }
.calendar-year-weekdays { margin-bottom: 4px; color: #5f7c90; font-size: 9px; font-weight: 750; text-transform: uppercase; }
.calendar-year-days button { position: relative; display: inline-flex; width: 27px; height: 27px; align-items: center; justify-content: center; justify-self: center; color: #9eb4c3; background: transparent; border: 0; border-radius: 50%; cursor: pointer; font: 600 10px Onest,sans-serif; }
.calendar-year-days button:hover { color: #fff; background: rgba(63,162,215,.18); }
.calendar-year-days button.outside { color: #3f5a6c; }
.calendar-year-days button.today { color: #fff; background: #d8484f; }
.calendar-year-days button i { position: absolute; right: 2px; bottom: 1px; width: 5px; height: 5px; background: #50bff5; border: 1px solid #0b2538; border-radius: 50%; }
.calendar-year-days button.has-overdue i { background: #ff4d58; }

@media (max-width: 1050px) {
  .calendar-year { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .calendar-stage { overflow-x: auto; }
}
@media (max-width: 700px) {
  .calendar-toolbar { align-items: stretch; flex-direction: column; }
  .calendar-filters, .calendar-view-switch { width: 100%; }
  .calendar-filters { display: grid; grid-template-columns: 1fr 1fr; }
  .calendar-filter { flex: 1; justify-content: center; }
  .calendar-view-switch button { flex: 1; padding: 0 8px; }
  .calendar-card { border-radius: 12px; }
  .calendar-heading { grid-template-columns: 1fr auto; min-width: 0; padding: 10px 12px; }
  .calendar-heading h2 { grid-column: 1 / -1; grid-row: 1; font-size: 18px; }
  .calendar-period-nav { grid-column: 1; grid-row: 2; }
  .calendar-legend { grid-column: 2; grid-row: 2; gap: 7px; font-size: 9px; }
  .calendar-month { min-width: 0; }
  .calendar-month-weekdays { height: 34px; font-size: 10px; }
  .calendar-month-day { min-height: 78px; padding: 5px; }
  .calendar-day-number { height: 24px; font-size: 11px; }
  .calendar-day-number b { display: inline-flex; min-width: 17px; height: 17px; padding: 0 4px; font-size: 8px; }
  .calendar-month-day.today .calendar-day-number > span { width: 24px; height: 24px; }
  .calendar-day-events { gap: 3px; margin-top: 3px; }
  .calendar-event.compact { width: 100%; height: 5px; padding: 0; background: #36aeea; border: 0; border-radius: 999px; }
  .calendar-event.compact.visit { background: #45d6a5; }
  .calendar-event.compact.closed { background: #879ba9; }
  .calendar-event.compact.urgent { background: #f05d66; }
  .calendar-event.compact.overdue { background: #ff4d58; box-shadow: 0 0 5px rgba(255,77,88,.28); }
  .calendar-event.compact time, .calendar-event.compact span { display: none; }
  .calendar-day-events > small { padding: 0; font-size: 8px; }
  .calendar-year { min-width: 720px; grid-template-columns: repeat(3,1fr); }
  .calendar-week-scroll { height: calc(100vh - 350px); }
}
/* Object finances */
.object-finance-heading { border-bottom: 1px solid rgba(121,177,216,.13); }
.object-finance-heading > span { color: #668398; font-size: 12px; }
.object-finance-summary { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; padding: 18px 20px; }
.object-finance-total { display: flex; min-width: 0; min-height: 132px; align-items: center; gap: 16px; padding: 20px; background: rgba(10,31,47,.72); border: 1px solid rgba(121,177,216,.15); border-radius: 13px; }
.object-finance-total.we-owe { background: linear-gradient(135deg,rgba(96,47,36,.38),rgba(12,34,51,.82)); border-color: rgba(237,127,84,.24); }
.object-finance-total.they-owe { background: linear-gradient(135deg,rgba(26,83,69,.38),rgba(12,34,51,.82)); border-color: rgba(69,210,163,.22); }
.object-finance-total-icon { display: inline-flex; width: 48px; height: 48px; flex: 0 0 auto; align-items: center; justify-content: center; color: #f09a72; background: rgba(223,105,65,.11); border: 1px solid rgba(235,131,92,.2); border-radius: 13px; }
.object-finance-total.they-owe .object-finance-total-icon { color: #51d8aa; background: rgba(58,192,148,.1); border-color: rgba(69,210,163,.19); }
.object-finance-total-icon svg { width: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.object-finance-total > div { display: grid; min-width: 0; gap: 3px; }
.object-finance-total small { color: #95adbd; font-size: 12px; font-weight: 650; }
.object-finance-total strong { color: #ffb28e; font-size: 26px; font-weight: 760; letter-spacing: -.035em; }
.object-finance-total.they-owe strong { color: #75e2bd; }
.object-finance-total p { margin: 2px 0 0; color: #668398; font-size: 11px; }
.object-finance-list-heading { display: flex; align-items: center; justify-content: space-between; padding: 17px 21px 12px; border-top: 1px solid rgba(121,177,216,.11); }
.object-finance-list-heading h4 { margin: 0 0 3px; color: #dceaf2; font-size: 15px; }
.object-finance-list-heading p { margin: 0; color: #668398; font-size: 11px; }
.object-finance-list-heading > b { display: inline-flex; min-width: 28px; height: 28px; align-items: center; justify-content: center; padding: 0 8px; color: #71c9f5; background: rgba(48,151,207,.12); border: 1px solid rgba(76,167,215,.16); border-radius: 999px; font-size: 11px; }
.object-finance-list { padding: 0 20px 20px; }
.object-finance-task { display: grid; min-height: 72px; grid-template-columns: 70px minmax(220px,1fr) auto 22px; align-items: center; gap: 14px; padding: 11px 14px; color: inherit; background: rgba(9,29,44,.52); border: 1px solid rgba(121,177,216,.12); border-bottom: 0; text-decoration: none; transition: background .16s ease,border-color .16s ease; }
.object-finance-task:first-child { border-radius: 11px 11px 0 0; }
.object-finance-task:last-child { border-bottom: 1px solid rgba(121,177,216,.12); border-radius: 0 0 11px 11px; }
.object-finance-task:only-child { border-radius: 11px; }
.object-finance-task:hover { position: relative; background: rgba(20,57,80,.64); border-color: rgba(86,176,226,.25); }
.object-finance-task-number { color: #5c7f95; font-size: 12px; font-weight: 700; }
.object-finance-task-main { display: flex; min-width: 0; align-items: center; gap: 10px; }
.object-finance-task-main > strong { overflow: hidden; color: #cfe0e9; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.object-finance-state { display: inline-flex; flex: 0 0 auto; padding: 4px 7px; color: #88a1b1; background: rgba(111,145,166,.1); border-radius: 999px; font-size: 9px; font-weight: 700; font-style: normal; }
.object-finance-state.completed { color: #63d6aa; background: rgba(44,174,127,.12); }
.object-finance-state.working { color: #f1b36e; background: rgba(213,137,49,.11); }
.object-finance-task-differences { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.object-finance-task-differences > span { display: grid; min-width: 135px; grid-template-columns: 1fr auto; gap: 1px 8px; padding: 7px 10px; background: rgba(8,26,40,.68); border: 1px solid rgba(121,177,216,.12); border-radius: 8px; }
.object-finance-task-differences small { color: #748fa1; font-size: 9px; }
.object-finance-task-differences b { grid-row: 1 / 3; grid-column: 2; align-self: center; color: #e5eff4; font-size: 12px; }
.object-finance-task-differences em { color: #527084; font-size: 8px; font-style: normal; }
.object-finance-task-differences .we-owe { border-color: rgba(235,131,92,.18); }
.object-finance-task-differences .we-owe b { color: #f3a37d; }
.object-finance-task-differences .they-owe { border-color: rgba(69,210,163,.17); }
.object-finance-task-differences .they-owe b { color: #6edeb8; }
.object-finance-task-arrow { width: 17px; fill: none; stroke: #45667b; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 850px) {
  .object-finance-summary { grid-template-columns: 1fr; padding: 14px; }
  .object-finance-total { min-height: 112px; padding: 16px; }
  .object-finance-list { padding: 0 14px 16px; }
  .object-finance-task { grid-template-columns: 54px minmax(0,1fr) 18px; gap: 8px; padding: 12px 10px; }
  .object-finance-task-main { align-items: flex-start; flex-direction: column; gap: 5px; }
  .object-finance-task-main > strong { width: 100%; white-space: normal; }
  .object-finance-task-differences { grid-column: 1 / -1; justify-content: stretch; }
  .object-finance-task-differences > span { min-width: 0; flex: 1; }
  .object-finance-task-arrow { grid-column: 3; grid-row: 1; }
  .object-finance-heading > span { display: none; }
}
/* Object list finance balance */
.object-finance-balance { display: inline-flex; min-width: 96px; height: 30px; align-items: center; justify-content: flex-end; padding: 0 9px; color: #708b9d; background: rgba(105,137,156,.08); border: 1px solid rgba(121,177,216,.1); border-radius: 8px; font-size: 12px; font-weight: 750; white-space: nowrap; }
.object-finance-balance.positive { color: #69dfb6; background: rgba(52,186,140,.1); border-color: rgba(69,210,163,.18); }
.object-finance-balance.negative { color: #f4a17d; background: rgba(221,105,67,.11); border-color: rgba(235,131,92,.2); }
.object-finance-balance.zero { color: #587487; }
