/* ===========================
   AXON Cloud Design System
   Light workspace + vertical tint
=========================== */

:root {
    --axon-bg: #f4f7fb;
    --axon-bg-elevated: #ffffff;
    --axon-panel: #ffffff;
    --axon-panel-2: #f8fafc;
    --axon-line: #e2e8f0;
    --axon-line-strong: #cbd5e1;
    --axon-text: #0f172a;
    --axon-text-strong: #020617;
    --axon-muted: #64748b;
    --axon-primary: #2563eb;
    --axon-primary-hover: #1d4ed8;
    --axon-accent: #0ea5e9;
    --axon-secondary: #e2e8f0;
    --axon-success: #16a34a;
    --axon-danger: #dc2626;
    --axon-warning: #d97706;
    --axon-radius-sm: 8px;
    --axon-radius: 12px;
    --axon-radius-lg: 16px;
    --axon-shadow: 0 10px 28px rgba(15, 23, 42, .08);
    --axon-font: "SF Pro Display", "Segoe UI", Inter, -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
    --axon-space-1: 4px;
    --axon-space-2: 8px;
    --axon-space-3: 12px;
    --axon-space-4: 16px;
    --axon-space-5: 24px;
    --axon-focus: 0 0 0 3px color-mix(in srgb, var(--axon-primary) 28%, transparent);

    /* Alias used by premium / module partials */
    --ap-text: var(--axon-text);
    --ap-muted: var(--axon-muted);
    --ap-border: var(--axon-line);
    --ap-panel: var(--axon-panel);
    --ap-accent: var(--axon-primary);
}

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

    width:auto;
    min-width:auto;
    height:40px;

    padding:0 14px;

    border-radius:var(--axon-radius-sm);
    border:0;

    cursor:pointer;
    text-decoration:none !important;

    font-family:inherit;
    font-weight:700;
    font-size:14px;
    line-height:1;

    transition:background .18s ease, border-color .18s ease, transform .12s ease, box-shadow .18s ease;

    color:#fff !important;
    background:var(--axon-primary);
    white-space:nowrap;
}
.btn:focus-visible{
    outline:none;
    box-shadow:var(--axon-focus);
}
.btn-md{
    height:44px;
    padding:0 18px;
    font-size:15px;
}

.btn-lg{
    height:52px;
    padding:0 24px;
    font-size:16px;
    border-radius:var(--axon-radius);
}

.btn-block{
    width:100%;
}

.btn-small{
    min-width:auto;
    height:34px;
    padding:0 10px;
    font-size:13px;
    border-radius:var(--axon-radius-sm);
}
.btn:hover{
    background:var(--axon-primary-hover);
}

.btn-secondary{
    background:#ffffff;
    color:#0f172a !important;
    border:1px solid #cbd5e1;
}

.btn-secondary:hover{
    background:#f1f5f9;
    border-color:#94a3b8;
}

.btn-success{
    background:var(--axon-success);
}

.btn-danger{
    background:var(--axon-danger);
    color:#fff !important;
    border:1px solid var(--axon-danger);
}

.btn-danger:hover{
    background:#b91c1c;
    border-color:#b91c1c;
}

.btn-ghost{
    background:transparent;
    color:#0f172a !important;
    border:1px solid #cbd5e1;
}

.btn-ghost:hover{
    background:#f1f5f9;
    border-color:#94a3b8;
}

.btn-warning{
    background:var(--axon-warning);
}

.btn-primary{
    background:var(--axon-primary);
    border-color:var(--axon-primary);
}

.btn-primary:hover{
    background:var(--axon-primary-hover);
}

.btn-with-icon{
    gap:7px;
}

.btn-ico,
.axon-ico{
    width:16px;
    height:16px;
    flex-shrink:0;
    display:block;
}

.btn-small .btn-ico,
.btn-small.axon-ico{
    width:14px;
    height:14px;
}

.btn:visited{
    color:#fff !important;
}

.btn-secondary:visited,
a.btn-secondary:visited,
.btn-ghost:visited,
a.btn-ghost:visited{
    color:#0f172a !important;
}

.btn-danger:visited,
a.btn-danger:visited{
    color:#fff !important;
}

.btn:active{
    color:#fff !important;
    transform:translateY(1px);
}

.btn-secondary:active,
a.btn-secondary:active,
.btn-ghost:active,
a.btn-ghost:active{
    color:#0f172a !important;
}

.btn-danger:active,
a.btn-danger:active{
    color:#fff !important;
}

.page-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:22px;
    gap:16px;
    flex-wrap:wrap;
}

.page-title{
    font-size:clamp(28px, 3vw, 36px);
    font-weight:800;
    letter-spacing:-.03em;
    margin-bottom:6px;
    color:var(--axon-text-strong);
}

.page-subtitle{
    color:var(--axon-muted);
    font-size:15px;
}

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

.kpi-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:18px;
    margin:24px 0;
}

.kpi-card{
    background:var(--axon-panel);
    border:1px solid var(--axon-line);
    border-radius:var(--axon-radius-lg);
    padding:22px;
}

.kpi-label{
    color:var(--axon-muted);
    font-size:13px;
    margin-bottom:8px;
}

.kpi-value{
    font-size:30px;
    font-weight:800;
    letter-spacing:-.03em;
    color:var(--axon-text-strong);
}

.card{
    background:var(--axon-panel);
    border:1px solid var(--axon-line);
    border-radius:var(--axon-radius-lg);
    padding:22px;
    margin-bottom:18px;
}

.table-panel{
    background:var(--axon-panel);
    border:1px solid var(--axon-line);
    border-radius:var(--axon-radius-lg);
    padding:20px;
    overflow:hidden;
}

.filter-panel{
    background:var(--axon-panel);
    border:1px solid var(--axon-line);
    border-radius:var(--axon-radius-lg);
    padding:20px;
    margin-bottom:22px;
}

.badge{
    display:inline-block;
    padding:6px 10px;
    border-radius:999px;
    font-size:12px;
    font-weight:700;
    background:#e2e8f0;
    color:#0f172a;
}

/* Empty list / empty panel */
.axon-empty{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:8px;
    padding:48px 24px;
    text-align:center;
    color:var(--axon-muted);
    border:1px dashed var(--axon-line-strong);
    border-radius:var(--axon-radius-lg);
    background:#f8fafc;
}
.axon-empty strong{
    color:var(--axon-text-strong);
    font-size:16px;
    font-weight:750;
}
.axon-empty p{
    margin:0;
    max-width:420px;
    font-size:14px;
    line-height:1.45;
}
.axon-empty .btn{margin-top:10px}

/* Shared data tables — scroll inside the table, not the page */
.axon-table-scroll,
.products-table-wrap,
.sales-table-wrap,
.rac-table-wrap,
.crm-table-wrap,
.ap-table-wrap,
.ops-dense .ap-table-wrap{
    width:100%;
    max-height:min(72vh, calc(100vh - 220px));
    overflow:auto;
    overscroll-behavior:contain;
    border-radius:calc(var(--axon-radius-lg) - 2px);
    -webkit-overflow-scrolling:touch;
}
table.table,
table[data-list-key]{
    width:100%;
    border-collapse:separate;
    border-spacing:0;
    font-size:12.5px;
}
.axon-table-scroll table.table thead th,
.axon-table-scroll table[data-list-key] thead th,
.products-table-wrap table thead th,
.sales-table-wrap table thead th,
.rac-table-wrap table thead th,
.crm-table-wrap table thead th,
.ap-table-wrap table thead th,
table.table thead th,
table[data-list-key] thead th{
    position:sticky;
    top:0;
    z-index:2;
    background:#f1f5f9;
    color:#334155;
    font-size:11px;
    font-weight:700;
    letter-spacing:.02em;
    text-transform:uppercase;
    text-align:left;
    padding:8px 10px;
    border-bottom:1px solid #cbd5e1;
    border-right:1px solid #e2e8f0;
    white-space:nowrap;
    max-width:9.5rem;
    overflow:hidden;
    text-overflow:ellipsis;
}
table.table thead th:last-child,
table[data-list-key] thead th:last-child{border-right:0}
table.table tbody td,
table[data-list-key] tbody td{
    padding:5px 8px;
    border-bottom:1px solid #e2e8f0;
    border-right:1px solid #f1f5f9;
    color:var(--axon-text);
    vertical-align:middle;
    font-size:12.5px;
    line-height:1.25;
    white-space:nowrap;
    max-width:14rem;
    overflow:hidden;
    text-overflow:ellipsis;
}
table.table tbody td:last-child,
table[data-list-key] tbody td:last-child{border-right:0}
table.table tbody tr:nth-child(even) td,
table[data-list-key] tbody tr:nth-child(even) td{
    background:#f8fafc;
}
table.table tbody tr:hover td,
table[data-list-key] tbody tr:hover td{
    background:rgba(37,99,235,.1);
}

/* Sales list — same dense grid as products (win over page-local legacy CSS) */
.sales-table-wrap .sales-table,
table.sales-table[data-list-key]{
    width:100%;
    min-width:1100px;
    border-collapse:collapse;
    font-size:12.5px;
}
.sales-table-wrap .sales-table thead th,
table.sales-table[data-list-key] thead th{
    position:sticky;
    top:0;
    z-index:2;
    padding:6px 8px !important;
    text-align:left;
    color:#334155 !important;
    background:#f1f5f9 !important;
    border-bottom:1px solid #cbd5e1 !important;
    border-right:1px solid #e2e8f0 !important;
    font-size:11px !important;
    font-weight:700 !important;
    letter-spacing:.01em;
    text-transform:none;
    white-space:nowrap;
    max-width:9.5rem;
    overflow:hidden;
    text-overflow:ellipsis;
    vertical-align:middle;
}
.sales-table-wrap .sales-table thead th:last-child,
table.sales-table[data-list-key] thead th:last-child{border-right:0 !important}
.sales-table-wrap .sales-table tbody td,
table.sales-table[data-list-key] tbody td{
    padding:5px 8px !important;
    border-bottom:1px solid var(--axon-line,#1f2937) !important;
    border-right:1px solid #f1f5f9 !important;
    vertical-align:middle !important;
    white-space:nowrap;
    max-width:14rem;
    overflow:hidden;
    text-overflow:ellipsis;
    font-size:12.5px !important;
    color:var(--axon-text,#0f172a);
    line-height:1.25;
}
.sales-table-wrap .sales-table tbody td:last-child,
table.sales-table[data-list-key] tbody td:last-child{border-right:0 !important}
.sales-table-wrap .sales-table tbody tr:nth-child(even) td,
table.sales-table[data-list-key] tbody tr:nth-child(even) td{
    background:#f8fafc;
}
.sales-table-wrap .sales-table tbody tr:hover td,
table.sales-table[data-list-key] tbody tr:hover td{
    background:rgba(37,99,235,.1);
}
.sales-table-wrap .sales-table td.amount,
table.sales-table[data-list-key] td.amount{
    text-align:right;
    font-weight:700;
    font-variant-numeric:tabular-nums;
}
.table-panel > .sales-table-wrap{
    padding:0;
}
.axon-cell-main{
    display:block;
    color:var(--axon-text-strong);
    font-weight:700;
    text-decoration:none;
}
.axon-cell-main:hover{color:var(--axon-accent)}
.axon-cell-sub{
    display:block;
    margin-top:2px;
    color:var(--axon-muted);
    font-size:12px;
}

/* Lightweight toast */
.axon-toast-host{
    position:fixed;
    right:16px;
    bottom:16px;
    z-index:13000;
    display:flex;
    flex-direction:column;
    gap:8px;
    pointer-events:none;
}
.axon-toast{
    pointer-events:auto;
    min-width:220px;
    max-width:360px;
    padding:12px 14px;
    border-radius:12px;
    border:1px solid var(--axon-line);
    background:var(--axon-panel);
    color:var(--axon-text);
    box-shadow:var(--axon-shadow);
    font-size:13px;
    font-weight:600;
    animation:axon-toast-in .2s ease;
}
.axon-toast.is-error{border-color:rgba(220,38,38,.35);background:#fef2f2;color:#991b1b}
.axon-toast.is-ok{border-color:rgba(22,163,74,.35);background:#f0fdf4;color:#166534}
@keyframes axon-toast-in{
    from{opacity:0;transform:translateY(8px)}
    to{opacity:1;transform:none}
}

/* List skeleton */
.axon-skeleton-row td{
    position:relative;
    overflow:hidden;
}
.axon-skeleton-row td::after{
    content:"";
    display:block;
    height:12px;
    border-radius:6px;
    background:linear-gradient(90deg,#e2e8f0 0%,#f1f5f9 50%,#e2e8f0 100%);
    background-size:200% 100%;
    animation:axon-shimmer 1.2s linear infinite;
}
@keyframes axon-shimmer{
    from{background-position:200% 0}
    to{background-position:-200% 0}
}

/* ===========================
   AXON Cloud FORM ELEMENTS
=========================== */

.content label{
    display:block;
    color:var(--axon-muted);
    font-size:13px;
    font-weight:650;
    margin-bottom:7px;
    letter-spacing:.01em;
}

.content input,
.content select,
.content textarea{
    width:100%;
    min-height:44px;
    background:var(--axon-panel-2);
    color:var(--axon-text);
    border:1px solid var(--axon-line-strong);
    border-radius:var(--axon-radius-sm);
    padding:10px 12px;
    box-sizing:border-box;
    font-family:inherit;
    font-size:14px;
    outline:none;
    transition:border-color .15s ease, box-shadow .15s ease;
}

.content input:focus,
.content select:focus,
.content textarea:focus{
    border-color:var(--axon-primary);
    box-shadow:var(--axon-focus);
}

.content input::placeholder,
.content textarea::placeholder{
    color:var(--axon-muted);
}

.content input[type="date"]{
    color-scheme:light;
}

.content input[type="checkbox"],
.content input[type="radio"]{
    width:auto;
    min-height:auto;
    accent-color:var(--axon-primary);
}

.content textarea{
    min-height:110px;
    resize:vertical;
}

/* ===========================
   AXON Cloud FORM GRIDS
=========================== */

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

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

.form-grid-4{
    display:grid;
    grid-template-columns:repeat(4,minmax(160px,1fr));
    gap:14px;
}

.form-grid-filter{
    display:grid;
    grid-template-columns:minmax(180px,1fr) minmax(160px,1fr) minmax(160px,1fr) minmax(160px,1fr) 150px;
    gap:14px;
    align-items:end;
}

.form-grid-filter .btn{
    height:40px;
    min-width:auto;
}

.form-actions{
    margin-top:20px;
    display:flex;
    gap:12px;
    align-items:center;
    flex-wrap:wrap;
}

.table-actions{
    display:flex;
    gap:8px;
    align-items:center;
    white-space:nowrap;
}

.btn-small{
    min-width:auto;
    height:38px;
    padding:0 12px;
    font-size:13px;
}
.action-btn{
    min-width:auto;
    height:40px;
}
.table-wrap{
    width:100%;
    overflow-x:auto;
}

.axon-table{
    width:100%;
    min-width:1100px;
    border-collapse:collapse;
}

.axon-table th,
.axon-table td{
    padding:14px 12px;
    border-bottom:1px solid var(--axon-line);
    text-align:left;
    white-space:nowrap;
    vertical-align:middle;
}

.axon-table th{
    color:var(--axon-muted);
    background:var(--axon-panel-2);
    font-size:13px;
}

.axon-table td{
    font-size:14px;
}

@media(max-width:1100px){
    .form-grid-filter{
        grid-template-columns:1fr 1fr;
    }

    .form-grid-3,
    .form-grid-4{
        grid-template-columns:repeat(2,minmax(160px,1fr));
    }
}

@media(max-width:700px){
    .form-grid-2,
    .form-grid-3,
    .form-grid-4,
    .form-grid-filter{
        grid-template-columns:1fr;
    }

    .form-grid-filter .btn{
        width:100%;
    }
}

.axon-lookup { position: relative; width: 100%; }
.axon-lookup-native,
select.axon-lookup-native[hidden] {
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    width: 1px !important;
    height: 1px !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-width: 1px !important;
    max-height: 1px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    opacity: 0 !important;
    pointer-events: none !important;
    appearance: none !important;
    -webkit-appearance: none !important;
}
.axon-lookup-input {
    width: 100%;
    min-height: 40px;
    box-sizing: border-box;
    background: var(--axon-bg-elevated);
    color: var(--axon-text);
    -webkit-text-fill-color: var(--axon-text);
    caret-color: var(--axon-text);
    border: 1px solid var(--axon-line-strong);
    border-radius: 10px;
    padding: 8px 12px;
    -webkit-appearance: none;
    appearance: none;
}
.axon-lookup-input:focus {
    color: var(--axon-text);
    -webkit-text-fill-color: var(--axon-text);
}
.axon-lookup-input::placeholder {
    color: var(--axon-muted);
    opacity: 1;
}
.axon-session-field .axon-lookup-input,
.axon-session-panel .axon-lookup-input {
    height: 42px;
    min-height: 42px;
    background: var(--axon-bg-elevated);
    color: var(--axon-text);
}
.axon-lookup-list {
    position: absolute;
    z-index: 12000;
    left: 0; right: 0;
    top: 100%;
    margin-top: 4px;
    max-height: 280px;
    overflow: auto;
    background: var(--axon-panel);
    border: 1px solid var(--axon-line-strong);
    border-radius: 10px;
    box-shadow: 0 12px 32px rgba(0,0,0,.35);
}
.axon-lookup-list[hidden] { display: none !important; }
.axon-lookup-list:not([hidden]) { display: block; }
.card, .axon-settings-card, .table-panel, .filter-panel, .rac-card, .rac-cc-main, .rac-cc-side {
    overflow: visible;
}
.axon-lookup-item {
    display: block;
    width: 100%;
    text-align: left;
    background: transparent;
    border: 0;
    color: var(--axon-text);
    padding: 10px 12px;
    cursor: pointer;
    font-size: 14px;
}
.axon-lookup-item.is-active,
.axon-lookup-item:hover { background: color-mix(in srgb, var(--axon-primary) 12%, #fff); }
.axon-lookup-empty { padding: 10px 12px; color: var(--axon-muted); font-size: 13px; }

/* Code cell + catalog magnifier */
.axon-code-cell {
    position: relative;
    display: flex;
    align-items: stretch;
    gap: 0;
    width: 100%;
    min-width: 0;
}
.axon-code-cell > input,
.axon-code-cell > select {
    flex: 1 1 auto;
    min-width: 0;
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}
.axon-catalog-btn {
    flex: 0 0 36px;
    width: 36px;
    min-width: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    border: 1px solid var(--axon-line-strong);
    border-left: 0;
    border-radius: 0 10px 10px 0;
    background: #1e293b;
    color: #cbd5e1;
    cursor: pointer;
}
.axon-catalog-btn:hover {
    background: #2563eb;
    color: #fff;
    border-color: #1d4ed8;
}
.axon-catalog-modal[hidden] { display: none !important; }
.axon-catalog-modal {
    position: fixed;
    inset: 0;
    z-index: 14000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.axon-catalog-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 23, 0.72);
}
.axon-catalog-dialog {
    position: relative;
    z-index: 1;
    width: min(720px, 100%);
    max-height: min(80vh, 640px);
    display: flex;
    flex-direction: column;
    background: var(--axon-panel-2);
    border: 1px solid var(--axon-line-strong);
    border-radius: 14px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
    overflow: hidden;
    color: #e2e8f0;
}
.axon-catalog-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px 8px;
    flex: 0 0 auto;
}
.axon-catalog-title { font-size: 16px; font-weight: 800; color: var(--axon-text-strong); }
.axon-catalog-x {
    background: transparent;
    border: 0;
    color: #94a3b8;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
}
.axon-catalog-toolbar {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 0 16px 10px;
    flex: 0 0 auto;
}
.axon-catalog-search {
    width: 100%;
    box-sizing: border-box;
    height: 40px;
    padding: 0 12px;
    border-radius: 10px;
    border: 1px solid var(--axon-line-strong);
    background: var(--axon-bg-elevated);
    color: var(--axon-text-strong);
    font-size: 14px;
}
.axon-catalog-search:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25);
}
.axon-catalog-hint { color: #64748b; font-size: 12px; }
.axon-catalog-body {
    flex: 1 1 auto;
    min-height: 180px;
    overflow: auto;
    border-top: 1px solid #1e293b;
    border-bottom: 1px solid #1e293b;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}
.axon-catalog-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.axon-catalog-table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #1e293b;
    color: #94a3b8;
    text-align: left;
    padding: 8px 12px;
    font-size: 11px;
    font-weight: 700;
}
.axon-catalog-table tbody td {
    padding: 9px 12px;
    border-bottom: 1px solid #1e293b;
    vertical-align: middle;
}
.axon-catalog-table tbody tr {
    cursor: pointer;
}
.axon-catalog-table tbody tr:hover,
.axon-catalog-table tbody tr.is-active {
    background: #1e3a5f;
}
.axon-catalog-code {
    width: 28%;
    font-weight: 700;
    color: var(--axon-text-strong);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.axon-catalog-name {
    color: #cbd5e1;
}
.axon-catalog-empty {
    padding: 28px 16px;
    text-align: center;
    color: #94a3b8;
}
.axon-catalog-foot {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 10px 16px;
    flex: 0 0 auto;
}
.axon-catalog-close-btn {
    min-height: 34px;
    padding: 0 14px;
    border-radius: 8px;
    border: 1px solid var(--axon-line-strong);
    background: #1e293b;
    color: #e2e8f0;
    font-weight: 700;
    cursor: pointer;
}
.axon-catalog-close-btn:hover { background: #334155; }

/* Hide legacy bottom Save/Cancel only when header Spremi was actually mounted.
   (Mounted bar lives outside <form>, so form:has(.axon-form-bar-config) alone
   used to hide the only working submit when the header button failed.) */
body:has(.axon-form-actions-mounted) form:has(.axon-form-bar-config) .product-actions,
body:has(.axon-form-actions-mounted) form:has(.axon-form-bar-config) .ap-form-actions,
body:has(.axon-form-actions-mounted) form:has(.axon-form-bar-config) .form-actions,
body:has(.axon-form-actions-mounted) form:has(.axon-form-bar-config) .employee-form-actions,
body:has(.axon-form-actions-mounted) form:has(.axon-form-bar-config) .axon-form-actions,
form:has(.axon-form-actions-mounted) .product-actions,
form:has(.axon-form-actions-mounted) .ap-form-actions,
form:has(.axon-form-actions-mounted) .form-actions,
form:has(.axon-form-actions-mounted) .employee-form-actions,
form:has(.axon-form-actions-mounted) .axon-form-actions {
    display: none !important;
}

form:has(.axon-form-bar-config) .axon-form-bar-host,
form .axon-form-bar-host {
    display: none !important;
}

.axon-form-actions-mounted {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

/* Page header — title left, actions right */
.axon-page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 22px;
}
.axon-page-head {
    flex: 1;
    min-width: min(100%, 240px);
}
.axon-page-title {
    font-size: clamp(24px, 2.5vw, 34px);
    font-weight: 800;
    letter-spacing: -.03em;
    margin: 0 0 6px;
    color: var(--axon-text-strong, #f8fafc);
}
.axon-page-sub {
    margin: 0;
    color: var(--axon-muted, #94a3b8);
    font-size: 14px;
}

.axon-refresh-btn {
    height: 36px;
    min-width: 36px;
    padding: 0 12px;
    border-radius: 10px;
    border: 1px solid var(--axon-line-strong, #334155);
    background: var(--axon-bg-elevated, #ffffff);
    color: var(--axon-text, #0f172a);
    text-decoration: none !important;
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
}
.axon-refresh-btn.is-compact { padding: 0; width: 40px; height: 40px; }
.axon-refresh-btn:hover { border-color: var(--axon-primary); color: var(--axon-primary); }
.axon-refresh-btn.is-spinning svg { animation: axon-refresh-spin .7s linear infinite; }
@keyframes axon-refresh-spin { to { transform: rotate(360deg); } }
.axon-list-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}
.axon-list-toolbar-main { flex: 1 1 auto; min-width: 0; }

.axon-doc-status-rail {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    width: 100%;
    margin: -8px 0 14px;
    padding: 0 0 10px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}
.axon-doc-status-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: #f8fafc;
    color: #334155;
    font-size: 12.5px;
    line-height: 1.2;
}
.axon-doc-status-chip em {
    font-style: normal;
    font-weight: 650;
    color: #64748b;
    white-space: nowrap;
}
.axon-doc-status-chip a,
.axon-doc-status-chip strong {
    font-weight: 800;
    color: #0f172a;
    text-decoration: none;
    white-space: nowrap;
}
.axon-doc-status-chip a:hover {
    color: var(--axon-primary, #2563eb);
    text-decoration: underline;
}
.axon-doc-status-chip.is-ok {
    background: #ecfdf5;
    border-color: #a7f3d0;
}
.axon-doc-status-chip.is-ok em { color: #047857; }
.axon-doc-status-chip.is-warn {
    background: #fffbeb;
    border-color: #fde68a;
}
.axon-doc-status-chip.is-warn em { color: #b45309; }
.axon-doc-status-chip.is-danger {
    background: #fef2f2;
    border-color: #fecaca;
}
.axon-doc-status-chip.is-danger em { color: #b91c1c; }
.axon-doc-status-chip.is-info {
    background: #eff6ff;
    border-color: #bfdbfe;
}
.axon-doc-status-chip.is-info em { color: #1d4ed8; }

.axon-action-bar,
.doc-toolbar {
    position: relative;
    z-index: 40;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    width: 100%;
    margin: 0 0 14px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
    overflow: visible;
}

.axon-action-bar:has(.axon-action-menu.is-open),
.doc-toolbar:has(.axon-action-menu.is-open) {
    z-index: 60;
}

.axon-action-bar-primary {
    position: relative;
    z-index: 1;
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.axon-action-bar-form {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    margin: 0 !important;
}

.axon-action-bar-input {
    height: 36px;
    min-height: 36px;
    width: 140px;
    box-sizing: border-box;
    background: var(--axon-bg-elevated);
    color: #0f172a;
    border: 1px solid var(--axon-line-strong);
    border-radius: 8px;
    padding: 0 10px;
    font-size: 13px;
}

.axon-action-bar-input-wide {
    width: 100%;
    min-width: 0;
}

.axon-action-bar .btn,
.axon-action-bar button.btn,
.axon-action-bar a.btn,
.doc-toolbar .btn,
.doc-toolbar button.btn,
.doc-toolbar a.btn {
    width: auto !important;
    min-width: auto !important;
    max-width: none !important;
    height: 36px !important;
    min-height: 36px !important;
    padding: 0 12px !important;
    font-size: 13px !important;
    border-radius: 8px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap !important;
    line-height: 1 !important;
}

.axon-action-menu {
    position: relative;
    z-index: 90;
    display: inline-flex;
}

.axon-action-menu.is-open {
    z-index: 200;
}

.axon-action-menu-toggle {
    gap: 6px !important;
}

.axon-action-menu-caret {
    font-size: 11px;
    opacity: 0.85;
}

.axon-action-menu-panel {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    z-index: 300;
    min-width: 260px;
    max-width: min(360px, 92vw);
    padding: 8px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: var(--axon-panel-2);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
    flex-direction: column;
    gap: 2px;
}

.axon-action-menu-panel[hidden] {
    display: none !important;
}

.axon-action-menu.is-open .axon-action-menu-panel {
    display: flex !important;
}

.axon-action-menu-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 8px 8px 10px;
    margin-bottom: 4px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.axon-action-menu-field label {
    font-size: 11px;
    color: #94a3b8;
    font-weight: 600;
}

.axon-action-menu-field select,
.axon-action-menu-field .ap-select {
    width: 100%;
    height: 36px;
    border-radius: 8px;
    border: 1px solid var(--axon-line-strong);
    background: var(--axon-bg-elevated);
    color: #0f172a;
    padding: 0 10px;
}

.axon-action-menu-item {
    display: flex !important;
    align-items: center;
    width: 100%;
    margin: 0;
    padding: 10px 12px !important;
    border: 0 !important;
    border-radius: 8px !important;
    background: transparent !important;
    color: #0f172a !important;
    font: inherit;
    font-size: 13px !important;
    font-weight: 600;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    height: auto !important;
    min-height: 0 !important;
    white-space: normal !important;
}

.axon-action-menu-item:hover {
    background: #eff6ff !important;
    color: #0f172a !important;
}

.axon-action-menu-item.is-danger {
    color: #b91c1c !important;
}

.axon-action-menu-item.is-danger:hover {
    background: #fef2f2 !important;
    color: #991b1b !important;
}

.axon-action-menu-form {
    display: block !important;
    margin: 0 !important;
}

.axon-action-menu-form .axon-action-menu-item,
.axon-action-menu-converts form,
.axon-action-menu-converts .btn,
.axon-action-menu-converts button,
.axon-action-menu-converts a.btn {
    width: 100% !important;
    justify-content: flex-start !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 10px 12px !important;
    border: 0 !important;
    border-radius: 8px !important;
    background: transparent !important;
    color: #0f172a !important;
    box-shadow: none !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-align: left !important;
}

.axon-action-menu-converts form {
    display: block !important;
    margin: 0 !important;
}

.axon-action-menu-converts .btn:hover,
.axon-action-menu-converts button:hover,
.axon-action-menu-converts a.btn:hover {
    background: #eff6ff !important;
    color: #0f172a !important;
}

.axon-action-menu-sep {
    height: 1px;
    margin: 6px 4px;
    background: rgba(148, 163, 184, 0.18);
}

.axon-page-actions .axon-action-bar,
.axon-page-actions .doc-toolbar {
    margin: 0;
    padding: 0;
    border: 0;
    max-width: none;
}


.axon-pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 8px;
}
.axon-pager-meta {
    margin: 0;
    color: #94a3b8;
    font-size: 13px;
}
.axon-pager-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}
.axon-pager-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid var(--axon-line-strong);
    border-radius: 8px;
    background: var(--axon-bg-elevated);
    color: var(--axon-text);
    text-decoration: none;
    font-size: 13px;
    line-height: 1;
    box-sizing: border-box;
}
a.axon-pager-btn:hover {
    background: #1e293b;
    border-color: #475569;
}
.axon-pager-btn.is-on {
    background: #1d4ed8;
    border-color: #2563eb;
    color: #fff;
}
.axon-pager-btn.is-off {
    opacity: .4;
    pointer-events: none;
}

/* Laravel default pagination uses Tailwind w-5/h-5 SVGs; without Tailwind they fill the viewport. */
nav[role="navigation"] svg,
svg.w-5,
svg.h-5 {
    width: 1.25rem !important;
    height: 1.25rem !important;
    max-width: 1.25rem;
    max-height: 1.25rem;
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
}

/* ===========================
   Form required / optional UX
=========================== */

/* Optional: leave default look — only required fields are highlighted */
.axon-field-optional,
.ap-page input.axon-field-optional,
.ap-page select.axon-field-optional,
.ap-page textarea.axon-field-optional,
.content input.axon-field-optional,
.content select.axon-field-optional,
.content textarea.axon-field-optional {
    /* no tint */
}

/* Yellow = required for submit / query — solid yellow + dark text (readable on dark chrome) */
.axon-field-required,
.ap-page input.axon-field-required,
.ap-page select.axon-field-required,
.ap-page textarea.axon-field-required,
.content input.axon-field-required,
.content select.axon-field-required,
.content textarea.axon-field-required,
.product-field input.axon-field-required,
.product-field select.axon-field-required,
.product-field textarea.axon-field-required {
    background: #fef9c3 !important;
    color: #0f172a !important;
    -webkit-text-fill-color: #0f172a !important;
    caret-color: #0f172a !important;
    border-color: #ca8a04 !important;
    box-shadow: 0 0 0 1px rgba(202, 138, 4, 0.35);
}

.content select.axon-field-required option {
    color: #0f172a;
    background: #fff;
}

.axon-field-invalid,
.ap-page input.axon-field-invalid,
.ap-page select.axon-field-invalid,
.ap-page textarea.axon-field-invalid,
.content input.axon-field-invalid,
.content select.axon-field-invalid,
.content textarea.axon-field-invalid {
    border-color: #ef4444 !important;
    background: rgba(239, 68, 68, 0.14) !important;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.28) !important;
}

.axon-field-invalid-wrap > span:first-child,
.axon-field-invalid-wrap > label:first-child {
    color: #fca5a5;
}

.axon-form-missing {
    margin: 0 0 12px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(239, 68, 68, 0.55);
    background: rgba(127, 29, 29, 0.35);
    color: #fecaca;
    font-size: 13px;
    line-height: 1.4;
}
.axon-form-missing strong {
    display: block;
    margin-bottom: 4px;
    color: #fee2e2;
}

/* Legacy sticky bar — disabled; actions live in .axon-page-actions */
.axon-form-bar-host,
.axon-form-bar {
    display: none !important;
}

/* Save-in-progress feedback (axon-form-bar.js) — ERP + verticals */
.axon-form-bar-save.is-saving,
button.is-saving,
input.is-saving,
form.is-saving .axon-form-bar-save,
form.is-saving button[type="submit"].is-saving {
    cursor: wait;
    opacity: 0.9;
    pointer-events: none;
}

form.is-saving {
    cursor: progress;
}

.axon-form-bar-save .axon-save-spinner,
.axon-ico.axon-save-spinner,
.axon-save-spinner {
    width: 16px;
    height: 16px;
    animation: axon-save-spin .7s linear infinite;
    flex: 0 0 auto;
}

@keyframes axon-save-spin {
    to { transform: rotate(360deg); }
}

/* Filter actions — compact, right-aligned with other page buttons */
.axon-filter-bar-actions {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    margin: 0 0 0 auto;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    flex: 0 0 auto;
    width: auto;
    max-width: 100%;
}

.axon-filter-bar-actions.is-inline {
    margin-left: auto;
}

.axon-filter-bar-actions .btn,
.axon-filter-bar-actions .axon-filter-apply,
.axon-filter-bar-actions .axon-filter-reset {
    height: 32px;
    min-height: 32px;
    padding: 0 10px;
    font-size: 12px;
    font-weight: 650;
    border-radius: 8px;
    gap: 5px;
    white-space: nowrap;
}

.axon-filter-bar-actions .axon-ico {
    width: 13px;
    height: 13px;
}

.axon-filter-bar-extra {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.ap-panel-header > .axon-filter-bar-actions,
.ap-filters > .axon-filter-bar-actions,
.ap-filters-tight > .axon-filter-bar-actions,
.axon-filter-bar > .axon-filter-bar-actions,
.axon-filter-bar-wrap > .axon-filter-bar-actions {
    margin-left: auto;
}

.ap-panel-body > .axon-filter-bar-actions {
    display: flex;
    width: 100%;
    margin-top: 12px;
    justify-content: flex-end;
}

.ap-filters.axon-filter-bar-wrap,
.ap-panel.axon-filter-bar-wrap,
form.axon-filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 12px;
}

.ap-filters.axon-filter-bar-wrap .ap-input,
.ap-filters.axon-filter-bar-wrap .ap-select,
.ap-filters.axon-filter-bar-wrap .axon-date-input,
form.axon-filter-bar .ap-input,
form.axon-filter-bar .ap-select,
form.axon-filter-bar input[type="text"],
form.axon-filter-bar input[type="search"],
form.axon-filter-bar select {
    flex: 1 1 140px;
    min-width: 120px;
    max-width: 260px;
}

.ap-filters.axon-filter-bar-wrap .axon-date-input,
form.axon-filter-bar .axon-date-input {
    max-width: 11rem;
}

/* Loose filter submit/reset buttons in filter rows → right cluster */
.ap-filters > button[type="submit"],
.ap-filters-tight > button[type="submit"],
.ap-filters > .ap-btn[type="submit"],
.ap-filters-tight > .ap-btn[type="submit"],
.ap-filters > .btn[type="submit"],
.ap-filters-tight > .btn[type="submit"],
form.axon-filter-bar > button[type="submit"],
form.axon-filter-bar > .btn[type="submit"] {
    margin-left: auto;
    height: 32px;
    min-height: 32px;
    padding: 0 12px;
    font-size: 12px;
}

.ap-filters > a.btn,
.ap-filters-tight > a.btn,
.ap-filters > a.ap-btn,
.ap-filters-tight > a.ap-btn,
form.axon-filter-bar > a.btn {
    height: 32px;
    min-height: 32px;
    padding: 0 10px;
    font-size: 12px;
}


/* AXON light table parity */
table.table tbody tr:nth-child(even) td,
table[data-list-key] tbody tr:nth-child(even) td,
.sales-table-wrap .sales-table tbody tr:nth-child(even) td {
    background: #f8fafc !important;
}
table.table tbody tr:nth-child(odd) td,
table[data-list-key] tbody tr:nth-child(odd) td {
    background: #ffffff !important;
}
table.table tbody tr:hover td,
table[data-list-key] tbody tr:hover td {
    background: color-mix(in srgb, var(--axon-primary) 8%, #fff) !important;
}
table.table tfoot td,
table.table tfoot th,
table[data-list-key] tfoot td {
    background: #f8fafc !important;
    color: #0f172a !important;
    border-top: 1px solid #cbd5e1 !important;
}

/* GLOBAL table contrast — dark ink on light cells (never light-on-light) */
table tbody td,
table tbody th,
.ap-table tbody td,
.rac-table tbody td,
.ops-dense-table tbody td,
table[data-list-key] tbody td,
.sales-table tbody td,
.products-table tbody td {
    color: #0f172a !important;
}
table thead th,
.ap-table thead th,
.rac-table thead th,
.ops-dense-table thead th,
table[data-list-key] thead th {
    background: #f1f5f9 !important;
    color: #334155 !important;
}
table tfoot td,
table tfoot th,
.ap-table tfoot td,
.rac-table tfoot td,
table[data-list-key] tfoot td {
    background: #f1f5f9 !important;
    color: #0f172a !important;
}
.ap-table tr:nth-child(even) td,
.rac-table tr:nth-child(even) td {
    background: #f8fafc !important;
}
.ap-table tr:nth-child(odd) td,
.rac-table tr:nth-child(odd) td {
    background: #ffffff !important;
}
.ap-label, label.ap-label, .sales-filter-grid label, .ap-filters label, .form-grid-filter label {
    color: #475569 !important;
}
.ap-muted { color: #64748b !important; }
.content, .main, .ap-page, .rac-card {
    color: #0f172a;
}

/* RAC tables — light zebra (workspace light theme) */
.rac-table-wrap{background:#fff;border-radius:10px}
.rac-table{background:#fff}
.rac-table thead th{
    background:#f1f5f9!important;color:#334155!important;
    border-bottom:1px solid #cbd5e1!important;border-right:1px solid #e2e8f0!important;
}
.rac-table tbody td{
    background:#fff!important;color:#0f172a!important;
    border-bottom:1px solid #e2e8f0!important;border-right:1px solid #e2e8f0!important;
}
.rac-table tbody tr:nth-child(even) td{background:#f8fafc!important}
.rac-table tbody tr:hover td{background:color-mix(in srgb, var(--axon-primary,#2563eb) 10%, #fff)!important}
.rac-table tfoot td,.rac-table tfoot th{
    background:#f1f5f9!important;color:#0f172a!important;border-top:1px solid #cbd5e1!important;
}
.rac-empty{background:#fff!important;color:#64748b!important}
.rac-code a{color:var(--axon-primary,#2563eb)!important}

/* Buttons — always readable on light workspace */
.btn, a.btn, button.btn {
    box-shadow: 0 1px 2px rgba(15,23,42,.06);
}
.btn-secondary, a.btn-secondary, button.btn-secondary {
    background: #ffffff !important;
    color: #0f172a !important;
    border: 1px solid #cbd5e1 !important;
}
.btn-secondary:hover, a.btn-secondary:hover {
    background: #f1f5f9 !important;
}
.btn-primary, a.btn-primary, button.btn-primary,
button[type="submit"].btn {
    color: #fff !important;
    background: #2563eb !important;
    border-color: #2563eb !important;
}
/* Default solid .btn without secondary = white label on blue fill */
a.btn:not(.btn-secondary):not(.btn-danger):not(.btn-ghost):not(.btn-link),
button.btn:not(.btn-secondary):not(.btn-danger):not(.btn-ghost):not(.btn-link) {
    color: #fff !important;
}
.page-header .btn, .ap-actions .btn, .ap-actions .ap-btn,
.axon-page-actions .btn, .axon-page-actions .ap-btn {
    min-height: 40px;
}

/* Module toolbars — keep secondary/ghost readable on light panels */
.products-toolbar .btn-secondary,
.products-filters .btn-secondary,
.product-actions .btn-secondary,
.import-actions .btn-secondary,
.preview-actions .btn-secondary,
.batch-actions .btn-secondary,
.modal-footer .btn-secondary,
.pc-btn-secondary,
.pcr-btn-secondary,
.ph-btn-secondary,
.pv3-btn.pv3-btn-secondary {
    background: #ffffff !important;
    color: #0f172a !important;
    border: 1px solid #cbd5e1 !important;
}
.products-toolbar .btn-secondary:hover,
.products-filters .btn-secondary:hover,
.product-actions .btn-secondary:hover,
.import-actions .btn-secondary:hover,
.preview-actions .btn-secondary:hover,
.batch-actions .btn-secondary:hover,
.modal-footer .btn-secondary:hover,
.pc-btn-secondary:hover,
.pcr-btn-secondary:hover,
.ph-btn-secondary:hover,
.pv3-btn.pv3-btn-secondary:hover {
    background: #f1f5f9 !important;
    border-color: #94a3b8 !important;
    color: #0f172a !important;
}

/* —— Drag & drop attachments —— */
.axon-dz {
  position: relative;
  border: 1.5px dashed #94a3b8;
  border-radius: 14px;
  background: #f8fafc;
  padding: 18px 16px 14px;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
  min-width: min(100%, 280px);
  flex: 1 1 280px;
}
.axon-dz:hover,
.axon-dz.is-drag {
  border-color: #2563eb;
  background: #eff6ff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}
.axon-dz.has-files {
  border-style: solid;
  border-color: #cbd5e1;
  background: #fff;
}
.axon-dz__input {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  pointer-events: none !important;
}
.axon-dz__body {
  text-align: center;
  pointer-events: none;
}
.axon-dz__body .axon-dz__browse {
  pointer-events: auto;
}
.axon-dz__icon {
  width: 42px;
  height: 42px;
  margin: 0 auto 8px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #e2e8f0;
  color: #1e40af;
  font-size: 20px;
  font-weight: 700;
}
.axon-dz.is-drag .axon-dz__icon {
  background: #dbeafe;
}
.axon-dz__title {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
}
.axon-dz__hint {
  margin: 4px 0 10px;
  font-size: 12px;
  color: #64748b;
}
.axon-dz__browse {
  height: 34px !important;
  min-height: 34px !important;
  font-size: 12px !important;
  padding: 0 12px !important;
}
.axon-dz__list {
  margin-top: 12px;
  display: grid;
  gap: 6px;
  text-align: left;
}
.axon-dz__file {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  font-size: 12px;
}
.axon-dz__name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #0f172a;
  font-weight: 600;
}
.axon-dz__size {
  color: #64748b;
  flex: 0 0 auto;
}
.axon-dz__remove {
  border: 0;
  background: transparent;
  color: #64748b;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
  border-radius: 6px;
}
.axon-dz__remove:hover {
  color: #b91c1c;
  background: #fee2e2;
}
.axon-dz-form {
  display: flex;
  gap: 12px;
  align-items: stretch;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.axon-dz-form > .axon-dz {
  flex: 1 1 320px;
}
.axon-dz-form__meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 180px;
}
.rac-attach-upload.axon-dz-form {
  align-items: flex-start;
}
.rac-attach-upload .axon-dz {
  flex: 1 1 100%;
}
.rac-cc-fields .axon-dz {
  margin-top: 6px;
}
