* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  background: #F3F5FA;
  font-family: Roboto, system-ui, -apple-system, sans-serif;
  color: #081C37;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
}

a {
  color: inherit;
}

button,
input,
select {
  font-family: inherit;
}

.ms {
  font-family: 'Material Symbols Outlined';
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  font-size: 20px;
  line-height: 1;
  color: #5B6675;
  user-select: none;
}

.ms.err {
  color: #b3544a;
}

.ms.warn {
  color: #8A6400;
}

.app {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

.rail {
  width: 256px;
  flex: 0 0 256px;
  background: #ffffff;
  border-right: 1px solid #DDE3EC;
  display: flex;
  flex-direction: column;
  padding: 8px 0;
  overflow-y: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px 18px;
}

.brand-mark {
  width: 26px;
  height: 26px;
  border-radius: 3px;
  background: #081C37;
  color: #FFB500;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
}

.brand-name {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .14em;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 9px 22px;
  font-size: 13.5px;
  color: #081C37;
  text-decoration: none;
  cursor: pointer;
}

.nav-item .ms {
  font-size: 19px;
  flex: 0 0 auto;
}

.nav-item:hover {
  background: #F7F9FC;
}

.nav-item.on {
  background: #FFF7E6;
  color: #081C37;
  font-weight: 500;
  box-shadow: inset 3px 0 0 #FFB500;
}

.nav-item.on:hover {
  background: #FFF7E6;
}

.nav-item.on .ms {
  color: #081C37;
}

.nav-btn {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
}

.nav-sec {
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #5B6675;
  padding: 18px 22px 6px;
}

.rail-spacer {
  flex: 1;
  min-height: 24px;
}

.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.topbar {
  height: 60px;
  flex: 0 0 60px;
  background: #ffffff;
  border-bottom: 1px solid #DDE3EC;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 22px;
}

.topbar h1 {
  font-size: 17px;
  font-weight: 500;
  white-space: nowrap;
}

.topbar-icon {
  cursor: default;
}

.spacer {
  flex: 1;
}

.search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #F1F4F9;
  border: 1px solid transparent;
  border-radius: 3px;
  padding: 7px 12px;
  width: 320px;
}

.search input {
  border: 0;
  background: transparent;
  outline: 0;
  font-size: 13px;
  width: 100%;
  color: #081C37;
}

.search input::placeholder {
  color: #5B6675;
}

.avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #E6EDF7;
  color: #081C37;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  flex: 0 0 auto;
}

.content {
  padding: 22px;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}

.card {
  background: #ffffff;
  border: 1px solid #DDE3EC;
  border-radius: 3px;
}

.card-h {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  border-bottom: 1px solid #DDE3EC;
}

.card-t {
  font-size: 13px;
  font-weight: 500;
}

.card-b {
  padding: 14px 16px;
}

.muted {
  color: #5B6675;
  font-size: 12.5px;
}

.kpi {
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -.5px;
  line-height: 1.15;
}

.row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tag {
  font-size: 11px;
  padding: 3px 7px;
  border-radius: 3px;
  background: #F1F4F9;
  color: #5B6675;
  white-space: nowrap;
}

.tag.ok {
  background: #EDF4EF;
  color: #3f7a52;
}

.tag.warn {
  background: #FFF7E6;
  color: #8A6400;
}

.tag.err {
  background: #FBEDEB;
  color: #b3544a;
}

.tag.info {
  background: #EEF3F9;
  color: #081C37;
}

.mono {
  font-family: 'Roboto Mono', monospace;
  font-size: 12px;
}

.auth {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 520px;
  min-height: 100vh;
}

.auth-side {
  background: #081C37;
  color: #fff;
  padding: 56px 54px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 48px;
  position: relative;
  overflow: hidden;
}

.auth-side .mark {
  display: flex;
  align-items: center;
  gap: 11px;
}

.auth-side .mark .bx {
  width: 30px;
  height: 30px;
  border-radius: 3px;
  background: #FFB500;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #081C37;
  font-weight: 700;
  font-size: 14px;
}

.auth-side .mark .nm {
  font-size: 13px;
  letter-spacing: .16em;
  font-weight: 500;
}

.auth-h {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -1.1px;
  line-height: 1.15;
  margin: 0;
  max-width: 440px;
}

.auth-p {
  font-size: 14.5px;
  line-height: 1.6;
  color: #B9C7D9;
  margin: 16px 0 0;
  max-width: 400px;
}

.auth-list {
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.auth-list li {
  font-size: 13.5px;
  color: #CBD6E4;
  padding: 7px 0;
  display: flex;
  gap: 10px;
  align-items: center;
}

.auth-list .ms {
  font-size: 17px;
  color: #FFB500;
}

.auth-foot {
  font-size: 11.5px;
  color: #8095AF;
  letter-spacing: .06em;
}

.auth-form {
  background: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 72px;
  border-left: 1px solid #DDE3EC;
  overflow-y: auto;
}

.auth-box {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}

.auth-t {
  font-size: 23px;
  font-weight: 500;
  margin-bottom: 6px;
}

.auth-s {
  font-size: 13.5px;
  color: #5B6675;
  margin-bottom: 28px;
}

.lbl {
  font-size: 12px;
  color: #5B6675;
  margin-bottom: 6px;
  display: block;
}

.inp {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #DDE3EC;
  border-radius: 3px;
  padding: 0 13px;
  height: 46px;
  margin-bottom: 18px;
  background: #ffffff;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.inp .ms {
  font-size: 18px;
  color: #5B6675;
  flex: 0 0 auto;
}

.inp input {
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 13.5px;
  color: #081C37;
  flex: 1;
  min-width: 0;
  height: 100%;
}

.inp input::placeholder {
  color: #5B6675;
}

.inp select {
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 13.5px;
  color: #081C37;
  flex: 1;
  min-width: 0;
  height: 100%;
  appearance: none;
  cursor: pointer;
}

.inp:focus-within {
  border-color: #081C37;
  box-shadow: 0 0 0 1px #081C37;
}

.inp-btn {
  border: 0;
  background: transparent;
  padding: 0;
  display: flex;
  align-items: center;
  cursor: pointer;
}

.inp-btn .ms {
  font-size: 18px;
  color: #5B6675;
}

.profile-hint {
  font-size: 11.5px;
  color: #5B6675;
  margin: -8px 0 18px;
  line-height: 1.5;
}

.btn {
  display: block;
  width: 100%;
  background: #081C37;
  color: #fff;
  border: 0;
  border-radius: 3px;
  padding: 14px 13px;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-align: center;
  cursor: pointer;
  text-decoration: none;
}

.btn:hover {
  background: #0D2A4D;
}

.btn:focus-visible {
  outline: 2px solid #FFB500;
  outline-offset: 2px;
}

.btn-inline {
  display: inline-block;
  width: auto;
  padding: 10px 22px;
  margin-top: 8px;
}

.alt {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  color: #5B6675;
}

.alt::before,
.alt::after {
  content: '';
  height: 1px;
  background: #DDE3EC;
  flex: 1;
}

.sso {
  border: 1px solid #DDE3EC;
  border-radius: 3px;
  padding: 12px;
  font-size: 13px;
  color: #081C37;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 18px;
  cursor: default;
  user-select: none;
}

.sso .ms {
  font-size: 17px;
}

.fine {
  font-size: 11.5px;
  color: #5B6675;
  margin-top: 22px;
  line-height: 1.5;
  text-align: center;
}

.home-date {
  margin-bottom: 16px;
}

.kpi-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.kpi-card {
  background: #ffffff;
  border: 1px solid #DDE3EC;
  border-radius: 3px;
  padding: 16px 18px;
}

.kpi-label {
  font-size: 11.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #5B6675;
  margin-bottom: 8px;
}

.kpi-unit {
  font-size: 12.5px;
  font-weight: 400;
  letter-spacing: 0;
  color: #5B6675;
}

.kpi-card .muted {
  margin-top: 5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 340px;
  gap: 16px;
  align-items: start;
}

.proj-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid #DDE3EC;
  text-decoration: none;
  color: inherit;
}

.proj-row:last-child {
  border-bottom: 0;
}

.proj-row:hover {
  background: #FAFBFD;
}

.proj-main {
  flex: 1;
  min-width: 0;
}

.proj-name {
  font-size: 13.5px;
  font-weight: 500;
}

.proj-main .muted {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bar {
  height: 4px;
  border-radius: 2px;
  background: #F1F4F9;
  overflow: hidden;
  width: 90px;
  flex: 0 0 auto;
}

.bar i {
  display: block;
  height: 100%;
  background: #FFB500;
}

.feed {
  font-size: 12.5px;
  color: #5B6675;
  line-height: 1.55;
}

.feed p {
  margin-bottom: 10px;
}

.feed p:last-child {
  margin-bottom: 0;
}

.feed b {
  color: #081C37;
  font-weight: 500;
}

.alert {
  display: flex;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid #DDE3EC;
}

.alert:first-child {
  padding-top: 0;
}

.alert:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.alert .ms {
  font-size: 18px;
  flex: 0 0 auto;
}

.alert-t {
  font-size: 13px;
  margin-bottom: 2px;
}

.placeholder {
  max-width: 520px;
  margin: 40px auto;
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}

.placeholder h2 {
  font-size: 18px;
  font-weight: 500;
}

.placeholder-icon {
  font-size: 38px !important;
  color: #5B6675;
}

.placeholder .muted {
  line-height: 1.6;
}

/* Kanban de oportunidades */
.board-page {
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100%;
  min-height: 0;
}

.board-toolbar {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.board-summary {
  display: flex;
  gap: 22px;
  font-size: 12.5px;
  color: #5B6675;
  flex-wrap: wrap;
}

.board-summary b {
  color: #081C37;
  font-weight: 500;
}

.btn-new {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #081C37;
  color: #fff;
  border: 0;
  border-radius: 3px;
  padding: 8px 14px;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  margin-left: auto;
}

.btn-new:hover {
  background: #0D2A4D;
}

.btn-new .ms {
  color: #FFB500;
  font-size: 16px;
}

.board {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  flex: 1;
  min-height: 0;
  overflow-x: auto;
}

.board-col {
  background: #EDF1F7;
  border: 1px solid transparent;
  border-radius: 3px;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.board-col.drag-over {
  border-color: #FFB500;
  background: #FFF9EC;
}

.board-col-h {
  padding: 10px 12px 9px;
  border-bottom: 1px solid #DDE3EC;
}

.board-col-n {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.board-col-c {
  font-size: 11.5px;
  color: #5B6675;
  margin-top: 3px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.board-col-b {
  padding: 9px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  min-height: 80px;
}

.board-empty {
  border: 1px dashed #C9D2DF;
  border-radius: 3px;
  padding: 14px 10px;
  color: #5B6675;
  font-size: 11.5px;
  text-align: center;
}

.kcard {
  display: block;
  background: #ffffff;
  border: 1px solid #DDE3EC;
  border-radius: 3px;
  padding: 10px 11px;
  border-left: 2px solid transparent;
  color: inherit;
  text-decoration: none;
  cursor: grab;
}

.kcard:active {
  cursor: grabbing;
}

.kcard.dragging {
  opacity: .45;
}

.kcard.risk {
  background: #FDF4F3;
  border-color: #F0D9D6;
  border-left: 3px solid #B4453F;
}

.kcard.risk:hover {
  background: #FCEDEB;
  border-color: #E8CBC7;
}

.kcard.risk .kc-1 { color: #8E2B20; }

.kcard.risk .kc-2 { color: #8B5C57; }

.kcard.risk .kc-val { color: #A32A1E; }

.kcard.risk .kc-alert {
  color: #A32A1E;
  background: #FFFFFF99;
  border-radius: 3px;
  margin-top: 7px;
  padding: 4px 6px;
}

.kcard.hot {
  border-left-color: #b3544a;
}

.kc-1 {
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.35;
}

.kc-2 {
  font-size: 11.5px;
  color: #5B6675;
  margin-top: 3px;
}

.kc-3 {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 11px;
  color: #5B6675;
}

.kc-3 .tag {
  font-size: 10px;
  padding: 2px 5px;
}

.kc-av {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #E6EDF7;
  color: #081C37;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9.5px;
  font-weight: 600;
  margin-left: auto;
}

.kc-val {
  font-family: 'Roboto Mono', monospace;
  font-size: 11.5px;
  color: #081C37;
}

.kc-alert {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  color: #b3544a;
  margin-top: 7px;
}

.kc-alert .ms {
  font-size: 12px;
  color: #b3544a;
}

/* Formulário de oportunidade */
.form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 22px;
  align-items: start;
}

.form-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sec {
  background: #ffffff;
  border: 1px solid #DDE3EC;
  border-radius: 3px;
  margin-bottom: 14px;
}

.sec-h {
  padding: 13px 18px;
  border-bottom: 1px solid #DDE3EC;
  font-size: 12.5px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 9px;
}

.sec-h .ms {
  font-size: 17px;
}

.sec-b {
  padding: 16px 18px;
}

.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.grid3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
}

.field {
  margin-bottom: 14px;
}

.field:last-child {
  margin-bottom: 0;
}

.field label {
  font-size: 11.5px;
  color: #5B6675;
  display: block;
  margin-bottom: 5px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid #DDE3EC;
  border-radius: 3px;
  padding: 10px 11px;
  font-size: 13px;
  color: #081C37;
  background: #ffffff;
  outline: 0;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: #FFB500;
}

.field textarea {
  min-height: 86px;
  resize: vertical;
  line-height: 1.45;
}

.field .hint {
  font-size: 11px;
  color: #5B6675;
  margin-top: 5px;
}

.etapas-mini {
  padding: 8px 18px 14px;
}

.etapa-mini {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 0;
  font-size: 12px;
  color: #5B6675;
}

.etapa-mini b {
  color: #081C37;
  font-weight: 500;
}

.etapa-mini .ms {
  font-size: 14px;
  color: #3f7a52;
}

.info-box {
  padding: 14px 18px;
  font-size: 12.5px;
  color: #5B6675;
  line-height: 1.55;
}

.info-box b {
  color: #081C37;
  font-weight: 500;
}

.form-actions {
  display: flex;
  gap: 10px;
}

.form-actions .btn {
  flex: 1;
  padding: 13px 10px;
}

.btn-ghost {
  display: block;
  flex: 1;
  background: #ffffff;
  border: 1px solid #DDE3EC;
  color: #5B6675;
  border-radius: 3px;
  padding: 13px 10px;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.btn-ghost:hover {
  border-color: #C9D2DF;
  color: #081C37;
}

/* Fechamento e conversão */
.fechamento-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 16px;
  align-items: start;
}

.check-list {
  padding: 6px 18px 12px;
}

.check-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid #DDE3EC;
  font-size: 13px;
  line-height: 1.45;
}

.check-item:last-child {
  border-bottom: 0;
}

.check-item .ms {
  font-size: 17px;
  color: #3f7a52;
  margin-top: 1px;
}

.check-item small {
  display: block;
  color: #5B6675;
  font-size: 11.5px;
  margin-top: 3px;
}

.warn-box {
  background: #FFF7E6;
  border: 1px solid #F2D79B;
  border-radius: 3px;
  padding: 12px 14px;
  font-size: 12.5px;
  color: #5B6675;
  line-height: 1.5;
}

.warn-box b {
  color: #081C37;
}

.warn-box .lock {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #8A6400;
  font-weight: 500;
  margin-bottom: 5px;
}

.warn-box .lock .ms {
  font-size: 17px;
  color: #8A6400;
}

.ok-box {
  background: #EDF4EF;
  border: 1px solid #C9DFD0;
  border-radius: 3px;
  padding: 12px 14px;
  font-size: 12.5px;
  color: #3f7a52;
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 7px;
}

.ok-box .ms {
  font-size: 17px;
  color: #3f7a52;
}

.btn:disabled,
.btn[disabled] {
  background: #C9D2DF;
  color: #ffffff;
  cursor: not-allowed;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 0;
  border-bottom: 1px solid #DDE3EC;
  font-size: 12.5px;
  color: #5B6675;
}

.summary-row:last-child {
  border-bottom: 0;
}

.summary-row b {
  color: #081C37;
  font-weight: 500;
  text-align: right;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 28, 55, .45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  z-index: 100;
}

.modal {
  width: 660px;
  max-width: 100%;
  max-height: calc(100vh - 44px);
  overflow-y: auto;
  background: #ffffff;
  border-radius: 3px;
  box-shadow: 0 10px 40px rgba(8, 28, 55, .35);
}

.modal-h {
  padding: 22px 26px 0;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.modal-ic {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #EDF4EF;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.modal-ic .ms {
  color: #3f7a52;
  font-size: 22px;
}

.modal-t {
  font-size: 19px;
  font-weight: 500;
  line-height: 1.25;
}

.modal-s {
  font-size: 13.5px;
  color: #5B6675;
  line-height: 1.55;
  margin-top: 6px;
}

.modal-b {
  padding: 18px 26px 0;
}

.herda {
  border: 1px solid #DDE3EC;
  border-radius: 3px;
}

.herda-h {
  padding: 9px 13px;
  background: #F3F5FA;
  border-bottom: 1px solid #DDE3EC;
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #5B6675;
  font-weight: 500;
}

.herda-b {
  padding: 6px 13px 10px;
}

.hrow {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 0;
  font-size: 13px;
  border-bottom: 1px solid #DDE3EC;
}

.hrow:last-child {
  border-bottom: 0;
}

.hrow .ms {
  font-size: 16px;
  color: #3f7a52;
}

.hrow span.v {
  margin-left: auto;
  color: #5B6675;
  font-size: 12.5px;
  text-align: right;
}

.perm {
  margin-top: 14px;
  background: #FFF7E6;
  border: 1px solid #F2D79B;
  border-radius: 3px;
  padding: 11px 13px;
  font-size: 12.5px;
  color: #5B6675;
  line-height: 1.5;
}

.perm b {
  color: #081C37;
}

.perm .ok {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  color: #3f7a52;
  font-weight: 500;
}

.perm .ok .ms {
  font-size: 15px;
  color: #3f7a52;
}

.modal-f {
  padding: 18px 26px 22px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.aviso {
  font-size: 11.5px;
  color: #5B6675;
  line-height: 1.45;
  flex: 1;
}

.modal-ok {
  background: #081C37;
  color: #fff;
  border: 0;
  border-radius: 3px;
  padding: 11px 34px;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  cursor: pointer;
}

.modal-ok:hover {
  background: #0D2A4D;
}

.modal-ok:disabled {
  background: #C9D2DF;
  cursor: not-allowed;
}

@media (max-width: 1180px) {
  .grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .grid > .card:last-child {
    grid-column: 1 / -1;
  }

  .kpi-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .topbar {
    padding: 0 16px;
    gap: 10px;
  }

  .content {
    padding: 16px;
  }

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

  .auth-side {
    display: none;
  }

  .auth-form {
    border-left: 0;
    padding: 40px 24px;
    min-height: 100vh;
  }
}

@media (max-width: 760px) {
  .grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .grid > .card:last-child {
    grid-column: auto;
  }

  .search {
    display: none;
  }

  .topbar h1 {
    font-size: 16px;
  }
}

@media (max-width: 520px) {
  .kpi-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .proj-row .bar {
    width: 56px;
  }

  .auth-form {
    padding: 32px 18px;
  }

  .auth-t {
    font-size: 21px;
  }
}

@media (max-height: 720px) {
  .auth-side {
    padding: 36px 42px;
  }

  .auth-h {
    font-size: 28px;
  }

  .auth-form {
    padding-top: 28px;
    padding-bottom: 28px;
  }
}

/* Projetos — grade de cartões */
.crumbs {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  color: #5B6675;
  min-width: 0;
  white-space: nowrap;
}

.crumbs .lnk {
  text-decoration: none;
  color: #5B6675;
}

.crumbs .lnk:hover {
  color: #081C37;
}

.crumbs .sep {
  font-size: 15px;
  color: #DDE3EC;
}

.crumbs .last {
  color: #081C37;
  font-weight: 500;
  font-size: 13.5px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.back {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 3px;
  text-decoration: none;
}

.back:hover {
  background: #F7F9FC;
}

.back .ms {
  font-size: 19px;
  color: #081C37;
}

.project-page {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.project-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 14px 22px;
  background: #ffffff;
  border-bottom: 1px solid #DDE3EC;
}

.project-summary {
  font-size: 12.5px;
  color: #5B6675;
}

.project-summary b {
  color: #081C37;
  font-weight: 500;
}

.pj-filter {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #DDE3EC;
  border-radius: 3px;
  padding: 7px 10px;
  background: #ffffff;
}

.pj-filter .ms {
  font-size: 16px;
  flex: 0 0 auto;
}

.pj-filter select {
  border: 0;
  background: transparent;
  outline: 0;
  font-size: 12.5px;
  font-family: inherit;
  color: #5B6675;
  cursor: pointer;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 20px 22px;
  overflow-y: auto;
  align-content: start;
  flex: 1;
  min-height: 0;
}

.pj-card {
  background: #ffffff;
  border: 1px solid #DDE3EC;
  border-radius: 3px;
  padding: 16px 17px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  min-height: 172px;
  transition: border-color .15s, box-shadow .15s;
}

.pj-card:hover {
  border-color: #C9D2DF;
  box-shadow: 0 2px 10px rgba(8, 28, 55, .06);
}

.pj-top {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-bottom: 10px;
}

.pj-top-main {
  flex: 1;
  min-width: 0;
}

.pj-nome {
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.3;
}

.pj-cli {
  font-size: 11.5px;
  color: #5B6675;
  margin-top: 3px;
}

.pj-av {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #E6EDF7;
  color: #081C37;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9.5px;
  font-weight: 600;
  flex: 0 0 auto;
}

.pj-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  margin: 0 0 12px;
}

.pj-info {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  color: #5B6675;
  margin-bottom: 5px;
}

.pj-bar {
  height: 4px;
  border-radius: 2px;
  background: #F1F4F9;
  overflow: hidden;
}

.pj-bar i {
  display: block;
  height: 100%;
  background: #FFB500;
}

/* pendências abertas dentro do cartão — o corpo deixa de ficar vazio */
.pj-pend {
  margin-top: 13px;
  padding-top: 11px;
  border-top: 1px dashed #E4E9F1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.pj-pend-head {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #8A6400;
  margin-bottom: 2px;
}

.pj-pend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #34404F;
  line-height: 1.35;
  min-width: 0;
}

.pj-pend-item .ms {
  font-size: 15px;
  color: #9AA6B5;
  flex: 0 0 auto;
}

.pj-pend-item.err .ms { color: #C0392B; }
.pj-pend-item.warn .ms { color: #B47900; }
.pj-pend-item.block .ms { color: #8A5A00; }
.pj-pend-item.block .pj-pend-t { color: #6B4A00; }
.pj-pend-item.block .pj-pend-w { color: #8A5A00; font-weight: 500; }
.pj-pend-item.block { background: #FFFBF0; margin: 0 -6px; padding: 2px 6px; border-radius: 3px; }

.pj-pend-item.err .pj-pend-t { color: #8E2B20; }

.pj-pend-t {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pj-pend-w {
  flex: 0 0 auto;
  font-size: 10.5px;
  color: #6B7787;
  white-space: nowrap;
}

.pj-pend-item.err .pj-pend-w { color: #C0392B; font-weight: 500; }
.pj-pend-item.warn .pj-pend-w { color: #B47900; font-weight: 500; }

.pj-pend-mais {
  font-size: 11px;
  color: #7A8698;
  padding-left: 21px;
}

.pj-pend-vazio {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #6B7787;
}

.pj-pend-vazio .ms {
  font-size: 15px;
  color: #2E7D5B;
}

.pj-prazo {
  font-size: 11px;
  color: #6B7787;
}

.pj-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 11px;
  border-top: 1px solid #DDE3EC;
}

.pj-abrir {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  color: #081C37;
  font-weight: 500;
  white-space: nowrap;
}

.pj-abrir .ms {
  font-size: 15px;
  color: #081C37;
}

.pj-alert {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: #8A6400;
  min-width: 0;
}

.pj-alert.err {
  color: #b3544a;
}

.pj-alert .ms {
  font-size: 13px;
  color: inherit;
}

.pj-alert-empty {
  font-size: 11px;
  color: #5B6675;
}

.project-empty {
  grid-column: 1 / -1;
  width: 100%;
  max-width: 520px;
}

/* Workspace — acervo · especialistas · studio */
.ws {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr) 350px;
  height: calc(100vh - 60px);
  flex: 1;
  min-height: 0;
}

.pane {
  background: #ffffff;
  border-right: 1px solid #DDE3EC;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.pane:last-child {
  border-right: 0;
  border-left: 1px solid #DDE3EC;
}

.center-pane {
  border-right: 0;
}

.pane-h {
  height: 48px;
  flex: 0 0 48px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  border-bottom: 1px solid #DDE3EC;
}

.pane-t {
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #5B6675;
  font-weight: 500;
}

.pane-b {
  padding: 12px 8px;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}

.tree {
  font-size: 13px;
}

.tree div {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 3px;
}

.tree .n1 {
  font-weight: 500;
}

.tree .n2 {
  padding-left: 30px;
  color: #5B6675;
}

.tree .n2.sel {
  background: #EEF3F9;
  color: #081C37;
}

.tree .ms {
  font-size: 17px;
}

.who-now {
  padding: 14px 22px 12px;
  border-bottom: 1px solid #DDE3EC;
}

.who-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 500;
}

.who-line .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #FFB500;
  flex: 0 0 auto;
}

.who-sub {
  font-size: 12.5px;
  color: #5B6675;
  line-height: 1.5;
  margin-top: 5px;
  padding-left: 15px;
}

.who-meta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 6px;
  padding-left: 15px;
  font-size: 11.5px;
  color: #5B6675;
}

.thread {
  padding: 0 22px;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}

.thread-empty {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 30px 0;
  color: #5B6675;
}

.thread-empty .ms {
  font-size: 28px;
}

.thread-empty b {
  font-size: 13.5px;
  color: #081C37;
  font-weight: 500;
}

.thread-empty p {
  font-size: 12.5px;
  line-height: 1.55;
}

.ask {
  padding: 15px 0 13px;
  border-bottom: 1px solid #DDE3EC;
}

.ask-q {
  font-size: 13.5px;
  line-height: 1.5;
}

.ask-who {
  font-size: 11.5px;
  color: #5B6675;
  margin-bottom: 4px;
}

.turn {
  padding: 15px 0;
  border-bottom: 1px solid #DDE3EC;
}

.turn:last-child {
  border-bottom: 0;
}

.turn-h {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.turn-h .ms {
  font-size: 15px;
  color: #5B6675;
}

.turn-name {
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.turn-note {
  font-size: 11.5px;
  color: #5B6675;
}

.turn-b {
  font-size: 13.5px;
  line-height: 1.6;
}

.src {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: #5B6675;
  margin-top: 6px;
}

.src .ms {
  font-size: 14px;
}

.act {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #8A6400;
  margin-top: 10px;
}

.act .ms {
  font-size: 15px;
}

.composer {
  border-top: 1px solid #DDE3EC;
  padding: 12px 22px;
  display: flex;
  gap: 10px;
  align-items: center;
  flex: 0 0 auto;
}

.ws-input {
  flex: 1;
  min-width: 0;
  border: 1px solid #DDE3EC;
  border-radius: 3px;
  padding: 10px 12px;
  font-size: 13px;
  color: #081C37;
  background: #ffffff;
  outline: 0;
  font-family: inherit;
}

.ws-input:focus {
  border-color: #081C37;
}

.ws-input::placeholder {
  color: #5B6675;
}

.ws-go {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border: 0;
  border-radius: 3px;
  background: #081C37;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.ws-go:hover {
  background: #0D2A4D;
}

.ws-go .ms {
  color: #ffffff;
  font-size: 18px;
}

.studio-body {
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 14px 16px;
}

.tile {
  border: 1px solid #DDE3EC;
  border-radius: 3px;
  padding: 12px 10px;
  text-align: center;
  cursor: pointer;
  background: #ffffff;
  color: #081C37;
  font-family: inherit;
}

.tile:hover {
  background: #F7F9FC;
}

.tile.on {
  background: #FFF7E6;
  border-color: #FFB500;
}

.tile .ms {
  font-size: 22px;
  color: #081C37;
}

.tile div {
  font-size: 12px;
  margin-top: 6px;
}

.ws-subh {
  height: 40px;
  flex: 0 0 40px;
  border-top: 1px solid #DDE3EC;
}

.preview {
  margin: 0 16px 12px;
  border: 1px solid #DDE3EC;
  border-radius: 3px;
  overflow: hidden;
}

.preview-h {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  background: #F3F5FA;
  border-bottom: 1px solid #DDE3EC;
}

.preview-t {
  font-size: 11.5px;
  font-weight: 500;
}

.preview-b {
  padding: 11px;
  font-size: 11.5px;
  color: #5B6675;
  line-height: 1.5;
}

.preview-b b {
  color: #081C37;
  font-weight: 500;
}

.ws-vers {
  padding: 6px 16px 14px;
}

.ws-empty {
  padding: 10px 0;
  font-size: 12px;
  color: #5B6675;
  line-height: 1.5;
}

.ver {
  padding: 6px 0;
  font-size: 12.5px;
  color: #5B6675;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

@media (max-width: 900px) {
  .pane {
    border-right: 0;
    border-left: 0;
    border-bottom: 1px solid #DDE3EC;
    min-height: 0;
  }

  .pane:last-child {
    border-left: 0;
    border-bottom: 0;
  }

  .thread {
    max-height: 460px;
  }
}

@media (max-width: 760px) {
  .crumbs .lnk:nth-of-type(2),
  .crumbs .sep:nth-of-type(2) {
    display: none;
  }

  .project-toolbar {
    padding: 12px 16px;
  }

  .pj-filter {
    flex: 1;
  }
}

/* Quadro de execução — 7 colunas E0–E6 */
.exec-subbar {
  height: 50px;
  flex: 0 0 50px;
  background: #ffffff;
  border-bottom: 1px solid #DDE3EC;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 22px;
  min-width: 0;
  overflow-x: auto;
}

.exec-tabs {
  display: flex;
  gap: 22px;
  height: 100%;
  align-items: center;
  flex: 0 0 auto;
}

.exec-tab {
  font-size: 13px;
  color: #5B6675;
  padding: 3px 0;
  border-bottom: 2px solid transparent;
  text-decoration: none;
  white-space: nowrap;
}

.exec-tab.on {
  color: #081C37;
  border-bottom-color: #FFB500;
  font-weight: 500;
}

.exec-sum {
  display: flex;
  gap: 22px;
  font-size: 12.5px;
  color: #5B6675;
  white-space: nowrap;
}

.exec-sum b {
  color: #081C37;
  font-weight: 500;
}

.exec-filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #DDE3EC;
  border-radius: 3px;
  padding: 6px 11px;
  flex: 0 0 auto;
}

.exec-filter .ms {
  font-size: 16px;
}

.exec-filter select {
  border: 0;
  background: transparent;
  outline: 0;
  font-size: 12.5px;
  color: #081C37;
  font-family: inherit;
  cursor: pointer;
}

.exec-board {
  display: grid;
  grid-template-columns: repeat(7, minmax(180px, 1fr));
  gap: 12px;
  padding: 18px 22px;
  flex: 1;
  min-height: 0;
  overflow: auto;
  align-items: stretch;
  grid-auto-rows: minmax(0, 1fr);
}

.exec-board .board-col {
  min-width: 0;
}

/* Settings */
.set {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  flex: 1;
  min-height: 0;
}

.setnav {
  background: #ffffff;
  border-right: 1px solid #DDE3EC;
  padding: 12px 0;
  overflow-y: auto;
}

.setnav div {
  padding: 9px 22px;
  font-size: 13px;
  color: #5B6675;
  display: flex;
  align-items: center;
  gap: 12px;
}

.setnav .on {
  background: #FFF7E6;
  color: #081C37;
  font-weight: 500;
  box-shadow: inset 3px 0 0 #FFB500;
}

.setnav .ms {
  font-size: 18px;
}

.setbody {
  padding: 24px 30px;
  overflow-y: auto;
  min-width: 0;
}

.sh {
  font-size: 19px;
  font-weight: 500;
  margin-bottom: 4px;
}

.ssub {
  font-size: 13px;
  color: #5B6675;
  margin-bottom: 22px;
}

.settings-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  background: #ffffff;
  border: 1px solid #DDE3EC;
  border-radius: 3px;
  overflow: hidden;
}

.settings-table th {
  text-align: left;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #5B6675;
  font-weight: 500;
  padding: 11px 14px;
  background: #F3F5FA;
  border-bottom: 1px solid #DDE3EC;
}

.settings-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #DDE3EC;
  vertical-align: middle;
}

.settings-table tbody tr:last-child td {
  border-bottom: 0;
}

.switch {
  width: 32px;
  height: 18px;
  border-radius: 9px;
  background: #DDE3EC;
  position: relative;
  display: inline-block;
  border: 0;
  padding: 0;
  cursor: pointer;
  vertical-align: middle;
  transition: background .15s;
}

.switch i {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  transition: left .15s;
}

.switch.on {
  background: #FFB500;
}

.switch.on i {
  left: 16px;
}

.switch:focus-visible {
  outline: 2px solid #FFB500;
  outline-offset: 2px;
}

.settings-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 18px;
}

.settings-bloco {
  background: #ffffff;
  border: 1px solid #DDE3EC;
  border-radius: 3px;
  padding: 16px 18px;
}

.settings-bloco-t {
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 3px;
}

.settings-bloco-s {
  font-size: 12.5px;
  color: #5B6675;
  margin-bottom: 12px;
}

.settings-bloco .field:last-child {
  margin-bottom: 0;
}

.settings-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 18px;
  flex-wrap: wrap;
}

.settings-btn {
  display: inline-block;
  background: #ffffff;
  border: 1px solid #DDE3EC;
  color: #5B6675;
  border-radius: 3px;
  padding: 10px 16px;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: inherit;
}

.settings-btn:hover {
  border-color: #C9D2DF;
  color: #081C37;
}

.settings-btn-danger {
  color: #b3544a;
  border-color: #E8C7C2;
}

.settings-btn-danger:hover {
  color: #b3544a;
  background: #FBEDEB;
  border-color: #b3544a;
}

@media (max-width: 900px) {
  .set {
    grid-template-columns: minmax(0, 1fr);
  }

  .setnav {
    display: none;
  }

  .settings-two {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ── menu com grupos (Portfólio → Oportunidades/Projetos) ───────────── */
.nav-sub-wrap {
  display: none;
  margin: 0 0 2px;
}

.nav-sub-wrap.on {
  display: block;
}

.nav-sub {
  padding-left: 34px;
  font-size: 13px;
  color: #5B6675;
}

.nav-sub .ms {
  font-size: 17px;
  color: #93A0B0;
}

.nav-sub.on {
  color: #081C37;
  font-weight: 500;
}

.nav-sub.on .ms {
  color: #8A6400;
}

/* ── abas do Kanban (os dois pipelines) ─────────────────────────────── */
.kanban-wrap {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid #DDE3EC;
}

.tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  font-size: 13px;
  color: #5B6675;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.tab .ms {
  font-size: 18px;
}

.tab:hover {
  color: #081C37;
}

.tab.on {
  color: #081C37;
  font-weight: 600;
  border-bottom-color: #FFB500;
}

/* ── dashboard do portfólio ─────────────────────────────────────────── */
.pf-page {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pf-filtros {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(178px, 1fr));
  gap: 10px;
}

.kpi-card {
  background: #FFFFFF;
  border: 1px solid #DDE3EC;
  border-radius: 3px;
  padding: 13px 15px;
}

.kpi-rot {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #6B7787;
  margin-bottom: 6px;
}

.kpi-val {
  font-size: 24px;
  font-weight: 600;
  color: #081C37;
  line-height: 1.1;
}

.kpi-det {
  font-size: 11.5px;
  color: #6B7787;
  margin-top: 4px;
}

.kpi-card.warn { border-left: 2px solid #FFB500; }
.kpi-card.warn .kpi-val { color: #8A6400; }
.kpi-card.err { border-left: 2px solid #C0392B; }
.kpi-card.err .kpi-val { color: #A32A1E; }

.pf-secao {
  background: #FFFFFF;
  border: 1px solid #DDE3EC;
  border-radius: 3px;
  overflow: hidden;
}

.pf-secao-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 15px;
  border-bottom: 1px solid #DDE3EC;
}

.pf-secao-h h2 {
  font-size: 14px;
  font-weight: 600;
  margin: 0;
  color: #081C37;
}

.tbl-mais {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: #8A6400;
  text-decoration: none;
}

.tbl-mais .ms { font-size: 15px; }
.tbl-mais:hover { text-decoration: underline; }

.tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}

.tbl th {
  text-align: left;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #6B7787;
  padding: 9px 15px;
  background: #FAFBFD;
  border-bottom: 1px solid #DDE3EC;
  white-space: nowrap;
}

.tbl td {
  padding: 10px 15px;
  border-bottom: 1px solid #EEF1F6;
  color: #34404F;
}

.tbl tr:last-child td { border-bottom: 0; }
.tbl tr:hover td { background: #FCFDFF; }
.tbl .num { text-align: right; white-space: nowrap; }
.tbl .err { color: #C0392B; font-weight: 500; }

.tbl-link {
  color: #081C37;
  font-weight: 500;
  text-decoration: none;
}

.tbl-link:hover { text-decoration: underline; }

.tbl-vazio {
  padding: 22px 15px;
  font-size: 12.5px;
  color: #6B7787;
  text-align: center;
}

/* barra de progresso dentro do card do kanban de execução */
.kc-bar {
  height: 4px;
  border-radius: 2px;
  background: #F1F4F9;
  overflow: hidden;
  margin-top: 8px;
}

.kc-bar i {
  display: block;
  height: 100%;
  background: #FFB500;
}

/* ── marca Imbono (asterisco do design pattern v1.0, igual à apresentação PPP) ── */
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 4px 0 18px 4px;
}

.ast {
  position: relative;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  display: block;
}

.ast i {
  position: absolute;
  left: 50%;
  top: 0;
  width: 2.8px;
  height: 100%;
  margin-left: -1.4px;
  background: #FFB500;
  border-radius: 2px;
  display: block;
}

.ast i:nth-child(1) { transform: rotate(0deg); }
.ast i:nth-child(2) { transform: rotate(60deg); }
.ast i:nth-child(3) { transform: rotate(120deg); }

.brand-name {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -.4px;
  color: #081C37;
}

.tbl .warn { color: #8A6400; font-weight: 500; }

/* ── workspace da oportunidade ─────────────────────────────────────── */
.op-ws { display: flex; flex-direction: column; gap: 16px; }

.op-ws-h {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid #DDE3EC;
}

.op-crumb { display: flex; align-items: center; gap: 4px; font-size: 11.5px; color: #6B7787; margin-bottom: 7px; }
.op-crumb a { color: #8A6400; text-decoration: none; }
.op-crumb a:hover { text-decoration: underline; }
.op-crumb .ms { font-size: 14px; }

.op-title { font-size: 20px; font-weight: 650; color: #081C37; margin: 0 0 9px; letter-spacing: -.3px; }

.op-tags { display: flex; flex-wrap: wrap; gap: 6px; }

.tag.risk {
  display: inline-flex; align-items: center; gap: 4px;
  background: #FDF3F2; color: #A32A1E; border: 1px solid #F2DAD8;
}

.tag.risk .ms { font-size: 13px; }
.tag.ok { display: inline-flex; align-items: center; gap: 4px; background: #EDF7F2; color: #1F7A5C; border: 1px solid #CDE9DE; }
.tag.ok .ms { font-size: 13px; }

.op-valor { text-align: right; flex: 0 0 auto; }
.op-valor-rot { font-size: 10.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: #6B7787; }
.op-valor-num { font-size: 22px; font-weight: 650; color: #081C37; line-height: 1.2; }
.op-valor-det { font-size: 11.5px; color: #6B7787; }

.op-ws-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px); gap: 16px; align-items: start; }
.op-col { display: flex; flex-direction: column; gap: 14px; }

.timeline { padding: 6px 15px 14px; }

.tl-item { display: flex; gap: 10px; padding: 7px 0; position: relative; }

.tl-item::before {
  content: '';
  position: absolute;
  left: 4px; top: 20px; bottom: -7px;
  width: 1px; background: #E4E9F1;
}

.tl-item:last-child::before { display: none; }

.tl-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: #DDE3EC; flex: 0 0 auto; margin-top: 4px; position: relative; z-index: 1;
}

.tl-item.done .tl-dot { background: #1F7A5C; }
.tl-item.now .tl-dot { background: #FFB500; box-shadow: 0 0 0 3px #FFF7E6; }

.tl-txt { font-size: 12.5px; color: #5B6675; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.tl-item.now .tl-txt b, .tl-item.done .tl-txt b { color: #081C37; }
.tl-agora { font-size: 11px; color: #8A6400; }

.exp-row { display: flex; gap: 9px; padding: 8px 0; border-bottom: 1px solid #EEF1F6; }
.exp-row:last-child { border-bottom: 0; }
.exp-row .ms { font-size: 18px; color: #93A0B0; }
.exp-row b { display: block; font-size: 12.5px; color: #081C37; }
.exp-row span { font-size: 11.5px; color: #6B7787; }

.check-item.pend { color: #8C97A6; }
.check-item.pend .ms { color: #C3CBD8; }

/* cabeçalho da ficha: ações + valor */
.op-acoes { display: flex; align-items: center; gap: 16px; flex: 0 0 auto; }

.ws-abrir {
  display: inline-flex; align-items: center; gap: 6px;
  background: #081C37; color: #fff; border: 0;
  padding: 9px 14px; border-radius: 3px; font-size: 12.5px; font-weight: 500;
  text-decoration: none; white-space: nowrap;
}

.ws-abrir:hover { background: #14304F; }
.ws-abrir .ms { font-size: 17px; color: #FFB500; }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12.5px; color: #5B6675; text-decoration: none;
  padding: 7px 12px; border: 1px solid #DDE3EC; border-radius: 3px;
}

.btn-ghost:hover { border-color: #C9D2DF; color: #081C37; }
.btn-ghost .ms { font-size: 16px; }

/* ── acervo: hover, seleção, ações por linha ────────────────────────── */
.n2 {
  cursor: pointer;
  border-radius: 3px;
  transition: background .12s ease, color .12s ease;
}

.n2:hover {
  background: #F1F5FA;
  color: #081C37;
}

.n2.sel {
  background: #FFF7E6;
  color: #081C37;
  font-weight: 500;
  box-shadow: inset 2px 0 0 #FFB500;
}

.n2.sel .ms { color: #8A6400; }

.n2-nome {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.n2-acoes {
  display: none;
  align-items: center;
  gap: 2px;
  margin-left: auto;
  flex: 0 0 auto;
}

.n2:hover .n2-acoes,
.n2.sel .n2-acoes { display: inline-flex; }

.n2-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px; height: 24px;
  border: 0; background: transparent; border-radius: 3px;
  cursor: pointer; color: #6B7787; padding: 0;
}

.n2-btn .ms { font-size: 16px; }
.n2-btn:hover { background: #E7EDF5; color: #081C37; }
.n2-btn.danger:hover { background: #FDF3F2; color: #B4453F; }

/* modal de prévia do documento */
.modal-doc { max-width: 640px; }

.doc-preview { padding: 2px 0; }

.doc-h { font-size: 15px; font-weight: 650; color: #081C37; margin-bottom: 3px; }
.doc-meta { font-size: 11.5px; color: #6B7787; margin-bottom: 12px; }
.doc-txt { font-size: 12.5px; line-height: 1.7; color: #34404F; }
.doc-txt p { margin: 0 0 10px; }
.doc-rod { font-size: 11px; color: #8C97A6; border-top: 1px solid #EEF1F6; padding-top: 9px; margin-top: 6px; }

/* botão Fechar dentro do card */
.kc-acoes { display: none; margin-top: 7px; }

.kcard:hover .kc-acoes,
.kcard:focus-within .kc-acoes { display: block; }

.kc-fechar {
  display: inline-flex; align-items: center; gap: 4px;
  border: 1px solid #DDE3EC; background: #fff; color: #081C37;
  border-radius: 3px; padding: 3px 9px; font-size: 11.5px; font-weight: 500;
  cursor: pointer; font-family: inherit;
}

.kc-fechar .ms { font-size: 15px; color: #1F7A5C; }
.kc-fechar:hover { border-color: #1F7A5C; background: #F4FBF8; }

/* aviso de bloqueio dentro do modal */
.modal .bloq {
  display: flex; align-items: flex-start; gap: 7px;
  background: #FDF3F2; color: #A32A1E; border: 1px solid #F2DAD8;
  border-radius: 3px; padding: 8px 10px; font-size: 11.5px; line-height: 1.5; margin-top: 8px;
}

.modal .bloq .ms { font-size: 16px; }

.modal-ok[disabled] {
  opacity: .45; cursor: not-allowed;
}

.modal-f .modal-btns { display: flex; align-items: center; gap: 8px; margin-left: auto; }

.modal-cancel {
  border: 1px solid #DDE3EC; background: #fff; color: #34404F;
  padding: 8px 16px; border-radius: 3px; font-size: 12.5px; font-weight: 500;
  cursor: pointer; font-family: inherit;
}

.modal-cancel:hover { border-color: #C6827C; color: #A32A1E; background: #FDF7F6; }

.modal .aviso b { color: #A32A1E; }

/* ── modal de criação do projeto (5 etapas) ─────────────────────────── */
.modal-criacao { max-width: 560px; }

.steps { display: flex; flex-direction: column; gap: 2px; }

.step {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: 3px;
  font-size: 13px; color: #8C97A6;
  transition: background .18s ease, color .18s ease;
}

.step-ic { display: inline-flex; width: 20px; justify-content: center; }
.step-ic .ms { font-size: 19px; color: #C3CBD8; }

.step.now { background: #FFF7E6; color: #081C37; font-weight: 500; }
.step.now .ms { color: #B47900; animation: girar 1s linear infinite; }

.step.done { color: #34404F; }
.step.done .ms { color: #1F7A5C; animation: none; }

.step:last-child.done { color: #1F7A5C; font-weight: 600; }

@keyframes girar { to { transform: rotate(360deg); } }

.criacao-resumo {
  margin-top: 14px; padding-top: 12px; border-top: 1px dashed #E4E9F1;
  display: flex; flex-direction: column; gap: 6px;
}

.criacao-resumo .hrow {
  display: flex; align-items: center; gap: 7px;
  font-size: 12px; color: #34404F;
}

.criacao-resumo .hrow .ms { font-size: 16px; color: #1F7A5C; }
.criacao-resumo .hrow .v { margin-left: auto; color: #6B7787; }

a.modal-ok { display: inline-flex; align-items: center; text-decoration: none; }

.modal-criacao:not(.fim) #criacao-workspace,
.modal-criacao:not(.fim) #criacao-ok { opacity: .45; pointer-events: none; }

/* card travado: projeto já criado */
.kcard.travado { cursor: default; }

.kcard.travado .kc-travado {
  display: flex; align-items: center; gap: 4px;
  margin-top: 7px; padding: 3px 6px;
  background: #EAF6F1; color: #1F7A5C; border-radius: 3px;
  font-size: 11px; font-weight: 500;
}

.kcard.travado .kc-travado .ms { font-size: 14px; }
.kcard.travado .kc-acoes { display: none !important; }

/* aviso curto no rodapé */
.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 12px);
  display: flex; align-items: center; gap: 8px;
  background: #081C37; color: #fff; border-radius: 3px;
  padding: 11px 16px; font-size: 12.5px; line-height: 1.4;
  box-shadow: 0 8px 24px rgba(8, 28, 55, .22);
  opacity: 0; transition: opacity .22s ease, transform .22s ease;
  z-index: 900; max-width: 560px;
}

.toast.on { opacity: 1; transform: translate(-50%, 0); }
.toast .ms { font-size: 17px; color: #FFB500; }
.toast.erro .ms { color: #E9A9A2; }

/* aviso na ficha quando a etapa está travada */
.op-travada {
  display: flex; align-items: center; gap: 7px;
  background: #EAF6F1; border: 1px solid #CDE7DC; color: #1F6F56;
  border-radius: 3px; padding: 8px 11px; font-size: 11.5px; margin-top: 8px;
}

.op-travada .ms { font-size: 16px; }

/* ── Dashboard do portfólio: gráficos ──────────────────────────────── */
.pf-page { padding-bottom: 48px; }

.pf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 14px;
  margin: 14px 0 6px;
}

.chart-card {
  background: #FFFFFF;
  border: 1px solid #DDE3EC;
  border-radius: 3px;
  padding: 14px 16px 12px;
  display: flex;
  flex-direction: column;
}

.chart-h { margin-bottom: 10px; }
.chart-t { font-size: 12.5px; font-weight: 650; color: #081C37; letter-spacing: .1px; }
.chart-s { font-size: 11px; color: #7A8594; margin-top: 2px; }
.chart-b { flex: 1; }
.chart-r { font-size: 10.5px; color: #8C97A6; border-top: 1px solid #F0F3F8; padding-top: 8px; margin-top: 8px; line-height: 1.5; }

.chart-svg { width: 100%; height: auto; display: block; }
.chart-svg .c-lb { font-size: 10.5px; fill: #5B6675; font-family: inherit; }
.chart-svg .c-vl { font-size: 10.5px; fill: #081C37; font-family: inherit; font-weight: 600; }
.chart-svg .c-cv { font-size: 11px; fill: #081C37; font-family: inherit; font-weight: 650; text-anchor: middle; }
.chart-svg .c-cl { font-size: 10px; fill: #7A8594; font-family: inherit; text-anchor: middle; }

/* rosca */
.donut-wrap { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.donut-svg { width: 150px; flex: 0 0 auto; }
.donut-cv { font-size: 21px; font-weight: 700; fill: #081C37; text-anchor: middle; font-family: inherit; }
.donut-cl { font-size: 9.5px; fill: #8C97A6; text-anchor: middle; font-family: inherit; text-transform: uppercase; letter-spacing: .6px; }

.donut-legenda { display: flex; flex-direction: column; gap: 7px; flex: 1; min-width: 150px; }
.donut-lg { display: flex; align-items: center; gap: 7px; font-size: 11.5px; color: #34404F; }
.donut-lg i { width: 8px; height: 8px; border-radius: 2px; flex: 0 0 auto; }
.donut-lg .dl-t { flex: 1; }
.donut-lg .dl-v { font-weight: 650; color: #081C37; }

/* insights */
.pf-insights { background: #FFFFFF; border: 1px solid #DDE3EC; border-radius: 3px; padding: 14px 16px; }
.pf-secao-h .pf-secao-s { font-size: 11px; color: #8C97A6; }

.insight {
  display: flex; gap: 9px; align-items: flex-start;
  font-size: 12px; line-height: 1.55; color: #34404F;
  padding: 9px 11px; border-radius: 3px; margin-bottom: 7px;
  border-left: 3px solid #DDE3EC; background: #FAFBFD;
}

.insight:last-child { margin-bottom: 0; }
.insight .ms { font-size: 17px; color: #7A8594; flex: 0 0 auto; margin-top: 1px; }
.insight b { color: #081C37; }
.insight.err { border-left-color: #B4453F; background: #FDF6F5; }
.insight.err .ms { color: #B4453F; }
.insight.warn { border-left-color: #B47900; background: #FFFBF0; }
.insight.warn .ms { color: #B47900; }
.insight.ok { border-left-color: #1F7A5C; background: #F5FBF8; }
.insight.ok .ms { color: #1F7A5C; }
.insight.info { border-left-color: #3B6FA0; background: #F5F8FC; }
.insight.info .ms { color: #3B6FA0; }

/* ── menu lateral recolhível ───────────────────────────────────────── */
.rail { transition: width .16s ease, flex-basis .16s ease; }

.rail.min { width: 72px; flex: 0 0 72px; padding: 8px 0; }

.rail.min .nav-label,
.rail.min .brand-name { display: none; }

.rail.min .brand { padding: 14px 0 18px; justify-content: center; }

.rail.min .nav-item {
  justify-content: center;
  padding: 11px 0;
  gap: 0;
}

.rail.min .nav-sub-wrap { display: none; }

.rail.min .nav-item .ms { font-size: 21px; }

.rail.min .nav-item.on {
  background: #FFF7E6;
  box-shadow: inset 3px 0 0 #FFB500;
}

.rail-toggle { border-top: 1px solid #F0F3F8; }

.rail.min .nav-sec {
  font-size: 0;
  height: 1px;
  margin: 8px 14px;
  padding: 0;
  background: #EEF1F6;
}

/* Kanban de execução: 7 fases em uma única linha, com rolagem horizontal */
.board.board-fases {
  grid-template-columns: repeat(7, minmax(210px, 1fr));
  grid-auto-flow: column;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 10px;
  scrollbar-width: thin;
}

.board.board-fases::-webkit-scrollbar { height: 9px; }
.board.board-fases::-webkit-scrollbar-track { background: #F1F4F9; border-radius: 3px; }
.board.board-fases::-webkit-scrollbar-thumb { background: #C3CBD8; border-radius: 3px; }
.board.board-fases::-webkit-scrollbar-thumb:hover { background: #A9B4C4; }

.board.board-fases .board-col { min-width: 210px; }
