*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --teal-dark: #004b4b;
  --teal: #006d6d;
  --teal-soft: #e8f4f1;
  --beige: #f6da8b;
  --grey-light: #f3f3f3;
  --grey-border: #cccccc;
  --text-dark: #222222;
  --danger: #c0392b;
  --radius-lg: 16px;
  --shadow-soft: 0 8px 20px rgba(0, 0, 0, 0.15);
  --header-height: 70px;
  --footer-height: 40px;
  --max-width: 1200px;
  --font-main: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, sans-serif;
}

html,
body {
  height: 100%;
}

body {
  font-family: var(--font-main);
  background:
    radial-gradient(circle at top left, rgba(246, 218, 139, 0.16), transparent 24%),
    linear-gradient(180deg, #edf5f2 0%, #f7fbfa 38%, #ffffff 100%);
  color: var(--text-dark);
}

[hidden] {
  display: none !important;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* HEADER / FOOTER */

.header {
  height: var(--header-height);
  background-color: var(--teal-dark);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 40px;
  height:70px;
   
}

.header-inner {
  width: 100%;
  max-width: var(--max-width);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-block {
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo-img {
  height: 48px;      
  width: auto;
  display: block;
  align-items: center;
}

.logo-text-top {
  font-size: 14px;
  letter-spacing: 0.05em;
}

.logo-text-bottom {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.user-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.btn-logout,
.btn-header-action {
  border: none;
  border-radius: 999px;
  padding: 8px 16px;
  background-color: #ffffff;
  color: var(--teal-dark);
  font-weight: 600;
  cursor: pointer;
}

.btn-header-action {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.34);
}

.btn-logout:hover,
.btn-header-action:hover {
  filter: brightness(0.95);
}

.account-menu {
  position: relative;
}

.account-menu__toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
}

.account-menu__toggle strong {
  font-size: 16px;
  line-height: 1;
}

.account-menu__panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 50;
  min-width: 190px;
  padding: 8px;
  border-radius: 14px;
  border: 1px solid rgba(0, 75, 75, 0.16);
  background: #ffffff;
  box-shadow: 0 18px 34px rgba(0, 35, 35, 0.20);
}

.account-menu__panel button {
  display: block;
  width: 100%;
  min-height: 38px;
  padding: 9px 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #133232;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.account-menu__panel button:hover {
  background: rgba(0, 75, 75, 0.08);
}

.global-member-search {
  position: relative;
  width: min(280px, 32vw);
}

.global-member-search__label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.global-member-search input {
  width: 100%;
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-weight: 800;
  outline: none;
}

.global-member-search input::placeholder {
  color: rgba(255, 255, 255, 0.76);
}

.global-member-search input:focus {
  background: rgba(255, 255, 255, 0.24);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.18);
}

.global-member-search__results {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 60;
  width: min(360px, 88vw);
  padding: 8px;
  border: 1px solid rgba(0, 75, 75, 0.16);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 20px 38px rgba(0, 35, 35, 0.22);
}

.global-member-search__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  padding: 10px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #133232;
  text-align: left;
  cursor: pointer;
}

.global-member-search__item:hover {
  background: rgba(0, 95, 95, 0.08);
}

.global-member-search__item strong,
.global-member-search__item small {
  display: block;
}

.global-member-search__item small,
.global-member-search__item em,
.global-member-search__empty {
  color: rgba(19, 50, 50, 0.66);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.global-member-search__empty {
  padding: 12px;
}

.profile-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(320px, 1fr);
  gap: 16px;
}

.profile-wide {
  grid-column: 1 / -1;
}

.profile-info {
  display: grid;
  gap: 8px;
}

.profile-info__row {
  display: grid;
  grid-template-columns: minmax(130px, 0.55fr) minmax(0, 1fr);
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(239, 247, 244, 0.82);
  border: 1px solid rgba(0, 75, 75, 0.08);
}

.profile-info__row span {
  color: rgba(19, 50, 50, 0.66);
  font-size: 12px;
  font-weight: 850;
}

.profile-info__row strong {
  color: #133232;
  font-size: 14px;
  word-break: break-word;
}

.profile-rights {
  display: grid;
  gap: 14px;
}

.profile-rights__section {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(0, 75, 75, 0.10);
  background: rgba(255, 255, 255, 0.78);
}

.profile-rights__section strong {
  color: #133232;
}

.footer {
  margin-top: auto;
  min-height: 48px;
  padding: 10px 16px;
  background: linear-gradient(180deg, #003c3c, #004b4b);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  text-align: center;
}

/* GLAVNA VSEBINA */

.main {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  background-color: #ffffff;
}

.main-inner {
  max-width: 1200px;
  margin: 0;
  width: 100%;
}

/* široka stran (koledar, seznami ipd.) */
.main-inner.wide {
  max-width: 100%;
  padding-left: 18px;
  padding-right: 18px;
}
.main-inner.full-width{
  max-width:100%;
  width:100%;
  padding-left:0;
  padding-right:0;
  margin: 0;
  padding:0;
}

/* LOGIN */

.login-page {
  background-color: #ffffff;
}

.login-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-card {
  background:
    radial-gradient(circle at top right, rgba(246, 218, 139, 0.2), transparent 34%),
    linear-gradient(180deg, rgba(0, 75, 75, 0.98), rgba(0, 56, 56, 0.96));
  width: min(380px, calc(100vw - 28px));
  padding: 36px 28px;
  border-radius: 26px;
  box-shadow: 0 24px 50px rgba(0, 35, 35, 0.26);
  text-align: center;
}

.login-card h1 {
  color: #ffffff;
  margin-bottom: 24px;
  letter-spacing: 0.06em;
}

.login-field {
  margin-bottom: 16px;
}

.login-field label {
  display: block;
  text-align: left;
  color: #ffffff;
  font-size: 13px;
  margin-bottom: 4px;
}

.login-field input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 999px;
  border: none;
  background-color: rgba(255,255,255,0.9);
  font-size: 14px;
}

.btn {
  display: inline-block;
  border-radius: 999px;
  padding: 10px 20px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
}

.btn-primary {
  background-color: #4c6363;
  color: #ffffff;
}

.btn-primary:hover {
  filter: brightness(1.1);
}

.error-msg {
  color: var(--beige);
  font-size: 13px;
  margin-bottom: 8px;
}

/* DASHBOARD */

.main-dashboard {
  background:
    radial-gradient(circle at top left, rgba(246, 218, 139, 0.2), transparent 28%),
    linear-gradient(180deg, #edf5f2 0%, #f8fbfa 35%, #ffffff 100%);
}

.dashboard-shell {
  padding: 28px 24px 36px;
}

.dashboard-hero {
  display: grid;
  grid-template-columns: minmax(320px, 1.35fr) minmax(300px, 1fr);
  gap: 18px;
  align-items: stretch;
  margin-bottom: 24px;
}

.dashboard-hero-copy,
.dashboard-stats,
.dashboard-section {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(0, 75, 75, 0.12);
  box-shadow: 0 18px 44px rgba(0, 55, 55, 0.08);
  backdrop-filter: blur(8px);
}

.dashboard-hero-copy {
  border-radius: 28px;
  padding: 28px;
}

.dashboard-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(0, 75, 75, 0.08);
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dashboard-hero h1 {
  max-width: 13ch;
  margin: 0 0 12px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 0.98;
  color: #133232;
}

.dashboard-lead {
  max-width: 60ch;
  font-size: 15px;
  line-height: 1.65;
  color: rgba(19, 50, 50, 0.82);
}

.dashboard-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  border-radius: 28px;
  padding: 18px;
}

.dashboard-stat-card {
  display: grid;
  gap: 8px;
  padding: 18px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(0, 75, 75, 0.95), rgba(0, 56, 56, 0.92));
  color: #ffffff;
}

.dashboard-stat-card--link {
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.dashboard-stat-card--link:hover,
.dashboard-stat-card--link:focus-visible {
  transform: translateY(-2px);
  filter: brightness(1.04);
  box-shadow: 0 16px 28px rgba(0, 50, 50, 0.22);
}

.dashboard-stat-label {
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.82;
}

.dashboard-stat-card strong {
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  line-height: 1;
}

.dashboard-section {
  border-radius: 30px;
  padding: 24px;
}

.dashboard-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.dashboard-section-head h2 {
  margin: 0 0 4px;
  font-size: 1.5rem;
  color: #133232;
}

.dashboard-section-head p {
  margin: 0;
  color: rgba(19, 50, 50, 0.72);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.dashboard-card {
  position: relative;
  display: grid;
  gap: 14px;
  min-height: 210px;
  padding: 22px 20px;
  border-radius: 24px;
  text-decoration: none;
  color: #133232;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(239, 247, 244, 0.96)),
    linear-gradient(135deg, rgba(246, 218, 139, 0.35), rgba(0, 109, 109, 0.08));
  border: 1px solid rgba(0, 75, 75, 0.12);
  box-shadow: 0 14px 34px rgba(0, 55, 55, 0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.dashboard-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 38px rgba(0, 55, 55, 0.14);
  border-color: rgba(0, 75, 75, 0.24);
}

.dashboard-card.is-hidden {
  display: none;
}

.dashboard-icon {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, rgba(0, 75, 75, 0.96), rgba(0, 109, 109, 0.88));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
  overflow: hidden;
}

.dashboard-icon img {
  width: 62%;
  height: auto;
}

.dashboard-card[data-module="opazanja-zivali"] .dashboard-icon {
  width: 70px;
  height: 70px;
}

.dashboard-card[data-module="opazanja-zivali"] .dashboard-icon img {
  width: 82%;
}

.dashboard-card[data-module="letna-rekapitulacija"] .dashboard-icon {
  width: 70px;
  height: 70px;
}

.dashboard-card[data-module="letna-rekapitulacija"] .dashboard-icon img {
  width: 86%;
}

.dashboard-card-title {
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.2;
}

.dashboard-card-subtitle {
  font-size: 13px;
  line-height: 1.5;
  color: rgba(19, 50, 50, 0.72);
}

@media (max-width: 960px) {
  .dashboard-shell {
    padding: 18px 12px 28px;
  }

  .dashboard-hero {
    grid-template-columns: 1fr;
  }

  .dashboard-hero-copy,
  .dashboard-stats,
  .dashboard-section {
    border-radius: 22px;
  }
}

@media (max-width: 640px) {
  .dashboard-stats {
    grid-template-columns: 1fr;
  }

  .dashboard-card {
    min-height: auto;
  }
}

/* TAB MENI NAD TABELAMI */

.tab-menu {
  display: flex;
  gap: 32px;
  margin-bottom: 24px;
}

.tab-menu a {
  text-decoration: none;
  font-weight: 600;
  color: #444;
}

.tab-menu a.active {
  color: var(--teal-dark);
  border-bottom: 2px solid var(--teal-dark);
  padding-bottom: 4px;
}

/* TABELA ČLANOV */

.table-wrapper {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(244, 250, 248, 0.98));
  border-radius: 18px;
  border: 1px solid rgba(0, 75, 75, 0.12);
  box-shadow: 0 16px 38px rgba(0, 55, 55, 0.08);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.table th,
.table td {
  border: 1px solid var(--grey-border);
  padding: 6px 8px;
  white-space: nowrap;
}

.table th {
  background: linear-gradient(180deg, #0a5a5a, #074747);
  color: #ffffff;
}

.table tr:nth-child(even) {
  background-color: #f4f9f7;
}

.table-actions {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.member-tools {
  align-items: center;
  justify-content: flex-end;
  min-width: 184px;
  white-space: nowrap;
}

.member-tool-btn {
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid rgba(0, 75, 75, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #164141;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.member-tool-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0, 55, 55, 0.12);
}

.member-tool-btn--view {
  background: linear-gradient(180deg, #ffffff, #edf7f4);
}

.member-tool-btn--edit {
  color: #ffffff;
  border-color: rgba(0, 75, 75, 0.24);
  background: linear-gradient(135deg, #0b4b4b, #006d6d);
}

.member-tool-btn--delete {
  color: #8a3329;
  border-color: rgba(192, 57, 43, 0.20);
  background: rgba(192, 57, 43, 0.08);
}

.member-return-highlight {
  outline: 3px solid rgba(34, 153, 84, 0.45);
  outline-offset: -3px;
  background: rgba(34, 153, 84, 0.08);
  transition: background 0.4s ease, outline-color 0.4s ease;
}

.member-status-pill {
  display: inline-flex;
  justify-content: center;
  min-width: 42px;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(0, 75, 75, 0.08);
  color: #164141;
  font-weight: 900;
}

.member-name-cell {
  font-weight: 850;
  color: #133232;
}

body[data-page="seznam"] #members-table tbody tr {
  transition: background 0.14s ease;
}

body[data-page="seznam"] #members-table tbody tr:nth-child(even) {
  background: rgba(239, 247, 244, 0.42);
}

body[data-page="seznam"] #members-table tbody tr:hover {
  background: rgba(246, 218, 139, 0.20);
}

body[data-page="seznam"] #members-table td {
  vertical-align: middle;
}

.action-icon {
  cursor: pointer;
  font-size: 16px;
}

/* FORME (VPIS / UREJANJE) */

.form-layout {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

body[data-page="vpis-clana"] .main-inner.full-width {
  max-width: 1420px;
  margin: 0 auto;
}

body[data-page="vpis-clana"] .vpis-hero {
  margin: 16px 18px 14px;
  padding: 24px 26px;
  border-radius: 28px;
  border: 1px solid rgba(0, 75, 75, 0.14);
  background:
    radial-gradient(circle at top left, rgba(246, 218, 139, 0.32), transparent 34%),
    radial-gradient(circle at top right, rgba(0, 109, 109, 0.18), transparent 36%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(235, 247, 242, 0.98));
  box-shadow: 0 18px 42px rgba(0, 55, 55, 0.09);
}

body[data-page="vpis-clana"] .vpis-hero h2 {
  color: #133232;
  font-size: clamp(1.55rem, 2.5vw, 2.2rem);
}

body[data-page="vpis-clana"] .page-subtitle {
  margin-top: 7px;
  color: rgba(19, 50, 50, 0.72);
  font-size: 14px;
  line-height: 1.55;
  opacity: 1;
}

body[data-page="vpis-clana"] .pill {
  border: 0;
  color: #ffffff;
  background: linear-gradient(135deg, #0b4b4b, #006d6d);
  box-shadow: 0 12px 26px rgba(0, 55, 55, 0.16);
}

body[data-page="vpis-clana"] .vpis-layout {
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 18px;
  padding: 0 18px 28px;
}

body[data-page="vpis-clana"] .card {
  border: 1px solid rgba(0, 75, 75, 0.13);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(243, 250, 247, 0.98)),
    radial-gradient(circle at top left, rgba(246, 218, 139, 0.18), transparent 34%);
  box-shadow: 0 18px 42px rgba(0, 55, 55, 0.08);
  padding: 22px;
}

body[data-page="vpis-clana"] .vpis-avatar-card {
  position: sticky;
  top: 92px;
}

body[data-page="vpis-clana"] .card-title {
  margin-bottom: 16px;
  color: #133232;
  font-size: 1.08rem;
  letter-spacing: 0.01em;
}

body[data-page="vpis-clana"] .avatar-preview {
  width: 210px;
  height: 210px;
  border: 0;
  background:
    radial-gradient(circle at 35% 30%, rgba(246, 218, 139, 0.28), transparent 38%),
    linear-gradient(145deg, #0b4b4b, #006d6d);
  box-shadow: 0 18px 36px rgba(0, 55, 55, 0.18);
}

body[data-page="vpis-clana"] .avatar-preview img {
  background: #ffffff;
}

body[data-page="vpis-clana"] .avatar-drop {
  border: 1.5px dashed rgba(0, 75, 75, 0.28);
  border-radius: 22px;
  background: rgba(239, 247, 244, 0.82);
  color: #133232;
  font-weight: 800;
  line-height: 1.45;
}

body[data-page="vpis-clana"] .form-grid {
  gap: 16px;
}

body[data-page="vpis-clana"] .form-group {
  display: grid;
  gap: 7px;
}

body[data-page="vpis-clana"] .form-group label {
  color: #163838;
  font-size: 13px;
  font-weight: 900;
}

body[data-page="vpis-clana"] .form-group input,
body[data-page="vpis-clana"] .form-group select,
body[data-page="vpis-clana"] .form-group textarea {
  min-height: 46px;
  border: 1px solid rgba(0, 75, 75, 0.16);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.70);
}

body[data-page="vpis-clana"] .form-group input:focus,
body[data-page="vpis-clana"] .form-group select:focus,
body[data-page="vpis-clana"] .form-group textarea:focus {
  border-color: rgba(0, 109, 109, 0.55);
  box-shadow: 0 0 0 4px rgba(0, 109, 109, 0.10);
}

body[data-page="vpis-clana"] .help,
body[data-page="vpis-clana"] .muted {
  color: rgba(19, 50, 50, 0.62);
  opacity: 1;
}

body[data-page="vpis-clana"] .divider {
  margin: 4px 0;
  background: linear-gradient(90deg, transparent, rgba(0, 75, 75, 0.18), transparent);
}

body[data-page="vpis-clana"] .vpis-checkbox-field {
  display: block;
}

body[data-page="vpis-clana"] .vpis-checkbox-field label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: auto;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(0, 75, 75, 0.07);
}

body[data-page="vpis-clana"] .vpis-checkbox-field input[type="checkbox"] {
  width: 16px;
  height: 16px;
  min-height: 0;
  margin: 0;
  box-shadow: none;
}

body[data-page="vpis-clana"] .inline-actions {
  position: sticky;
  bottom: 12px;
  padding: 12px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 28px rgba(0, 55, 55, 0.10);
}

.avatar-section {
  text-align: center;
}

.avatar-preview {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--teal-dark);
  margin-bottom: 12px;
}

.avatar-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-input label {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background-color: var(--teal-dark);
  color: #ffffff;
  cursor: pointer;
  font-size: 13px;
}

.avatar-input input {
  display: none;
}

.form-fields {
  flex: 1;
}

.form-group {
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  font-size: 13px;
  margin-bottom: 4px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid var(--grey-border);
  font-size: 14px;
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-actions {
  margin-top: 20px;
}

.btn-secondary {
  background-color: var(--grey-light);
  color: var(--text-dark);
}

.btn-secondary:hover {
  filter: brightness(0.97);
}

/* KOLEDAR / DOGODKI */

.events-list {
  margin-top: 24px;
}

.event-item {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--grey-border);
  margin-bottom: 8px;
}

/* ZGODOVINA DEJANJ */

.history-list {
  margin-top: 16px;
}

.history-item {
  padding: 8px 10px;
  border-bottom: 1px solid var(--grey-border);
  font-size: 14px;
}

/* TISKANJE */

.print-info {
  margin-bottom: 16px;
  font-size: 14px;
}

.print-center-layout {
  display: grid;
  grid-template-columns: minmax(320px, 560px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.print-center-layout .card:first-child {
  position: sticky;
  top: 12px;
}

.print-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.print-summary-grid article {
  padding: 10px 12px;
  border: 1px solid rgba(28, 74, 60, 0.12);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(237, 247, 241, 0.95), rgba(255, 255, 255, 0.96));
  box-shadow: 0 8px 20px rgba(20, 40, 32, 0.06);
}

.print-summary-grid span {
  display: block;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.print-summary-grid strong {
  display: block;
  margin-top: 4px;
  color: var(--green-dark);
  font-size: 22px;
  line-height: 1;
}

body[data-page="tiskanje"] .check-grid {
  max-height: 190px;
  overflow: auto;
  padding-right: 4px;
}

body[data-page="tiskanje"] .table-wrapper {
  border-radius: 18px;
}

.officials-shell {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.4fr);
  gap: 16px;
  align-items: start;
}

.officials-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.officials-toolbar .form-group {
  margin-bottom: 0;
  min-width: min(320px, 100%);
}

.officials-section-row td {
  background: linear-gradient(90deg, var(--green-dark), var(--green));
  color: #fff;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.edit-admin-panel {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(28, 74, 60, 0.14);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(241, 248, 244, 0.95), rgba(255, 255, 255, 0.96));
}

.edit-admin-panel > div:first-child,
.edit-admin-panel .small-hint:last-child {
  grid-column: 1 / -1;
}

.compact-check {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid rgba(28, 74, 60, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  font-weight: 800;
}

.compact-check input {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  accent-color: var(--green);
}

/* PRIZNANJA */

body[data-page="priznanja"] .page-stack {
  gap: 18px;
}

.awards-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px;
  border: 1px solid rgba(128, 88, 21, 0.18);
  border-radius: 26px;
  background:
    radial-gradient(circle at 92% 15%, rgba(231, 184, 72, 0.34), transparent 32%),
    linear-gradient(135deg, rgba(25, 80, 62, 0.96), rgba(33, 113, 77, 0.88) 48%, rgba(242, 214, 141, 0.88));
  color: #fff;
  box-shadow: 0 22px 55px rgba(24, 62, 47, 0.18);
}

.awards-hero h2 {
  color: #fff;
  margin-bottom: 6px;
}

.awards-hero .small-hint {
  color: rgba(255, 255, 255, 0.86);
  max-width: 760px;
}

.awards-kicker {
  display: inline-flex;
  margin-bottom: 8px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.awards-hero-mark {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  flex: 0 0 auto;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.16);
  color: #ffe4a3;
  font-size: 54px;
  line-height: 1;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.awards-entry-card,
.awards-panel {
  border: 1px solid rgba(29, 72, 55, 0.12);
  border-radius: 24px;
  box-shadow: 0 18px 46px rgba(21, 45, 35, 0.09);
}

.awards-top-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.awards-entry-card {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(249, 244, 230, 0.96)),
    radial-gradient(circle at 0 0, rgba(224, 171, 69, 0.18), transparent 36%);
}

.awards-panel--gold {
  background:
    linear-gradient(180deg, rgba(255, 251, 241, 0.98), rgba(255, 255, 255, 0.98)),
    radial-gradient(circle at 100% 0, rgba(224, 171, 69, 0.16), transparent 30%);
}

.awards-panel--plaque {
  background:
    linear-gradient(180deg, rgba(244, 249, 247, 0.98), rgba(255, 255, 255, 0.98)),
    radial-gradient(circle at 100% 0, rgba(72, 135, 116, 0.16), transparent 30%);
}

.awards-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.awards-icon-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(27, 96, 69, 0.1);
  color: var(--green-dark);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.awards-form-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.3fr) minmax(220px, 1fr) minmax(170px, 0.7fr) auto;
  gap: 14px;
  align-items: end;
}

.awards-actions {
  margin-top: 0;
  justify-content: flex-end;
}

.awards-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid rgba(27, 96, 69, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  font-weight: 900;
}

.awards-toggle input,
.awards-row-check {
  width: 16px;
  height: 16px;
  accent-color: var(--green);
}

.awards-table-wrap {
  border: 1px solid rgba(27, 96, 69, 0.1);
  border-radius: 18px;
  background: #fff;
}

body[data-page="priznanja"] .table thead th {
  background: linear-gradient(180deg, rgba(245, 239, 221, 0.96), rgba(235, 228, 205, 0.96));
  color: #294437;
  font-size: 12px;
  letter-spacing: 0.04em;
}

body[data-page="priznanja"] .table tbody tr:hover td {
  background: rgba(245, 239, 221, 0.42);
}

.award-badge {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  margin: 2px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(90, 70, 24, 0.16);
  background: linear-gradient(135deg, #fff6da, #f1d58a);
  color: #4d3a12;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
}

.award-badge--red {
  background: linear-gradient(135deg, #fff8e7, #e5bd58);
}

.award-badge--plaketa {
  background: linear-gradient(135deg, #ecf8f3, #a7d4c2);
  color: #164f3a;
}

.award-badge--znak {
  background: linear-gradient(135deg, #edf7ff, #b9d9f0);
  color: #184c70;
}

.award-badge--compact {
  padding: 5px 8px;
  font-size: 11px;
}

.award-note {
  display: inline-flex;
  padding: 5px 8px;
  border-radius: 10px;
  background: rgba(27, 96, 69, 0.07);
  color: rgba(20, 55, 42, 0.78);
  font-size: 12px;
  font-weight: 800;
}

.awards-empty-cell {
  padding: 0 !important;
}

.awards-empty {
  display: grid;
  place-items: center;
  gap: 6px;
  min-height: 96px;
  padding: 18px;
  text-align: center;
  color: rgba(28, 52, 42, 0.74);
  background:
    radial-gradient(circle at 50% 0, rgba(224, 171, 69, 0.12), transparent 42%),
    rgba(250, 250, 247, 0.9);
}

.awards-empty strong {
  color: var(--green-dark);
  font-size: 16px;
}

.awards-empty span {
  font-size: 13px;
}
/* DELOVNE URE - donut */
.workhours-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px;
  border: 1px solid rgba(19, 78, 57, 0.14);
  border-radius: 26px;
  background:
    radial-gradient(circle at 92% 18%, rgba(123, 183, 140, 0.28), transparent 34%),
    linear-gradient(135deg, rgba(14, 72, 58, 0.96), rgba(42, 121, 79, 0.9) 55%, rgba(203, 230, 190, 0.9));
  color: #fff;
  box-shadow: 0 22px 55px rgba(24, 62, 47, 0.16);
}

.workhours-hero h2 {
  color: #fff;
  margin-bottom: 6px;
}

.workhours-hero .small-hint {
  color: rgba(255, 255, 255, 0.86);
}

.workhours-kicker {
  display: inline-flex;
  margin-bottom: 8px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.workhours-hero-badge {
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  flex: 0 0 auto;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
  text-align: center;
}

.workhours-hero-badge strong {
  font-size: 46px;
  line-height: 0.95;
}

.workhours-hero-badge span {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.workhours-dashboard {
  display: grid;
  gap: 16px;
}

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

.workhours-stat-card {
  min-height: 116px;
  padding: 16px;
  border: 1px solid rgba(28, 74, 60, 0.12);
  border-radius: 22px;
  background:
    radial-gradient(circle at 100% 0, rgba(72, 158, 103, 0.12), transparent 34%),
    linear-gradient(145deg, #fff, #f4faf6);
  box-shadow: 0 16px 38px rgba(23, 54, 42, 0.08);
}

.workhours-stat-card span {
  display: block;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.workhours-stat-card strong {
  display: block;
  margin-top: 10px;
  color: var(--green-dark);
  font-size: clamp(1.45rem, 3vw, 2.2rem);
  line-height: 1;
}

.workhours-stat-card small {
  display: block;
  margin-top: 8px;
  color: rgba(27, 55, 42, 0.68);
  font-weight: 700;
}

.workhours-chart-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) repeat(2, minmax(260px, 1fr));
  gap: 14px;
}

.workhours-chart-card {
  padding: 18px;
  border: 1px solid rgba(28, 74, 60, 0.12);
  border-radius: 24px;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.98), rgba(244, 250, 247, 0.98));
  box-shadow: 0 18px 44px rgba(21, 45, 35, 0.08);
}

.workhours-chart-card--total {
  display: grid;
  align-items: center;
  justify-items: center;
  text-align: center;
}

.workhours-chart-card--total p {
  margin: 6px 0 0;
  color: rgba(27, 55, 42, 0.72);
  font-size: 13px;
}

.workhours-donut {
  width: 154px;
  height: 154px;
  margin: 10px auto;
  box-shadow: inset 0 0 0 1px rgba(28, 74, 60, 0.1), 0 14px 32px rgba(21, 45, 35, 0.1);
}

.workhours-chart-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.workhours-chart-head > strong {
  color: var(--green-dark);
  font-size: 2rem;
  line-height: 1;
}

.workhours-bars {
  display: grid;
  gap: 14px;
}

.workhours-bar-label {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
  color: rgba(27, 55, 42, 0.82);
  font-size: 13px;
  font-weight: 800;
}

.workhours-bar-label strong {
  color: var(--green-dark);
}

.workhours-bar-track {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(28, 74, 60, 0.1);
}

.workhours-bar-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2f9b68, #8ecf70);
}

.workhours-tools-card {
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(241, 248, 244, 0.98));
}

.workhours-tools {
  min-width: min(420px, 100%);
}

.workhours-list-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  padding: 4px 2px 0;
}

.workhours-list-heading h3 {
  margin: 0 0 4px;
  color: var(--green-dark);
}

.workhours-list-heading--youth {
  margin-top: 18px;
}

.pripravniki-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.pripravniki-summary-grid article {
  padding: 14px;
  border: 1px solid rgba(28, 74, 60, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.86);
}

.pripravniki-summary-grid span,
.pripravniki-summary-grid small {
  display: block;
  color: rgba(19, 50, 50, 0.68);
  font-weight: 800;
}

.pripravniki-summary-grid strong {
  display: block;
  margin: 6px 0;
  color: var(--green-dark);
  font-size: 2rem;
}

.pripravniki-section {
  display: grid;
  gap: 10px;
}

.pripravniki-section--suggest {
  margin-top: 18px;
}

.pripravniki-section__head h3 {
  margin: 0 0 4px;
  color: var(--green-dark);
}

.donut {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(#2ecc71 0%, #e0e0e0 0);
  margin: 12px 0;
}
.donut span {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 22px;
}

/* ČLANARINA - znesek + picker */
.fee-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px;
  border: 1px solid rgba(22, 84, 62, 0.14);
  border-radius: 26px;
  background:
    radial-gradient(circle at 92% 18%, rgba(77, 184, 121, 0.24), transparent 34%),
    linear-gradient(135deg, rgba(12, 66, 55, 0.98), rgba(38, 125, 76, 0.92) 58%, rgba(185, 221, 173, 0.92));
  color: #fff;
  box-shadow: 0 22px 55px rgba(24, 62, 47, 0.16);
}

.fee-hero h2 {
  color: #fff;
  margin-bottom: 6px;
}

.fee-hero .small-hint {
  color: rgba(255, 255, 255, 0.86);
}

.fee-kicker {
  display: inline-flex;
  margin-bottom: 8px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.fee-hero-badge {
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  flex: 0 0 auto;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
  text-align: center;
}

.fee-hero-badge strong {
  font-size: 54px;
  line-height: 0.9;
}

.fee-hero-badge span {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.fee-dashboard {
  display: grid;
  gap: 16px;
}

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

.fee-stat-card {
  min-height: 116px;
  padding: 16px;
  border: 1px solid rgba(28, 74, 60, 0.12);
  border-radius: 22px;
  background:
    radial-gradient(circle at 100% 0, rgba(72, 158, 103, 0.12), transparent 34%),
    linear-gradient(145deg, #fff, #f5fbf6);
  box-shadow: 0 16px 38px rgba(23, 54, 42, 0.08);
}

.fee-stat-card span {
  display: block;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fee-stat-card strong {
  display: block;
  margin-top: 10px;
  color: var(--green-dark);
  font-size: clamp(1.45rem, 3vw, 2.15rem);
  line-height: 1;
}

.fee-stat-card small {
  display: block;
  margin-top: 8px;
  color: rgba(27, 55, 42, 0.68);
  font-weight: 700;
}

.fee-chart-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) repeat(2, minmax(260px, 1fr));
  gap: 14px;
}

.fee-chart-card {
  padding: 18px;
  border: 1px solid rgba(28, 74, 60, 0.12);
  border-radius: 24px;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.98), rgba(244, 250, 247, 0.98));
  box-shadow: 0 18px 44px rgba(21, 45, 35, 0.08);
}

.fee-chart-card--donut {
  display: grid;
  place-items: center;
  text-align: center;
}

.fee-donut {
  display: grid;
  place-items: center;
  width: 154px;
  height: 154px;
  margin-top: 12px;
  border-radius: 50%;
  background: conic-gradient(#2ecc71 0%, #e9eef0 0);
  box-shadow: inset 0 0 0 1px rgba(28, 74, 60, 0.1), 0 14px 32px rgba(21, 45, 35, 0.1);
}

.fee-donut span {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: #fff;
  color: var(--green-dark);
  font-size: 28px;
  font-weight: 900;
}

.fee-bars {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.fee-bar-label {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
  color: rgba(27, 55, 42, 0.82);
  font-size: 13px;
  font-weight: 800;
}

.fee-bar-label strong {
  color: var(--green-dark);
}

.fee-bar-track {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(28, 74, 60, 0.1);
}

.fee-bar-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2f9b68, #8ecf70);
}

.fee-tools-card {
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(241, 248, 244, 0.98));
}

.fee-tools {
  min-width: min(430px, 100%);
}

.fee-inline-stats {
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(28, 74, 60, 0.07);
  font-weight: 800;
}

.fee-box {
  display: inline-block;
  min-width: 90px;
  text-align: center;
  padding: 8px 10px;
  border: 2px solid #ccc;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 700;
}
.fee-box.red { border-color: #e74c3c; }
.fee-box.green { border-color: #2ecc71; }
.fee-box.yellow {
  border-color: #f1c40f;
  background: #fff8d8;
  color: #6b4e00;
}

/* LETNE KARTE IN ČUVAJI */

.licenses-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px;
  border: 1px solid rgba(22, 84, 62, 0.14);
  border-radius: 26px;
  background:
    radial-gradient(circle at 92% 18%, rgba(94, 165, 204, 0.25), transparent 34%),
    linear-gradient(135deg, rgba(13, 61, 77, 0.98), rgba(31, 116, 91, 0.92) 58%, rgba(190, 226, 210, 0.92));
  color: #fff;
  box-shadow: 0 22px 55px rgba(24, 62, 47, 0.16);
}

.licenses-hero h2 {
  color: #fff;
  margin-bottom: 6px;
}

.licenses-hero .small-hint {
  color: rgba(255, 255, 255, 0.86);
}

.licenses-kicker {
  display: inline-flex;
  margin-bottom: 8px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.licenses-hero-badge {
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  flex: 0 0 auto;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
  text-align: center;
}

.licenses-hero-badge strong {
  font-size: 46px;
  line-height: 0.95;
}

.licenses-hero-badge span {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

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

.licenses-stat-card {
  min-height: 112px;
  padding: 16px;
  border: 1px solid rgba(28, 74, 60, 0.12);
  border-radius: 22px;
  background:
    radial-gradient(circle at 100% 0, rgba(79, 150, 190, 0.13), transparent 34%),
    linear-gradient(145deg, #fff, #f3faf9);
  box-shadow: 0 16px 38px rgba(23, 54, 42, 0.08);
}

.licenses-stat-card span {
  display: block;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.licenses-stat-card strong {
  display: block;
  margin-top: 10px;
  color: var(--green-dark);
  font-size: clamp(1.45rem, 3vw, 2.15rem);
  line-height: 1;
}

.licenses-stat-card small {
  display: block;
  margin-top: 8px;
  color: rgba(27, 55, 42, 0.68);
  font-weight: 700;
}

.license-type-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(28, 74, 60, 0.14);
  background: rgba(28, 118, 78, 0.1);
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 900;
}

.license-type-badge--youth {
  background: rgba(52, 152, 219, 0.14);
  color: #1f5f8b;
}

.license-type-badge--training {
  background: rgba(230, 126, 34, 0.15);
  color: #8a4b13;
}

.license-type-badge--honorary {
  background: rgba(241, 196, 15, 0.18);
  color: #6b4e00;
}

/* STATISTIKA */

.statistics-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px;
  border: 1px solid rgba(22, 84, 62, 0.14);
  border-radius: 26px;
  background:
    radial-gradient(circle at 88% 14%, rgba(92, 167, 219, 0.24), transparent 34%),
    linear-gradient(135deg, rgba(13, 48, 75, 0.98), rgba(31, 116, 91, 0.92) 58%, rgba(208, 228, 239, 0.92));
  color: #fff;
  box-shadow: 0 22px 55px rgba(24, 62, 47, 0.16);
}

.statistics-hero h2 {
  color: #fff;
  margin-bottom: 6px;
}

.statistics-hero .small-hint {
  color: rgba(255, 255, 255, 0.86);
}

.statistics-kicker {
  display: inline-flex;
  margin-bottom: 8px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.statistics-hero-badge {
  display: grid;
  place-items: center;
  width: 118px;
  height: 118px;
  flex: 0 0 auto;
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
  text-align: center;
}

.statistics-hero-badge strong {
  font-size: 34px;
  line-height: 0.95;
}

.statistics-hero-badge span {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.statistics-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(244, 250, 247, 0.98));
}

.statistics-toolbar .form-group {
  margin-bottom: 0;
  min-width: min(320px, 100%);
}

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

.statistics-kpi-card,
.statistics-mini-card,
.statistics-compare-item {
  padding: 16px;
  border: 1px solid rgba(28, 74, 60, 0.12);
  border-radius: 22px;
  background:
    radial-gradient(circle at 100% 0, rgba(76, 158, 190, 0.12), transparent 34%),
    linear-gradient(145deg, #fff, #f5fbfa);
  box-shadow: 0 16px 38px rgba(23, 54, 42, 0.08);
}

.statistics-kpi-card span,
.statistics-mini-card span,
.statistics-compare-item span {
  display: block;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.statistics-kpi-card strong,
.statistics-mini-card strong,
.statistics-compare-item strong {
  display: block;
  margin-top: 10px;
  color: var(--green-dark);
  font-size: clamp(1.35rem, 3vw, 2.1rem);
  line-height: 1;
}

.statistics-kpi-card small,
.statistics-compare-item small {
  display: block;
  margin-top: 8px;
  color: rgba(27, 55, 42, 0.68);
  font-weight: 700;
}

.statistics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.statistics-grid--wide {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
}

.statistics-panel {
  border-radius: 24px;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.98), rgba(244, 250, 247, 0.98));
}

.statistics-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.statistics-bars {
  display: grid;
  gap: 13px;
}

.statistics-bar-label {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
  color: rgba(27, 55, 42, 0.82);
  font-size: 13px;
  font-weight: 800;
}

.statistics-bar-label strong {
  color: var(--green-dark);
}

.statistics-bar-track {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(28, 74, 60, 0.1);
}

.statistics-bar-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2376a8, #69c17f);
}

.statistics-compare,
.statistics-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.statistics-compare-item .is-up {
  color: #1f8c55;
}

.statistics-compare-item .is-down {
  color: #c0392b;
}

.statistics-compare-item .is-even {
  color: #60706a;
}

/* ČAKAJOČI NA PRIJAVO V SISTEM */

.system-queue-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px;
  border: 1px solid rgba(22, 84, 62, 0.14);
  border-radius: 26px;
  background:
    radial-gradient(circle at 92% 18%, rgba(245, 179, 65, 0.28), transparent 34%),
    linear-gradient(135deg, rgba(58, 73, 88, 0.98), rgba(33, 113, 77, 0.92) 58%, rgba(240, 219, 163, 0.92));
  color: #fff;
  box-shadow: 0 22px 55px rgba(24, 62, 47, 0.16);
}

.system-queue-hero h2 {
  color: #fff;
  margin-bottom: 6px;
}

.system-queue-hero .small-hint {
  color: rgba(255, 255, 255, 0.86);
}

.system-queue-kicker {
  display: inline-flex;
  margin-bottom: 8px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.system-queue-badge {
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  flex: 0 0 auto;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
  text-align: center;
}

.system-queue-badge strong {
  font-size: 42px;
  line-height: 0.95;
}

.system-queue-badge span {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.system-queue-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 244, 234, 0.98));
}

.system-queue-toolbar .form-group {
  margin-bottom: 0;
  min-width: min(440px, 100%);
}

.system-queue-number {
  width: 150px;
  max-width: 100%;
  padding: 9px 11px;
  border: 2px solid rgba(28, 74, 60, 0.16);
  border-radius: 12px;
  font-weight: 800;
}

/* PROFIL ČLANA */

.member-profile {
  display: grid;
  gap: 16px;
}

.member-profile[hidden] {
  display: none;
}

.member-profile-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  overflow: hidden;
  border-radius: 28px;
  background:
    radial-gradient(circle at 92% 12%, rgba(126, 189, 142, 0.22), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(240, 248, 244, 0.98));
}

.member-profile-photo {
  width: 132px;
  height: 132px;
  overflow: hidden;
  border: 5px solid rgba(28, 74, 60, 0.14);
  border-radius: 34px;
  background: #fff;
  box-shadow: 0 18px 36px rgba(21, 45, 35, 0.1);
}

.member-profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.member-profile-kicker {
  display: inline-flex;
  margin-bottom: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(28, 118, 78, 0.1);
  color: var(--green-dark);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.member-profile-main h3 {
  margin: 0 0 8px;
  color: var(--green-dark);
  font-size: clamp(1.7rem, 4vw, 2.7rem);
  line-height: 1;
}

.member-profile-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.member-profile-badge {
  display: inline-flex;
  align-items: center;
  padding: 7px 11px;
  border: 1px solid rgba(28, 74, 60, 0.14);
  border-radius: 999px;
  background: #fff;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 900;
}

.member-profile-badge.is-ok {
  background: rgba(46, 204, 113, 0.12);
  color: #1f7a47;
}

.member-profile-badge.is-warn {
  background: rgba(241, 196, 15, 0.18);
  color: #6b4e00;
}

.member-profile-actions {
  display: grid;
  gap: 8px;
  min-width: 170px;
}

.member-profile-kpi-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.member-profile-kpi {
  padding: 14px;
  border: 1px solid rgba(28, 74, 60, 0.12);
  border-radius: 20px;
  background: linear-gradient(145deg, #fff, #f5fbf7);
  box-shadow: 0 14px 32px rgba(23, 54, 42, 0.07);
}

.member-profile-kpi span {
  display: block;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.member-profile-kpi strong {
  display: block;
  margin-top: 8px;
  color: var(--green-dark);
  font-size: 1.15rem;
  line-height: 1.1;
}

.member-profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.member-profile-card {
  border-radius: 24px;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.98), rgba(244, 250, 247, 0.98));
}

.member-profile-list {
  display: grid;
  gap: 8px;
}

.member-profile-list-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(28, 74, 60, 0.09);
}

.member-profile-list-row span {
  color: var(--text-muted);
  font-weight: 800;
}

.member-profile-list-row strong {
  color: var(--green-dark);
  text-align: right;
}

.member-profile-timeline {
  display: grid;
  gap: 10px;
}

.member-profile-timeline-item {
  position: relative;
  padding: 12px 12px 12px 16px;
  border: 1px solid rgba(28, 74, 60, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
}

.member-profile-timeline-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(#2f9b68, #8ecf70);
}

.member-profile-timeline-item time {
  display: block;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 900;
}

.member-profile-timeline-item strong {
  display: block;
  margin-top: 4px;
  color: var(--green-dark);
}

.member-profile-timeline-item span {
  display: block;
  margin-top: 3px;
  color: rgba(27, 55, 42, 0.74);
  font-size: 13px;
}

.member-profile-empty {
  padding: 16px;
  border-radius: 16px;
  background: rgba(28, 74, 60, 0.06);
  color: rgba(27, 55, 42, 0.7);
  font-weight: 800;
}

.fee-picker {
  margin-top: 6px;
  gap: 10px;
  align-items: center;
}
.fee-pick {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  border: 2px solid #111;
  cursor: pointer;
}
.fee-pick.red { background: #e74c3c; border-color: #e74c3c; }
.fee-pick.green { background: #2ecc71; border-color: #2ecc71; }
/* =======================
   KOLEDAR (MONTH/WEEK)
======================= */

.calendar-layout {
  display: grid;
  grid-template-columns: minmax(780px, 1fr) 360px; /* širši koledar + malo širši sidebar */
  gap: 18px;
  align-items: start;
  width: 100%;
}

.calendar-panel {
  background: #fff;
  border-radius: 14px;
  padding: 14px;
  border: 2px solid rgba(11, 75, 75, 0.15);
}

.calendar-toolbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  margin-bottom: 10px;
  gap: 10px;
}

.calendar-print-tools {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto auto minmax(220px, auto) auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 14px;
  padding: 12px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(11, 75, 75, 0.08), rgba(246, 218, 139, 0.18));
  border: 1px solid rgba(0, 75, 75, 0.10);
}

.calendar-print-tools strong,
.calendar-print-tools span {
  display: block;
}

.calendar-print-tools span {
  margin-top: 3px;
  color: rgba(19, 50, 50, 0.68);
  font-size: 13px;
}

.calendar-print-tools label {
  display: grid;
  gap: 4px;
  color: rgba(19, 50, 50, 0.72);
  font-size: 12px;
  font-weight: 800;
}

.calendar-print-tools select,
.calendar-print-tools input {
  min-height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(0, 75, 75, 0.16);
  padding: 0 10px;
}

.calendar-print-filter {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  min-height: 38px;
  margin: 0;
  padding: 8px 10px;
  border-radius: 14px;
  border: 1px solid rgba(0, 75, 75, 0.14);
  background: rgba(255, 255, 255, 0.78);
}

.calendar-print-filter legend {
  padding: 0 5px;
  color: rgba(19, 50, 50, 0.72);
  font-size: 12px;
  font-weight: 900;
}

.calendar-print-filter label {
  display: inline-flex;
  grid-template-columns: none;
  gap: 5px;
  align-items: center;
  font-size: 12px;
  white-space: nowrap;
}

.calendar-public-note {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  color: #133232;
  background: rgba(246, 218, 139, 0.24);
  border: 1px solid rgba(122, 90, 18, 0.14);
  font-size: 14px;
  line-height: 1.5;
  font-weight: 700;
}

.calendar-print-area {
  display: none;
}

.calendar-print-document {
  color: #111;
  background: #fff;
  font-family: "Segoe UI", Arial, sans-serif;
}

.calendar-print-document header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 2px solid #0b4b4b;
}

.calendar-print-document h1 {
  margin: 2px 0 4px;
  color: #0b4b4b;
  font-size: 28px;
  line-height: 1;
}

.calendar-print-document header span,
.calendar-print-document p {
  margin: 0;
  color: #444;
}

.calendar-print-document header > div > span {
  display: block;
  color: #0b4b4b;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.calendar-print-document header aside {
  min-width: 110px;
  padding: 8px 10px;
  border-radius: 10px;
  text-align: right;
  background: #eef6f3;
}

.calendar-print-document header aside strong,
.calendar-print-document header aside span {
  display: block;
}

.calendar-print-document header aside strong {
  color: #0b4b4b;
  font-size: 11px;
  text-transform: uppercase;
}

.calendar-print-legend {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #f5f7f6;
  border: 1px solid #d7e3df;
}

.calendar-print-legend span {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  font-size: 11px;
  font-weight: 800;
  color: #244;
}

.calendar-print-legend i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.calendar-print-months {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.calendar-print-month {
  break-inside: avoid;
  page-break-inside: avoid;
}

.calendar-print-month h2 {
  margin: 0 0 7px;
  padding: 7px 10px;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, #0b4b4b, #006d6d);
  font-size: 16px;
  text-transform: capitalize;
}

.calendar-print-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  border: 1.2pt solid #263f3b;
  background: #fff;
}

.calendar-print-table th,
.calendar-print-table td {
  border: 0.8pt solid #263f3b;
}

.calendar-print-table th {
  height: 24px;
  padding: 5px 4px;
  color: #0b4b4b;
  background: #e8f4f1;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-align: center;
}

.calendar-print-day {
  height: 78px;
  min-height: 78px;
  padding: 5px;
  vertical-align: top;
  font-size: 11px;
  background: #fff;
}

.calendar-print-document--single .calendar-print-months {
  grid-template-columns: 1fr;
}

.calendar-print-document--single .calendar-print-day {
  height: 112px;
  min-height: 112px;
  font-size: 13px;
}

.calendar-print-document--single .calendar-print-day > strong {
  font-size: 15px;
}

.calendar-print-day.is-empty {
  background: #fff;
}

.calendar-print-day strong {
  color: #0b4b4b;
  font-size: 12px;
}

.calendar-print-day.outside {
  color: #aaa;
  background: #f4f6f5;
}

.calendar-print-day span {
  display: block;
  margin-top: 3px;
  padding: 2px 3px;
  border-left: 3px solid #3498db;
  border-radius: 4px;
  background: #f1f7f5;
  color: #111;
  line-height: 1.25;
}

.calendar-print-day span b {
  display: inline;
  margin-right: 3px;
  color: #0b4b4b;
  font-size: 9px;
  text-transform: uppercase;
}
.calendar-print-day .print-event--match {
  border-left-color: #d35400;
}

.calendar-print-day .print-event--closed {
  border-left-color: #c0392b;
}

.calendar-print-day .print-event--work {
  border-left-color: #27ae60;
}

.calendar-print-day .print-event--meeting {
  border-left-color: #7f5ab6;
}

.calendar-print-document footer {
  margin-top: 14px;
  padding: 9px 10px;
  border-radius: 10px;
  border: 1px solid #d7e3df;
  background: #f5f7f6;
  font-size: 12px;
  font-weight: 700;
}

.cal-left, .cal-right {
  display: flex;
  gap: 8px;
  align-items: center;
}

.cal-right {
  justify-content: flex-end;
}

.cal-title {
  font-weight: 800;
  font-size: 18px;
  text-align: center;
}

.cal-btn {
  padding: 8px 10px;
  border-radius: 10px;
  border: 2px solid rgba(11, 75, 75, 0.25);
  background: #fff;
  cursor: pointer;
  font-weight: 700;
}

.cal-btn.ghost {
  opacity: .85;
}

.cal-btn.toggle.active {
  background: #0b4b4b;
  color: #fff;
  border-color: #0b4b4b;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 12px;
  overflow: hidden;
}

.cal-dow {
  background: rgba(0,0,0,.04);
  padding: 10px;
  font-weight: 800;
  text-align: center;
  border-bottom: 1px solid rgba(0,0,0,.12);
}

.cal-cell {
  min-height: 112px;
  padding: 8px;
  border-right: 1px solid rgba(0,0,0,.12);
  border-bottom: 1px solid rgba(0,0,0,.12);
  position: relative;
}

.cal-cell:nth-child(7n) {
  border-right: none;
}

.cal-daynum {
  font-weight: 800;
  font-size: 12px;
  opacity: .8;
  margin-bottom: 6px;
}

.cal-cell.outside {
  background: rgba(0,0,0,.02);
  opacity: .7;
}

.cal-cell.today {
  background: rgba(11, 75, 75, 0.08);
}

.cal-chip {
  display: block;
  padding: 4px 6px;
  border-radius: 8px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}

.cal-chip.rem {
  border: 2px dashed rgba(255,255,255,.65);
}

.calendar-side {
  background: #fff;
  border-radius: 14px;
  padding: 14px;
  border: 2px solid rgba(11, 75, 75, 0.15);
}

.cal-form {
  display: grid;
  gap: 8px;
}

.cal-form input, .cal-form textarea, .cal-form select {
  width: 100%;
  padding: 10px;
  border-radius: 10px;
  border: 2px solid rgba(0,0,0,.15);
  outline: none;
}

.calendar-form-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.cal-row {
  display: flex;
  gap: 10px;
}

.cal-radio {
  display: flex;
  gap: 14px;
  font-size: 14px;
}

.cal-list {
  display: grid;
  gap: 10px;
  font-size: 13px;
}

.cal-list-item {
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.12);
}

.cal-list-item .tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
  color: #fff;
  margin-right: 8px;
}

.cal-list-note {
  margin-top: 6px;
  color: rgba(19, 50, 50, 0.68);
  font-size: 12px;
  line-height: 1.45;
}

.calendar-week {
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 12px;
  overflow: hidden;
}

.week-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  border-bottom: 1px solid rgba(0,0,0,.12);
}

.week-row:last-child {
  border-bottom: none;
}

.week-day {
  padding: 10px;
  font-weight: 800;
  background: rgba(0,0,0,.04);
}

.week-events {
  padding: 10px;
}
.main-inner.full-width{
  max-width: 100%;
  width: 100%;
}
.calendar-panel {
  width: 100%;
}

.calendar-grid {
  width: 100%;
}
.app-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  margin: 10px 0 16px;
  padding: 10px;
  border-radius: 16px;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(11, 75, 75, 0.14);
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
}

.app-nav-inner {
  display: flex;
  gap: 10px;
  align-items: center;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: thin;
}

.app-nav-inner::-webkit-scrollbar {
  height: 8px;
}
.app-nav-inner::-webkit-scrollbar-thumb {
  background: rgba(11, 75, 75, 0.25);
  border-radius: 999px;
}
.app-nav-inner::-webkit-scrollbar-track {
  background: rgba(0,0,0,0.06);
  border-radius: 999px;
}

/* ==========================
   HEADER NAVIGACIJA
========================== */

.header-nav{
  width:100%;
  background:#0b4b4b;
  border-top:1px solid rgba(255,255,255,0.2);
}

.header-nav-inner{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:34px;
  padding:10px 0;
}

.header-nav a{
  text-decoration:none;
  color:white;
  font-weight:700;
  font-size:12px;
  letter-spacing:0.04em;
  opacity:0.9;
  transition:all .15s ease;
  position:relative;
  padding: 8px 12px;
  border-radius: 999px;
  white-space: nowrap;
}

.header-nav a:hover{
  opacity:1;
  background: rgba(255,255,255,0.08);
}

.header-nav a.active{
  opacity:1;
  background: rgba(255,255,255,0.14);
}

.header-nav a.active::after{
  display:none;
}
/* =========================
   HEADER: logo/user zgoraj, nav spodaj
========================= */
.header--stacked {
  height: auto;
  padding: 10px 18px 0 18px;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
}

.header-top {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
}

.header-nav {
  width: 100%;
  background: #0b4b4b;
  border-top: 1px solid rgba(255,255,255,0.2);
}

.header-nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 26px;
  padding: 10px 12px;
  overflow-x: auto;
}

/* =========================
   LAYOUT: levi filtri + tabela
========================= */
.list-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 14px;
  align-items: start;
  padding: 12px;
}

.filters {
  position: sticky;
  top: 16px;
  align-self: start;
  max-height: calc(100vh - 32px);
  overflow: auto;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(242, 249, 246, 0.98));
  border-radius: 20px;
  border: 1px solid rgba(0, 75, 75, 0.14);
  box-shadow: 0 16px 38px rgba(0,0,0,.08);
  padding: 16px;
}

.filters-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.filters-title {
  font-weight: 900;
  font-size: 16px;
}

.filters-search input {
  width: 100%;
  padding: 10px 10px;
  border-radius: 12px;
  border: 2px solid rgba(0,0,0,.15);
  outline: none;
}

.filters-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 10px 0 12px 0;
}

.btn-sm {
  padding: 8px 10px;
  border-radius: 12px;
  font-size: 13px;
}

.filters-dynamic {
  display: grid;
  gap: 10px;
}

.filter-group {
  border: 1px solid rgba(0,75,75,.12);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255,255,255,.92);
}

.filter-group summary {
  cursor: pointer;
  padding: 10px 10px;
  font-weight: 800;
  background: rgba(0,75,75,.06);
  user-select: none;
}

.checklist {
  padding: 10px;
  display: grid;
  gap: 8px;
}

.checklist label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

/* =========================
   TABLE tweaks
========================= */
.table-zone .table-wrapper {
  border-radius: 14px;
}

body[data-page="seznam"] .list-layout {
  grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
  gap: 10px;
  padding: 10px;
}

body[data-page="seznam"] .filters {
  padding: 12px;
  border-radius: 16px;
}

body[data-page="seznam"] .filters-search input {
  padding: 8px 9px;
  font-size: 12px;
}

body[data-page="seznam"] .filters-actions {
  gap: 6px;
}

body[data-page="seznam"] .filter-group summary {
  padding: 8px 9px;
}

body[data-page="seznam"] .checklist {
  padding: 8px;
  gap: 6px;
}

body[data-page="seznam"] .checklist label {
  font-size: 12px;
}

body[data-page="seznam"] .table-zone {
  min-width: 0;
}

body[data-page="seznam"] .table-zone .table-wrapper {
  width: 100%;
  overflow-x: auto;
}

.member-view-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 10px;
}

.member-view-switch button {
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid rgba(0, 95, 95, 0.18);
  border-radius: 999px;
  background: #ffffff;
  color: var(--teal-dark);
  font-weight: 900;
  cursor: pointer;
}

.member-view-switch button.is-active {
  background: var(--teal-dark);
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(0, 95, 95, 0.18);
}

body[data-page="seznam"] #members-table {
  table-layout: fixed;
  width: 100%;
  min-width: 0;
  font-size: clamp(11px, 0.76vw, 13px);
}

body[data-page="seznam"] #members-table th,
body[data-page="seznam"] #members-table td {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 6px 5px;
  line-height: 1.2;
}

body[data-page="seznam"] #members-table th:nth-child(1),
body[data-page="seznam"] #members-table td:nth-child(1) {
  width: 52px;
}

body[data-page="seznam"] #members-table th:nth-child(2),
body[data-page="seznam"] #members-table td:nth-child(2) {
  width: 66px;
}

body[data-page="seznam"] #members-table th:nth-child(3),
body[data-page="seznam"] #members-table td:nth-child(3) {
  width: 48px;
}

body[data-page="seznam"] #members-table th:nth-child(4),
body[data-page="seznam"] #members-table td:nth-child(4) {
  width: 74px;
}

body[data-page="seznam"] #members-table th:nth-child(5),
body[data-page="seznam"] #members-table td:nth-child(5),
body[data-page="seznam"] #members-table th:nth-child(6),
body[data-page="seznam"] #members-table td:nth-child(6) {
  width: 88px;
}

body[data-page="seznam"] #members-table th:nth-child(7),
body[data-page="seznam"] #members-table td:nth-child(7) {
  width: 118px;
}

body[data-page="seznam"] #members-table th:nth-child(8),
body[data-page="seznam"] #members-table td:nth-child(8) {
  width: 58px;
}

body[data-page="seznam"] #members-table th:nth-child(9),
body[data-page="seznam"] #members-table td:nth-child(9) {
  width: 104px;
}

body[data-page="seznam"] #members-table th:nth-child(10),
body[data-page="seznam"] #members-table td:nth-child(10) {
  width: 138px;
}

body[data-page="seznam"] #members-table th:nth-child(11),
body[data-page="seznam"] #members-table td:nth-child(11) {
  width: 84px;
}

body[data-page="seznam"] #members-table th:nth-child(12),
body[data-page="seznam"] #members-table td:nth-child(12) {
  width: 130px;
  overflow: visible;
  text-overflow: clip;
}

body[data-page="seznam"] .member-tools {
  display: table-cell;
  min-width: 0;
  width: 100%;
  padding-left: 6px;
  padding-right: 6px;
}

body[data-page="seznam"] .member-tools__inner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  width: 100%;
}

body[data-page="seznam"] .member-tool-btn {
  width: 100%;
  min-height: 22px;
  padding: 3px 5px;
  border-radius: 7px;
  font-size: 10px;
  line-height: 1;
  box-shadow: none;
}

body[data-page="seznam"] .member-tool-btn:hover {
  transform: none;
  box-shadow: none;
}

body[data-page="seznam"] .members-table--compact th,
body[data-page="seznam"] .members-table--compact td {
  padding-top: 5px;
  padding-bottom: 5px;
}

body[data-page="seznam"] .members-view-compact [data-col="naslov"],
body[data-page="seznam"] .members-view-compact [data-col="email"],
body[data-page="seznam"] .members-view-actions [data-col="naslov"],
body[data-page="seznam"] .members-view-actions [data-col="email"] {
  display: none !important;
}

body[data-page="seznam"] .members-view-cards .table-wrapper {
  display: none;
}

body[data-page="seznam"] .members-view-cards .member-mobile-list {
  display: grid;
}

body[data-page="seznam"] .filters > .filter-group {
  margin-top: 16px;
}

.member-mobile-list {
  display: none;
  gap: 12px;
}

.member-mobile-card {
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(0, 75, 75, 0.14);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(242, 249, 246, 0.98));
  box-shadow: 0 14px 30px rgba(0, 55, 55, 0.08);
}

.member-mobile-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.member-mobile-card__name {
  font-size: 1rem;
  font-weight: 900;
  color: #133232;
}

.member-mobile-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.member-mobile-card__index {
  font-size: 12px;
  font-weight: 900;
  color: rgba(19, 50, 50, 0.65);
  white-space: nowrap;
}

.member-mobile-card__body {
  display: grid;
  gap: 10px;
}

.member-mobile-card__row {
  display: grid;
  gap: 4px;
}

.member-mobile-card__row span {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: rgba(19, 50, 50, 0.62);
}

.member-mobile-card__row strong,
.member-mobile-card__row a {
  font-size: 14px;
  line-height: 1.45;
  color: #153434;
  word-break: break-word;
}

.member-mobile-card__actions {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.member-mobile-card__actions.inline {
  grid-template-columns: 1fr;
}

.application-admin-card {
  gap: 14px;
}

.application-admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.application-admin-field {
  display: grid;
  gap: 6px;
}

.application-admin-field span {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(19, 50, 50, 0.62);
}

.application-admin-field input,
.application-admin-field select {
  min-height: 46px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(0, 75, 75, 0.14);
  background: rgba(255,255,255,.95);
  color: #153434;
}

.application-admin-field--toggle {
  align-content: start;
}

.application-admin-field--toggle input {
  width: 22px;
  height: 22px;
  min-height: 22px;
  padding: 0;
  accent-color: #2f7a3e;
}

.observation-card {
  gap: 14px;
}

.observation-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.observation-gallery__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid rgba(0, 75, 75, 0.12);
  background: #fff;
}

.observation-map-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  margin-bottom: 10px;
}

.observation-map {
  width: 100%;
  min-height: 360px;
  margin-top: 12px;
  border-radius: 20px;
  border: 1px solid rgba(0, 75, 75, 0.14);
  overflow: hidden;
  background: linear-gradient(180deg, rgba(239, 246, 243, 0.95), rgba(227, 239, 234, 0.95));
}

.observation-coordinates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.observation-coordinates .form-group {
  margin: 0;
}

.observation-coordinates .form-group span {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(19, 50, 50, 0.62);
}

.application-success {
  margin-top: 16px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(47, 122, 62, 0.24);
  background:
    radial-gradient(circle at top left, rgba(89, 170, 106, 0.20), transparent 32%),
    linear-gradient(180deg, rgba(244, 252, 246, 0.98), rgba(232, 247, 236, 0.98));
  color: #17451f;
  box-shadow: 0 14px 32px rgba(47, 122, 62, 0.12);
}

.application-success strong,
.application-success span {
  display: block;
}

.application-success strong {
  font-size: 18px;
  font-weight: 900;
  margin-bottom: 4px;
}

.public-observation-page .main {
  padding-top: 10px;
}

.public-observation-page .main-inner {
  max-width: 940px;
}

.public-observation-page .page-intro {
  background:
    radial-gradient(circle at top left, rgba(11, 75, 75, 0.28), transparent 34%),
    radial-gradient(circle at top right, rgba(246, 218, 139, 0.32), transparent 32%),
    linear-gradient(180deg, rgba(250, 253, 251, 0.98), rgba(232, 244, 238, 0.98));
}

.public-recap-page .main {
  padding-top: 10px;
}

.public-recap-page .main-inner {
  max-width: 1120px;
}

.recap-hero {
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 20%, rgba(246, 218, 139, 0.36), transparent 30%),
    radial-gradient(circle at 82% 18%, rgba(0, 109, 109, 0.20), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(232, 244, 238, 0.98));
}

.recap-form-card {
  border-radius: 30px;
  padding: 0;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 250, 247, 0.98)),
    radial-gradient(circle at top left, rgba(246, 218, 139, 0.18), transparent 34%);
}

.recap-form {
  display: grid;
  gap: 18px;
  padding: 24px;
}

.recap-section {
  padding: 18px 18px 16px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(11, 75, 75, 0.10), rgba(246, 218, 139, 0.16));
  border: 1px solid rgba(0, 75, 75, 0.10);
}

.recap-section h3 {
  margin: 0 0 6px;
  color: #133232;
}

.recap-section p {
  margin: 0;
  color: rgba(19, 50, 50, 0.72);
  line-height: 1.55;
}

.recap-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.recap-choice {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(0, 75, 75, 0.14);
  background: rgba(255, 255, 255, 0.76);
}

.recap-choice legend {
  padding: 0 8px;
  font-weight: 800;
  color: #133232;
}

.recap-choice label {
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(239, 247, 244, 0.82);
}

.recap-fish-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.recap-number-card {
  position: relative;
  display: grid;
  gap: 8px;
  padding: 16px;
  border-radius: 22px;
  border: 1px solid rgba(0, 75, 75, 0.12);
  background:
    radial-gradient(circle at top right, rgba(246, 218, 139, 0.22), transparent 42%),
    rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 26px rgba(0, 55, 55, 0.07);
}

.recap-number-card span {
  font-weight: 800;
  color: #133232;
}

.recap-number-card input {
  width: 100%;
  min-height: 52px;
  border-radius: 16px;
  border: 1px solid rgba(0, 75, 75, 0.14);
  font-size: 1.25rem;
  font-weight: 800;
  text-align: center;
}

.recap-number-card small {
  color: rgba(19, 50, 50, 0.64);
  font-weight: 700;
  text-transform: uppercase;
}

.recap-number-card--kg {
  background:
    radial-gradient(circle at top right, rgba(0, 109, 109, 0.16), transparent 44%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(236, 247, 243, 0.96));
}

.recap-admin-panel {
  display: grid;
  gap: 18px;
  border-radius: 28px;
}

.recap-year-filter {
  min-width: 170px;
  margin: 0;
}

.recap-active-year-pill {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 9px 14px;
  border-radius: 999px;
  color: #f7fffb;
  background: linear-gradient(135deg, #0b4b4b, #006d6d);
  box-shadow: 0 10px 22px rgba(0, 55, 55, 0.12);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.recap-active-year-pill strong {
  margin-left: 6px;
  font-size: 1rem;
}

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

.recap-stat-card {
  display: grid;
  gap: 7px;
  min-height: 132px;
  padding: 18px;
  border-radius: 22px;
  color: #f7fffb;
  background:
    radial-gradient(circle at top right, rgba(246, 218, 139, 0.28), transparent 42%),
    linear-gradient(145deg, #0b4b4b, #006d6d);
  box-shadow: 0 16px 34px rgba(0, 55, 55, 0.15);
}

.recap-stat-card span {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.84;
}

.recap-stat-card strong {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  line-height: 1;
}

.recap-stat-card small {
  line-height: 1.35;
  opacity: 0.82;
}

.recap-chart-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 16px;
}

.recap-chart-card {
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(0, 75, 75, 0.12);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 26px rgba(0, 55, 55, 0.06);
}

.recap-chart-card h4 {
  margin: 0 0 16px;
  color: #133232;
}

.recap-bars {
  display: grid;
  gap: 12px;
}

.recap-bar-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) 42px;
  gap: 10px;
  align-items: center;
}

.recap-bar-label {
  font-size: 13px;
  font-weight: 800;
  color: rgba(19, 50, 50, 0.78);
}

.recap-bar-track {
  height: 16px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(0, 75, 75, 0.08);
}

.recap-bar-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0b4b4b, #2fb08f, #f0c75a);
}

.recap-donut-wrap {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: center;
}

.recap-donut {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(#0b4b4b calc(var(--member) * 1%), #f0c75a 0);
  box-shadow: inset 0 0 0 18px rgba(255, 255, 255, 0.94), 0 12px 26px rgba(0, 55, 55, 0.10);
}

.recap-donut span {
  font-size: 1.8rem;
  font-weight: 900;
  color: #133232;
}

.recap-donut-legend {
  display: grid;
  gap: 10px;
  color: rgba(19, 50, 50, 0.78);
}

.recap-dot {
  display: inline-block;
  width: 11px;
  height: 11px;
  margin-right: 6px;
  border-radius: 50%;
}

.recap-dot--member {
  background: #0b4b4b;
}

.recap-dot--youth {
  background: #f0c75a;
}

.recap-compare-card {
  display: grid;
  gap: 16px;
}

.recap-compare-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.recap-compare-head h4 {
  margin-bottom: 6px;
}

.recap-compare-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.recap-compare-item {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 20px;
  background:
    radial-gradient(circle at top right, rgba(246, 218, 139, 0.18), transparent 44%),
    linear-gradient(180deg, rgba(248, 252, 250, 0.98), rgba(238, 247, 244, 0.98));
  border: 1px solid rgba(0, 75, 75, 0.10);
}

.recap-compare-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.recap-compare-title strong {
  color: #133232;
}

.recap-compare-title span {
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.recap-compare-title .is-up {
  color: #0d6a3b;
  background: rgba(42, 176, 126, 0.14);
}

.recap-compare-title .is-down {
  color: #a43b2e;
  background: rgba(192, 57, 43, 0.12);
}

.recap-compare-title .is-even {
  color: rgba(19, 50, 50, 0.68);
  background: rgba(0, 75, 75, 0.08);
}

.recap-compare-bars {
  display: grid;
  gap: 10px;
}

.recap-compare-line {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 86px;
  gap: 10px;
  align-items: center;
  color: rgba(19, 50, 50, 0.76);
  font-size: 13px;
}

.recap-compare-line div {
  height: 13px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(0, 75, 75, 0.08);
}

.recap-compare-line i {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.recap-compare-line i.previous {
  background: linear-gradient(90deg, rgba(19, 50, 50, 0.28), rgba(19, 50, 50, 0.46));
}

.recap-compare-line i.current {
  background: linear-gradient(90deg, #0b4b4b, #2fb08f, #f0c75a);
}

.recap-compare-line b {
  text-align: right;
  color: #133232;
}

.communication-shell {
  display: grid;
  gap: 18px;
  border-radius: 28px;
  background:
    radial-gradient(circle at top left, rgba(246, 218, 139, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(241, 248, 245, 0.98));
}

.communication-topbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(11, 75, 75, 0.10), rgba(246, 218, 139, 0.18));
  border: 1px solid rgba(0, 75, 75, 0.10);
}

.communication-channel-switch {
  display: inline-flex;
  padding: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(0, 75, 75, 0.12);
}

.communication-channel-switch button {
  min-height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(19, 50, 50, 0.72);
  font-weight: 900;
  cursor: pointer;
}

.communication-channel-switch button.active {
  color: #ffffff;
  background: linear-gradient(135deg, #0b4b4b, #006d6d);
  box-shadow: 0 10px 20px rgba(0, 55, 55, 0.14);
}

.communication-shell--sms .communication-channel-switch button.active {
  color: #3b2600;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.72), transparent 28%),
    linear-gradient(135deg, #ffe08a 0%, #f2b84b 42%, #d98b16 100%);
  box-shadow: 0 10px 22px rgba(194, 133, 24, 0.24);
}

.communication-shell--sms {
  border-color: rgba(217, 149, 31, 0.30);
  background:
    radial-gradient(circle at top right, rgba(255, 224, 138, 0.30), transparent 34%),
    linear-gradient(135deg, rgba(255, 251, 235, 0.98), rgba(255, 255, 255, 0.97));
}

.communication-shell--sms .communication-topbar {
  border-bottom: 1px solid rgba(217, 149, 31, 0.18);
}

.communication-shell--sms .communication-provider-note strong,
.communication-shell--sms .communication-compose-badge,
.communication-shell--sms .communication-channel-summary {
  color: #6d4400;
}

.communication-shell--sms #btn-send-email {
  color: #3b2600;
  background:
    linear-gradient(135deg, #ffe08a 0%, #f2b84b 45%, #d98b16 100%);
  border-color: #d98b16;
  box-shadow: 0 10px 22px rgba(194, 133, 24, 0.24);
}

.communication-shell--sms .communication-compose-badge {
  background: rgba(242, 184, 75, 0.18);
  border-color: rgba(217, 149, 31, 0.32);
}

.communication-shell--sms .communication-stats article {
  color: #3b2600;
  background:
    radial-gradient(circle at 88% 8%, rgba(255, 255, 255, 0.70), transparent 28%),
    linear-gradient(145deg, #fff1bd 0%, #f2c45d 48%, #d99824 100%);
  box-shadow: 0 14px 30px rgba(194, 133, 24, 0.18);
}

.communication-shell--sms .communication-stats span,
.communication-shell--sms .communication-stats small {
  color: rgba(59, 38, 0, 0.76);
  opacity: 1;
}

.communication-shell--email .communication-compose-badge {
  background: rgba(0, 109, 109, 0.12);
  border-color: rgba(0, 109, 109, 0.24);
}

.sms-queue-progress {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(217, 111, 0, 0.24);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 247, 237, 0.96), rgba(255, 255, 255, 0.96));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.68);
}

.sms-queue-progress[hidden] {
  display: none;
}

.sms-queue-progress-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  color: #8a3d00;
}

.sms-queue-progress-head strong,
.sms-queue-progress-head span {
  font-weight: 900;
}

.sms-queue-bar {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(138, 61, 0, 0.12);
}

.sms-queue-bar i {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #a64f00, #e47b00, #f2b84b);
  transition: width 0.24s ease;
}

.sms-queue-detail {
  color: rgba(70, 46, 20, 0.82);
  font-size: 13px;
  line-height: 1.45;
}

body[data-page="funkcionarji"] .officials-section-row td {
  background: linear-gradient(90deg, #073f3f, #0f7a60) !important;
  color: #ffffff !important;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-color: rgba(255, 255, 255, 0.22);
}

.communication-provider-note {
  display: grid;
  gap: 3px;
  text-align: right;
  color: rgba(19, 50, 50, 0.72);
}

.communication-provider-note strong {
  color: #133232;
}

.communication-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.86fr) minmax(0, 1.34fr);
  gap: 18px;
}

.communication-panel {
  display: grid;
  align-content: start;
  gap: 16px;
}

.communication-section {
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(0, 75, 75, 0.12);
  background: rgba(255, 255, 255, 0.90);
  box-shadow: 0 12px 28px rgba(0, 55, 55, 0.06);
}

.communication-section h3 {
  margin: 0 0 12px;
  color: #133232;
}

.communication-quick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.communication-quick-card {
  display: grid;
  gap: 5px;
  min-height: 76px;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid rgba(0, 75, 75, 0.12);
  background: linear-gradient(180deg, #ffffff, #eef7f3);
  color: #133232;
  text-align: left;
  cursor: pointer;
}

.communication-quick-card:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.communication-quick-card span {
  font-size: 12px;
  color: rgba(19, 50, 50, 0.62);
}

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

.communication-filter-grid .form-group:first-child {
  grid-column: 1 / -1;
}

.communication-checks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.communication-checks label {
  padding: 11px 12px;
  border-radius: 16px;
  background: rgba(239, 247, 244, 0.84);
  color: rgba(19, 50, 50, 0.78);
  font-weight: 700;
}

.communication-group-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin-bottom: 10px;
}

.communication-groups-list {
  display: grid;
  gap: 8px;
}

.communication-group-chip {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(239, 247, 244, 0.86);
  color: rgba(19, 50, 50, 0.76);
}

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

.communication-stats article {
  display: grid;
  gap: 6px;
  min-height: 108px;
  padding: 16px;
  border-radius: 22px;
  color: #f7fffb;
  background:
    radial-gradient(circle at top right, rgba(246, 218, 139, 0.28), transparent 42%),
    linear-gradient(145deg, #0b4b4b, #006d6d);
}

.communication-stats span {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  opacity: 0.82;
}

.communication-stats strong {
  font-size: 2rem;
  line-height: 1;
}

.communication-stats small {
  opacity: 0.82;
}

.communication-recipient-list {
  display: grid;
  gap: 8px;
  max-height: 460px;
  overflow: auto;
  padding-right: 4px;
}

.communication-recipient {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(130px, auto);
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid rgba(0, 75, 75, 0.10);
  background: rgba(255, 255, 255, 0.94);
}

.communication-recipient span {
  display: grid;
  gap: 3px;
}

.communication-recipient small,
.communication-recipient em {
  color: rgba(19, 50, 50, 0.62);
  font-style: normal;
}

.communication-recipient.is-missing-contact {
  opacity: 0.62;
  background: rgba(192, 57, 43, 0.06);
}

.communication-message-form {
  gap: 12px;
}

.communication-template-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.communication-preview {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(239, 247, 244, 0.96), rgba(255, 255, 255, 0.96));
  border: 1px solid rgba(0, 75, 75, 0.10);
  white-space: pre-wrap;
}

.communication-log {
  display: grid;
  gap: 9px;
}

.communication-log-item {
  display: grid;
  gap: 4px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(239, 247, 244, 0.86);
  color: rgba(19, 50, 50, 0.72);
}

.communication-log-item strong {
  color: #133232;
}

.form-warning {
  padding: 13px 15px;
  border-radius: 18px;
  color: #7a3b00;
  background: rgba(246, 218, 139, 0.34);
  border: 1px solid rgba(122, 59, 0, 0.14);
  font-weight: 800;
}

#rd-toast-host {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 21000;
  display: grid;
  gap: 10px;
  width: min(380px, calc(100vw - 28px));
  pointer-events: none;
}

.rd-toast {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 13px 14px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid rgba(0, 75, 75, 0.14);
  box-shadow: 0 18px 42px rgba(12, 30, 30, 0.18);
  color: #133232;
  pointer-events: auto;
  animation: rdToastIn 0.2s ease-out;
}

.rd-toast--closing {
  animation: rdToastOut 0.16s ease-in forwards;
}

.rd-toast__mark {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  font-weight: 900;
  background: #0b6b5f;
}

.rd-toast--warning .rd-toast__mark,
.rd-toast--confirm .rd-toast__mark {
  background: #d19a18;
}

.rd-toast--info .rd-toast__mark {
  background: #246b9a;
}

.rd-toast__body {
  display: grid;
  gap: 3px;
}

.rd-toast__body strong {
  font-size: 13px;
  line-height: 1.25;
}

.rd-toast__body span {
  font-size: 13px;
  line-height: 1.35;
  color: rgba(19, 50, 50, 0.72);
}

.rd-toast__close {
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 50%;
  background: rgba(19, 50, 50, 0.07);
  color: rgba(19, 50, 50, 0.76);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

.field-validation-message {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.35;
  color: #9b2d20;
  font-weight: 700;
}

.form-group.field-invalid input,
.form-group.field-invalid select,
.form-group.field-invalid textarea {
  border-color: rgba(155, 45, 32, 0.72);
  box-shadow: 0 0 0 4px rgba(155, 45, 32, 0.10);
}

.form-group.field-valid input:not([type="file"]),
.form-group.field-valid select,
.form-group.field-valid textarea {
  border-color: rgba(11, 107, 95, 0.38);
}

.rd-dialog-overlay {
  position: fixed;
  inset: 0;
  z-index: 20000;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(12, 30, 30, 0.34);
  animation: rdDialogFade 0.16s ease-out;
}

.rd-dialog-overlay--closing {
  animation: rdDialogFade 0.14s ease-in reverse;
}

.rd-dialog {
  width: min(440px, 100%);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  padding: 20px;
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff, #f4faf8);
  border: 1px solid rgba(0, 75, 75, 0.16);
  box-shadow: 0 24px 70px rgba(12, 30, 30, 0.24);
  color: #133232;
}

.rd-dialog__mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-weight: 900;
  color: #ffffff;
  background: #0b6b5f;
  box-shadow: 0 10px 24px rgba(11, 107, 95, 0.22);
}

.rd-dialog-overlay--confirm .rd-dialog__mark {
  background: #d19a18;
  box-shadow: 0 10px 24px rgba(209, 154, 24, 0.22);
}

.rd-dialog-overlay--warning .rd-dialog__mark {
  background: #b84a2b;
  box-shadow: 0 10px 24px rgba(184, 74, 43, 0.22);
}

.rd-dialog-overlay--info .rd-dialog__mark {
  background: #246b9a;
  box-shadow: 0 10px 24px rgba(36, 107, 154, 0.22);
}

.rd-dialog__body {
  display: grid;
  gap: 10px;
}

.rd-dialog__body h3 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.25;
}

.rd-dialog__body p {
  margin: 0;
  color: rgba(19, 50, 50, 0.76);
  line-height: 1.45;
}

.rd-dialog__input {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(0, 75, 75, 0.2);
  background: rgba(255, 255, 255, 0.92);
  color: #133232;
  font: inherit;
}

.rd-dialog__input:focus {
  outline: 3px solid rgba(11, 107, 95, 0.14);
  border-color: rgba(11, 107, 95, 0.42);
}

.rd-dialog__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}

@keyframes rdDialogFade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes rdToastIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes rdToastOut {
  to {
    opacity: 0;
    transform: translateY(-8px);
  }
}

@media (max-width: 980px) {
  body[data-page="vpis-clana"] .vpis-layout {
    grid-template-columns: 1fr;
  }

  body[data-page="vpis-clana"] .vpis-avatar-card {
    position: static;
  }

  .recap-fish-grid,
  .recap-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .recap-chart-grid {
    grid-template-columns: 1fr;
  }

  .communication-layout {
    grid-template-columns: 1fr;
  }

  .communication-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .public-recap-page .page-stack {
    padding-left: 6px;
    padding-right: 6px;
  }

  .recap-form {
    gap: 16px;
    padding: 16px;
  }

  .recap-form-card,
  .recap-admin-panel {
    border-radius: 22px;
  }

  .recap-grid,
  .recap-fish-grid,
  .recap-stat-grid,
  .recap-compare-grid {
    grid-template-columns: 1fr;
  }

  .recap-choice label {
    min-height: 50px;
    font-size: 15px;
  }

  .recap-number-card {
    grid-template-columns: 1fr 110px auto;
    align-items: center;
  }

  .recap-number-card input {
    min-height: 48px;
  }

  .recap-section {
    padding: 16px;
  }

  .recap-bar-row {
    grid-template-columns: 92px minmax(0, 1fr) 36px;
    gap: 8px;
  }

  .recap-compare-line {
    grid-template-columns: 44px minmax(0, 1fr) 76px;
    gap: 8px;
  }

  .recap-donut-wrap {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .public-recap-page .public-application-actions {
    bottom: 8px;
    padding: 10px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(12px);
  }

  .public-recap-page .public-application-actions .btn {
    width: 100%;
    min-height: 54px;
  }

  .communication-topbar,
  .communication-provider-note {
    align-items: stretch;
    text-align: left;
  }

  .communication-topbar {
    display: grid;
  }

  .communication-channel-switch,
  .communication-channel-switch button {
    width: 100%;
  }

  .communication-filter-grid,
  .communication-checks,
  .communication-quick-grid,
  .communication-stats {
    grid-template-columns: 1fr;
  }

  .communication-group-tools,
  .communication-recipient {
    grid-template-columns: 1fr;
  }

  .communication-recipient-list {
    max-height: 520px;
  }

  body[data-page="vpis-clana"] .vpis-hero {
    margin: 10px 8px;
    padding: 18px;
    border-radius: 22px;
  }

  body[data-page="vpis-clana"] .vpis-layout {
    padding: 0 8px 18px;
  }

  body[data-page="vpis-clana"] .card {
    padding: 16px;
    border-radius: 22px;
  }

  body[data-page="vpis-clana"] .avatar-preview {
    width: 150px;
    height: 150px;
  }

  body[data-page="vpis-clana"] .inline-actions {
    display: grid;
    grid-template-columns: 1fr;
    bottom: 8px;
  }
}

.animal-print {
  width: min(980px, 100%);
  margin: 24px auto;
  padding: 32px;
  background: #fff;
  color: #111;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.animal-print__header h1 {
  margin: 0 0 18px;
  font-size: 28px;
  color: #123838;
}

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

.animal-print__meta div,
.animal-print__description {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #fff;
}

.animal-print__meta span {
  display: block;
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.54);
}

.animal-print__meta strong {
  font-size: 16px;
}

.animal-print__description {
  margin-top: 16px;
}

.animal-print__description h2 {
  margin: 0 0 8px;
  font-size: 18px;
}

.animal-print__description p {
  margin: 0;
  line-height: 1.6;
  white-space: pre-wrap;
}

.animal-print__images {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.animal-print__figure {
  margin: 0;
  break-inside: avoid;
}

.animal-print__figure img {
  width: 100%;
  border-radius: 18px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  object-fit: cover;
}

.member-mobile-card__note {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(19, 50, 50, 0.72);
}

.member-mobile-card__status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  padding: 7px 10px;
  border-radius: 12px;
  font-weight: 900;
  background: rgba(0, 75, 75, 0.08);
  color: #134040;
}

.member-mobile-card__status.ok {
  background: rgba(46, 204, 113, 0.14);
  color: #1f7a43;
}

.member-mobile-card__status.warn {
  background: rgba(231, 76, 60, 0.14);
  color: #a33426;
}

.signature-pad {
  width: 100%;
  min-height: 200px;
  border-radius: 18px;
  border: 2px dashed rgba(0, 75, 75, 0.28);
  background: #fff;
  touch-action: none;
  cursor: crosshair;
}

.application-terms {
  max-height: 220px;
  overflow: auto;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(0, 75, 75, 0.14);
  background: rgba(255, 255, 255, 0.86);
  line-height: 1.6;
}

.application-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.application-grid .full {
  grid-column: 1 / -1;
}

.application-card {
  max-width: 940px;
  margin-left: auto;
  margin-right: auto;
}

.application-section-title {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0b4b4b;
}

.application-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 10px;
}

.signature-trigger {
  width: 100%;
  min-height: 84px;
  padding: 16px 18px;
  border-radius: 22px;
  border: 1px solid rgba(0, 75, 75, 0.16);
  background:
    radial-gradient(circle at top right, rgba(246, 218, 139, 0.26), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,.99), rgba(235,245,241,.98));
  box-shadow: 0 16px 34px rgba(0, 55, 55, 0.10);
  color: #143636;
  cursor: pointer;
  text-align: left;
  display: grid;
  gap: 4px;
}

.signature-trigger__eyebrow {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(11, 75, 75, 0.72);
}

.signature-trigger__title {
  font-size: 17px;
  font-weight: 900;
  color: #123838;
}

.signature-trigger__hint {
  font-size: 13px;
  line-height: 1.45;
  color: rgba(19, 50, 50, 0.72);
}

body[data-page="pristopna-izjava"] .page-intro {
  max-width: 940px;
  margin-left: auto;
  margin-right: auto;
}

.public-application-page .main {
  padding-top: 10px;
}

.public-application-page .main-inner {
  max-width: 980px;
}

.public-application-hero {
  background:
    radial-gradient(circle at top left, rgba(11, 75, 75, 0.30), transparent 34%),
    radial-gradient(circle at bottom right, rgba(246, 218, 139, 0.30), transparent 34%),
    linear-gradient(180deg, rgba(250, 253, 251, 0.98), rgba(232, 244, 238, 0.98));
}

.public-application-card {
  border-radius: 30px;
  overflow: hidden;
}

.application-nested-card {
  padding: 14px;
  border-radius: 22px;
  border: 1px solid rgba(0, 75, 75, 0.12);
  background: rgba(240, 248, 245, 0.70);
}

.public-application-actions {
  margin-top: 18px;
  position: sticky;
  bottom: 10px;
  z-index: 3;
  padding: 10px;
  border-radius: 20px;
  background: rgba(244, 250, 247, 0.92);
  backdrop-filter: blur(10px);
}

body[data-page="pristopna-izjava"] .page-intro p {
  font-size: 15px;
}

.signature-preview-wrap {
  margin-top: 12px;
  padding: 10px;
  border-radius: 16px;
  border: 1px solid rgba(0, 75, 75, 0.14);
  background: rgba(255,255,255,.92);
}

.signature-preview {
  display: block;
  width: 100%;
  max-height: 140px;
  object-fit: contain;
}

.signature-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(7, 29, 29, 0.76);
  min-height: 100dvh;
}

.signature-overlay[hidden] {
  display: none !important;
}

.signature-overlay__stage {
  width: min(1100px, 100%);
  height: min(92dvh, 760px);
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  border-radius: 28px;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(246, 218, 139, 0.20), transparent 28%),
    linear-gradient(180deg, #f8fcfb, #edf5f1);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
}

.signature-overlay__title {
  padding: 18px 18px 6px;
  text-align: center;
  font-size: 18px;
  font-weight: 900;
  color: #123434;
}

.signature-overlay__hint {
  padding: 0 18px 12px;
  text-align: center;
  font-size: 13px;
  line-height: 1.45;
  color: rgba(19, 50, 50, 0.72);
}

.signature-overlay__canvas-wrap {
  padding: 0 14px 14px;
  min-height: 0;
  overflow: hidden;
}

.signature-overlay__canvas {
  width: 100%;
  height: 100%;
  min-height: 0;
  border-radius: 24px;
  background: #ffffff;
  border: 2px solid rgba(0, 75, 75, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.9);
  touch-action: none;
}

.signature-overlay__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 12px;
  background: rgba(245, 250, 248, 0.98);
  border-top: 1px solid rgba(0, 75, 75, 0.1);
}

.signature-overlay__actions .btn {
  min-height: 52px;
}

.application-print {
  width: min(980px, 100%);
  margin: 20px auto;
  background: #fff;
  color: #111;
  padding: 34px 36px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.application-print--form {
  width: 210mm;
  max-width: 100%;
  min-height: 297mm;
  padding: 18mm 16mm 16mm;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
  font-family: "Times New Roman", Times, serif;
  font-size: 12pt;
  line-height: 1.24;
}

.application-print__page + .application-print__page {
  page-break-before: always;
  margin-top: 14mm;
}

.application-form-title {
  margin: 0;
  text-align: center;
  font-size: 18pt;
  font-weight: 700;
}

.application-form-underline {
  width: 160px;
  height: 2px;
  margin: 14px auto 18px;
  background: #111;
}

.application-form-intro {
  margin: 0 0 4px;
  font-style: italic;
  font-size: 11pt;
}

.application-form-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.application-form-table td {
  border: 1px solid #111;
  padding: 2px 5px;
  vertical-align: top;
  font-size: 11pt;
}

.application-form-table .label {
  width: 47%;
}

.application-form-table .value {
  width: 26.5%;
}

.application-form-table .photo-box {
  height: 140px;
  padding: 0;
}

.application-form-photo {
  display: block;
  width: 100%;
  height: 140px;
  object-fit: contain;
  object-position: center;
}

.application-form-note {
  margin: 2px 0 18px;
  font-style: italic;
  font-size: 10.5pt;
}

.application-form-text {
  margin: 12px 0 10px;
}

.application-form-list {
  margin: 0 0 0 18px;
  padding: 0;
}

.application-form-list li {
  margin: 0 0 6px;
  padding-left: 8px;
}

.application-form-sublist {
  margin: 6px 0 0 18px;
}

.application-inline-line {
  display: inline-block;
  min-width: 110px;
  border-bottom: 1px solid #111;
  padding: 0 4px 1px;
  line-height: 1.1;
  vertical-align: baseline;
}

.application-inline-line.small {
  min-width: 54px;
}

.application-inline-line.long {
  min-width: 160px;
}

.application-inline-line.signature {
  min-width: 260px;
  min-height: 34px;
  vertical-align: bottom;
}

.application-inline-signature-img {
  max-width: 240px;
  max-height: 48px;
  object-fit: contain;
  vertical-align: bottom;
}

.application-page-number {
  margin-top: 20px;
  text-align: center;
}

.application-second-page-text {
  margin: 0 0 22px;
}

.application-signature-row {
  margin-top: 26px;
}

.application-signature-row p {
  margin: 0 0 5px;
}

.application-signature-caption {
  margin-top: 3px;
  font-style: italic;
}

.application-print h1,
.application-print h2,
.application-print p {
  color: #111;
}

.application-print__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 18px;
  margin-top: 18px;
}

.application-print__field {
  border-bottom: 1px solid #222;
  min-height: 42px;
  padding: 6px 2px;
}

.application-print__field label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #555;
}

.application-print__field strong {
  display: block;
  margin-top: 6px;
  font-size: 15px;
  font-weight: 700;
}

.application-print__signature {
  max-width: 280px;
  max-height: 120px;
  object-fit: contain;
  border-bottom: 1px solid #222;
  padding-bottom: 8px;
}

@media (max-width: 820px) {
  .application-grid,
  .application-print__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  body[data-page="pristopna-izjava"] .main {
    align-items: stretch;
  }

  body[data-page="pristopna-izjava"] .page-stack {
    padding: 0 0 18px;
  }

  body[data-page="pristopna-izjava"] .page-intro {
    margin: 10px 8px;
    padding: 16px 14px;
    border-radius: 20px;
  }

  .application-card {
    margin: 0 8px 12px;
    padding: 14px;
    border-radius: 22px;
  }

  .application-grid {
    gap: 16px;
  }

  .application-section-title {
    margin-top: 2px;
    font-size: 12px;
  }

  body[data-page="pristopna-izjava"] .form-group label {
    font-size: 14px;
    font-weight: 800;
  }

  body[data-page="pristopna-izjava"] .form-group input,
  body[data-page="pristopna-izjava"] .form-group select,
  body[data-page="pristopna-izjava"] .form-group textarea {
    min-height: 50px;
    border-radius: 16px;
  }

  body[data-page="pristopna-izjava"] .form-group input[type="file"] {
    min-height: 0;
    padding: 10px 0;
    border-radius: 0;
  }

  .application-terms {
    max-height: 260px;
    font-size: 14px;
    padding: 12px;
    border-radius: 16px;
  }

  .application-admin-grid {
    grid-template-columns: 1fr;
  }

  .observation-gallery {
    grid-template-columns: 1fr 1fr;
  }

  .observation-map-tools,
  .observation-coordinates {
    grid-template-columns: 1fr;
  }

  body[data-page="opazanja-zivali"] .main-inner {
    padding-left: 0;
    padding-right: 0;
  }

  body[data-page="opazanja-zivali"] .page-stack {
    padding-left: 6px;
    padding-right: 6px;
  }

  body[data-page="opazanja-zivali"] .page-intro,
  body[data-page="opazanja-zivali"] .page-card {
    margin-left: 6px;
    margin-right: 6px;
  }

  body[data-page="opazanja-zivali"] .observation-map {
    min-height: 320px;
    border-radius: 18px;
  }

  body[data-page="opazanja-zivali"] .observation-map-tools .btn {
    width: 100%;
    min-height: 50px;
  }

  .calendar-print-tools {
    grid-template-columns: 1fr;
  }

  .animal-print {
    margin: 0;
    padding: 18px 14px;
    box-shadow: none;
  }

  .animal-print__meta,
  .animal-print__images {
    grid-template-columns: 1fr;
  }

  .application-consent {
    font-size: 14px;
  }

  .signature-trigger {
    min-height: 96px;
    padding: 18px;
    border-radius: 24px;
  }

  .signature-trigger__title {
    font-size: 18px;
  }

  .signature-overlay {
    padding: 0;
    background: #0f2323;
  }

  .signature-overlay__stage {
    width: 100dvw;
    height: 100dvh;
    max-width: none;
    border-radius: 0;
    box-shadow: none;
  }

  .signature-overlay__title {
    padding: 12px 14px 4px;
    font-size: 16px;
  }

  .signature-overlay__hint {
    padding: 0 14px 10px;
    font-size: 12px;
  }

  .signature-overlay__canvas-wrap {
    padding: 0 8px 8px;
  }

  .signature-overlay__canvas {
    border-radius: 18px;
  }

  .signature-overlay__actions {
    padding: 10px 8px max(10px, env(safe-area-inset-bottom));
  }

  .signature-preview-wrap {
    padding: 8px;
    border-radius: 14px;
  }
}

@media (max-width: 700px) and (orientation: portrait) {
  .signature-overlay__stage {
    width: 100dvh;
    height: 100dvw;
    transform: rotate(90deg);
    transform-origin: center center;
  }
}

@media print {
  @page {
    size: A4 landscape;
    margin: 7mm 8mm 12mm;
  }

  body[data-page="pristopna-izjava-tisk"] .header,
  body[data-page="pristopna-izjava-tisk"] .footer,
  body[data-page="pristopna-izjava-tisk"] .page-intro,
  body[data-page="pristopna-izjava-tisk"] .page-actions {
    display: none !important;
  }

  body[data-page="opazanja-zivali-tisk"] .page-actions {
    display: none !important;
  }

  body[data-page="pristopna-izjava-tisk"] .main {
    background: #fff;
  }

  body[data-page="opazanja-zivali-tisk"] .main {
    background: #fff;
  }

  .application-print {
    margin: 0;
    width: 100%;
    box-shadow: none;
    padding: 0;
  }

  .application-print--form {
    width: 100%;
    min-height: auto;
    padding: 0;
    box-shadow: none;
  }

  .animal-print {
    margin: 0;
    width: 100%;
    padding: 0;
    box-shadow: none;
  }

  body[data-page="koledar"] .header,
  body[data-page="koledar"] .footer,
  body[data-page="koledar"] .page-intro,
  body[data-page="koledar"] .calendar-layout {
    display: none !important;
  }

  body[data-page="koledar"] .main,
  body[data-page="koledar"] .main-inner,
  body[data-page="koledar"] .page-stack {
    display: block;
    margin: 0;
    padding: 0;
    background: #fff;
    width: 100%;
    max-width: none;
  }

  body[data-page="koledar"] .calendar-print-area {
    display: block !important;
  }

  body[data-page="koledar"] .calendar-print-document {
    display: block;
    margin: 0;
    padding: 0;
    box-shadow: none;
  }

  body[data-page="koledar"] .calendar-print-month {
    page-break-inside: avoid;
  }

  body[data-page="koledar"] .calendar-print-document footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0;
    padding: 2mm 3mm 0;
    border: 0;
    border-top: 0.25mm solid #263f3b;
    border-radius: 0;
    background: #fff;
    font-size: 9px;
    line-height: 1.25;
  }

  body[data-page="koledar"] .calendar-print-document {
    padding-bottom: 7mm;
  }

  body[data-page="koledar"] .calendar-print-months {
    grid-template-columns: repeat(2, 1fr);
    gap: 6mm;
  }

  body[data-page="koledar"] .calendar-print-document--single .calendar-print-months {
    grid-template-columns: 1fr;
  }

  body[data-page="koledar"] .calendar-print-day {
    height: 17mm;
    min-height: 17mm;
    font-size: 9px;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  body[data-page="koledar"] .calendar-print-document--single .calendar-print-day {
    height: 24mm;
    min-height: 24mm;
    font-size: 11px;
  }

  body[data-page="koledar"] .calendar-print-document--single .calendar-print-month h2 {
    font-size: 16px;
    padding: 5px 9px;
  }

  body[data-page="koledar"] .calendar-print-table {
    border: 0.45mm solid #263f3b;
    border-collapse: collapse;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  body[data-page="koledar"] .calendar-print-table th,
  body[data-page="koledar"] .calendar-print-table td {
    border: 0.25mm solid #263f3b;
  }

  body[data-page="koledar"] .calendar-print-month h2 {
    font-size: 13px;
    padding: 4px 7px;
  }

  body[data-page="koledar"] .calendar-print-document header {
    margin-bottom: 4mm;
    padding-bottom: 3mm;
  }

  body[data-page="koledar"] .calendar-print-document h1 {
    font-size: 22px;
  }

  body[data-page="koledar"] .calendar-print-document--single .calendar-print-month {
    page-break-after: avoid;
  }
}

.col-zapst {
  width: 52px;
  max-width: 52px;
  text-align: center;
}

.table td.col-zapst {
  text-align: center;
}

.table-zone .table tbody tr {
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.table-zone .table tbody tr:hover {
  background: rgba(240, 247, 244, 0.9);
}

.table-zapst {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  min-height: 34px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(0, 75, 75, 0.08);
  color: #123838;
  font-weight: 900;
}

.header-nav {
  width: 100%;
}

.header-nav-inner {
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
  justify-content: center; /* ali flex-start, če želiš levo poravnano */
  padding-left: 18px;
  padding-right: 18px;
}
/* =========================
   UNIVERSAL HEADER (ALL PAGES)
========================= */
.header--universal {
  height: auto;
  padding: 0;
  display: flex;
  flex-direction: column;
  background: var(--teal-dark);
}

.header--universal .header-top {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  background: var(--teal-dark);
  color: #fff;
}

.header--universal .header-inner {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header--universal .logo-img {
  height: 48px;
  width: auto;
  display: block;
}

.header--universal .header-nav {
  width: 100%;
  background: var(--teal-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.header--universal .header-nav-inner {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 10px 18px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px 8px;
  flex-wrap: wrap;
}

/* =========================
   ADMIN UI – CARDS / CHIPS
========================= */
.card {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(242, 249, 246, 0.98));
  border-radius: 20px;
  border: 1px solid rgba(11, 75, 75, 0.14);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.08);
  padding: 18px;
}

.card-title {
  font-weight: 900;
  margin-bottom: 10px;
  color: #163737;
}

.small-hint {
  font-size: 12px;
  opacity: 0.82;
  line-height: 1.55;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 14px;
}
@media (max-width: 900px) {
  .grid-2 { grid-template-columns: 1fr; }
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.chip-btn {
  border: 2px solid rgba(0, 0, 0, 0.12);
  background: #fff;
  padding: 7px 10px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
  font-size: 12px;
}
.chip-btn:hover { filter: brightness(0.98); }
.chip-btn.primary { border-color: rgba(11, 75, 75, 0.35); }

.check-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 12px;
}
@media (max-width: 700px) {
  .check-grid { grid-template-columns: 1fr; }
}
.check-grid label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border-radius: 999px;
  border: 2px solid rgba(0,0,0,.12);
  font-weight: 800;
  font-size: 12px;
  white-space: nowrap;
}

.badge.ok { border-color: rgba(46, 204, 113, .55); }
.badge.warn { border-color: rgba(243, 156, 18, .55); }
.badge.neutral { border-color: rgba(11,75,75,.25); }

.users-layout {
  display: grid;
  grid-template-columns: 560px 1fr;
  gap: 14px;
  align-items: start;
  padding: 12px;
}
@media (max-width: 1100px) {
.users-layout { grid-template-columns: 1fr; }
}

body[data-page="uporabniki"] .users-layout {
  grid-template-columns: minmax(380px, 0.92fr) minmax(0, 1.08fr);
  gap: 18px;
}

body[data-page="uporabniki"] .users-layout > .card {
  border-radius: 28px;
  border: 1px solid rgba(0, 75, 75, 0.13);
  background:
    radial-gradient(circle at top left, rgba(246, 218, 139, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(243, 250, 247, 0.98));
  box-shadow: 0 18px 42px rgba(0, 55, 55, 0.08);
}

body[data-page="uporabniki"] .section-title {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(0, 75, 75, 0.12);
  color: #133232;
  font-size: 0.98rem;
}

body[data-page="uporabniki"] .check-grid {
  gap: 9px;
}

body[data-page="uporabniki"] .check-grid label {
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(239, 247, 244, 0.82);
  border: 1px solid rgba(0, 75, 75, 0.08);
  color: rgba(19, 50, 50, 0.82);
  font-weight: 750;
}

body[data-page="uporabniki"] .check-grid input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-right: 7px;
}

body[data-page="uporabniki"] .permissions-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

body[data-page="uporabniki"] .permission-module {
  display: grid;
  gap: 9px;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid rgba(0, 75, 75, 0.12);
  background: rgba(255, 255, 255, 0.78);
}

body[data-page="uporabniki"] .permission-module.is-disabled {
  opacity: 0.45;
}

body[data-page="uporabniki"] .permission-module__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

body[data-page="uporabniki"] .permission-module__head strong {
  color: #133232;
  font-size: 14px;
}

body[data-page="uporabniki"] .permission-module__head span {
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(0, 75, 75, 0.08);
  color: rgba(19, 50, 50, 0.72);
  font-size: 11px;
  font-weight: 900;
}

body[data-page="uporabniki"] .permission-module__checks {
  display: grid;
  gap: 7px;
}

body[data-page="uporabniki"] .permission-module__checks label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 9px 10px;
  border-radius: 14px;
  border: 1px solid rgba(0, 75, 75, 0.08);
  background: rgba(239, 247, 244, 0.82);
  color: rgba(19, 50, 50, 0.82);
  font-size: 13px;
  font-weight: 750;
}

body[data-page="uporabniki"] #module-checks label {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(238, 247, 244, 0.94));
}

@media (max-width: 1100px) {
  body[data-page="uporabniki"] .users-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 800px) {
  body[data-page="uporabniki"] .permissions-grid {
    grid-template-columns: 1fr;
  }

  .profile-grid {
    grid-template-columns: 1fr;
  }

  .profile-info__row {
    grid-template-columns: 1fr;
  }
}

.page-stack {
  padding: 0 12px 20px;
}

.page-intro {
  margin: 14px 12px 12px;
  padding: 20px 22px;
  border-radius: 24px;
  border: 1px solid rgba(0, 75, 75, 0.14);
  background:
    radial-gradient(circle at left center, rgba(11, 75, 75, 0.24), transparent 24%),
    linear-gradient(90deg, rgba(11, 75, 75, 0.20) 0%, rgba(11, 75, 75, 0.08) 18%, rgba(255, 255, 255, 0) 38%),
    radial-gradient(circle at top right, rgba(246, 218, 139, 0.22), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(240, 247, 244, 0.96));
  box-shadow: 0 16px 38px rgba(0, 55, 55, 0.08);
}

.page-intro-titlebar {
  display: flex;
  align-items: center;
  gap: 18px;
}

.page-intro-icon {
  width: 74px;
  height: 74px;
  flex: 0 0 74px;
  object-fit: contain;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  filter: drop-shadow(0 10px 22px rgba(0, 55, 55, 0.18));
}

body[data-page="opazanja-zivali"] .page-intro-icon {
  width: 92px;
  height: 92px;
  flex-basis: 92px;
}

body[data-page="letna-rekapitulacija"] .page-intro-icon {
  width: 92px;
  height: 92px;
  flex-basis: 92px;
}

.page-intro h2 {
  margin: 0;
  color: #133232;
  font-size: clamp(1.5rem, 2.4vw, 2.15rem);
}

.page-intro .small-hint,
.page-intro p {
  margin-top: 8px;
  max-width: 76ch;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(19, 50, 50, 0.78);
}

.page-card {
  margin: 0 12px 14px;
}

.page-table-wrap {
  margin: 0 12px 14px;
}

.page-flex {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
}

.page-flex.center {
  align-items: center;
}

.page-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.page-divider {
  margin: 16px 0;
  border: 0;
  height: 1px;
  background: rgba(0, 0, 0, 0.12);
}

.phone-task-cell {
  width: 104px;
  text-align: center;
}

.phone-task-toggle {
  width: 22px;
  height: 22px;
  accent-color: #2f7a3e;
  cursor: pointer;
}

.phone-task-note {
  margin: 4px 12px 0;
  color: rgba(19, 50, 50, 0.72);
  font-size: 14px;
}

.empty-state {
  margin: 0 12px 14px;
  padding: 18px 20px;
  border-radius: 20px;
  border: 1px dashed rgba(0, 75, 75, 0.2);
  background: rgba(255, 255, 255, 0.85);
  color: rgba(19, 50, 50, 0.74);
}

@media (max-width: 700px) {
  .page-intro {
    margin-left: 0;
    margin-right: 0;
    border-radius: 18px;
    padding: 18px;
  }

  .page-intro-titlebar {
    gap: 12px;
  }

  .page-intro-icon {
    width: 58px;
    height: 58px;
    flex-basis: 58px;
  }

  body[data-page="opazanja-zivali"] .page-intro-icon {
    width: 72px;
    height: 72px;
    flex-basis: 72px;
  }

  body[data-page="letna-rekapitulacija"] .page-intro-icon {
    width: 72px;
    height: 72px;
    flex-basis: 72px;
  }

  .page-card,
  .page-table-wrap {
    margin-left: 0;
    margin-right: 0;
  }
}

.table td .action-icon {
  cursor: pointer;
}
/* =========================
   HISTORY (ZGODOVINA)
========================= */
.hist-day {
  border: 1px solid rgba(0,75,75,.12);
  border-radius: 18px;
  margin-bottom: 10px;
  overflow: hidden;
  background: rgba(255,255,255,.96);
}

.hist-day summary {
  cursor: pointer;
  padding: 10px 12px;
  background: rgba(0,75,75,.06);
  font-weight: 900;
  list-style: none;
}

.hist-day summary::-webkit-details-marker { display: none; }

.hist-day-title {
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 10px;
}

.hist-count {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width: 34px;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: #0b4b4b;
  color: #fff;
  font-weight: 900;
  font-size: 12px;
}

.hist-list {
  padding: 10px 12px;
  display: grid;
  gap: 8px;
}

.hist-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 12px;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,.08);
  background: rgba(248,252,251,.9);
}

@media (max-width: 700px){
  .hist-item { grid-template-columns: 1fr; }
}

.hist-left { display:flex; flex-direction: column; gap: 4px; }
.hist-time { font-weight: 900; }
.hist-user { font-size: 12px; opacity: .75; font-weight: 800; }

.hist-action { font-weight: 900; margin-bottom: 4px; }

@media (max-width: 1180px) {
  .header--universal .header-inner {
    padding: 0 18px;
  }
}

@media (max-width: 860px) {
  .header--universal .header-top {
    min-height: auto;
    padding: 12px 0;
  }

  .header--universal .header-inner {
    flex-direction: column;
    gap: 12px;
    justify-content: center;
  }

  .header-right {
    flex-wrap: wrap;
    justify-content: center;
  }

  .global-member-search {
    order: 3;
    width: min(420px, 92vw);
  }

  .header--universal .header-nav-inner {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 10px;
  }
}

@media (max-width: 980px) {
  .list-layout {
    grid-template-columns: 1fr;
    padding: 12px;
  }

  .filters {
    position: static;
    top: auto;
  }

  .calendar-layout {
    grid-template-columns: 1fr;
  }

  .calendar-panel,
  .calendar-side {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .main-inner.full-width,
  .main-inner.wide {
    padding-left: 0;
    padding-right: 0;
  }

  .page-stack {
    padding: 0 10px 18px;
  }

  .page-intro {
    margin: 12px 10px;
    padding: 16px;
    border-radius: 18px;
  }

  .page-card,
  .page-table-wrap {
    margin: 0 10px 12px;
  }

  .card {
    padding: 14px;
    border-radius: 16px;
  }

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

  .btn {
    min-height: 42px;
    padding: 10px 16px;
  }

  .btn-sm,
  .chip-btn {
    min-height: 38px;
  }

  .filters-actions {
    grid-template-columns: 1fr;
  }

  .table {
    font-size: 13px;
  }

  .table th,
  .table td {
    padding: 8px 8px;
  }

  .table-wrapper {
    border-radius: 16px;
  }

  .table-actions {
    gap: 10px;
    min-width: 110px;
  }

  .member-tools {
    min-width: 0;
    justify-content: center;
  }

  .member-tool-btn {
    min-height: 34px;
    padding: 7px 11px;
    font-size: 12px;
  }

  .action-icon {
    font-size: 18px;
  }

  .users-layout {
    padding: 10px;
  }

  .page-flex {
    gap: 12px;
  }

  .page-flex > * {
    min-width: 0;
  }

  .page-flex > [style*="min-width:320px"],
  .page-flex > [style*="min-width:300px"] {
    min-width: 0 !important;
    width: 100%;
  }

  .grid-2,
  .check-grid,
  .filters-actions {
    grid-template-columns: 1fr;
  }

  .chip-row {
    gap: 10px;
  }

  .calendar-toolbar {
    grid-template-columns: 1fr;
  }

  .cal-left,
  .cal-right {
    justify-content: center;
    flex-wrap: wrap;
  }

  .cal-title {
    order: -1;
  }

  .cal-row {
    flex-direction: column;
  }

  .calendar-panel {
    overflow-x: auto;
  }

  .calendar-grid {
    min-width: 620px;
  }

  .calendar-week {
    min-width: 620px;
  }
}

@media (max-width: 560px) {
  .header--universal .header-top {
    padding: 10px 0;
  }

  .header--universal .header-inner {
    padding-left: 12px;
    padding-right: 12px;
  }

  .header--universal .header-nav-inner {
    padding: 8px 12px 10px;
    gap: 8px;
  }

  .header-nav a {
    font-size: 12px;
    padding: 8px 12px;
  }

  .logo-img {
    height: 40px;
  }

  .user-icon {
    width: 28px;
    height: 28px;
    font-size: 14px;
  }

  .btn-logout,
  .btn-header-action {
    padding: 7px 12px;
    font-size: 12px;
  }

  #header-username {
    font-size: 12px;
  }

  .page-intro h2 {
    font-size: 1.35rem;
  }

  .page-intro,
  .page-card,
  .page-table-wrap,
  .empty-state {
    margin-left: 8px;
    margin-right: 8px;
  }

  .page-stack {
    padding: 0 8px 16px;
  }

  .filters,
  .card {
    padding: 12px;
  }

  .form-group input,
  .form-group select,
  .form-group textarea,
  .cal-form input,
  .cal-form select,
  .cal-form textarea {
    min-height: 44px;
    font-size: 16px;
  }

  .cal-form textarea,
  .form-group textarea {
    min-height: 110px;
  }

  .filters-header,
  .page-flex,
  .member-head {
    flex-direction: column;
    align-items: stretch;
  }

  .chip-row,
  .page-actions,
  .actions-row,
  .inline-actions {
    flex-direction: column;
  }

  .chip-row > *,
  .page-actions > *,
  .actions-row > *,
  .inline-actions > *,
  .btn-row > * {
    width: 100%;
  }

  .list-layout,
  .users-layout,
  .print-center-layout {
    padding: 8px;
    gap: 10px;
  }

  .print-center-layout {
    grid-template-columns: 1fr;
  }

  .print-center-layout .card:first-child {
    position: static;
  }

  .print-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .officials-shell,
  .officials-toolbar {
    display: grid;
    grid-template-columns: 1fr;
  }

  .edit-admin-panel {
    grid-template-columns: 1fr;
  }

  .awards-hero,
  .awards-card-head {
    display: grid;
    grid-template-columns: 1fr;
  }

  .awards-hero-mark {
    width: 58px;
    height: 58px;
    border-radius: 20px;
    font-size: 38px;
  }

  .awards-form-grid {
    grid-template-columns: 1fr;
  }

  .awards-actions {
    justify-content: stretch;
  }

  .awards-toggle {
    justify-content: center;
    width: 100%;
  }

  .workhours-hero,
  .workhours-chart-head {
    display: grid;
    grid-template-columns: 1fr;
  }

  .workhours-hero-badge {
    width: 86px;
    height: 86px;
    border-radius: 24px;
  }

  .workhours-hero-badge strong {
    font-size: 34px;
  }

  .workhours-stat-grid,
  .workhours-chart-grid {
    grid-template-columns: 1fr;
  }

  .workhours-stat-card {
    min-height: auto;
  }

  .fee-hero {
    display: grid;
    grid-template-columns: 1fr;
  }

  .fee-hero-badge {
    width: 86px;
    height: 86px;
    border-radius: 24px;
  }

  .fee-hero-badge strong {
    font-size: 38px;
  }

  .fee-stat-grid,
  .fee-chart-grid {
    grid-template-columns: 1fr;
  }

  .fee-stat-card {
    min-height: auto;
  }

  .licenses-hero {
    display: grid;
    grid-template-columns: 1fr;
  }

  .licenses-hero-badge {
    width: 86px;
    height: 86px;
    border-radius: 24px;
  }

  .licenses-hero-badge strong {
    font-size: 34px;
  }

  .licenses-stat-grid {
    grid-template-columns: 1fr;
  }

  .licenses-stat-card {
    min-height: auto;
  }

  .statistics-hero,
  .statistics-toolbar {
    display: grid;
    grid-template-columns: 1fr;
  }

  .statistics-hero-badge {
    width: 90px;
    height: 90px;
    border-radius: 24px;
  }

  .statistics-kpi-grid,
  .statistics-grid,
  .statistics-grid--wide,
  .statistics-compare,
  .statistics-mini-grid {
    grid-template-columns: 1fr;
  }

  .system-queue-hero,
  .system-queue-toolbar {
    display: grid;
    grid-template-columns: 1fr;
  }

  .system-queue-badge {
    width: 86px;
    height: 86px;
    border-radius: 24px;
  }

  .member-profile-hero,
  .member-profile-grid,
  .member-profile-kpi-grid {
    grid-template-columns: 1fr;
  }

  .member-profile-actions {
    min-width: 0;
  }

  .member-profile-photo {
    width: 104px;
    height: 104px;
    border-radius: 28px;
  }

  .member-profile-list-row {
    display: grid;
  }

  .member-profile-list-row strong {
    text-align: left;
  }

  .filters-search input {
    min-height: 44px;
    font-size: 16px;
  }

  .calendar-panel,
  .calendar-side {
    padding: 12px;
    border-radius: 16px;
  }

  .cal-btn {
    min-height: 42px;
  }

  .table {
    font-size: 12px;
  }

  .table-zone .table-wrapper {
    display: none;
  }

  .member-mobile-list {
    display: grid;
  }

  body[data-page="uporabniki"] .users-layout > .card:last-child .table-wrapper,
  body[data-page="delovne-ure"] .table-wrapper.page-table-wrap,
  body[data-page="clanarina"] .table-wrapper.page-table-wrap,
  body[data-page="telefoni-clani"] #phone-table-wrap .table-wrapper {
    display: none;
  }

  .page-table-wrap.member-mobile-list,
  #workhours-mobile-cards.page-table-wrap,
  #fees-mobile-cards.page-table-wrap {
    display: grid;
    margin-top: 0;
  }

  .table th,
  .table td {
    padding: 7px 6px;
  }

  .hist-day summary,
  .hist-list {
    padding-left: 10px;
    padding-right: 10px;
  }
}

@media (max-width: 420px) {
  .page-intro h2 {
    font-size: 1.2rem;
  }

  .dashboard-stat-card strong {
    font-size: 1.5rem;
  }

  .table th,
  .table td {
    padding: 6px 5px;
  }

  .header-right {
    gap: 10px;
  }
}
.hist-details { font-size: 13px; opacity: .85; }

.archive-panel {
  background: #ffffff;
  border: 2px solid rgba(11, 75, 75, .15);
  border-radius: 18px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .08);
  overflow: hidden;
}

.archive-panel + .archive-panel {
  margin-top: 12px;
}

.archive-panel__summary {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  list-style: none;
  font-weight: 950;
  color: #123736;
  background: linear-gradient(135deg, rgba(228, 244, 235, .95), rgba(255, 255, 255, .98));
}

.archive-panel__summary::-webkit-details-marker {
  display: none;
}

.archive-panel__summary span:last-child {
  border-radius: 999px;
  background: rgba(11, 75, 75, .11);
  color: #0b4b4b;
  font-size: 13px;
  padding: 6px 10px;
  white-space: nowrap;
}

.archive-panel__body {
  padding: 12px;
}
.badge.neutral { border-color: rgba(11,75,75,.25); }
td .badge { margin-right: 6px; margin-bottom: 6px; }
/* ČLANARINA: dodatna barva za CASH */
.fee-box.blue { border-color: #3498db; }     /* modra */
.fee-pick.blue { background: #3498db; border-color: #3498db; }

.badge.cash { border-color: rgba(52, 152, 219, .65); }
.badge.auto {
  border-color: rgba(241, 196, 15, .85);
  background: rgba(241, 196, 15, .18);
  color: #6b4e00;
}
