/* CCore · admin.css · código formatado para edição */
:root {
  font-family:
    "DM Sans",
    system-ui,
    sans-serif;
  color: #183347;
  background: #f4f6f8;
  font-synthesis: none;
  font-size: 14px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea {
  outline-offset: 4px;
}
button {
  cursor: pointer;
  transition: background .15s;
}
button:disabled {
  opacity: .5;
  cursor: wait;
}
a {
  color: inherit;
}
.admin-shell {
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr);
  min-height: 100dvh;
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100dvh;
  background: #122d3e;
  color: #c0cbd3;
  padding: 30px 20px 20px;
  display: flex;
  flex-direction: column;
}
.admin-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-size: 26px;
  font-weight: 600;
  margin-bottom: 38px;
  letter-spacing: -1px;
}
.admin-brand img {
  background: #fff;
  border-radius: 9px;
  padding: 4px;
}
.admin-brand small {
  display: block;
  font-size: 9px;
  letter-spacing: 1.8px;
  font-weight: 500;
  color: #91b3c4;
  margin-top: 3px;
}
.side-label {
  font-size: 9px;
  letter-spacing: 1.6px;
  font-weight: 600;
  color: #7893a3;
  margin: 0 12px 12px;
}
nav .side-label {
  margin-top: 30px;
}
.sidebar nav button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  padding: 13px 14px;
  border-radius: 7px;
  margin: 3px 0;
  font-size: 13px;
}
.sidebar nav button span {
  width: 18px;
  font-size: 18px;
  line-height: 1;
}
.sidebar nav button:hover {
  background: #ffffff0b;
}
.sidebar nav button.active {
  color: white;
  background: #274657;
  box-shadow: inset 3px 0 #62c8df;
}
.side-bottom {
  margin-top: auto;
  padding: 22px 4px 0;
  border-top: 1px solid #ffffff13;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}
.side-bottom small {
  display: block;
  color: #819aa9;
  font-size: 10px;
  margin-top: 4px;
}
.side-bottom a {
  margin-left: auto;
  text-decoration: none;
  font-size: 22px;
}
.owner-avatar {
  background: #254a5e;
  width: 33px;
  height: 33px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 10px;
  color: white;
}
.workspace {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.admin-top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #ffffffed;
  backdrop-filter: blur(12px);
  padding: 23px 36px;
  border-bottom: 1px solid #e4e9ed;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 92px;
}
.breadcrumbs {
  font-size: 12px;
  font-weight: 500;
}
.breadcrumbs span {
  color: #8996a0;
  margin-left: 10px;
}
.save-indicator {
  color: #7b8a95;
  font-size: 11px;
  margin-top: 8px;
}
.save-indicator.dirty {
  color: #b57726;
}
.top-actions {
  display: flex;
  gap: 9px;
}
.primary,
.secondary,
.danger {
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 11px 16px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
}
.primary {
  background: #163d51;
  color: white;
}
.primary:hover {
  background: #245971;
}
.secondary {
  background: white;
  border-color: #dce4e9;
  color: #3b5363;
}
.secondary:hover {
  background: #f0f5f7;
}
.danger {
  background: #fff3f1;
  color: #ad443b;
  border-color: #f4d8d2;
}
.text-button {
  background: none;
  border: none;
  padding: 4px;
  color: #277d99;
  font-size: 12px;
}
.workspace-main {
  padding: 34px 36px 50px;
  flex: 1;
  max-width: 1700px;
  width: 100%;
  margin: 0 auto;
}
.page-intro {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 28px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.5px;
  color: #64828f;
  font-weight: 600;
  margin: 0 0 12px;
}
h1 {
  font-size: 29px;
  font-weight: 500;
  letter-spacing: -1px;
  margin: 0 0 10px;
}
h2 {
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 8px;
}
h3 {
  font-size: 14px;
  margin: 0 0 8px;
}
p {
  line-height: 1.6;
  margin: 0 0 12px;
}
.muted,
.hint {
  color: #7b8d98;
  font-size: 12px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 28px;
}
.stat {
  border: 1px solid #e2e8ec;
  background: white;
  border-radius: 10px;
  padding: 22px 24px;
}
.stat .number {
  font-size: 33px;
  font-weight: 500;
  margin: 9px 0 4px;
  letter-spacing: -1px;
}
.stat small {
  font-size: 11px;
  color: #81929e;
}
.stat-label {
  color: #607986;
  font-size: 12px;
}
.overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(270px, 1fr);
  gap: 24px;
}
.card {
  background: white;
  border: 1px solid #e0e7ec;
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 20px;
}
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
}
.card-head h2 {
  margin: 0;
}
.quick-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.quick {
  border: 1px solid #e3eaee;
  border-radius: 7px;
  background: #fff;
  text-align: left;
  padding: 20px;
}
.quick:hover {
  background: #f5f9fa;
  border-color: #b9d1dd;
}
.quick b {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 7px;
}
.quick span {
  font-size: 11px;
  color: #81939d;
  line-height: 1.5;
}
.quick-icon {
  color: #2588a0;
  font-size: 23px;
  margin-bottom: 16px;
}
.pill {
  font-size: 10px;
  border-radius: 20px;
  padding: 5px 10px;
  background: #e8f4ed;
  color: #39785a;
  white-space: nowrap;
}
.pill.amber {
  background: #fff3dd;
  color: #a1742e;
}
.step {
  display: flex;
  gap: 14px;
  padding: 15px 0;
  border-bottom: 1px solid #eef1f4;
}
.step:last-child {
  border: 0;
}
.step-num {
  width: 26px;
  height: 26px;
  background: #edf4f7;
  color: #458198;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11px;
  flex-shrink: 0;
}
.step b {
  display: block;
  font-size: 12px;
  margin-bottom: 5px;
}
.step p {
  font-size: 11px;
  color: #80929d;
  margin: 0;
}
.overview-note {
  padding: 20px 24px;
  border: 1px solid #d6e5ec;
  background: #eaf3f7;
  border-radius: 8px;
  font-size: 12px;
  color: #557585;
  line-height: 1.7;
}
.editor-grid {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 22px;
}
.item-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.item-button {
  border: 1px solid #e0e7ec;
  border-radius: 6px;
  background: white;
  padding: 14px;
  text-align: left;
  color: #486170;
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
}
.item-button.active {
  border-color: #6aabbf;
  background: #edf6f9;
  color: #174c60;
}
.item-button small {
  font-size: 10px;
  color: #81929d;
}
.editor-content {
  min-width: 0;
}
.field {
  display: block;
  margin-bottom: 20px;
}
.field-label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 8px;
  color: #385566;
}
input:not([type=checkbox]):not([type=file]),
textarea,
select {
  width: 100%;
  border: 1px solid #dce4e9;
  border-radius: 6px;
  padding: 11px 12px;
  background: #fff;
  color: #234354;
  min-width: 0;
}
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid #b6d8e3;
  border-color: #639bb0;
}
textarea {
  min-height: 95px;
  resize: vertical;
  line-height: 1.65;
}
input[readonly] {
  background: #f6f8fa !important;
  color: #7e929e !important;
}
.field .hint {
  display: block;
  margin-top: 7px;
  font-size: 10px;
  line-height: 1.5;
}
.fields-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.check {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  margin: 16px 0;
  line-height: 1.5;
}
.check input {
  accent-color: #216d87;
  width: 16px;
  height: 16px;
}
.field-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.mini-button {
  font-size: 11px;
  border: 1px solid #dfe6eb;
  background: white;
  color: #68818f;
  border-radius: 4px;
  padding: 7px 10px;
}
.image-field {
  display: flex;
  gap: 12px;
  align-items: center;
}
.image-field img {
  width: 65px;
  height: 65px;
  object-fit: contain;
  border: 1px solid #e6edf0;
  background: #fafcfd;
  border-radius: 6px;
}
.upload-label {
  cursor: pointer;
  display: inline-block;
  margin: 9px 0 0;
  color: #327d94;
  font-size: 11px;
}
.upload-label input {
  display: block;
  font-size: 11px;
  margin-top: 8px;
  width: 100%;
  max-width: 280px;
}
.sub-card {
  border: 1px solid #e1e8ec;
  border-radius: 7px;
  padding: 20px;
  margin-bottom: 16px;
  background: #fcfdfe;
}
.order-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.order-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid #eef2f4;
  font-size: 12px;
}
.order-list .check {
  margin: 0;
}
.order-actions {
  display: flex;
  gap: 5px;
}
.feedback {
  position: sticky;
  top: 92px;
  z-index: 19;
  margin: 12px 36px -10px;
  background: #e4f3e9;
  color: #30684b;
  border: 1px solid #c7e3d2;
  padding: 12px 18px;
  border-radius: 7px;
  font-size: 12px;
  line-height: 1.6;
}
.feedback.error {
  background: #fff0eb;
  color: #a65337;
  border-color: #f4d5c8;
}
.admin-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  padding: 18px 36px;
  border-top: 1px solid #e0e7ec;
  color: #92a1ab;
  font-size: 10px;
}
.history-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid #e8eef1;
}
.history-row p {
  font-size: 12px;
  margin: 0;
}
.history-row small {
  font-size: 10px;
  color: #8a9ca6;
}
.empty {
  padding: 45px 20px;
  text-align: center;
  color: #81949e;
}
dialog {
  border: 1px solid #dce5ea;
  border-radius: 12px;
  padding: 32px;
  width: min(480px, calc(100vw - 30px));
  color: #244758;
  box-shadow: 0 20px 70px #09263833;
}
dialog::backdrop {
  background: #102f4055;
  backdrop-filter: blur(3px);
}
dialog h2 {
  font-size: 23px;
  margin: 14px 0;
}
dialog p {
  font-size: 13px;
  color: #78909c;
}
.dialog-kicker {
  font-size: 10px;
  letter-spacing: 1.5px;
  color: #478d9d;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
}
.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #45a778;
  margin-right: 6px;
}
.footer-info {
  font-size: 11px;
  color: #81929d;
  line-height: 1.7;
}
.panel-description {
  max-width: 650px;
  color: #80929d;
  font-size: 12px;
}
.color-row {
  display: flex;
  gap: 12px;
  align-items: center;
}
.color-row input[type=color] {
  width: 60px !important;
  padding: 3px !important;
  height: 40px;
}
.no-bottom {
  margin-bottom: 0;
}
@media (min-width: 1450px) {
  .workspace-main {
    padding: 45px 50px;
  }
  .admin-top {
    padding-left: 50px;
    padding-right: 50px;
  }
  .overview-grid {
    grid-template-columns: 1.5fr 1fr;
  }
}
@media (max-width: 1120px) {
  .admin-shell {
    grid-template-columns: 200px minmax(0, 1fr);
  }
  .sidebar {
    padding: 25px 12px;
  }
  .admin-top {
    padding: 18px 24px;
    flex-wrap: wrap;
  }
  .workspace-main {
    padding: 26px 24px;
  }
  .top-actions {
    flex-wrap: wrap;
  }
  .overview-grid {
    grid-template-columns: 1fr;
  }
  .editor-grid {
    grid-template-columns: 170px minmax(0, 1fr);
  }
  .admin-bottom span:nth-child(2) {
    display: none;
  }
}
@media (max-width: 760px) {
  .admin-shell {
    display: block;
  }
  .sidebar {
    position: relative;
    height: auto;
    padding: 16px;
  }
  .admin-brand {
    margin-bottom: 20px;
    font-size: 23px;
  }
  .sidebar > .side-label,
  .sidebar nav .side-label,
  .side-bottom {
    display: none;
  }
  .sidebar nav {
    display: flex;
    overflow-x: auto;
    gap: 4px;
  }
  .sidebar nav button {
    width: auto;
    white-space: nowrap;
    padding: 10px;
    font-size: 11px;
  }
  .sidebar nav button span {
    display: none;
  }
  .admin-top {
    position: relative;
    padding: 18px;
  }
  .top-actions {
    gap: 6px;
  }
  .top-actions button {
    font-size: 11px;
    padding: 10px;
  }
  .workspace-main {
    padding: 24px 16px;
  }
  .stats {
    gap: 8px;
  }
  .stat {
    padding: 16px 12px;
  }
  .stat .number {
    font-size: 27px;
  }
  .stat-label {
    font-size: 10px;
  }
  .stat small {
    font-size: 9px;
  }
  .page-intro {
    gap: 10px;
  }
  h1 {
    font-size: 25px;
  }
  .quick-grid,
  .fields-two {
    grid-template-columns: 1fr;
  }
  .editor-grid {
    display: block;
  }
  .item-list {
    flex-direction: row;
    overflow-x: auto;
    margin-bottom: 20px;
  }
  .item-button {
    white-space: nowrap;
  }
  .card {
    padding: 20px;
  }
  .admin-bottom {
    padding: 16px;
  }
  .feedback {
    position: relative;
    top: 0;
    margin: 12px 16px;
  }
  .history-row {
    align-items: flex-start;
    flex-direction: column;
  }
  .history-row button {
    align-self: flex-end;
  }
  .overview-grid {
    gap: 0;
  }
  .dialog-actions {
    flex-wrap: wrap;
  }
}
.admin-bottom {
  flex-wrap: wrap;
}
.admin-bottom a.text-button {
  text-decoration: none;
}
