@import url("../../vendor/components/font-awesome/css/font-awesome.min.css");

/*
 * Identidade visual dos paineis FireDelivery, FireBall e Parceiro.
 * A fonte comercial fica em fallback local para reduzir dependencia externa e manter leitura consistente.
 */
:root {
  --fire-font-body: "Inter", "Roboto", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --fire-font-display: "Inter", "Roboto", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --fire-primary: #c8321e;
  --fire-charcoal: #25272d;
  --fire-primary-soft: #fff0e8;
  --fire-yellow: #ffb51b;
  --fire-orange: #ff5a1f;
  --fire-red: #d9361d;
  --fire-cream: #fff8ef;
  --fire-ink: #25272d;
  --fire-muted: #656a74;
  --fire-border: rgba(185, 75, 38, 0.16);
  --fire-shadow: 0 20px 55px rgba(72, 34, 18, 0.14);
}

.ajax-updated {
  animation: ajaxPulse .9s ease;
}

@keyframes ajaxPulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 212, 71, .38); }
  100% { box-shadow: 0 0 0 18px rgba(255, 212, 71, 0); }
}

body.fix-header,
body.fix-sidebar {
  background:
    radial-gradient(circle at top left, rgba(255, 181, 27, 0.24), transparent 34rem),
    radial-gradient(circle at bottom right, rgba(255, 90, 31, 0.13), transparent 30rem),
    linear-gradient(135deg, #fff8ef 0%, #fffdf9 48%, #f7eee8 100%);
  color: var(--fire-ink);
  font-family: var(--fire-font-body);
  font-size: 16px;
  line-height: 1.55;
}

h1,
h2,
h3,
h4,
h5,
h6,
.card-title,
.admin-dashboard-title,
.admin-login-card h2 {
  font-family: var(--fire-font-display);
  letter-spacing: -0.02em;
}

#main-wrapper {
  background: transparent;
}

.top-navbar {
  min-height: 72px;
  background: rgba(255, 253, 247, 0.95) !important;
  border-bottom: 1px solid var(--fire-border);
  box-shadow: 0 12px 35px rgba(59, 26, 20, 0.08);
  backdrop-filter: blur(18px);
}

.top-navbar .navbar-header {
  min-height: 72px;
  width: 260px;
  background: transparent !important;
  display: flex;
  align-items: center;
  padding: 0 20px;
}

.navbar-brand.admin-brand {
  display: inline-flex !important;
  align-items: center;
  gap: 12px;
  padding: 0;
  margin: 0;
  color: var(--fire-charcoal);
}

.admin-brand-logo {
  width: 46px;
  height: 46px;
  padding: 5px;
  border-radius: 16px;
  background: #ffffff;
  object-fit: contain;
  box-shadow: 0 10px 26px rgba(214, 58, 31, 0.16);
}

.admin-brand-text {
  display: flex !important;
  flex-direction: column;
  line-height: 1;
}

.admin-brand-name {
  color: var(--fire-primary);
  font-size: 1.22rem;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.admin-brand-context {
  color: var(--fire-orange);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  margin-top: 5px;
  text-transform: uppercase;
}

.navbar-collapse.admin-navbar {
  min-height: 72px;
  background: transparent !important;
  display: flex !important;
  align-items: center;
  justify-content: flex-end;
  padding: 0 24px;
}

.admin-top-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  width: 100%;
}

.admin-current-user,
.admin-top-link,
.admin-top-cta,
.admin-logout-link {
  min-height: 40px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 800;
}

.admin-current-user {
  color: var(--fire-charcoal);
  background: rgba(214, 58, 31, 0.08);
  padding: 4px 14px 4px 5px;
}

.admin-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--fire-primary), var(--fire-yellow));
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 900;
  box-shadow: 0 8px 20px rgba(214, 58, 31, 0.2);
}

.admin-top-link {
  color: var(--fire-charcoal) !important;
  background: #ffffff;
  border: 1px solid var(--fire-border);
  padding: 0 16px;
}

.admin-top-cta {
  color: #ffffff !important;
  background: linear-gradient(135deg, var(--fire-orange), var(--fire-red));
  padding: 0 16px;
  box-shadow: 0 12px 24px rgba(241, 90, 36, 0.2);
}

.admin-top-cta--secondary {
  background: linear-gradient(135deg, var(--fire-primary), #ff6b24);
  box-shadow: 0 12px 24px rgba(214, 58, 31, 0.2);
}

.admin-logout-link {
  color: #ffffff !important;
  background: linear-gradient(135deg, var(--fire-orange), var(--fire-red));
  padding: 0 18px;
  box-shadow: 0 12px 24px rgba(241, 90, 36, 0.22);
}

.admin-top-link:hover,
.admin-top-cta:hover,
.admin-logout-link:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.admin-sidebar-toggle,
.admin-sidebar-close {
  border: 0;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--fire-primary), var(--fire-orange));
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(59, 26, 20, 0.16);
}

.admin-sidebar-toggle {
  display: none;
  padding: 0 14px;
}

.admin-sidebar-close {
  display: none;
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 42px;
  padding: 0;
}

.admin-sidebar-backdrop {
  display: none;
}

.left-sidebar {
  background: #ffffff !important;
  border-right: 1px solid #e7e8eb;
  box-shadow: 16px 0 50px rgba(31, 35, 43, 0.08);
}

.scroll-sidebar,
.sidebar-nav,
#sidebarnav {
  background: #ffffff !important;
}

.sidebar-nav {
  padding: 18px 12px;
}

.sidebar-nav ul {
  margin: 0;
  padding: 0;
}

.sidebar-nav ul li.nav-devider {
  display: none;
}

.sidebar-nav ul li.nav-label {
  color: #7c8089;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  padding: 18px 14px 8px;
  text-transform: uppercase;
}

.sidebar-nav > ul > li > a {
  color: #3f424a !important;
  border-radius: 16px;
  margin: 4px 0;
  padding: 12px 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.sidebar-nav > ul > li > a i {
  width: 20px;
  color: var(--fire-yellow) !important;
  text-align: center;
}

.sidebar-nav > ul > li > a:hover,
.sidebar-nav > ul > li.active > a {
  color: #ffffff !important;
  background: linear-gradient(135deg, rgba(214, 58, 31, 0.92), rgba(241, 90, 36, 0.74));
  text-decoration: none;
}

.sidebar-nav ul li ul {
  background: transparent;
  padding: 2px 0 10px 36px;
}

.sidebar-nav ul li ul li a {
  color: #60646d !important;
  border-left: 2px solid rgba(237, 67, 40, 0.2);
  padding: 8px 12px;
  font-weight: 700;
}

.sidebar-nav ul li ul li a:hover {
  color: var(--fire-primary) !important;
  border-left-color: var(--fire-primary);
  text-decoration: none;
}

.admin-mobile-theme-item {
  display: none;
}

.admin-mobile-theme-control {
  width: 100%;
  min-height: 46px;
  border: 1px solid #e1e3e7;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 15px;
  color: #3f424a;
  background: #f7f8fa;
  font-weight: 800;
  cursor: pointer;
}

.admin-mobile-theme-control .fa {
  width: 20px;
  color: var(--fire-primary);
  text-align: center;
}

.page-wrapper {
  background: transparent;
  padding: 92px 24px 24px;
}

.container-fluid {
  padding-left: 0;
  padding-right: 0;
}

.card {
  border: 1px solid var(--fire-border);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--fire-shadow);
  overflow: hidden;
}

.card-outline-primary {
  border-color: rgba(214, 58, 31, 0.22);
}

.card-outline-primary .card-header,
.card-header {
  background: linear-gradient(135deg, var(--fire-primary) 0%, #e84a20 48%, var(--fire-orange) 100%) !important;
  border-bottom: 0;
  padding: 20px 24px;
}

.card-header h4 {
  color: #ffffff;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.card-body {
  padding: 24px;
}

.card-title {
  color: var(--fire-charcoal);
  font-weight: 900;
}

.admin-dashboard-hero {
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 30px;
  background:
    radial-gradient(circle at top right, rgba(255, 212, 71, 0.46), transparent 18rem),
    linear-gradient(135deg, rgba(214, 58, 31, 0.96), rgba(59, 26, 20, 0.96));
  color: #ffffff;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
  padding: 30px;
  box-shadow: var(--fire-shadow);
}

.admin-dashboard-eyebrow {
  color: var(--fire-yellow);
  display: inline-flex;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.admin-dashboard-hero h1 {
  max-width: 760px;
  margin: 0 0 10px;
  font-size: clamp(2rem, 4vw, 4.4rem);
  font-weight: 900;
  letter-spacing: -0.07em;
  line-height: 0.98;
}

.admin-dashboard-hero p {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 700;
  margin: 0;
}

.admin-dashboard-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  min-width: 260px;
}

.admin-dashboard-actions .btn {
  background: #ffffff !important;
  color: var(--fire-charcoal) !important;
}

.admin-cta-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0 0 24px;
}

.admin-cta-card {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  border: 1px solid rgba(214, 58, 31, 0.14);
  border-radius: 26px;
  background:
    radial-gradient(circle at top right, rgba(255, 212, 71, 0.28), transparent 11rem),
    #ffffff;
  box-shadow: 0 16px 42px rgba(59, 26, 20, 0.1);
  color: var(--fire-ink);
  padding: 22px;
}

.admin-cta-card::after {
  content: "";
  position: absolute;
  right: -34px;
  bottom: -46px;
  width: 120px;
  height: 120px;
  border-radius: 999px;
  background: rgba(214, 58, 31, 0.08);
  pointer-events: none;
}

.admin-cta-card--primary {
  background:
    radial-gradient(circle at 88% 12%, rgba(255, 212, 71, 0.42), transparent 16rem),
    linear-gradient(135deg, var(--fire-charcoal), var(--fire-primary));
  color: #ffffff;
}

.admin-cta-grid--restaurant .admin-cta-card--primary {
  background:
    radial-gradient(circle at 88% 12%, rgba(255, 212, 71, 0.44), transparent 16rem),
    linear-gradient(135deg, #b8321d, #f15a24);
}

.admin-cta-kicker {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--fire-yellow);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.navbar-brand.admin-brand .admin-brand-name,
.navbar-brand.admin-brand .admin-brand-context {
  display: block !important;
}

.admin-cta-card h2,
.admin-cta-card h3 {
  margin: 0;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.02;
}

.admin-cta-card h2 {
  max-width: 560px;
  font-size: clamp(1.55rem, 2.6vw, 2.7rem);
}

.admin-cta-card h3 {
  margin-top: 14px;
  color: var(--fire-charcoal);
  font-size: 1.35rem;
}

.admin-cta-card--primary h3,
.admin-cta-card--primary h2 {
  color: #ffffff;
}

.admin-cta-card p {
  margin: 12px 0 0;
  color: var(--fire-muted);
  font-weight: 800;
  line-height: 1.48;
}

.admin-helper-text {
  color: rgba(37, 39, 45, .76);
  font-weight: 700;
  line-height: 1.6;
  margin: 0;
}

.finance-filter {
  min-width: min(100%, 280px);
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, .78);
  border: 1px solid rgba(255, 255, 255, .72);
  box-shadow: 0 18px 36px rgba(31, 35, 43, .12);
}

.finance-filter label {
  display: block;
  margin-bottom: 8px;
  color: var(--fire-charcoal);
  font-weight: 900;
}

.finance-kpi-grid,
.finance-chart-grid {
  display: grid;
  gap: 18px;
  margin-bottom: 24px;
}

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

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

.finance-kpi-card,
.finance-chart-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(214, 58, 31, .14);
  border-radius: 26px;
  background:
    radial-gradient(circle at top right, rgba(255, 198, 48, .16), transparent 34%),
    #fffef8;
  box-shadow: 0 20px 46px rgba(31, 35, 43, .10);
}

.finance-kpi-card {
  padding: 22px;
}

.finance-kpi-card::after {
  content: "";
  position: absolute;
  right: -34px;
  bottom: -42px;
  width: 100px;
  height: 100px;
  border-radius: 999px;
  background: rgba(214, 58, 31, .09);
}

.finance-kpi-card--strong {
  background:
    radial-gradient(circle at top right, rgba(255, 198, 48, .24), transparent 40%),
    linear-gradient(135deg, var(--fire-primary), var(--fire-charcoal));
  color: #ffffff;
}

.finance-kpi-card span,
.finance-kpi-card small {
  display: block;
  position: relative;
  z-index: 1;
}

.finance-kpi-card span {
  color: var(--fire-muted);
  font-size: .82rem;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.finance-kpi-card strong {
  display: block;
  position: relative;
  z-index: 1;
  margin-top: 10px;
  color: var(--fire-charcoal);
  font-size: clamp(1.5rem, 2.4vw, 2.25rem);
  font-weight: 900;
  line-height: 1.05;
}

.finance-kpi-card small {
  margin-top: 10px;
  color: rgba(37, 39, 45, .64);
  font-weight: 800;
}

.finance-kpi-card--strong span,
.finance-kpi-card--strong strong,
.finance-kpi-card--strong small {
  color: #ffffff;
}

.finance-chart-card {
  padding: 22px;
}

.finance-chart-card--wide {
  grid-column: 1 / -1;
}

.finance-chart-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.finance-chart-head h3 {
  margin: 4px 0 0;
  color: var(--fire-charcoal);
  font-weight: 900;
}

.finance-chart-canvas {
  position: relative;
  min-height: 320px;
}

.finance-chart-canvas canvas {
  width: 100% !important;
  height: 320px !important;
}

.finance-chart-empty {
  position: absolute;
  inset: auto 22px 22px;
  padding: 14px 16px;
  border-radius: 18px;
  background: #fff6bf;
  color: var(--fire-charcoal);
  font-weight: 900;
}

.admin-cta-card--primary p {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.82);
}

.admin-cta-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--fire-yellow), #fff1a8);
  color: var(--fire-charcoal);
  font-size: 1.15rem;
  box-shadow: 0 10px 22px rgba(59, 26, 20, 0.1);
}

.admin-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.admin-cta-card--primary .admin-cta-actions .btn {
  background: #ffffff !important;
  color: var(--fire-charcoal) !important;
}

.admin-cta-card--primary .admin-cta-actions .btn-info {
  background: var(--fire-yellow) !important;
  color: var(--fire-charcoal) !important;
}

.admin-cta-link {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  margin-top: 16px;
  color: var(--fire-orange);
  font-weight: 900;
}

.admin-cta-link::after {
  content: "\f105";
  margin-left: 8px;
  font-family: FontAwesome;
}

.admin-cta-link:hover {
  color: var(--fire-red);
}

.card.p-30 {
  min-height: 136px;
  border: 0;
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(255, 212, 71, 0.3), transparent 9rem),
    #ffffff;
  box-shadow: 0 14px 35px rgba(59, 26, 20, 0.08);
}

.card.p-30 .fa {
  color: var(--fire-orange);
}

.media-body h2 {
  color: var(--fire-charcoal);
  font-weight: 900;
}

.media-body p {
  color: var(--fire-muted);
  font-weight: 800;
}

.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0 18px 18px;
}

.card-body .table-responsive {
  padding-left: 0;
  padding-right: 0;
}

.table {
  min-width: 760px;
  margin-bottom: 0;
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
}

.table thead th {
  background: #fff5ed;
  border: 0;
  color: var(--fire-charcoal);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.table td {
  border-color: #f5e7de;
  color: #5c4339;
  vertical-align: middle !important;
}

.table td:last-child {
  white-space: nowrap;
}

.table img {
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 10px 24px rgba(59, 26, 20, 0.12);
}

.btn {
  min-height: 38px;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-weight: 900;
  letter-spacing: 0.01em;
  box-shadow: 0 10px 20px rgba(59, 26, 20, 0.12);
  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(59, 26, 20, 0.16);
  filter: saturate(1.04);
}

.btn-xs,
.btn-sm {
  min-width: 38px;
}

.btn-primary,
.btn-success {
  background: linear-gradient(135deg, var(--fire-orange), var(--fire-red)) !important;
  color: #ffffff !important;
}

.btn-info {
  background: linear-gradient(135deg, var(--fire-primary), #ff6b24) !important;
  color: #ffffff !important;
}

.btn-danger {
  background: linear-gradient(135deg, #db3f26, #9f2717) !important;
  color: #ffffff !important;
}

.btn-inverse {
  background: #44231b !important;
  color: #ffffff !important;
}

.form-control,
.custom-select {
  min-height: 44px;
  border: 1px solid #f0d9cc;
  border-radius: 14px;
  background-color: #ffffff;
  color: var(--fire-ink);
  box-shadow: none;
}

textarea.form-control {
  min-height: 110px;
}

.form-control:focus,
.custom-select:focus {
  border-color: var(--fire-primary);
  box-shadow: 0 0 0 0.2rem rgba(214, 58, 31, 0.12);
}

label,
.control-label {
  color: var(--fire-charcoal);
  font-weight: 900;
}

label .fa,
.control-label .fa {
  width: 1.15rem;
  margin-right: 6px;
  color: var(--fire-orange);
  text-align: center;
}

.admin-form-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 7px;
  color: #7a655b;
  font-size: 0.82rem;
  font-weight: 800;
}

.admin-form-hint .fa {
  color: var(--fire-primary);
}

.btn .fa {
  margin-right: 4px;
}

.alert {
  border: 0;
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(59, 26, 20, 0.1);
}

.alert-success {
  background: #fff0e7;
  color: #9f301d;
}

.alert-danger {
  background: #fff0e8;
  color: #94301c;
}

.alert-info {
  background: #fff0d8;
  color: #8a3b13;
}

.footer {
  color: var(--fire-muted);
  background: transparent;
  font-weight: 800;
  padding: 24px;
  text-align: center;
}

.admin-login-page {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 12% 12%, rgba(255, 212, 71, 0.38), transparent 18rem),
    radial-gradient(circle at 82% 18%, rgba(241, 90, 36, 0.2), transparent 20rem),
    linear-gradient(135deg, #25272d 0%, #d63a1f 52%, #fff4c4 100%);
  color: #ffffff;
  font-family: var(--fire-font-body);
}

.admin-login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  align-items: center;
  gap: 44px;
  padding: 54px;
}

.admin-login-story {
  max-width: 680px;
}

.admin-login-logo {
  width: min(180px, 52vw);
  height: auto;
  margin-bottom: 28px;
  filter: drop-shadow(0 16px 30px rgba(0, 0, 0, 0.18));
}

.admin-login-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  padding: 0 15px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.admin-login-story h1 {
  max-width: 760px;
  margin: 22px 0 16px;
  font-size: clamp(2.4rem, 6vw, 5.8rem);
  line-height: 0.94;
  font-weight: 900;
  letter-spacing: -0.08em;
}

.admin-login-story p {
  max-width: 560px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.7;
}

.admin-login-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 26px;
}

.admin-login-highlights span {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 10px;
  align-items: center;
  min-width: 0;
  border-left: 3px solid var(--fire-yellow);
  padding: 9px 12px;
  color: #ffffff;
  background: rgba(37, 39, 45, .2);
}

.admin-login-highlights .fa {
  grid-row: 1 / 3;
  color: var(--fire-yellow);
  font-size: 1.2rem;
  text-align: center;
}

.admin-login-highlights strong {
  font-size: .88rem;
  line-height: 1.15;
}

.admin-login-highlights small {
  color: rgba(255, 255, 255, .72);
  font-size: .7rem;
}

.admin-login-card {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 34px;
  background: rgba(255, 253, 247, 0.95);
  color: var(--fire-ink);
  padding: 34px;
  box-shadow: 0 30px 70px rgba(59, 26, 20, 0.32);
}

.admin-login-card-icon {
  width: 70px;
  height: 70px;
  border-radius: 24px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 16px 34px rgba(214, 58, 31, 0.16);
}

.admin-login-card-icon img {
  width: 56px;
  height: 56px;
}

.admin-login-card h2 {
  margin: 24px 0 8px;
  color: var(--fire-charcoal);
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.admin-login-card p {
  color: var(--fire-muted);
  font-weight: 700;
}

.admin-login-form {
  margin-top: 24px;
}

.admin-login-form .btn {
  width: 100%;
  min-height: 48px;
  margin-top: 8px;
}

.admin-login-back {
  color: var(--fire-primary);
  display: inline-flex;
  font-weight: 900;
  margin-top: 18px;
}

.admin-login-back:hover {
  color: var(--fire-orange);
  text-decoration: none;
}

@media (max-width: 991px) {
  .admin-login-shell {
    grid-template-columns: 1fr;
    padding: 34px 18px;
  }

  .admin-login-story {
    max-width: none;
  }

  .admin-login-card {
    max-width: 560px;
  }
}

@media (max-width: 767px) {
  body.fix-header,
  body.fix-sidebar {
    overflow-x: hidden;
  }

  .top-navbar {
    position: relative !important;
    min-height: auto;
  }

  .top-navbar .navbar-header {
    width: 100% !important;
    min-height: 66px;
    padding: 10px 14px;
  }

  .navbar-collapse.admin-navbar {
    width: 100%;
    min-height: auto;
    padding: 0 14px 14px;
  }

  .admin-top-actions {
    justify-content: space-between;
    gap: 8px;
  }

  .admin-current-user {
    display: none;
  }

  .admin-top-link,
  .admin-top-cta,
  .admin-logout-link {
    flex: 1 1 auto;
    padding: 0 12px;
  }

  .left-sidebar {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    padding-top: 0 !important;
    top: auto !important;
  }

  .scroll-sidebar {
    height: auto !important;
    overflow: visible !important;
  }

  .sidebar-nav {
    padding: 10px;
  }

  #sidebarnav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  #sidebarnav > li.nav-label,
  #sidebarnav > li.nav-devider {
    display: none !important;
  }

  .sidebar-nav > ul > li > a {
    min-height: 46px;
    margin: 0;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    white-space: nowrap;
  }

  .sidebar-nav > ul > li > a.has-arrow:after {
    display: none;
  }

  .sidebar-nav ul li ul.collapse {
    display: block !important;
    height: auto !important;
    padding: 6px 0 0;
  }

  .sidebar-nav ul li ul li a {
    border-left: 0;
    padding: 6px 8px 6px 32px;
    font-size: 0.82rem;
  }

  .page-wrapper {
    margin-left: 0 !important;
    padding: 18px 12px 24px !important;
  }

  .container-fluid {
    padding: 0 !important;
  }

  .card {
    border-radius: 20px;
    margin-bottom: 18px;
  }

  .admin-dashboard-hero {
    align-items: stretch;
    flex-direction: column;
    padding: 24px;
  }

  .admin-dashboard-actions {
    justify-content: stretch;
    min-width: 0;
  }

  .admin-dashboard-actions .btn {
    flex: 1 1 180px;
  }

  .admin-cta-grid {
    grid-template-columns: 1fr 1fr;
  }

  .finance-kpi-grid,
  .finance-chart-grid {
    grid-template-columns: 1fr;
  }

  .finance-chart-card--wide {
    grid-column: auto;
  }

  .finance-chart-canvas,
  .finance-chart-canvas canvas {
    min-height: 280px;
    height: 280px !important;
  }

  .admin-cta-card--primary {
    grid-column: 1 / -1;
  }

  .card-header,
  .card-body {
    padding: 18px;
  }

  .table-responsive {
    margin-top: 18px !important;
    padding: 0 0 12px;
  }

  .table {
    min-width: 720px;
  }

  .order-chat__bubble {
    max-width: 92%;
  }

  .row [class*="col-"] {
    padding-left: 8px;
    padding-right: 8px;
  }
}

@media (max-width: 575px) {
  .admin-brand-name {
    font-size: 1.05rem;
  }

  .admin-brand-context {
    font-size: 0.58rem;
  }

  .admin-brand-logo {
    width: 42px;
    height: 42px;
  }

  #sidebarnav {
    grid-template-columns: 1fr;
  }

  .page-wrapper .btn:not(.btn-xs):not(.btn-sm) {
    width: 100%;
    margin-bottom: 8px;
  }

  .admin-cta-grid {
    grid-template-columns: 1fr;
  }

  .admin-cta-card {
    min-height: auto;
    padding: 20px;
  }

  .admin-cta-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .admin-login-card {
    border-radius: 26px;
    padding: 24px;
  }

  .admin-login-highlights span {
    width: 100%;
    text-align: center;
  }
}

/* FireBall Admin business layer refinements */
body.fix-header,
body.fix-sidebar {
  color: #2d3037;
}

.card,
.table,
.form-control,
.custom-select {
  color: #2d3037;
}

.card p,
.table td,
.form-control::placeholder,
.custom-select,
.admin-role-list span {
  color: #656a74;
}

.btn-primary,
.btn-success,
.btn-info,
.btn-danger,
.btn-inverse {
  color: #ffffff !important;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.18);
}

.admin-dashboard-actions .btn,
.admin-top-link,
.admin-theme-toggle {
  background: #ffffff !important;
  border: 1px solid rgba(214, 58, 31, 0.22);
  color: #25272d !important;
  text-shadow: none;
}

.admin-theme-toggle {
  padding: 0 16px;
}

.admin-theme-toggle--mobile {
  display: none;
}

.theme-toggle--floating {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 20;
  min-height: 42px;
  border: 1px solid rgba(237, 67, 40, .2);
  border-radius: 999px;
  padding: 0 16px;
  color: #2d3037;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(31, 35, 43, .12);
  font-weight: 800;
  cursor: pointer;
}

.theme-toggle--floating .fa {
  margin-right: 7px;
}

body[data-admin-theme="dark"] .theme-toggle--floating {
  border-color: #3a3d45;
  color: #f5f6f8;
  background: #24272d;
}

body[data-admin-theme="dark"].admin-login-page {
  color: #f5f6f8;
  background: #15171b;
}

body[data-admin-theme="dark"] .admin-login-story {
  background: linear-gradient(145deg, #1b1d22, #292c33);
}

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

.admin-kpi-grid--secondary {
  margin-bottom: 24px;
}

.admin-kpi-card {
  min-height: 150px;
  border: 1px solid rgba(214, 58, 31, 0.16);
  border-radius: 26px;
  background:
    radial-gradient(circle at top right, rgba(255, 212, 71, 0.28), transparent 9rem),
    #ffffff;
  box-shadow: var(--fire-shadow);
  padding: 22px;
}

.admin-kpi-card--money {
  background:
    radial-gradient(circle at top right, rgba(255, 212, 71, 0.42), transparent 10rem),
    linear-gradient(135deg, #ffffff 0%, #fff2e8 100%);
}

.admin-kpi-card--marketing {
  background:
    radial-gradient(circle at top right, rgba(241, 90, 36, 0.2), transparent 10rem),
    linear-gradient(135deg, #ffffff 0%, #fff4e8 100%);
}

.admin-kpi-card span {
  display: block;
  color: #6B4A3F;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-kpi-card strong {
  display: block;
  color: #25272d;
  font-size: clamp(1.75rem, 3vw, 2.55rem);
  font-weight: 900;
  line-height: 1;
  margin: 12px 0 10px;
}

.admin-kpi-card small {
  color: #7a655b;
  font-weight: 800;
}

.admin-role-list {
  display: grid;
  gap: 12px;
}

.admin-role-list div {
  border: 1px solid rgba(214, 58, 31, 0.12);
  border-radius: 18px;
  background: #fff8f2;
  padding: 14px;
}

.admin-role-list strong,
.admin-role-list span {
  display: block;
}

.admin-role-list strong {
  color: #25272d;
  font-weight: 900;
}

.admin-status {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border-radius: 999px;
  padding: 0 12px;
  font-size: 0.78rem;
  font-weight: 900;
}

.admin-status--active {
  background: #ffe9dd;
  color: #8f291a;
}

.admin-status--approved,
.admin-status--paid_to_restaurant,
.admin-status--received,
.admin-status--delivered {
  background: #ffe9dd;
  color: #8f291a;
}

.admin-status--scheduled {
  background: #fff0d8;
  color: #8a3b13;
}

.admin-status--pending,
.admin-status--pending_payment,
.admin-status--pending_restaurant,
.admin-status--in_process,
.admin-status--authorized,
.admin-status--preparing,
.admin-status--on_the_way {
  background: #fff0d8;
  color: #8a3b13;
}

.admin-status--finished {
  background: #f8ede6;
  color: #62483e;
}

.admin-status--inactive,
.admin-status--cancelled,
.admin-status--rejected,
.admin-status--refunded,
.admin-status--charged_back {
  background: #ffe1dd;
  color: #7f1117;
}

.admin-status--direct_to_restaurant,
.admin-status--offline {
  background: #fff4da;
  color: #5b3411;
}

.admin-inline-form {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.admin-inline-form .form-control {
  min-width: 136px;
}

.admin-order-chat,
.order-chat {
  display: grid;
  gap: 14px;
}

.order-chat__messages {
  max-height: 360px;
  overflow-y: auto;
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid rgba(214, 58, 31, 0.16);
  border-radius: 20px;
  background: #fff8f2;
  -webkit-overflow-scrolling: touch;
}

.order-chat__message {
  display: flex;
  justify-content: flex-start;
}

.order-chat__message--own {
  justify-content: flex-end;
}

.order-chat__bubble {
  max-width: min(78%, 560px);
  border: 1px solid rgba(214, 58, 31, 0.14);
  border-radius: 18px 18px 18px 6px;
  background: #ffffff;
  color: #2d3037;
  padding: 12px 14px;
  box-shadow: 0 10px 22px rgba(59, 26, 20, 0.08);
}

.order-chat__message--own .order-chat__bubble {
  border-color: transparent;
  border-radius: 18px 18px 6px 18px;
  background: linear-gradient(135deg, #b8321d, #d63a1f);
  color: #ffffff;
}

.order-chat__bubble span {
  display: block;
  margin-bottom: 5px;
  color: #7a655b;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.order-chat__message--own .order-chat__bubble span {
  color: rgba(255, 255, 255, 0.78);
}

.order-chat__bubble p {
  margin: 0;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.order-chat__empty,
.order-chat__locked {
  border-radius: 18px;
  background: #fff4da;
  color: #5b3411;
  font-weight: 900;
  line-height: 1.45;
  padding: 14px;
}

.order-chat__form {
  display: grid;
  gap: 10px;
}

.order-chat--locked .order-chat__form {
  opacity: 0.58;
}

body[data-admin-theme="dark"].fix-header,
body[data-admin-theme="dark"].fix-sidebar {
  background:
    radial-gradient(circle at top left, rgba(255, 212, 71, 0.13), transparent 34rem),
    radial-gradient(circle at bottom right, rgba(241, 90, 36, 0.12), transparent 30rem),
    linear-gradient(135deg, #1b100d 0%, #2b1611 52%, #1F1714 100%);
  color: #fff6ed;
}

body[data-admin-theme="dark"] .top-navbar {
  background: rgba(42, 21, 17, 0.96) !important;
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

body[data-admin-theme="dark"] .admin-brand-name,
body[data-admin-theme="dark"] .card-title,
body[data-admin-theme="dark"] label,
body[data-admin-theme="dark"] .control-label,
body[data-admin-theme="dark"] .media-body h2,
body[data-admin-theme="dark"] .admin-kpi-card strong,
body[data-admin-theme="dark"] .admin-role-list strong {
  color: #fff6ed;
}

body[data-admin-theme="dark"] .admin-brand-context,
body[data-admin-theme="dark"] .admin-dashboard-eyebrow {
  color: #ffd447;
}

body[data-admin-theme="dark"] .admin-current-user {
  color: #fff6ed;
  background: rgba(255, 255, 255, 0.09);
}

body[data-admin-theme="dark"] .card,
body[data-admin-theme="dark"] .admin-kpi-card,
body[data-admin-theme="dark"] .admin-cta-card,
body[data-admin-theme="dark"] .card.p-30,
body[data-admin-theme="dark"] .admin-login-card {
  background:
    radial-gradient(circle at top right, rgba(255, 212, 71, 0.08), transparent 9rem),
    #2e1914;
  border-color: rgba(255, 255, 255, 0.09);
  color: #fff6ed;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

body[data-admin-theme="dark"] .table {
  background: #2e1914;
  color: #fff6ed;
}

body[data-admin-theme="dark"] .table thead th {
  background: #43251d;
  color: #fff8f2;
}

body[data-admin-theme="dark"] .table td {
  border-color: rgba(255, 255, 255, 0.08);
  color: #f3d9ca;
}

body[data-admin-theme="dark"] .form-control,
body[data-admin-theme="dark"] .custom-select {
  background-color: #25130f;
  border-color: rgba(255, 255, 255, 0.14);
  color: #fff7f0;
}

body[data-admin-theme="dark"] .form-control::placeholder,
body[data-admin-theme="dark"] .card p,
body[data-admin-theme="dark"] .admin-cta-card p,
body[data-admin-theme="dark"] .admin-helper-text,
body[data-admin-theme="dark"] .media-body p,
body[data-admin-theme="dark"] .admin-kpi-card span,
body[data-admin-theme="dark"] .admin-kpi-card small,
body[data-admin-theme="dark"] .admin-role-list span {
  color: #c9a99a;
}

body[data-admin-theme="dark"] .finance-filter,
body[data-admin-theme="dark"] .finance-kpi-card,
body[data-admin-theme="dark"] .finance-chart-card {
  background:
    radial-gradient(circle at top right, rgba(255, 198, 48, .12), transparent 34%),
    #2e1914;
  border-color: rgba(255, 255, 255, .08);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .22);
}

body[data-admin-theme="dark"] .finance-filter label,
body[data-admin-theme="dark"] .finance-kpi-card strong,
body[data-admin-theme="dark"] .finance-chart-head h3 {
  color: #fff9f4;
}

body[data-admin-theme="dark"] .finance-kpi-card span,
body[data-admin-theme="dark"] .finance-kpi-card small {
  color: #c9a99a;
}

body[data-admin-theme="dark"] .finance-kpi-card--strong {
  background: linear-gradient(135deg, #25272d, #8f291a);
}

body[data-admin-theme="dark"] .finance-chart-empty {
  background: rgba(255, 198, 48, .16);
  color: #fff6bf;
}

body[data-admin-theme="dark"] .admin-role-list div {
  background: #25130f;
  border-color: rgba(255, 255, 255, 0.09);
}

body[data-admin-theme="dark"] .order-chat__messages {
  background: #25130f;
  border-color: rgba(255, 255, 255, 0.09);
}

body[data-admin-theme="dark"] .order-chat__bubble {
  background: #2e1914;
  border-color: rgba(255, 255, 255, 0.09);
  color: #fff6ed;
}

body[data-admin-theme="dark"] .order-chat__bubble span {
  color: #c9a99a;
}

body[data-admin-theme="dark"] .order-chat__empty,
body[data-admin-theme="dark"] .order-chat__locked {
  background: #2d2815;
  color: #ffe99a;
}

body[data-admin-theme="dark"] .admin-cta-card h3 {
  color: #fff6ed;
}

body[data-admin-theme="dark"] .admin-cta-card--primary {
  background:
    radial-gradient(circle at 88% 12%, rgba(255, 212, 71, 0.22), transparent 16rem),
    linear-gradient(135deg, #1b100d, #9f2d1b);
}

/* Tema claro FireDelivery: superficies neutras e contraste comercial alto. */
body.fix-header:not([data-admin-theme="dark"]),
body.fix-sidebar:not([data-admin-theme="dark"]) {
  color: #282220;
  background: #f6f7f8;
}

body:not([data-admin-theme="dark"]) .top-navbar {
  background: rgba(255, 255, 255, .97) !important;
  border-bottom-color: #ece7e5;
  box-shadow: 0 4px 18px rgba(43, 31, 27, .06);
}

body:not([data-admin-theme="dark"]) .left-sidebar {
  background: #ffffff !important;
  border-right: 1px solid #ebe7e5;
  box-shadow: 8px 0 28px rgba(43, 31, 27, .05);
}

body:not([data-admin-theme="dark"]) .sidebar-nav ul li.nav-label {
  color: #8a817d;
}

body:not([data-admin-theme="dark"]) .sidebar-nav > ul > li > a {
  color: #433c39 !important;
}

body:not([data-admin-theme="dark"]) .sidebar-nav > ul > li > a i {
  color: #ed4328 !important;
}

body:not([data-admin-theme="dark"]) .sidebar-nav > ul > li > a:hover,
body:not([data-admin-theme="dark"]) .sidebar-nav > ul > li.active > a {
  color: #ffffff !important;
  background: #ed4328;
}

body:not([data-admin-theme="dark"]) .sidebar-nav > ul > li > a:hover i,
body:not([data-admin-theme="dark"]) .sidebar-nav > ul > li.active > a i {
  color: #ffffff !important;
}

body:not([data-admin-theme="dark"]) .card,
body:not([data-admin-theme="dark"]) .admin-cta-card,
body:not([data-admin-theme="dark"]) .admin-kpi-card,
body:not([data-admin-theme="dark"]) .finance-kpi-card,
body:not([data-admin-theme="dark"]) .finance-chart-card {
  border-color: #e9e5e3;
  background: #ffffff;
  box-shadow: 0 9px 28px rgba(43, 31, 27, .07);
}

body:not([data-admin-theme="dark"]) .card-outline-primary .card-header,
body:not([data-admin-theme="dark"]) .card-header {
  background: #ed4328 !important;
}

body:not([data-admin-theme="dark"]) .card-header h4,
body:not([data-admin-theme="dark"]) .card-header .card-title {
  color: #ffffff !important;
}

body:not([data-admin-theme="dark"]) .admin-dashboard-hero {
  min-height: auto;
  border: 0;
  border-radius: 24px;
  padding: 24px;
  background: linear-gradient(118deg, #ed4328, #ff7040);
  box-shadow: 0 12px 32px rgba(189, 48, 30, .16);
}

body:not([data-admin-theme="dark"]) .admin-dashboard-hero h1,
body:not([data-admin-theme="dark"]) .admin-dashboard-hero p {
  color: #ffffff !important;
  text-shadow: none;
}

body:not([data-admin-theme="dark"]) .admin-dashboard-hero h1 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1;
}

body:not([data-admin-theme="dark"]) .admin-dashboard-hero p {
  opacity: .96;
}

body:not([data-admin-theme="dark"]) .admin-dashboard-eyebrow {
  color: #fff3c9;
}

body:not([data-admin-theme="dark"]) .admin-cta-card--primary,
body:not([data-admin-theme="dark"]) .admin-cta-grid--restaurant .admin-cta-card--primary {
  color: #ffffff;
  background: #ed4328;
}

.admin-toggle-line {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border: 1px solid #e9e5e3;
  border-radius: 16px;
  padding: 16px;
  background: #fafafa;
}

.admin-toggle-line input {
  margin-top: 5px;
}

.admin-toggle-line span,
.admin-toggle-line small {
  display: block;
}

.admin-toggle-line small {
  margin-top: 3px;
  color: #756d69;
  font-weight: 500;
}

body[data-admin-theme="dark"] .admin-cta-link {
  color: #ffd447;
}

body[data-admin-theme="dark"] .admin-top-link,
body[data-admin-theme="dark"] .admin-theme-toggle,
body[data-admin-theme="dark"] .admin-dashboard-actions .btn {
  background: #fff8f2 !important;
  color: #25272d !important;
}

body[data-admin-theme="dark"] .footer {
  color: #c7aa9c;
}

/*
 * Sidebars neutros substituem o marrom legado e acompanham as superficies
 * claras da aplicacao sem perder contraste no tema escuro.
 */
body.fix-header .left-sidebar,
body.fix-sidebar .left-sidebar,
body.fix-header .scroll-sidebar,
body.fix-sidebar .scroll-sidebar,
body.fix-header .sidebar-nav,
body.fix-sidebar .sidebar-nav,
body.fix-header #sidebarnav,
body.fix-sidebar #sidebarnav {
  background: #ffffff !important;
}

body.fix-header .left-sidebar,
body.fix-sidebar .left-sidebar {
  border-right: 1px solid #e7e8eb !important;
  box-shadow: 10px 0 34px rgba(31, 35, 43, 0.06) !important;
}

body.fix-header .scroll-sidebar,
body.fix-sidebar .scroll-sidebar {
  min-height: calc(100vh - 60px);
}

body.fix-header .sidebar-nav > ul > li,
body.fix-sidebar .sidebar-nav > ul > li {
  background: transparent !important;
}

body.fix-header .sidebar-nav > ul > li > a,
body.fix-sidebar .sidebar-nav > ul > li > a,
body.fix-header .sidebar-nav > ul > li > a span,
body.fix-sidebar .sidebar-nav > ul > li > a span,
body.fix-header .sidebar-nav > ul > li > a .hide-menu,
body.fix-sidebar .sidebar-nav > ul > li > a .hide-menu {
  color: #3f424a !important;
  opacity: 1 !important;
  visibility: visible !important;
}

body.fix-header .sidebar-nav > ul > li > a,
body.fix-sidebar .sidebar-nav > ul > li > a {
  border-left-color: transparent !important;
}

body.fix-header .sidebar-nav > ul > li > a i,
body.fix-sidebar .sidebar-nav > ul > li > a i {
  color: #ed4328 !important;
}

body.fix-header .sidebar-nav > ul > li > a:hover,
body.fix-sidebar .sidebar-nav > ul > li > a:hover,
body.fix-header .sidebar-nav > ul > li.active > a,
body.fix-sidebar .sidebar-nav > ul > li.active > a,
body.fix-header .sidebar-nav > ul > li > a.active,
body.fix-sidebar .sidebar-nav > ul > li > a.active {
  background: linear-gradient(135deg, #e54a20 0%, #f15a24 100%) !important;
  border-left-color: #ffd447 !important;
  color: #ffffff !important;
}

body.fix-header .sidebar-nav > ul > li > a:hover span,
body.fix-sidebar .sidebar-nav > ul > li > a:hover span,
body.fix-header .sidebar-nav > ul > li.active > a span,
body.fix-sidebar .sidebar-nav > ul > li.active > a span {
  color: #ffffff !important;
}

body.fix-header .sidebar-nav ul li.nav-label,
body.fix-sidebar .sidebar-nav ul li.nav-label {
  color: #7c8089 !important;
  opacity: 1 !important;
}

body.fix-header .sidebar-nav ul li ul,
body.fix-sidebar .sidebar-nav ul li ul,
body.fix-header .sidebar-nav ul li ul li,
body.fix-sidebar .sidebar-nav ul li ul li {
  background: transparent !important;
}

body.fix-header .sidebar-nav ul li ul li a,
body.fix-sidebar .sidebar-nav ul li ul li a {
  color: #60646d !important;
}

body.fix-header .sidebar-nav .has-arrow:after,
body.fix-sidebar .sidebar-nav .has-arrow:after {
  border-color: #7c8089 !important;
}

body[data-admin-theme="dark"].fix-header .left-sidebar,
body[data-admin-theme="dark"].fix-sidebar .left-sidebar,
body[data-admin-theme="dark"].fix-header .scroll-sidebar,
body[data-admin-theme="dark"].fix-sidebar .scroll-sidebar,
body[data-admin-theme="dark"].fix-header .sidebar-nav,
body[data-admin-theme="dark"].fix-sidebar .sidebar-nav,
body[data-admin-theme="dark"].fix-header #sidebarnav,
body[data-admin-theme="dark"].fix-sidebar #sidebarnav {
  background: #181a1f !important;
}

body[data-admin-theme="dark"].fix-header .left-sidebar,
body[data-admin-theme="dark"].fix-sidebar .left-sidebar {
  border-right-color: #2d3037 !important;
  box-shadow: 12px 0 36px rgba(0, 0, 0, 0.24) !important;
}

body[data-admin-theme="dark"].fix-header .sidebar-nav > ul > li > a,
body[data-admin-theme="dark"].fix-sidebar .sidebar-nav > ul > li > a,
body[data-admin-theme="dark"].fix-header .sidebar-nav > ul > li > a span,
body[data-admin-theme="dark"].fix-sidebar .sidebar-nav > ul > li > a span,
body[data-admin-theme="dark"].fix-header .sidebar-nav > ul > li > a .hide-menu,
body[data-admin-theme="dark"].fix-sidebar .sidebar-nav > ul > li > a .hide-menu {
  color: #f5f6f8 !important;
}

body[data-admin-theme="dark"].fix-header .sidebar-nav > ul > li > a i,
body[data-admin-theme="dark"].fix-sidebar .sidebar-nav > ul > li > a i,
body[data-admin-theme="dark"].fix-header .sidebar-nav ul li.nav-label,
body[data-admin-theme="dark"].fix-sidebar .sidebar-nav ul li.nav-label {
  color: #ff8a5c !important;
}

body[data-admin-theme="dark"].fix-header .sidebar-nav ul li ul li a,
body[data-admin-theme="dark"].fix-sidebar .sidebar-nav ul li ul li a {
  color: #c8cbd2 !important;
}

body[data-admin-theme="dark"].fix-header .sidebar-nav .has-arrow:after,
body[data-admin-theme="dark"].fix-sidebar .sidebar-nav .has-arrow:after {
  border-color: #c8cbd2 !important;
}

/*
 * O tema escuro usa grafite neutro em vez do marrom legado. Os tons quentes
 * ficam reservados para acoes e destaques da identidade FireDelivery.
 */
body[data-admin-theme="dark"].fix-header,
body[data-admin-theme="dark"].fix-sidebar,
html[data-theme="dark"] body.admin-login-page {
  background:
    radial-gradient(circle at top left, rgba(237, 67, 40, .13), transparent 32rem),
    radial-gradient(circle at bottom right, rgba(255, 181, 27, .08), transparent 28rem),
    #14161a;
  color: #f5f6f8;
}

body[data-admin-theme="dark"] .top-navbar {
  background: rgba(27, 29, 34, .97) !important;
  border-bottom-color: #30333a;
}

body[data-admin-theme="dark"] .card,
body[data-admin-theme="dark"] .admin-kpi-card,
body[data-admin-theme="dark"] .admin-cta-card,
body[data-admin-theme="dark"] .card.p-30,
body[data-admin-theme="dark"] .admin-login-card,
body[data-admin-theme="dark"] .finance-filter,
body[data-admin-theme="dark"] .finance-kpi-card,
body[data-admin-theme="dark"] .finance-chart-card {
  background: #21242a;
  border-color: #353840;
  color: #f5f6f8;
  box-shadow: 0 20px 48px rgba(0, 0, 0, .24);
}

body[data-admin-theme="dark"] .table {
  background: #21242a;
  color: #f5f6f8;
}

body[data-admin-theme="dark"] .table thead th {
  background: #2b2e35;
  color: #ffffff;
}

body[data-admin-theme="dark"] .table td {
  border-color: #353840;
  color: #d8dae0;
}

body[data-admin-theme="dark"] .form-control,
body[data-admin-theme="dark"] .custom-select {
  background-color: #191b20;
  border-color: #3c4048;
  color: #ffffff;
}

body[data-admin-theme="dark"] .form-control::placeholder,
body[data-admin-theme="dark"] .card p,
body[data-admin-theme="dark"] .admin-cta-card p,
body[data-admin-theme="dark"] .admin-helper-text,
body[data-admin-theme="dark"] .media-body p,
body[data-admin-theme="dark"] .admin-kpi-card span,
body[data-admin-theme="dark"] .admin-kpi-card small,
body[data-admin-theme="dark"] .admin-role-list span,
body[data-admin-theme="dark"] .finance-kpi-card span,
body[data-admin-theme="dark"] .finance-kpi-card small,
body[data-admin-theme="dark"] .admin-login-card p {
  color: #b9bdc6;
}

body[data-admin-theme="dark"] .admin-role-list div,
body[data-admin-theme="dark"] .order-chat__messages,
body[data-admin-theme="dark"] .order-chat__bubble {
  background: #191b20;
  border-color: #343840;
  color: #f5f6f8;
}

body[data-admin-theme="dark"] .order-chat__bubble span,
body[data-admin-theme="dark"] .footer {
  color: #aeb2bc;
}

body[data-admin-theme="dark"] .finance-kpi-card--strong,
body[data-admin-theme="dark"] .admin-cta-card--primary,
body[data-admin-theme="dark"] .admin-cta-grid--restaurant .admin-cta-card--primary {
  background: linear-gradient(135deg, #c8321e, #f15a24);
}

/* O login acompanha o mesmo contraste dos paineis em ambos os temas. */
.admin-login-page {
  overflow-x: hidden;
}

.admin-login-story,
.admin-login-card {
  min-width: 0;
  max-width: 100%;
}

.admin-login-story {
  width: 100%;
  border: 1px solid rgba(237, 67, 40, .14);
  border-radius: 30px;
  padding: clamp(24px, 4vw, 42px);
}

.admin-login-logo {
  display: block;
  border-radius: 20px;
  background: #ffffff;
  padding: 10px 14px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .14);
}

body.admin-login-page:not([data-admin-theme="dark"]) {
  background:
    radial-gradient(circle at 12% 12%, rgba(255, 181, 27, .16), transparent 20rem),
    radial-gradient(circle at 82% 18%, rgba(237, 67, 40, .1), transparent 22rem),
    #f5f6f8;
  color: #25272d;
}

body.admin-login-page:not([data-admin-theme="dark"]) .admin-login-story,
body.admin-login-page:not([data-admin-theme="dark"]) .admin-login-card {
  background: #ffffff;
  border-color: #e4e6ea;
  color: #25272d;
  box-shadow: 0 22px 54px rgba(31, 35, 43, .1);
}

body.admin-login-page:not([data-admin-theme="dark"]) .admin-login-story p {
  color: #656a74;
}

body[data-admin-theme="dark"] .admin-login-story {
  background: linear-gradient(145deg, #1d2026, #252830);
  border-color: #343840;
}

body[data-admin-theme="dark"] .admin-login-card h2,
body[data-admin-theme="dark"] .admin-login-story h1,
body[data-admin-theme="dark"] .admin-login-story p {
  color: #f7f8fa;
}

body[data-admin-theme="dark"] .admin-login-pill {
  color: #ffffff;
  background: #31343c;
  border-color: #555a66;
}

body[data-admin-theme="dark"] .admin-login-highlights span {
  color: #25272d;
}

@media (max-width: 575px) {
  .admin-login-shell {
    width: 100%;
    min-width: 0;
    gap: 22px;
    padding: 82px 14px 24px;
  }

  .admin-login-story,
  .admin-login-card {
    width: 100%;
  }

  .admin-login-story {
    padding: 22px;
  }

  .admin-login-logo {
    width: min(150px, 46vw);
    margin-bottom: 20px;
  }

  .admin-login-story h1 {
    max-width: 100%;
    font-size: clamp(2rem, 11vw, 3rem);
    letter-spacing: -.055em;
    overflow-wrap: anywhere;
  }

  .admin-login-story p {
    max-width: 100%;
    font-size: 1rem;
    line-height: 1.55;
    overflow-wrap: anywhere;
  }

  .theme-toggle--floating {
    top: 14px;
    right: 14px;
    max-width: calc(100vw - 28px);
  }
}

@media (max-width: 1100px) {
  .admin-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575px) {
  .admin-kpi-grid {
    grid-template-columns: 1fr;
  }

  .admin-inline-form {
    align-items: stretch;
    flex-direction: column;
    width: 100%;
  }

  .admin-inline-form .form-control,
  .admin-inline-form .btn {
    width: 100%;
  }
}

@media (min-width: 768px) and (max-width: 1169px) {
  body.fix-header .left-sidebar,
  body.fix-sidebar .left-sidebar,
  body.mini-sidebar.fix-header .left-sidebar,
  body.mini-sidebar.fix-sidebar .left-sidebar {
    width: 240px !important;
  }

  body.mini-sidebar .page-wrapper {
    margin-left: 240px !important;
  }

  body.mini-sidebar .sidebar-nav #sidebarnav > li > a {
    width: auto !important;
  }

  body.mini-sidebar .hide-menu {
    display: inline !important;
  }

  body.mini-sidebar .nav-label {
    display: block !important;
  }

  body.mini-sidebar .sidebar-nav #sidebarnav > li:hover > a {
    width: auto !important;
  }
}

/* Mobile admin navigation: keep sidebar hidden until the hamburger is tapped. */
@media (max-width: 767px) {
    body.admin-sidebar-open {
        overflow: hidden;
    }

  .top-navbar {
    position: sticky !important;
    top: 0;
    z-index: 1080;
  }

  .top-navbar .navbar-header {
    width: 100% !important;
    justify-content: space-between;
    gap: 12px;
  }

  .navbar-brand.admin-brand {
    min-width: 0;
    flex: 1 1 auto;
  }

  .navbar-brand.admin-brand span,
  .navbar-brand.admin-brand .admin-brand-text {
    display: flex !important;
  }

  .admin-sidebar-toggle {
    display: inline-flex;
    flex: 0 0 auto;
    order: 2;
  }

  .admin-sidebar-toggle .fa {
    margin-right: 0;
  }

    .navbar-collapse.admin-navbar {
        display: none !important;
    }

    .admin-top-actions {
        min-width: 0;
        justify-content: flex-start;
        padding-bottom: 2px;
    }

  .left-sidebar,
  body.fix-header .left-sidebar,
  body.fix-sidebar .left-sidebar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: min(86vw, 310px) !important;
    height: 100vh !important;
    padding-top: 0 !important;
    transform: translateX(-108%);
    transition: transform .22s ease;
    z-index: 1200;
    overflow: hidden;
  }

  body.admin-sidebar-open .left-sidebar {
    transform: translateX(0);
  }

  .admin-sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1190;
    background: rgba(20, 22, 26, .72);
    backdrop-filter: blur(2px);
  }

  body.admin-sidebar-open .admin-sidebar-backdrop {
    display: block;
  }

  .admin-sidebar-close {
    display: inline-flex;
  }

  .scroll-sidebar,
  body.fix-header .scroll-sidebar,
  body.fix-sidebar .scroll-sidebar {
    height: 100vh !important;
    min-height: 100vh !important;
    overflow-y: auto !important;
    padding-top: 64px;
  }

  #sidebarnav {
    display: block;
  }

  #sidebarnav > li.nav-label {
    display: block !important;
  }

  #sidebarnav > li.nav-devider {
    display: none !important;
  }

  .sidebar-nav {
    padding: 10px 12px 18px;
  }

  .sidebar-nav > ul > li > a {
    white-space: normal;
  }

  .admin-mobile-theme-item {
    display: block;
    margin: 14px 0 4px;
  }

  body[data-admin-theme="dark"] .admin-mobile-theme-control {
    border-color: #3a3d45;
    color: #f5f6f8;
    background: #24272d;
  }

  .sidebar-nav ul li ul.collapse {
    display: none !important;
  }

  .sidebar-nav ul li.active > ul.collapse,
  .sidebar-nav ul li ul.collapse.in {
    display: block !important;
  }
}

/*
 * Endurecimento visual compartilhado por FireBall Admin e Portal do Parceiro.
 * Mantém rótulos visíveis e tabelas navegáveis sem expandir a página inteira.
 */
.page-wrapper,
.container-fluid,
.card,
.card-body,
.dataTables_wrapper {
    min-width: 0;
    max-width: 100%;
}

.page-wrapper .btn,
.admin-top-actions .btn {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-width: 1px;
    font-weight: 800;
    line-height: 1.15;
    text-align: center;
    white-space: normal;
}

.page-wrapper .btn-primary,
.page-wrapper .btn-success,
.page-wrapper .btn-info,
.page-wrapper .btn-danger,
.page-wrapper .btn-inverse,
.admin-top-actions .admin-top-cta,
.admin-top-actions .admin-logout-link {
    color: #ffffff !important;
}

.page-wrapper .btn-default,
.page-wrapper .btn-secondary,
.page-wrapper .btn-outline,
.admin-top-actions .admin-top-link,
.admin-top-actions .admin-theme-toggle {
    color: var(--fire-charcoal) !important;
    background: #ffffff;
}

.table-responsive,
.dataTables_scroll,
.dataTables_scrollBody {
    width: 100%;
    max-width: 100%;
    overflow-x: auto !important;
    overflow-y: hidden;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
}

.table-responsive > .table,
.table-responsive > .dataTables_wrapper {
    margin-bottom: 0;
}

.delivery-confirmation-panel {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 18px;
    margin-top: 28px;
    border: 1px solid rgba(200, 50, 30, .24);
    border-radius: 22px;
    padding: 22px;
    background: linear-gradient(135deg, #fffdf9, #fff0e7);
    box-shadow: 0 16px 38px rgba(72, 34, 18, .08);
}

.delivery-confirmation-panel__icon {
    display: grid;
    width: 54px;
    height: 54px;
    place-items: center;
    border-radius: 18px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--fire-primary), var(--fire-orange));
}

.delivery-confirmation-panel h4,
.delivery-confirmation-panel p {
    margin: 0 0 8px;
}

.delivery-confirmation-panel p {
    color: var(--fire-muted);
}

.delivery-code-form {
    margin-top: 16px;
}

.delivery-code-form label {
    display: block;
    margin-bottom: 7px;
    color: var(--fire-charcoal);
    font-weight: 900;
}

.delivery-code-form > div {
    display: flex;
    align-items: stretch;
    gap: 10px;
}

.delivery-code-form input {
    width: min(180px, 100%);
    min-height: 48px;
    border: 2px solid rgba(200, 50, 30, .28);
    border-radius: 14px;
    padding: 8px 16px;
    color: var(--fire-charcoal);
    background: #ffffff;
    font-size: 1.45rem;
    font-weight: 900;
    letter-spacing: .28em;
    text-align: center;
}

.delivery-confirmed-note,
.order-terminal-status {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    border: 1px solid rgba(34, 148, 91, .22);
    border-radius: 16px;
    padding: 15px 18px;
    color: #155c3b;
    background: #eefbf4;
}

.delivery-confirmed-note .fa,
.order-terminal-status > .fa {
    font-size: 1.55rem;
}

.delivery-confirmed-note span,
.order-terminal-status div {
    display: grid;
    gap: 2px;
}

body[data-admin-theme="dark"] .delivery-confirmation-panel {
    border-color: var(--fire-border);
    background: linear-gradient(135deg, #26211f, #30241f);
}

body[data-admin-theme="dark"] .delivery-code-form label,
body[data-admin-theme="dark"] .delivery-code-form input,
body[data-admin-theme="dark"] .page-wrapper .btn-default,
body[data-admin-theme="dark"] .page-wrapper .btn-secondary,
body[data-admin-theme="dark"] .page-wrapper .btn-outline,
body[data-admin-theme="dark"] .admin-top-actions .admin-top-link,
body[data-admin-theme="dark"] .admin-top-actions .admin-theme-toggle {
    color: var(--fire-ink) !important;
    background: #2a2d34;
}

/* Portal do parceiro em duas colunas: identidade fixa no sidebar e operação à direita. */
.partner-sidebar-brand {
  display: flex;
  min-height: 76px;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #ececef;
  padding: 12px 16px;
  color: #25272d;
  text-decoration: none;
}

.partner-sidebar-brand img {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  object-fit: contain;
}

.partner-sidebar-brand span,
.partner-sidebar-brand small {
  display: grid;
}

.partner-sidebar-brand strong {
  font-size: 1rem;
}

.partner-sidebar-brand small {
  color: #e54227;
  font-size: .62rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.partner-mobile-title {
  display: none;
  min-width: 0;
  overflow: hidden;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.partner-notification-link {
  position: relative;
}

.admin-notification-count {
  position: static;
  min-width: 19px;
  height: 19px;
  border: 0;
  margin-left: 3px;
}

@media (min-width: 768px) {
  body.partner-portal .header {
    left: 240px;
    width: calc(100% - 240px);
  }

  body.partner-portal .header .navbar-header {
    display: none;
  }

  body.partner-portal .left-sidebar {
    top: 0 !important;
    width: 240px !important;
    padding-top: 0 !important;
  }

  body.partner-portal .scroll-sidebar {
    min-height: 100vh;
  }

  body.partner-portal .page-wrapper {
    margin-left: 240px !important;
  }

  body.partner-portal .admin-navbar,
  body.partner-portal .admin-top-actions {
    width: 100%;
  }
}

@media (max-width: 767px) {
  .partner-mobile-title {
    display: block;
  }

  .partner-sidebar-brand {
    padding-right: 52px;
  }
}

/* Os CTAs do hero mantêm contraste mesmo contra regras legadas do Bootstrap. */
body.partner-portal .admin-dashboard-hero .admin-dashboard-actions .btn {
  border-color: #ffffff !important;
  color: #ffffff !important;
  background: #b92f1f !important;
  box-shadow: 0 8px 20px rgba(72, 20, 13, .18);
}

body.partner-portal .admin-dashboard-hero .admin-dashboard-actions .btn:last-child {
  color: #8f271b !important;
  background: #ffffff !important;
}

body.partner-portal .admin-dashboard-hero .admin-dashboard-actions .btn:hover,
body.partner-portal .admin-dashboard-hero .admin-dashboard-actions .btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(72, 20, 13, .24);
}

@media (max-width: 767px) {
    .table-responsive .table,
    .table-responsive .firedelivery-data-table {
        width: max-content !important;
        min-width: 760px;
    }

    .dataTables_wrapper .row {
        width: 100%;
        margin-inline: 0;
    }

    .delivery-confirmation-panel {
        grid-template-columns: 1fr;
        padding: 17px;
    }

    .delivery-code-form > div {
        flex-direction: column;
    }

    .delivery-code-form input,
    .delivery-code-form .btn {
        width: 100%;
    }
}

@media (max-width: 575px) {
  .admin-sidebar-toggle span {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }

  .admin-sidebar-toggle {
    width: 44px;
    padding: 0;
  }
}

/*
 * Integrações e despacho: cartões operacionais usam superfícies claras,
 * controles grandes e empilhamento previsível para uso em celular.
 */
.integration-hero {
  align-items: center;
}

.integration-status {
  min-width: 170px;
  border: 1px solid rgba(255, 255, 255, .26);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 16px;
  color: #ffffff;
  background: rgba(255, 255, 255, .12);
  font-weight: 900;
}

.integration-status.is-active {
  color: #183b25;
  background: #dff7e7;
  border-color: #9fdcb3;
}

.integration-secret,
.integration-meta,
.delivery-share-panel {
  border: 1px solid #e4e6ea;
  border-radius: 20px;
  background: #f9fafb;
}

.integration-secret {
  margin-bottom: 20px;
  padding: 18px;
}

.integration-secret > strong {
  display: block;
  margin-bottom: 10px;
  color: var(--fire-charcoal);
}

.integration-copy-row {
  display: flex;
  align-items: stretch;
  gap: 10px;
}

.integration-copy-row code {
  min-width: 0;
  flex: 1 1 auto;
  overflow-wrap: anywhere;
  border: 1px dashed #cfd2d8;
  border-radius: 12px;
  padding: 12px;
  color: #9d2919;
  background: #ffffff;
}

.integration-token-form {
  max-width: 720px;
  display: inline-block;
  width: 100%;
}

.integration-meta {
  display: grid;
  gap: 1px;
  overflow: hidden;
  background: #e4e6ea;
}

.integration-meta > div {
  min-width: 0;
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 14px;
  padding: 14px 16px;
  background: #ffffff;
}

.integration-meta code,
.integration-meta span {
  overflow-wrap: anywhere;
}

.integration-code {
  max-height: 360px;
  overflow: auto;
  border-radius: 18px;
  padding: 20px;
  color: #f5f6f8;
  background: #202329;
  white-space: pre-wrap;
}

.delivery-share-panel {
  margin: 28px 0;
  padding: 22px;
}

.delivery-share-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.delivery-share-panel__head span {
  color: var(--fire-primary);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.delivery-share-panel__head h4 {
  margin: 5px 0 0;
  color: var(--fire-charcoal);
  font-weight: 900;
}

.delivery-share-panel__head > .fa {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 52px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--fire-primary), var(--fire-orange));
  font-size: 1.35rem;
}

.delivery-courier-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 12px;
}

.delivery-courier-form .form-group {
  margin: 0;
}

.delivery-whatsapp-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}

.delivery-whatsapp-form small {
  color: var(--fire-muted);
  font-weight: 700;
}

.btn.btn-whatsapp {
  min-height: 46px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 18px;
  color: #ffffff;
  background: #168b4d;
  box-shadow: 0 12px 24px rgba(22, 139, 77, .2);
}

body[data-admin-theme="dark"] .integration-secret,
body[data-admin-theme="dark"] .integration-meta,
body[data-admin-theme="dark"] .delivery-share-panel {
  border-color: #353840;
  background: #1b1e23;
}

body[data-admin-theme="dark"] .integration-meta > div,
body[data-admin-theme="dark"] .integration-copy-row code {
  color: #f5f6f8;
  background: #24272d;
}

body[data-admin-theme="dark"] .integration-secret > strong,
body[data-admin-theme="dark"] .delivery-share-panel__head h4 {
  color: #f5f6f8;
}

@media (max-width: 767px) {
  .integration-status {
    width: 100%;
  }

  .integration-copy-row,
  .delivery-courier-form {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .integration-copy-row .btn,
  .delivery-courier-form .btn,
  .delivery-whatsapp-form,
  .delivery-whatsapp-form .btn {
    width: 100%;
  }

  .integration-meta > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .delivery-share-panel {
    padding: 18px;
  }

  .order-detail-table,
  .order-detail-table tbody {
    width: 100%;
    display: block;
  }

  .order-detail-table tbody tr {
    display: grid;
    grid-template-columns: minmax(110px, .42fr) minmax(0, 1fr);
    border-bottom: 1px solid #e4e6ea;
  }

  .order-detail-table tbody td {
    min-width: 0;
    border: 0 !important;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 420px) {
  .order-detail-table tbody tr {
    grid-template-columns: 1fr;
    padding: 10px 0;
  }

  .order-detail-table tbody td {
    padding: 7px 12px;
  }
}

@media (min-width: 768px) {
    .admin-sidebar-toggle {
        display: none !important;
    }
}

/* Personalização controlada da vitrine do parceiro. */
.storefront-settings-form {
    display: grid;
    gap: 18px;
}

.storefront-public-url {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
}

.storefront-theme-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.storefront-theme-option {
    position: relative;
    display: grid;
    gap: 7px;
    margin: 0;
    border: 2px solid var(--fire-border);
    border-radius: 18px;
    padding: 15px;
    color: var(--fire-ink);
    background: #fffaf6;
    cursor: pointer;
}

.storefront-theme-option:has(input:checked) {
    border-color: var(--theme-primary);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--theme-primary) 12%, transparent);
}

.storefront-theme-option input {
    position: absolute;
    opacity: 0;
}

.storefront-theme-option__swatch {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    height: 36px;
    overflow: hidden;
    border-radius: 10px;
}

.storefront-theme-option__swatch i:nth-child(1) {
    background: var(--theme-primary);
}

.storefront-theme-option__swatch i:nth-child(2) {
    background: var(--theme-accent);
}

.storefront-theme-option__swatch i:nth-child(3) {
    background: var(--theme-surface);
}

.storefront-theme-option small,
.admin-toggle-line small {
    display: block;
    color: var(--fire-muted);
    font-weight: 500;
}

.storefront-toggle-grid {
    display: grid;
    gap: 10px;
}

.admin-toggle-line {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    margin: 0;
    border: 1px solid var(--fire-border);
    border-radius: 15px;
    padding: 13px;
    background: #fffaf6;
}

.admin-toggle-line input {
    width: 19px;
    height: 19px;
    margin-top: 2px;
}

.storefront-share-actions {
    display: grid;
    gap: 10px;
}

.storefront-share-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Resumo visual da audiência e histórico de Web Push. */
.notification-audience-counter {
    display: grid;
    min-width: 160px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .42);
    border-radius: 22px;
    padding: 20px;
    color: #fff;
    background: rgba(255, 255, 255, .13);
}

.notification-audience-counter strong {
    font-size: 2.2rem;
    line-height: 1;
}

.notification-campaign-table td:first-child {
    min-width: 270px;
}

.notification-campaign-table td:first-child small {
    display: block;
    margin-top: 4px;
    color: var(--fire-muted);
}

html[data-theme="dark"] .storefront-theme-option,
html[data-theme="dark"] .admin-toggle-line {
    border-color: #454851;
    color: #f7f1eb;
    background: #272a31;
}

@media (max-width: 767px) {
    .storefront-public-url,
    .storefront-theme-grid {
        grid-template-columns: 1fr;
    }

    .notification-audience-counter {
        width: 100%;
    }
}

/* DataTables: paginacao e leitura melhor para paineis FireBall/parceiro. */
.dataTables_wrapper {
    width: 100%;
    display: block;
    color: var(--fire-ink);
}

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
    color: var(--fire-ink) !important;
    font-weight: 700;
}

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
    margin: 0 0 14px;
}

.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
    min-height: 40px;
    border: 1px solid rgba(214, 58, 31, .24);
    border-radius: 999px;
    background: #fffef8;
    color: var(--fire-ink);
    font-weight: 700;
    padding: 8px 14px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .82);
}

.dataTables_wrapper .dataTables_filter input:focus,
.dataTables_wrapper .dataTables_length select:focus {
    outline: 3px solid rgba(255, 198, 48, .35);
    border-color: var(--fire-primary);
}

.dataTables_wrapper table.dataTable {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 8px !important;
}

.dataTables_wrapper table.dataTable thead th,
.dataTables_wrapper table.dataTable thead td {
    border-bottom: 0 !important;
    background: #fff6bf;
    color: var(--fire-charcoal);
    font-size: .78rem;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.dataTables_wrapper table.dataTable tbody tr {
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(59, 32, 26, .08);
}

.dataTables_wrapper table.dataTable tbody td {
    border-top: 0 !important;
    border-bottom: 1px solid rgba(214, 58, 31, .08);
    color: var(--fire-ink);
    vertical-align: middle;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    border: 1px solid rgba(214, 58, 31, .18) !important;
    border-radius: 999px !important;
    background: #fffef8 !important;
    color: var(--fire-ink) !important;
    font-weight: 800;
    margin-left: 6px;
    padding: 7px 12px !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    background: linear-gradient(135deg, var(--fire-primary), var(--fire-orange)) !important;
    border-color: transparent !important;
    color: #fff !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: #fff6bf !important;
    color: var(--fire-charcoal) !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.disabled,
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover {
    opacity: .55;
    color: #8b746a !important;
    background: #faf2eb !important;
}

@media (max-width: 767px) {
    .dataTables_wrapper .dataTables_length,
    .dataTables_wrapper .dataTables_filter,
    .dataTables_wrapper .dataTables_info,
    .dataTables_wrapper .dataTables_paginate {
        float: none !important;
        width: 100%;
        text-align: left !important;
    }

    .dataTables_wrapper .dataTables_filter input,
    .dataTables_wrapper .dataTables_length select {
        width: 100%;
        margin: 8px 0 0;
    }

    .dataTables_wrapper .dataTables_paginate {
        display: flex;
        gap: 6px;
        overflow-x: auto;
        padding-bottom: 4px;
    }
}

/* A fila usa linhas compactas e cabeçalho neutro para priorizar o conteúdo. */
.firedelivery-data-table {
    width: 100% !important;
    margin: 0 !important;
    border-collapse: separate !important;
    border-spacing: 0 8px !important;
    font-size: .9rem;
}

.firedelivery-data-table thead th {
    border: 0 !important;
    padding: 12px 11px !important;
    color: var(--fire-charcoal) !important;
    background: #fff5d8 !important;
    font-size: .72rem;
    letter-spacing: .04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.firedelivery-data-table tbody td {
    border-top: 1px solid rgba(214, 58, 31, .1) !important;
    border-bottom: 1px solid rgba(214, 58, 31, .1) !important;
    padding: 13px 11px !important;
    vertical-align: middle !important;
    color: var(--fire-ink);
    background: rgba(255, 255, 255, .94) !important;
}

.firedelivery-data-table tbody tr:hover td {
    background: #fffaf4 !important;
}

.marketplace-connect-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.marketplace-connect-steps > div {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 2px 10px;
    align-items: center;
    border: 1px solid rgba(214, 58, 31, .14);
    border-radius: 16px;
    padding: 14px;
    background: #fffaf4;
}

.marketplace-connect-steps span {
    grid-row: 1 / 3;
    display: inline-grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    color: #ffffff;
    background: var(--fire-primary);
    font-weight: 900;
}

.marketplace-connect-steps strong,
.marketplace-connect-steps small {
    min-width: 0;
}

.marketplace-connect-steps small {
    color: var(--fire-muted);
    line-height: 1.35;
}

html[data-theme="dark"] .firedelivery-data-table thead th {
    color: #fff4e9 !important;
    background: #3a302b !important;
}

html[data-theme="dark"] .firedelivery-data-table tbody td {
    color: #f7f1eb !important;
    background: #272a31 !important;
    border-color: #3a3d45 !important;
}

html[data-theme="dark"] .firedelivery-data-table tbody tr:hover td {
    background: #30333a !important;
}

html[data-theme="dark"] .marketplace-connect-steps > div {
    border-color: #3a3d45;
    background: #272a31;
}

html[data-theme="dark"] .marketplace-connect-steps small {
    color: #c9cbd1;
}

body[data-admin-theme="dark"] .admin-login-highlights span {
    color: #ffffff;
    background: rgba(255, 255, 255, .07);
}

@media (max-width: 991px) {
    .admin-login-highlights {
        grid-template-columns: 1fr;
    }

    .marketplace-connect-steps {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .table-responsive .firedelivery-data-table {
        min-width: 920px;
    }
}

/* Importação CSV e banco de imagens usam cartões leves e controles grandes. */
.integration-csv-callout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.integration-csv-callout > div {
    max-width: 760px;
}

.catalog-import-form,
.product-image-upload-grid {
    display: grid;
    gap: 18px;
}

.catalog-import-dropzone {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 8px 16px;
    align-items: center;
    padding: 20px;
    border: 2px dashed rgba(200, 50, 30, .28);
    border-radius: 18px;
    background: #fffaf4;
}

.catalog-import-dropzone > .fa {
    grid-row: 1 / 3;
    color: var(--fire-primary);
    font-size: 2rem;
}

.catalog-import-dropzone label,
.catalog-import-dropzone p {
    margin: 0;
}

.catalog-import-dropzone input[type="file"] {
    grid-column: 1 / -1;
    width: 100%;
    min-height: 46px;
    padding: 9px;
    border: 1px solid var(--fire-border);
    border-radius: 12px;
    background: #ffffff;
    color: var(--fire-ink);
}

.catalog-image-option {
    display: flex;
    min-height: 100%;
    padding: 16px;
    border: 1px solid var(--fire-border);
    border-radius: 16px;
    background: #fffaf4;
}

.catalog-image-option span,
.catalog-image-option small {
    display: block;
}

.catalog-image-option small {
    margin-top: 4px;
    color: var(--fire-muted);
    font-weight: 500;
}

.catalog-import-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.catalog-column-list {
    display: grid;
    gap: 10px;
}

.catalog-column-list span {
    display: grid;
    padding: 12px 14px;
    border-radius: 12px;
    background: #fff7dc;
}

.catalog-import-summary {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

.catalog-import-summary article {
    padding: 16px;
    border: 1px solid var(--fire-border);
    border-radius: 16px;
    background: #fffaf4;
}

.catalog-import-summary strong,
.catalog-import-summary span {
    display: block;
}

.catalog-import-summary strong {
    color: var(--fire-primary);
    font-size: 1.65rem;
}

.catalog-import-summary span {
    color: var(--fire-muted);
}

.catalog-import-errors {
    margin-top: 18px;
    padding: 18px;
    border: 1px solid rgba(200, 50, 30, .22);
    border-radius: 16px;
    background: #fff1ed;
}

.catalog-import-errors p:last-child {
    margin-bottom: 0;
}

.product-image-bank-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}

.product-image-bank-card {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 14px;
    border: 1px solid var(--fire-border);
    border-radius: 18px;
    background: #fffaf4;
}

.product-image-bank-card img {
    width: 88px;
    height: 88px;
    border-radius: 14px;
    object-fit: contain;
    background: #ffffff;
}

.product-image-bank-card strong,
.product-image-bank-card span,
.product-image-bank-card small {
    display: block;
    overflow-wrap: anywhere;
}

.product-image-bank-card span,
.product-image-bank-card small {
    color: var(--fire-muted);
}

html[data-theme="dark"] .catalog-import-dropzone,
html[data-theme="dark"] .catalog-image-option,
html[data-theme="dark"] .catalog-import-summary article,
html[data-theme="dark"] .product-image-bank-card {
    border-color: #454851;
    background: #272a31;
}

html[data-theme="dark"] .catalog-import-dropzone input[type="file"] {
    border-color: #454851;
    background: #30333a;
    color: #f7f1eb;
}

html[data-theme="dark"] .catalog-column-list span {
    background: #333138;
}

html[data-theme="dark"] .catalog-import-errors {
    border-color: #67433b;
    background: #382b2a;
}

html[data-theme="dark"] .product-image-bank-card img {
    background: #ffffff;
}

@media (max-width: 991px) {
    .catalog-import-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .integration-csv-callout {
        align-items: stretch;
        flex-direction: column;
    }

    .integration-csv-callout .btn,
    .catalog-import-actions .btn {
        width: 100%;
    }

    .catalog-import-summary {
        grid-template-columns: 1fr;
    }

    .catalog-import-dropzone {
        grid-template-columns: 1fr;
    }

    .catalog-import-dropzone > .fa,
    .catalog-import-dropzone input[type="file"] {
        grid-column: 1;
        grid-row: auto;
    }
}

/* Estúdio de campanhas: composição, segmentação, modelos e métricas. */
.notification-studio {
    display: grid;
    gap: 24px;
    padding-bottom: 42px;
}

.notification-studio-hero {
    align-items: center;
    min-height: 250px;
}

.notification-studio-hero h1 {
    max-width: 820px;
}

.notification-metric-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}

.notification-metric-grid article {
    position: relative;
    min-height: 138px;
    overflow: hidden;
    padding: 20px;
    border: 1px solid var(--fire-border);
    border-radius: 20px;
    background: rgba(255, 255, 255, .88);
    box-shadow: 0 14px 35px rgba(72, 34, 18, .08);
}

.notification-metric-grid i {
    position: absolute;
    top: 16px;
    right: 16px;
    color: rgba(200, 50, 30, .18);
    font-size: 2rem;
}

.notification-metric-grid span,
.notification-metric-grid strong {
    display: block;
}

.notification-metric-grid span {
    max-width: 130px;
    color: var(--fire-muted);
    font-size: .86rem;
    font-weight: 800;
}

.notification-metric-grid strong {
    margin-top: 14px;
    color: var(--fire-charcoal);
    font-size: 2rem;
    line-height: 1;
}

.notification-editor-card,
.notification-history-card,
.notification-preview-panel {
    border: 1px solid var(--fire-border);
    border-radius: 24px;
    background: rgba(255, 255, 255, .92);
    box-shadow: var(--fire-shadow);
}

.notification-editor-card {
    overflow: hidden;
}

.notification-editor-card .card-header,
.notification-history-card .card-header {
    padding: 20px 24px;
    border: 0;
    background: linear-gradient(120deg, #a52b1d, var(--fire-primary), var(--fire-orange));
}

.notification-editor-card .card-body {
    padding: 26px;
}

.notification-form-grid {
    display: grid;
    gap: 16px;
}

.notification-form-grid--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.notification-studio .form-group label {
    color: var(--fire-charcoal);
    font-weight: 900;
}

.notification-studio .form-control {
    min-height: 48px;
    border: 1px solid rgba(185, 75, 38, .22);
    border-radius: 14px;
    background: #fffdf9;
    color: var(--fire-ink);
    font-weight: 650;
}

.notification-studio textarea.form-control {
    min-height: 118px;
    resize: vertical;
}

.notification-studio .form-control:focus {
    border-color: var(--fire-primary);
    box-shadow: 0 0 0 4px rgba(200, 50, 30, .12);
}

.notification-studio [hidden] {
    display: none !important;
}

.notification-audience-estimate {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    margin: 8px 0 22px;
    padding: 14px;
    border: 1px solid rgba(255, 181, 27, .46);
    border-radius: 16px;
    background: #fff8dc;
}

.notification-audience-estimate > i {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 13px;
    color: #fff;
    background: var(--fire-primary);
}

.notification-audience-estimate strong,
.notification-audience-estimate small {
    display: block;
}

.notification-audience-estimate small {
    color: var(--fire-muted);
}

.notification-editor-actions,
.notification-row-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    align-items: center;
}

.notification-editor-actions .btn,
.notification-row-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

.notification-preview-panel {
    position: sticky;
    top: 96px;
    padding: 24px;
}

.notification-device-preview {
    overflow: hidden;
    margin: 16px 0;
    border: 1px solid rgba(37, 39, 45, .12);
    border-radius: 22px;
    padding: 12px;
    background: linear-gradient(145deg, #f4f5f7, #ffffff);
    box-shadow: 0 18px 42px rgba(37, 39, 45, .13);
}

.notification-device-preview > img {
    width: 100%;
    max-height: 190px;
    margin-bottom: 12px;
    border-radius: 15px;
    object-fit: cover;
}

.notification-device-preview__content {
    display: grid;
    grid-template-columns: 50px minmax(0, 1fr);
    gap: 12px;
}

.notification-device-preview__content > img {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    object-fit: contain;
    background: #fff;
}

.notification-device-preview__content strong,
.notification-device-preview__content p,
.notification-device-preview__content small {
    display: block;
    overflow-wrap: anywhere;
}

.notification-device-preview__content strong {
    color: #17181c;
    font-size: 1rem;
}

.notification-device-preview__content p {
    margin: 3px 0;
    color: #3d4149;
    line-height: 1.35;
}

.notification-device-preview__content small {
    color: #747983;
}

.notification-device-preview > span {
    display: inline-flex;
    margin: 13px 0 2px 62px;
    border-radius: 999px;
    padding: 7px 13px;
    color: #fff;
    background: var(--fire-primary);
    font-size: .82rem;
    font-weight: 900;
}

.notification-library-section {
    padding: 26px;
    border: 1px solid var(--fire-border);
    border-radius: 24px;
    background: rgba(255, 249, 240, .84);
}

.notification-section-head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: end;
    margin-bottom: 18px;
}

.notification-section-head h2 {
    margin: 4px 0 0;
}

.notification-template-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.notification-template-card {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 13px;
    align-content: start;
    border: 1px solid var(--fire-border);
    border-radius: 20px;
    padding: 18px;
    background: #fff;
}

.notification-template-card > i {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 15px;
    color: #fff;
    background: linear-gradient(135deg, var(--fire-primary), var(--fire-orange));
}

.notification-template-card h3 {
    margin: 3px 0 8px;
    color: var(--fire-charcoal);
    font-size: 1.05rem;
}

.notification-template-card p,
.notification-template-card small,
.notification-template-card span {
    color: var(--fire-muted);
}

.notification-template-card .notification-row-actions {
    grid-column: 1 / -1;
    margin-top: 8px;
}

.notification-history-card {
    overflow: hidden;
}

.notification-history-card .table-responsive {
    padding: 8px 16px 18px;
}

.notification-campaign-table td {
    vertical-align: middle;
}

.notification-campaign-table td > strong,
.notification-campaign-table td > small {
    display: block;
}

.notification-type-badge {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    margin-bottom: 7px;
    border-radius: 999px;
    padding: 5px 9px;
    color: #8f291a;
    background: #ffe9dd;
    font-size: .73rem;
    font-weight: 900;
}

.notification-error-detail {
    max-width: 260px;
    margin-top: 8px;
    color: #8a261b;
    font-size: .78rem;
}

.notification-error-detail summary {
    cursor: pointer;
    font-weight: 900;
}

.notification-error-detail p {
    max-height: 100px;
    overflow: auto;
    margin: 6px 0 0;
    overflow-wrap: anywhere;
}

.admin-status--draft,
.admin-status--template {
    color: #4d5159;
    background: #eceef2;
}

.admin-status--sending {
    color: #6d4400;
    background: #fff0bd;
}

.admin-status--sent {
    color: #7b281c;
    background: #ffe6d8;
}

.admin-status--failed {
    color: #81131b;
    background: #ffe0e0;
}

html[data-theme="dark"] .notification-metric-grid article,
html[data-theme="dark"] .notification-editor-card,
html[data-theme="dark"] .notification-history-card,
html[data-theme="dark"] .notification-preview-panel,
html[data-theme="dark"] .notification-template-card,
html[data-theme="dark"] .notification-library-section {
    border-color: #454851;
    background: #25282f;
}

html[data-theme="dark"] .notification-metric-grid strong,
html[data-theme="dark"] .notification-studio .form-group label,
html[data-theme="dark"] .notification-template-card h3 {
    color: #fff8f1;
}

html[data-theme="dark"] .notification-studio .form-control {
    border-color: #4b4f58;
    color: #fff8f1;
    background: #30333a;
}

html[data-theme="dark"] .notification-audience-estimate {
    border-color: #70502b;
    background: #382f26;
}

@media (max-width: 1199px) {
    .notification-metric-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

    .notification-preview-panel {
        position: static;
        margin-top: 20px;
    }
}

@media (max-width: 767px) {
    .notification-metric-grid,
    .notification-template-grid,
    .notification-form-grid--two {
        grid-template-columns: 1fr;
    }

    .notification-studio-hero,
    .notification-editor-card .card-body,
    .notification-library-section,
    .notification-preview-panel {
        padding: 18px;
    }

    .notification-editor-actions .btn,
    .notification-row-actions .btn,
    .notification-row-actions form {
        width: 100%;
    }

    .notification-section-head {
        align-items: start;
        flex-direction: column;
    }
}
