:root {
  --navy: #071c36;
  --navy-soft: #0c2c4d;
  --green: #38c815;
  --green-dark: #239c0d;
  --blue: #079ce5;
  --bg: #f4f8fb;
  --surface: #ffffff;
  --text: #10233d;
  --muted: #68788d;
  --border: #dce6ee;
  --danger: #c83245;
  --shadow: 0 14px 40px rgba(19, 51, 79, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

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

button,
a,
label {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

[hidden] {
  display: none !important;
}

.app-shell {
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 40;
  width: 270px;
  display: flex;
  flex-direction: column;
  padding: 26px 18px 22px;
  color: #ffffff;
  background: var(--navy);
}

.sidebar-brand {
  height: 74px;
  display: flex;
  align-items: center;
  padding: 0 10px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-brand img {
  display: block;
  width: 205px;
  max-height: 62px;
  object-fit: contain;
  object-position: left center;
}

.area-label {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 20px 9px 0;
  color: #7ce962;
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sidebar-nav {
  display: grid;
  gap: 8px;
  margin-top: 28px;
}

.area-label + .sidebar-nav {
  margin-top: 14px;
}

.nav-link,
.logout-button {
  width: 100%;
  min-height: 50px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 0 16px;
  border: 0;
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.72);
  background: transparent;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s ease;
}

.nav-link i,
.logout-button i {
  width: 21px;
  text-align: center;
}

.nav-link:hover,
.logout-button:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.logout-button {
  margin-top: auto;
}

.sidebar-backdrop {
  display: none;
}

.app-content {
  min-height: 100vh;
  margin-left: 270px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 42px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
}

.menu-button,
.mobile-logo {
  display: none;
}

:is(.user-summary, .company-summary, .admin-summary) {
  display: flex;
  align-items: center;
  gap: 11px;
}

:is(.user-summary, .company-summary, .admin-summary) > span:last-child {
  display: grid;
  gap: 2px;
}

:is(.user-summary, .company-summary, .admin-summary) strong {
  font-size: 0.86rem;
}

:is(.user-summary, .company-summary, .admin-summary) small {
  color: var(--muted);
  font-size: 0.72rem;
}

@media (max-width: 1000px) {
  .sidebar {
    transform: translateX(-100%);
    transition: 0.25s;
    box-shadow: 14px 0 35px rgba(0, 0, 0, 0.18);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .sidebar-backdrop.visible {
    position: fixed;
    inset: 0;
    z-index: 35;
    display: block;
    background: rgba(3, 18, 35, 0.48);
  }

  .app-content {
    margin-left: 0;
  }

  .topbar {
    justify-content: space-between;
    padding: 0 28px;
  }

  .menu-button {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 10px;
    color: var(--navy);
    background: #edf4f8;
  }

  .mobile-logo {
    position: absolute;
    left: 50%;
    display: block;
    transform: translateX(-50%);
  }

  .mobile-logo img {
    width: 45px;
    height: 45px;
    object-fit: contain;
  }
}
.photo-list {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.photo-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 10px;
  background: #edf6fb;
  color: #38617d;
  text-decoration: none;
  font-size: 0.8rem;
}
.photo-tag img {
  width: 72px;
  height: 56px;
  object-fit: cover;
  border-radius: 7px;
}
.form-message {
  min-height: 20px;
  color: #bd263a;
}
.form-message.success {
  color: #237b16;
}
.primary-button,
.secondary-button,
.danger-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 10px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}
.primary-button {
  border: 0;
  background: #2ebe18;
  color: #fff;
}
.secondary-button {
  border: 1px solid #cbd9e4;
  background: #fff;
  color: #173956;
}
.danger-button {
  border: 1px solid #e86172;
  background: #ce3348;
  color: #fff;
}
.primary-button:disabled,
.secondary-button:disabled,
.danger-button:disabled {
  opacity: 0.6;
  cursor: wait;
}
.agenda-coleta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 16px;
  padding: 10px 14px;
  border-inline-start: 4px solid #21815b;
  border-radius: 6px;
  background: #ecf7f0;
  color: #194c36;
  font-size: .92rem;
}
.request-card .agenda-coleta { margin-top: 10px; }
#agendaDaColeta:not(:empty) { margin-bottom: 18px; }
