/*
 * Small panel-level overrides for the Avadoo admin.
 * Loaded after Filament's own CSS through AdminPanelProvider.
 */

.fi-sidebar {
    background: #111827;
    border-right: 1px solid #1f2937;
}

.fi-sidebar-header,
.fi-sidebar-header-ctn,
.fi-sidebar-nav,
.fi-sidebar-footer {
    background: #111827;
}

.fi-sidebar-header {
    border-bottom: 1px solid #1f2937;
}

.fi-sidebar-group-label,
.fi-sidebar-item-label,
.fi-sidebar-item-icon {
    color: #d1d5db;
}

.fi-sidebar-group-btn {
    color: #9ca3af;
}

.fi-sidebar-item-btn:hover {
    background: rgba(255, 255, 255, 0.08);
}

.fi-sidebar-item.fi-active > .fi-sidebar-item-btn,
.fi-sidebar-item-has-active-child-items > .fi-sidebar-item-btn {
    background: rgba(59, 130, 246, 0.18);
}

.fi-sidebar-item.fi-active .fi-sidebar-item-label,
.fi-sidebar-item.fi-active .fi-sidebar-item-icon {
    color: #ffffff;
}

.aw-admin-product {
    color: #111827;
}

.aw-admin-product-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 18px;
}

.aw-admin-product-header h1 {
    margin: 0;
    font-size: 26px;
    font-weight: 800;
    line-height: 1.2;
}

.aw-admin-breadcrumb {
    margin-bottom: 8px;
    color: #6b7280;
    font-size: 13px;
}

.aw-admin-price-lead {
    white-space: nowrap;
    font-size: 18px;
}

.aw-admin-product-header--price-only {
    justify-content: flex-end;
}

.aw-admin-product-header--price-only .aw-admin-price-lead {
    margin-left: auto;
    text-align: right;
}

.aw-admin-product-grid {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(0, 2fr);
    gap: 16px;
    align-items: start;
}

.aw-admin-featured-image {
    display: flex;
    min-height: 420px;
    align-items: center;
    justify-content: center;
    background: #ffffff;
}

.aw-admin-featured-image img {
    max-width: 100%;
    max-height: 620px;
    object-fit: contain;
}

.aw-admin-empty-image {
    color: #9ca3af;
}

.aw-admin-thumbs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin-top: 8px;
}

.aw-admin-thumbs button,
.aw-admin-position-grid button,
.aw-admin-technique-grid button,
.aw-admin-graphic-colors button,
.aw-admin-scale-grid button {
    border: 1px solid #d1fae5;
    background: #ffffff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.aw-admin-thumbs button {
    aspect-ratio: 1;
    padding: 6px;
}

.aw-admin-thumbs button.is-active,
.aw-admin-position-grid button.is-active,
.aw-admin-technique-grid button.is-active,
.aw-admin-graphic-colors button.is-active,
.aw-admin-scale-grid button.is-active {
    border-color: #059669;
    box-shadow: 0 0 0 1px #059669;
}

.aw-admin-thumbs img,
.aw-admin-position-grid img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.aw-admin-position-grid img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 210px;
}

.aw-admin-panel {
    margin-bottom: 10px;
    padding: 18px;
    background: #ffffff;
}

.aw-admin-panel h2 {
    margin: 0 0 12px;
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
}

.aw-admin-panel h3 {
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 800;
}

.aw-admin-sku {
    margin-bottom: 18px;
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
}

.aw-admin-color-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.aw-admin-color-dot {
    display: inline-flex;
    width: 24px;
    height: 24px;
    align-items: center;
    justify-content: center;
    border: 1px solid #d1d5db;
    border-radius: 999px;
    background: var(--aw-color, #cccccc);
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.aw-admin-color-dot.is-active {
    border-color: #111827;
    box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px #111827;
}

.aw-admin-stock,
.aw-admin-control-row,
.aw-admin-delivery,
.aw-admin-price-scales {
    margin-bottom: 18px;
}

.aw-admin-danger {
    color: #dc2626;
}

.aw-admin-control-row label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
}

.aw-admin-control-row input,
.aw-admin-control-row select {
    width: min(180px, 100%);
    border: 1px solid #0f766e;
    border-radius: 6px;
    padding: 8px 10px;
    background: #ffffff;
}

.aw-admin-scale-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 8px;
}

.aw-admin-scale-grid button {
    padding: 10px;
    text-align: left;
}

.aw-admin-scale-grid button span {
    display: block;
    margin-top: 4px;
    color: #374151;
    font-size: 12px;
}

.aw-admin-delivery > div {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.aw-admin-radio-row {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    margin-bottom: 18px;
}

.aw-admin-radio-row label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.aw-admin-branding p {
    margin-top: 0;
    color: #374151;
}

.aw-admin-branding-block {
    margin-top: 12px;
    border: 1px solid #e5e7eb;
}

.aw-admin-branding-block-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    background: #e5e7eb;
    font-weight: 700;
}

.aw-admin-branding-block-header button {
    color: #dc2626;
    font-size: 13px;
}

.aw-admin-branding-body {
    padding: 14px;
}

.aw-admin-position-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 8px;
    margin-bottom: 18px;
}

.aw-admin-position-grid button {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 170px;
    padding: 8px;
}

.aw-admin-position-grid button:disabled {
    cursor: not-allowed;
    opacity: 0.35;
}

.aw-admin-technique-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 8px;
    margin-bottom: 18px;
}

.aw-admin-technique-grid button {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 58px;
    padding: 8px;
    text-align: left;
}

.aw-admin-technique-grid img {
    width: 46px;
    height: 46px;
    object-fit: cover;
}

.aw-admin-graphic-colors {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.aw-admin-graphic-colors button {
    display: flex;
    width: 136px;
    min-height: 66px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px;
}

.aw-admin-graphic-colors button > span:last-child {
    font-size: 14px;
    font-weight: 800;
}

.aw-admin-color-diamonds {
    display: inline-flex;
    align-items: center;
}

.aw-admin-color-diamonds span {
    width: 12px;
    height: 12px;
    margin-left: -2px;
    transform: rotate(45deg);
}

.aw-admin-color-gradient {
    display: inline-block;
    width: 36px;
    height: 14px;
    background: linear-gradient(90deg, #ff40e2, #00ffeb, #ffff00, #000000);
    transform: skewX(-18deg);
}

.aw-admin-add-position {
    display: flex;
    justify-content: center;
    margin-top: 18px;
}

.aw-admin-add-position button {
    border-radius: 6px;
    padding: 9px 14px;
    background: linear-gradient(90deg, #0f766e, #bfe13a);
    color: #ffffff;
    font-weight: 800;
}

.aw-admin-info-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr);
    gap: 10px;
}

.aw-admin-specs {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    gap: 8px 18px;
    margin: 0;
}

.aw-admin-specs dt {
    font-weight: 800;
}

.aw-admin-specs dd {
    margin: 0;
}

.aw-admin-summary > div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 10px;
    font-size: 16px;
}

.aw-admin-summary-highlight {
    border-top: 3px solid #059669;
    border-bottom: 3px solid #bfe13a;
    padding: 12px 0;
}

.aw-admin-summary p {
    margin: 18px 0 0;
    color: #374151;
    font-size: 13px;
}

.aw-advertising-product .aw-admin-product-grid {
    grid-template-columns: minmax(320px, 1fr) minmax(480px, 1.15fr);
}

.aw-advertising-thumbs {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.aw-advertising-designs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.aw-advertising-design {
    display: flex;
    width: 132px;
    min-height: 132px;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #0f766e;
    border-radius: 8px;
    background: #ffffff;
}

.aw-advertising-design.is-active {
    border: 3px solid #10b981;
}

.aw-advertising-design > strong {
    display: flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 6px;
    border-bottom: 1px solid #0f766e;
    font-size: 13px;
}

.aw-advertising-design-symbol {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.aw-advertising-design-symbol .structure {
    width: 31px;
    height: 51px;
    border: 4px double #111827;
    border-bottom-width: 8px;
}

.aw-advertising-design-symbol .print {
    width: 19px;
    height: 46px;
    border: 3px solid #111827;
}

.aw-advertising-design-symbol .plus {
    font-size: 26px;
}

.aw-advertising-design-symbol.only-print .structure,
.aw-advertising-design-symbol.only-print .plus,
.aw-advertising-design-symbol.only-structure .plus,
.aw-advertising-design-symbol.only-structure .print {
    display: none;
}

.aw-advertising-field {
    max-width: 520px;
    margin-bottom: 20px;
}

.aw-advertising-field label,
.aw-advertising-accessories h2 {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
}

.aw-advertising-field select,
.aw-advertising-field input {
    width: 100%;
    min-height: 44px;
    border: 1px solid #0f766e;
    border-radius: 999px;
    padding: 8px 14px;
    background: #ffffff;
}

.aw-advertising-quantity input {
    width: 124px;
    text-align: center;
}

.aw-advertising-accessories {
    max-width: 520px;
}

.aw-advertising-accessories label {
    display: flex;
    min-height: 44px;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    border: 1px solid #0f766e;
    border-radius: 14px;
    padding: 8px 14px;
}

.aw-advertising-accessories label strong {
    margin-left: auto;
    white-space: nowrap;
}

.aw-advertising-content ul,
.aw-advertising-content ol {
    margin: 0 0 12px;
    padding-left: 20px;
}

.aw-advertising-content p {
    margin: 0 0 10px;
}

.aw-advertising-preline {
    white-space: pre-line;
}

.aw-tall-rich-editor .fi-fo-rich-editor-main,
.aw-tall-rich-editor .fi-fo-rich-editor-content {
    min-height: 360px;
}

.aw-inline-select-all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #374151;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
}

.aw-inline-select-all input {
    width: 16px;
    height: 16px;
    accent-color: #2563eb;
}

.aw-combination-admin-link {
    margin-bottom: 1rem;
}

.aw-combination-admin-link a {
    display: inline-flex;
    align-items: center;
    border-radius: 0.5rem;
    background: rgb(13 148 136);
    padding: 0.55rem 0.9rem;
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
}

.aw-combination-admin-link a:hover {
    background: rgb(15 118 110);
}

.aw-combination-admin-link p {
    margin: 0.5rem 0 0;
    color: rgb(107 114 128);
    font-size: 0.875rem;
}

.aw-category-addons {
    display: grid;
    gap: 1rem;
}

.aw-category-addons section {
    border: 1px solid rgb(229 231 235);
    border-radius: 0.75rem;
    padding: 1rem;
}

.dark .aw-category-addons section {
    border-color: rgb(55 65 81);
}

.aw-category-addons h4 {
    display: inline;
    margin: 0 0.5rem 0 0;
    font-weight: 700;
}

.aw-category-addons small {
    color: rgb(107 114 128);
}

.aw-category-addons ul {
    display: grid;
    gap: 0.35rem;
    margin: 0.75rem 0 0;
    padding: 0;
    list-style: none;
}

.aw-category-addons li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.aw-category-addons a {
    color: rgb(13 148 136);
    font-weight: 600;
    text-decoration: underline;
}

.aw-combination-matrix {
    overflow: hidden;
    border: 1px solid rgb(209 213 219);
    border-radius: 0.75rem;
    background: rgb(255 255 255);
}

.dark .aw-combination-matrix {
    border-color: rgb(55 65 81);
    background: rgb(17 24 39);
}

.aw-combination-matrix > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    cursor: pointer;
    font-weight: 600;
    list-style-position: inside;
}

.aw-combination-count {
    flex: none;
    border-radius: 9999px;
    background: rgb(243 244 246);
    padding: 0.25rem 0.65rem;
    color: rgb(55 65 81);
    font-size: 0.8rem;
    font-weight: 600;
}

.dark .aw-combination-count {
    background: rgb(31 41 55);
    color: rgb(209 213 219);
}

.aw-combination-matrix-content {
    border-top: 1px solid rgb(229 231 235);
    padding: 1rem 1.25rem 1.25rem;
}

.dark .aw-combination-matrix-content {
    border-color: rgb(55 65 81);
}

.aw-combination-matrix-content > p {
    margin: 0 0 1rem;
    color: rgb(107 114 128);
    font-size: 0.875rem;
}

.aw-combination-group + .aw-combination-group {
    margin-top: 1.5rem;
}

.aw-combination-group h4 {
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.aw-combination-table-scroll {
    overflow-x: auto;
}

.aw-combination-table {
    width: 100%;
    min-width: 32rem;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.aw-combination-table th,
.aw-combination-table td {
    border: 1px solid rgb(229 231 235);
    padding: 0.65rem 0.75rem;
    text-align: center;
}

.dark .aw-combination-table th,
.dark .aw-combination-table td {
    border-color: rgb(55 65 81);
}

.aw-combination-table thead th,
.aw-combination-table tbody th {
    background: rgb(249 250 251);
    font-weight: 600;
}

.dark .aw-combination-table thead th,
.dark .aw-combination-table tbody th {
    background: rgb(31 41 55);
}

.aw-combination-table tbody th {
    min-width: 12rem;
    text-align: left;
}

.aw-combination-cell {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
    width: 100%;
    min-height: 1.75rem;
    cursor: pointer;
}

.aw-combination-cell input {
    width: 1.1rem;
    height: 1.1rem;
    cursor: pointer;
    accent-color: rgb(13 148 136);
}

.aw-combination-unavailable {
    color: rgb(156 163 175);
    background: rgb(249 250 251);
}

.dark .aw-combination-unavailable {
    background: rgb(17 24 39);
}

.aw-select-all-field .fi-fo-field-label-ctn > .fi-sc {
    width: auto;
    flex-grow: 0;
}

.aw-product-image-upload .filepond--image-preview {
    cursor: zoom-in;
}

.aw-upload-image-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    background: rgba(0, 0, 0, 0.82);
}

/* Admin dashboard */
.aw-dashboard-widget > .fi-wi-widget-content {
    padding: 0;
    background: transparent;
    box-shadow: none;
}

.aw-dashboard {
    display: grid;
    gap: 1.25rem;
}

.aw-dashboard-stats {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.85rem;
}

.aw-dashboard-stat {
    position: relative;
    display: flex;
    min-height: 132px;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgb(229 231 235);
    border-radius: 1rem;
    padding: 1rem;
    background: #ffffff;
    color: rgb(17 24 39);
    text-decoration: none;
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.aw-dashboard-stat::before {
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: var(--aw-dashboard-accent, rgb(59 130 246));
    content: '';
}

.aw-dashboard-stat:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgb(15 23 42 / 10%);
}

.aw-dashboard-stat > span {
    min-height: 2.5em;
    color: rgb(75 85 99);
    font-size: 0.78rem;
    font-weight: 650;
    line-height: 1.25;
}

.aw-dashboard-stat > strong {
    margin-top: 0.25rem;
    font-size: clamp(1.55rem, 2.2vw, 2rem);
    line-height: 1;
}

.aw-dashboard-stat > small {
    margin-top: auto;
    padding-top: 0.7rem;
    color: rgb(107 114 128);
    font-size: 0.7rem;
}

.aw-dashboard-stat.is-blue,
.aw-dashboard-product-summary.is-blue {
    --aw-dashboard-accent: rgb(59 130 246);
}

.aw-dashboard-stat.is-amber {
    --aw-dashboard-accent: rgb(245 158 11);
}

.aw-dashboard-stat.is-emerald {
    --aw-dashboard-accent: rgb(16 185 129);
}

.aw-dashboard-stat.is-teal,
.aw-dashboard-product-summary.is-teal {
    --aw-dashboard-accent: rgb(13 148 136);
}

.aw-dashboard-stat.is-rose {
    --aw-dashboard-accent: rgb(244 63 94);
}

.aw-dashboard-stat.is-violet {
    --aw-dashboard-accent: rgb(139 92 246);
}

.aw-dashboard-grid,
.aw-dashboard-product-grid {
    display: grid;
    gap: 1.25rem;
}

.aw-dashboard-grid-top {
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
}

.aw-dashboard-grid-charts,
.aw-dashboard-grid-orders,
.aw-dashboard-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.aw-dashboard-panel {
    overflow: hidden;
    border: 1px solid rgb(229 231 235);
    border-radius: 1rem;
    background: #ffffff;
    box-shadow: 0 1px 2px rgb(15 23 42 / 4%);
}

.aw-dashboard-panel-header {
    display: flex;
    min-height: 78px;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgb(229 231 235);
}

.aw-dashboard-panel-header h2 {
    margin: 0.15rem 0 0;
    color: rgb(17 24 39);
    font-size: 1.05rem;
    font-weight: 750;
}

.aw-dashboard-eyebrow {
    color: rgb(107 114 128);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.aw-dashboard-total-badge,
.aw-dashboard-status {
    flex: none;
    border-radius: 9999px;
    padding: 0.3rem 0.65rem;
    font-size: 0.7rem;
    font-weight: 700;
}

.aw-dashboard-total-badge {
    background: rgb(254 226 226);
    color: rgb(185 28 28);
}

.aw-dashboard-alert {
    display: grid;
    grid-template-columns: 2.35rem minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1.25rem;
    border-bottom: 1px solid rgb(243 244 246);
    color: rgb(31 41 55);
    text-decoration: none;
}

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

.aw-dashboard-alert:hover {
    background: rgb(249 250 251);
}

.aw-dashboard-alert-count {
    display: grid;
    width: 2.35rem;
    height: 2.35rem;
    place-items: center;
    border-radius: 0.65rem;
    background: rgb(243 244 246);
    font-weight: 800;
}

.aw-dashboard-alert.is-danger .aw-dashboard-alert-count {
    background: rgb(254 226 226);
    color: rgb(185 28 28);
}

.aw-dashboard-alert.is-warning .aw-dashboard-alert-count {
    background: rgb(254 243 199);
    color: rgb(180 83 9);
}

.aw-dashboard-alert.is-info .aw-dashboard-alert-count {
    background: rgb(219 234 254);
    color: rgb(29 78 216);
}

.aw-dashboard-alert strong,
.aw-dashboard-action strong,
.aw-dashboard-order strong {
    display: block;
    font-size: 0.82rem;
}

.aw-dashboard-alert small,
.aw-dashboard-action small,
.aw-dashboard-order small {
    display: block;
    margin-top: 0.15rem;
    color: rgb(107 114 128);
    font-size: 0.7rem;
}

.aw-dashboard-alert-action,
.aw-dashboard-text-link {
    color: rgb(13 148 136);
    font-size: 0.72rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.aw-dashboard-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
    padding: 1rem;
}

.aw-dashboard-action {
    display: flex;
    min-height: 82px;
    align-items: center;
    gap: 0.75rem;
    border: 1px solid rgb(229 231 235);
    border-radius: 0.75rem;
    padding: 0.75rem;
    color: rgb(31 41 55);
    text-decoration: none;
    transition: border-color 160ms ease, background 160ms ease;
}

.aw-dashboard-action:hover {
    border-color: rgb(45 212 191);
    background: rgb(240 253 250);
}

.aw-dashboard-action svg {
    width: 1.5rem;
    height: 1.5rem;
    flex: none;
    color: rgb(13 148 136);
}

.aw-dashboard-chart-total {
    color: rgb(17 24 39);
    font-size: 1rem;
}

.aw-dashboard-chart-scroll {
    overflow-x: auto;
    padding: 1rem 1.25rem 0.75rem;
}

.aw-dashboard-bars {
    display: grid;
    min-width: 620px;
    height: 215px;
    grid-template-columns: repeat(30, minmax(12px, 1fr));
    align-items: end;
    gap: 4px;
    border-bottom: 1px solid rgb(229 231 235);
}

.aw-dashboard-bar-column {
    display: grid;
    height: 100%;
    grid-template-rows: 1.25rem minmax(0, 1fr) 1.35rem;
    align-items: end;
    text-align: center;
}

.aw-dashboard-bar-value {
    overflow: hidden;
    color: rgb(107 114 128);
    font-size: 0.58rem;
    white-space: nowrap;
}

.aw-dashboard-bar {
    display: block;
    width: 100%;
    min-height: 2px;
    align-self: end;
    border-radius: 4px 4px 0 0;
    transition: filter 160ms ease;
}

.aw-dashboard-bar-column:hover .aw-dashboard-bar {
    filter: brightness(0.86);
}

.aw-dashboard-bar.is-blue {
    background: linear-gradient(180deg, rgb(96 165 250), rgb(37 99 235));
}

.aw-dashboard-bar.is-teal {
    background: linear-gradient(180deg, rgb(45 212 191), rgb(13 148 136));
}

.aw-dashboard-bar-column small {
    min-height: 1em;
    padding-top: 0.3rem;
    color: rgb(107 114 128);
    font-size: 0.55rem;
}

.aw-dashboard-order-list {
    display: grid;
}

.aw-dashboard-order {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(130px, 0.7fr) auto;
    align-items: center;
    gap: 0.8rem;
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid rgb(243 244 246);
    color: rgb(31 41 55);
    text-decoration: none;
}

.aw-dashboard-order:last-child {
    border-bottom: 0;
}

.aw-dashboard-order:hover {
    background: rgb(249 250 251);
}

.aw-dashboard-order.is-overdue {
    box-shadow: inset 3px 0 rgb(244 63 94);
}

.aw-dashboard-order-meta {
    text-align: right;
}

.aw-dashboard-status.is-blue {
    background: rgb(219 234 254);
    color: rgb(29 78 216);
}

.aw-dashboard-status.is-amber {
    background: rgb(254 243 199);
    color: rgb(180 83 9);
}

.aw-dashboard-status.is-emerald {
    background: rgb(209 250 229);
    color: rgb(4 120 87);
}

.aw-dashboard-status.is-rose {
    background: rgb(254 226 226);
    color: rgb(185 28 28);
}

.aw-dashboard-product-summary {
    position: relative;
    color: rgb(31 41 55);
    text-decoration: none;
}

.aw-dashboard-product-summary::before {
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: var(--aw-dashboard-accent);
    content: '';
}

.aw-dashboard-product-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.aw-dashboard-product-metrics > div {
    display: flex;
    min-height: 86px;
    flex-direction: column;
    justify-content: center;
    padding: 0.85rem 1.25rem;
    border-right: 1px solid rgb(243 244 246);
    border-bottom: 1px solid rgb(243 244 246);
}

.aw-dashboard-product-metrics span {
    color: rgb(107 114 128);
    font-size: 0.7rem;
}

.aw-dashboard-product-metrics strong {
    margin-top: 0.2rem;
    font-size: 1.35rem;
}

.aw-dashboard-empty {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1.25rem;
    color: rgb(75 85 99);
}

.aw-dashboard-empty svg {
    width: 2rem;
    height: 2rem;
}

.aw-dashboard-empty.is-success {
    color: rgb(4 120 87);
}

.aw-dashboard-empty p {
    margin: 0.2rem 0 0;
    font-size: 0.78rem;
}

.dark .aw-dashboard-stat,
.dark .aw-dashboard-panel {
    border-color: rgb(55 65 81);
    background: rgb(17 24 39);
    color: rgb(229 231 235);
}

.dark .aw-dashboard-panel-header,
.dark .aw-dashboard-alert,
.dark .aw-dashboard-order,
.dark .aw-dashboard-product-metrics > div,
.dark .aw-dashboard-bars {
    border-color: rgb(55 65 81);
}

.dark .aw-dashboard-panel-header h2,
.dark .aw-dashboard-chart-total,
.dark .aw-dashboard-order,
.dark .aw-dashboard-action {
    color: rgb(243 244 246);
}

.dark .aw-dashboard-alert:hover,
.dark .aw-dashboard-order:hover,
.dark .aw-dashboard-action:hover {
    background: rgb(31 41 55);
}

.dark .aw-dashboard-action {
    border-color: rgb(55 65 81);
}

@media (max-width: 1280px) {
    .aw-dashboard-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .aw-dashboard-grid-top {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .aw-dashboard-grid-charts,
    .aw-dashboard-grid-orders,
    .aw-dashboard-product-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .aw-dashboard-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .aw-dashboard-actions,
    .aw-dashboard-product-metrics {
        grid-template-columns: 1fr;
    }

    .aw-dashboard-alert {
        grid-template-columns: 2.35rem minmax(0, 1fr);
    }

    .aw-dashboard-alert-action {
        display: none;
    }

    .aw-dashboard-order {
        grid-template-columns: 1fr auto;
    }

    .aw-dashboard-order-meta {
        grid-column: 1;
        text-align: left;
    }

    .aw-dashboard-status {
        grid-column: 2;
        grid-row: 1 / span 2;
    }
}

.aw-upload-image-modal[hidden] {
    display: none;
}

.aw-upload-image-modal > button {
    position: absolute;
    top: 18px;
    right: 24px;
    color: #ffffff;
    font-size: 38px;
    line-height: 1;
}

.aw-upload-image-modal > img {
    max-width: min(1200px, 92vw);
    max-height: 88vh;
    border-radius: 8px;
    object-fit: contain;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.aw-advertising-download {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    margin-top: 16px;
    border-radius: 999px;
    padding: 5px 14px;
    background: #111827;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.aw-advertising-video {
    position: relative;
    width: 100%;
    margin-top: 16px;
    padding-top: 56.25%;
    overflow: hidden;
    border-radius: 8px;
}

.aw-advertising-video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.aw-advertising-summary {
    margin-top: 10px;
}

@media (max-width: 1100px) {
    .aw-admin-product-grid,
    .aw-admin-info-grid {
        grid-template-columns: 1fr !important;
    }

    .aw-admin-featured-image {
        min-height: 320px;
    }
}

@media (max-width: 720px) {
    .aw-admin-product-header,
    .aw-admin-summary > div {
        display: block;
    }

    .aw-admin-price-lead {
        margin-top: 10px;
        white-space: normal;
    }

    .aw-admin-product-header--price-only .aw-admin-price-lead {
        margin-left: 0;
        text-align: left;
    }

    .aw-admin-delivery > div {
        grid-template-columns: 1fr;
    }

    .aw-admin-graphic-colors button {
        width: 104px;
    }

    .aw-admin-summary-highlight strong {
        display: block;
        margin-top: 6px;
        white-space: nowrap;
    }
}
