/* ══════════════════════════════════════════════════════════════
   Клиентският портал на DISA. Цветовете са копие на токените от
   app/disa/static/css/disa.css (не се линква файлът на DISA).
   ══════════════════════════════════════════════════════════════ */
/* Plus Jakarta Sans - локално (static/fonts, SIL OFL, виж OFL.txt). Променлив шрифт: един файл за 400-800
   по набор знаци. Google няма основна кирилица за този шрифт - тя идва от резервния шрифт, както досега. */
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url('../fonts/PlusJakartaSans-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url('../fonts/PlusJakartaSans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url('../fonts/PlusJakartaSans-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-primary:        #29B8B0;
  --color-primary-hover:  #1FA8A0;
  --color-primary-active: #18746A;
  --color-navy:           #1C2B3A;
  --color-surface:        #F4F7FA;
  --color-white:          #FFFFFF;
  --color-warning:        #E8A820;
  --color-danger:         #D94F5A;
  --color-success:        #4CAF7A;
  --color-slate:          #4E6375;
  --color-border:         #E2EAF0;
  --color-border-primary: #C8D8E4;
  --color-text-tertiary:  #8EA3B5;
  --color-shadow:         rgba(28, 43, 58, 0.08);
  /* Разговорът (група Р): нюансите на пиловете и повторното изискване. */
  --pt-th-green-ink: #2F8A5B;
  --pt-th-amber-ink: #A87508;
  --pt-th-amber-bg: #FFF8E6;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--color-surface); color: var(--color-navy); font-family: 'Plus Jakarta Sans', -apple-system, 'Segoe UI', Arial, sans-serif; font-size: 14px; line-height: 1.5; }
a { color: var(--color-primary-active); }

/* ── Горната лента ── */
.pt-top { display: flex; align-items: center; height: 56px; padding: 0 24px; background: var(--color-white); border-bottom: 1px solid var(--color-border); }
/* Знакът (09.11.2026, вариант В3, с размерите на знака в DISA): иконата 28px и вдясно
   в колона „DISA“ 17px/800 и дребно „ПОРТАЛ“ 9.5px/600 под него. */
.pt-logo { display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; text-decoration: none; white-space: nowrap; }
.pt-logo-icon { width: 28px; height: 28px; flex-shrink: 0; }
.pt-logo-col { display: flex; flex-direction: column; line-height: 1; }
.pt-logo-text { font-size: 17px; font-weight: 800; letter-spacing: -0.02em; line-height: 1; color: var(--color-navy); }
.pt-logo-sub { margin-top: 2px; font-size: 9.5px; font-weight: 600; letter-spacing: 0.4px; line-height: 1; text-transform: uppercase; color: var(--color-text-tertiary); }
.pt-top-right { margin-left: auto; display: flex; align-items: center; gap: 14px; font-size: 13px; }
.pt-user { color: var(--color-slate); font-weight: 500; }
.pt-logout { margin: 0; }
.pt-lang { display: inline-flex; border: 1px solid var(--color-border); border-radius: 8px; overflow: hidden; }
.pt-lang-opt { padding: 4px 9px; font-size: 12px; font-weight: 600; color: var(--color-slate); text-decoration: none; }
.pt-lang-opt + .pt-lang-opt { border-left: 1px solid var(--color-border); }
.pt-lang-opt.is-cur { background: rgba(41, 184, 176, .12); color: var(--color-primary-active); }

/* ── Съдържанието ── */
.pt-main { padding: 48px 16px 64px; }
.pt-card {
  max-width: 440px; margin: 0 auto; padding: 32px 32px 28px; background: var(--color-white);
  border: 1px solid var(--color-border); border-radius: 14px; box-shadow: 0 1px 4px var(--color-shadow);
}
.pt-icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-bottom: 16px; border-radius: 12px; background: rgba(41, 184, 176, .12); color: var(--color-primary-active); font-size: 22px; }
.pt-icon.is-warn { background: rgba(232, 168, 32, .14); color: #A87406; }
.pt-icon.is-muted { background: var(--color-surface); color: var(--color-slate); }
.pt-title { margin: 0 0 8px; font-size: 20px; font-weight: 700; line-height: 1.3; }
.pt-text { margin: 0 0 20px; color: var(--color-slate); }
.pt-alert { margin: 0 0 16px; padding: 10px 12px; border-radius: 8px; background: rgba(232, 168, 32, .12); color: #8A5F05; font-size: 13px; }
.pt-alert.is-danger { background: rgba(217, 79, 90, .10); color: var(--color-danger); }

.pt-form { display: grid; gap: 14px; }
.pt-field { display: grid; gap: 6px; }
.pt-label { font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--color-slate); }
.pt-input {
  height: 40px; padding: 0 12px; border: 1px solid var(--color-border-primary); border-radius: 8px; background: var(--color-white);
  font: inherit; color: var(--color-navy); outline: none;
}
.pt-input:focus { border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(41, 184, 176, .16); }
.pt-input[readonly] { background: var(--color-surface); color: var(--color-slate); }
.pt-input.is-invalid { border-color: var(--color-danger); }
.pt-error { font-size: 12.5px; color: var(--color-danger); }
/* Паролата: окото вдясно в полето и списъкът с изискванията (както в DISA). */
.pt-pw { position: relative; }
.pt-pw .pt-input { width: 100%; padding-right: 42px; box-sizing: border-box; }
.pt-pw-toggle { position: absolute; top: 0; right: 0; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  padding: 0; border: 0; background: none; color: var(--color-slate); cursor: pointer; }
.pt-pw-toggle:hover { color: var(--color-primary-active); }
.pt-pw-toggle i { font-size: 18px; }
.pt-pw-list { list-style: none; margin: -4px 0 0; padding: 10px 12px; background: var(--color-surface); border-radius: 8px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; }
.pt-pw-list li { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 12.5px; line-height: 1.5; color: var(--color-text-tertiary); transition: color .15s; }
.pt-pw-list li i { flex-shrink: 0; font-size: 14px; color: var(--color-text-tertiary); transition: color .15s; }
.pt-pw-list li[data-ok="1"], .pt-pw-list li[data-ok="1"] i { color: var(--color-primary-active); }
.pt-hint { font-size: 12px; color: var(--color-text-tertiary); }
/* „Предложено от кантората. …“ под името във формата за активиране. */
.pt-hint[data-pt-hint="name"] { font-size: 12.5px; line-height: 1.5; }

.pt-btn {
  display: inline-flex; align-items: center; justify-content: center; height: 40px; padding: 0 18px; border: 0; border-radius: 8px;
  background: var(--color-primary-active); color: var(--color-white); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
}
.pt-btn:hover { background: #135E56; color: var(--color-white); }
.pt-btn-block { width: 100%; margin-top: 6px; }
.pt-btn-ghost { background: var(--color-white); color: var(--color-navy); border: 1px solid var(--color-border); }
.pt-btn-ghost:hover { background: var(--color-surface); color: var(--color-navy); }
.pt-link-btn { padding: 0; border: 0; background: none; font: inherit; font-weight: 600; color: var(--color-primary-active); cursor: pointer; }
.pt-link-btn:hover { text-decoration: underline; }
.pt-quiet-form { margin-top: 4px; }
.pt-below { margin-top: 16px; text-align: center; font-size: 13px; }
.pt-quiet { color: var(--color-primary-active); font-weight: 600; text-decoration: none; }
.pt-quiet:hover { text-decoration: underline; }

/* ── Начало и заглушката на пратката ── */
.pt-page { max-width: 760px; margin: 0 auto; }

/* ── Страницата на пратката (етап 5.2, мокъп portal1.html Б) ── */
.pt-ship { max-width: 720px; margin: 0 auto; }
.pt-back { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 12px; font-size: 13px; font-weight: 600; color: var(--color-primary-active); text-decoration: none; }
.pt-back:hover { text-decoration: underline; }
.pt-back i { font-size: 15px; }
.pt-ship-card { background: var(--color-white); border: 1px solid var(--color-border); border-radius: 14px; padding: 24px 28px; box-shadow: 0 2px 10px rgba(31, 46, 61, .05); }
.pt-ship-msg { margin-top: 14px; }
.pt-ship-head { display: flex; align-items: flex-start; gap: 16px; }
.pt-ship-head-main { flex: 1; min-width: 0; }
/* Група Г2в: съобщението (пратка без файлове) - иконката на плик в квадратче пред заглавието. */
.pt-ship-ic { margin-top: 2px; }
.pt-ship-title { margin: 0; font-size: 22px; font-weight: 700; line-height: 1.25; color: var(--color-navy); overflow-wrap: anywhere; }
.pt-ship-meta { margin-top: 4px; font-size: 13px; color: var(--color-text-tertiary); }
.pt-ship-office { font-weight: 600; color: var(--color-primary-active); }
.pt-ship-when { flex: none; padding-top: 4px; text-align: right; white-space: nowrap; font-size: 12.5px; color: var(--color-text-tertiary); }
.pt-ship-when b { display: block; font-size: 13px; font-weight: 600; color: var(--color-slate); }
.pt-ship-comma { display: none; }
.pt-ship-none { margin: 18px 0 0; font-size: 13px; color: var(--color-text-tertiary); }
.pt-files { margin-top: 18px; border: 1px solid var(--color-border); border-radius: 12px; overflow: hidden; }
.pt-file { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-bottom: 1px solid var(--color-border); }
.pt-file:last-child { border-bottom: 0; }
.pt-file-ext { width: 44px; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex: none; font-size: 11px; font-weight: 700; }
.pt-file-ext.is-xls { background: #E3F4EC; color: #1E7A4C; }
.pt-file-ext.is-pdf { background: #FBE5E7; color: #B42331; }
.pt-file-ext.is-doc { background: #E3ECFA; color: #2B59A8; }
.pt-file-ext.is-img { background: #FFF1DC; color: #9A5B00; }
.pt-file-ext.is-zip { background: #EFEAF7; color: #5B3FA0; }
.pt-file-ext.is-other { background: var(--color-surface); color: var(--color-slate); }
.pt-file-main { flex: 1; min-width: 0; }
.pt-file-name { font-size: 14.5px; font-weight: 600; color: var(--color-navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pt-file-size { margin-top: 2px; font-size: 12px; color: var(--color-text-tertiary); }
.pt-file-dl { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 16px; border-radius: 9px; background: var(--color-primary);
  color: var(--color-white); font-size: 13px; font-weight: 600; text-decoration: none; }
.pt-file-dl:hover { background: var(--color-primary-hover); color: var(--color-white); }
.pt-file-dl i { font-size: 16px; }
.pt-file.is-deleted .pt-file-name { font-size: 14px; font-weight: 500; color: var(--color-text-tertiary); text-decoration: line-through; }
.pt-ship-all-row { display: flex; justify-content: flex-end; margin-top: 10px; }
.pt-ship-all { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 600; color: var(--color-primary-active); text-decoration: none; }
.pt-ship-all:hover { text-decoration: underline; }
.pt-ship-all i { font-size: 15px; }
.pt-ship-sec { display: flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--color-slate); }
.pt-ship-quote { margin-top: 16px; padding: 2px 0 2px 16px; border-left: 3px solid var(--color-primary); }
.pt-ship-mail { font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 1.45; color: var(--color-navy); overflow-wrap: anywhere; }
.pt-ship-mail p { margin: 0; }
/* Бележката на пратка от фирмата - текст на портала, не HTML писмо. */
.pt-ship-mail.is-note { font-family: inherit; line-height: 1.55; }
.pt-ship-mail img { max-width: 100%; height: auto; }
.pt-ship-personal { margin-bottom: 4px; }
.pt-hello { margin: 0 0 22px; font-size: 22px; font-weight: 700; }
.pt-sec { margin: 0 0 10px; font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--color-slate); }
.pt-list { border: 1px solid var(--color-border); border-radius: 12px; background: var(--color-white); overflow: hidden; }
.pt-row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--color-border); }
.pt-row:last-child { border-bottom: 0; }
.pt-row-ic { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 9px; background: var(--color-surface); color: var(--color-slate); font-size: 17px; }
.pt-row-main { display: flex; flex-direction: column; min-width: 0; }
.pt-row-title { font-size: 14px; font-weight: 600; }
.pt-row-sub { font-size: 12.5px; color: var(--color-text-tertiary); }
.pt-soon { margin: 18px 0 0; color: var(--color-slate); }

@media (max-width: 575.98px) {
  .pt-top { padding: 0 16px; }
  .pt-main { padding: 24px 12px 48px; }
  .pt-card { padding: 24px 20px; }
  .pt-user { display: none; }
}

/* ══════════════════════════════════════════════════════════════
   „Сцената“ на страниците без вход (етап 5.1б, мокъп portal3a вариант А):
   тъмна глава с чипа на кантората; бяла карта, която влиза в главата;
   тих ред с ползите; долу тих ред.
   ══════════════════════════════════════════════════════════════ */
.pt-scene { background: var(--color-surface); overflow-x: hidden; }
.pt-top--dark { position: absolute; left: 0; right: 0; top: 0; z-index: 2; padding: 0 32px; background: transparent; border-bottom: 0; }
.pt-top--dark .pt-logo-text { color: #fff; }
.pt-top--dark .pt-logo-sub { color: rgba(255, 255, 255, .55); }
.pt-top--dark .pt-user { color: rgba(255, 255, 255, .75); }
.pt-top--dark .pt-link-btn { color: #fff; }
.pt-top--dark .pt-lang { gap: 2px; padding: 2px; border-color: rgba(255, 255, 255, .2); border-radius: 999px; background: transparent; }
.pt-top--dark .pt-lang-opt { padding: 2px 8px; border-radius: 999px; font-size: 11px; color: rgba(255, 255, 255, .6); }
.pt-top--dark .pt-lang-opt + .pt-lang-opt { border-left: 0; }
.pt-top--dark .pt-lang-opt.is-cur { background: rgba(255, 255, 255, .14); color: #fff; }
/* Лентата след вход (09.11.2026, мокъп topbar.html В1): тъмна като главата преди вход, без сияние. */
.pt-top--app { background: #1F2E3D; border-bottom: 0; }
.pt-top--app .pt-logo-text { color: #fff; }
.pt-top--app .pt-logo-sub { color: rgba(255, 255, 255, .55); }
.pt-top--app .pt-user { color: rgba(255, 255, 255, .85); font-size: 13px; font-weight: 600; }
.pt-top--app .pt-link-btn { color: #8FE6E0; }
.pt-top--app .pt-lang { gap: 2px; padding: 2px; border-color: rgba(255, 255, 255, .2); border-radius: 999px; background: transparent; }
.pt-top--app .pt-lang-opt { padding: 2px 8px; border-radius: 999px; font-size: 11px; color: rgba(255, 255, 255, .6); }
.pt-top--app .pt-lang-opt + .pt-lang-opt { border-left: 0; }
.pt-top--app .pt-lang-opt.is-cur { background: rgba(255, 255, 255, .14); color: #fff; }
/* Етап 5.3: кръгът с инициалите, чипът с фирмата и падащите менюта. */
.pt-top--app .pt-top-right { gap: 14px; }
.pt-dd { position: relative; }
/* Кръгът - както .topbar-user-btn / .topbar-avatar в DISA: зелен 32px с бели инициали в бутон с hover фон. */
.pt-top--app { height: 60px; padding-right: 20px; }
.pt-user-btn { display: flex; align-items: center; padding: 6px 10px; border: 0; border-radius: 8px; background: none; cursor: pointer; transition: background-color .15s; }
.pt-user-btn:hover, .pt-user-btn:focus-visible, .pt-user-btn[aria-expanded="true"] { background: rgba(255, 255, 255, .1); outline: none; }
.pt-avatar { width: 32px; height: 32px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border-radius: 50%;
  background: var(--color-primary); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .02em; }
.pt-top--app .pt-top-right { gap: 4px; }
/* Група Б4: фирмата е в левия панел (средата на лентата е празна). */
.pt-top--app { position: relative; }
.pt-firm-badge { flex: none; padding: 1px 7px; border-radius: 999px; background: rgba(41, 184, 176, .12); color: var(--color-primary-active); font-size: 11px; font-weight: 700; }
/* Началната: списъкът на избраната фирма. */
.pt-home { max-width: 760px; margin: 0 auto; }
.pt-home-title { margin: 0; font-size: 22px; font-weight: 700; color: var(--color-navy); }
.pt-home-count { margin-top: 4px; font-size: 13.5px; color: var(--color-text-tertiary); }
.pt-home-filters { display: flex; gap: 10px; margin-top: 16px; }
.pt-search { flex: 1; min-width: 0; position: relative; display: block; }
.pt-search i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font-size: 16px; color: var(--color-text-tertiary); }
.pt-search input { width: 100%; height: 38px; padding: 0 12px 0 36px; box-sizing: border-box; border: 1px solid var(--color-border-primary); border-radius: 10px; background: #fff; font: inherit; font-size: 13.5px; color: var(--color-navy); outline: none; }
.pt-search input:focus { border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(41, 184, 176, .16); }
.pt-home-group { display: flex; align-items: center; gap: 10px; margin: 22px 0 8px; font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--color-slate); }
.pt-home-group::after { content: ''; flex: 1; height: 1px; background: var(--color-border); }
.pt-home-card { background: #fff; border: 1px solid var(--color-border); border-radius: 14px; box-shadow: 0 2px 10px rgba(31, 46, 61, .05); overflow: hidden; }
.pt-hrow { display: flex; align-items: center; gap: 14px; padding: 12px 18px; border-bottom: 1px solid var(--color-border); color: inherit; text-decoration: none; }
.pt-hrow:last-child { border-bottom: 0; }
a.pt-hrow:hover { background: var(--color-surface); }
div.pt-hrow { cursor: default; }
.pt-hrow-tile { flex: none; width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: #E3ECFA; color: #2B59A8; font-size: 18px; }
.pt-hrow-tile.is-seen { background: var(--color-surface); color: var(--color-text-tertiary); }
.pt-hrow-tile.is-out { background: rgba(41, 184, 176, .12); color: var(--color-primary-active); }
.pt-hrow-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pt-hrow-title { font-size: 14px; font-weight: 600; color: var(--color-navy); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-hrow.is-new .pt-hrow-title { font-weight: 700; }
.pt-hrow-files { display: flex; gap: 10px; margin-top: 5px; overflow: hidden; white-space: nowrap; font-size: 12px; color: var(--color-slate); }
/* Група Г2б: пратка без файлове - откъс от текста на един ред (тихият стил на „Съобщение“). */
.pt-hrow-snip { display: block; margin-top: 5px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; color: var(--color-text-tertiary); }
.pt-hrow-file { display: inline-flex; align-items: center; gap: 4px; flex: none; }
.pt-hrow-file[hidden], .pt-hrow-more[hidden] { display: none; }
.pt-hrow-file i { font-size: 13px; color: var(--color-text-tertiary); }
.pt-hrow-more { flex: none; padding: 0 7px; border-radius: 999px; background: var(--color-surface); color: var(--color-slate); font-weight: 600; cursor: default; }
.pt-hrow-by { margin-top: 3px; font-size: 12px; color: var(--color-text-tertiary); }
.pt-hrow-right { flex: none; display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.pt-hrow-when { font-size: 12.5px; color: var(--color-text-tertiary); white-space: nowrap; }
.pt-hrow-dot { display: inline-block; width: 8px; height: 8px; margin-left: 8px; border-radius: 50%; background: var(--color-primary); vertical-align: middle; }
.pt-hrow-new { margin-top: 3px; font-size: 11px; font-weight: 700; color: var(--color-primary-active); }
.pt-home-more { margin-top: 14px; text-align: center; }
.pt-home-more a { font-size: 12.5px; font-weight: 600; color: var(--color-primary-active); text-decoration: none; }
.pt-home-more a:hover { text-decoration: underline; }
.pt-home-empty { margin-top: 18px; padding: 34px 20px; display: flex; flex-direction: column; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--color-border); border-radius: 14px; text-align: center; font-size: 13.5px; color: var(--color-text-tertiary); }
.pt-home-empty i { font-size: 28px; }
.pt-home-nores { margin: 22px 0 0; font-size: 13.5px; color: var(--color-text-tertiary); text-align: center; }
.pt-notice-text { margin: 0; }
/* Тема 6: бутонът „Изпрати документи“ на началната. */
.pt-home-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.pt-home-send { flex: none; height: 38px; gap: 6px; padding: 0 16px; border-radius: 10px; background: var(--color-primary); font-size: 13.5px; }
.pt-home-send:hover { background: var(--color-primary-hover); }
.pt-home-send i { font-size: 17px; }
/* Тема 6: страницата на пратка от фирмата - статусът. */
.pt-sent-status { display: flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 13px; color: var(--color-text-tertiary); }
.pt-sent-status.is-received { color: var(--color-primary-active); }
.pt-sent-status i { font-size: 16px; }
/* Тема 6: „Изпрати документи“. */
.pt-send-card { display: block; }
.pt-send-label { display: block; margin: 18px 0 6px; font-size: 13px; font-weight: 600; color: var(--color-navy); }
.pt-send-opt { font-weight: 500; color: var(--color-text-tertiary); }
.pt-send-input, .pt-send-note { width: 100%; box-sizing: border-box; }
.pt-send-note { height: auto; min-height: 76px; padding: 10px 12px; resize: vertical; line-height: 1.5; }
.pt-drop { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 22px 16px;
  border: 1.5px dashed var(--color-border-primary); border-radius: 12px; background: var(--color-surface); text-align: center; cursor: pointer;
  font-size: 13.5px; color: var(--color-slate); }
.pt-drop:hover, .pt-drop.is-over { border-color: var(--color-primary); background: rgba(41, 184, 176, .06); }
.pt-drop.is-disabled { pointer-events: none; opacity: .6; }
.pt-drop b { font-weight: 600; color: var(--color-primary-active); }
.pt-drop-input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.pt-drop-ic { font-size: 26px; color: var(--color-text-tertiary); }
.pt-drop .is-touch { display: none; }
@media (pointer: coarse) {
  .pt-drop .is-desk, .pt-send-hint2.is-desk { display: none; }
  .pt-drop .is-touch { display: inline; }
  .pt-drop i.is-touch { display: block; }
}
.pt-send-hint { margin-top: 6px; font-size: 12px; line-height: 1.5; color: var(--color-text-tertiary); }
.pt-send-error { margin-top: 8px; font-size: 12.5px; color: var(--color-danger); }
.pt-send-list { margin-top: 10px; border: 1px solid var(--color-border); border-radius: 12px; overflow: hidden; }
.pt-send-list:empty { display: none; }
.pt-send-file { padding: 10px 12px; }
.pt-send-x { flex: none; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 6px; background: none; color: var(--color-slate); cursor: pointer; }
.pt-send-x:hover { background: var(--color-surface); }
.pt-send-progress { margin-top: 16px; }
.pt-send-progress-text { font-size: 12.5px; color: var(--color-slate); }
.pt-send-bar { height: 6px; margin-top: 6px; border-radius: 999px; background: var(--color-surface); overflow: hidden; }
.pt-send-bar span { display: block; width: 0; height: 100%; background: var(--color-primary); transition: width .2s; }
.pt-send-foot { display: flex; align-items: center; gap: 10px; margin-top: 20px; }
.pt-send-sum { flex: 1; min-width: 0; font-size: 12.5px; color: var(--color-text-tertiary); }
.pt-send-cancel, .pt-send-submit { height: 38px; padding: 0 16px; border-radius: 10px; font-size: 13.5px; }
.pt-send-submit { gap: 6px; background: var(--color-primary); }
.pt-send-submit:hover { background: var(--color-primary-hover); }
.pt-send-submit:disabled { opacity: .45; cursor: default; }
.pt-send-cancel.is-disabled { pointer-events: none; opacity: .5; }
.pt-send-under { margin: 12px 0 0; text-align: center; font-size: 12px; color: var(--color-text-tertiary); }
.pt-notice-link { padding: 0; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.pt-notice-link:hover { text-decoration: underline; }
.pt-menu { position: absolute; top: calc(100% + 8px); right: 0; z-index: 20; width: 260px; padding: 8px; background: #fff; border: 1px solid var(--color-border);
  border-radius: 12px; box-shadow: 0 10px 30px rgba(31, 46, 61, .14); text-align: left; color: var(--color-navy); }
.pt-menu[hidden] { display: none; }
.pt-menu-who { display: block; padding: 12px 12px 10px; margin-bottom: 6px; border-bottom: 1px solid var(--color-border); border-radius: 8px 8px 0 0; text-decoration: none; }
.pt-menu-who:hover, .pt-menu-who:focus-visible { background: var(--color-surface); outline: none; }
/* Известие за нова фирма на началната. */
.pt-notice { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; padding: 10px 12px; border-radius: 10px; background: rgba(41, 184, 176, .10); font-size: 13px; color: var(--color-slate); }
.pt-notice > i { flex: none; font-size: 17px; color: var(--color-primary-active); }
.pt-notice-text { flex: 1; min-width: 0; }
.pt-notice-form { margin: 0; flex: none; }
.pt-notice-x { display: flex; align-items: center; justify-content: center; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 6px; background: none; color: var(--color-slate); cursor: pointer; }
.pt-notice-x:hover { background: rgba(31, 46, 61, .06); }
.pt-profile-links { display: flex; justify-content: center; gap: 8px; color: var(--color-text-tertiary); }
.pt-menu-name { font-size: 13.5px; font-weight: 600; color: var(--color-navy); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-menu-mail { margin-top: 2px; font-size: 12px; color: var(--color-text-tertiary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-menu-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; font-size: 13px; color: var(--color-slate); }
.pt-menu-lang { display: inline-flex; gap: 2px; padding: 2px; border: 1px solid var(--color-border); border-radius: 999px; }
.pt-menu-lang-opt { padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; color: var(--color-text-tertiary); text-decoration: none; }
.pt-menu-lang-opt.is-cur { background: var(--color-surface); color: var(--color-navy); }
.pt-menu-form { margin: 0; }
.pt-menu-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 12px; border: 0; border-radius: 8px; background: none;
  font: inherit; font-size: 13px; color: var(--color-navy); text-align: left; text-decoration: none; cursor: pointer; }
.pt-menu-item:hover, .pt-menu-item:focus-visible { background: var(--color-surface); outline: none; }
.pt-menu-item > i { font-size: 16px; color: var(--color-text-tertiary); }
.pt-menu-item-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-menu-item .pt-menu-check { color: var(--color-primary-active); }
.pt-menu-item.is-cur { font-weight: 600; }
.pt-menu-sep { height: 1px; margin: 6px 0; background: var(--color-border); }
.pt-menu-group { padding: 10px 12px 4px; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--color-text-tertiary); }
/* Flash под лентата (тих зелен ред). */
.pt-flash-wrap { max-width: 760px; margin: 16px auto 0; padding: 0 16px; }
.pt-flash { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 10px; background: rgba(41, 184, 176, .1); color: var(--color-primary-active); font-size: 13px; font-weight: 600; }
.pt-flash i { font-size: 16px; }
.pt-flash-wrap + .pt-main { padding-top: 24px; }
/* Смяна на парола: тясна карта. */
.pt-pwpage { max-width: 440px; margin: 0 auto; }
.pt-pwcard { padding: 26px 28px; background: #fff; border: 1px solid var(--color-border); border-radius: 14px; box-shadow: 0 2px 10px rgba(31, 46, 61, .05); }
.pt-pwcard-title { margin: 0 0 18px; font-size: 20px; font-weight: 700; color: var(--color-navy); }
.pt-pwcard .pt-below { margin-top: 14px; text-align: center; }

.pt-hero { position: relative; overflow: hidden; padding: 46px 16px 86px; background: #1F2E3D; color: #fff; text-align: center; }
.pt-hero::before {
  content: ''; position: absolute; left: 50%; top: -260px; width: 620px; height: 620px; margin-left: -310px; border-radius: 50%;
  background: radial-gradient(circle, rgba(41, 184, 176, .5), rgba(41, 184, 176, 0) 68%);
}
.pt-chip {
  position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 5px 14px 5px 6px; border-radius: 999px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); font-size: 12.5px; font-weight: 600; color: #fff;
}
.pt-chip-av { width: 24px; height: 24px; border-radius: 50%; background: #fff; color: #1F2E3D; font-size: 10px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.pt-hero-title { position: relative; margin: 18px 0 10px; font-size: 30px; font-weight: 800; line-height: 1.2; color: #fff; }
.pt-hero-text { position: relative; max-width: 520px; margin: 0 auto; font-size: 15px; line-height: 1.6; color: rgba(255, 255, 255, .75); text-wrap: pretty; }
.pt-hero-text:empty { display: none; }
/* Група В3в: срокът на изискването - тънка лява линия, етикетът „СРОК“ и датата; без цвят на състояние. */
.pt-due { display: inline-flex; flex-direction: column; align-items: flex-start; margin-top: 10px; padding: 2px 0 2px 10px; border-left: 3px solid var(--color-border); text-align: left; }
.pt-due-l { font-size: 10.5px; line-height: 14px; font-weight: 600; letter-spacing: .8px; text-transform: uppercase; color: var(--color-text-tertiary); }
.pt-due-v { margin-top: 1px; font-size: 14px; line-height: 20px; font-weight: 700; color: var(--color-navy); }
.pt-due-w { font-weight: 400; color: var(--color-slate); }
.pt-due--hero { position: relative; margin-top: 12px; border-left-color: rgba(255, 255, 255, .25); }
.pt-due--hero .pt-due-l { color: rgba(255, 255, 255, .55); }
.pt-due--hero .pt-due-v { color: #fff; }
.pt-due--hero .pt-due-w { color: rgba(255, 255, 255, .7); }

.pt-act {
  position: relative; width: 520px; max-width: calc(100% - 32px); margin: -52px auto 0; padding: 28px 32px 26px;
  background: #fff; border-radius: 16px; box-shadow: 0 14px 40px rgba(31, 46, 61, .14); text-align: center;
}
.pt-act .pt-form { text-align: left; }
.pt-btn-hero {
  width: 100%; height: 46px; gap: 8px; padding: 0 24px; border-radius: 10px; background: var(--color-primary);
  font-size: 14.5px; font-weight: 700; box-shadow: 0 8px 20px rgba(41, 184, 176, .35);
}
.pt-btn-hero:hover { background: var(--color-primary-hover); }
/* Неактивен, докато паролата не отговаря на изискванията (по-блед, без сянка). */
.pt-btn-hero:disabled, .pt-btn-hero:disabled:hover { background: var(--color-primary); opacity: .45; box-shadow: none; cursor: default; }
.pt-btn-hero i { font-size: 18px; }
.pt-form .pt-btn-hero { margin-top: 6px; }
.pt-quiet-note { margin-top: 14px; font-size: 12.5px; line-height: 1.6; color: var(--color-text-tertiary); text-wrap: pretty; }
.pt-mask { font-weight: 600; color: #1F2E3D; }
.pt-tile { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 14px; background: rgba(41, 184, 176, .12); color: var(--color-primary-active); }
.pt-tile i { font-size: 28px; }
.pt-tile.is-muted { background: var(--color-surface); color: var(--color-slate); }
.pt-card-text { margin: 14px 0 0; font-size: 14px; color: var(--color-slate); }
.pt-act .pt-alert { text-align: left; }
.pt-act .pt-quiet-form { margin-top: 12px; }
/* „Писмото е на път.“: валидността и „Изпрати отново“ на една линия; на тесен екран един под друг. */
.pt-sent-meta { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 4px 8px; margin: 12px 0 0; font-size: 12.5px; line-height: 1.6; color: var(--color-text-tertiary); }
.pt-sent-meta .pt-link-btn { font-size: 12.5px; }
.pt-sent-meta .pt-link-btn:disabled { color: var(--color-text-tertiary); font-weight: 500; cursor: default; text-decoration: none; }
p.pt-sent-meta { display: block; text-wrap: pretty; }

.pt-why { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px; margin: 34px 16px 0; font-size: 12.5px; color: var(--color-slate); }
.pt-why span { display: inline-flex; align-items: center; gap: 7px; }
.pt-why i { font-size: 16px; color: var(--color-primary-active); }
.pt-foot { margin: 28px 16px 32px; text-align: center; font-size: 12px; line-height: 1.7; color: var(--color-text-tertiary); text-wrap: pretty; }
/* „· Условия · Поверителност“ - тихи връзки в цвета на реда, подчертани при посочване. */
.pt-foot-sep { white-space: pre; }
.pt-foot-link { color: inherit; text-decoration: none; white-space: nowrap; }
.pt-foot-link:hover { text-decoration: underline; }
/* Изречението с условията под „Активирай и влез“. */
.pt-legal-note { margin: 2px 0 0; font-size: 12.5px; line-height: 1.6; color: var(--color-text-tertiary); text-align: center; text-wrap: pretty; }
.pt-legal-note a { color: var(--color-primary-active); text-decoration: none; }
.pt-legal-note a:hover { text-decoration: underline; }
/* „Условия за ползване“ и „Поверителност“: по-широката карта с текста. */
.pt-act.pt-act--wide { width: 720px; text-align: left; }
.pt-legal-doc { margin: 0 0 4px; font-size: 17px; font-weight: 800; line-height: 1.4; color: var(--color-navy); }
.pt-legal-h { margin: 22px 0 6px; font-size: 15px; font-weight: 700; line-height: 1.4; color: var(--color-navy); }
.pt-legal-p { margin: 0; font-size: 14.5px; line-height: 1.65; color: var(--color-slate); }

@media (max-width: 599.98px) {
  /* Лентата не лежи върху главата - иначе покрива чипа. */
  .pt-top--dark { position: relative; padding: 0 16px; background: #1F2E3D; }
  .pt-hero { padding: 32px 16px 72px; }
  .pt-hero-title { font-size: 24px; }
  .pt-hero-text { font-size: 14px; }
  /* Под 600px принудителните нови редове не действат - текстът тече като абзац (09.11.2026). */
  .pt-hero-text br, .pt-quiet-note br, .pt-foot br { display: none; }
  .pt-sent-meta { flex-direction: column; align-items: center; }
  .pt-menu { width: calc(100vw - 32px); max-width: 300px; }
  .pt-menu--profile { right: 0; }
  .pt-home-filters { flex-direction: column; }
  .pt-home-head { flex-direction: column; align-items: stretch; }
  .pt-home-send { width: 100%; justify-content: center; }
  .pt-send-firm { display: none; }
  .pt-send-foot { flex-wrap: wrap; }
  .pt-send-sum { flex-basis: 100%; }
  .pt-hrow { flex-wrap: wrap; }
  .pt-hrow-main { flex-basis: calc(100% - 52px); }
  .pt-hrow-right { flex-basis: 100%; align-items: flex-start; text-align: left; padding-left: 52px; flex-direction: row; gap: 8px; }
  .pt-pwcard { padding: 20px 16px; }
  /* Пратката: картата на цяла ширина; „Свали“ - само икона; „Свали всички“ под заглавието на секцията. */
  .pt-main:has(.pt-ship) { padding-left: 16px; padding-right: 16px; }
  .pt-ship-card { padding: 20px 16px; }
  /* Заглавието и датата една под друга; датата на един ред „5 ноември 2026, 14:48“. */
  .pt-ship-head { flex-direction: column; gap: 4px; }
  .pt-ship-head:has(.pt-ship-ic) { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; row-gap: 4px; }
  .pt-ship-head:has(.pt-ship-ic) .pt-ship-when { grid-column: 2; }
  .pt-ship-when { padding-top: 0; text-align: left; }
  .pt-ship-when b { display: inline; font-size: 12.5px; font-weight: 500; color: var(--color-text-tertiary); }
  .pt-ship-comma { display: inline; }
  .pt-file { gap: 12px; padding: 12px; }
  .pt-file-dl { width: 34px; padding: 0; justify-content: center; }
  .pt-file-dl span { display: none; }
  .pt-sent-dot { display: none; }
  /* Знакът по-малък, на един ред с превключвателя за език. */
  .pt-logo-icon { width: 26px; height: 26px; }
  .pt-logo-text { font-size: 16px; }
  .pt-logo-sub { font-size: 9px; }
  .pt-act, .pt-act.pt-act--wide { width: auto; max-width: none; margin: -52px 16px 0; padding: 24px 20px 22px; }
  /* Ползите - една под друга, подравнени вляво с иконите, в колона с ширината на картата. */
  .pt-why { flex-direction: column; align-items: flex-start; gap: 10px; margin: 28px 16px 0; padding: 0 20px; }
}

/* ── Тема 7, етап 2а: месечното изискване без вход (мокъп anon3) ── */
.pt-top--dark .pt-ro-login { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; text-decoration: none; }
.pt-top--dark .pt-ro-login i { font-size: 15px; }
.pt-ro-firm { font-weight: 700; color: #fff; }
.pt-act--wide .pt-ro { text-align: left; }
.pt-ro-msg { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border: 1px solid var(--color-border); border-radius: 12px;
  background: #fff; font: inherit; text-align: left; cursor: pointer; }
.pt-ro-msg:hover { border-color: #C9D5DF; }
.pt-ro-msg.is-open { border-radius: 12px 12px 0 0; }
.pt-ro-msg-ic { flex: none; font-size: 17px; color: var(--color-text-tertiary); }
.pt-ro-msg b { flex: none; font-size: 13.5px; font-weight: 600; color: var(--color-navy); }
.pt-ro-msg-snip { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; color: var(--color-text-tertiary); }
.pt-ro-msg-ch { flex: none; font-size: 16px; color: var(--color-text-tertiary); transition: transform .15s; }
.pt-ro-msg.is-open .pt-ro-msg-ch { transform: rotate(180deg); }
.pt-ro-msg-body { padding: 0 16px 16px; border: 1px solid var(--color-border); border-top: 0; border-radius: 0 0 12px 12px; background: #fff; }
.pt-ro-msg-body[hidden] { display: none; }
.pt-ro-msg-body .pt-ship-quote { margin-top: 14px; }
.pt-ro-form { display: block; margin-top: 22px; }
.pt-ro-already { margin: 0 0 14px; font-size: 13px; color: var(--color-slate); }
.pt-ro-drop { margin-top: 12px; padding: 26px 16px; }
.pt-ro-drop-title { font-size: 15px; font-weight: 700; color: var(--color-navy); }
.pt-ro-foot { justify-content: flex-end; margin-top: 18px; }
/* Група В2: „Документи от кантората“ между контекста и зоната за качване. */
.pt-ro-office-files { margin-top: 18px; }
.pt-ro-office-label { margin: 0 0 8px; font-size: 10.5px; line-height: 14px; font-weight: 600; letter-spacing: .8px; text-transform: uppercase; color: var(--color-text-tertiary); }
/* Група В3г: страницата без вход - контекстът от два реда в една рамка („Съобщение“ и „Срок“). */
.pt-ro-ctx { border: 1px solid var(--color-border); border-radius: 12px; background: #fff; overflow: hidden; }
.pt-ro-ctx .pt-ro-msg { border: 0; border-radius: 0; }
.pt-ro-ctx .pt-ro-msg.is-open { border-radius: 0; }
.pt-ro-ctx .pt-ro-msg-body { border: 0; border-top: 1px solid var(--color-border); border-radius: 0; }
.pt-ro-ctxrow { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-top: 1px solid var(--color-border); }
.pt-ro-ctxrow b { flex: none; font-size: 13.5px; font-weight: 600; color: var(--color-navy); }
.pt-ro-ctxval { flex: 1; min-width: 0; font-size: 13px; color: var(--color-slate); }
.pt-ro-drop.is-compact { margin-top: 18px; padding: 22px 16px; }
.pt-drop-hint { margin-top: 2px; text-align: center; }
.pt-ro-note-link { display: inline-flex; align-items: center; gap: 4px; margin-top: 12px; padding: 0; border: 0; background: none; font-size: 13px; font-weight: 600; color: var(--color-primary-active); cursor: pointer; }
.pt-ro-note-link:hover { text-decoration: underline; }
.pt-ro-note-link i { font-size: 14px; }
.pt-ro-note-link[hidden], .pt-ro-note-wrap[hidden] { display: none; }
.pt-ro-submit { height: 44px; gap: 8px; padding: 0 22px; border-radius: 10px; background: var(--color-primary); font-size: 14.5px; box-shadow: 0 8px 20px rgba(41, 184, 176, .3); }
.pt-ro-submit:hover { background: var(--color-primary-hover); }
.pt-ro-submit:disabled { opacity: .45; box-shadow: none; cursor: default; }
.pt-ro-submit i { font-size: 18px; }
.pt-ro-done { display: flex; align-items: center; gap: 10px; margin-top: 18px; padding: 14px 16px; border-radius: 12px; background: rgba(41, 184, 176, .10);
  color: var(--color-primary-active); font-size: 14px; font-weight: 600; text-decoration: none; }
.pt-ro-done i { flex: none; font-size: 22px; }
.pt-ro-done small { display: block; margin-top: 2px; font-size: 12.5px; font-weight: 500; color: var(--color-slate); }
.pt-ro-files { margin-top: 14px; }
.pt-ro-group { margin: 18px 0 0; }
.pt-ro-group + .pt-ro-files { margin-top: 8px; }
.pt-ro-more { margin: 16px 0 0; font-size: 13px; color: var(--color-slate); }
.pt-ro-more a, .pt-ro-acc a { font-weight: 600; color: var(--color-primary-active); text-decoration: none; }
.pt-ro-more a:hover, .pt-ro-acc a:hover { text-decoration: underline; }
.pt-ro-acc { width: 720px; max-width: calc(100% - 32px); margin: 18px auto 0; text-align: center; font-size: 13px; line-height: 1.6; color: var(--color-slate); text-wrap: pretty; }
.pt-ro-acc i { margin-right: 6px; font-size: 16px; vertical-align: -3px; color: var(--color-text-tertiary); }
.pt-send-for-req { margin-top: 4px; font-size: 13px; color: var(--color-slate); }
.pt-sent-for-req { margin: 14px 0 0; }
.pt-send-for-req a { color: var(--color-primary-active); font-weight: 600; text-decoration: none; }
.pt-send-for-req a:hover { text-decoration: underline; }

/* Тема 7, етап 2в: редът на писмото на изискването - състоянието за фирмата (на свой ред). */
.pt-hrow-req { font-size: 12px; font-weight: 600; color: #A86F00; white-space: nowrap; }
.pt-hrow-req.is-got { color: var(--color-primary-active); }

/* Тема 7, етап 2г: изискването за влезлия - формата в картата; групите водят към /sent/<uuid>. */
.pt-rs { margin-top: 18px; text-align: left; }
.pt-ro-group.is-link { text-decoration: none; color: var(--color-slate); }
.pt-ro-group.is-link:hover { color: var(--color-primary-active); }
.pt-ro-form-wrap[hidden] { display: none; }
.pt-ro-add-btn { font-size: 13px; }

/* Тема 7, етап 2е: табовете „Документи · Изисквания“, броячът на чакащите, пилът „по изискване“. */
.pt-tabs { display: flex; gap: 22px; margin-top: 18px; border-bottom: 1px solid var(--color-border); }
.pt-tab { display: inline-flex; align-items: center; gap: 7px; margin-bottom: -1px; padding: 8px 0 10px; border-bottom: 2px solid transparent;
  font-size: 13.5px; font-weight: 600; color: var(--color-slate); text-decoration: none; }
.pt-tab:hover { color: var(--color-navy); }
.pt-tab.is-cur { border-bottom-color: var(--color-primary-active); color: var(--color-primary-active); }
.pt-tab-badge { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--color-primary); color: #fff;
  font-size: 10.5px; font-weight: 700; line-height: 18px; text-align: center; }
.pt-tabs + .pt-home-card, .pt-tabs + .pt-home-empty, .pt-tabs + .pt-home-nores { margin-top: 16px; }
.pt-tabs + .pt-home-filters { margin-top: 12px; }
.pt-tabs + .pt-home-group { margin-top: 18px; }
.pt-hrow-title-row { display: flex; align-items: center; gap: 8px; min-width: 0; }
.pt-hrow-title-row .pt-hrow-title { flex: 0 1 auto; min-width: 0; }
.pt-req-pill { flex: none; padding: 1px 7px; border: 1px solid var(--color-primary); border-radius: 999px; font-size: 10.5px; font-weight: 600; line-height: 1.4;
  color: var(--color-primary-active); white-space: nowrap; }
.pt-hrow--req .pt-hrow-by { margin-top: 3px; }

/* Група Б1: профил без фирма; „Изтриване на профила“ и потвърждението. */
.pt-nofirm-title { font-weight: 600; color: var(--color-navy); }
.pt-nofirm-text { margin-top: 4px; }
.pt-danger-zone { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--color-border-primary); }
.pt-danger-title { margin: 0 0 4px; font-size: 13.5px; font-weight: 600; color: var(--color-navy); }
.pt-danger-text { margin: 0 0 12px; font-size: 12.5px; line-height: 1.5; color: var(--color-text-tertiary); }
.pt-btn-danger { display: inline-flex; align-items: center; justify-content: center; height: 36px; padding: 0 14px; border: 1px solid #E5484D; border-radius: 10px;
  background: #fff; font: inherit; font-size: 13px; font-weight: 600; color: #C2262B; cursor: pointer; }
.pt-btn-danger:hover { background: #FDECEC; }
.pt-modal-actions .pt-btn-danger { background: #E5484D; color: #fff; }
.pt-modal-actions .pt-btn-danger:hover { background: #C2262B; border-color: #C2262B; }
.pt-modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(20, 33, 48, .45); }
.pt-modal[hidden] { display: none; }
.pt-modal-card { width: 100%; max-width: 400px; padding: 22px 22px 18px; border-radius: 14px; background: #fff; box-shadow: 0 12px 40px rgba(20, 33, 48, .25); }
.pt-modal-title { margin: 0 0 6px; font-size: 16px; font-weight: 700; color: var(--color-navy); }
.pt-modal-text { margin: 0 0 14px; font-size: 13px; line-height: 1.5; color: var(--color-text-tertiary); }
.pt-modal-actions { display: flex; justify-content: flex-end; align-items: center; gap: 14px; margin-top: 6px; }

/* Група Б3б (вариант А): „Хора с достъп“ - един списък в рамка, аватари с инициали, състоянието с точка. */
.pt-people-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.pt-people-headtext { min-width: 0; }
.pt-people-firm { font-weight: 600; color: var(--color-slate); }
.pt-people-ask:disabled { opacity: .55; cursor: default; }
.pt-people-form { margin-top: 18px; padding: 16px 18px 12px; border: 1px solid var(--color-border); border-radius: 12px; background: var(--color-surface); }
.pt-people-form[hidden] { display: none; }
.pt-people-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 6px; }
.pt-people-sent { margin: 16px 0 0; font-size: 13px; color: var(--color-primary-active); }
.pt-people-list { list-style: none; margin: 18px 0 0; padding: 0; border: 1px solid var(--color-border); border-radius: 12px; overflow: hidden; }
.pt-people-row { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-top: 1px solid var(--color-border); }
.pt-people-row:first-child { border-top: 0; }
.pt-people-row.is-waiting { background: #FFFBF5; }
.pt-people-av { flex: none; width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; }
.pt-people-av.is-tone-1 { background: #E3F6F5; color: var(--color-primary-active); }
.pt-people-av.is-tone-2 { background: #EAE6FB; color: #5B46B8; }
.pt-people-av.is-tone-3 { background: #FDEBD9; color: #B35A12; }
.pt-people-av.is-tone-4 { background: #E2EEFB; color: #1F5FA3; }
.pt-people-av.is-tone-5 { background: #FBE4EA; color: #B0314F; }
.pt-people-av.is-wait { background: #FDEBD9; color: #B35A12; font-size: 16px; }
.pt-people-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pt-people-name { display: flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 600; color: var(--color-navy); overflow-wrap: anywhere; }
.pt-people-mail { margin-top: 1px; font-size: 12.5px; color: var(--color-text-tertiary); overflow-wrap: anywhere; }
.pt-people-row.is-waiting .pt-people-mail { color: #B9916A; }
.pt-people-me { flex: none; padding: 1px 6px; border-radius: 6px; background: var(--color-surface); font-size: 11px; font-weight: 600; color: var(--color-text-tertiary); }
.pt-people-state { flex: none; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--color-text-tertiary); white-space: nowrap; }
.pt-people-state i { width: 7px; height: 7px; border-radius: 50%; background: #C8D8E4; display: inline-block; }
.pt-people-state.is-on { color: var(--color-primary-active); }
.pt-people-state.is-on i { background: var(--color-primary); }
.pt-people-state.is-wait { color: #B35A12; }
.pt-people-state.is-wait i { background: #F0A24B; }
.pt-people-withdraw-form { flex: none; margin: 0; }
.pt-people-withdraw { font-size: 12.5px; font-weight: 600; }
.pt-people-note { display: flex; align-items: center; gap: 6px; margin: 12px 0 0; font-size: 12px; color: var(--color-text-tertiary); }
.pt-people-note i { font-size: 14px; }
@media (max-width: 600px) {
  .pt-people-head { flex-direction: column; align-items: stretch; gap: 12px; }
  .pt-people-ask { width: 100%; justify-content: center; }
  .pt-people-row { flex-wrap: wrap; align-items: flex-start; row-gap: 4px; }
  .pt-people-main { flex-basis: calc(100% - 52px - 80px); }
  .pt-people-state { order: 3; flex-basis: 100%; padding-left: 52px; }
  .pt-people-withdraw-form { order: 2; margin-left: auto; }
}

/* ══════════════════════════════════════════════════════════════
   Група Б4: рамката за влезлия - лентата и левият панел (мокъп panel2.html; поведението - като
   .app-sidebar / .sidebar-nav-link / .sidebar-overlay в DISA). Под 768px панелът е чекмедже 280px.
   ══════════════════════════════════════════════════════════════ */
.pt-has-side .pt-top--app { position: sticky; top: 0; z-index: 40; }
.pt-burger { display: none; align-items: center; justify-content: center; width: 38px; height: 38px; margin: 0 6px 0 -8px; padding: 0;
  border: 0; border-radius: 8px; background: none; color: #fff; font-size: 22px; cursor: pointer; }
.pt-burger:hover, .pt-burger:focus-visible { background: rgba(255, 255, 255, .1); outline: none; }
.pt-user-btn { gap: 8px; }
.pt-user-first { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; font-weight: 600; color: #fff; }
.pt-user-chev { font-size: 15px; color: rgba(255, 255, 255, .6); }

.pt-side { position: fixed; top: 60px; bottom: 0; left: 0; z-index: 30; width: 244px; display: flex; flex-direction: column;
  background: #fff; border-right: 1px solid var(--color-border); overflow-y: auto; }
.pt-has-side .pt-main, .pt-has-side .pt-flash-wrap { margin-left: 244px; }
.pt-side-overlay { position: fixed; inset: 0; z-index: 35; background: rgba(28, 43, 58, .45); }
.pt-side-overlay[hidden] { display: none; }

/* Блокът на фирмата: знак 36px, име и „кантора …“; при две и повече фирми - бутон със стрелка. */
.pt-firm { display: flex; align-items: center; gap: 10px; margin: 12px 10px 4px; padding: 8px; border: 0; border-radius: 12px;
  background: var(--color-surface); font: inherit; color: inherit; text-align: left; flex: none; width: calc(100% - 20px); }
.pt-firm.is-btn { cursor: pointer; transition: background-color .15s; }
.pt-firm.is-btn:hover, .pt-firm.is-btn:focus-visible { background: #EAF0F5; outline: none; }
.pt-firm-mark { position: relative; flex: none; width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px; font-size: 12px; font-weight: 800; letter-spacing: .02em; }
.pt-firm-mark.is-sm { width: 30px; height: 30px; border-radius: 8px; font-size: 11px; }
.pt-firm-mark.is-tone-1 { background: #E3F6F5; color: var(--color-primary-active); }
.pt-firm-mark.is-tone-2 { background: #EAE6FB; color: #5B46B8; }
.pt-firm-mark.is-tone-3 { background: #FDEBD9; color: #B35A12; }
.pt-firm-mark.is-tone-4 { background: #E2EEFB; color: #1F5FA3; }
.pt-firm-mark.is-tone-5 { background: #FBE4EA; color: #B0314F; }
.pt-firm-dot { position: absolute; top: -3px; right: -3px; width: 9px; height: 9px; border-radius: 50%; background: var(--color-primary); border: 2px solid #fff; box-sizing: content-box; }
.pt-firm-text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.pt-firm-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; font-weight: 700; color: var(--color-navy); }
.pt-firm-office { margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11.5px; color: var(--color-text-tertiary); }
.pt-firm-chev { flex: none; font-size: 16px; color: var(--color-text-tertiary); transition: transform .18s ease; }
.pt-firm[aria-expanded="true"] .pt-firm-chev { transform: rotate(180deg); }

/* Менюто на фирмите: разгъва се надолу в панела (grid-rows 0fr → 1fr) и избутва навигацията. */
.pt-firm-menu { display: grid; grid-template-rows: 0fr; flex: none; transition: grid-template-rows .18s ease; }
.pt-firm-menu.is-open { grid-template-rows: 1fr; }
.pt-firm-menu-in { min-height: 0; overflow: hidden; }
.pt-firm-menu-box { margin: 0 10px 6px; padding: 6px; border: 1px solid var(--color-border); border-radius: 12px; max-height: 50vh; overflow-y: auto; visibility: hidden; transition: visibility 0s .18s; }
.pt-firm-menu.is-open .pt-firm-menu-box { visibility: visible; transition: visibility 0s; }
.pt-firm-group { padding: 8px 8px 4px; font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--color-text-tertiary);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-firm-opt { display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 8px; border: 0; border-radius: 10px; background: none;
  font: inherit; font-size: 13.5px; font-weight: 500; color: var(--color-navy); text-align: left; cursor: pointer; }
.pt-firm-opt:hover, .pt-firm-opt:focus-visible { background: var(--color-surface); outline: none; }
.pt-firm-opt.is-cur { background: var(--color-surface); }
.pt-firm-opt-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-firm-check { flex: none; font-size: 16px; color: var(--color-primary); }

/* Навигацията (като .sidebar-nav-link в DISA). */
.pt-nav { display: flex; flex-direction: column; gap: 2px; padding: 6px 10px; }
.pt-nav-link { display: flex; align-items: center; gap: 11px; padding: 10px 11px; border-radius: 10px; font-size: 13.5px; font-weight: 500;
  color: var(--color-slate); text-decoration: none; transition: background-color .15s, color .15s; }
.pt-nav-link > i { flex: none; font-size: 19px; color: var(--color-text-tertiary); }
.pt-nav-link:hover { background: var(--color-surface); color: var(--color-navy); }
.pt-nav-link.is-cur { background: rgba(41, 184, 176, .10); color: var(--color-primary-active); font-weight: 600; }
.pt-nav-link.is-cur > i { color: var(--color-primary-active); }
.pt-nav-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-nav-link .pt-tab-badge { min-width: 20px; height: 20px; line-height: 20px; font-size: 11px; }
.pt-side-foot { margin-top: auto; padding: 14px 20px; border-top: 1px solid #EEF2F6; font-size: 12.5px; color: var(--color-text-tertiary); }
.pt-side-foot a { color: inherit; text-decoration: none; }
.pt-side-foot a:hover { text-decoration: underline; }

/* Редът с контекста - само на телефон (панелът е скрит); бележката под пратката - под съдържанието. */
.pt-ctx-line { display: none; }
.pt-main-foot { margin-top: 28px; text-align: center; font-size: 12px; line-height: 1.7; color: var(--color-text-tertiary); }
.pt-main-foot:empty { display: none; }

@media (max-width: 767.98px) {
  .pt-has-side .pt-main, .pt-has-side .pt-flash-wrap { margin-left: 0; }
  .pt-burger { display: inline-flex; }
  .pt-top--app.has-side { padding-left: 16px; padding-right: 12px; }
  .pt-top--app.has-side .pt-logo { position: absolute; left: 50%; transform: translateX(-50%); }
  .pt-user-first, .pt-user-chev { display: none; }
  .pt-side { top: 60px; z-index: 38; width: 280px; transform: translateX(-100%); transition: transform .2s ease; box-shadow: none; }
  .pt-side.is-open { transform: none; box-shadow: 0 0 30px rgba(28, 43, 58, .2); }
  .pt-side-overlay { top: 60px; z-index: 36; }
  body.pt-drawer-open { overflow: hidden; }
  .pt-ctx-line { display: block; margin: 0 auto 10px; max-width: 760px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    font-size: 12.5px; color: var(--color-text-tertiary); }
  .pt-ctx-line b { font-weight: 600; color: var(--color-slate); }
}
@media (prefers-reduced-motion: reduce) {
  .pt-firm-menu, .pt-firm-chev, .pt-firm-menu-box, .pt-side { transition: none !important; }
}

/* ── Група П: писмата след първото и съобщението при „чака отново“ ── */
.pt-ro-fu { align-items: flex-start; }
.pt-ro-fu-lines { display: flex; flex-direction: column; gap: 2px; font-size: 13px; color: var(--color-slate); }
.pt-ro-again { margin: 12px 0 4px; padding: 12px 14px; border: 1px solid rgba(232, 168, 32, .45); border-radius: 10px; background: rgba(232, 168, 32, .07); }
.pt-ro-again-title { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-size: 13.5px; font-weight: 600; color: var(--color-navy); }
.pt-ro-again-title i { font-size: 16px; color: #A87508; }
.pt-ro-again-text { font-size: 13.5px; }
.pt-hrow-fu { display: block; color: var(--color-text-tertiary, #8EA3B5); }

.pt-ro-again-files { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 8px; font-size: 13px; }
.pt-ro-again-files a, .pt-ro-again-files span { display: inline-flex; align-items: center; gap: 4px; color: var(--color-navy); }
.pt-ro-again-files i { color: var(--color-slate); }

/* ── Група Р: страницата на изискването като разговор ── */
.pt-th-page { max-width: 760px; margin: 0 auto; }   /* същата колона като списъка „Изисквания“ (.pt-home) */
.pt-th-crumb { font-size: 13px; color: var(--color-text-tertiary); margin-bottom: 8px; }
.pt-th-crumb a { color: var(--color-text-tertiary); text-decoration: none; }
.pt-th-crumb a:hover { color: var(--color-primary-active); }
.pt-th-head { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 14px; }
.pt-th-head-main { flex: 1; min-width: 0; }
.pt-th-title { margin: 0; font-size: 22px; font-weight: 700; color: var(--color-navy); line-height: 1.3; }
.pt-th-sub { margin-top: 3px; font-size: 13px; color: var(--color-slate); }
.pt-th-pill { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
  background: var(--color-surface); color: var(--color-slate); }
.pt-th-pill-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pt-th-pill.is-waiting { background: rgba(41, 184, 176, .12); color: var(--color-primary-active); }
.pt-th-pill.is-again { background: rgba(232, 168, 32, .16); color: var(--pt-th-amber-ink); }
.pt-th-pill.is-received { background: rgba(76, 175, 122, .14); color: var(--pt-th-green-ink); }
.pt-th-pill.is-late { background: var(--color-surface); color: var(--color-slate); }
.pt-th-pill.is-dark { margin-top: 12px; }
.pt-th-card { padding: 18px 20px 16px; border: 1px solid var(--color-border); border-radius: 14px; background: var(--color-white); box-shadow: 0 1px 4px var(--color-shadow); }
.pt-th { display: flex; flex-direction: column; gap: 10px; }
.pt-th-day { align-self: center; margin: 6px 0 2px; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; color: var(--color-text-tertiary); }
.pt-th-msg { display: flex; align-items: flex-end; gap: 8px; max-width: 86%; }
.pt-th-msg.is-office { align-self: flex-start; }
.pt-th-msg.is-firm { align-self: flex-end; flex-direction: row-reverse; }
.pt-th-av { flex: none; width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: var(--color-navy); color: var(--color-white); font-size: 11px; font-weight: 700; }
.pt-th-bubble { min-width: 0; padding: 10px 14px; border-radius: 14px; background: var(--color-surface); color: var(--color-navy); font-size: 14px; line-height: 1.5; }
.pt-th-msg.is-office .pt-th-bubble { border-bottom-left-radius: 4px; }
.pt-th-msg.is-again .pt-th-bubble { background: var(--pt-th-amber-bg); border: 1px solid rgba(232, 168, 32, .35); }
.pt-th-msg.is-firm .pt-th-bubble { background: rgba(41, 184, 176, .10); border-bottom-right-radius: 4px; }
.pt-th-who { font-size: 12px; color: var(--color-text-tertiary); margin-bottom: 4px; }
.pt-th-subj { font-weight: 700; margin-bottom: 4px; overflow-wrap: anywhere; }
.pt-th-text { overflow-wrap: anywhere; }
.pt-th-to-more { padding: 0; border: 0; background: none; font: inherit; color: inherit; text-decoration: underline dotted; text-underline-offset: 2px; cursor: pointer; }
.pt-th-to-more:hover { color: var(--color-primary-active); }
.pt-th-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.pt-th-due { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border: 1px solid var(--color-border); border-radius: 999px; background: var(--color-white);
  font-size: 12px; color: var(--color-slate); }
.pt-th-files { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.pt-th-file { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 3px 9px 3px 4px; border: 1px solid var(--color-border); border-radius: 8px;
  background: var(--color-white); font-size: 12.5px; color: var(--color-navy); text-decoration: none; overflow-wrap: anywhere; }
a.pt-th-file:hover { border-color: var(--color-primary); }
.pt-th-file-dl { width: 0; overflow: hidden; opacity: 0; font-size: 14px; color: var(--color-text-tertiary); transition: opacity .15s, color .15s, width .15s; }
a.pt-th-file:hover .pt-th-file-dl, a.pt-th-file:focus-visible .pt-th-file-dl { width: 14px; opacity: 1; color: var(--color-primary-active); }
@media (hover: none) { .pt-th-file-dl { width: 14px; opacity: 1; } }
.pt-th-file .pt-file-ext { width: auto; min-width: 30px; height: 20px; padding: 0 4px; border-radius: 5px; font-size: 9.5px; }
.pt-th-note { overflow-wrap: anywhere; }
.pt-th-got { margin-top: 6px; font-size: 12px; color: var(--color-text-tertiary); }
.pt-th-sys { align-self: flex-start; text-align: left; max-width: 100%; }
.pt-th-sys-row { display: flex; align-items: center; gap: 8px; }
.pt-th-av-slot { flex: none; width: 26px; display: inline-flex; justify-content: center; }
.pt-th-av.is-sm { width: 20px; height: 20px; font-size: 9.5px; }
.pt-th-av.is-firm { background: rgba(41, 184, 176, .16); color: var(--color-primary-active); font-size: 10.5px; }
.pt-th-av.is-anon { background: var(--color-surface); border: 1px solid var(--color-border); color: var(--color-text-tertiary); }
.pt-th-av.is-anon i { font-size: 15px; }
.pt-th-av.is-blank { visibility: hidden; }
.pt-th-sys-line { display: inline-flex; align-items: center; gap: 4px; padding: 3px 12px; border: 1px solid var(--color-border); border-radius: 999px; background: var(--color-white);
  font-size: 12px; color: var(--color-text-tertiary); }
button.pt-th-sys-line { cursor: pointer; }
.pt-th-msg.is-sys { margin-top: 8px; margin-left: 34px; text-align: left; max-width: 100%; }
.pt-th-composer { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--color-border); }
.pt-th-composer-hint { margin-bottom: 8px; font-size: 13px; color: var(--color-slate); }
.pt-th-drop { padding: 14px; text-align: center; }
.pt-th-reveal { max-height: 80px; opacity: 1; overflow: hidden; transition: max-height .18s ease, opacity .18s ease, visibility 0s; }
.pt-th-reveal.is-closed { max-height: 0; opacity: 0; visibility: hidden; transition: max-height .18s ease, opacity .18s ease, visibility 0s .18s; }
@media (prefers-reduced-motion: reduce) { .pt-th-reveal, .pt-th-reveal.is-closed { transition: none; } }
.pt-th-send-row { display: flex; gap: 8px; margin-top: 8px; }
.pt-th-note-input { flex: 1; min-width: 0; }
.pt-th-submit { flex: none; }
.pt-th-toast { position: fixed; z-index: 100; left: 50%; bottom: 22px; transform: translateX(-50%); padding: 10px 16px; border-radius: 10px;
  background: var(--color-navy); color: var(--color-white); font-size: 13px; box-shadow: 0 10px 30px rgba(28, 43, 58, .25); }
.pt-th-toast[hidden] { display: none; }
.pt-th-page.is-open { max-width: none; }
@media (max-width: 600px) {
  .pt-th-msg { max-width: 92%; }
  .pt-th-head { flex-direction: column; gap: 8px; }
  .pt-th-composer { position: sticky; bottom: 0; background: var(--color-white); padding-bottom: 8px; }
}
.pt-th-msg[hidden] { display: none; }
