/* =============================================================================
   Komponensek
   ========================================================================== */

/* ---------- Gombok ---------- */
.btn {
  background: var(--sheet); border: 1px solid var(--rule-2);
  min-height: 36px; padding: 6px 13px; border-radius: var(--r-sm);
  font-size: 14px; font-weight: 500; color: var(--ink); line-height: 1.2;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; white-space: nowrap;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
  text-decoration: none;
}
.btn:hover { background: var(--sheet-2); border-color: var(--ink-3); }
.btn:active { background: var(--sheet-3); }
.btn.primary { background: var(--primary); color: #fff; border-color: var(--primary); font-weight: 600; }
.btn.primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); color: #fff; }
.btn.primary:active { background: var(--primary-press); }
.btn.danger { color: var(--danger); }
.btn.danger:hover { color: var(--danger-hover); border-color: var(--danger); background: var(--danger-tint); }
.btn.danger.solid { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn.danger.solid:hover { background: var(--danger-hover); }
.btn.active { background: var(--primary-tint); color: var(--primary-ink); border-color: var(--primary); font-weight: 600; }
.btn.sm, .btn-sm { min-height: 30px; padding: 4px 10px; font-size: 13px; }
.btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); font-weight: 600; }
.btn-primary:hover { background: var(--primary-hover); color: #fff; }
.btn-ghost-danger { background: transparent; border-color: transparent; color: var(--danger); }
.btn-ghost-danger:hover { background: var(--danger-tint); border-color: transparent; }
.btn:disabled, .btn[disabled] { opacity: .45; cursor: not-allowed; }
.icon-btn {
  width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 1px solid transparent; border-radius: var(--r-sm);
  font-size: 22px; line-height: 1; color: var(--ink-2);
}
.icon-btn:hover { background: var(--sheet-3); color: var(--ink); }

/* Szűrő-chipek */
.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 5px 12px;
  border: 1px solid var(--rule-2); border-radius: var(--r-pill); background: var(--sheet);
  font: inherit; font-size: 14px; font-weight: 500; color: var(--ink-2); cursor: pointer; white-space: nowrap; user-select: none;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}
.chip:hover { border-color: var(--ink-3); color: var(--ink); }
.chip:focus-visible { outline: none; box-shadow: var(--ring); }
.chip.active { background: var(--primary-tint) !important; color: var(--primary-ink) !important; border-color: var(--primary) !important; font-weight: 600; box-shadow: none !important; }

/* ---------- Avatar ---------- */
.avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--ink-2); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-cond); font-weight: 700; flex-shrink: 0; font-size: 14px;
  position: relative; background-size: cover; background-position: center;
}
.avatar.editor { background-color: #3f6b2a; }
.avatar.viewer { background-color: var(--ink-3); }

/* ---------- Tagok ---------- */
.members-list { display: flex; flex-direction: column; gap: 8px; }
.member-row {
  background: var(--sheet); border: 1px solid var(--rule);
  padding: 12px 16px; border-radius: var(--r-md);
  display: flex; gap: 12px; align-items: center;
}

/* ---------- Modális ablak ---------- */
.modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(28, 36, 33, .48);
  align-items: center; justify-content: center;
  z-index: 5000; padding: 20px;
  animation: fadeIn 160ms ease-out;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.modal-overlay.active { display: flex; }
.modal {
  background: var(--sheet); border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  max-width: 480px; width: 100%; max-height: 90vh; overflow-y: auto;
  box-shadow: var(--sh-pop);
  animation: slideUp 200ms cubic-bezier(.16, 1, .3, 1);
}
.modal-head { padding: 16px 20px; border-bottom: 1px solid var(--rule); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.modal-head h3 { font-size: 20px; }
.modal-body { padding: 20px; }
.modal-foot { padding: 12px 20px; border-top: 1px solid var(--rule); display: flex; gap: 8px; justify-content: flex-end; background: var(--sheet-2); border-radius: 0 0 var(--r-lg) var(--r-lg); }
.modal-close {
  background: none; border: 1px solid transparent; font-size: 24px; line-height: 1; color: var(--ink-3);
  width: 36px; height: 36px; border-radius: var(--r-sm); flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
}
.modal-close:hover { background: var(--sheet-3); color: var(--ink); }
.profile-section { padding: 16px 0; border-bottom: 1px solid var(--rule); }
.profile-section:last-child { border-bottom: none; }
.profile-section h4 { font-size: 17px; text-transform: none; letter-spacing: 0; color: var(--ink); margin-bottom: 12px; }
.danger-zone { background: var(--danger-tint); border: 1px solid #f2c4ca; padding: 12px; border-radius: var(--r-sm); margin-top: 8px; }

/* ---------- Értesítő sáv (toast) ---------- */
.toast {
  position: fixed; bottom: 24px; left: 50%;
  transform: translateX(-50%) translateY(calc(100% + 40px)); opacity: 0; visibility: hidden;
  background: var(--ink); color: #fff;
  padding: 11px 18px; border-radius: var(--r-md);
  font-size: 14px; line-height: 1.4; max-width: min(560px, calc(100vw - 32px));
  box-shadow: var(--sh-pop);
  transition: transform .28s cubic-bezier(.16, 1, .3, 1), opacity .2s, visibility 0s linear .28s;
  z-index: 100001;
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; visibility: visible; transition: transform .28s cubic-bezier(.16, 1, .3, 1), opacity .2s, visibility 0s; }
.toast { display: flex; align-items: center; gap: 10px; }
.toast[data-tone]::before { content: ''; width: 18px; height: 18px; flex: 0 0 auto; -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
.toast[data-tone="ok"]::before { --i: var(--i-check); background: #5fd394; }
.toast[data-tone="err"]::before { --i: var(--i-alert); background: #ff8a94; }

/* ---------- Megjegyzések ---------- */
.comment { background: var(--sheet-2); border: 1px solid var(--rule); padding: 9px 11px; border-radius: var(--r-md); margin-bottom: 6px; font-size: 14px; }
.comment .meta { font-size: var(--fs-xs); color: var(--ink-3); margin-bottom: 3px; }
.comment .meta strong { color: var(--ink-2); }
.comment-add { display: flex; gap: 6px; margin-top: 8px; }
.comment-add input { flex: 1; }

/* ---------- Űrlap-sorok ---------- */
.form-row { margin-bottom: 14px; }
.form-row-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }

/* ---------- Táblázatok (általános) ---------- */
table { border-collapse: collapse; font-variant-numeric: tabular-nums; }
th {
  font-family: var(--font-cond); font-weight: 600; font-size: 13px; color: var(--ink-2);
  text-transform: none; letter-spacing: 0; text-align: left;
}
.page-body table th { background: var(--sheet-2); border-bottom: 1px solid var(--rule-2); }
.page-body table td { border-bottom: 1px solid var(--rule); }

/* ---------- Hub: projektkártyák ---------- */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; align-items: start; }
.project-card {
  background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r-md);
  padding: 14px 16px; cursor: pointer; position: relative; overflow: hidden;
  transition: border-color var(--transition);
}
.project-card:hover { border-color: var(--ink-3); }
.project-card h3 { font-size: 18px; margin-bottom: 6px; }
.project-card .meta { font-size: var(--fs-sm); color: var(--ink-3); display: flex; gap: 8px; align-items: center; }

.hub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; align-items: start; }
/* Hub-kártya: tervlap-szerű — fejléc, alatta a számok egy szövegmező-rácsban */
.hub-card {
  background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r-md);
  padding: 14px 16px 12px; cursor: pointer; position: relative; overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
  border-left-width: 1px !important;
}
.hub-card:hover { border-color: var(--ink-3); box-shadow: var(--sh-float); }
.hub-card h3 {
  font-size: 19px; margin-bottom: 4px; padding-right: 72px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0;
}
/* Állapotjelző lámpa (zöld / sárga / piros) */
.hub-card .health-dot {
  position: absolute; top: 18px; right: 14px; width: 11px; height: 11px; border-radius: 50%;
  box-shadow: 0 0 0 3px var(--sheet), 0 0 0 4px var(--rule-2);
}
.hub-card.health-green .health-dot { background: var(--lamp-green); }
.hub-card.health-yellow .health-dot { background: var(--lamp-yellow); }
.hub-card.health-red .health-dot { background: var(--lamp-red); animation: lampPulse 2.4s ease-in-out infinite; }
@keyframes lampPulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .5; } }
.hub-card .role-pill {
  font-family: var(--font-cond); font-size: 12px; font-weight: 600; text-transform: none;
  padding: 1px 6px 2px; border-radius: var(--r-xs); background: var(--sheet-3); color: var(--ink-2);
  display: inline-block; margin-bottom: 10px;
}
.hub-card .kpi-row {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin-bottom: 1px;
  background: var(--rule); border: 1px solid var(--rule);
}
.hub-card .kpi-row + .kpi-row { border-top: none; }
.hub-card .kpi { background: var(--sheet); border-radius: 0; padding: 6px 9px 7px; min-width: 0; }
.hub-card .kpi .label { font-size: 12px; text-transform: none; letter-spacing: 0; color: var(--ink-3); line-height: 1.2; }
.hub-card .kpi .value { font-family: var(--font-cond); font-size: 18px; font-weight: 600; line-height: 1.2; margin-top: 2px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hub-card .kpi .value.warn { color: var(--warning); }
.hub-card .kpi .value.bad { color: var(--danger); }
.hub-card .kpi .value.good { color: var(--success); }
.hub-card .progress-bar { background: var(--sheet-3); height: 4px; border-radius: 2px; overflow: hidden; margin-top: 10px; }
.hub-card .progress-bar > div { height: 100%; transition: width .3s; }
.hub-card .meta-line { font-size: 12px; color: var(--ink-3); margin-top: 8px; display: flex; justify-content: space-between; gap: 6px; flex-wrap: wrap; }

/* Hub: összesítő sáv — hajszálvonalas cellák, mint a tervlap szövegmezője */
.hub-summary {
  display: flex; flex-wrap: wrap; background: var(--sheet);
  border: 1px solid var(--rule-2); border-radius: var(--r-md); overflow: hidden; margin-bottom: 26px;
}
.hub-sum-cell {
  flex: 1 1 150px; min-width: 0; padding: 10px 14px 12px;
  border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); margin: 0 -1px -1px 0;
}
.hub-sum-cell .label { font-size: 13px; color: var(--ink-3); line-height: 1.25; }
.hub-sum-cell .value { font-family: var(--font-cond); font-size: 26px; font-weight: 600; line-height: 1.15; margin-top: 3px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hub-sum-cell .value.money { font-size: 21px; margin-top: 7px; }
.hub-sum-cell .value.bad { color: var(--danger); }
.hub-sum-cell .value.good { color: var(--success); }
.hub-sum-total { flex: 2 1 250px; background: var(--sheet-2); }
.hub-section-title { font-size: 20px; margin: 0 0 10px; }

/* Hub-kártya fejléce: név, (adminnak) műveletek, állapotlámpa */
.hub-card-head { display: flex; align-items: flex-start; gap: 6px; margin-bottom: 4px; }
.hub-card-head h3 { flex: 1; min-width: 0; margin: 0; padding: 0; }
.hub-card-actions { display: flex; gap: 2px; margin-top: -3px; opacity: 0; transition: opacity var(--transition); }
.hub-card:hover .hub-card-actions, .hub-card:focus-within .hub-card-actions { opacity: 1; }
@media (hover: none) { .hub-card-actions { opacity: 1; } }
.hub-card-actions .btn { background: transparent; border-color: transparent; color: var(--ink-3); }
.hub-card-actions .btn:hover { background: var(--sheet-3); border-color: transparent; color: var(--ink); }
.hub-card-actions .btn.danger:hover { background: var(--danger-tint); color: var(--danger); }
.hub-card-head .health-dot { position: static; flex: 0 0 auto; margin: 7px 3px 0 6px; }
.hub-card-sub { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; font-size: 13px; color: var(--ink-3); margin-bottom: 12px; }
.hub-overdue { color: var(--danger); font-weight: 600; }
.hub-card .kpi-wide { grid-column: span 2; }
.hub-card .kpi .value.value-sm { font-size: 16px; }
.hub-card .kpi-note { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.status-text.bad { color: var(--danger); font-weight: 600; }
.status-text.warn { color: var(--warning); font-weight: 600; }
.status-text.good { color: var(--success); }
.hub-card .kpi .label { display: flex; align-items: center; min-height: 18px; }
.kpi-edit {
  display: inline-block; position: relative; width: 20px; height: 16px; margin-left: 3px; flex: 0 0 auto;
  background: none; border: none; border-radius: var(--r-xs); padding: 0; cursor: pointer; color: var(--ink-3);
}
.kpi-edit::before { content: ''; position: absolute; inset: 2px 3px; background: currentColor; -webkit-mask: var(--i-pencil) center / contain no-repeat; mask: var(--i-pencil) center / contain no-repeat; }
.kpi-edit:hover { color: var(--primary); background: var(--primary-tint-2); }

/* ---------- Értesítések legördülő ---------- */
@media (min-width: 901px) {
  .notif-dropdown { position: absolute; top: calc(100% + 6px); right: 0; }
  #notifBackdrop { display: none !important; }
}
.notif-dropdown { border-radius: var(--r-md) !important; border-color: var(--rule) !important; box-shadow: var(--sh-pop) !important; }

/* Sürgős csengő — rázkódik (szándékosan akkor is, ha a mozgás csökkentve van: ez maga a figyelmeztetés) */
@keyframes bellShake {
  0%, 100% { transform: rotate(0); } 15% { transform: rotate(-18deg); } 30% { transform: rotate(14deg); }
  45% { transform: rotate(-10deg); } 60% { transform: rotate(8deg); } 75% { transform: rotate(-4deg); }
}
@keyframes bellBadgePulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.18); } }
#notifBell.has-urgent #bellIcon { transform-origin: 50% 20%; animation: bellShake 1s cubic-bezier(.36, .07, .19, .97) infinite !important; background: var(--danger); }
#notifBell.has-urgent #notifCount { animation: bellBadgePulse 1s ease-in-out infinite !important; }

/* ---------- Feltöltés ---------- */
.upload-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(236, 238, 236, .92); z-index: 30; }
.upload-overlay.hidden { display: none; }
.upload-card { background: var(--sheet); border: 1.5px dashed var(--rule-2); border-radius: var(--r-lg); padding: 40px 48px; text-align: center; max-width: 440px; }
.upload-card .big-icon { font-size: 0; width: 44px; height: 44px; margin: 0 auto 12px; background: var(--primary); -webkit-mask: var(--i-plan) center / contain no-repeat; mask: var(--i-plan) center / contain no-repeat; }
.upload-card h2 { font-size: 22px; margin-bottom: 8px; }
.upload-card p { color: var(--ink-2); margin-bottom: 18px; font-size: 14px; }

/* ---------- Haladásjelző ---------- */
.progress { height: 6px; background: var(--sheet-3); border-radius: 3px; overflow: hidden; border: 1px solid var(--rule); }
.progress-fill { height: 100%; width: 0; background: var(--primary); transition: width .25s; }

/* ---------- Offline / szinkron állapot a fejlécben ---------- */
.net-status {
  display: inline-flex; align-items: center; gap: 7px; min-height: 32px;
  padding: 4px 11px 4px 9px; border-radius: var(--r-pill);
  border: 1px solid var(--rule-2); background: var(--sheet);
  font-family: var(--font-cond); font-size: 14px; font-weight: 600; color: var(--ink-2); white-space: nowrap;
}
.net-status[hidden] { display: none; }
.net-status:hover { border-color: var(--ink-3); }
.net-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--rule-2); flex: 0 0 auto; }
.net-dot.ok { background: var(--lamp-green); }
.net-dot.off { background: var(--lamp-orange); }
.net-status.is-offline { background: var(--warning-tint); border-color: #e9c27a; color: #6e4300; }
.net-status.is-offline .net-dot { background: var(--lamp-orange); }
.net-status.is-pending { background: var(--warning-tint); border-color: #e9c27a; color: #6e4300; }
.net-status.is-pending .net-dot { background: var(--lamp-yellow); }
.net-status.is-syncing { background: var(--primary-tint); border-color: #b4cde3; color: var(--primary-ink); }
.net-status.is-syncing .net-dot { background: var(--primary); animation: lampPulse 1s ease-in-out infinite; }
.net-status.is-error { background: var(--danger-tint); border-color: #f2c4ca; color: #8c1d29; }
.net-status.is-error .net-dot { background: var(--lamp-red); }
.net-status.is-stale .net-dot { background: var(--lamp-yellow); }

/* Szinkron panel */
.sync-panel-overlay { display: none; position: fixed; inset: 0; z-index: 5200; background: rgba(28, 36, 33, .4); align-items: flex-start; justify-content: flex-end; padding: calc(var(--header-h) + 8px) 12px 12px; }
.sync-panel-overlay.show { display: flex; }
.sync-panel { width: 440px; max-width: 100%; max-height: calc(100vh - var(--header-h) - 24px); overflow: auto; background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r-lg); box-shadow: var(--sh-pop); animation: slideUp 180ms cubic-bezier(.16, 1, .3, 1); }
.sync-panel-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--rule); position: sticky; top: 0; background: var(--sheet); }
.sync-panel-head h3 { font-size: 20px; }
.sync-panel-body section { padding: 14px 16px; border-bottom: 1px solid var(--rule); }
.sync-panel-body section:last-child { border-bottom: none; }
.sync-panel-body h4 { font-size: 16px; }
.sync-panel-body p { font-size: 14px; margin-top: 6px; }
.sync-state-row { display: flex; align-items: center; gap: 8px; }
.sync-warn { color: #8c1d29; font-weight: 500; }
.sync-queue-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.sync-list { list-style: none; border: 1px solid var(--rule); border-radius: var(--r-md); overflow: hidden; }
.sync-item { display: flex; align-items: center; gap: 10px; padding: 9px 10px 9px 12px; border-bottom: 1px solid var(--rule); background: var(--sheet); }
.sync-item:last-child { border-bottom: none; }
.sync-item.is-failed { background: var(--danger-tint); }
.sync-item-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sync-item-label { font-size: 14px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sync-item-meta { font-size: 12px; color: var(--ink-3); }
.sync-err { color: #8c1d29; }
.sync-item-actions { display: flex; gap: 4px; flex: 0 0 auto; }
.sync-empty { padding: 14px 12px; color: var(--ink-3); font-size: 14px; }
.sync-prefetch-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 10px 0 8px; }

/* Szinkronra váró elemek jelölése */
.attach-thumb.pending { outline: 2px dashed var(--lamp-orange); outline-offset: -2px; }
.attach-pending-badge {
  position: absolute; top: 4px; left: 4px; z-index: 1;
  background: var(--warning-tint); color: #6e4300; border: 1px solid #e9c27a;
  font-family: var(--font-cond); font-size: 11px; font-weight: 600; padding: 1px 5px; border-radius: var(--r-xs);
}

/* Üzenet-csatolmány */
.msg-file {
  display: flex; align-items: center; gap: 9px; margin: 4px 0; padding: 8px 11px;
  background: rgba(28, 36, 33, .06); border: 1px solid var(--rule); border-radius: var(--r-md);
  text-decoration: none; color: inherit; max-width: 280px;
}
.msg-file:hover { background: rgba(28, 36, 33, .09); }
.msg-file.is-loading { opacity: .6; pointer-events: none; }
.msg-file-icon { width: 18px; height: 18px; background: currentColor; -webkit-mask: var(--i-paperclip) center / contain no-repeat; mask: var(--i-paperclip) center / contain no-repeat; flex: 0 0 auto; }
.msg-file-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 500; }
.msg-file-meta { font-size: 12px; color: var(--ink-3); white-space: nowrap; }

/* Csak ikonos gomb (a felirat a title/aria-label-ben) */
.btn.icon-only { font-size: 0 !important; width: 32px; min-width: 32px; padding: 0 !important; justify-content: center; }
.btn.icon-only::before { content: ''; width: 18px; height: 18px; background: currentColor; -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
.btn.sm.icon-only { min-height: 30px; }
.btn.has-ico::before { content: ''; width: 17px; height: 17px; flex: 0 0 auto; background: currentColor; -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; margin-left: -2px; }

/* ---------- Adattáblázat (feladatok, listák) ---------- */
.table-card { background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r-md); overflow: hidden; }
.tasks-table-card { margin: 18px 24px 24px; }
.table-scroll { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 760px; }
.data-table th {
  background: var(--sheet-2); text-align: left; padding: 9px 12px;
  font-family: var(--font-cond); font-size: 14px; font-weight: 600; color: var(--ink-2);
  border-bottom: 1px solid var(--rule-2); white-space: nowrap;
}
.data-table th[data-sort] { cursor: pointer; user-select: none; }
.data-table th[data-sort]:hover { color: var(--ink); background: var(--sheet-3); }
.data-table td { padding: 10px 12px; border-bottom: 1px solid var(--rule); vertical-align: middle; }
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr.is-link { cursor: pointer; }
.data-table tbody tr.is-link:hover { background: var(--primary-tint-2); }
.data-table .c-num { color: var(--ink-3); font-family: var(--font-cond); font-weight: 600; white-space: nowrap; }
.data-table .c-strong { font-weight: 500; color: var(--ink); min-width: 160px; }
.data-table .c-muted { color: var(--ink-3); }
.data-table .c-nowrap { white-space: nowrap; }
.data-table .c-clip { max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.data-table .c-plan { min-width: 170px; }
.sort-ind { font-size: 11px; opacity: .35; margin-left: 2px; }
.sort-ind.on { opacity: 1; color: var(--primary); }
.data-table td.overdue { color: var(--danger); font-weight: 600; }
.overdue-tag { display: inline-block; margin-left: 4px; padding: 0 5px; border-radius: var(--r-xs); background: var(--danger-tint); color: var(--danger); font-family: var(--font-cond); font-size: 12px; font-weight: 600; }

/* Állapot: jelzőlámpa-pötty + felirat */
.status-tag { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.status-tag::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--lamp, var(--rule-2)); box-shadow: 0 0 0 1px rgba(28, 36, 33, .2); flex: 0 0 auto; }
.status-tag.s-open { --lamp: var(--lamp-red); }
.status-tag.s-in_progress { --lamp: var(--lamp-orange); }
.status-tag.s-done { --lamp: var(--lamp-green); }
.status-tag.s-verified { --lamp: var(--lamp-blue); }
/* Címke-chip: a címke saját színével */
.tag-chip { display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px 2px 6px; border-radius: var(--r-xs); background: var(--sheet-3); color: var(--ink); font-family: var(--font-cond); font-size: 13px; font-weight: 600; white-space: nowrap; }
.tag-chip::before { content: ''; width: 10px; height: 10px; border-radius: 3px; background: var(--chip, var(--ink-3)); }

/* Megerősítő / szövegbekérő ablak (confirmModal, promptModal) */
.tk-dialog { z-index: 99999; }
.tk-dialog .modal { max-width: 440px; }
.dialog-msg { display: block; white-space: pre-line; font-size: 15px; line-height: 1.55; color: var(--ink); margin: 0 0 4px; text-transform: none; letter-spacing: 0; font-weight: 400; }
.tk-dialog input[type=text] { margin-top: 10px; }
#confirmText { white-space: pre-line; }
