* {
  box-sizing: border-box;
}
:root {
  font-family: Arial, Helvetica, sans-serif;
  color: #10182e;
  background: #fbfcfd;
  font-size: 13px;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button,
a,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid #258f39;
  outline-offset: 3px;
}
a {
  text-decoration: none;
  color: inherit;
}
.sidebar {
  width: 230px;
  position: fixed;
  inset: 0 auto 0 0;
  background: linear-gradient(145deg, #001d12, #003021);
  color: #fff;
  padding: 22px 15px;
  display: flex;
  flex-direction: column;
  overflow: auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 24px;
  font-weight: 700;
  white-space: nowrap;
  margin-bottom: 32px;
}
.brand small {
  display: block;
  font-size: 11px;
  font-weight: 400;
  margin-top: 7px;
}
.leaf {
  font-size: 53px;
  line-height: 1;
  color: #269b37;
  transform: rotate(-25deg);
}
nav {
  display: grid;
  gap: 5px;
}
nav a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 12px;
  font-size: 14px;
  border-radius: 8px;
}
nav a span {
  width: 20px;
  text-align: center;
  font-size: 23px;
  line-height: 1;
}
nav a:hover {
  background: #ffffff13;
}
nav a.active {
  background: linear-gradient(100deg, #127c25, #18782c);
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 30px;
}
.promo {
  padding: 17px 16px;
  border-radius: 8px;
  background:
    radial-gradient(ellipse at 90% 100%, #70813555, transparent 60%),
    linear-gradient(140deg, #11250b, #365222 55%, #0a1f10);
  box-shadow: inset 0 0 45px #0005;
}
.promo h2 {
  font-size: 18px;
  line-height: 1.3;
  margin: 0 0 10px;
}
.promo p {
  line-height: 1.5;
  margin: 0 0 12px;
}
.promo button {
  background: #16882b;
  color: white;
  border: 0;
  border-radius: 6px;
  padding: 11px 20px;
  font-weight: bold;
}
.support {
  margin-top: 12px;
  padding: 15px;
  border: 1px solid #ffffff0b;
  border-radius: 8px;
  background: #ffffff03;
}
.support h3 {
  font-size: 13px;
  margin: 0 0 13px;
}
.support a {
  display: flex;
  align-items: center;
  gap: 10px;
}
.support a > span:first-child {
  font-size: 35px;
  color: #72d979;
}
.support small {
  display: block;
  font-size: 10px;
  margin-top: 7px;
}
main {
  margin-left: 230px;
  padding: 17px 19px 20px;
}
.topbar {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}
.page-title {
  min-width: 240px;
}
.page-title h1 {
  font-size: 23px;
  color: #09251e;
  margin: 0 0 8px;
}
.page-title p {
  margin: 0;
  color: #535e72;
  font-size: 12px;
}
.icon-button,
.tool-button,
.period,
.search,
.profile {
  background: #fff;
  border: 1px solid #e1e6eb;
  border-radius: 10px;
  min-height: 45px;
}
.menu-toggle {
  background: none;
  border: 0;
  font-size: 23px;
  padding: 0 5px;
}
.toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-left: auto;
}
.search {
  display: flex;
  align-items: center;
  padding: 0 13px;
  gap: 10px;
  width: 240px;
}
.search span {
  font-size: 28px;
  color: #7b8495;
}
.search input {
  border: 0;
  background: transparent;
  min-width: 0;
  width: 100%;
  outline: none;
  font-size: 12px;
}
.tool-button {
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.period {
  padding: 0 12px;
  max-width: 135px;
}
.notification {
  font-size: 24px;
  position: relative;
  width: 45px;
}
.notification b {
  position: absolute;
  right: -3px;
  top: -3px;
  font-size: 10px;
  background: #168638;
  color: #fff;
  border-radius: 50%;
  padding: 3px 5px;
}
.profile {
  display: flex;
  align-items: center;
  padding: 6px 9px;
  gap: 12px;
}
.profile strong {
  font-size: 10px;
}
.profile small {
  display: block;
  margin-top: 6px;
  font-size: 10px;
}
.avatar {
  border: 1px solid #1f7a2d;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  text-align: center;
  color: #267d2c;
  font-size: 21px;
}
.avatar small {
  font-size: 5px;
  margin: 0;
}
.stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}
.stat {
  position: relative;
  display: flex;
  gap: 13px;
  border: 1px solid #e6e9ee;
  background: white;
  border-radius: 12px;
  padding: 16px;
  min-height: 120px;
}
.stat-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  background: #e5f2e7;
  color: #218c36;
  border-radius: 9px;
  font-size: 26px;
}
.stat h2 {
  font-size: 11px;
  font-weight: 600;
  margin: 7px 0 14px;
}
.stat strong {
  font-size: 23px;
  white-space: nowrap;
}
.stat p {
  font-size: 11px;
  color: #535e72;
  margin: 9px 0 0;
}
.mini-chart {
  position: absolute;
  right: 15px;
  bottom: 18px;
  width: 85px;
  height: 35px;
  fill: none;
  stroke: #218c36;
  stroke-width: 1.7;
}
.pipeline {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 9px;
  align-items: start;
}
.stage {
  border: 1px solid var(--border);
  background: linear-gradient(var(--tint), #fff);
  border-radius: 9px;
  overflow: hidden;
}
.stage-heading {
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 15px;
  gap: 5px;
  color: var(--color);
  border-bottom: 1px solid var(--border);
}
.stage-heading h2 {
  font-size: 11px;
  line-height: 1.6;
  margin: 0;
  font-weight: 700;
}
.count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 21px;
  border-radius: 20px;
  background: var(--badge, #d6eddb);
  padding: 0 6px;
  font-size: 11px;
  color: var(--color, #204831);
}
.stage-cards {
  padding: 5px;
}
.deal {
  border: 1px solid #e9edf0;
  border-radius: 8px;
  padding: 14px 12px 12px;
  background: #fff;
  margin-bottom: 6px;
  min-height: 125px;
}
.deal.featured {
  border-color: #c9abff;
}
.deal-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  margin-bottom: 10px;
}
.deal h3 {
  font-size: 12px;
  margin: 0;
}
.dots {
  color: #89909d;
  font-size: 19px;
  line-height: 1;
}
.new-badge {
  font-size: 9px;
  background: #eee5ff;
  color: #4b10da;
  border-radius: 6px;
  padding: 4px 6px;
}
.deal p {
  font-size: 10.5px;
  margin: 0 0 9px;
  line-height: 1.35;
}
.deal .price {
  color: var(--accent);
  font-weight: 600;
}
.deal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 4px;
  margin-top: 18px;
  font-size: 10px;
}
.deal-footer .status-icon {
  color: var(--accent);
  font-size: 18px;
}
.deal-footer.lead {
  color: #008026;
}
.deal-footer.compact {
  font-size: 8px;
}
.reason {
  color: #ce0015;
  font-size: 10px;
  margin-top: 10px;
}
.more {
  padding: 8px 16px 22px;
  font-size: 10.5px;
}
.bottom-panels {
  display: grid;
  grid-template-columns: 1fr 1.15fr 1.2fr;
  gap: 9px;
  margin-top: 10px;
}
.panel {
  background: white;
  border: 1px solid #e8ecf0;
  border-radius: 12px;
  padding: 17px 15px;
}
.panel h2 {
  font-size: 11.5px;
  margin: 0 0 15px;
}
.activities h2 .count {
  margin-left: 7px;
}
.activity {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #eff1f4;
}
.activity-icon {
  width: 29px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 5px;
  font-size: 20px;
}
.green {
  color: #168b30;
  background: #e8f5eb;
}
.blue {
  color: #005de3;
  background: #eef4ff;
}
.orange {
  color: #d79319;
  background: #fff8e9;
}
.activity strong {
  font-size: 10px;
}
.activity p {
  font-size: 9.5px;
  color: #586174;
  margin: 6px 0 0;
}
.activity time {
  font-size: 10px;
  margin-left: auto;
  color: #586174;
  align-self: flex-start;
}
.text-button {
  color: #008024;
  border: 0;
  background: none;
  font-size: 11px;
  padding: 15px 0 0;
  text-align: left;
}
.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #eff1f4;
  padding-bottom: 9px;
}
.panel-heading h2 {
  margin: 0;
}
.period-label {
  padding: 8px 10px;
  border: 1px solid #edf0f4;
  border-radius: 6px;
  font-size: 9px;
  min-width: 110px;
}
.performance-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 8px 9px;
  border-bottom: 1px solid #eff1f4;
}
.performance-row p {
  font-size: 10px;
  margin: 0 0 7px;
}
.performance-row strong {
  font-size: 16px;
}
.sparkline {
  width: 100px;
  height: 32px;
  fill: none;
  stroke: #168c32;
  stroke-width: 1.5;
}
.growth {
  font-size: 9px;
  white-space: nowrap;
  color: #525b6d;
}
.growth b {
  color: #008525;
  font-size: 11px;
}
.conversion-content {
  display: flex;
  gap: 24px;
  align-items: center;
  padding-top: 7px;
}
.funnel {
  width: 46%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.funnel i {
  display: block;
  height: 31px;
  width: 100%;
  background: #218937;
  clip-path: polygon(0 0, 100% 0, 94% 100%, 6% 100%);
  border-radius: 5px;
}
.funnel i:nth-child(2) {
  width: 79%;
  background: #5eaf74;
}
.funnel i:nth-child(3) {
  width: 58%;
  background: #8cc89d;
}
.funnel i:nth-child(4) {
  width: 39%;
  background: #b9dec3;
}
.funnel i:nth-child(5) {
  width: 25%;
  background: #e0f0e4;
}
.conversion dl {
  flex: 1;
  margin: 0;
  font-size: 9.5px;
}
.conversion dl div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 15px;
}
.conversion dd {
  margin: 0;
  white-space: nowrap;
  color: #4f5b70;
}
.filters {
  padding: 12px;
  background: #edf6ee;
  border-radius: 8px;
  margin-bottom: 15px;
}
.filters:not([hidden]) {
  display: flex;
  gap: 15px;
  align-items: center;
}
.filters select {
  padding: 8px;
  border: 1px solid #d8e4da;
  border-radius: 5px;
  margin-left: 7px;
}
[hidden] {
  display: none !important;
}
#toast {
  position: fixed;
  bottom: 22px;
  right: 22px;
  max-width: 400px;
  background: #003021;
  color: white;
  padding: 18px 22px;
  border-radius: 10px;
  box-shadow: 0 6px 25px #0003;
  z-index: 10;
  line-height: 1.5;
}
#empty-state {
  padding: 20px;
  text-align: center;
  color: #586174;
}
@media (min-width: 1450px) {
  .sidebar {
    width: 230px;
  }
  main {
    margin-left: 230px;
  }
  .deal p {
    font-size: 11px;
  }
  .deal h3 {
    font-size: 12px;
  }
  .pipeline {
    gap: 9px;
  }
  .stat h2 {
    font-size: 11px;
  }
}
@media (max-width: 1250px) {
  .topbar {
    flex-wrap: wrap;
  }
  .toolbar {
    flex: 1;
  }
  .profile {
    margin-left: auto;
  }
  .stats {
    gap: 9px;
  }
  .stat {
    padding: 12px;
    gap: 8px;
  }
  .stat strong {
    font-size: 19px;
  }
  .pipeline {
    overflow-x: auto;
    grid-template-columns: repeat(7, 175px);
    padding-bottom: 8px;
  }
  .bottom-panels {
    grid-template-columns: 1fr 1fr;
  }
  .conversion {
    grid-column: 1/-1;
  }
  .conversion-content {
    max-width: 650px;
  }
  .sidebar {
    width: 210px;
  }
  main {
    margin-left: 210px;
  }
  .brand {
    font-size: 21px;
  }
}
@media (max-width: 800px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.2s;
    z-index: 5;
    width: 230px;
    box-shadow: 8px 0 30px #0002;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  main {
    margin-left: 0;
    padding: 16px;
  }
  .topbar {
    gap: 12px;
  }
  .toolbar {
    width: 100%;
    flex-wrap: wrap;
    gap: 8px;
  }
  .search {
    flex: 1;
    min-width: 180px;
  }
  .profile {
    display: none;
  }
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stat:last-child {
    grid-column: 1/-1;
  }
  .bottom-panels {
    grid-template-columns: 1fr;
  }
  .conversion {
    grid-column: auto;
  }
  .page-title h1 {
    font-size: 21px;
  }
  .menu-toggle {
    position: relative;
    z-index: 6;
  }
  .sidebar.open ~ main .menu-toggle {
    position: fixed;
    left: 237px;
    top: 15px;
    background: white;
    border-radius: 5px;
  }
  .conversion-content {
    gap: 15px;
  }
  .tool-button {
    padding: 0 10px;
  }
  .period {
    max-width: 110px;
  }
}
/* Agenda, orçamentos e formulários do CRM. */
.primary-button,
.secondary-button {
  border-radius: 7px;
  padding: 10px 15px;
  min-height: 38px;
  font-weight: 600;
  font-size: 12px;
  border: 1px solid #dce5df;
  background: white;
  color: #194d31;
}
.primary-button {
  background: #178431;
  color: #fff;
  border-color: #178431;
}
.primary-button:hover {
  background: #106b27;
}
.secondary-button:hover {
  background: #f0f7f1;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
.section-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin: 5px 0 20px;
}
.section-bar h2 {
  font-size: 20px;
  margin: 0 0 8px;
  color: #143b2a;
}
.section-bar p,
.muted {
  color: #6c7786;
  line-height: 1.5;
}
.section-bar p {
  margin: 0;
}
.button-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.inline-message {
  font-size: 12px;
  color: #5b6b61;
  line-height: 1.6;
  min-height: 18px;
}
.agenda-layout {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 18px;
  margin-top: 18px;
}
.calendar-heading {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 22px;
}
.calendar-heading h3 {
  flex: 1;
  text-align: center;
  font-size: 18px;
  margin: 0;
  text-transform: capitalize;
  color: #194d31;
}
.calendar-weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}
.calendar-weekdays span {
  text-align: center;
  font-size: 10px;
  color: #7b887f;
  padding: 10px 0;
}
.calendar-day {
  height: 87px;
  border: 1px solid #edf1ee;
  background: white;
  text-align: left;
  padding: 10px;
  color: #203e2c;
  display: flex;
  flex-direction: column;
  gap: 7px;
  border-radius: 0;
  overflow: hidden;
}
.calendar-day:hover {
  background: #f5faf5;
}
.calendar-day.outside {
  color: #abb6ad;
  background: #fafcfb;
}
.calendar-day.selected {
  background: #eaf5ed;
  border-color: #188738;
  box-shadow: inset 0 0 0 1px #188738;
}
.calendar-day.today .day-number {
  background: #188738;
  color: white;
  border-radius: 50%;
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  margin-top: -4px;
}
.calendar-event-name {
  font-size: 9px;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  width: 100%;
  color: #21773c;
}
.calendar-legend {
  font-size: 10px;
  color: #69756d;
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 20px;
}
.legend-dot {
  width: 7px;
  height: 7px;
  background: #178431;
  border-radius: 50%;
}
.day-panel h3 {
  font-size: 16px;
  color: #194d31;
  margin: 4px 0 20px;
}
.event-card {
  padding: 14px 12px;
  background: #f8fbf8;
  border: 1px solid #e3ece5;
  border-left: 3px solid #208d3b;
  border-radius: 6px;
  margin-bottom: 12px;
}
.event-card h4 {
  font-size: 13px;
  margin: 9px 0;
}
.event-card p {
  color: #607060;
  font-size: 11px;
  line-height: 1.5;
  margin: 5px 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.event-time {
  font-weight: 700;
  color: #218438;
}
.event-label {
  display: inline-block;
  font-size: 9px;
  background: #e7efe9;
  padding: 4px 6px;
  border-radius: 4px;
  margin: 0 0 5px 6px;
}
.event-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 13px;
}
.event-actions button,
.event-actions a {
  background: none;
  border: 0;
  padding: 0;
  color: #188438;
  font-size: 11px;
}
.event-actions .danger {
  color: #b52626;
}
.quote-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(270px, 1fr);
  gap: 18px;
  align-items: start;
}
.quote-editor {
  padding: 22px;
}
.quote-editor .panel-heading {
  margin-bottom: 20px;
}
.quote-editor h3 {
  font-size: 16px;
  color: #194d31;
  margin: 0;
}
.quote-editor .text-button {
  padding: 0;
}
.quote-history {
  position: sticky;
  top: 20px;
}
.quote-history h3 {
  margin-top: 3px;
  font-size: 16px;
  color: #194d31;
}
.quote-history > p {
  font-size: 12px;
  color: #6c7786;
  line-height: 1.6;
}
.quote-item {
  border: 1px solid #e1e9e3;
  padding: 15px;
  border-radius: 8px;
  margin-top: 12px;
}
.quote-item h4 {
  font-size: 14px;
  margin: 0 0 8px;
}
.quote-item p {
  font-size: 11px;
  color: #6c7786;
  margin: 7px 0;
}
.quote-item strong {
  font-size: 16px;
  color: #178431;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.full-width {
  grid-column: 1/-1;
}
fieldset {
  border: 0;
  border-bottom: 1px solid #edf0ed;
  padding: 0 0 22px;
  margin: 0 0 22px;
  min-width: 0;
}
legend {
  font-size: 13px;
  font-weight: bold;
  color: #274b33;
  padding: 0 0 17px;
}
form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  color: #4d6054;
  margin-bottom: 12px;
}
form input,
form select,
form textarea {
  width: 100%;
  border: 1px solid #dce5de;
  border-radius: 6px;
  padding: 10px 12px;
  font: inherit;
  color: #203e2c;
  background: white;
  min-width: 0;
}
form textarea {
  resize: vertical;
  line-height: 1.55;
}
.form-actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.payment-summary {
  background: #eef7f0;
  border-radius: 7px;
  padding: 12px;
  color: #267039;
  font-size: 12px;
  line-height: 1.6;
}
.app-dialog {
  border: 1px solid #e1e9e3;
  border-radius: 12px;
  padding: 24px;
  width: min(620px, calc(100% - 30px));
  max-height: 90vh;
  overflow: auto;
  color: #233b2b;
}
.app-dialog::backdrop {
  background: #001d1277;
  backdrop-filter: blur(3px);
}
.dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  gap: 10px;
}
.dialog-heading h2 {
  margin: 0;
  font-size: 20px;
}
.close-button {
  background: none;
  border: 0;
  font-size: 27px;
  color: #657c6c;
  padding: 0 5px;
}
.app-dialog > p {
  line-height: 1.6;
  color: #657568;
}
details {
  background: #f4f8f5;
  padding: 13px;
  border-radius: 7px;
  font-size: 12px;
  line-height: 1.7;
}
details summary {
  cursor: pointer;
  font-weight: 600;
}
details a {
  color: #16802e;
  text-decoration: underline;
}
details code {
  overflow-wrap: anywhere;
}
.pdf-dialog {
  width: min(950px, calc(100% - 30px));
  height: 90vh;
}
.pdf-dialog iframe {
  width: 100%;
  height: calc(100% - 62px);
  border: 1px solid #e1e9e3;
  background: #eee;
}
.deal-actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  padding-top: 9px;
  border-top: 1px solid #f0f3f0;
}
.deal-actions button {
  padding: 0;
  background: none;
  border: 0;
  font-size: 9px;
  color: #218438;
}
.activity-link {
  display: block;
}
.quote-link {
  color: #178431;
  text-decoration: underline;
}
nav [data-view='agenda'] {
  order: 0;
}
@media (max-width: 1100px) {
  .agenda-layout {
    grid-template-columns: 1fr;
  }
  .quote-layout {
    grid-template-columns: 1fr;
  }
  .quote-history {
    position: static;
  }
  .calendar-day {
    height: 90px;
  }
  .quote-history {
    max-width: none;
  }
}
@media (max-width: 600px) {
  .section-bar {
    align-items: flex-start;
    flex-direction: column;
  }
  .section-bar h2 {
    font-size: 19px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .full-width {
    grid-column: auto;
  }
  .calendar-day {
    height: 70px;
    padding: 7px 4px;
  }
  .calendar-heading h3 {
    font-size: 15px;
  }
  .calendar-heading {
    gap: 5px;
  }
  .calendar-heading button {
    padding: 7px 10px;
  }
  .calendar-event-name {
    font-size: 8px;
  }
  .quote-editor {
    padding: 16px;
  }
  .quote-editor .panel-heading {
    align-items: flex-start;
    gap: 13px;
    flex-direction: column;
  }
  .calendar-legend {
    font-size: 9px;
    gap: 5px;
  }
  .app-dialog {
    padding: 18px;
  }
}

.database-gate {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: #f2f7f3;
  display: grid;
  place-items: center;
  padding: 20px;
}
.database-gate > .panel {
  width: min(440px, 100%);
  padding: 30px;
}
.database-gate h1 {
  color: #194d31;
  font-size: 28px;
}
.database-gate p {
  line-height: 1.6;
  color: #607060;
}
.database-gate h2 {
  font-size: 18px;
}
.database-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  color: #597363;
  font-size: 11px;
}
.database-bar > div {
  display: flex;
  gap: 8px;
}
.database-bar button {
  padding: 7px 10px;
  font-size: 10px;
}

/* Identidade visual GramaCRM: preserva as proporções da logo horizontal. */
.sidebar .brand {
  display: block;
  padding: 6px 0 20px;
  background: transparent;
  border-radius: 0;
  white-space: normal;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.brand-logo {
  display: block;
  width: 100%;
  aspect-ratio: 4.15;
  object-fit: cover;
  object-position: center;
  filter: invert(1) hue-rotate(180deg) saturate(1.2) brightness(1.15);
  mix-blend-mode: screen;
}
.sidebar .brand small {
  display: block;
  text-align: center;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.2px;
  color: #b4ccbd;
  margin-top: 12px;
  line-height: 1.4;
}
.database-gate .login-brand {
  margin: 0 auto 22px;
  width: min(310px, 100%);
  line-height: 0;
}
.login-logo {
  display: block;
  width: 100%;
  aspect-ratio: 4.15;
  object-fit: cover;
  object-position: center;
}
.database-gate > .panel {
  background: #fff;
}
@media (max-width: 600px) {
  .database-gate .login-brand {
    width: min(270px, 100%);
    margin-bottom: 18px;
  }
}
/* Agenda e ficha de Ordem de Serviço. */
.installer-mode .sidebar-bottom {
  display: none;
}
.os-day-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 22px 0 14px;
}
.os-day-heading select {
  margin-left: auto;
  max-width: 145px;
}
.os-count {
  border-radius: 50%;
  background: #098837;
  color: white;
  min-width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
}
.calendar-heading h3 {
  text-align: left;
  order: -1;
  font-size: 22px;
  color: #17231c;
}
.calendar-day.selected {
  background: #079b38;
  color: white;
  border-color: #078632;
  box-shadow: none;
}
.calendar-order-count {
  font-size: 11px;
  color: #087e30;
}
.calendar-day.selected .calendar-order-count {
  color: white;
}
.calendar-day.today .day-number {
  background: transparent;
  color: inherit;
  display: block;
  margin: 0;
}
.event-card {
  background: white;
  border: 1px solid #e0e9e5;
  padding: 18px;
  border-radius: 9px;
}
.event-card:hover {
  border-color: #109843;
  background: #f5fcf7;
}
.os-card-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}
.os-card-top strong {
  font-size: 15px;
  color: #13291b;
}
.os-badge {
  font-size: 11px;
  border-radius: 20px;
  padding: 5px 10px;
  background: #e3f6e9;
  color: #078630;
  white-space: nowrap;
}
.os-badge.in_progress {
  color: #087bd4;
  background: #e8f3ff;
}
.os-badge.closed {
  color: #586d60;
  background: #eaf0ed;
}
.os-badge.cancelled {
  color: #b92b38;
  background: #fdecef;
}
.os-card-open {
  display: flex;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.os-card-open .os-chevron {
  font-size: 24px;
}
.os-card-title {
  font-size: 12px;
  margin: 6px 0;
  color: #42584a;
}
.my-orders-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}
.os-dialog {
  width: calc(100vw - 250px);
  max-width: 1300px;
  max-height: 95vh;
  padding: 28px;
  background: #f8fbfa;
}
.os-page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 26px;
}
.os-page-header h2 {
  font-size: 27px;
  color: #111e17;
  margin: 8px 0;
}
.os-breadcrumb {
  font-size: 11px;
  color: #6d8476;
}
.os-breadcrumb span {
  color: #087b32;
  font-weight: bold;
}
.os-status-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 0 0 24px;
}
.os-step {
  padding: 13px;
  text-align: center;
  background: white;
  border: 1px solid #e2ebe5;
  border-radius: 7px;
  color: #72857a;
  font-size: 12px;
}
.os-step.current {
  background: #078d32;
  border-color: #078d32;
  color: white;
  font-weight: bold;
}
.os-step.current.cancelled {
  background: #b92b38;
  border-color: #b92b38;
}
.os-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.os-section {
  padding: 20px;
  background: white;
  border: 1px solid #edf1ee;
  box-shadow: 0 2px 9px #183d2410;
  border-radius: 9px;
  margin-bottom: 18px;
}
.os-section h3 {
  margin: 0 0 20px;
  color: #16281b;
  font-size: 15px;
}
.os-section label {
  display: block;
  margin: 14px 0;
  font-size: 12px;
  font-weight: 600;
}
.os-section input,
.os-section textarea,
.os-section select {
  display: block;
  width: 100%;
  margin-top: 6px;
  border: 1px solid #dce6df;
  border-radius: 6px;
  padding: 10px;
  background: white;
  color: #273f30;
  font: inherit;
  font-weight: 400;
}
.os-section textarea {
  resize: vertical;
}
.os-section input[readonly] {
  background: #fafcfb;
}
.os-notice {
  background: #e9f8ed;
  color: #117536;
  padding: 12px;
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.5;
}
#customer-signature {
  display: block;
  width: 100%;
  height: 150px;
  border: 1px solid #dce6df;
  background: white;
  border-radius: 6px;
  touch-action: none;
  cursor: crosshair;
}
.os-photo-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 20px 0 12px;
}
.os-photo-heading strong {
  font-size: 12px;
}
.os-photo-heading label {
  margin: 0;
  cursor: pointer;
  color: #087c32;
  border: 1px solid #9fd0aa;
  padding: 7px;
  border-radius: 5px;
  font-size: 11px;
}
.os-photo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.os-photo {
  position: relative;
  aspect-ratio: 1;
  background: #f0f6f2;
  border-radius: 6px;
  overflow: hidden;
}
.os-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.os-photo button {
  position: absolute;
  right: 4px;
  bottom: 4px;
  border: 0;
  border-radius: 4px;
  background: #172d21d9;
  color: white;
  padding: 4px 7px;
}
.os-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin: 20px 0;
}
.os-footer > div {
  display: flex;
  gap: 10px;
}
.os-danger {
  border: 1px solid #e45d64;
  color: #cb2935;
  background: white;
  padding: 10px 14px;
  border-radius: 6px;
}
.os-history-entry {
  border-left: 2px solid #1b9441;
  padding: 6px 12px;
  margin: 8px 0;
  line-height: 1.7;
  white-space: pre-wrap;
}
.os-empty-photo {
  border: 1px dashed #c8dacf;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  color: #198f40;
}
.os-dialog .muted {
  font-size: 11px;
}
.os-dialog button[disabled] {
  opacity: 0.5;
  cursor: wait;
}
@media (max-width: 1000px) {
  .os-dialog {
    width: calc(100% - 24px);
    padding: 20px;
  }
  .os-columns {
    grid-template-columns: 1fr;
  }
  .os-status-track {
    gap: 4px;
  }
  .os-step {
    padding: 10px 4px;
    font-size: 11px;
  }
}
@media (max-width: 600px) {
  .os-dialog {
    width: 100%;
    max-height: 100dvh;
    height: 100dvh;
    margin: 0;
    border-radius: 0;
    padding: 16px;
  }
  .os-page-header {
    flex-direction: column;
  }
  .os-page-header h2 {
    font-size: 23px;
  }
  .os-footer {
    align-items: stretch;
    flex-direction: column;
  }
  .os-footer > div {
    flex-wrap: wrap;
  }
  .os-footer button {
    flex: 1;
  }
  .os-section {
    padding: 14px;
  }
  .calendar-order-count {
    font-size: 9px;
  }
  .os-card-top {
    flex-wrap: wrap;
  }
  .os-status-track {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Identificação da sessão em todos os perfis. */
.user-identity {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}
.user-initials {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 50%;
  background: #07952f;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}
.user-identity > div {
  min-width: 0;
}
.user-identity strong {
  display: block;
  font-size: 11px;
  line-height: 1.5;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  max-width: 180px;
}
.user-identity small {
  display: block;
  font-size: 10px;
  line-height: 1.5;
  color: #74847a;
}
.profile.user-identity {
  display: flex;
  flex-direction: row;
  padding: 8px 12px;
  border: 1px solid #e1e9e4;
  border-radius: 8px;
  background: white;
  gap: 9px;
}
.sidebar-user-footer {
  margin-top: auto;
  padding: 20px 4px 2px;
  flex-shrink: 0;
}
.sidebar-user strong {
  color: white;
  max-width: 145px;
}
.sidebar-user small {
  color: #adc5b4;
}
.sidebar-user-footer button {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 6px 0;
  background: none;
  border: 0;
  color: #d9e9df;
  font-size: 12px;
}
.sidebar-user-footer button:hover {
  color: #fff;
}
.sidebar-user-footer button[hidden] {
  display: none;
}
@media (max-width: 600px) {
  .profile.user-identity {
    display: flex;
    padding: 6px 8px;
    gap: 6px;
  }
  .profile.user-identity strong {
    max-width: 115px;
    font-size: 10px;
  }
  .profile.user-identity small {
    font-size: 9px;
  }
  .profile.user-identity .user-initials {
    width: 28px;
    height: 28px;
    flex-basis: 28px;
    font-size: 10px;
  }
}

/* Proporções e alinhamento do identificador na referência. */
.sidebar {
  overflow: hidden;
}
.sidebar .brand {
  flex-shrink: 0;
}
.sidebar nav {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}
.sidebar-bottom {
  display: none;
}
.sidebar-user-footer {
  margin-top: 0;
  padding: 18px 2px 0;
  flex: 0 0 auto;
}
.user-initials {
  width: 32px;
  height: 32px;
  flex-basis: 32px;
  background: linear-gradient(145deg, #0aa83d, #00852c);
  font-size: 11px;
  font-weight: 700;
}
.profile.user-identity {
  height: 46px;
  min-width: 150px;
  padding: 7px 10px;
  gap: 9px;
  border: 1px solid #e5ebe7;
  border-radius: 7px;
  box-shadow: 0 1px 3px #18352104;
  background: #fff;
}
.user-identity strong {
  font-size: 11px;
  line-height: 15px;
  font-weight: 700;
  color: #111b15;
}
.user-identity small,
.profile small {
  margin: 0;
  font-size: 9px;
  line-height: 12px;
  font-weight: 400;
  color: #69776f;
}
.user-chevron {
  width: 15px;
  height: 15px;
  margin-left: auto;
  flex-shrink: 0;
  fill: none;
  stroke: #16261c;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sidebar-user {
  gap: 9px;
}
.sidebar-user strong {
  font-size: 11px;
  color: #fff;
  line-height: 15px;
}
.sidebar-user small {
  font-size: 9px;
  line-height: 12px;
  color: #b2c7b9;
}
.sidebar-user-footer button {
  gap: 10px;
  margin-top: 12px;
  padding: 4px 0;
  color: #d6e5dc;
  font-size: 11px;
  line-height: 16px;
}
.logout-icon {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
@media (max-width: 600px) {
  .profile.user-identity {
    height: 42px;
    min-width: 0;
    padding: 6px 8px;
    gap: 7px;
  }
  .profile.user-identity .user-initials {
    width: 28px;
    height: 28px;
    flex-basis: 28px;
  }
  .profile.user-identity strong {
    font-size: 10px;
    max-width: 105px;
  }
  .profile.user-identity small {
    font-size: 9px;
  }
  .user-chevron {
    width: 12px;
    height: 12px;
  }
}
.sidebar nav {
  align-content: start;
  grid-auto-rows: max-content;
}

.account-control {
  position: relative;
}
.profile.user-identity {
  cursor: pointer;
  text-align: left;
  color: inherit;
  font-family: inherit;
}
.profile.user-identity:hover {
  border-color: #bdd7c6;
  background: #fbfefc;
}
.profile.user-identity[aria-expanded='true'] .user-chevron {
  transform: rotate(90deg);
}
.profile.user-identity:disabled {
  cursor: default;
}
.account-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 40;
  min-width: 185px;
  padding: 6px;
  background: white;
  border: 1px solid #e1e9e4;
  border-radius: 8px;
  box-shadow: 0 8px 24px #153e251a;
}
.account-menu button {
  display: block;
  width: 100%;
  border: 0;
  background: white;
  text-align: left;
  padding: 11px 12px;
  border-radius: 5px;
  color: #244d33;
  font-size: 12px;
}
.account-menu button:hover,
.account-menu button:focus-visible {
  background: #eff8f1;
}
.account-menu #database-logout {
  color: #a5323c;
}
#password-form label {
  display: block;
  margin: 15px 0;
  font-size: 12px;
}
#password-form input {
  display: block;
  width: 100%;
  padding: 10px;
  margin-top: 6px;
  border: 1px solid #dce6df;
  border-radius: 6px;
}
