:root {
  --ink: #302720;
  --muted: #766a61;
  --line: #e4dcd3;
  --surface: #fff;
  --bg: #f6f1ea;
  --brand: #b97824;
  --brand-dark: #8f5818;
  --brand-soft: #f4e8d7;
  --sidebar: #211914;
  --success: #557044;
  --danger: #a63f32;
}
.profiles-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(330px,1fr));gap:1rem;align-items:start}.profile-title{padding-bottom:1rem;border-bottom:1px solid var(--line)}.profile-title h2,.profile-title small{display:block;margin:0}.profile-title small{color:var(--muted)}.permission-group{margin:1.2rem 0 .5rem;color:var(--brand-dark);font-size:.72rem;text-transform:uppercase}.permission-item{display:flex;gap:.7rem;margin:.4rem 0;padding:.7rem;border:1px solid var(--line);border-radius:9px;background:#fcfaf7}.permission-item input{width:18px;height:18px;margin:.1rem 0 0}.permission-item strong,.permission-item small{display:block}.permission-item small{color:var(--muted);font-weight:400}.save-permissions{margin-top:1rem}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font:
    15px/1.5 system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
}
a {
  text-decoration: none;
  color: inherit;
}
h1 {
  font:
    700 clamp(1.8rem, 4vw, 2.5rem)/1.1 Georgia,
    serif;
  margin: 0.25rem 0;
}
h2 {
  font-size: 1.15rem;
}
p {
  margin: 0.35rem 0;
}
.muted {
  color: var(--muted);
}
.eyebrow {
  color: var(--brand);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.logo {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(145deg, #c88a34, #a9661d);
  color: #fff8e8;
  font:
    700 1.45rem Georgia,
    serif;
  box-shadow:
    inset 0 1px #fff5,
    0 6px 16px #0003;
}
.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1rem;
  background:
    radial-gradient(circle at top left, #ead7be, transparent 40%), var(--bg);
}
.login-card {
  width: min(100%, 420px);
  padding: 2.2rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 20px 55px #37251918;
}
.login-brand,
.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.login-brand img {
  display: block;
  width: min(100%, 250px);
  height: auto;
}
.login-brand strong,
.brand strong {
  display: block;
  font:
    700 1.45rem Georgia,
    serif;
}
.login-brand small,
.brand small {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  font-size: 0.6rem;
}
.login-card .eyebrow {
  margin-top: 2rem;
}
.login-card h1 {
  font-size: 2.2rem;
}
.login-foot {
  text-align: center;
  color: var(--muted);
  font-size: 0.72rem;
  margin: 1.5rem 0 0;
}
.shell {
  display: grid;
  grid-template-columns: 250px 1fr;
  min-height: 100vh;
}
.sidebar {
  background: var(--sidebar);
  color: #fff;
  padding: 1.2rem 1rem;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}
.brand {
  padding: 0.2rem 0.45rem 1.3rem;
  border-bottom: 1px solid #3b2e25;
}
.brand img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  padding: 7px 9px;
  border-radius: 14px;
  background: #fff8ef;
}
.brand small {
  color: #bcaea3;
}
.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-top: 1rem;
}
.sidebar nav > small {
  color: #8d7b6e;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin: 0.8rem 0.7rem 0.2rem;
}
.sidebar nav a {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: #c7b9ae;
  padding: 0.7rem;
  border-radius: 9px;
  font-weight: 650;
}
.sidebar nav a i {
  width: 27px;
  text-align: center;
  font-style: normal;
}
.sidebar nav a:hover {
  background: #342820;
}
.sidebar nav a.active {
  background: linear-gradient(135deg, #bd7c28, #ae6b1e);
  color: #fff;
}
.sidebar-user {
  margin-top: auto;
  border-top: 1px solid #46372d;
  padding: 1rem 0.4rem 0;
  display: flex;
  gap: 0.7rem;
  align-items: center;
}
.sidebar-user > span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #46372d;
  font-size: 0.7rem;
  font-weight: 800;
}
.sidebar-user strong,
.sidebar-user small {
  display: block;
}
.sidebar-user small {
  color: #bcaea3;
  text-transform: capitalize;
}
main {
  min-width: 0;
}
header {
  height: 78px;
  padding: 0 2rem;
  background: #f8f4ee;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
header div {
  display: flex;
  flex-direction: column;
}
header small {
  font-size: 0.62rem;
  color: var(--muted);
  letter-spacing: 0.08em;
}
header strong {
  font-family: Georgia, serif;
}
.logout {
  margin-left: auto;
  color: var(--danger);
  font-weight: 700;
}
.content {
  width: min(1180px, calc(100% - 3rem));
  margin: 2rem auto;
}
.page-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.3rem;
}
.page-head > div > p:last-child {
  color: var(--muted);
}
.store-switch label {
  margin: 0;
}
.progress-card,
.card,
.empty {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 1.3rem;
}
.progress-card > div:first-child {
  display: flex;
  justify-content: space-between;
}
.progress-card strong {
  font-size: 1.3rem;
}
.progress {
  height: 9px;
  background: var(--brand-soft);
  border-radius: 10px;
  overflow: hidden;
  margin: 0.7rem 0;
}
.progress i {
  display: block;
  height: 100%;
  background: var(--brand);
  border-radius: 10px;
}
.progress-card small {
  color: var(--muted);
}
.sector {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin: 1.5rem 0.4rem 0.6rem;
}
.task {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.15rem;
  margin: 0.55rem 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
  transition: 0.15s;
}
.task:hover {
  border-color: #d6ad74;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px #3b260b0a;
}
.task.done {
  opacity: 0.72;
}
.task-check {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 1.2rem;
}
.task.done .task-check {
  background: #edf4e9;
  color: var(--success);
}
.task div > small {
  display: block;
  color: var(--muted);
}
.task p {
  display: flex;
  gap: 0.4rem;
}
.task p b,
.pill {
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 0.65rem;
  padding: 0.18rem 0.5rem;
  border-radius: 20px;
  text-transform: capitalize;
}
.task-status {
  font-size: 0.75rem;
  font-weight: 750;
  color: var(--brand);
}
.empty {
  text-align: center;
  padding: 3rem;
}
.empty > span {
  font-size: 2rem;
  color: var(--brand);
}
label {
  display: block;
  margin: 1rem 0;
  font-weight: 650;
}
input,
select,
textarea {
  width: 100%;
  margin-top: 0.35rem;
  border: 1px solid #cbbfb4;
  border-radius: 9px;
  padding: 0.75rem;
  background: #fff;
  color: var(--ink);
  font: inherit;
}
textarea {
  min-height: 95px;
  resize: vertical;
}
input:focus,
select:focus,
textarea:focus {
  outline: 0;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px #b9782422;
}
.primary {
  width: 100%;
  border: 0;
  border-radius: 9px;
  padding: 0.85rem 1rem;
  background: var(--brand);
  color: #fff;
  font: 700 1rem inherit;
  cursor: pointer;
}
.primary:hover {
  background: var(--brand-dark);
}
.alert {
  padding: 0.8rem 1rem;
  border-radius: 9px;
  margin: 0 0 1rem;
  background: var(--brand-soft);
}
.alert.success {
  background: #edf4e9;
  color: #385128;
}
.alert.danger {
  background: #fbedeb;
  color: var(--danger);
}
.back {
  display: inline-block;
  color: var(--brand);
  font-weight: 700;
  margin-bottom: 1rem;
}
.execution-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 2rem;
  align-items: start;
}
.execution-grid > section {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.6rem;
}
.checkpoints {
  display: grid;
  gap: 0.55rem;
}
.checkpoints label {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 0;
  padding: 0.8rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}
.checkpoints input {
  position: absolute;
  opacity: 0;
  width: auto;
}
.checkpoints label > span {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 2px solid #cbbfb4;
  border-radius: 7px;
  color: transparent;
}
.checkpoints input:checked + span {
  background: var(--brand);
  border-color: var(--brand);
  color: white;
}
.photo-box {
  text-align: center;
  padding: 1.5rem;
  border: 2px dashed #d7c4ad;
  border-radius: 12px;
  background: #fcf8f2;
  cursor: pointer;
}
.photo-box input {
  display: none;
}
.photo-box span,
.photo-box strong,
.photo-box small {
  display: block;
}
.photo-box span {
  font-size: 1.8rem;
}
.photo-box small {
  color: var(--muted);
}
.tip {
  padding: 1.2rem;
  background: var(--brand-soft);
  border-radius: 13px;
}
.tip > span {
  font-size: 1.5rem;
}
.tip h3 {
  margin: 0.5rem 0;
}
.tip p {
  color: var(--muted);
}
.admin-grid {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 1.2rem;
  align-items: start;
}
.card h2 {
  margin-top: 0;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.inline-check {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  padding: 0.6rem;
  background: #fcf8f2;
  border-radius: 8px;
}
.inline-check input {
  width: 18px;
  height: 18px;
  margin: 0;
}
.card fieldset {
  border: 1px solid var(--line);
  border-radius: 10px;
  margin: 1rem 0;
}
.list-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--line);
}
.list-row span strong,
.list-row span small {
  display: block;
}
.list-row small {
  color: var(--muted);
}
hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 1.5rem 0;
}
.menu-check,
.menu-button,
.backdrop {
  display: none;
}
@media (max-width: 850px) {
  .shell {
    display: block;
  }
  .sidebar {
    position: fixed;
    z-index: 20;
    width: 265px;
    transform: translateX(-100%);
    transition: 0.2s;
  }
  .menu-check:checked + .shell .sidebar {
    transform: none;
  }
  .menu-check:checked + .shell .backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: #0008;
    z-index: 10;
  }
  .menu-button {
    display: block;
    font-size: 1.35rem;
    margin-right: 1rem;
  }
  .content {
    width: min(100% - 1.2rem, 1180px);
    margin: 1rem auto;
  }
  .admin-grid,
  .execution-grid {
    grid-template-columns: 1fr;
  }
  .tip {
    order: -1;
  }
}
@media (max-width: 600px) {
  header {
    height: 66px;
    padding: 0 0.8rem;
  }
  .page-head {
    align-items: stretch;
    flex-direction: column;
  }
  .store-switch {
    width: 100%;
  }
  .task {
    grid-template-columns: 36px 1fr;
  }
  .task-status {
    grid-column: 2;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .execution-grid > section,
  .card {
    padding: 1.1rem;
  }
  .login-card {
    padding: 1.5rem;
  }
}

/* Navegação e cadastros no padrão Levain ERP */
.sidebar {
  width: 272px;
  background: linear-gradient(180deg, #241d19 0%, #181412 100%);
  box-shadow: 10px 0 35px #241d1914;
}
.shell {
  grid-template-columns: 272px 1fr;
}
.sidebar nav {
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #c58a366b transparent;
}
.sidebar nav a,
.nav-group summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.8rem;
  border-radius: 10px;
  color: #d8d0cb;
  font-weight: 650;
  cursor: pointer;
  list-style: none;
}
.nav-group summary::-webkit-details-marker {
  display: none;
}
.sidebar nav a i,
.nav-group summary i {
  width: 26px;
  text-align: center;
  color: #bdae9f;
  font-style: normal;
}
.nav-group summary b {
  margin-left: auto;
  font-size: 0.72rem;
  transition: 0.2s;
}
.nav-group[open] summary b {
  transform: rotate(180deg);
}
.sidebar nav a:hover,
.nav-group summary:hover {
  background: #ffffff12;
  color: #fff;
}
.nav-group > summary.active {
  color: #fff;
}
.nav-submenu {
  margin: 4px 0 4px 20px;
  padding: 4px 0 4px 9px;
  border-left: 1px solid #ffffff1f;
}
.nav-submenu a {
  min-height: 38px !important;
  padding: 0.45rem 0.7rem !important;
  font-size: 0.86rem;
}
.nav-submenu a.active {
  background: linear-gradient(135deg, #c58a36, #a8691f) !important;
}
.sidebar-footer {
  margin: auto 0 0.8rem;
  padding: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  border: 1px solid #ffffff14;
  border-radius: 12px;
  background: #ffffff09;
}
.sidebar-footer > span {
  color: #62a34c;
}
.sidebar-footer strong,
.sidebar-footer small {
  display: block;
}
.sidebar-footer strong {
  font-size: 0.72rem;
}
.sidebar-footer small {
  color: #8f837b;
  font-size: 0.62rem;
}
.module-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.module-head p,
.module-head h1 {
  margin: 0;
}
.module-head > div > p:last-child {
  color: var(--muted);
  margin-top: 0.35rem;
}
.new-button {
  width: auto;
  min-width: 140px;
}
.list-card {
  padding: 0;
  overflow: hidden;
}
.list-title {
  padding: 1.2rem 1.35rem;
  border-bottom: 1px solid var(--line);
}
.list-title h2,
.list-title p {
  margin: 0;
}
.list-title p {
  color: var(--muted);
  font-size: 0.78rem;
}
.data-head,
.data-table article {
  display: grid;
  grid-template-columns: minmax(230px, 1.2fr) 130px minmax(220px, 1fr) 90px;
  gap: 1rem;
  align-items: center;
}
.data-head {
  padding: 0.65rem 1.35rem;
  background: #faf8f5;
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.data-table article {
  padding: 0.85rem 1.35rem;
  border-top: 1px solid var(--line);
}
.data-table article p {
  margin: 0;
  color: #5e534b;
  font-size: 0.8rem;
}
.entity {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}
.entity-icon,
.avatar {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: 0 0 38px;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-family: Georgia, serif;
  font-weight: 800;
}
.avatar {
  border-radius: 50%;
  font-family: inherit;
  font-size: 0.7rem;
}
.entity strong,
.entity small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.entity small {
  color: var(--muted);
  font-size: 0.68rem;
}
.pill.active {
  background: #edf6e8;
  color: #3d652e;
}
.pill.inactive {
  background: #fbedeb;
  color: #993a30;
}
.module-empty {
  text-align: center;
  padding: 3rem;
  color: var(--muted);
}
.module-empty > span {
  width: 50px;
  height: 50px;
  margin: auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 1.3rem;
}
.module-empty h3 {
  color: var(--ink);
  margin: 0.8rem 0 0.2rem;
}
.task-admin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1.2rem;
  padding: 0 1.35rem;
}
.task-admin {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 0.8rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
}
.task-admin-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 800;
}
.task-admin-title {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
}
.task-admin p {
  color: var(--muted);
  font-size: 0.78rem;
}
.task-admin small {
  color: #8a7b70;
  font-size: 0.68rem;
}
.modal {
  width: min(600px, calc(100% - 2rem));
  max-height: calc(100vh - 2rem);
  padding: 0;
  border: 0;
  border-radius: 16px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 25px 80px #241d1966;
}
.modal.wide {
  width: min(850px, calc(100% - 2rem));
}
.modal::backdrop {
  background: #17110db3;
  backdrop-filter: blur(2px);
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.35rem;
  border-bottom: 1px solid var(--line);
}
.modal-head h2,
.modal-head p {
  margin: 0;
}
.modal-head > button {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 9px;
  background: #f3efea;
  color: var(--muted);
  font-size: 1.4rem;
  cursor: pointer;
}
.modal-body {
  padding: 1.25rem 1.35rem;
  overflow-y: auto;
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.7rem;
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.modal-actions .primary {
  width: auto;
}
.secondary {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 0.75rem 1rem;
  background: #fff;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}
.store-check-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}
.inline-check span strong,
.inline-check span small {
  display: block;
}
.inline-check span small {
  color: var(--muted);
  font-weight: 400;
}
.new-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
@media (max-width: 900px) {
  .task-admin-grid {
    grid-template-columns: 1fr;
  }
  .data-head {
    display: none;
  }
  .data-table article {
    grid-template-columns: 1fr 1fr;
  }
  .entity {
    grid-column: 1/-1;
  }
  .data-table article p:before {
    content: attr(data-label);
    display: block;
    color: var(--muted);
    font-size: 0.6rem;
    font-weight: 800;
    text-transform: uppercase;
  }
  .shell {
    display: block;
  }
}
@media (max-width: 600px) {
  .module-head {
    align-items: stretch;
    flex-direction: column;
  }
  .new-button {
    width: 100%;
  }
  .data-table article {
    grid-template-columns: 1fr;
  }
  .entity {
    grid-column: auto;
  }
  .store-check-grid {
    grid-template-columns: 1fr;
  }
  .modal-actions {
    flex-direction: column-reverse;
  }
  .modal-actions .primary,
  .modal-actions .secondary {
    width: 100%;
  }
}
.signature-section {
  margin: 1.4rem 0;
  padding-top: 0.5rem;
  border-top: 1px solid var(--line);
}
.signature-box {
  overflow: hidden;
  border: 1px solid #cbbfb4;
  border-radius: 11px;
  background: #fff;
}
.signature-box canvas {
  display: block;
  width: 100%;
  height: 150px;
  touch-action: none;
  background: linear-gradient(#fff, #fffaf5);
}
.signature-box > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0.75rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.clear-signature {
  border: 0;
  background: transparent;
  color: var(--danger);
  font: 700 0.75rem inherit;
  cursor: pointer;
}
.supervision-filter {
  margin-bottom: 1rem;
  padding: 1rem 1.2rem;
}
.supervision-filter form {
  display: flex;
  align-items: end;
  gap: 0.8rem;
}
.supervision-filter label {
  margin: 0;
  flex: 1;
}
.supervision-filter .primary {
  width: auto;
}
.supervision-list {
  display: grid;
  gap: 1rem;
}
.supervision-item {
  padding: 1.25rem;
}
.supervision-main {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 0.9rem;
  align-items: start;
}
.supervision-main h2 {
  margin: 0.15rem 0;
}
.supervision-main blockquote {
  margin: 0.7rem 0 0;
  padding: 0.65rem 0.8rem;
  border-left: 3px solid var(--brand);
  background: #fcf8f2;
  color: var(--muted);
}
.evidence-grid {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.evidence-grid > a,
.signature-proof {
  width: 150px;
  height: 110px;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: #faf8f5;
}
.evidence-grid > a img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.signature-proof {
  width: 210px;
  height: auto;
  padding: 0.55rem;
  text-align: center;
}
.signature-proof img {
  display: block;
  width: 100%;
  height: 65px;
  object-fit: contain;
  background: #fff;
}
.signature-proof small,
.signature-proof strong {
  display: block;
  font-size: 0.65rem;
}
.signature-proof small {
  color: var(--muted);
}
@media (max-width: 600px) {
  .supervision-filter form {
    align-items: stretch;
    flex-direction: column;
  }
  .supervision-filter .primary {
    width: 100%;
  }
  .supervision-main {
    grid-template-columns: 40px 1fr;
  }
  .supervision-main > .pill {
    grid-column: 2;
    width: max-content;
  }
  .evidence-grid > a,
  .signature-proof {
    width: 100%;
    height: 150px;
  }
  .signature-proof {
    height: auto;
  }
}

/* Correcoes do menu e comportamento responsivo para tablets */
.sidebar-footer + .sidebar-user {
  margin-top: 0;
}
.nav-group {
  display: block;
}
.nav-group summary::marker {
  content: "";
}
.nav-group summary span,
.nav-submenu a span {
  flex: 1;
}
.nav-group summary b {
  display: block;
}
@media (max-width: 1100px) {
  .shell {
    display: block;
  }
  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 40;
    width: min(84vw, 310px);
    height: 100dvh;
    transform: translateX(-105%);
    transition: transform 0.22s ease;
    box-shadow: 18px 0 45px #0005;
  }
  .menu-check:checked + .shell .sidebar {
    transform: translateX(0);
  }
  .menu-check:checked + .shell .backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 35;
    background: #17110da8;
    backdrop-filter: blur(2px);
  }
  .menu-button {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    flex: 0 0 44px;
    margin-right: 0.8rem;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: #fff;
    color: var(--ink);
    font-size: 1.3rem;
    cursor: pointer;
  }
  .content {
    width: min(100% - 1.5rem, 1180px);
    margin: 1.25rem auto;
  }
  header {
    padding: 0 1rem;
  }
  .sidebar nav a,
  .nav-group summary {
    min-height: 48px;
  }
  .nav-submenu a {
    min-height: 44px !important;
  }
}
@media (max-width: 600px) {
  .sidebar {
    width: min(88vw, 320px);
  }
  header {
    height: 64px;
  }
  .content {
    width: min(100% - 1rem, 1180px);
    margin: 0.8rem auto;
  }
  .logout {
    font-size: 0.8rem;
  }
  .sidebar-footer {
    display: none;
  }
}
.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.header-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--brand);
  font-size: 1.2rem;
}
.account-menu {
  position: relative;
}
.account-menu summary {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  list-style: none;
  cursor: pointer;
}
.account-menu summary::-webkit-details-marker {
  display: none;
}
.account-menu summary > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 0.65rem;
  font-weight: 800;
}
.account-menu > div {
  position: absolute;
  right: 0;
  top: calc(100% + 0.6rem);
  z-index: 30;
  width: 180px;
  padding: 0.45rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 12px 30px #21191420;
}
.account-menu > div a {
  display: block;
  padding: 0.65rem;
  border-radius: 7px;
}
.account-menu > div a:hover {
  background: var(--brand-soft);
}
.forgot {
  text-align: right;
  margin: -0.5rem 0 1rem;
}
.forgot a {
  color: var(--brand);
  font-size: 0.78rem;
}
.account-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 1rem;
  align-items: start;
}
.account-person {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.account-person h2,
.account-person p {
  margin: 0;
}
.enable-push {
  width: 100%;
}
.push-status {
  font-size: 0.75rem;
}
.notifications-list {
  padding: 0;
}
.notifications-list > a {
  display: flex;
  gap: 0.9rem;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid var(--line);
}
.notifications-list > a > span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
}
.notifications-list p,
.notifications-list small {
  margin: 0;
  color: var(--muted);
}
.edit-button {
  display: block;
  margin-top: 0.35rem;
  border: 0;
  background: transparent;
  color: var(--brand);
  font: 700 0.7rem inherit;
  cursor: pointer;
}
@media (max-width: 700px) {
  .account-grid {
    grid-template-columns: 1fr;
  }
  .account-menu summary strong {
    display: none;
  }
}
.edit-button {
  width: 34px;
  height: 34px;
  display: inline-grid !important;
  place-items: center;
  margin: 0 0 0 0.35rem !important;
  border: 0;
  border-radius: 8px;
  background: #d49a48 !important;
  color: transparent !important;
  font-size: 0 !important;
  vertical-align: middle;
}
.edit-button:before {
  content: "✎";
  color: #3b260b;
  font-size: 1.05rem;
  font-weight: 900;
}
.edit-button:hover {
  background: #c18735 !important;
}
.task-admin-title > span {
  display: flex;
  align-items: center;
}
.task-filter {
  margin-bottom: 1rem;
  padding: 0.8rem 1rem;
}
.task-filter form,
.task-filter label {
  margin: 0;
}
.task-filter select {
  min-width: 260px;
}
.header-actions {
  margin-left: auto !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 0.65rem;
}
.header-actions .account-menu {
  order: 1;
}
.header-actions .header-icon {
  order: 2;
  font-size: 0;
}
.header-actions .header-icon:before {
  content: "🔔";
  font-size: 1rem;
}
.header-actions .account-menu summary {
  display: flex !important;
  flex-direction: row !important;
}
.header-actions .account-menu > div {
  display: block !important;
}
@media (max-width: 600px) {
  .task-filter select {
    min-width: 0;
  }
  .header-actions {
    gap: 0.35rem;
  }
  .header-icon {
    width: 38px;
    height: 38px;
  }
}
