/* Use system font stack (no custom webfonts). */

:root { --ink:#0B1220; --stroke:rgba(15,23,42,.10); --shadow:0 22px 55px -30px rgba(2,6,23,.45); }
html,body{height:100%}
body{
  font-family:system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
  color:var(--ink);
  font-weight:400;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  font-synthesis:none;
}

/* Override Tailwind's extra-bold (800) to a lighter weight for readability. */
.font-extrabold{font-weight:700}
body{font-family:'Noto Sans',system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;color:var(--ink)}
.app-bg{
  background:
    radial-gradient(1200px 650px at 50% 0%, rgba(2,6,23,.06), transparent 55%),
    linear-gradient(to bottom, #ffffff, #f8fafc);
  background-attachment: fixed;
}

.glass{background:rgba(255,255,255,.78);border:1px solid var(--stroke);box-shadow:var(--shadow)}
.modal-card{background:#fff;border:1px solid var(--stroke);box-shadow:var(--shadow)}
.create-modal-card{
  max-width:1200px;
  min-width:1200px;
  max-height:calc(100vh - 40px);
  overflow:auto;
}
.view-modal-card{
  max-width:1200px;
  min-width:1200px;
  max-height:calc(100vh - 40px);
  overflow:auto;
}
.task-view-grid{display:grid;grid-template-columns:1fr 340px;gap:18px}
.task-view-main{min-width:0}
.task-view-side{min-width:0}
.task-card{background:rgba(255,255,255,.92);border:1px solid rgba(15,23,42,.08);box-shadow:0 12px 28px -24px rgba(2,6,23,.35);border-radius:18px}
.task-card .card-h{font-size:11px;letter-spacing:.18em;text-transform:uppercase;color:rgb(100 116 139);font-weight:600}
.task-body{color:rgb(51 65 85);font-size:13px;line-height:1.6}
.task-kv{display:flex;align-items:center;justify-content:space-between;gap:10px}
.task-kv .k{font-size:11px;letter-spacing:.18em;text-transform:uppercase;color:rgb(100 116 139);font-weight:600}
.task-kv .v{font-size:12px;color:rgb(51 65 85);font-weight:600}
.tag-stack{display:flex;flex-wrap:wrap;gap:8px}
.tag-chip{display:inline-flex;align-items:center;padding:4px 10px;border-radius:999px;background:rgb(241 245 249);border:1px solid rgba(15,23,42,.08);font-size:11px;font-weight:600;color:rgb(51 65 85)}
.note-box{border-left:3px solid rgba(99,102,241,.75);background:rgba(99,102,241,.07);padding:12px 14px;border-radius:12px}

.task-view-one{background:rgba(255,255,255,.92);border:1px solid rgba(15,23,42,.08);box-shadow:0 18px 45px -35px rgba(2,6,23,.35);border-radius:18px}
.task-view-one .tv-top{display:flex;align-items:center;gap:12px}
.task-view-one .tv-title{font-size:26px;line-height:1.15;font-weight:700;color:rgb(15 23 42)}
.task-view-one .tv-meta{display:flex;flex-wrap:wrap;align-items:center;gap:22px}
.task-view-one .tv-meta .lbl{font-size:11px;letter-spacing:.18em;text-transform:uppercase;color:rgb(100 116 139);font-weight:600}
.task-view-one .tv-desc{color:rgb(51 65 85);font-size:13px;line-height:1.65;white-space:pre-wrap}
.task-view-one .tv-desc-box{border:1px solid rgba(15,23,42,.08);background:rgba(248,250,252,.7);border-radius:14px;padding:14px 16px}
.task-view-one .tv-comment-box{border:1px dashed rgba(15,23,42,.10);background:rgba(15,23,42,.02);border-radius:14px;padding:12px 16px}
.task-view-one .tv-bottom{display:flex;align-items:flex-end;gap:18px;justify-content:space-between;flex-wrap:wrap}
.task-view-one .tv-dates{display:flex;align-items:flex-end;gap:26px}
.task-view-one .tv-date .k{font-size:10px;letter-spacing:.18em;text-transform:uppercase;color:rgb(100 116 139);font-weight:600}
.task-view-one .tv-date .v{font-size:12px;color:rgb(51 65 85);font-weight:600}
.task-view-one .tv-actions{display:flex;align-items:center;gap:12px;justify-content:flex-end;flex-wrap:wrap}

@media (max-width: 980px){
  .task-view-grid{grid-template-columns:1fr}
}

@media (max-width: 1240px){
  .create-modal-card{min-width:0}
  .view-modal-card{min-width:0}
}
.create-row{display:flex;gap:16px}
.create-row-4 .create-field{width:25%}
.create-row-3 .create-field{width:33.3333%}
.create-field{min-width:0}

.table-surface{
  background-color: rgb(246 246 248 / var(--tw-bg-opacity, 1));
  border-color:rgba(15,23,42,.08);
  box-shadow:0 18px 45px -35px rgba(2,6,23,.45);
}

/* Allow Tailwind bg-/border- utilities to win when present */
.chip{border-width:1px;border-style:solid}
.chip:not([class*="border-"]){border-color:rgba(15,23,42,.10)}
.chip:not([class*="bg-"]){background:rgba(255,255,255,.88)}

.tag-active{color:#fff!important;font-weight:800;background:rgba(79,70,229,.60);border-radius:12px}
.user-active{color:#fff!important;font-weight:800;background:rgba(16,185,129,.35);border-radius:12px}
.custom-scroll::-webkit-scrollbar{width:8px;height:8px}
.custom-scroll::-webkit-scrollbar-track{background:transparent}
.custom-scroll::-webkit-scrollbar-thumb{background:rgba(15,23,42,.22);border-radius:999px}
.sort-indicator{opacity:.8}
.sidebar{width:220px;transition:width .18s ease,padding .18s ease}
.sidebar.collapsed{width:64px;padding-left:12px;padding-right:12px}
.sidebar.collapsed .sidebar-text{display:none}
.sidebar.collapsed .sidebar-section-title{display:none}
.sidebar.collapsed .sidebar-count{display:none}
.sidebar.collapsed .sidebar-status{display:none}
.sidebar.collapsed #sidebar-tags{display:none}
.sidebar.collapsed #sidebar-filters{display:none}
.sidebar.collapsed .sidebar-item{justify-content:center}
.sidebar.collapsed .sidebar-item i{margin-right:0!important}
.sidebar.collapsed .auth-actions{flex-direction:column;align-items:center;gap:10px}
.sidebar.collapsed .auth-actions button{margin-left:0!important}
.tasks-table{border-collapse:separate;border-spacing:0 12px}
.tasks-table thead th{position:sticky;top:0;z-index:40;background:transparent;backdrop-filter:none;border-bottom:0}
.tasks-table thead tr.header-row{font-size:11px;font-weight:700;letter-spacing:.18em;text-transform:uppercase;color:rgb(100 116 139)}
.tasks-table thead .th-label{display:flex;align-items:center;min-height:44px;width:100%}
.tasks-table thead .th-head{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;padding:0}
.tasks-table thead .th-head .th-sort{width:14px;display:inline-flex;align-items:center;justify-content:center;color:rgb(71 85 105);font-size:12px;line-height:1}
.tasks-table thead .th-head .th-sort.empty{visibility:hidden}
.tasks-table thead .th-head .th-btn{flex:1;min-width:0;text-align:left;white-space:nowrap;overflow:visible;background:transparent;border:0;padding:0;margin:0;font:inherit;color:inherit}
.tasks-table thead .th-head .th-btn:focus{outline:none}
.tasks-table thead .th-head .th-btn:hover{color:rgb(51 65 85)}
.tasks-table thead .th-head .th-btn.summary-header{text-align:left}

.tasks-table tbody tr.row-card td{
  background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
  border:0;
}
.tasks-table tbody td{text-align:left}
.tasks-table tbody td .type-cell{justify-content:flex-start}
.tasks-table tbody tr.row-card{height:60px}
.tasks-table tbody tr.row-card td{vertical-align:middle}
.tasks-table tbody tr.row-card td:first-child{
  border-top-left-radius:24px;border-bottom-left-radius:24px;
}
.tasks-table tbody tr.row-card td:last-child{
  border-top-right-radius:24px;border-bottom-right-radius:24px;
}
.tasks-table tbody tr.row-card td:last-child{padding-right:10px}
.tasks-table tbody tr.row-card td{box-shadow:0 12px 26px -24px rgba(2,6,23,.45)}
.tasks-table tbody tr.row-card:hover td{background:rgba(255,255,255,.94)}
.tasks-table tbody tr.row-tracked td{background: rgb(255 255 255 / var(--tw-bg-opacity, 1))}
.tasks-table tbody tr.row-tracked:hover td{background:rgba(15,23,42,.03)}
.tasks-table tbody tr.row-card:not(.row-tracked):hover td{background:rgba(15,23,42,.03)}

.type-cell{display:inline-flex;align-items:center;gap:10px;font-weight:600;font-size:12px;color:rgb(15 23 42);white-space:nowrap}
.type-cell .type-ico{width:18px;height:18px;display:inline-flex;align-items:center;justify-content:center}
.type-cell .type-ico.dev{color:rgb(37 99 235)}
.type-cell .type-ico.bug{color:rgb(239 68 68)}
.type-cell .type-ico.other{color:rgb(100 116 139)}

.pill{
  display:inline-flex;align-items:center;gap:8px;
  padding:4px 10px;border-radius:999px;
  font-size:11px;font-weight:600;white-space:nowrap;
}
.pill-outline{background:rgba(255,255,255,.92);border:1px solid transparent}
.pill-muted{background:rgb(241 245 249);border:1px solid rgba(15,23,42,.08);color:rgb(51 65 85)}

.prio-critical{background:#FFE7E7;border-color:#FFB7B7;color:#C81E1E}
.prio-high{background:#FFEEDC;border-color:#FFC08A;color:#B45309}
.prio-medium{background:#F2E9FF;border-color:#D7B9FF;color:#6D28D9}
.prio-low{background:#F1F5F9;border-color:#D6DEE8;color:#475569}
.prio-default{background:#F1F5F9;border-color:#D6DEE8;color:#475569}

.status-testing{background:#FDEFB9;color:#92400E}
.status-development{background:#DCEAFF;color:#1D4ED8}
.status-done{background:#D1FAE5;color:#047857}
.status-rejected{background:#FEE2E2;color:#B91C1C}
.status-backlog{background:#E2E8F0;color:#334155}
.status-analysis{background:#E0F2FE;color:#0369A1}
.status-approval{background:#EDE9FE;color:#6D28D9}
.status-archive{background:#E5E7EB;color:#334155}

.badge-status{
  display:inline-flex;align-items:center;gap:5px;
  min-width:unset;
  padding:5px 10px;
  border-radius:999px;
  font-size:10px;
  font-weight:600;
  letter-spacing:.12em;
  text-transform:uppercase;
  white-space:nowrap;
  border:0;
}
.badge-status .dot{width:6px;height:6px;border-radius:999px;flex:0 0 6px}

.row-menu{
  width:34px;height:34px;border-radius:999px;
  display:inline-flex;align-items:center;justify-content:center;
  background:transparent;border:0;
  color:rgb(100 116 139);
}
.tasks-table tbody td:last-child .row-menu{margin-left:auto}
.row-menu:hover{background:rgba(148,163,184,.22);color:rgb(51 65 85)}

.row-menu .edit-ico{width:18px;height:18px;display:block}

.filter-select,
#f-task_type,
#f-priority,
#f-status,
#in-type,
#in-priority,
#in-status,
#in-tag,
#edit-type,
#edit-priority,
#edit-status,
#edit-tag{
  border-radius:1rem !important;
}

.cd-wrap{position:relative;width:100%;display:block}
.cd-btn{
  width:100%;
  display:flex;align-items:center;justify-content:space-between;gap:10px;
  border:1px solid rgba(226,232,240,.9);
  background:rgba(255,255,255,.92);
  padding:10px 12px;
  border-radius:1rem;
  font-size:14px;
  color:rgb(15 23 42);
}
.cd-label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cd-caret{opacity:.75;font-size:12px}
.cd-wrap.open .cd-caret{transform:rotate(180deg)}
.cd-menu{
  position:absolute;left:0;right:0;top:calc(100% + 6px);
  background:#fff;
  border:1px solid rgba(226,232,240,.95);
  border-radius:1rem;
  box-shadow:0 20px 50px -35px rgba(2,6,23,.45);
  padding:6px;
  max-height:260px;
  overflow:auto;
  display:none;
  z-index:80;
}
.cd-wrap.drop-up .cd-menu{top:auto;bottom:calc(100% + 6px)}
.cd-wrap.open .cd-menu{display:block}
.cd-item{
  padding:8px 10px;
  border-radius:.75rem;
  cursor:pointer;
  font-size:13px;
  color:rgb(15 23 42);
}
.cd-item:hover{background:rgba(148,163,184,.22)}
.cd-item.active{background:rgba(99,102,241,.12);color:rgb(49 46 129);font-weight:700}

.pell{
  border:1px solid rgba(226,232,240,.95);
  border-radius:1rem;
  background:#fff;
  overflow:hidden;
}
.pell-toolbar{
  display:flex;flex-wrap:wrap;gap:6px;
  padding:8px;
  border-bottom:1px solid rgba(226,232,240,.95);
  background:rgba(248,250,252,.8);
}
.pell-button{
  width:34px;height:34px;
  display:inline-flex;align-items:center;justify-content:center;
  border:1px solid rgba(226,232,240,.95);
  background:#fff;
  border-radius:12px;
  font-size:14px;
  color:rgb(15 23 42);
}
.pell-button:hover{background:rgba(148,163,184,.18)}
.pell-content{
  min-height:190px;
  padding:12px 14px;
  font-size:14px;
  line-height:1.6;
  color:rgb(15 23 42);
  outline:none;
}
.pell-content:empty:before{
  content:attr(data-placeholder);
  color:rgb(148 163 184);
}
.pell-content h1{font-size:22px;font-weight:700;margin:12px 0}
.pell-content h2{font-size:18px;font-weight:700;margin:10px 0}
.pell-content p{margin:8px 0}
.pell-content ul,.pell-content ol{margin:8px 0;padding-left:22px}
.pell-content ul{list-style:disc}
.pell-content ol{list-style:decimal}
.pell-content li{margin:4px 0}
.pell-content blockquote{border-left:3px solid rgba(99,102,241,.55);padding-left:12px;color:rgb(51 65 85);margin:10px 0}
.pell-content pre{background:rgba(15,23,42,.04);border:1px solid rgba(15,23,42,.08);border-radius:12px;padding:10px 12px;overflow:auto}

.pager{display:flex;align-items:center;justify-content:flex-end;gap:8px}
.pager .pg-btn{
  width:34px;height:34px;border-radius:999px;
  display:inline-flex;align-items:center;justify-content:center;
  background:rgba(255,255,255,.78);
  border:1px solid rgba(15,23,42,.10);
  color:rgb(51 65 85);
  box-shadow:0 10px 22px -18px rgba(2,6,23,.35);
}
.pager .pg-btn:hover{background:#fff}
.pager .pg-btn[disabled]{opacity:.45;cursor:not-allowed}
.pager .pg-btn.active{
  background:rgb(37 99 235);
  border-color:rgba(37,99,235,.35);
  color:#fff;
}

.pager-info{
  font-size:10px;
  font-weight:600;
  color:rgb(71 85 105);
  background:rgba(255,255,255,.9);
  border:1px solid rgba(148,163,184,.7);
  border-radius:999px;
  padding:4px 10px;
}

.table-actions{display:flex;align-items:center;gap:10px;justify-content:flex-end}
.btn-soft{
  display:inline-flex;align-items:center;gap:10px;
  padding:6px 14px;border-radius:999px;
  background:rgba(255,255,255,.78);
  border:1px solid rgba(15,23,42,.10);
  color:rgb(15 23 42);
  font-weight:600;font-size:12px;
}
.btn-soft:hover{background:#fff}
/* Legacy (kept in case other UI uses it) */
/* Author styling with individual colors */
.author-cell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  vertical-align: middle;
  min-height: 24px;
  text-align: center; /* Выравнивание текста по центру */
}

.author-cell.author-0 {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #047857;
}

.author-cell.author-1 {
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: #4338ca;
}

.author-cell.author-2 {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #b45309;
}

.author-cell.author-3 {
  background: rgba(2, 132, 199, 0.15);
  border: 1px solid rgba(2, 132, 199, 0.3);
  color: #0e7490;
}

/* Tracked task eye icon styling */
.tasks-table tbody tr.row-tracked .summary-text:before {
  content: "\f06e";
  font-family: "Font Awesome 6 Free";
  font-weight: 400;
  font-size: 11px;
  color: #4F46E5; /* Цвет иконки глаза */
  margin-right: 6px;
  float: left; /* Прижимаем иконку к левому краю */
}

/* Table settings button */
.table-settings-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(15, 23, 42, 0.1);
  color: rgb(100 116 139);
  box-shadow: 0 10px 22px -18px rgba(2, 6, 23, 0.35);
  margin-left: 8px;
}

.table-settings-btn:hover {
  background: #fff;
  color: rgb(51 65 85);
}

/* Column visibility settings dropdown */
.column-settings-dropdown {
  position: absolute;   /* Чтобы всплывало поверх */
  right: 0;            /* Прижать к правому краю кнопки */
  top: calc(100% + 8px); /* Показать чуть ниже кнопки */
  z-index: 100;        /* Выше, чем строки таблицы */
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 1rem;
  padding: 12px;
  min-width: 200px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

/* Если окно скрыто через класс hidden */
.column-settings-dropdown.hidden {
  display: none;
}

/* Если вы используете класс active в JS */
.column-settings-dropdown.active {
  display: block;
}

.column-settings-dropdown.open {
  display: block;
}

.column-settings-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgb(100 116 139);
  margin-bottom: 8px;
}

.column-setting-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
}

.column-setting-item input {
  width: 16px;
  height: 16px;
}

/* Summary header left alignment */
.th-btn.summary-header {
  text-align: left !important;
}
.clamp-2{
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  line-clamp:2;
  overflow:hidden
}
