@font-face {
  font-family: NotoGeo;
  src: local('Noto Sans Georgian'), url(fonts/NotoSansGeorgian-Regular.ttf) format('truetype');
  font-style: normal;
  font-weight: 400 500;
  font-display: swap
}

@font-face {
  font-family: NotoGeo;
  src: local('Noto Sans Georgian Bold'), url(fonts/NotoSansGeorgian-Bold.ttf) format('truetype');
  font-style: normal;
  font-weight: 600 800;
  font-display: swap
}

.training-banner { position: sticky; top: 0; z-index: 3; padding: .75rem 1.25rem; background: #fff1c5; color: #573700; border-bottom: 2px solid #bd841d; font-weight: 700; }
:root {
  --green: #1F6B4A;
  --dark: #164F37;
  --pale: #E6F1EB;
  --bg: #F4F6F5;
  --ink: #1C2421;
  --muted: #5E6B66;
  --line: #E2E8E5;
  --amber: #FFF4E0;
  --ochre: #7A4A00;
  --control: #78867F
}

* {
  box-sizing: border-box
}

html {
  color-scheme: light
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.45 NotoGeo, system-ui, sans-serif
}

a,
.text-action {
  color: var(--green)
}

a:hover,
.text-action:hover {
  color: var(--dark);
  text-decoration: underline
}

button,
select,
input,
textarea {
  font: inherit;
  color: inherit
}

button,
select {
  cursor: pointer
}

button:disabled {
  cursor: default
}

a,
button,
input,
textarea,
select,
summary {
  outline-offset: 3px
}

:focus-visible {
  outline: 3px solid var(--dark)
}

button {
  background: white
}

h1,
h2,
h3,
p,
ol,
ul {
  margin: 0
}

h1 {
  font-size: 28px;
  line-height: 1.35
}

h2 {
  font-size: 16px
}

h3 {
  font-size: 14px
}

textarea {
  resize: vertical;
  width: 100%;
  padding: 10px 12px
}

select,
input,
textarea {
  border: 1px solid var(--control);
  border-radius: 8px;
  background: white
}

select,
input {
  padding: 8px 10px;
  font-size: 14px;
  max-width: 100%
}

button,
.primary,
.secondary,
.tab {
  border: 1px solid var(--control);
  border-radius: 8px;
  padding: 8px 13px;
  text-decoration: none;
  line-height: 1.4
}

.primary {
  border-color: var(--green);
  background: var(--green);
  color: white;
  font-weight: 600
}

.primary:hover {
  background: var(--dark);
  color: white
}

.secondary,
.tab {
  background: white;
  color: var(--ink)
}

.text-action {
  padding: 0;
  border: 0;
  background: none;
  text-align: left
}

.small,
.sub,
.crumb {
  color: var(--muted);
  font-size: 13px
}

.tiny {
  font-size: 12px
}

.muted {
  color: var(--muted)
}

.num {
  font-variant-numeric: tabular-nums;
  white-space: nowrap
}

.row,
.actions,
.tabs,
.chips {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap
}

.between {
  justify-content: space-between
}

.stack,
main,
.panel-stack {
  display: flex;
  flex-direction: column;
  gap: 16px
}

.layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  min-height: 100vh
}

.sidebar {
  background: white;
  border-right: 1px solid var(--line);
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px
}

.sidebar>a,
.sidebar>.text-action {
  padding: 10px 12px;
  text-decoration: none;
  border-radius: 8px;
  color: #3D4A45;
  font-size: 15px
}

.sidebar .active,
.tab[aria-pressed=true],
.tab[aria-selected=true] {
  background: var(--pale);
  color: var(--dark);
  font-weight: 700;
  border-color: var(--pale)
}

.sidebar .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 10px 18px;
  font-size: 17px;
  color: var(--ink)
}

.logo {
  background: var(--green);
  color: white;
  border-radius: 8px;
  text-align: center;
  line-height: 32px;
  width: 32px;
  height: 32px;
  font-weight: bold
}

.nav-group {
  font-size: 12px;
  color: var(--muted);
  padding: 7px 12px 2px
}

.main {
  padding: 24px 28px 48px;
  min-width: 0
}

.panel,
.stat {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px
}

.panel {
  padding: 15px 16px
}

.stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px
}

.stat {
  padding: 12px 14px;
  display: block;
  text-decoration: none;
  color: var(--ink)
}

.stat strong {
  display: block;
  font-size: 21px
}

.green-text {
  color: var(--green)
}

.badge {
  display: inline-block;
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 12px;
  font-weight: 650;
  text-decoration: none
}

.green {
  background: var(--pale);
  color: var(--dark)
}

.amber {
  background: var(--amber);
  color: var(--ochre)
}

.red {
  background: #FDECEC;
  color: #9B1C1C
}

.blue {
  background: #E8F0FB;
  color: #1D4E89
}

.badge.muted {
  background: #F1F3F2;
  color: #46554E
}

.headline h1 span {
  font-weight: 500;
  color: var(--muted)
}

.filters {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px 14px
}

.filters label {
  font-size: 13px;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 4px
}

.grow {
  flex: 1 1 160px
}

.switch {
  display: inline-flex;
  border: 1px solid var(--control);
  border-radius: 8px;
  overflow: hidden
}

.switch a {
  padding: 9px 12px;
  text-decoration: none;
  color: var(--ink);
  font-size: 14px
}

.switch .on {
  background: var(--green);
  color: white
}

.unread-box {
  background: #FFFBF2;
  border: 1px solid #E9C779
}

.strip,
.board-scroll {
  overflow-x: auto;
  padding-bottom: 6px
}

.strip {
  display: flex;
  gap: 10px;
  padding-top: 10px
}

.unread-link {
  flex: 0 0 250px;
  min-width: 0;
  display: grid;
  gap: 4px;
  text-decoration: none;
  color: var(--ink)
}

.snippet {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 12px;
  font-style: italic
}

.board {
  display: grid;
  grid-template-columns: repeat(7, minmax(236px, 1fr));
  min-width: 1958px;
  gap: 10px
}

.column {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-self: stretch;
  min-height: 560px;
  border-radius: 12px;
  background: #EEF2F0;
  padding: 10px
}

.column.drag-over {
  outline: 2px solid var(--green);
  outline-offset: -2px
}

.colhead {
  padding: 2px 4px;
  flex-wrap: nowrap
}

.colhead h2 {
  font-size: 14px
}

.kcard,
.unread-link {
  border: 1px solid #DCE3E0;
  border-radius: 10px;
  padding: 10px 11px;
  background: white
}

.kcard {
  display: flex;
  flex-direction: column;
  gap: 7px
}

.kcard:hover {
  border-color: var(--green)
}

.name {
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  color: var(--ink)
}

.debt-amount {
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  color: inherit
}

.campaign {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 8px;
  border-radius: 8px;
  padding: 6px 8px;
  font-size: 12px;
  background: #F7FAF8;
  text-decoration: none;
  color: inherit
}

.card-actions {
  display: flex;
  gap: 4px;
  align-items: center
}

.card-actions a {
  padding: 6px;
  font-size: 11px;
  text-decoration: none;
  text-align: center
}

.card-actions a:first-child {
  flex: 1;
  font-size: 12px
}

.more {
  text-align: center;
  font-size: 13px
}

.blink {
  border: 2px solid #E0A93B;
  animation: unreadPulse 1.8s ease-in-out infinite
}

.dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #E0A93B
}

@keyframes unreadPulse {
  50% {
    background: #FFF4E0;
    box-shadow: 0 0 0 3px #e0a93b55
  }
}

@media(prefers-reduced-motion:reduce) {
  .blink {
    animation: none;
    background: #FFF8E9
  }
}

.history-main {
  max-width: 1136px;
  margin: auto
}

.identity {
  border-radius: 14px;
  padding: 18px 20px
}

.identity h1 {
  font-size: 24px;
  margin: 3px 0
}

.amount-box {
  text-align: right
}

.large-money {
  font-size: 26px;
  font-weight: 700;
  color: inherit;
  text-decoration: none
}

.compose {
  display: grid;
  gap: 10px
}

.compose textarea {
  min-height: 78px
}

.composer-foot {
  justify-content: space-between
}

.timeline {
  padding: 6px 18px
}

.event {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid #EEF2F0
}

.event:last-child {
  border: 0
}

.event time {
  font-size: 13px;
  color: var(--muted)
}

.event-body {
  margin-top: 4px;
  font-size: 14px;
  white-space: pre-wrap;
  overflow-wrap: anywhere
}

.tabs button {
  font-size: 14px
}

.timeline-filter button {
  font-size: 13px;
  border-radius: 999px
}

.card-main {
  max-width: 1276px;
  width: 100%;
  margin: 0 auto;
  gap: 14px
}

.work-grid {
  display: grid;
  grid-template-columns: minmax(255px, 1fr) minmax(0, 1.7fr);
  gap: 14px;
  align-items: start
}

.work-grid .stack {
  gap: 14px
}

.work-grid h2 {
  margin-bottom: 8px
}

.data-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 6px 0;
  font-size: 14px
}

.data-row a {
  overflow-wrap: anywhere
}

.work-area {
  padding: 0;
  min-width: 0;
  overflow: hidden
}

.worktabs {
  display: flex;
  overflow: auto;
  border-bottom: 1px solid var(--line);
  padding: 0 10px
}

.worktabs a {
  padding: 12px 10px;
  text-decoration: none;
  color: var(--muted);
  white-space: nowrap;
  font-size: 14px
}

.worktabs a.on {
  color: var(--green);
  border-bottom: 3px solid var(--green);
  font-weight: 700
}

.mail-grid {
  display: grid;
  grid-template-columns: minmax(155px, .8fr) minmax(0, 1.6fr);
  min-height: 520px
}

.mail-list {
  border-right: 1px solid var(--line)
}

.mail-search {
  width: calc(100% - 16px);
  margin: 8px
}

.message {
  display: block;
  width: 100%;
  font-size: 13px;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  text-align: left
}

.message.on {
  background: var(--pale)
}

.mail-body {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  padding: 14px
}

.mail-body p {
  white-space: pre-wrap;
  overflow-wrap: anywhere
}

.form-hint {
  color: var(--muted);
  font-size: 12px
}

.dialog {
  max-width: min(620px, 94vw);
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  color: var(--ink)
}

.dialog>*+* {
  margin-top: 12px
}

.dialog::backdrop {
  background: #1c24214d
}

.loading {
  margin: 40px auto;
  padding: 16px;
  max-width: 680px
}

.panel a:hover,
.sidebar a:hover {
  text-decoration: underline
}

#notice:not(:empty) {
  position: fixed;
  z-index: 20;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 18px;
  border-radius: 8px;
  background: #164f37;
  color: white
}

.listbox {
  max-height: 62vh;
  overflow: auto
}

.error {
  color: #9b1c1c
}

@media(max-width:1100px) {
  .layout {
    grid-template-columns: 195px minmax(0, 1fr)
  }

  .main {
    padding: 18px
  }

  .stats {
    gap: 6px
  }

  .stat {
    padding: 9px
  }

  .mail-grid {
    grid-template-columns: 1fr
  }

  .mail-list {
    max-height: 190px;
    overflow: auto
  }

  .work-grid {
    grid-template-columns: minmax(215px, .8fr) minmax(0, 1.2fr)
  }
}

@media(max-width:800px) {
  .layout {
    display: block
  }

  .sidebar {
    flex-direction: row;
    overflow: auto;
    align-items: center;
    padding: 6px;
    white-space: nowrap;
    border-bottom: 1px solid var(--line)
  }

  .sidebar .brand {
    padding: 4px
  }

  .sidebar .nav-group {
    display: none
  }

  .sidebar>a,
  .sidebar>.text-action {
    padding: 7px;
    font-size: 12px
  }

  .main {
    padding: 14px
  }

  .stats {
    grid-template-columns: repeat(auto-fit, minmax(115px, 1fr))
  }

  .work-grid {
    grid-template-columns: 1fr
  }

  .event {
    grid-template-columns: 75px 1fr
  }

  .headline h1 {
    font-size: 22px
  }

  .mail-grid {
    min-height: 320px
  }
}

.name-heading {
  color: inherit;
  text-decoration: none
}

.stat {
  text-align: left
}

.empty {
  padding: 14px 0
}

.work-area .panel {
  border: 0
}

.mail-body textarea {
  min-height: 110px
}

.card-actions .secondary {
  color: var(--green)
}

.history-main .event time {
  font-variant-numeric: tabular-nums
}

.kcard .small {
  text-decoration: none
}

.actions .text-action {
  padding: 6px
}

.unread-box {
  background: #fff;
  border-color: var(--line)
}

.filter-switch {
  display: flex;
  flex-direction: column;
  gap: 4px
}

.filters>label:not(.grow) {
  flex: 1 1 118px
}

.filters .grow {
  flex: 1.4 1 160px
}

.stat:nth-child(2) strong {
  color: var(--green)
}

.sidebar .active {
  font-size: 14px
}

.card-actions a {
  min-width: 24px;
  padding: 6px 4px
}

.unread-link.blink {
  border-width: 2px
}

.mail-body input[type=text] {
  width: 100%
}

.campaign-name {grid-column:1 / -1;color:var(--green);overflow-wrap:anywhere}
.kcard .badge.amber,.identity .badge.amber {white-space:normal}

/* Owner 03.12 22:55: „არ დაუკავშირდეთ“ switch on the card */
.contact-stop { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: flex-end; margin-top: 6px; }
.contact-stop.stop-on { padding: 4px 8px; border-radius: 8px; background: #fde8e8; color: #8a1c1c; }
.contact-stop.stop-on button { border-color: #8a1c1c; }
.stop-review { flex-basis: 100%; display: flex; gap: 8px; align-items: center; padding: 6px 8px; border-radius: 8px; background: #fff4d6; color: #6b4a00; }
.stop-review[hidden] { display: none; }

.month-picker {display:flex;align-items:center;gap:6px;min-width:0;border:0;padding:0;margin:0}
.month-picker legend {font-size:12px;color:var(--muted)}
.month-picker input {width:80px}
.kcard .review-alert {display:block;padding:5px 8px;border-radius:8px;background:#fff4d6;color:#674700;font-size:12px}
.projection .panel, .projection .stats {margin:14px 0}
.projection-stats {grid-template-columns:repeat(auto-fit,minmax(170px,1fr))}
.projection .stat {display:flex;flex-direction:column;gap:7px;text-decoration:none}
.projection .stat[aria-current] {border-color:var(--green)}
.projection-compare {display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px}
.projection-scroll {overflow:auto;max-height:55vh;margin:10px 0}
.projection table {border-collapse:separate;border-spacing:0;min-width:100%;font-size:13px}
.projection td,.projection th {white-space:nowrap;text-align:right;padding:8px;border-bottom:1px solid var(--line)}
.projection th:first-child {position:sticky;left:0;text-align:left;background:white}
.projection thead th {position:sticky;top:0;background:#e6f1eb;z-index:1}
.projection thead th:first-child {z-index:2;background:#e6f1eb}

.staff-bar{display:flex;align-items:center;justify-content:flex-end;gap:1rem;padding:.5rem 1.25rem;background:white;border-bottom:1px solid #e2e8e5}
.login-panel{max-width:28rem;margin:8vh auto}.login-panel input{display:block;width:100%}
.kcard:focus-visible{outline:3px solid #1f6b4a;outline-offset:-3px}
.kcard:has(input[type=checkbox]:checked){border-color:#1f6b4a}
.kcard input[type=checkbox]{width:1.2rem;height:1.2rem;accent-color:#1f6b4a}

.sr-only, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link:focus {
  position: fixed;
  top: .5rem;
  left: .5rem;
  z-index: 10;
  padding: .6rem 1rem;
  color: var(--dark);
  background: white;
}
.worktabs a:focus-visible, .switch a:focus-visible { outline-offset: -3px; }
.switch a.on:focus-visible { outline-color: white; }
body[data-training="true"] :focus { scroll-margin-top: 5rem; }
.dialog-notice:empty { margin: 0; }

.round-results .panel, .round-results .projection-scroll { min-width: 0; max-width: 100%; }
@media (max-width: 800px) {
  .round-results .projection-scroll { overscroll-behavior-x: contain; }
  .round-results .projection-scroll th { white-space: normal; }
  .round-results .projection-scroll tbody th { min-width: 9rem; max-width: 14rem; overflow-wrap: anywhere; }
  .round-results .projection-scroll th:first-child { position: static; }
  .round-results .projection-scroll thead th:first-child { position: sticky; left: auto; }
  .round-results .switch { max-width: 100%; }
  .round-results .switch a { min-width: 0; overflow-wrap: anywhere; }
}

.sms-marketing[hidden] { display: none; }
body[data-view='sms'] .work-grid > * { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 800px) { body[data-view='sms'] .work-grid { grid-template-columns: 1fr; } }

.login-panel [hidden] { display: none; }
.login-panel nav { margin-block: 1rem; }
