:root{--blue:#1463ff;--navy:#0c1830;--text:#536077;--muted:#8b97aa;--border:#e4eaf2;--green:#1eaf5d;--red:#e94747;--shadow:0 18px 50px rgba(28,55,99,.1)}*{box-sizing:border-box}body{margin:0;font-family:Inter,system-ui,sans-serif;color:var(--navy);background:#f6f8fc}button,input,select,textarea{font:inherit}button{cursor:pointer}a{text-decoration:none;color:inherit}.admin-shell{min-height:100vh;display:grid;grid-template-columns:260px 1fr}.sidebar{height:100vh;position:sticky;top:0;padding:24px 18px;display:flex;flex-direction:column;background:#0d1c37;color:#fff}.brand{display:flex;gap:12px;align-items:center;padding:0 8px 24px;border-bottom:1px solid #ffffff1a}.brand>span{width:42px;height:42px;display:grid;place-items:center;border-radius:13px;background:var(--blue)}.brand strong,.brand small{display:block}.brand small{margin-top:3px;color:#9fb0cd}.sidebar nav{display:grid;gap:8px;margin-top:24px}.nav-button{padding:13px 14px;border:0;border-radius:12px;background:transparent;color:#aebbd0;text-align:left;font-weight:750}.nav-button:hover,.nav-button.active{background:#1463ff2b;color:#fff}.sidebar-footer{margin-top:auto;display:grid;gap:10px;padding-top:20px;border-top:1px solid #ffffff1a}.sidebar-footer a,.sidebar-footer button{padding:11px;border-radius:11px;text-align:center}.sidebar-footer a{background:#ffffff12}.sidebar-footer button{border:1px solid #ffffff21;background:transparent;color:#ffb8b8}main{min-width:0;padding:30px clamp(22px,4vw,55px) 55px}.topbar{display:flex;justify-content:space-between;align-items:center;gap:24px;margin-bottom:28px}.topbar>div:first-child>span{color:var(--blue);font-size:.72rem;font-weight:850;letter-spacing:.08em}.topbar h1{margin:5px 0 0;font-size:clamp(2rem,3vw,2.7rem)}.account{display:flex;align-items:center;gap:12px;padding:11px 13px 11px 16px;border:1px solid var(--border);border-radius:14px;background:#fff}.account strong,.account small{display:block}.account small{color:var(--muted)}.account b{padding:7px 10px;border-radius:999px;background:#eaf1ff;color:var(--blue);font-size:.72rem}.view{display:none}.view.active{display:block}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.stats article{padding:22px;border:1px solid var(--border);border-radius:18px;background:#fff;box-shadow:0 10px 28px rgba(30,56,98,.06)}.stats strong,.stats span{display:block}.stats strong{font-size:1.8rem}.stats span{margin-top:5px;color:var(--text)}.dashboard-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-top:20px}.panel{border:1px solid var(--border);border-radius:18px;background:#fff;box-shadow:0 12px 34px rgba(30,56,98,.06);overflow:hidden}.panel-head{padding:20px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #edf1f6}.panel-head h2{margin:0;font-size:1.05rem}.panel-head button{border:0;background:none;color:var(--blue);font-weight:800}.list{padding:7px 20px 14px}.list-row{padding:14px 0;display:grid;grid-template-columns:1fr auto;gap:12px;border-bottom:1px solid #edf1f6}.list-row:last-child{border-bottom:0}.list-row strong,.list-row span,.list-row small{display:block}.list-row span,.list-row small{margin-top:3px;color:var(--muted);font-size:.75rem}.toolbar{display:flex;gap:12px;margin-bottom:16px}.toolbar input{flex:1;min-width:240px}.toolbar input,.toolbar select{padding:13px;border:1px solid var(--border);border-radius:13px;background:#fff;color:var(--navy);outline:0}.table-panel{overflow-x:auto}table{width:100%;border-collapse:collapse}th,td{padding:15px 18px;border-bottom:1px solid #edf1f6;text-align:left}th{background:#f8faff;color:#617089;font-size:.74rem;text-transform:uppercase}td{font-size:.84rem}.cell strong,.cell span{display:block}.cell span{margin-top:4px;color:var(--muted);font-size:.75rem}.pill{display:inline-flex;padding:6px 9px;border-radius:999px;font-size:.7rem;font-weight:850}.pill.admin{background:#eaf1ff;color:var(--blue)}.pill.citizen{background:#eff3f8;color:#5c687a}.pill.active{background:#e5f8ed;color:#168148}.pill.blocked,.pill.open{background:#ffeded;color:#cc3636}.pill.progress{background:#e8f0ff;color:#285bd1}.pill.resolved{background:#e5f8ed;color:#168148}.pill.priority{background:#fff2df;color:#ce6900}.actions{display:flex;gap:8px}.actions button{padding:8px 10px;border:1px solid var(--border);border-radius:9px;background:#fff;font-size:.73rem;font-weight:800}.actions .danger{border-color:#f3c2c2;background:#fff5f5;color:#c93636}.actions .success{border-color:#bde9cd;background:#f1fbf5;color:#168148}.empty{padding:44px;text-align:center;color:var(--muted)}dialog{width:min(680px,calc(100% - 30px));padding:0;border:0;border-radius:20px;box-shadow:0 35px 90px rgba(11,27,55,.32)}dialog::backdrop{background:#0611269e;backdrop-filter:blur(4px)}dialog form{padding:26px}.dialog-head{display:flex;justify-content:space-between}.dialog-head span{color:var(--blue);font-size:.72rem;font-weight:850}.dialog-head h2{margin:6px 0 22px}.dialog-head button{width:38px;height:38px;border:0;border-radius:50%;font-size:1.4rem}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}dialog label{display:block;margin-bottom:16px;font-weight:750}dialog input,dialog select,dialog textarea{width:100%;margin-top:7px;padding:12px;border:1px solid var(--border);border-radius:12px}.dialog-actions{display:flex;justify-content:flex-end;gap:11px}.dialog-actions button{padding:12px 17px;border-radius:11px;border:1px solid var(--border);font-weight:800}.dialog-actions button[type=submit]{border-color:var(--blue);background:var(--blue);color:#fff}#editMessage,.page-error{color:var(--red)}.page-error{margin-bottom:20px;padding:13px;border:1px solid #f0bcbc;border-radius:12px;background:#fff1f1}.toast{position:fixed;right:22px;bottom:22px;padding:14px 17px;border-radius:13px;background:var(--navy);color:#fff;opacity:0;transform:translateY(12px);transition:.25s}.toast.show{opacity:1;transform:none}@media(max-width:900px){.admin-shell{display:block}.sidebar{position:static;height:auto}.sidebar nav{grid-template-columns:repeat(3,1fr)}.sidebar-footer{grid-template-columns:1fr 1fr}.stats{grid-template-columns:repeat(2,1fr)}.dashboard-grid{grid-template-columns:1fr}}@media(max-width:620px){main{padding:22px 14px}.topbar{align-items:flex-start;flex-direction:column}.account{width:100%;justify-content:space-between}.stats{grid-template-columns:1fr}.toolbar{flex-direction:column}.form-grid{grid-template-columns:1fr}}

.admin-select {
  appearance: none;
  -webkit-appearance: none;

  padding: 12px 42px 12px 13px;

  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%230c1830' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 14px;
}

#usersFilter,
#issuesStatus,
#issuesCategory,
#issuesResponsible {
  min-width: 190px;
  height: 48px;

  padding: 12px 46px 12px 14px;

  border: 1px solid var(--border);
  border-radius: 16px;

  color: var(--navy);
  font-size: 1rem;
  font-weight: 700;

  cursor: pointer;
  outline: none;

  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  background-color: #ffffff;

  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%230c1830' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");

  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 14px;
}



.brand-mark {
  width: 68px;
  height: 68px;
  flex: 0 0 68px;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 0;
  border-radius: 14px;
  background: transparent;
  overflow: hidden;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}


.brand .admin-logo {
  width: 68px;
  height: 68px;
  flex: 0 0 68px;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 0;
  border-radius: 14px;
  background: transparent !important;
  overflow: hidden;
}

.brand .admin-logo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}




.issue-main-cell {
  min-width: 280px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.issue-thumb-link {
  display: block;
  flex: 0 0 52px;
}

.issue-thumb {
  width: 52px;
  height: 52px;
  display: block;

  border: 1px solid var(--border);
  border-radius: 11px;

  object-fit: cover;
  background: #f2f5fa;
}

.issue-thumb-placeholder {
  flex: 0 0 52px;

  display: grid;
  place-items: center;

  background: #edf4ff;
  color: var(--blue);

  font-size: 1.15rem;
  font-weight: 850;
}

.admin-notifications {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 9999;

  width: min(380px, calc(100vw - 32px));

  display: flex;
  flex-direction: column;
  gap: 12px;

  pointer-events: none;
}

.admin-notification {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: start;
  gap: 12px;

  padding: 16px;

  border: 1px solid #dce5f2;
  border-radius: 16px;

  background: #ffffff;
  color: #10213e;

  box-shadow:
    0 16px 45px rgba(15, 35, 70, 0.18);

  pointer-events: auto;

  animation: adminNotificationIn 0.3s ease;
}

.admin-notification-icon {
  width: 42px;
  height: 42px;

  display: grid;
  place-items: center;

  border-radius: 12px;

  background: #eaf1ff;
  color: #1463ff;

  font-size: 1.15rem;
  font-weight: 900;
}

.admin-notification-content strong {
  display: block;
  margin-bottom: 4px;

  font-size: 0.92rem;
}

.admin-notification-content p {
  margin: 0;

  color: #71809a;
  font-size: 0.82rem;
  line-height: 1.45;
}

.admin-notification-close {
  width: 28px;
  height: 28px;

  display: grid;
  place-items: center;

  border: 0;
  border-radius: 8px;

  background: transparent;
  color: #77859c;

  font: inherit;
  cursor: pointer;
}

.admin-notification-close:hover {
  background: #f0f3f8;
  color: #10213e;
}

.admin-notification.is-leaving {
  animation: adminNotificationOut 0.25s ease forwards;
}

@keyframes adminNotificationIn {
  from {
    opacity: 0;
    transform: translateX(28px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes adminNotificationOut {
  to {
    opacity: 0;
    transform: translateX(28px);
  }
}

@media (max-width: 600px) {
  .admin-notifications {
    top: 16px;
    right: 16px;
    left: 16px;
    width: auto;
  }
}










.dashboard-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.dashboard-stat {
  min-width: 0;
  min-height: 118px;

  display: flex;
  align-items: center;
  gap: 14px;

  padding: 20px;

  border: 1px solid var(--border);
  border-radius: 18px;

  background: #ffffff;
  color: var(--navy);

  text-align: left;

  box-shadow:
    0 10px 28px rgba(30, 56, 98, 0.06);

  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

button.dashboard-stat:hover {
  transform: translateY(-2px);
  border-color: #cbd9ee;

  box-shadow:
    0 16px 36px rgba(30, 56, 98, 0.11);
}

.dashboard-stat-static {
  cursor: default;
}

.dashboard-stat-icon {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;

  display: grid;
  place-items: center;

  border-radius: 14px;

  font-size: 1rem;
  font-weight: 900;
}

.stat-blue {
  background: #eaf1ff;
  color: #1463ff;
}

.stat-green {
  background: #e7f8ee;
  color: #159052;
}

.stat-red {
  background: #ffeded;
  color: #d33f3f;
}

.stat-orange {
  background: #fff2df;
  color: #ce6900;
}

.stat-purple {
  background: #f0ebff;
  color: #6b4bd1;
}

.stat-navy {
  background: #e9edf4;
  color: #0c1830;
}

.dashboard-stat-content {
  min-width: 0;
  display: block;
}

.dashboard-stat-content strong,
.dashboard-stat-content span,
.dashboard-stat-content small {
  display: block;
}

.dashboard-stat-content strong {
  color: var(--navy);
  font-size: 1.7rem;
  line-height: 1;
}

.dashboard-stat-content span {
  margin-top: 7px;

  color: var(--text);
  font-size: 0.88rem;
  font-weight: 700;
}

.dashboard-stat-content small {
  margin-top: 5px;

  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.35;
}

.dashboard-control-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.6fr);
  gap: 20px;

  margin-top: 20px;
}

.panel-head > div h2 {
  margin: 0;
}

.panel-head > div p {
  margin: 5px 0 0;

  color: var(--muted);
  font-size: 0.76rem;
}

.attention-list {
  padding: 8px 20px 16px;
}

.attention-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;

  padding: 14px 0;

  border-bottom: 1px solid #edf1f6;
}

.attention-item:last-child {
  border-bottom: 0;
}

.attention-icon {
  width: 42px;
  height: 42px;

  display: grid;
  place-items: center;

  border-radius: 12px;

  background: #fff2df;
  color: #ce6900;

  font-weight: 900;
}

.attention-icon.priority {
  background: #ffeded;
  color: #d33f3f;
}

.attention-icon.stale {
  background: #fff2df;
  color: #ce6900;
}

.attention-content {
  min-width: 0;
}

.attention-content strong,
.attention-content span {
  display: block;
}

.attention-content strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;

  font-size: 0.86rem;
}

.attention-content span {
  margin-top: 4px;

  color: var(--muted);
  font-size: 0.72rem;
}

.attention-action {
  padding: 8px 11px;

  border: 1px solid var(--border);
  border-radius: 9px;

  background: #ffffff;
  color: var(--blue);

  font-size: 0.72rem;
  font-weight: 800;
}

.status-distribution {
  display: grid;
  gap: 16px;

  padding: 20px;
}

.status-row {
  display: grid;
  gap: 7px;
}

.status-row-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;

  font-size: 0.78rem;
}

.status-row-head span {
  color: var(--text);
  font-weight: 700;
}

.status-row-head strong {
  color: var(--navy);
}

.status-progress-track {
  height: 8px;

  overflow: hidden;

  border-radius: 999px;
  background: #edf1f6;
}

.status-progress-value {
  height: 100%;

  border-radius: inherit;
  background: var(--blue);

  transition: width 0.35s ease;
}

.status-progress-value.open {
  background: #e94747;
}

.status-progress-value.priority {
  background: #ed8c20;
}

.status-progress-value.confirmed {
  background: #4777db;
}

.status-progress-value.progress {
  background: #7856d8;
}

.status-progress-value.resolved {
  background: #1eaf5d;
}

.activity-panel {
  margin-top: 20px;
}

.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 7px;

  color: #168148;

  font-size: 0.73rem;
  font-weight: 800;
}

.live-indicator i {
  width: 8px;
  height: 8px;

  border-radius: 50%;
  background: #1eaf5d;

  box-shadow:
    0 0 0 5px rgba(30, 175, 93, 0.12);

  animation: livePulse 1.8s infinite;
}

@keyframes livePulse {
  50% {
    box-shadow:
      0 0 0 9px rgba(30, 175, 93, 0);
  }
}

.activity-timeline {
  display: grid;

  padding: 8px 20px 18px;
}

.activity-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;

  padding: 13px 0;

  border-bottom: 1px solid #edf1f6;
}

.activity-item:last-child {
  border-bottom: 0;
}

.activity-icon {
  width: 38px;
  height: 38px;

  display: grid;
  place-items: center;

  border-radius: 11px;

  background: #edf4ff;
  color: var(--blue);

  font-weight: 900;
}

.activity-content strong,
.activity-content span {
  display: block;
}

.activity-content strong {
  font-size: 0.82rem;
}

.activity-content span {
  margin-top: 3px;

  color: var(--muted);
  font-size: 0.72rem;
}

.activity-time {
  color: var(--muted);
  font-size: 0.7rem;
  white-space: nowrap;
}

@media (max-width: 1350px) {
  .dashboard-summary {
    grid-template-columns:
      repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1050px) {
  .dashboard-control-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  .dashboard-summary {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .dashboard-summary {
    grid-template-columns: 1fr;
  }

  .attention-item,
  .activity-item {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .attention-action,
  .activity-time {
    grid-column: 2;
    justify-self: start;
  }
}

.admin-user-cell {
  min-width: 230px;

  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-user-badge {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;

  display: block;
  object-fit: contain;

  filter:
    drop-shadow(
      0 5px 8px rgba(12, 24, 48, 0.16)
    );
}

.admin-reputation-cell {
  min-width: 160px;
}

.admin-reputation-cell strong,
.admin-reputation-cell span {
  display: block;
}

.admin-reputation-cell strong {
  color: var(--navy);
  font-size: 0.8rem;
}

.admin-reputation-cell span {
  margin-top: 4px;

  color: var(--muted);
  font-size: 0.72rem;
}

.admin-contributions {
  min-width: 145px;

  display: flex;
  flex-direction: column;
  gap: 5px;
}

.admin-contributions span {
  color: var(--muted);
  font-size: 0.72rem;
}

.admin-contributions strong {
  color: var(--navy);
  font-size: 0.8rem;
}





.table-panel table {
  width: 100%;
  table-layout: fixed;
}

#usersView table th:nth-child(1),
#usersView table td:nth-child(1) {
  width: 24%;
}

#usersView table th:nth-child(2),
#usersView table td:nth-child(2) {
  width: 18%;
}

#usersView table th:nth-child(3),
#usersView table td:nth-child(3) {
  width: 17%;
}

#usersView table th:nth-child(4),
#usersView table td:nth-child(4) {
  width: 13%;
}

#usersView table th:nth-child(5),
#usersView table td:nth-child(5) {
  width: 10%;
}

#usersView table th:nth-child(6),
#usersView table td:nth-child(6) {
  width: 11%;
}

#usersView table th:nth-child(7),
#usersView table td:nth-child(7) {
  width: 12%;
}

.admin-user-cell {
  min-width: 0;
}

.admin-user-cell .cell {
  min-width: 0;
}

.admin-user-cell .cell strong,
.admin-user-cell .cell span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-reputation-cell {
  min-width: 0;
}

.admin-reputation-cell strong,
.admin-reputation-cell span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#usersView th,
#usersView td {
  padding-left: 12px;
  padding-right: 12px;
}

#usersView .actions button {
  padding: 8px 10px;
  font-size: 0.72rem;
  line-height: 1.2;
  white-space: normal;
}

.select-wrapper {
  position: relative;
  width: 100%;
}

.select-wrapper select {
  width: 100%;
  min-height: 50px;
  padding: 0 52px 0 16px;

  border: 1px solid #d9e1ec;
  border-radius: 12px;

  background: #ffffff;
  color: #111827;

  font: inherit;
  font-weight: 600;

  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  cursor: pointer;
}

.select-wrapper::after {
  content: "";

  position: absolute;
  top: 50%;
  right: 20px;

  width: 8px;
  height: 8px;

  border-right: 2px solid #111827;
  border-bottom: 2px solid #111827;

  transform:
    translateY(-65%)
    rotate(45deg);

  pointer-events: none;
}

#issuesView table {
  width: 100%;
  table-layout: fixed;
}

#issuesView th:nth-child(1),
#issuesView td:nth-child(1) {
  width: 22%;
}

#issuesView th:nth-child(2),
#issuesView td:nth-child(2) {
  width: 11%;
}

#issuesView th:nth-child(3),
#issuesView td:nth-child(3) {
  width: 11%;
}

#issuesView th:nth-child(4),
#issuesView td:nth-child(4) {
  width: 17%;
}

#issuesView th:nth-child(5),
#issuesView td:nth-child(5) {
  width: 12%;
}

#issuesView th:nth-child(6),
#issuesView td:nth-child(6) {
  width: 11%;
}

#issuesView th:nth-child(7),
#issuesView td:nth-child(7) {
  width: 18%;
}

#issuesView th,
#issuesView td {
  box-sizing: border-box;
  overflow: hidden;
}

.issue-main-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.issue-main-cell .cell {
  min-width: 0;
  flex: 1;
}

.issue-main-cell .cell strong,
.issue-main-cell .cell span {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#issuesView td:nth-child(2) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#issuesView th,
#issuesView td {
  padding-left: 12px;
  padding-right: 12px;
}

#issuesView .actions {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
}

#issuesView .actions button {
  padding: 8px 10px;
  font-size: 0.72rem;
  white-space: nowrap;
}

#issuesView table {
  table-layout: fixed;
}

.issue-main-cell,
.issue-main-cell .cell {
  min-width: 0;
}

#issueDetailsDialog {
  width: min(720px, calc(100% - 32px));
  max-height: calc(100vh - 32px);
  padding: 0;
  border: 0;
  border-radius: 22px;
  background: transparent;
}

#issueDetailsDialog::backdrop {
  background: rgba(19, 30, 49, 0.66);
  backdrop-filter: blur(3px);
}

.issue-details-card {
  max-height: calc(100vh - 32px);
  padding: 26px;
  overflow-y: auto;
  border-radius: 22px;
  background: #ffffff;
}

.issue-details-photo-container {
  margin: 20px 0;
  overflow: hidden;
  border: 1px solid #dce5f0;
  border-radius: 16px;
  background: #eef4fc;
}

.issue-details-photo {
  display: block;
  width: 100%;
  max-height: 360px;
  object-fit: cover;
}

.issue-details-status-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0;
  flex-wrap: wrap;
}

.issue-priority-badge {
  display: inline-flex;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
}

.issue-priority-badge.normal {
  background: #edf2f8;
  color: #536174;
}

.issue-priority-badge.alta {
  background: #fff1db;
  color: #c86900;
}

.issue-priority-badge.urgente {
  background: #ffe5e8;
  color: #df2535;
}

.issue-details-grid {
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.issue-detail-item,
.issue-details-description,
.issue-detail-resolved {
  padding: 15px;
  border: 1px solid #e1e8f1;
  border-radius: 14px;
  background: #f8fafd;
}

.issue-detail-item span,
.issue-details-description > span,
.issue-detail-resolved span {
  display: block;
  margin-bottom: 5px;
  color: #75839a;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.issue-detail-item strong,
.issue-detail-resolved strong {
  display: block;
  color: #111827;
  overflow-wrap: anywhere;
}

.issue-details-description {
  margin-top: 14px;
}

.issue-details-description p {
  margin: 0;
  color: #344054;
  line-height: 1.65;
  white-space: pre-wrap;
}

.issue-detail-resolved {
  margin-top: 14px;
  border-color: #ccebd9;
  background: #eefaf3;
}

#issueDetailsDialog .dialog-actions {
  margin-top: 22px;
}

#issueDetailsDialog .dialog-actions .primary {
  border-color: #1463ff;
  background: #1463ff;
  color: #ffffff;
}

#issuesView .view-button {
  border-color: #cddcf4;
  background: #edf4ff;
  color: #1463ff;
}

@media (max-width: 640px) {
  .issue-details-grid {
    grid-template-columns: 1fr;
  }

  .issue-details-card {
    padding: 20px;
  }
}

.responsible-cell {
  min-width: 0;
}

.responsible-cell strong,
.responsible-cell span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.responsible-cell strong {
  color: #172033;
  font-size: 0.78rem;
}

.responsible-cell span {
  margin-top: 4px;
  color: #8190a6;
  font-size: 0.7rem;
}

.responsibility-editor {
  padding: 15px 16px;
  border: 1px solid #cfe0ff;
  border-radius: 14px;
  background: #f3f7ff;
}

.responsibility-editor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.responsibility-editor-head > div {
  min-width: 0;
}

.responsibility-editor-head span,
.responsibility-editor-head strong,
.responsibility-editor-head small {
  display: block;
}

.responsibility-editor-head span {
  margin-bottom: 5px;
  color: #687991;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
}

.responsibility-editor-head strong {
  color: #1463ff;
  font-size: 0.9rem;
}

.responsibility-editor-head small {
  margin-top: 4px;
  color: #7c8ca3;
}

#detectResponsibleButton {
  flex-shrink: 0;
  padding: 10px 14px;
  border: 1px solid #1463ff;
  border-radius: 10px;
  background: #1463ff;
  color: #ffffff;
  font-weight: 800;
  cursor: pointer;
}

#detectResponsibleButton:disabled {
  cursor: wait;
  opacity: 0.65;
}

.responsibility-editor-message {
  min-height: 18px;
  margin: 8px 0 0;
  color: #d92d20;
  font-size: 0.75rem;
}

@media (max-width: 600px) {
  .responsibility-editor-head {
    align-items: stretch;
    flex-direction: column;
  }

  #detectResponsibleButton {
    width: 100%;
  }
}

#detailsIssueResponsible {
  color: #1463ff;
}

#detailsIssueMunicipality {
  color: #344054;
}

.toolbar-select-wrapper {
  min-width: 100px;
  flex: 1;
}

.toolbar-select-wrapper select {
  width: 100%;
}