:root {
  --admin-brand: #007aff;
  --admin-brand-dark: #005ecb;
  --admin-brand-rgb: 0, 122, 255;
  --admin-scrollbar-thumb: var(--admin-brand);
  --admin-scrollbar-thumb-hover: var(--admin-brand-dark);
  --admin-scrollbar-track: #d7e5e5;
}

html {
  scrollbar-gutter: auto !important;
}

.admin-muted { color: #5b6f88; }
.admin-text-danger { color: #b42318; display: inline-block; margin-top: 4px; font-size: 12px; }

.admin-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

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

.admin-kpi-card {
  border: 1px solid #dbe5f1;
  border-radius: 12px;
  padding: 14px;
  background: #f8fbff;
}

.admin-dashboard-welcome {
  margin-bottom: 14px;
}

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

.admin-dashboard-focus-card {
  min-width: 0;
}

.admin-dashboard-focus-head h2 {
  margin: 0 0 4px;
}

.admin-dashboard-focus-head .admin-badge {
  flex-shrink: 0;
}

.admin-dashboard-focus-head .admin-badge.admin-badge-warning-soft {
  color: var(--admin-brand);
  border-color: rgba(var(--admin-brand-rgb), 0.35);
  background: rgba(var(--admin-brand-rgb), 0.08);
}

.admin-dashboard-table {
  min-width: 0;
}

.admin-dashboard-table tbody tr:nth-child(odd) td {
  background: #ffffff;
}

.admin-dashboard-table tbody tr:nth-child(even) td {
  background: #f5f8ff;
}

.admin-dashboard-table tbody tr:last-child td {
  border-bottom: 1px solid #d7e0ea;
}

.admin-dashboard-subline {
  margin-top: 2px;
  font-size: 12px;
}

.admin-dashboard-subline-xs {
  font-size: 11px;
  line-height: 1.25;
}

.admin-dashboard-focus-footer {
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.admin-dashboard-footnote {
  font-size: 12px;
}

.admin-dashboard-empty-state {
  margin: 8px 0 0;
  min-height: 200px;
  padding: 24px 18px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.admin-dashboard-empty-state strong {
  font-size: clamp(22px, 2.2vw, 28px);
}

.admin-link-inline {
  color: var(--admin-brand);
  font-weight: 700;
  text-decoration: none;
}

.admin-dashboard-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.admin-dashboard-link::after {
  content: "→";
  display: inline-block;
  transition: transform 0.18s ease;
}

.admin-link-inline:hover,
.admin-link-inline:focus-visible {
  color: var(--admin-brand-dark);
  text-decoration: underline;
}

.admin-dashboard-link:hover::after,
.admin-dashboard-link:focus-visible::after {
  transform: translateX(3px);
}

.admin-dashboard-link:hover,
.admin-dashboard-link:focus-visible {
  text-decoration: none;
}

.admin-card-spaced {
  padding: 16px 18px;
}

.admin-table-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  justify-content: flex-end;
  align-items: center;
  text-align: right;
  white-space: nowrap;
}

.admin-action-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  color: #5a6f8a;
  background: transparent;
  border: 0;
  padding: 0;
  text-decoration: none;
  cursor: pointer;
}

.admin-action-icon svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  cursor: pointer;
}

.admin-action-icon svg.admin-icon-fill-pdf,
.admin-action-btn svg.admin-icon-fill-pdf {
  fill: currentColor !important;
  stroke: none !important;
  stroke-width: 0 !important;
}

.admin-action-icon:hover,
.admin-action-icon:focus-visible {
  color: var(--admin-brand);
}

.admin-action-icon.is-disable {
  color: var(--admin-brand);
}

.admin-action-icon.is-enable {
  color: #16a34a;
}

.admin-action-icon.is-enable:hover,
.admin-action-icon.is-enable:focus-visible {
  color: #15803d;
}

.admin-action-icon.is-disabled {
  opacity: 0.35;
  pointer-events: auto;
  cursor: pointer;
}

.admin-action-icon.has-alert-dot {
  position: relative;
}

.admin-action-icon.has-alert-dot::after {
  content: "";
  position: absolute;
  top: -1px;
  right: -1px;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--admin-brand);
}

.admin-badge-compact {
  font-size: 11px;
  line-height: 1;
  padding: 4px 8px;
}

.admin-badge-warning-soft {
  color: #9a5a00;
  border: 1px solid #f5ce8b;
  background: #fff3dd;
}

.admin-ods-ref-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.admin-actions-dropdown form {
  margin: 0;
}

.admin-table-actions form {
  margin: 0;
}

/* Table style aligned to portal "corsi/corsisti" look */
.admin-list-card.is-list-view .admin-table-wrap {
  border: 1px solid var(--admin-border);
  border-radius: var(--admin-radius);
  background: #fff;
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  min-width: 700px;
  border-collapse: collapse;
  background: #fff;
}

.admin-table th,
.admin-table td {
  padding: 13px 4px;
  text-align: left;
  border-bottom: 1px solid #d7e0ea;
}

.admin-table th {
  background: #fff;
  color: #536883;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.admin-table td {
  background: #fff;
  font-size: 15px;
  color: #1f3452;
}

.admin-table td:first-child,
.admin-table th:first-child {
  padding-left: 16px;
}

.admin-table td:last-child,
.admin-table th:last-child {
  padding-right: 16px;
}

.admin-table tbody tr:nth-child(odd),
.admin-table tbody tr:nth-child(even) {
  background: #fff;
}

.admin-table tbody tr:nth-child(odd),
.admin-table tbody tr:nth-child(odd) td {
  background: #fff;
}

.admin-table tbody tr:nth-child(even),
.admin-table tbody tr:nth-child(even) td {
  background: #f5f8ff;
}

.admin-table tbody tr:hover td {
  background: #fff;
}

.admin-table tbody tr.admin-row-link:hover td,
.admin-table tbody tr.admin-row-link:focus-visible td {
  background: rgba(var(--admin-brand-rgb), 0.1);
  color: var(--admin-brand-dark);
}

.admin-table .admin-actions-col-header,
.admin-table .admin-actions-col {
  width: 126px;
  text-align: right;
}

.admin-table .admin-table-actions {
  width: 100%;
  justify-content: flex-end;
  gap: 6px;
}

.admin-table .admin-action-icon {
  color: #1f3b5f;
  opacity: 0.45;
  transition: opacity 0.18s ease, color 0.18s ease;
}

.admin-table .admin-action-icon:hover,
.admin-table .admin-action-icon:focus-visible {
  color: var(--admin-brand-dark);
  opacity: 1;
}

.admin-table .admin-action-icon.is-disable {
  color: var(--admin-brand);
}

.admin-table .admin-action-icon.is-enable {
  color: #16a34a;
}

.admin-table .admin-action-icon.is-enable:hover,
.admin-table .admin-action-icon.is-enable:focus-visible {
  color: #15803d;
}

.admin-table .admin-action-icon.is-disabled {
  opacity: 0.35;
}

.admin-infinite-status:empty {
  display: none;
}

.admin-infinite-list-scope[data-list-key="assets"] .admin-table:has(tbody .admin-empty-row) thead {
  display: none;
}

.admin-infinite-list-scope .admin-table:has(tbody .admin-empty-row) thead {
  display: none;
}

.admin-table-wrap-flat {
  border: 0;
  border-radius: 0;
}

.admin-internal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-internal-vendor-badge {
  display: inline-flex;
  align-items: center;
  border: 1px solid #8ad0b2;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 700;
  color: #0e6655;
  background: #dcf6ef;
}

.admin-internal-tools {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: nowrap;
  min-width: 0;
}

.admin-filter-rail-wrap-compact .admin-filter-rail-compact {
  min-height: 34px;
  padding: 2px 3px;
}

.admin-filter-rail-wrap-compact .admin-filter-rail-item {
  height: 28px;
  padding: 0 10px;
  font-size: 12px;
}

.admin-filter-rail-wrap-compact .admin-filter-rail-count {
  min-width: 18px;
  height: 16px;
  font-size: 9px;
  padding: 0 5px;
}

.admin-internal-search {
  width: 280px;
}

.admin-internal-search.admin-filters.admin-filters-plain {
  width: 280px;
  max-width: 280px;
  flex: 0 0 280px;
}

.admin-internal-search .admin-form-group input {
  height: 34px;
  min-height: 34px;
  line-height: 32px;
  font-size: 14px;
  padding: 0 14px;
}

.admin-internal-tools .admin-btn-sm {
  line-height: 1.1;
  min-height: 34px;
  white-space: nowrap;
  flex: 0 0 auto;
}

.admin-internal-tools .admin-btn-sm svg {
  width: 14px;
  height: 14px;
}

.admin-internal-separator {
  border-top: 1px solid #dbe5f1;
  margin: 12px 0 10px;
}

@media (max-width: 992px) {
  .admin-card-spaced {
    padding: 14px;
  }

  .admin-internal-head {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-internal-tools {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .admin-internal-search {
    width: 100%;
  }

  .admin-internal-search.admin-filters.admin-filters-plain {
    width: 100%;
    max-width: 100%;
    flex: 1 1 100%;
  }
}

@media (max-width: 768px) {
  .admin-internal-tools {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    gap: 10px;
    width: 100%;
    align-items: center;
  }

  .admin-internal-tools .admin-adaptive-filter-menu {
    grid-column: 1;
    width: 100%;
    min-width: 0;
  }

  .admin-internal-tools .admin-internal-search,
  .admin-internal-tools .admin-internal-search.admin-filters.admin-filters-plain {
    grid-column: 2;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    flex: 0 0 auto;
  }

  .admin-internal-tools .admin-list-create-btn {
    grid-column: 1 / -1;
    width: 100%;
    justify-content: center;
  }
}

.admin-permission-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 12px;
  border-bottom: 1px solid #e8eef6;
}

.admin-permission-row:last-child {
  border-bottom: 0;
}

.admin-permission-row-head {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.admin-permission-row-radios {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

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

.admin-permission-card {
  border: 1px solid #dbe5f1;
  border-radius: 14px;
  background: #fff;
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.admin-permission-card-head h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
  color: #1f3452;
}

.admin-permission-card-head small {
  display: block;
  margin-top: 4px;
  color: #6c7f98;
  font-size: 14px;
  font-weight: 700;
}

.admin-permission-card-toggle {
  display: inline-flex;
  width: auto;
  border: 1px solid #e0cad1;
  border-radius: 999px;
  padding: 1px;
  gap: 1px;
  flex: 0 0 auto;
  margin-left: auto;
  margin-right: 0;
}

.admin-permission-pill {
  flex: 0 0 auto;
  margin: 0;
  cursor: pointer;
}

.admin-permission-pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.admin-permission-pill span {
  display: inline-flex;
  width: auto;
  align-items: center;
  justify-content: center;
  min-height: 20px;
  padding: 0 7px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 10px;
  line-height: 1;
  color: #4e6078;
  transition: all 0.2s ease;
}

.admin-permission-pill input:checked + span {
  background: var(--admin-brand);
  color: #fff;
}

.admin-permission-pill input:focus-visible + span {
  outline: 2px solid rgba(var(--admin-brand-rgb), 0.3);
  outline-offset: 2px;
}

.admin-form-group-wide {
  grid-column: 1 / -1;
}

.admin-form-group-spacer {
  visibility: hidden;
  pointer-events: none;
}

.admin-type-radios {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-type-radio {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.admin-type-radio input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.admin-type-radio span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid #d7e2ef;
  background: #fff;
  color: #4f647f;
  font-size: 13px;
  font-weight: 700;
  transition: all 0.2s ease;
}

.admin-type-radio input:checked + span {
  border-color: var(--admin-brand);
  color: var(--admin-brand);
  background: rgba(var(--admin-brand-rgb), 0.08);
}

.admin-type-radio input:focus-visible + span {
  outline: 2px solid rgba(var(--admin-brand-rgb), 0.3);
  outline-offset: 2px;
}

.admin-permissions-grid[data-permissions-readonly="1"] .admin-permission-pill {
  cursor: default;
}

.admin-entity-card-asset {
  overflow: hidden;
  padding: 0;
}

.admin-entity-card-asset .admin-entity-card-head,
.admin-entity-card-asset .admin-entity-card-title,
.admin-entity-card-asset .admin-entity-card-meta,
.admin-entity-card-asset .admin-entity-card-badges {
  padding-left: 14px;
  padding-right: 14px;
}

.admin-entity-card-asset .admin-entity-card-head {
  padding-top: 12px;
}

.admin-entity-card-asset .admin-entity-card-title {
  margin-top: 4px;
}

.admin-entity-card-asset .admin-entity-card-badges {
  padding-bottom: 14px;
}

.admin-entity-card-asset .admin-entity-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px solid #dce5f2;
  padding-left: 14px;
  padding-right: 14px;
  padding-bottom: 14px;
}

.admin-entity-card-asset .admin-entity-card-footer .admin-entity-card-badges {
  padding: 0;
}

.admin-asset-address-lines {
  display: grid;
  gap: 2px;
}

.admin-asset-address-lines span {
  display: block;
}

.admin-entity-card-asset .admin-entity-card-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

.admin-entity-card-asset .admin-entity-card-actions form {
  margin: 0;
}

.admin-entity-card-utente .admin-entity-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px solid #dce5f2;
}

.admin-entity-card-utente .admin-entity-card-footer .admin-entity-card-badges {
  margin: 0;
}

.admin-entity-card-utente .admin-entity-card-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

.admin-entity-card-utente .admin-entity-card-actions form {
  margin: 0;
}

.admin-entity-card-vendor .admin-entity-card-meta-item-wide {
  grid-column: 1 / -1;
}

.admin-entity-card-vendor .admin-entity-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px solid #dce5f2;
}

.admin-entity-card-vendor .admin-entity-card-footer .admin-entity-card-badges {
  margin: 0;
}

.admin-entity-card-vendor .admin-entity-card-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

.admin-entity-card-vendor .admin-entity-card-actions form {
  margin: 0;
}

.admin-entity-card-ods .admin-entity-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px solid #dce5f2;
}

.admin-entity-card-ods .admin-entity-card-footer .admin-entity-card-badges {
  margin: 0;
}

.admin-entity-card-ods .admin-entity-card-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

.admin-entity-card-ods .admin-entity-card-actions form {
  margin: 0;
}

.admin-entity-card-ods .admin-entity-card-subtitle {
  font-size: 15px;
  line-height: 1.35;
}

.admin-entity-card-maintenance .admin-entity-card-subtitle {
  font-size: 15px;
  line-height: 1.35;
}

.admin-entity-card-maintenance .admin-entity-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px solid #dce5f2;
}

.admin-entity-card-maintenance .admin-entity-card-footer .admin-entity-card-badges {
  margin: 0;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.admin-entity-card-maintenance .admin-entity-card-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

[data-list-key="maintenances"] .admin-maintenance-blocked-row td {
  opacity: 0.42;
}

[data-list-key="maintenances"] .admin-maintenance-ods-warning-row td {
  padding-top: 10px;
  padding-bottom: 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--admin-brand);
  background: rgba(var(--admin-brand-rgb), 0.08);
  border-top: 1px solid #f1c8cf;
  border-bottom: 1px solid #f1c8cf;
}

[data-list-key="maintenances"] .admin-maintenance-ods-warning-row a {
  color: var(--admin-brand);
  text-decoration: underline;
}

.admin-entity-card-maintenance.is-blocked {
  position: relative;
  overflow: hidden;
}

.admin-entity-card-maintenance.is-blocked > :not(.admin-maintenance-card-overlay) {
  opacity: 0.38;
}

.admin-maintenance-card-overlay {
  position: absolute;
  inset: 0;
  z-index: 6;
  background: rgba(245, 248, 253, 0.8);
  border: 1px solid rgba(var(--admin-brand-rgb), 0.2);
  border-radius: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
}

.admin-maintenance-card-overlay p {
  margin: 0;
  color: var(--admin-brand);
  font-weight: 700;
  line-height: 1.45;
  font-size: 14px;
}

.admin-maintenance-card-overlay a {
  color: var(--admin-brand);
  text-decoration: underline;
}

[data-list-key="maintenances"] .admin-table tbody td:nth-child(2),
[data-list-key="maintenances"] .admin-table tbody td:nth-child(3) {
  line-height: 1.35;
}

[data-list-key="service_orders"] .admin-table tbody td:nth-child(4) {
  font-size: 15px;
  line-height: 1.35;
}

.admin-asset-card-map {
  position: relative;
  width: 100%;
  height: 160px;
  border-bottom: 1px solid #dce5f2;
  background: #eef3f9;
  overflow: hidden;
}

.admin-asset-card-map-skeleton {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #e7edf6 0%, #f4f7fb 50%, #e7edf6 100%);
  background-size: 240px 100%;
  animation: adminAssetMapSkeleton 1.1s linear infinite;
  z-index: 2;
  pointer-events: none;
}

.admin-asset-card-map img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: relative;
  z-index: 1;
}

.admin-asset-card-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.admin-asset-card-map-empty {
  position: relative;
  z-index: 3;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #637895;
  background: linear-gradient(140deg, #edf2f9 0%, #e3ebf5 100%);
}

@keyframes adminAssetMapSkeleton {
  0% {
    background-position: -240px 0;
  }
  100% {
    background-position: calc(100% + 240px) 0;
  }
}

@media (max-width: 1200px) {
  .admin-permissions-grid {
    grid-template-columns: 1fr;
  }

  .admin-permission-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-permission-card-toggle {
    margin-left: 0;
  }
}

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

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

.admin-vendor-col-2 {
  grid-column: span 2;
}

.admin-vendor-col-4 {
  grid-column: span 4;
}

.admin-vendor-col-6 {
  grid-column: span 6;
}

.admin-form-grid-asset {
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.admin-form-grid-signer {
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.admin-col-span-2 {
  grid-column: span 2;
}

.admin-col-span-3 {
  grid-column: span 3;
}

.admin-col-span-4 {
  grid-column: span 4;
}

.admin-col-span-5 {
  grid-column: span 5;
}

.admin-col-span-6 {
  grid-column: span 6;
}

.admin-col-span-8 {
  grid-column: span 8;
}

.admin-col-span-12 {
  grid-column: 1 / -1;
}

.admin-form-group-address {
  position: relative;
}

.admin-form-group .custom-select {
  position: relative;
  z-index: 5;
}

.admin-form-group .custom-select-dropdown {
  z-index: 6 !important;
}

.admin-form-group .custom-select-trigger [data-custom-select-label] {
  display: block;
  flex: 1 1 auto;
  min-width: 0 !important;
  max-width: calc(100% - 24px) !important;
  padding-right: 0;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.admin-modali-body .custom-select-trigger span,
.admin-modali-body .custom-select-trigger [data-custom-select-label] {
  display: block !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  max-width: calc(100% - 24px) !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.is-force-hidden {
  display: none !important;
}

.admin-form-group.ods-recipient-group {
  position: relative;
  z-index: 10;
}

.admin-form-group.ods-maintenance-group {
  position: relative;
  z-index: 13;
}

.admin-form-group.ods-maintenance-group .custom-select {
  z-index: 14;
}

.admin-form-group.ods-maintenance-group .custom-select-dropdown {
  z-index: 15 !important;
}

.admin-form-group.ods-category-group {
  position: relative;
  z-index: 13;
}

.admin-form-group.ods-category-group .custom-select {
  z-index: 14;
}

.admin-form-group.ods-category-group .custom-select-dropdown {
  z-index: 15 !important;
}

.admin-form-group.ods-category-group .custom-select-multi-values {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  width: calc(100% - 26px);
  min-height: 28px;
  row-gap: 6px;
}

.admin-form-group.ods-category-group .custom-select-multi-placeholder {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
  width: 100%;
  font-size: 16px !important;
}

.admin-modali-body .admin-form-group.ods-category-group .custom-select-multi-placeholder {
  font-size: 16px !important;
}

.admin-form-group.ods-category-group .ods-category-chip {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  min-height: 26px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  color: #344a67;
  background: #eef3fb;
  border: 1px solid #c8d6ea;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-form-group.ods-category-group .ods-category-chip-text {
  display: inline-block;
  max-width: 180px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-form-group.ods-category-group .ods-category-chip-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  margin-left: 6px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #5b708c;
  cursor: pointer;
  padding: 0;
}

.admin-form-group.ods-category-group .ods-category-chip-remove svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.admin-form-group.ods-category-group .ods-category-chip-remove:hover,
.admin-form-group.ods-category-group .ods-category-chip-remove:focus-visible {
  background: rgba(var(--admin-brand-rgb), 0.12);
  color: var(--admin-brand);
  outline: none;
}

.custom-select-item.admin-ods-vendor-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.custom-select-item.admin-ods-vendor-item.is-disabled {
  opacity: 0.52;
  cursor: not-allowed;
}

.custom-select-item.admin-ods-vendor-item.is-disabled:hover,
.custom-select-item.admin-ods-vendor-item.is-disabled:focus-visible {
  background: transparent;
  color: #20334b;
}

.admin-ods-vendor-item-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-ods-vendor-item-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1px 5px;
  border-radius: 999px;
  border: 1px solid rgba(184, 36, 36, 0.34);
  background: rgba(184, 36, 36, 0.1);
  color: #9f1239;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  flex: 0 0 auto;
}

body.admin-theme-dark .custom-select-item.admin-ods-vendor-item.is-disabled:hover,
body.admin-theme-dark .custom-select-item.admin-ods-vendor-item.is-disabled:focus-visible {
  color: #c8d5ea;
}

body.admin-theme-dark .admin-ods-vendor-item-badge {
  border-color: rgba(248, 113, 113, 0.42);
  background: rgba(127, 29, 29, 0.36);
  color: #fecaca;
}


.admin-form-group.ods-recipient-group .custom-select {
  z-index: 11;
}

.admin-form-group.ods-recipient-group .custom-select-dropdown {
  z-index: 12 !important;
}

.admin-form-group[data-ods-vendor-wrap] {
  position: relative;
  z-index: 16;
}

.admin-form-group[data-ods-vendor-wrap] .custom-select {
  z-index: 17;
}

.admin-form-group[data-ods-vendor-wrap] .custom-select-dropdown {
  z-index: 18 !important;
}

.admin-form[data-ods-form] fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-inline-size: 0;
}

.admin-form.is-ods-locked fieldset input,
.admin-form.is-ods-locked fieldset select,
.admin-form.is-ods-locked fieldset textarea,
.admin-form.is-ods-locked fieldset .custom-select-trigger {
  border-color: #d7dee7 !important;
  box-shadow: none !important;
  background: #f8fafc !important;
}

.admin-form.is-ods-locked fieldset .custom-select.is-disabled .custom-select-trigger,
.admin-form.is-ods-locked fieldset .custom-select .custom-select-trigger:disabled {
  opacity: 1;
  color: #5f738f;
}

.admin-alert-lock-danger {
  border: 1px solid var(--admin-brand);
  border-radius: 12px;
  color: var(--admin-brand);
  background: rgba(var(--admin-brand-rgb), 0.06);
}

.admin-form.is-ods-locked .admin-richtext-wrapper .ql-toolbar {
  pointer-events: none;
  opacity: 0.55;
}

.admin-form.is-ods-locked .admin-richtext-wrapper .ql-editor {
  pointer-events: none;
  user-select: none;
  background: #f8fafc;
}

.admin-form.is-ods-locked .admin-richtext-wrapper {
  border: 1px solid #d7dee7;
  border-radius: 10px;
  overflow: hidden;
  background: #f8fafc !important;
}

.admin-form.is-ods-locked .admin-richtext-wrapper .ql-toolbar.ql-snow,
.admin-form.is-ods-locked .admin-richtext-wrapper .ql-container.ql-snow {
  border-color: transparent !important;
  background: #f8fafc !important;
}

.admin-form.is-ods-locked .admin-richtext-wrapper .ql-container.ql-snow {
  border-top: 0 !important;
  opacity: 1;
  border-bottom: 0 !important;
  border-left: 0 !important;
  border-right: 0 !important;
}

.admin-form.is-ods-locked .admin-richtext-wrapper .ql-toolbar.ql-snow {
  border: 0 !important;
  border-bottom: 1px solid #d7dee7 !important;
}

.admin-form.is-ods-locked .admin-richtext-wrapper .ql-editor {
  color: #5f738f;
  background: #f8fafc !important;
  opacity: 1;
}

.admin-remote-select .custom-select-trigger [data-city-label],
.admin-remote-select .custom-select-trigger [data-cap-label] {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-remote-select-status {
  padding: 8px 10px 4px;
  font-size: 12px;
  color: #6a7f9a;
  font-weight: 600;
}

.admin-address-input-wrap {
  position: relative;
}

.admin-address-input-wrap input[data-address-input] {
  padding-right: 44px;
  transition: opacity 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.admin-address-input-wrap.is-selected input[data-address-input] {
  opacity: 0.72;
  background: #f7fafc;
  border-color: #c9d7ea;
  cursor: default;
}

.admin-address-clear {
  position: absolute;
  top: 50%;
  right: 10px;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid #d2ddeb;
  background: #fff;
  color: #5b718d;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-50%);
  cursor: pointer;
}

.admin-address-clear svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.admin-address-clear[hidden] {
  display: none !important;
}

.admin-address-clear:hover,
.admin-address-clear:focus-visible {
  border-color: var(--admin-brand);
  color: var(--admin-brand);
  outline: none;
}

.admin-address-popover {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 30;
  background: #fff;
  border: 1px solid #d8e2ef;
  border-radius: 12px;
  box-shadow: 0 14px 28px rgba(20, 36, 60, 0.14);
  max-height: 260px;
  overflow-y: auto;
  padding: 6px;
}

.admin-address-result {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  width: 100%;
  border: 0;
  border-radius: 10px;
  background: transparent;
  text-align: left;
  padding: 10px 10px;
  cursor: pointer;
}

.admin-address-result strong {
  font-size: 14px;
  line-height: 1.25;
  color: #1f3452;
}

.admin-address-result span {
  font-size: 12px;
  color: #5f738f;
  line-height: 1.2;
}

.admin-address-result:hover,
.admin-address-result:focus-visible,
.admin-address-result.is-active {
  background: rgba(var(--admin-brand-rgb), 0.08);
  outline: none;
}

.admin-address-info {
  padding: 10px 10px;
  font-size: 13px;
  color: #617794;
  font-weight: 700;
}

.admin-address-house {
  margin-top: 0;
}

.admin-address-house > label {
  display: inline-block;
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  color: #1f3452;
}

.admin-address-house-field {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-width: 0;
  padding: 0 8px;
  border: 1px solid #cdd9e8;
  border-radius: 10px;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.admin-address-house-prefix {
  font-size: 12px;
  font-weight: 700;
  color: #5f738f;
  user-select: none;
}

.admin-address-house-field input {
  flex: 1 1 auto;
  min-width: 0;
  height: 34px;
  border: 0 !important;
  border-radius: 0 !important;
  outline: none;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  line-height: 34px !important;
  font-weight: 700;
  color: #1f3452;
}

.admin-address-house-field input:focus,
.admin-form .admin-address-house-field input:focus,
.admin-form-group .admin-address-house-field input:focus {
  border: 0 !important;
  box-shadow: none !important;
}

.admin-address-house-field:focus-within {
  border-color: #ff5a1f;
  box-shadow: 0 0 0 3px rgba(255, 90, 31, 0.18);
}

.admin-address-map-picker {
  margin-top: 12px;
  border: 1px solid #dbe5f1;
  border-radius: 12px;
  padding: 10px;
  background: #f8fbff;
  position: relative;
  z-index: 1;
}

.admin-address-map-picker-head {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 8px;
}

.admin-address-map-picker-head strong {
  color: #1f3452;
  font-size: 14px;
}

.admin-address-map-picker-head small {
  color: #5f738f;
}

.admin-address-map-canvas {
  width: 100%;
  height: 230px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #d3dfef;
  position: relative;
  z-index: 1;
}

.admin-address-map-canvas .leaflet-pane {
  z-index: 10;
}

[data-ods-status-trigger].is-status-draft {
  border-color: #cbd7e6;
  background: #f4f7fb;
  color: #5f738f;
}

[data-ods-status-trigger].is-status-draft > svg {
  color: #6c819d;
}

[data-ods-status-trigger].is-status-locked {
  border-color: rgba(var(--admin-brand-rgb), 0.38);
  background: rgba(var(--admin-brand-rgb), 0.08);
  color: #8f1f22;
}

[data-ods-status-trigger].is-status-locked > svg {
  color: #8f1f22;
}

.admin-address-map-canvas .leaflet-top,
.admin-address-map-canvas .leaflet-bottom {
  z-index: 15;
}

.admin-assets-map-wrap {
  display: none;
  border: 1px solid #dbe5f1;
  border-radius: 14px;
  overflow: hidden;
  background: #f7fbff;
}

.admin-list-card.is-map-view .admin-table-wrap,
.admin-list-card.is-map-view .admin-card-grid-wrap {
  display: none;
}

.admin-list-card.is-map-view .admin-assets-map-wrap {
  display: block;
}

.admin-list-card.is-map-view .admin-infinite-status,
.admin-list-card.is-map-view .admin-infinite-sentinel,
.admin-list-card.is-map-view [data-pagination-fallback] {
  display: none !important;
}

.admin-infinite-list-scope.is-map-view .admin-infinite-status,
.admin-infinite-list-scope.is-map-view .admin-infinite-sentinel {
  display: none !important;
}

.admin-assets-map-canvas {
  width: 100%;
  height: calc(100vh - 235px);
  min-height: 560px;
}

.admin-assets-map-canvas .leaflet-container {
  width: 100%;
  height: 100%;
}

.admin-assets-map-canvas .leaflet-popup-content-wrapper,
.admin-assets-map-canvas .leaflet-tooltip {
  border-radius: 10px;
  border: 1px solid #e5ced3;
  box-shadow: 0 10px 24px rgba(26, 34, 54, 0.16);
}

.admin-assets-map-canvas .leaflet-tooltip {
  font-size: 12px;
  font-weight: 700;
  color: #1f3452;
  background: #fff;
}

.admin-assets-map-canvas .admin-map-pin {
  position: relative;
  width: 24px;
  height: 24px;
}

.admin-assets-map-canvas .admin-map-pin-inner {
  display: block;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 2px solid #fff;
  box-shadow: 0 2px 7px rgba(20, 36, 60, 0.24);
  position: relative;
}

.admin-assets-map-canvas .admin-map-pin-inner::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -8px;
  width: 10px;
  height: 10px;
  transform: translateX(-50%) rotate(45deg);
  border-radius: 1px;
  background: inherit;
  border-right: 1px solid rgba(255, 255, 255, 0.75);
  border-bottom: 1px solid rgba(255, 255, 255, 0.75);
}

.admin-assets-map-canvas .admin-map-pin-edifici .admin-map-pin-inner,
.admin-assets-map-canvas .admin-map-pin-edificio_comunale .admin-map-pin-inner,
.admin-assets-map-canvas .admin-map-pin-edificio .admin-map-pin-inner {
  background: var(--admin-brand);
}

.admin-assets-map-canvas .admin-map-pin-scuole .admin-map-pin-inner,
.admin-assets-map-canvas .admin-map-pin-edificio_scolastico .admin-map-pin-inner,
.admin-assets-map-canvas .admin-map-pin-asilo .admin-map-pin-inner {
  background: #f59e0b;
}

.admin-assets-map-canvas .admin-map-pin-impianti_sportivi .admin-map-pin-inner,
.admin-assets-map-canvas .admin-map-pin-struttura_sportiva .admin-map-pin-inner,
.admin-assets-map-canvas .admin-map-pin-impianto .admin-map-pin-inner {
  background: #0f766e;
}

.admin-assets-map-canvas .admin-map-pin-locali_commerciali .admin-map-pin-inner {
  background: #2563eb;
}

.admin-assets-map-canvas .admin-map-pin-strutture .admin-map-pin-inner,
.admin-assets-map-canvas .admin-map-pin-struttura_comunale .admin-map-pin-inner,
.admin-assets-map-canvas .admin-map-pin-struttura .admin-map-pin-inner {
  background: #0f766e;
}

.admin-assets-map-canvas .admin-map-pin-parchi_urbani .admin-map-pin-inner,
.admin-assets-map-canvas .admin-map-pin-parco_urbano .admin-map-pin-inner,
.admin-assets-map-canvas .admin-map-pin-terreno .admin-map-pin-inner {
  background: #2f9e44;
}

.admin-assets-map-canvas .admin-map-pin-altro .admin-map-pin-inner {
  background: #6b7280;
}

.admin-empty-state-inline {
  margin: 16px;
}

.admin-list-card-grid > .admin-empty-state,
.admin-list-card-grid > .admin-empty-state-inline {
  grid-column: 1 / -1;
  margin: 0;
  border: 1px solid var(--admin-border);
  border-radius: var(--admin-radius);
  background: #fff;
  min-height: 320px;
  padding: 34px 24px;
  text-align: center;
}

@media (max-width: 992px) {
  .admin-list-card-grid > .admin-empty-state,
  .admin-list-card-grid > .admin-empty-state-inline {
    min-height: 260px;
    padding: 26px 16px;
  }
}

.admin-empty-state::before {
  display: block;
  width: 80px;
  height: 80px;
  flex: 0 0 80px;
  margin: 0 auto;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 80px 80px;
  background-image: url("../img/admin-empty-state.svg");
}

.admin-assets-map-wrap [data-assets-map-empty][hidden] {
  display: none !important;
}

.admin-actions-row {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.admin-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.admin-password-field {
  position: relative;
}

.admin-password-field input {
  padding-right: 48px !important;
}

.admin-password-fields[hidden] {
  display: none !important;
}

.admin-checkbox-inline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  color: #1f3452;
  font-weight: 700;
  user-select: none;
}

.admin-checkbox-inline input[type="checkbox"] {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.admin-checkbox-inline-box {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  border: 2px solid #c9d6e8;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
  flex: 0 0 24px;
}

.admin-checkbox-inline-box svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--admin-brand);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0;
  transform: scale(0.72);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.admin-checkbox-inline-label {
  font-size: 15px;
  line-height: 1.2;
}

.admin-checkbox-inline input[type="checkbox"]:checked + .admin-checkbox-inline-box {
  border-color: var(--admin-brand);
  background: rgba(var(--admin-brand-rgb), 0.07);
}

.admin-checkbox-inline input[type="checkbox"]:checked + .admin-checkbox-inline-box svg {
  opacity: 1;
  transform: scale(1);
}

.admin-checkbox-inline input[type="checkbox"]:focus-visible + .admin-checkbox-inline-box,
.admin-checkbox-inline:hover .admin-checkbox-inline-box {
  border-color: var(--admin-brand);
  box-shadow: 0 0 0 3px rgba(var(--admin-brand-rgb), 0.12);
}

.admin-password-toggle {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: #5b6f88;
  cursor: pointer;
  padding: 0;
}

.admin-password-toggle svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.admin-password-toggle:hover,
.admin-password-toggle:focus-visible {
  color: var(--admin-brand);
  outline: none;
}

@media (max-width: 768px) {
  .admin-password-field input {
    padding-right: 44px !important;
  }

  .admin-password-toggle {
    right: 10px;
    width: 20px;
    height: 20px;
  }

  .admin-password-toggle svg {
    width: 16px;
    height: 16px;
  }
}

.admin-anagrafica-form input[type="password"]:-webkit-autofill,
.admin-anagrafica-form input[type="password"]:-webkit-autofill:hover,
.admin-anagrafica-form input[type="password"]:-webkit-autofill:focus,
.admin-anagrafica-form input[type="password"]:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px #fff inset !important;
  box-shadow: 0 0 0 1000px #fff inset !important;
  -webkit-text-fill-color: #1f3452 !important;
  transition: background-color 5000s ease-in-out 0s;
}

.admin-auth-logo .admin-brand-logo {
  width: 180px;
  max-width: 100%;
  height: auto;
}

.admin-auth-pane-inner {
  align-items: stretch;
}

.admin-auth-logo {
  margin-top: 8px;
  margin-bottom: 18px;
}

.admin-auth-card {
  min-height: min(72vh, 600px);
  display: flex;
  flex-direction: column;
}

.admin-auth-card > section {
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: flex-end;
}

.admin-auth-card .admin-auth-form {
  margin-top: 8px;
  margin-bottom: 10px;
}

.admin-auth-passkey-box {
  margin-top: 6px;
}

.admin-auth-passkey-box .admin-input-hint {
  display: block;
  margin-top: 8px;
}

.admin-auth-passkey-pin {
  margin-top: 10px;
  padding: 10px;
  border: 1px solid #e5d9cf;
  border-radius: 12px;
  background: #fffaf7;
}

.admin-auth-passkey-pin-label {
  margin: 0 0 8px;
  color: #1f3452;
  font-size: 13px;
  font-weight: 700;
}

/* Auth pages aligned to Urbantera dark header style */
.admin-auth-body {
  background: rgb(3, 27, 78);
}

.admin-auth-pane.admin-auth-pane-form {
  background: rgb(3, 27, 78);
}

.admin-auth-card {
  background: transparent;
  border: 0;
  box-shadow: none;
}

.admin-auth-reset-title,
.admin-auth-reset-subtitle,
.admin-auth-links a,
.admin-auth-form label,
.admin-auth-passkey-box .admin-input-hint,
.admin-auth-passkey-pin-label {
  color: rgba(255, 255, 255, 0.92);
}

.admin-auth-form input[type="text"],
.admin-auth-form input[type="email"],
.admin-auth-form input[type="password"] {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
}

.admin-auth-form input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.admin-auth-form input:focus {
  border-color: rgba(var(--admin-brand-rgb), 0.9);
  box-shadow: 0 0 0 3px rgba(var(--admin-brand-rgb), 0.25);
}

.admin-auth-form .admin-radio-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.admin-auth-form .admin-radio-card {
  position: relative;
  display: block;
  cursor: pointer;
}

.admin-auth-form .admin-radio-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.admin-auth-form .admin-radio-card span {
  display: block;
  min-height: 48px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.92);
  font-weight: 700;
  padding: 12px 14px;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.admin-auth-form .admin-radio-card input[type="radio"]:checked + span {
  border-color: rgba(var(--admin-brand-rgb), 0.95);
  background: rgba(var(--admin-brand-rgb), 0.2);
  box-shadow: 0 0 0 3px rgba(var(--admin-brand-rgb), 0.25);
}

.admin-auth-form .admin-radio-card input[type="radio"]:focus-visible + span {
  border-color: rgba(var(--admin-brand-rgb), 0.95);
  box-shadow: 0 0 0 3px rgba(var(--admin-brand-rgb), 0.3);
}

.admin-auth-passkey-pin {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
}

.admin-auth-links a:hover,
.admin-auth-links a:focus-visible {
  color: #fff;
  text-decoration: underline;
}

.admin-auth-passkey-pin-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.admin-auth-passkey-pin-row input {
  flex: 1 1 auto;
  min-width: 0;
  height: 34px;
  border-radius: 999px;
  border: 1px solid #d6c8c0;
  padding: 0 14px;
}

.admin-passkey-panel {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid #dce5f2;
}

@media (max-width: 680px) {
  .admin-auth-form .admin-radio-grid {
    grid-template-columns: 1fr;
  }
}

.admin-passkey-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.admin-passkey-panel-head h3 {
  margin: 0;
  font-size: 18px;
  color: #1f3452;
}

.admin-passkey-table-wrap {
  margin-top: 10px;
}

.admin-workspace-body {
  min-height: 100vh;
}

.admin-workspace-topbar {
  position: sticky;
  top: 0;
  z-index: 60;
}

.admin-workspace-main {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 24px 40px;
}

.admin-workspace-head {
  margin-bottom: 14px;
}

.admin-workspace-ticket-head {
  margin-bottom: 14px;
  display: block;
}

.admin-workspace-ticket-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
}

.admin-workspace-ticket-title-row h1 {
  font-size: 19px;
  line-height: 1.15;
  margin: 0;
}

.admin-workspace-ticket-location {
  margin: 4px 0 0;
  font-size: 13px;
  line-height: 1.3;
  color: #1f3452;
  font-weight: 400;
}

.admin-workspace-ticket-badges {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  padding-top: 1px;
}

.admin-workspace-ticket-badges .admin-badge {
  font-size: 11px;
  line-height: 1;
  min-height: 20px;
  padding: 4px 9px;
}

.admin-workspace-ticket-card {
  border: 1px solid #bfd0e4;
  border-radius: 14px;
  padding: 0;
  overflow: hidden;
}

.admin-workspace-ticket-shell.is-tab-ticket .admin-workspace-ticket-card {
  border-top-left-radius: 0;
}

.admin-workspace-ticket-shell {
  margin-top: 8px;
}

.admin-workspace-ticket-tabs-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.admin-workspace-ticket-tabs {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 0 10px 0 0;
  margin: 0 0 -1px;
  position: relative;
  z-index: 2;
}

.admin-workspace-ticket-top-action {
  display: inline-flex;
  align-items: center;
  padding-bottom: 10px;
  margin-right: 12px;
}

.admin-workspace-ticket-top-action .admin-btn {
  min-height: 27px;
  padding: 4px 20px;
  font-size: 11px;
  border-radius: 5px;
}

.admin-workspace-btn-with-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.admin-workspace-btn-with-icon svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

.admin-workspace-ticket-tab {
  border: 1px solid transparent;
  background: transparent;
  color: #1f3452;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  min-height: 44px;
  padding: 13px 12px 12px;
  border-radius: 10px 10px 0 0;
  cursor: pointer;
}

.admin-workspace-ticket-tab.is-active {
  background: #fff;
  border-color: #bfd0e4 #bfd0e4 #fff;
}

.admin-workspace-ticket-tab:first-child.is-active {
  margin-left: 0;
  border-top-left-radius: 14px;
}

.admin-workspace-ticket-tab:not(.is-active) {
  opacity: 0.95;
}

.admin-workspace-ticket-tab:not(.is-active):hover {
  color: var(--admin-brand);
}

.admin-workspace-ticket-panel {
  padding: 16px 18px 8px;
}

.admin-workspace-ticket-panel .admin-workspace-maintenance-grid {
  padding: 12px 0;
  border-top: 1px solid #dce5f2;
}

.admin-workspace-ticket-panel .admin-workspace-maintenance-grid:first-child {
  padding-top: 0;
  border-top: 0;
}

.admin-workspace-ticket-panel .admin-workspace-maintenance-grid:last-child {
  padding-bottom: 2px;
}

.admin-workspace-ticket-panel .admin-table-wrap {
  margin-top: 0;
}

.admin-workspace-ticket-panel[data-workspace-ticket-panel="notes"] .admin-table-wrap {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0 0 14px;
  overflow: visible;
}

.admin-workspace-ticket-panel[data-workspace-ticket-panel="ods_history"] .admin-table-wrap {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0 0 14px;
  overflow: visible;
}

.admin-workspace-ticket-panel[data-workspace-ticket-panel="notes"] .admin-table {
  border: 0;
  border-radius: 0;
  background: transparent;
}

.admin-workspace-ticket-panel[data-workspace-ticket-panel="ods_history"] .admin-table {
  border: 0;
  border-radius: 0;
  background: transparent;
}

.admin-workspace-ticket-panel[data-workspace-ticket-panel="notes"] .admin-table tbody tr:nth-child(odd) td {
  background: #ffffff;
}

.admin-workspace-ticket-panel[data-workspace-ticket-panel="notes"] .admin-table tbody tr:nth-child(even) td {
  background: #f6f9ff;
}

.admin-workspace-ticket-panel[data-workspace-ticket-panel="ods_history"] .admin-table tbody tr:nth-child(odd) td {
  background: #ffffff;
}

.admin-workspace-ticket-panel[data-workspace-ticket-panel="ods_history"] .admin-table tbody tr:nth-child(even) td {
  background: #f6f9ff;
}

.admin-workspace-ticket-panel[data-workspace-ticket-panel="notes"] .admin-table tbody td {
  vertical-align: middle;
}

.admin-workspace-ticket-panel[data-workspace-ticket-panel="ods_history"] .admin-table tbody td {
  vertical-align: top;
}

.admin-workspace-ticket-panel[data-workspace-ticket-panel="ods_history"] .admin-table tbody td:first-child {
  font-size: 11px;
  line-height: 1.1;
  font-weight: 700;
  color: #6f829e;
  white-space: nowrap;
}

.admin-workspace-ticket-panel[data-workspace-ticket-panel="notes"] .admin-table tbody td:last-child {
  position: relative;
  padding-right: 72px;
}

.admin-workspace-ods-change-text {
  font-size: 14px;
  line-height: 1.35;
  color: #1f3452;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.admin-workspace-ods-change-item {
  border: 1px solid #d8e1ef;
  border-radius: 10px;
  background: #f5f7fb;
  padding: 9px 10px;
}

.admin-workspace-ods-change-item + .admin-workspace-ods-change-item {
  margin-top: 8px;
}

.admin-workspace-ods-change-label {
  font-size: 11px;
  line-height: 1.15;
  color: #6f829e;
  font-weight: 700;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.admin-workspace-ods-change-block {
  border: 1px solid #d3ddeb;
  border-radius: 8px;
  background: #fff;
  color: #1f3452;
  font-size: 13px;
  line-height: 1.35;
  padding: 8px 10px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.admin-workspace-ods-change-block-new {
  border-color: #bdd0e7;
  background: #f9fbff;
}

.admin-workspace-ods-change-block-single {
  background: #fff;
}

.admin-workspace-ods-change-arrow-down {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 6px 0;
  color: #6f829e;
}

.admin-workspace-ods-change-arrow-down svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.admin-workspace-ods-change-mobile-date {
  display: none;
  font-size: 10px;
  line-height: 1.1;
  color: #7a8ca6;
  font-weight: 700;
  margin-bottom: 6px;
}

.admin-workspace-note-type-cell {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.admin-workspace-note-date {
  font-size: 11px;
  line-height: 1.1;
  color: #7a8ca6;
  font-weight: 600;
}

.admin-workspace-note-type {
  font-size: 14px;
  line-height: 1.2;
  color: #1f3452;
  font-weight: 700;
}

.admin-workspace-note-type-row {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.admin-workspace-note-author-badge {
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid #f2b8b7;
  background: #fff3f3;
  color: #8f1b1a;
  font-size: 10px;
  line-height: 1;
  font-weight: 700;
  white-space: nowrap;
}

.admin-workspace-note-content {
  font-size: 14px;
  line-height: 1.35;
  color: #1f3452;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.admin-workspace-note-content p {
  margin: 0 0 6px;
}

.admin-workspace-note-content p:last-child {
  margin-bottom: 0;
}

.admin-workspace-note-content ul,
.admin-workspace-note-content ol {
  margin: 4px 0 0 18px;
}

.admin-workspace-note-row-actions {
  margin-top: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 22px;
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.admin-workspace-note-row-actions .admin-action-icon {
  width: 18px;
  height: 18px;
  color: #5f7494;
}

.admin-workspace-note-row-actions .admin-action-icon-danger {
  color: var(--admin-brand);
}

.admin-workspace-note-row-actions .admin-action-icon:hover,
.admin-workspace-note-row-actions .admin-action-icon:focus-visible {
  color: #1f3452;
}

.admin-workspace-note-row-actions .admin-action-icon-danger:hover,
.admin-workspace-note-row-actions .admin-action-icon-danger:focus-visible {
  color: #9a1b18;
}

.admin-workspace-note-mobile-meta {
  display: none;
}

.admin-workspace-ticket-notes-head {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin: 0 0 10px;
}

.admin-workspace-note-add-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: #1f3452;
  font-size: 13px;
  font-weight: 700;
}

.admin-workspace-note-add-link svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

.admin-workspace-note-add-link:hover,
.admin-workspace-note-add-link:focus-visible {
  color: var(--admin-brand);
}

.admin-workspace-note-add-link.is-disabled {
  opacity: 0.45;
  cursor: pointer;
}

.admin-workspace-note-add-link.is-disabled:hover,
.admin-workspace-note-add-link.is-disabled:focus-visible {
  color: #1f3452;
}

.admin-workspace-ticket-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 0 18px 16px;
}

.admin-workspace-ticket-footer-mobile {
  display: none;
}

.admin-workspace-head h1 {
  font-size: 24px;
  line-height: 1.08;
}

.admin-workspace-search {
  margin-bottom: 12px;
}

.admin-workspace-mobile-filters {
  display: none;
  margin-bottom: 12px;
}

.admin-workspace-card-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.admin-workspace-maintenance-card {
  width: 100%;
  border: 1px solid #bfd0e4;
  border-radius: 16px;
  padding: 0;
  overflow: hidden;
}

.admin-workspace-maintenance-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
}

.admin-workspace-chevron-btn {
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  border-radius: 10px;
  color: #1f3452;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex: 0 0 auto;
}

.admin-workspace-chevron-btn svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform: rotate(0deg);
  transition: transform 0.2s ease;
}

.admin-workspace-chevron-btn[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.admin-workspace-head-main {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  flex: 1 1 auto;
  min-width: 0;
}

.admin-workspace-head-title {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.admin-workspace-ref-row {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-workspace-title-badges {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.admin-workspace-head-title h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.1;
  color: #1f3452;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-workspace-head-location {
  margin: 2px 0 0;
  color: #60738f;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.25;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-workspace-priority-badge,
.admin-workspace-status-badge,
.admin-workspace-status-badge-mobile {
  font-size: 10px;
  line-height: 1;
  padding: 3px 7px;
  min-height: 18px;
  border-radius: 999px;
}

.admin-workspace-status-badge-mobile {
  display: none;
}

.admin-workspace-head-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex: 0 0 auto;
}

.admin-workspace-desktop-actions form {
  margin: 0;
}

.admin-workspace-desktop-actions .admin-btn {
  min-height: 30px;
  padding: 5px 18px;
  font-size: 12px;
  border-radius: 5px;
  line-height: 1.1;
}

.admin-workspace-mobile-actions {
  display: none;
  position: relative;
  z-index: 220;
}

.admin-workspace-mobile-actions-toggle {
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #4d6079;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 4px;
}

.admin-workspace-mobile-actions-toggle svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  stroke: none;
}

.admin-workspace-mobile-actions-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 160px;
  padding: 6px;
  background: #fff;
  border: 1px solid #bfd0e4;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(17, 34, 68, 0.14);
  z-index: 320;
}

.admin-workspace-mobile-action-item {
  display: flex;
  align-items: center;
  gap: 7px;
  width: 100%;
  min-height: 34px;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #1f3452;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  text-align: left;
}

.admin-workspace-mobile-action-item svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

.admin-workspace-mobile-action-item:hover,
.admin-workspace-mobile-action-item:focus-visible {
  background: rgba(var(--admin-brand-rgb), 0.12);
  color: var(--admin-brand);
}

.admin-icon-btn {
  width: auto;
  height: auto;
  border-radius: 0;
  border: 0;
  color: #4d6079;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  text-decoration: none;
  transition: color 0.15s ease;
  cursor: pointer;
}

.admin-icon-btn svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.admin-icon-btn .admin-icon-btn-svg-pdf {
  fill: currentColor;
  stroke: none;
}

.admin-icon-btn:hover,
.admin-icon-btn:focus-visible {
  color: var(--admin-brand);
  background: transparent;
}

.admin-workspace-maintenance-grid {
  border-top: 1px solid #bfd0e4;
  padding: 14px 18px 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 20px;
}

.admin-workspace-maintenance-grid-top {
  padding-bottom: 10px;
}

.admin-workspace-maintenance-grid-top + .admin-workspace-maintenance-grid {
  border-top: 1px solid #dce5f2;
}

.admin-workspace-label {
  display: block;
  font-size: 12px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6b7f9a;
  margin-bottom: 6px;
  font-weight: 700;
}

.admin-workspace-value {
  margin: 0;
  color: #1f3452;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 400;
}

.admin-workspace-value-muted {
  color: #6b7f9a;
}

.admin-workspace-value-protocol {
  font-weight: 700;
}

.admin-workspace-pdf-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #1f3452;
  text-decoration: none;
  font-weight: 600;
}

.admin-workspace-pdf-link svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
  stroke: none;
}

.admin-workspace-pdf-link:hover,
.admin-workspace-pdf-link:focus-visible {
  color: var(--admin-brand);
}

.admin-workspace-head-actions form {
  margin: 0;
}

.admin-workspace-maintenance-details[hidden] {
  display: none !important;
}

.admin-workspace-maintenance-details:not([hidden]) {
  display: block !important;
}

.admin-workspace-maintenance-card:not(.is-open) .admin-workspace-maintenance-details {
  display: none !important;
}

.admin-workspace-maintenance-card.is-open .admin-workspace-maintenance-details {
  display: block !important;
}

.admin-workspace-closed-meta {
  padding: 0 18px 16px;
  color: #60738f;
  font-size: 12px;
  font-weight: 700;
}

.admin-workspace-mobile-accordion-action {
  display: none;
}

@media (max-width: 992px) {
  .admin-workspace-head h1 {
    font-size: 24px;
  }

  .admin-workspace-ticket-title-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .admin-workspace-ticket-location {
    font-size: 12px;
  }

  .admin-workspace-ticket-badges {
    padding-top: 0;
  }

  .admin-workspace-ticket-title-row h1 {
    font-size: 18px;
  }

  .admin-workspace-ticket-badges .admin-badge {
    font-size: 10px;
    min-height: 18px;
    padding: 3px 8px;
  }

  .admin-workspace-ticket-tabs {
    width: 100%;
    overflow-x: auto;
    padding: 0;
  }

  .admin-workspace-ticket-tabs-row {
    display: block;
  }

  .admin-workspace-ticket-top-action {
    display: none;
  }

  .admin-workspace-ticket-tab {
    font-size: 12px;
    padding: 10px 10px 9px;
    white-space: nowrap;
  }

  .admin-workspace-ticket-panel {
    padding: 14px 14px 8px;
  }

  .admin-workspace-ticket-footer {
    padding: 0 14px 14px;
  }

  .admin-workspace-ticket-footer-mobile {
    display: flex;
  }

  .admin-workspace-ticket-notes-head {
    margin-bottom: 8px;
  }

  .admin-workspace-ticket-panel[data-workspace-ticket-panel="notes"] .admin-table thead th:first-child {
    display: none;
  }

  .admin-workspace-ticket-panel[data-workspace-ticket-panel="notes"] .admin-table thead th:last-child,
  .admin-workspace-ticket-panel[data-workspace-ticket-panel="ods_history"] .admin-table thead th:last-child {
    width: 100%;
  }

  .admin-workspace-ticket-panel[data-workspace-ticket-panel="notes"] .admin-table tbody td:first-child,
  .admin-workspace-ticket-panel[data-workspace-ticket-panel="ods_history"] .admin-table tbody td:first-child,
  .admin-workspace-ticket-panel[data-workspace-ticket-panel="ods_history"] .admin-table thead th:first-child {
    display: none;
  }

  .admin-workspace-ticket-panel[data-workspace-ticket-panel="notes"] .admin-table,
  .admin-workspace-ticket-panel[data-workspace-ticket-panel="ods_history"] .admin-table {
    min-width: 0;
  }

  .admin-workspace-ticket-panel[data-workspace-ticket-panel="notes"] .admin-table tbody tr,
  .admin-workspace-ticket-panel[data-workspace-ticket-panel="ods_history"] .admin-table tbody tr {
    display: table-row;
  }

  .admin-workspace-ticket-panel[data-workspace-ticket-panel="notes"] .admin-table tbody td:last-child {
    display: table-cell;
    width: auto;
    box-sizing: border-box;
    position: relative;
    padding-right: 72px;
  }

  .admin-workspace-ticket-panel[data-workspace-ticket-panel="ods_history"] .admin-table tbody td:last-child {
    display: table-cell;
    width: auto;
    box-sizing: border-box;
    position: relative;
    padding-right: 14px;
  }

  .admin-workspace-ods-change-mobile-date {
    display: block;
  }

  .admin-workspace-note-mobile-meta {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-bottom: 6px;
  }

  .admin-workspace-note-row-actions {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    margin-top: 0;
    justify-content: center;
  }

  .admin-workspace-ticket-footer .admin-btn {
    width: 100%;
    justify-content: center;
  }

  .admin-workspace-maintenance-card {
    overflow: visible;
  }

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

  .admin-workspace-maintenance-grid-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 14px;
  }

  .admin-workspace-head-title h3 {
    font-size: 12px;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    line-height: 1.25;
    word-break: break-word;
  }

  .admin-workspace-maintenance-head {
    flex-wrap: wrap;
    align-items: center;
  }

  .admin-workspace-head-main {
    flex-basis: calc(100% - 52px);
    flex-wrap: wrap;
  }

  .admin-workspace-maintenance-head {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
  }

  .admin-workspace-chevron-btn {
    width: 36px;
    height: 36px;
    margin-top: 0;
  }

  .admin-workspace-head-main {
    min-width: 0;
  }

  .admin-workspace-head-title {
    gap: 5px;
  }

  .admin-workspace-head-location {
    font-size: 11px;
  }

  .admin-workspace-head-actions {
    justify-content: flex-end;
    align-items: center;
  }

  .admin-workspace-desktop-actions {
    display: none;
  }

  .admin-workspace-mobile-actions {
    display: inline-flex;
    align-items: center;
  }

  .admin-workspace-mobile-accordion-action {
    display: block;
    padding: 0 18px 16px;
  }

  .admin-workspace-mobile-accordion-action form {
    margin: 0;
  }

  .admin-workspace-mobile-accordion-action .admin-btn {
    width: 100%;
    justify-content: center;
  }

  .admin-workspace-head-actions .admin-workspace-status-badge {
    display: none;
  }

  .admin-workspace-status-badge-mobile {
    display: inline-flex;
  }

  .admin-workspace-mobile-filters {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    flex-wrap: nowrap;
    justify-content: flex-start;
    position: relative;
    z-index: 80;
  }

  .admin-workspace-mobile-filters .admin-filter-rail-wrap {
    width: auto;
    flex: 0 1 auto;
    min-width: 0;
    max-width: calc(100% - 96px);
  }

  .admin-workspace-mobile-filters .admin-year-filter-menu.custom-select {
    flex: 0 0 auto;
    white-space: nowrap;
    margin-left: 0;
    position: relative;
    z-index: 90;
  }

  .admin-workspace-mobile-filters .admin-workspace-year-select .custom-select-dropdown {
    right: auto;
    left: 0;
    z-index: 120;
    max-height: 280px;
    overflow-y: auto;
  }

  .admin-workspace-mobile-filters .admin-adaptive-filter-menu .custom-select-dropdown {
    right: auto;
    left: 0;
    z-index: 120;
    max-height: 280px;
    overflow-y: auto;
  }

  .admin-workspace-mobile-filters .admin-workspace-year-select .custom-select-search-wrap,
  .admin-workspace-mobile-filters .admin-workspace-year-select .custom-select-item {
    display: block !important;
    width: 100% !important;
    flex: 0 0 100% !important;
    clear: both;
  }

  .admin-workspace-mobile-filters .admin-adaptive-filter-menu .custom-select-item {
    display: block !important;
    width: 100% !important;
    flex: 0 0 100% !important;
    clear: both;
  }
}

.user-menu-avatar {
  background: var(--admin-brand) !important;
  border-color: var(--admin-brand) !important;
  color: #fff !important;
}

.admin-btn-primary {
  background: var(--admin-brand) !important;
  border-color: var(--admin-brand) !important;
  color: #fff !important;
}

.admin-btn-primary:hover,
.admin-btn-primary:focus-visible {
  background: var(--admin-brand-dark) !important;
  border-color: var(--admin-brand-dark) !important;
}

.admin-filter-rail-indicator {
  background: var(--admin-brand) !important;
}

.admin-filter-rail-item.is-active {
  color: #fff !important;
}

.admin-filter-rail-item:not(.is-active):hover {
  color: var(--admin-brand) !important;
}

.admin-filter-rail-item.is-active:hover {
  color: #fff !important;
}

.admin-filter-rail-item.is-active .admin-filter-rail-count {
  background: rgba(255, 255, 255, 0.92) !important;
  color: #1f3452 !important;
}

.admin-year-filter-menu.custom-select {
  width: auto;
  min-width: 0;
}

.admin-year-filter-menu .custom-select-trigger {
  min-height: 30px;
  height: 30px;
  padding: 0 24px 0 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  font-size: 12px;
  font-weight: 700;
  color: #4d6079;
  line-height: 1;
}

.admin-year-filter-menu .custom-select-trigger:hover,
.admin-year-filter-menu .custom-select-trigger:focus-visible {
  border: 0;
  box-shadow: none;
  color: var(--admin-brand);
}

.admin-year-filter-menu .custom-select-trigger > svg {
  right: 0;
  width: 18px;
  height: 18px;
}

.admin-year-filter-menu .custom-select-dropdown {
  min-width: 220px;
  z-index: 50;
}

.admin-workspace-year-select .custom-select-dropdown {
  left: auto;
  right: 0;
}

.admin-year-filter-menu-maintenances .custom-select-dropdown {
  left: auto;
  right: 0;
}

.admin-list-view-btn.is-active {
  background: var(--admin-brand) !important;
  color: #fff !important;
  border-color: var(--admin-brand) !important;
  opacity: 1 !important;
}

.admin-list-view-btn:not(.is-active):hover {
  color: var(--admin-brand) !important;
}

.admin-list-view-btn.is-active:hover {
  background: var(--admin-brand) !important;
  color: #fff !important;
  border-color: var(--admin-brand) !important;
  opacity: 1 !important;
}

.admin-action-btn-primary {
  background: var(--admin-brand) !important;
  border-color: var(--admin-brand) !important;
  color: #fff !important;
}

.admin-action-btn-primary:hover,
.admin-action-btn-primary:focus-visible {
  background: var(--admin-brand-dark) !important;
  border-color: var(--admin-brand-dark) !important;
}

.admin-action-btn-ghost {
  color: var(--admin-brand) !important;
  border-color: rgba(var(--admin-brand-rgb), 0.28) !important;
}

.admin-action-btn-ghost:hover,
.admin-action-btn-ghost:focus-visible {
  color: var(--admin-brand) !important;
  border-color: var(--admin-brand) !important;
  background: rgba(var(--admin-brand-rgb), 0.08) !important;
}

.admin-action-btn.is-selected {
  color: var(--admin-brand) !important;
  border-color: var(--admin-brand) !important;
  background: rgba(var(--admin-brand-rgb), 0.12) !important;
}

.admin-topbar .admin-brand .admin-brand-logo {
  width: 150px !important;
  max-width: 100%;
  height: auto;
}

.admin-sidebar .admin-nav .admin-nav-item.is-active,
.admin-sidebar .admin-nav .admin-nav-item.is-active:link,
.admin-sidebar .admin-nav .admin-nav-item.is-active:visited {
  background: rgba(var(--admin-brand-rgb), 0.14) !important;
  color: var(--admin-brand) !important;
  border-top-color: rgba(var(--admin-brand-rgb), 0.45) !important;
  border-bottom-color: rgba(var(--admin-brand-rgb), 0.45) !important;
}

.admin-sidebar .admin-nav .admin-nav-item.is-active .admin-nav-label,
.admin-sidebar .admin-nav .admin-nav-item.is-active .admin-nav-icon {
  color: var(--admin-brand) !important;
}

.admin-sidebar .admin-nav .admin-nav-item:hover {
  background: rgba(var(--admin-brand-rgb), 0.08) !important;
}

.admin-toast-rail {
  left: var(--admin-sidebar-width) !important;
  right: 0 !important;
  width: auto !important;
}

.admin-workspace-body .admin-toast-rail {
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
}

.admin-toast {
  width: 100% !important;
}

.admin-shell {
  width: 100% !important;
  max-width: none !important;
}

.admin-topbar {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  left: auto !important;
  right: auto !important;
  padding-right: 26px !important;
}

@media (max-width: 768px) {
  .admin-topbar {
    padding-right: 14px !important;
  }
}

@media (max-width: 992px) {
  .admin-toast-rail {
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
  }
}

.comune-auth-hero {
  position: relative;
  overflow: hidden;
  background-color: #120909;
  background-image: var(--comune-hero-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.comune-auth-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(130deg, rgba(var(--admin-brand-rgb), 0.86) 0%, rgba(var(--admin-brand-rgb), 0.68) 55%, rgba(0, 94, 203, 0.82) 100%);
  mix-blend-mode: multiply;
  pointer-events: none;
}

/* Ensure modals always stay above Leaflet map panes/controls. */
.admin-create-modal {
  z-index: 20000 !important;
}

@media (max-width: 992px) {
  .admin-dashboard-focus-grid,
  .admin-kpi-grid,
  .admin-form-grid {
    grid-template-columns: 1fr;
  }

  .admin-col-span-2,
  .admin-col-span-3,
  .admin-col-span-4,
  .admin-col-span-5,
  .admin-col-span-6,
  .admin-col-span-8,
  .admin-col-span-12 {
    grid-column: span 1;
  }

  .admin-vendor-col-2,
  .admin-vendor-col-4,
  .admin-vendor-col-6 {
    grid-column: span 12;
  }

  .admin-card-header {
    flex-direction: column;
  }

  .admin-assets-map-canvas {
    height: calc(100vh - 260px);
    min-height: 420px;
  }
}

@media (max-width: 768px) {
  .admin-dashboard-focus-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-form,
  .admin-form fieldset,
  .admin-form-grid,
  .admin-form-grid > *,
  .admin-form-group {
    min-width: 0;
    max-width: 100%;
  }

  .admin-form-group input,
  .admin-form-group select,
  .admin-form-group textarea,
  .admin-form-group .custom-select,
  .admin-form-group .custom-select-trigger,
  .admin-form-group .admin-address-input-wrap,
  .admin-form-group .admin-address-house-field,
  .admin-form .admin-richtext-wrapper,
  .admin-form .admin-richtext-wrapper .ql-toolbar.ql-snow,
  .admin-form .admin-richtext-wrapper .ql-container.ql-snow,
  .admin-form .admin-richtext-wrapper .ql-editor {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .admin-form .admin-richtext-wrapper .ql-editor {
    overflow-wrap: anywhere;
    word-break: break-word;
  }
}

@media (min-width: 769px) and (max-width: 992px) {
  .admin-form-grid.admin-form-grid-signer {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }

  .admin-form-grid.admin-form-grid-signer .admin-col-span-2 {
    grid-column: span 2;
  }

  .admin-form-grid.admin-form-grid-signer .admin-col-span-5 {
    grid-column: span 5;
  }
}

/* Agenda */
.admin-agenda-toolbar-card {
  padding: 18px;
  border-radius: 18px;
}

.admin-agenda-toolbar-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.admin-agenda-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
}

.admin-agenda-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-agenda-view-rail-wrap {
  flex: 0 0 auto;
}

.admin-agenda-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-agenda-search-form {
  margin: 0;
  width: 100%;
  min-width: 0;
  max-width: none;
}

.admin-agenda-search-form .admin-form-group {
  margin: 0;
}

.admin-agenda-range-title {
  margin: 8px 2px 6px;
  font-size: 22px;
  font-weight: 800;
  color: var(--admin-ink);
}

.admin-agenda-range-block {
  width: 100%;
}

.admin-agenda-search-wrap {
  margin-top: 0;
  margin-bottom: 12px;
}

.admin-agenda-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  position: relative;
  z-index: 120;
}

.admin-agenda-tools .admin-year-filter-menu.custom-select {
  width: auto;
  min-width: 0;
  flex: 0 0 auto;
}

.admin-agenda-tools .admin-year-filter-menu .custom-select-trigger {
  width: auto;
  min-height: 42px;
  height: 42px;
  padding-left: 8px;
  padding-right: 20px;
  font-size: 12px;
  white-space: nowrap;
}

.admin-agenda-tools .custom-select-dropdown {
  z-index: 220;
  min-width: 190px;
  left: auto;
  right: 0;
}

.admin-agenda-tools .custom-select-dropdown[hidden] {
  display: none !important;
}

.admin-agenda-tools .custom-select-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
}

.admin-agenda-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding-bottom: 12px;
  margin-bottom: 16px;
  border-bottom: 1px solid #cfdced;
  flex-wrap: wrap;
}

.admin-agenda-period-badge {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid #8ad0b2;
  background: #dcf6ef;
  color: #0e6655;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.admin-agenda-panel-actions {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.admin-agenda-mini-search-form {
  margin: 0;
  width: auto;
}

.admin-agenda-mini-search-form .admin-form-group {
  margin: 0;
}

.admin-agenda-mini-search-form .admin-form-group input {
  min-height: 32px;
  height: 32px;
  width: 240px;
  font-size: 13px;
  padding-inline: 12px;
}

.admin-agenda-mini-nav {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.admin-agenda-mini-nav-btn,
.admin-agenda-mini-nav-today {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid var(--admin-line);
  background: #fff;
  color: var(--admin-ink);
  text-decoration: none;
  font-weight: 700;
}

.admin-agenda-mini-nav-btn {
  width: 32px;
  padding: 0;
}

.admin-agenda-mini-nav-btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.admin-agenda-mini-nav-today {
  padding: 0 12px;
  font-size: 13px;
}

.admin-agenda-mini-nav-btn:hover,
.admin-agenda-mini-nav-today:hover {
  border-color: var(--admin-brand-line);
  color: var(--admin-brand);
}

.admin-agenda-calendar-card {
  padding: 14px;
}

.admin-agenda-weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0;
  padding: 0 0 10px;
}

.admin-agenda-weekdays div {
  font-size: 13px;
  font-weight: 700;
  color: var(--admin-muted-ink);
  text-transform: uppercase;
  letter-spacing: .03em;
}

.admin-agenda-month-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0;
}

.admin-agenda-day-cell {
  border: 1px solid rgba(23, 37, 67, 0.22);
  border-right: 0;
  border-bottom: 0;
  min-height: 172px;
  background: #ffffff;
  position: relative;
  overflow: hidden;
}

.admin-agenda-day-cell.is-outside-month {
  background: #ffffff;
  opacity: 0.58;
}

.admin-agenda-month-grid .admin-agenda-day-cell:nth-child(7n) {
  border-right: 1px solid rgba(23, 37, 67, 0.22);
}

.admin-agenda-month-grid .admin-agenda-day-cell:nth-last-child(-n + 7) {
  border-bottom: 1px solid rgba(23, 37, 67, 0.22);
}

.admin-agenda-day-cell.is-today {
  z-index: 1;
}

.admin-agenda-day-cell.has-events {
  background: #ffffff;
}

.admin-agenda-day-cell.has-events:hover {
  background: rgba(var(--admin-brand-rgb), 0.035);
  box-shadow: inset 0 0 0 1px rgba(var(--admin-brand-rgb), 0.18);
}

.admin-agenda-day-body {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 172px;
  padding: 14px 14px 12px;
  text-decoration: none;
  color: inherit;
}

.admin-agenda-day-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: 14px;
}

.admin-agenda-day-total {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  line-height: 1.1;
}

.admin-agenda-day-total-label {
  font-size: 12px;
  font-weight: 700;
  color: rgba(77, 96, 121, 0.72);
}

.admin-agenda-day-total-value {
  font-size: 19px;
  font-weight: 800;
  color: var(--admin-ink);
}

.admin-agenda-day-recipient-counts {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: auto;
}

.admin-agenda-day-recipient-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(77, 96, 121, 0.72);
  font-size: 17px;
  font-weight: 800;
  line-height: 1;
}

.admin-agenda-day-recipient-row > span {
  color: var(--admin-ink);
}

.admin-agenda-day-alert-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 16px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--admin-brand);
  color: #fff !important;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .01em;
}

.admin-agenda-day-recipient-row > svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.admin-agenda-day-number-bg {
  position: absolute;
  right: 12px;
  bottom: 6px;
  z-index: 1;
  font-family: 'Oswald', sans-serif;
  font-size: 86px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: .01em;
  color: rgba(23, 37, 67, 0.06);
  pointer-events: none;
}

.admin-agenda-day-cell.is-outside-month .admin-agenda-day-number-bg {
  color: rgba(23, 37, 67, 0.03);
}

.admin-agenda-day-cell.is-empty .admin-agenda-day-body {
  cursor: default;
}

.admin-agenda-day-today-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 18px;
  padding: 0 7px;
  border-radius: 999px;
  background: #dcf6ef;
  color: #0e6655;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: .02em;
}

.admin-agenda-day-card {
  padding: 16px;
  margin-top: 12px;
}

.admin-agenda-week-card {
  padding: 14px;
}

.admin-agenda-week-columns {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
}

.admin-agenda-week-column {
  border: 1px solid var(--admin-line);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
}

.admin-agenda-week-column-title {
  margin: 0;
  padding: 10px;
  color: var(--admin-ink);
  border-bottom: 1px solid var(--admin-line);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.admin-agenda-week-column-date {
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
}

.admin-agenda-week-column-dayline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.admin-agenda-week-column-day {
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--admin-muted-ink);
}

.admin-agenda-week-today-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #86efac;
}

.admin-agenda-week-column-content {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 120px;
}

.admin-agenda-week-empty {
  font-size: 12px;
  color: var(--admin-muted-ink);
}

.admin-agenda-week-item {
  border: 1px solid #e3ebff;
  border-radius: 10px;
  padding: 8px;
  background: #f0f4ff;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.admin-agenda-week-item-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.admin-agenda-week-item-toggle {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
  text-align: left;
}

.admin-agenda-week-item-title-wrap {
  display: block;
  min-width: 0;
  flex: 1 1 auto;
}

.admin-agenda-week-item-title {
  display: block;
  width: 100%;
  font-size: 12px;
  line-height: 1.3;
  color: var(--admin-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.5px;
}

.admin-agenda-week-item-protocol {
  display: flex;
  align-items: baseline;
  gap: 4px;
  width: auto;
  margin-top: 2px;
  font-size: 10px;
  letter-spacing: -0.5px;
  line-height: 1.35;
  color: var(--admin-ink-soft);
}

.admin-agenda-week-item-protocol-label {
  font-weight: 600;
}

.admin-agenda-week-item-protocol-value {
  font-size: 11px;
  font-weight: 800;
  color: var(--admin-ink-soft);
  line-height: 1.35;
}

.admin-agenda-week-item-toggle svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: var(--admin-ink);
  flex: 0 0 20px;
  margin-top: 2px;
  transition: transform 160ms ease;
}

.admin-agenda-week-item.is-open .admin-agenda-week-item-toggle svg {
  transform: rotate(180deg);
}

.admin-agenda-week-item .admin-badge {
  font-size: 10px;
  padding: 2px 8px;
}

.admin-agenda-week-item-status-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
}

.admin-agenda-week-pdf-link {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  margin-top: 12px;
  margin-bottom: 12px;
  
  text-decoration: none;
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.admin-agenda-week-pdf-link svg {
  width: 16px;
  height: 16px;
}

.admin-agenda-week-pdf-link:hover,
.admin-agenda-week-pdf-link:focus-visible {
  color: var(--admin-brand);
}

.admin-agenda-week-item-extra {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.admin-agenda-week-item-extra[hidden] {
  display: none !important;
}

.admin-agenda-week-item-line {
  font-size: 12px;
  color: var(--admin-ink-soft);
  line-height: 1.35;
}

.admin-agenda-week-item-line span {
  font-weight: 700;
}

.admin-agenda-week-detail {
  margin-top: 4px;
  width: 100%;
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid #f1f1f1 !important;
  border-radius: 4px;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  color: var(--admin-brand);
  text-decoration: none;
}

.admin-agenda-week-detail svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 14px;
}

.admin-agenda-week-detail:hover {
  background: rgba(184, 36, 36, 0.06);
  border-color: rgba(184, 36, 36, 0.28);
  color: var(--admin-brand);
}

.admin-agenda-pdf-icon-link {
  color: #6a7d9e;
}

.admin-agenda-pdf-icon-link:hover,
.admin-agenda-pdf-icon-link:focus-visible {
  color: var(--admin-brand);
}

.admin-agenda-day-title {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 800;
  color: var(--admin-ink);
}

.admin-agenda-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.admin-agenda-item {
  border: 1px solid var(--admin-line);
  border-radius: 14px;
  padding: 12px;
  background: #fff;
}

.admin-agenda-day-card .admin-agenda-items .admin-agenda-item {
  padding: 16px;
  border: 1px solid #e3ebff;
}

.admin-agenda-day-card .admin-agenda-items .admin-agenda-item:nth-child(odd) {
  background: #fff;
}

.admin-agenda-day-card .admin-agenda-items .admin-agenda-item:nth-child(even) {
  background: #eef3fc;
}

.admin-agenda-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.admin-agenda-item-head-left {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-agenda-item-head-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-left: auto;
}

.admin-agenda-item-pdf-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border: 1px solid var(--admin-line);
  border-radius: 999px;
  background: #fff;
  color: var(--admin-ink-soft);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}

.admin-agenda-item-pdf-link svg {
  width: 14px;
  height: 14px;
  fill: currentColor !important;
  stroke: none !important;
  flex: 0 0 14px;
}

.admin-agenda-item-pdf-link:hover,
.admin-agenda-item-pdf-link:focus-visible {
  border-color: rgba(184, 36, 36, 0.28);
  color: var(--admin-brand);
}

.admin-agenda-item-head h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: var(--admin-ink);
}

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

.admin-agenda-item-full {
  grid-column: 1 / -1;
}

.admin-agenda-label {
  display: block;
  margin: 0 0 2px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: var(--admin-muted-ink);
}

.admin-agenda-item-grid p {
  margin: 0;
  font-size: 15px;
  color: var(--admin-ink-soft);
  line-height: 1.4;
}

.admin-agenda-item-actions {
  margin-top: 12px;
  display: flex;
  justify-content: flex-end;
}

@media (max-width: 1020px) {
  .admin-agenda-month-grid,
  .admin-agenda-weekdays {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .admin-agenda-week-columns {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .admin-page-head > .admin-inline-row.admin-agenda-head-tools {
    display: flex;
  }

  .admin-agenda-toolbar-card {
    padding: 14px;
  }

  .admin-agenda-left,
  .admin-agenda-right {
    width: 100%;
  }

  .admin-agenda-right {
    margin-left: 0;
    justify-content: flex-start;
  }

  .admin-agenda-range-title {
    font-size: 18px;
    margin-top: 8px;
  }

  .admin-agenda-nav {
    width: 100%;
  }

  .admin-agenda-nav .admin-btn {
    flex: 1 1 auto;
    justify-content: center;
  }

  .admin-agenda-view-rail-wrap {
    width: 100%;
  }

  .admin-agenda-view-rail-wrap .admin-filter-rail {
    width: 100%;
  }

  .admin-agenda-tools {
    width: 100%;
    justify-content: flex-start;
  }

  .admin-agenda-tools .admin-year-filter-menu.custom-select {
    min-width: 0;
    width: auto;
  }

  .admin-agenda-search-form {
    width: 100%;
    min-width: 0;
    max-width: none;
  }

  .admin-agenda-panel-head {
    align-items: flex-start;
  }

  .admin-agenda-period-badge {
    font-size: 13px;
    min-height: 32px;
    padding: 6px 12px;
  }

  .admin-agenda-panel-actions {
    width: 100%;
    margin-left: 0;
    gap: 8px;
  }

  .admin-agenda-mini-search-form {
    flex: 1 1 auto;
    min-width: 0;
  }

  .admin-agenda-mini-search-form .admin-form-group input {
    width: 100%;
  }

  .admin-agenda-weekdays {
    display: none;
  }

  .admin-agenda-month-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-agenda-day-cell {
    min-height: 148px;
  }

  .admin-agenda-day-body {
    min-height: 148px;
    padding: 10px 10px 8px;
  }

  .admin-agenda-day-total {
    gap: 2px;
  }

  .admin-agenda-day-total-label {
    font-size: 11px;
  }

  .admin-agenda-day-total-value {
    font-size: 17px;
  }

  .admin-agenda-day-recipient-row {
    font-size: 15px;
  }

  .admin-agenda-day-recipient-row > svg {
    width: 18px;
    height: 18px;
  }

  .admin-agenda-day-number-bg {
    right: 8px;
    bottom: 4px;
    font-size: 62px;
  }

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

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