@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --navy: #132c31;
  --teal: #126653;
  --bg: #f5f7f8;
  --muted: #78858a;
  --line: #e5eaec;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  font-family: 'DM Sans', sans-serif;
  color: #23363c;
  font-size: 14px;
}

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

button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
  border: 0;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid #e6a54a;
  outline-offset: 3px;
}

button:hover {
  filter: brightness(.96);
}

.sidebar {
  width: 238px;
  position: fixed;
  inset: 0 auto 0 0;
  background: var(--navy);
  color: #dfe8e8;
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  color: white;
  text-decoration: none;
  font-family: Manrope, sans-serif;
  font-weight: 800;
  font-size: 19px;
}

.logo {
  background: #eea248;
  color: #182c31;
  border-radius: 12px;
  display: inline-grid;
  place-items: center;
  font-size: 20px;
  width: 45px;
  height: 45px;
  font-weight: 800;
}

.brand small {
  display: block;
  font-size: 9px;
  letter-spacing: 1.8px;
  color: #9bb0b3;
  margin-top: 5px;
}

.workspace {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #365057;
  border-radius: 9px;
  padding: 14px 10px;
  margin: 35px 0 30px;
  font-size: 12px;
}

.workspace small {
  display: block;
  color: #91a7ab;
  font-size: 10px;
  margin-top: 5px;
}

.city-icon {
  font-size: 24px;
  color: #b3cacd;
}

.online {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #69b997;
  flex-shrink: 0;
}

.workspace > .online {
  margin-left: auto;
}

.nav-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.7px;
  color: #859ea3;
  margin: 0 10px 13px;
}

nav button {
  color: #a9bfc2;
  background: transparent;
  text-align: left;
  padding: 13px;
  width: 100%;
  border-radius: 7px;
  font-size: 12px;
  margin: 3px 0;
  display: flex;
  align-items: center;
  gap: 11px;
}

nav button span {
  font-size: 20px;
}

nav button.active {
  background: #2c484c;
  color: white;
}

.side-bottom {
  margin-top: auto;
}

.support {
  font-size: 11px;
  color: #aac0c2;
  padding: 16px 10px;
}

.support .online {
  margin-right: 5px;
}

.support p {
  font-size: 10px;
  line-height: 1.8;
  color: #78969b;
  margin-top: 12px;
}

.profile {
  background: transparent;
  color: #e6efee;
  display: flex;
  width: 100%;
  align-items: center;
  gap: 10px;
  text-align: left;
  padding: 20px 0 0;
  border-top: 1px solid #334b50;
  font-size: 12px;
}

.profile small {
  display: block;
  color: #849da2;
  font-size: 10px;
  margin-top: 4px;
}

.profile > span:last-child {
  margin-left: auto;
}

.avatar {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: #e1ece9;
  color: #366455;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

.profile .avatar {
  background: #3b5759;
  color: #cee2dd;
}

.app {
  margin-left: 238px;
}

header {
  height: 78px;
  background: white;
  border-bottom: 1px solid var(--line);
  padding: 0 35px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.breadcrumb {
  font-size: 11px;
  color: #7f8c91;
}

.breadcrumb span {
  margin: 0 15px;
  color: #cad1d4;
}

.breadcrumb strong {
  font-weight: 500;
  color: #4b5b61;
}

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

.header-city {
  font-size: 10px;
  color: #7a888e;
}

.demo {
  font-size: 8px;
  letter-spacing: 1.2px;
  color: #9a743c;
  border: 1px solid #eddac0;
  background: #fffaf2;
  border-radius: 4px;
  padding: 5px 7px;
  font-weight: 700;
}

main {
  max-width: 1800px;
  margin: auto;
  padding: 34px;
}

.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.eyebrow {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.7px;
  color: #8b979b;
  margin-bottom: 9px;
}

h1,
h2,
h3 {
  font-family: Manrope, sans-serif;
}

h1 {
  margin: 0;
  font-size: 28px;
  letter-spacing: -1px;
  font-weight: 800;
}

.heading-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #eaa34d;
  margin: 0 0 4px 10px;
}

.page-heading p {
  font-size: 12px;
  color: var(--muted);
  margin: 10px 0 0;
}

.primary {
  background: var(--teal);
  color: white;
  border-radius: 7px;
  padding: 12px 18px;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
}

.primary > span {
  font-size: 20px;
  line-height: 16px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 29px 0 34px;
}

.stat {
  padding: 18px 20px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  position: relative;
}

.stat .stat-label {
  font-size: 11px;
  color: #77848a;
}

.stat strong {
  display: block;
  font-family: Manrope, sans-serif;
  font-size: 30px;
  letter-spacing: -1px;
  margin: 10px 0 5px;
}

.stat small {
  font-size: 10px;
  color: #859197;
}

.stat-icon {
  position: absolute;
  right: 16px;
  top: 16px;
  background: #f1f5f6;
  border-radius: 8px;
  padding: 8px 10px;
  color: #64818c;
}

.stat:nth-child(2) .stat-icon {
  color: #c58140;
  background: #fff5e9;
}

.stat:nth-child(3) .stat-icon {
  color: #5184bb;
  background: #edf4fc;
}

.stat:nth-child(4) .stat-icon {
  color: #32856b;
  background: #eaf5ef;
}

.workspace-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

h2 {
  font-size: 16px;
  margin: 0;
  font-weight: 800;
}

.workspace-heading p {
  font-size: 11px;
  color: #899499;
  margin: 7px 0 0;
}

.updated {
  font-size: 10px;
  color: #93a0a5;
}

.filters {
  display: flex;
  gap: 10px;
  margin-bottom: 22px;
}

.search {
  background: white;
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  flex: 1;
  min-width: 120px;
}

.search span {
  font-size: 25px;
  margin-left: 12px;
  color: #a0abad;
}

.search input {
  border: 0;
  background: transparent;
  width: 100%;
  min-width: 0;
  font-size: 11px;
  padding: 12px;
  outline: none;
}

.filters select {
  border: 1px solid var(--line);
  background: white;
  border-radius: 7px;
  padding: 9px 28px 9px 12px;
  font-size: 10px;
  color: #65747b;
}

.view-toggle {
  display: flex;
  background: #e9eef0;
  padding: 3px;
  border-radius: 7px;
}

.view-toggle button {
  background: transparent;
  color: #8a979c;
  border-radius: 4px;
  padding: 5px 10px;
  font-size: 20px;
  line-height: 24px;
}

.view-toggle .selected {
  background: white;
  color: #355a58;
  box-shadow: 0 1px 3px #0001;
}

.board {
  display: grid;
  grid-template-columns: repeat(4, minmax(210px, 1fr));
  gap: 15px;
  align-items: start;
  overflow-x: auto;
  padding-bottom: 12px;
}

.column {
  background: #edf1f3;
  border: 1px solid #e6ebed;
  border-radius: 10px;
  min-height: 400px;
  padding: 12px 10px;
}

.column.dragover {
  background: #e2eee9;
  outline: 2px dashed #52917c;
}

.column-head {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 2px 3px 16px;
  font-size: 11px;
  font-weight: 700;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #83939e;
}

.column:nth-child(2) .status-dot {
  background: #e0a24d;
}

.column:nth-child(3) .status-dot {
  background: #598abf;
}

.column:nth-child(4) .status-dot {
  background: #599c7d;
}

.count {
  font-size: 9px;
  background: #dfe5e8;
  border-radius: 4px;
  padding: 3px 6px;
  color: #75828b;
}

.column-head .dots {
  margin-left: auto;
  color: #9ca9ae;
  letter-spacing: 2px;
}

.ticket {
  display: block;
  background: white;
  border: 1px solid #e2e8eb;
  border-radius: 8px;
  padding: 14px 13px;
  text-align: left;
  width: 100%;
  margin-bottom: 10px;
  box-shadow: 0 2px 3px #273d4403;
  color: inherit;
  cursor: grab;
  transition: transform .15s, box-shadow .15s;
}

.ticket:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px #223c4610;
  filter: none;
}

.ticket:active {
  cursor: grabbing;
}

.ticket-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 4px;
}

.ticket-id {
  font-size: 9px;
  color: #95a0a6;
  letter-spacing: .2px;
}

.badge {
  font-size: 8px;
  padding: 4px 6px;
  border-radius: 4px;
  font-weight: 700;
  white-space: nowrap;
}

.critical {
  color: #bd5855;
  background: #fceeed;
}

.high {
  color: #b97b37;
  background: #fff2df;
}

.medium {
  color: #5786ac;
  background: #eef5fb;
}

.low {
  color: #729584;
  background: #edf5f0;
}

.ticket h3 {
  font-size: 12px;
  line-height: 1.6;
  margin: 13px 0 8px;
  font-weight: 800;
}

.ticket-location {
  font-size: 10px;
  color: #85949a;
  display: flex;
  gap: 5px;
  align-items: center;
}

.ticket-type {
  display: inline-block;
  font-size: 8px;
  color: #7a8890;
  background: #f3f5f6;
  border-radius: 4px;
  padding: 4px 6px;
  margin-top: 13px;
}

.ticket-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #eff2f3;
  margin-top: 14px;
  padding-top: 11px;
  gap: 4px;
  font-size: 9px;
  color: #98a3a8;
}

.assignee {
  display: flex;
  align-items: center;
  gap: 5px;
}

.mini-avatar {
  border-radius: 50%;
  background: #e8efed;
  color: #65857a;
  font-size: 7px;
  font-weight: 700;
  width: 21px;
  height: 21px;
  display: inline-grid;
  place-items: center;
}

.add-column {
  width: 100%;
  background: transparent;
  border: 1px dashed #d6dfe3;
  border-radius: 6px;
  padding: 10px;
  color: #8a999f;
  font-size: 10px;
}

.empty {
  font-size: 11px;
  text-align: center;
  color: #8a979d;
  padding: 40px 10px;
}

footer {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  color: #93a0a5;
  margin-top: 22px;
}

footer .online {
  margin-right: 5px;
  width: 5px;
  height: 5px;
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: white;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
  white-space: nowrap;
}

th,
td {
  text-align: left;
  padding: 15px;
  border-bottom: 1px solid var(--line);
}

th {
  background: #eff3f4;
  font-size: 10px;
  color: #6a7e84;
}

td button,
.text-button {
  background: transparent;
  color: var(--teal);
  font-size: 11px;
}

.report-card {
  background: white;
  border: 1px solid var(--line);
  padding: 24px;
  border-radius: 10px;
  max-width: 750px;
}

.bar-row {
  display: grid;
  grid-template-columns: 145px 1fr 25px;
  gap: 15px;
  align-items: center;
  font-size: 12px;
  margin-top: 25px;
}

.bar-track {
  height: 10px;
  background: #edf1f2;
  border-radius: 5px;
  overflow: hidden;
}

.bar {
  height: 100%;
  background: var(--teal);
  border-radius: 5px;
}

dialog {
  border: 0;
  border-radius: 15px;
  box-shadow: 0 20px 90px #142b3440;
  padding: 28px;
  width: min(660px, calc(100% - 30px));
  max-height: 90vh;
  color: #23363c;
}

dialog::backdrop {
  background: #112d3866;
  backdrop-filter: blur(3px);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h2 {
  font-size: 22px;
}

.icon-button {
  background: #f0f4f4;
  color: #6d828a;
  font-size: 24px;
  border-radius: 50%;
  width: 32px;
  height: 32px;
}

.form-intro {
  font-size: 12px;
  color: #809097;
  margin: 12px 0 23px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

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

label {
  font-size: 11px;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

label input,
label select,
label textarea {
  padding: 11px 12px;
  border: 1px solid #dce4e7;
  border-radius: 6px;
  width: 100%;
  min-width: 0;
  color: #41575d;
  background: white;
  outline: none;
  font-size: 12px;
}

input:focus,
textarea:focus,
select:focus {
  outline: 2px solid #7aab9840;
  border-color: #7aab98;
}

textarea {
  resize: vertical;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 24px;
}

.secondary {
  border: 1px solid #dce4e7;
  background: white;
  color: #64767d;
  padding: 11px 17px;
  border-radius: 7px;
  font-size: 12px;
}

.toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translate(-50%, 25px);
  background: #183e34;
  color: white;
  box-shadow: 0 5px 25px #0002;
  padding: 14px 22px;
  border-radius: 8px;
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transition: .2s;
  z-index: 10;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

#login {
  width: min(880px, calc(100% - 30px));
  padding: 0;
}

#login[open] {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.login-art {
  background: var(--navy);
  padding: 35px;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 480px;
  position: relative;
  overflow: hidden;
}

.login-art:after {
  content: '';
  position: absolute;
  width: 320px;
  height: 320px;
  border: 1px solid #ffffff12;
  border-radius: 50%;
  bottom: -180px;
  left: 70px;
  box-shadow: 0 0 0 45px #ffffff04, 0 0 0 90px #ffffff03;
}

.login-art .eyebrow {
  color: #9ebcb7;
  font-size: 8px;
}

.login-art h2 {
  font-size: 30px;
  line-height: 1.5;
  letter-spacing: -1px;
}

.login-art p {
  color: #a1b7b9;
  font-size: 12px;
  line-height: 1.9;
}

.login-art small {
  font-size: 8px;
  letter-spacing: 2px;
  color: #819da0;
}

#login-form,
#register-form {
  padding: 42px 35px;
  min-height: 0;
  overflow-y: auto;
}

#login-form h2,
#register-form h2 {
  font-size: 23px;
  margin-top: 24px;
}

#login-form > p,
#register-form > p {
  color: #89969c;
  font-size: 12px;
  margin-bottom: 25px;
}

#login-form label,
#register-form label {
  margin-bottom: 17px;
}

#login-form .primary,
#register-form .primary {
  width: 100%;
  margin-top: 5px;
}

#login-form .login-note,
#register-form .login-note {
  font-size: 10px;
  line-height: 1.7;
  margin-top: 20px;
}

.auth-error {
  background: #fff4f2;
  border-radius: 6px;
  color: #a24343 !important;
  line-height: 1.5;
  padding: 9px 11px;
}

.text-button {
  padding: 0;
}

.search input::placeholder {
  color: #9ca6ab;
}

[hidden] {
  display: none !important;
}

@media (min-width: 1500px) {
  .ticket {
    padding: 18px;
  }

  .ticket h3 {
    font-size: 14px;
  }
}

@media (max-width: 1100px) {
  .sidebar {
    width: 200px;
    padding: 25px 14px;
  }

  .brand {
    font-size: 16px;
  }

  .app {
    margin-left: 200px;
  }

  main {
    padding: 25px;
  }

  header {
    padding: 0 25px;
  }

  .header-city {
    display: none;
  }

  .stats {
    gap: 10px;
  }

  .stat {
    padding: 15px;
  }

  .stat-icon {
    right: 10px;
    top: 12px;
    padding: 6px;
  }

  .board {
    grid-template-columns: repeat(4, 230px);
  }

  h1 {
    font-size: 25px;
  }

  .filters {
    flex-wrap: wrap;
  }

  .search {
    min-width: 220px;
  }
}

@media (max-width: 700px) {
  .sidebar {
    position: relative;
    width: 100%;
    padding: 15px 18px;
    display: block;
  }

  .brand {
    font-size: 17px;
  }

  .logo {
    width: 37px;
    height: 37px;
    font-size: 17px;
  }

  .brand small {
    font-size: 8px;
  }

  .workspace,
  .nav-label,
  .side-bottom {
    display: none;
  }

  nav {
    display: flex;
    gap: 5px;
    margin-top: 16px;
  }

  nav button {
    font-size: 10px;
    justify-content: center;
    gap: 6px;
    padding: 8px 5px;
  }

  nav button span {
    font-size: 17px;
  }

  .app {
    margin: 0;
  }

  header {
    height: 52px;
    padding: 0 18px;
  }

  .breadcrumb {
    font-size: 9px;
  }

  .breadcrumb span {
    margin: 0 8px;
  }

  .header-right {
    gap: 10px;
  }

  .header-right .avatar {
    width: 27px;
    height: 27px;
    font-size: 9px;
  }

  main {
    padding: 25px 18px;
  }

  .page-heading {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 17px;
  }

  .page-heading h1 {
    font-size: 25px;
  }

  .page-heading p {
    font-size: 11px;
    line-height: 1.6;
  }

  .page-heading .primary {
    padding: 10px 15px;
    font-size: 11px;
  }

  .stats {
    grid-template-columns: 1fr 1fr;
    margin: 23px 0 27px;
  }

  .stat {
    padding: 15px;
  }

  .stat strong {
    font-size: 27px;
  }

  .stat small {
    font-size: 9px;
  }

  .workspace-heading h2 {
    font-size: 15px;
  }

  .workspace-heading p {
    font-size: 10px;
    line-height: 1.6;
  }

  .updated {
    display: none;
  }

  .search {
    flex-basis: 100%;
  }

  .filters {
    gap: 8px;
  }

  .filters select {
    flex: 1;
    min-width: 0;
    font-size: 9px;
    padding-left: 8px;
    padding-right: 8px;
  }

  .view-toggle button {
    font-size: 17px;
    padding: 3px 8px;
  }

  .board {
    grid-template-columns: repeat(4, 260px);
    margin-right: -18px;
    padding-right: 18px;
    scroll-snap-type: x proximity;
  }

  .column {
    scroll-snap-align: start;
  }

  footer {
    line-height: 1.7;
    gap: 15px;
    font-size: 8px;
  }

  footer > span:last-child {
    text-align: right;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .full {
    grid-column: auto;
  }

  dialog {
    padding: 22px;
  }

  #login[open] {
    grid-template-columns: 1fr;
  }

  .login-art {
    display: none;
  }

  #login-form,
  #register-form {
    padding: 35px 25px;
  }

  .bar-row {
    grid-template-columns: 110px 1fr 20px;
    font-size: 10px;
    gap: 8px;
  }
}
/* Estado de salvamento e painel do mapa */
button:disabled {opacity:.55;cursor:wait;}
#map {background:white;padding:20px;border-radius:16px;}
#map-note {margin-bottom:16px;color:#526174;}
[hidden] {display:none !important;}
.toast {z-index:10000;}
