:root{
  --ath-primary: #0A3D62;
  --ath-primary-light: #1E90FF;
  --ath-primary-dark: #082C46;
  --ath-accent: #2fc3ff;
  --ath-bg: #F4F6F9;
  --ath-bg-soft: #EEF2F7;
  --ath-surface: #FFFFFF;
  --ath-surface-2: #F8FAFC;
  --ath-text: #1F2937;
  --ath-text-soft: #6B7280;
  --ath-border: #E5E7EB;
  --ath-success: #22C55E;
  --ath-warning: #F59E0B;
  --ath-danger: #EF4444;
  --ath-info: #3B82F6;
  --ath-shadow-sm: 0 4px 12px rgba(2,6,23,.05);
  --ath-shadow-md: 0 10px 30px rgba(2,6,23,.08);
  --ath-shadow-lg: 0 18px 45px rgba(2,6,23,.12);
  --ath-radius-sm: 10px;
  --ath-radius-md: 16px;
  --ath-radius-lg: 22px;
}

body.theme-dark{
  --ath-bg: #0B1220;
  --ath-bg-soft: #111827;
  --ath-surface: #111827;
  --ath-surface-2: #1F2937;
  --ath-text: #F3F4F6;
  --ath-text-soft: #9CA3AF;
  --ath-border: rgba(255,255,255,.08);
  --ath-shadow-sm: 0 4px 12px rgba(0,0,0,.25);
  --ath-shadow-md: 0 12px 30px rgba(0,0,0,.35);
  --ath-shadow-lg: 0 20px 50px rgba(0,0,0,.45);
}

html,
body{
  background: radial-gradient(circle at top, rgba(47,195,255,.12), transparent 28%), var(--ath-bg) !important;
  color: var(--ath-text);
}

body{
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.page,
.main-content,
.main-container,
.main-body,
.content-page,
.app-content{
  background: transparent !important;
}

.app-content,
.main-content-body,
.main-content-left,
.main-content-right{
  border-radius: var(--ath-radius-lg);
}

.main-header{
  background: linear-gradient(135deg, var(--ath-primary-dark), var(--ath-primary)) !important;
  border-bottom: 1px solid rgba(255,255,255,.08);
  box-shadow: var(--ath-shadow-md);
  backdrop-filter: blur(16px);
}

.main-header .main-container,
.main-header .container-fluid{
  padding-top: 10px;
  padding-bottom: 10px;
}

.main-header .nav-link,
.main-header .header-icon-svgs,
.main-header .header-icon,
.main-header .header-greeting{
  color: #fff !important;
  fill: #fff !important;
}

.header-company-pill{
  background: linear-gradient(135deg, rgba(30,144,255,.9), rgba(10,61,98,.9)) !important;
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 8px 20px rgba(30,144,255,.24);
}

.app-sidebar{
  background: linear-gradient(180deg, #0b1e31 0%, #0e2941 46%, #123754 100%) !important;
  border-right: 1px solid rgba(255,255,255,.06);
  box-shadow: 14px 0 34px rgba(2,6,23,.12);
}

.main-sidebar-header{
  background: transparent !important;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.main-sidemenu{
  background: transparent !important;
  padding: 12px 10px 24px;
}

.side-menu__item{
  border-radius: 14px !important;
  margin: 4px 10px !important;
  transition: all .22s ease;
  border: 1px solid transparent;
}

.side-menu__item:hover{
  background: linear-gradient(90deg, rgba(47,195,255,.18), rgba(255,255,255,.04)) !important;
  transform: translateX(3px);
  border-color: rgba(47,195,255,.16);
}

.slide.active > .side-menu__item,
.slide.is-expanded > .side-menu__item,
.side-menu__item.active{
  background: linear-gradient(90deg, rgba(30,144,255,.32), rgba(10,61,98,.16)) !important;
  border-color: rgba(47,195,255,.24);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.04);
}

.side-menu__label,
.side-menu__item i,
.side-menu__item .angle{
  color: rgba(255,255,255,.92) !important;
}

.slide-menu{
  background: rgba(255,255,255,.03) !important;
  border-left: 2px solid rgba(47,195,255,.5) !important;
  border-radius: 0 0 14px 14px;
  margin: 0 12px 10px 22px;
  padding: 8px 6px;
}

.slide-item{
  color: rgba(255,255,255,.76) !important;
  border-radius: 10px;
}

.slide-item:hover,
.slide-item.active{
  background: rgba(255,255,255,.08) !important;
  color: #fff !important;
}

.main-content.app-content{
  padding-top: 28px;
}

.card,
.custom-card,
.main-content-left-components,
.main-content-left-chat,
.main-content-body-invoice,
.main-content-left-profile,
.main-content-body-mail,
.component-section{
  background: var(--ath-surface) !important;
  border: 1px solid var(--ath-border) !important;
  border-radius: var(--ath-radius-md) !important;
  box-shadow: var(--ath-shadow-sm) !important;
  overflow: hidden;
}

.card-header,
.custom-card .card-header,
.main-content-label,
.main-content-title,
.page-header{
  border-color: var(--ath-border) !important;
}

.card-header,
.modal-header,
.page-header{
  background: linear-gradient(180deg, rgba(10,61,98,.04), rgba(255,255,255,0)) !important;
}

.card-title,
.main-content-title,
.main-content-label,
h1, h2, h3, h4, h5, h6{
  color: var(--ath-text);
  letter-spacing: -.02em;
}

.btn{
  border-radius: 12px !important;
  font-weight: 600;
  box-shadow: none;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.btn:hover{
  transform: translateY(-1px);
  box-shadow: var(--ath-shadow-sm);
}

.btn-primary,
.bg-primary,
.btn-info{
  background: linear-gradient(135deg, var(--ath-primary), var(--ath-primary-light)) !important;
  border-color: transparent !important;
}

.btn-success{
  background: linear-gradient(135deg, #16a34a, #22c55e) !important;
  border-color: transparent !important;
}

.btn-danger{
  background: linear-gradient(135deg, #dc2626, #ef4444) !important;
  border-color: transparent !important;
}

.btn-warning{
  background: linear-gradient(135deg, #d97706, #f59e0b) !important;
  border-color: transparent !important;
  color: #fff !important;
}

.btn-secondary,
.btn-dark{
  background: linear-gradient(135deg, #4b5563, #6b7280) !important;
  border-color: transparent !important;
}

.btn-light{
  background: var(--ath-surface-2) !important;
  border-color: var(--ath-border) !important;
  color: var(--ath-text) !important;
}

.form-control,
.form-select,
select,
textarea,
.input-group-text,
.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple{
  background: var(--ath-surface) !important;
  border: 1px solid var(--ath-border) !important;
  color: var(--ath-text) !important;
  border-radius: 12px !important;
  min-height: 42px;
  box-shadow: none !important;
}

.form-control:focus,
.form-select:focus,
textarea:focus,
select:focus,
.select2-container--default.select2-container--focus .select2-selection--multiple,
.select2-container--default.select2-container--open .select2-selection--single{
  border-color: rgba(30,144,255,.55) !important;
  box-shadow: 0 0 0 4px rgba(30,144,255,.12) !important;
}

label,
.form-label{
  color: var(--ath-text);
  font-weight: 600;
}

.table{
  --bs-table-bg: transparent;
  color: var(--ath-text);
  margin-bottom: 0 !important;
}

.table thead th,
table.dataTable thead th,
table.dataTable thead td,
.dataTables_wrapper table thead th,
.dataTables_wrapper table thead td{
  background: linear-gradient(180deg, rgba(8,44,70,.96), rgba(10,61,98,.92)) !important;
  color: #f8fbff !important;
  border-bottom: 1px solid var(--ath-border) !important;
  border-top: 0 !important;
  border-left-color: rgba(255,255,255,.08) !important;
  border-right-color: rgba(255,255,255,.08) !important;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: .04em;
  padding-top: 14px !important;
  padding-bottom: 14px !important;
  white-space: nowrap;
}

body.theme-dark .table thead th,
body.theme-dark table.dataTable thead th,
body.theme-dark table.dataTable thead td{
  color: #dbeafe;
}

.table thead,
table.dataTable thead,
.dataTables_wrapper table thead{
  background: linear-gradient(180deg, rgba(8,44,70,.96), rgba(10,61,98,.92)) !important;
}

.table thead th * ,
table.dataTable thead th *,
.dataTables_wrapper table thead th *{
  color: #f8fbff !important;
}

.table tbody tr:nth-child(even){
  background: rgba(10,61,98,.018);
}

.table tbody tr{
  transition: background-color .18s ease, transform .18s ease;
}

.table tbody tr:hover{
  background: rgba(30,144,255,.07) !important;
}

.table td,
.table th{
  border-color: var(--ath-border) !important;
  vertical-align: middle;
  padding: 12px 14px !important;
}

.table-bordered{
  border-color: var(--ath-border) !important;
}

.table-responsive{
  border-radius: 18px;
}

#listar .table,
.card-body .table,
.custom-card .table,
table.dataTable{
  border-radius: 18px;
  overflow: hidden;
}

#listar .table td,
#listar .table th{
  font-size: 13px;
}

#listar .table td strong,
#listar .table td b,
#listar .table td .fw-bold{
  color: var(--ath-text);
}

#listar .table img,
.table img.hovv{
  border-radius: 8px;
  border: 1px solid rgba(10,61,98,.10);
  background: #fff;
  padding: 2px;
}

#listar .btn.btn-sm,
.table .btn.btn-sm,
.dataTables_wrapper .btn.btn-sm{
  min-width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px !important;
  margin: 2px;
  box-shadow: none !important;
}

#listar .btn.btn-sm i,
.table .btn.btn-sm i{
  line-height: 1;
}

.dataTables_wrapper{
  padding: 14px 16px 16px;
}

.dataTables_wrapper .row:first-child,
.dataTables_wrapper .row:last-child{
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate{
  margin-top: 8px;
  margin-bottom: 8px;
}

.dataTables_wrapper .dataTables_filter input{
  min-width: 220px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button{
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover{
  border: 0 !important;
  background: transparent !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button .page-link,
.dataTables_wrapper .paginate_button .page-link{
  border-radius: 10px !important;
}

.dataTables_wrapper .dataTables_empty{
  color: var(--ath-text-soft);
  padding: 24px 12px !important;
}

.custom-checkbox .custom-control-label::before,
.custom-checkbox .custom-control-label::after{
  top: .18rem;
}

.table-success,
.table-success > th,
.table-success > td{
  background: rgba(34,197,94,.06) !important;
}

.table-warning,
.table-warning > th,
.table-warning > td{
  background: rgba(245,158,11,.08) !important;
}

.table-danger,
.table-danger > th,
.table-danger > td{
  background: rgba(239,68,68,.08) !important;
}

.table-info,
.table-info > th,
.table-info > td{
  background: rgba(59,130,246,.08) !important;
}

.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select{
  border-radius: 12px !important;
  border: 1px solid var(--ath-border) !important;
  background: var(--ath-surface) !important;
  color: var(--ath-text) !important;
}

.pagination .page-link{
  border-radius: 10px !important;
  margin: 0 3px;
  border-color: var(--ath-border) !important;
  color: var(--ath-text) !important;
  background: var(--ath-surface) !important;
}

.pagination .active .page-link{
  background: linear-gradient(135deg, var(--ath-primary), var(--ath-primary-light)) !important;
  border-color: transparent !important;
  color: #fff !important;
}

.modal-content{
  background: var(--ath-surface) !important;
  border: 1px solid var(--ath-border) !important;
  border-radius: 20px !important;
  box-shadow: var(--ath-shadow-lg) !important;
}

.modal-header,
.modal-footer{
  border-color: var(--ath-border) !important;
}

.modal-header{
  padding: 18px 22px !important;
  border-radius: 20px 20px 0 0 !important;
}

.modal-body{
  padding: 22px !important;
}

.modal-footer{
  padding: 16px 22px !important;
}

.modal-header.bg-primary,
.modal-header[class*="bg-"]{
  background: linear-gradient(135deg, var(--ath-primary-dark) 0%, var(--ath-primary) 45%, #f59e0b 100%) !important;
  color: #fff !important;
  border-bottom: 1px solid rgba(255,255,255,.10) !important;
}

.modal-header.bg-primary .modal-title,
.modal-header[class*="bg-"] .modal-title,
.modal-header.bg-primary h1,
.modal-header.bg-primary h2,
.modal-header.bg-primary h3,
.modal-header.bg-primary h4,
.modal-header.bg-primary h5,
.modal-header.bg-primary h6,
.modal-header[class*="bg-"] h1,
.modal-header[class*="bg-"] h2,
.modal-header[class*="bg-"] h3,
.modal-header[class*="bg-"] h4,
.modal-header[class*="bg-"] h5,
.modal-header[class*="bg-"] h6{
  color: #fff !important;
}

.modal-header .btn-close{
  filter: brightness(0) invert(1);
  opacity: .92;
  box-shadow: none !important;
}

.modal-header .btn-close:hover{
  opacity: 1;
  transform: scale(1.04);
}

.dropdown-menu{
  border-radius: 16px !important;
  border: 1px solid var(--ath-border) !important;
  background: var(--ath-surface) !important;
  box-shadow: var(--ath-shadow-md) !important;
}

.dropdown-item{
  color: var(--ath-text) !important;
  border-radius: 10px;
}

.dropdown-item:hover{
  background: rgba(30,144,255,.08) !important;
}

.nav-tabs{
  border-bottom-color: var(--ath-border) !important;
}

.nav-tabs .nav-link{
  border-radius: 12px 12px 0 0;
  color: var(--ath-text-soft);
}

.nav-tabs .nav-link.active{
  color: var(--ath-primary);
  background: var(--ath-surface);
  border-color: var(--ath-border) var(--ath-border) transparent !important;
}

.alert{
  border: 1px solid transparent !important;
  border-radius: 14px !important;
}

.alert-success{ background: rgba(34,197,94,.10) !important; border-color: rgba(34,197,94,.18) !important; color: #15803d !important; }
.alert-danger{ background: rgba(239,68,68,.10) !important; border-color: rgba(239,68,68,.18) !important; color: #b91c1c !important; }
.alert-warning{ background: rgba(245,158,11,.12) !important; border-color: rgba(245,158,11,.24) !important; color: #b45309 !important; }
.alert-info{ background: rgba(59,130,246,.10) !important; border-color: rgba(59,130,246,.20) !important; color: #1d4ed8 !important; }

.badge{
  border-radius: 999px !important;
  padding: .45em .72em !important;
  font-weight: 700 !important;
}

.main-footer,
footer{
  background: transparent !important;
  color: var(--ath-text-soft);
}

.ath-login-page{
  position: relative;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(47,195,255,.18), transparent 30%),
    linear-gradient(135deg, rgba(8,44,70,.94), rgba(10,61,98,.92));
}

.ath-login-page::before{
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.03), transparent 60%);
  pointer-events: none;
}

.ath-login-page .card-sigin{
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 28px;
  box-shadow: 0 30px 60px rgba(0,0,0,.22);
  backdrop-filter: blur(18px);
}

.ath-login-page .main-card-signin,
.ath-login-page .panel{
  background: transparent !important;
}

.ath-login-page .main-signup-header,
.ath-login-page label,
.ath-login-page .main-signin-footer,
.ath-login-page .main-signin-footer a{
  color: #fff !important;
}

.ath-login-page .form-control,
.ath-login-page .input-group-text{
  background: rgba(255,255,255,.92) !important;
}

.ath-login-page .btn-primary{
  min-height: 48px;
  font-size: 15px;
}

.ath-public-topbar{
  background: linear-gradient(135deg, var(--ath-primary-dark), #111827) !important;
  border-bottom: 1px solid rgba(255,255,255,.06) !important;
}

.ath-public-header{
  background: rgba(255,255,255,.90) !important;
  border-bottom: 1px solid rgba(15,23,42,.06);
  backdrop-filter: blur(14px);
}

.ath-public-header nav a,
.ath-public-header #cart-btn,
.ath-public-header .hover\:text-blue-600:hover{
  transition: color .18s ease, transform .18s ease;
}

.ath-public-header nav a:hover{
  transform: translateY(-1px);
}

body:not(.main-body){
  background: linear-gradient(180deg, #f6f9fc 0%, #eef4fb 100%) !important;
  color: var(--ath-text);
}

body:not(.main-body) main .bg-white,
body:not(.main-body) article.bg-white,
body:not(.main-body) aside.bg-white,
body:not(.main-body) .bg-white.border{
  border-radius: 24px !important;
  box-shadow: var(--ath-shadow-sm);
  border-color: rgba(10,61,98,.08) !important;
}

body.theme-dark .main-header,
body.theme-dark .ath-public-header{
  background: rgba(17,24,39,.92) !important;
}

body.theme-dark .card,
body.theme-dark .custom-card,
body.theme-dark .modal-content,
body.theme-dark .dropdown-menu,
body.theme-dark .form-control,
body.theme-dark .form-select,
body.theme-dark select,
body.theme-dark textarea,
body.theme-dark .input-group-text,
body.theme-dark .table thead th,
body.theme-dark body:not(.main-body) main .bg-white{
  color: var(--ath-text) !important;
}

body.theme-dark .table tbody tr:hover{
  background: rgba(147,197,253,.08) !important;
}

body.theme-dark .alert-success{ color: #86efac !important; }
body.theme-dark .alert-danger{ color: #fca5a5 !important; }
body.theme-dark .alert-warning{ color: #fcd34d !important; }
body.theme-dark .alert-info{ color: #93c5fd !important; }

@media (max-width: 991.98px){
  .main-content.app-content{
    padding-top: 18px;
  }

  .app-sidebar{
    box-shadow: 20px 0 50px rgba(2,6,23,.25);
  }

  .header-greeting{
    display: none !important;
  }

  body:not(.main-body) main .grid{
    gap: 1rem !important;
  }
}

@media (max-width: 575.98px){
  .card,
  .custom-card,
  .modal-content{
    border-radius: 16px !important;
  }

  .btn{
    width: auto;
  }
}

.ath-dashboard-page{
  position: relative;
}

.ath-dashboard-hero{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 28px 30px;
  border-radius: 26px;
  background:
    radial-gradient(circle at top right, rgba(47,195,255,.22), transparent 28%),
    linear-gradient(135deg, rgba(8,44,70,.98), rgba(10,61,98,.94));
  box-shadow: var(--ath-shadow-lg);
  color: #fff;
  overflow: hidden;
}

.ath-dashboard-hero__eyebrow{
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.12);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 10px;
}

.ath-dashboard-hero__title{
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 800;
  margin: 0 0 8px;
  color: #fff;
}

.ath-dashboard-hero__text{
  margin: 0;
  max-width: 760px;
  color: rgba(255,255,255,.76);
  font-size: 15px;
}

.ath-dashboard-hero__meta{
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.ath-dashboard-hero__side{
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
  min-width: min(100%, 620px);
}

.ath-dashboard-hero__chip{
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  border-radius: 14px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.14);
  white-space: nowrap;
  font-weight: 600;
}

.ath-top-metrics{
  display: grid;
  grid-template-columns: repeat(3, minmax(170px, 1fr));
  gap: 12px;
  width: 100%;
}

.ath-top-metric-card{
  position: relative;
  padding: 18px 20px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255,255,255,.12), rgba(245,158,11,.18));
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18);
  overflow: hidden;
}

.ath-top-metric-card::before{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255,255,255,.04), transparent 45%, rgba(255,255,255,.05));
  pointer-events: none;
}

.ath-top-metric-card__label{
  color: rgba(255,255,255,.84);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 14px;
}

.ath-top-metric-card__value{
  color: #fff;
  font-size: clamp(24px, 1.8vw, 34px);
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -.03em;
}

.ath-top-metric-card__icon{
  position: absolute;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.16);
  color: #fff;
  font-size: 16px;
}

.ath-top-metric-card.is-positive{
  background: linear-gradient(135deg, rgba(34,197,94,.18), rgba(47,195,255,.18));
}

.ath-top-metric-card.is-negative{
  background: linear-gradient(135deg, rgba(239,68,68,.18), rgba(245,158,11,.18));
}

.dashboard-card,
.chart-container,
.kanban-card,
.alert-custom{
  position: relative;
  border-radius: 22px !important;
  border: 1px solid var(--ath-border) !important;
  box-shadow: var(--ath-shadow-sm) !important;
  overflow: hidden;
}

.dashboard-card{
  background:
    radial-gradient(circle at top right, rgba(47,195,255,.12), transparent 24%),
    var(--ath-surface) !important;
  min-height: 100%;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.dashboard-card:hover{
  transform: translateY(-4px);
  box-shadow: var(--ath-shadow-md) !important;
  border-color: rgba(30,144,255,.18) !important;
}

.dashboard-card .card-body{
  padding: 24px;
}

.dashboard-card .card-title{
  color: var(--ath-text-soft) !important;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.dashboard-card .card-value{
  margin: 10px 0 10px;
  font-size: clamp(28px, 2.3vw, 36px);
  font-weight: 800;
  letter-spacing: -.04em;
}

.dashboard-card .card-subtitle{
  color: var(--ath-text-soft) !important;
  margin-bottom: 0;
}

.dashboard-card .card-icon{
  position: absolute;
  top: 20px;
  right: 20px;
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(10,61,98,.12), rgba(30,144,255,.18));
  color: var(--ath-primary);
  font-size: 22px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.4);
}

.dashboard-card .card-icon.success{ color: #16a34a; background: linear-gradient(135deg, rgba(34,197,94,.14), rgba(34,197,94,.24)); }
.dashboard-card .card-icon.danger{ color: #dc2626; background: linear-gradient(135deg, rgba(239,68,68,.14), rgba(239,68,68,.24)); }
.dashboard-card .card-icon.warning{ color: #d97706; background: linear-gradient(135deg, rgba(245,158,11,.14), rgba(245,158,11,.24)); }
.dashboard-card .card-icon.info{ color: #0284c7; background: linear-gradient(135deg, rgba(59,130,246,.14), rgba(34,211,238,.22)); }
.dashboard-card .card-icon.purple{ color: #7c3aed; background: linear-gradient(135deg, rgba(139,92,246,.14), rgba(167,139,250,.24)); }

.badge-sm{
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.badge-sm.badge-success{ background: rgba(34,197,94,.12); color: #15803d; }
.badge-sm.badge-danger{ background: rgba(239,68,68,.12); color: #b91c1c; }
.badge-sm.badge-warning{ background: rgba(245,158,11,.12); color: #b45309; }
.badge-sm.badge-info{ background: rgba(59,130,246,.12); color: #1d4ed8; }

.chart-container{
  padding: 26px;
  background:
    linear-gradient(180deg, rgba(10,61,98,.03), rgba(255,255,255,0)),
    var(--ath-surface) !important;
}

.chart-title{
  font-size: 18px;
  font-weight: 800;
  color: var(--ath-text) !important;
  margin-bottom: 18px;
}

.kanban-card{
  background: var(--ath-surface) !important;
}

.kanban-card-header{
  padding: 16px 18px;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.kanban-card-title{
  font-size: 15px;
  font-weight: 800;
}

.kanban-card-date{
  opacity: .85;
  font-size: 12px;
  font-weight: 700;
}

.kanban-card-body,
.kanban-card-footer{
  background: var(--ath-surface) !important;
}

.kanban-card-body{
  padding: 18px;
}

.kanban-card-text{
  color: var(--ath-text) !important;
  line-height: 1.65;
  margin: 0;
}

.kanban-card-footer{
  padding: 14px 18px 18px;
  border-top: 1px solid var(--ath-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.kanban-card-user,
.kanban-card-id{
  color: var(--ath-text-soft) !important;
  font-weight: 600;
}

.scroll-indicator{
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(59,130,246,.10);
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 12px;
}

.alert-custom{
  display: flex;
  gap: 14px;
  padding: 18px 20px;
  margin-bottom: 22px;
}

.alert-custom .alert-icon{
  font-size: 20px;
  margin-top: 2px;
}

.left-content{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 18px;
  background: var(--ath-surface);
  border: 1px solid var(--ath-border);
  box-shadow: var(--ath-shadow-sm);
}

.left-content .form-select,
.left-content .form-control{
  min-width: 180px;
}

.margem_mobile{
  margin-bottom: 18px;
}

#listar{
  min-height: 180px;
}

.ath-page-heading{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-top: 20px; /* Espaço do topo solicitado */
  margin-bottom: 22px;
  padding: 24px 26px;
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(47,195,255,.18), transparent 22%),
    linear-gradient(135deg, rgba(8,44,70,.96), rgba(10,61,98,.92));
  color: #fff !important;
  box-shadow: var(--ath-shadow-md);
}

.ath-page-heading--inline{
  margin-left: 0;
  margin-right: 0;
}

.ath-page-kicker{
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.12);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 10px;
}

.ath-page-title{
  margin: 0;
  color: #fff !important;
  font-size: clamp(28px, 2.5vw, 38px);
  font-weight: 800;
}

.ath-page-subtitle{
  margin: 10px 0 0;
  color: rgba(255,255,255,.78) !important;
  max-width: 720px;
}

.ath-page-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  align-items: center;
}

.ath-toolbar-card{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 18px 20px;
  border-radius: 20px;
  background: var(--ath-surface);
  border: 1px solid var(--ath-border);
  box-shadow: var(--ath-shadow-sm);
}

.ath-toolbar-card--dense{
  padding: 14px 16px;
}

.ath-toolbar-search{
  width: min(100%, 420px);
  margin-left: auto;
}

.ath-list-card{
  border-radius: 22px !important;
}

.ath-summary-card-group{
  gap: 12px;
}

.ath-summary-card-group > .card{
  border-radius: 18px !important;
  overflow: hidden;
  border: 1px solid var(--ath-border) !important;
  box-shadow: var(--ath-shadow-sm) !important;
}

.ath-summary-card-group > .card .card-header{
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.ath-summary-card-group > .card .card-corpo{
  background: var(--ath-surface);
  padding: 14px 16px;
}

.ath-pdv-shell{
  border-radius: 24px;
  border: 1px solid var(--ath-border);
  box-shadow: var(--ath-shadow-md);
  padding: 22px;
  background:
    radial-gradient(circle at top left, rgba(47,195,255,.10), transparent 18%),
    var(--ath-surface) !important;
}

.ath-pdv-cart-card{
  border-radius: 22px !important;
  box-shadow: var(--ath-shadow-md) !important;
}

.ath-data-table{
  border-collapse: separate !important;
  border-spacing: 0;
}

.ath-data-table thead th,
.ath-data-table__head th{
  background: linear-gradient(180deg, rgba(10,61,98,.12), rgba(10,61,98,.04)) !important;
  color: var(--ath-primary-dark) !important;
  font-weight: 800 !important;
  border-top: 0 !important;
}

.ath-data-table tbody tr.table-warning{
  background: rgba(245,158,11,.08) !important;
}

.ath-data-table tbody tr.table-danger{
  background: rgba(239,68,68,.08) !important;
}

.ath-data-table tbody tr.table-warning:hover,
.ath-data-table tbody tr.table-danger:hover{
  background: rgba(30,144,255,.08) !important;
}

.ath-actions-cell{
  white-space: nowrap;
}

.ath-actions-cell .btn{
  margin: 2px 3px 2px 0;
  min-width: 34px;
  padding-left: 10px;
  padding-right: 10px;
}

.ath-delivery-empty{
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px;
  border: 1px dashed rgba(10,61,98,.18);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(10,61,98,.03), rgba(47,195,255,.04));
}

.ath-delivery-empty__icon{
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--ath-primary), var(--ath-primary-light));
  color: #fff;
  font-size: 22px;
  box-shadow: var(--ath-shadow-sm);
}

.ath-delivery-check{
  display: grid;
  gap: 12px;
}

.ath-delivery-check__item{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--ath-border);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(10,61,98,.03), rgba(47,195,255,.03));
}

.ath-delivery-check__label{
  color: var(--ath-text);
  font-weight: 700;
}

.ath-delivery-check__value{
  min-width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--ath-primary-dark), var(--ath-primary));
  color: #fff;
  font-weight: 800;
  box-shadow: var(--ath-shadow-sm);
}

.ath-delivery-link{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 14px;
  border-radius: 14px;
  background: var(--ath-surface-2);
  border: 1px solid var(--ath-border);
  color: var(--ath-text);
  font-weight: 600;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.ath-delivery-link:hover{
  transform: translateY(-1px);
  box-shadow: var(--ath-shadow-sm);
  border-color: rgba(30,144,255,.24);
  color: var(--ath-primary);
}

.ath-delivery-ready,
.ath-delivery-note{
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(10,61,98,.04), rgba(255,255,255,.7));
  border: 1px solid var(--ath-border);
}

.ath-delivery-ready i,
.ath-delivery-note i{
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  background: linear-gradient(135deg, var(--ath-primary), var(--ath-primary-light));
  color: #fff;
}

.ath-delivery-grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.ath-delivery-stage .card-body{
  min-height: 320px;
}

.ath-delivery-stage__card{
  border: 1px solid var(--ath-border);
  border-radius: 16px;
  padding: 14px;
  background: linear-gradient(135deg, rgba(10,61,98,.03), rgba(47,195,255,.03));
}

.ath-delivery-product-card{
  border: 1px solid var(--ath-border);
  border-radius: 20px;
  overflow: hidden;
  background: var(--ath-surface);
  box-shadow: var(--ath-shadow-sm);
  height: 100%;
}

.ath-delivery-product-card__media{
  aspect-ratio: 1.3 / 1;
  background: linear-gradient(135deg, rgba(10,61,98,.05), rgba(47,195,255,.05));
  display: flex;
  align-items: center;
  justify-content: center;
}

.ath-delivery-product-card__media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ath-delivery-product-card__body{
  padding: 14px 16px 16px;
}

.ath-delivery-note.mb-3:last-child{
  margin-bottom: 0 !important;
}

.ath-delivery-banner-preview{
  border: 1px dashed var(--ath-border);
  border-radius: 14px;
  overflow: hidden;
  min-height: 92px;
  background: var(--ath-surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ath-delivery-banner-card{
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  min-height: 180px;
  background: rgba(10,61,98,.08);
  box-shadow: var(--ath-shadow-sm);
}

.ath-delivery-banner-card img{
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.ath-delivery-banner-card__overlay{
  position: absolute;
  inset: auto 0 0 0;
  padding: 14px 16px;
  background: linear-gradient(180deg, rgba(8,44,70,0), rgba(8,44,70,.82));
  color: #fff;
  font-weight: 700;
}

.ath-delivery-category-card{
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--ath-border);
  background: var(--ath-surface);
  box-shadow: var(--ath-shadow-sm);
  height: 100%;
}

.ath-delivery-category-card__media{
  height: 150px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.ath-delivery-category-card__body{
  padding: 16px;
}

.ath-delivery-storefront{
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.ath-delivery-storefront__hero{
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, .9fr);
  gap: 18px;
  padding: 22px;
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(47,195,255,.16), transparent 24%),
    linear-gradient(135deg, rgba(8,44,70,.96), rgba(10,61,98,.88));
  color: #fff;
}

.ath-delivery-storefront__badge{
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.12);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 12px;
}

.ath-delivery-storefront__hero h2{
  color: #fff !important;
}

.ath-delivery-storefront__hero .text-muted{
  color: rgba(255,255,255,.78) !important;
}

.ath-delivery-storefront__meta{
  display: grid;
  gap: 12px;
  align-content: start;
}

.ath-delivery-storefront__meta-card{
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.1);
}

.ath-delivery-storefront__meta-card strong{
  display: block;
  color: #fff;
  margin-bottom: 6px;
}

.ath-delivery-storefront__section{
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ath-delivery-storefront__section-head{
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.ath-checkout-shell{
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, .9fr);
  gap: 20px;
}

.ath-checkout-main,
.ath-checkout-side{
  min-width: 0;
}

.ath-checkout-totals{
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 8px;
}

.ath-checkout-total-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--ath-border);
  background: linear-gradient(135deg, rgba(10,61,98,.03), rgba(47,195,255,.03));
}

.ath-checkout-total-row--grand{
  background: linear-gradient(135deg, rgba(8,44,70,.96), rgba(10,61,98,.92));
  color: #fff;
}

.ath-checkout-total-row--grand strong{
  color: #fff;
}

.ath-checkout-line{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--ath-surface-2);
  border: 1px solid var(--ath-border);
}

.ath-checkout-line__actions{
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.table.table-bordered td.bg-primary,
.table.table-bordered th.bg-primary{
  background: linear-gradient(135deg, var(--ath-primary), var(--ath-primary-light)) !important;
  color: #fff !important;
}

.task-sales-card .card-body{
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 190px;
}

body.theme-dark .ath-dashboard-hero{
  background:
    radial-gradient(circle at top right, rgba(56,189,248,.14), transparent 28%),
    linear-gradient(135deg, #0f172a, #162338);
}

body.theme-dark .badge-sm.badge-success{ color: #86efac; }
body.theme-dark .badge-sm.badge-danger{ color: #fca5a5; }
body.theme-dark .badge-sm.badge-warning{ color: #fde68a; }
body.theme-dark .badge-sm.badge-info{ color: #93c5fd; }
body.theme-dark .ath-delivery-link{
  background: rgba(255,255,255,.03);
}

body.theme-dark .ath-delivery-ready,
body.theme-dark .ath-delivery-note,
body.theme-dark .ath-delivery-check__item,
body.theme-dark .ath-delivery-empty{
  background: linear-gradient(135deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
}

body.theme-dark .ath-delivery-stage__card,
body.theme-dark .ath-delivery-product-card{
  background: linear-gradient(135deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
}

@media (max-width: 991.98px){
  .ath-dashboard-hero{
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
  }

  .ath-dashboard-hero__side{
    width: 100%;
    min-width: 100%;
    align-items: flex-start;
  }

  .ath-dashboard-hero__meta{
    justify-content: flex-start;
  }

  .ath-top-metrics{
    grid-template-columns: 1fr;
  }

  .ath-page-heading{
    flex-direction: column;
    padding: 22px;
  }

  .ath-page-actions{
    justify-content: flex-start;
  }

  .ath-delivery-grid{
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 767.98px){
  .ath-delivery-grid{
    grid-template-columns: 1fr;
  }

  .ath-delivery-storefront__hero{
    grid-template-columns: 1fr;
  }

  .ath-checkout-shell{
    grid-template-columns: 1fr;
  }
}

/* Forçar Estilos de Cabeçalho Premium */
.ath-page-heading {
    margin-top: 20px !important;
}

.ath-page-heading .ath-page-title,
.ath-page-heading h1,
.ath-page-heading h2 {
    color: #ffffff !important;
}

.ath-page-heading .ath-page-subtitle,
.ath-page-heading p {
    color: rgba(255, 255, 255, 0.8) !important;
}

.ath-page-heading .ath-page-kicker {
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

/* SweetAlert2 Premium Theme Override */
body .swal2-container .swal2-popup {
    border-radius: 24px !important;
    box-shadow: var(--ath-shadow-lg) !important;
    border: 1px solid var(--ath-border) !important;
    font-family: 'Inter', "Segoe UI", sans-serif !important;
    padding: 2.5em 2em !important;
    background: var(--ath-surface) !important;
}

body .swal2-container .swal2-title {
    color: var(--ath-text) !important;
    font-size: 1.75rem !important;
    font-weight: 800 !important;
    margin-bottom: 0.5em !important;
}

body .swal2-container .swal2-html-container {
    color: var(--ath-text-soft) !important;
    font-size: 1.05rem !important;
    line-height: 1.6 !important;
}

body .swal2-container .swal2-actions {
    margin-top: 2em !important;
    gap: 12px !important;
}

body .swal2-container button.swal2-confirm {
    background: linear-gradient(135deg, var(--ath-primary), var(--ath-primary-light)) !important;
    border-radius: 14px !important;
    font-weight: 700 !important;
    padding: 14px 36px !important;
    box-shadow: 0 8px 20px rgba(30, 144, 255, 0.24) !important;
    transition: all 0.2s ease !important;
    border: none !important;
    color: #fff !important;
}

body .swal2-container button.swal2-confirm:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 25px rgba(30, 144, 255, 0.35) !important;
}

body .swal2-container button.swal2-cancel {
    background: var(--ath-surface-2) !important;
    border: 1px solid var(--ath-border) !important;
    border-radius: 14px !important;
    font-weight: 700 !important;
    padding: 14px 36px !important;
    color: var(--ath-text) !important;
    transition: all 0.2s ease !important;
}

body .swal2-container button.swal2-cancel:hover {
    background: var(--ath-bg-soft) !important;
    transform: translateY(-2px) !important;
}

body .swal2-container .swal2-icon {
    border-width: 3px !important;
    margin-top: 1em !important;
    margin-bottom: 1.5em !important;
}

body .swal2-container .swal2-icon.swal2-info {
    border-color: var(--ath-info) !important;
    color: var(--ath-info) !important;
}

body .swal2-container .swal2-icon.swal2-success {
    border-color: var(--ath-success) !important;
    color: var(--ath-success) !important;
}

body .swal2-container .swal2-icon.swal2-error {
    border-color: var(--ath-danger) !important;
    color: var(--ath-danger) !important;
}

body .swal2-container .swal2-icon.swal2-warning {
    border-color: var(--ath-warning) !important;
    color: var(--ath-warning) !important;
}

/* Custom Animation for Modals */
@keyframes swal2-premium-show {
    0% { transform: scale(0.9) translateY(20px); opacity: 0; }
    100% { transform: scale(1) translateY(0); opacity: 1; }
}

body .swal2-container.swal2-backdrop-show .swal2-popup {
    animation: swal2-premium-show 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards !important;
}
