.ozxerp-admin-wrap {
    max-width: 1320px;
}

.ozxerp-topbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin: 18px 0 10px;
}

.ozxerp-topbar h1 {
    margin-bottom: 6px;
}

.ozxerp-badge {
    background: #ffeee7;
    color: #861f41;
    padding: 10px 14px;
    border-radius: 999px;
    font-weight: 600;
    white-space: nowrap;
}

.ozxerp-analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 14px;
    margin: 18px 0 24px;
}

.ozxerp-card {
    background: #fff;
    border: 1px solid #f0d9df;
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 4px 18px rgba(20, 20, 20, 0.03);
}

.ozxerp-card strong {
    display: block;
    font-size: 30px;
    color: #861f41;
    margin-bottom: 8px;
}

.ozxerp-card span {
    color: #666;
    font-size: 14px;
}

.ozxerp-card-highlight {
    background: linear-gradient(180deg, #fff7f3, #ffffff);
}

.ozxerp-builder-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(320px, 420px);
    gap: 20px;
    align-items: start;
}

.ozxerp-builder-main,
.ozxerp-builder-sidebar {
    display: grid;
    gap: 18px;
}

.ozxerp-panel,
.ozxerp-preview-card,
.ozxerp-help-card {
    background: #fff;
    border: 1px solid #f0d9df;
    border-radius: 22px;
    padding: 22px;
    box-shadow: 0 10px 26px rgba(25, 15, 20, 0.03);
}

.ozxerp-panel h2,
.ozxerp-preview-card h2,
.ozxerp-help-card h3 {
    margin-top: 0;
    margin-bottom: 16px;
    color: #861f41;
}

.ozxerp-radio-grid,
.ozxerp-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 12px;
}

.ozxerp-radio-grid label,
.ozxerp-checkbox-grid label {
    display: block;
    background: #fff8f5;
    border: 1px solid #f2d6cc;
    padding: 14px;
    border-radius: 14px;
}

.ozxerp-form-grid,
.ozxerp-two-col,
.ozxerp-three-col,
.ozxerp-color-grid {
    display: grid;
    gap: 14px;
}

.ozxerp-form-grid {
    grid-template-columns: repeat(2, 1fr);
}

.ozxerp-two-col {
    grid-template-columns: repeat(2, 1fr);
}

.ozxerp-three-col,
.ozxerp-color-grid {
    grid-template-columns: repeat(3, 1fr);
}

.ozxerp-color-grid {
    grid-template-columns: repeat(5, 1fr);
    align-items: end;
}

.ozxerp-label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #2a2a2a;
}

.ozxerp-panel input[type="text"],
.ozxerp-panel input[type="email"],
.ozxerp-panel input[type="url"],
.ozxerp-panel input[type="number"],
.ozxerp-panel select,
.ozxerp-panel textarea {
    width: 100%;
    max-width: 100%;
    border: 1px solid #d9d9df;
    border-radius: 12px;
    padding: 12px 14px;
    box-sizing: border-box;
}

.ozxerp-panel input[type="color"] {
    width: 100%;
    height: 46px;
    border: 1px solid #d9d9df;
    border-radius: 12px;
    padding: 4px;
    background: #fff;
    box-sizing: border-box;
}

.ozxerp-actions-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    background: #fff;
    border: 1px solid #f0d9df;
    border-radius: 22px;
    padding: 18px 22px;
}

.ozxerp-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.ozxerp-preview-box {
    border: 1px solid #f0d9df;
    padding: 20px;
    border-radius: 20px;
}

.ozxerp-preview-icon {
    font-size: 26px;
    margin-bottom: 10px;
}

.ozxerp-preview-urgency {
    display: inline-block;
    margin-bottom: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #ffeee7;
    color: #861f41;
    font-size: 12px;
    font-weight: 700;
}

.ozxerp-preview-urgency.is-hidden {
    display: none;
}

.ozxerp-preview-box h3 {
    margin: 0 0 8px;
    font-size: 23px;
    line-height: 1.3;
}

.ozxerp-preview-box p {
    margin: 0 0 14px;
    line-height: 1.6;
}

.ozxerp-preview-fields {
    display: grid;
    gap: 10px;
    margin-bottom: 12px;
}

.ozxerp-preview-fields input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid #e4d8dc;
    background: #fff;
    color: #555;
}

.ozxerp-preview-button {
    width: 100%;
    border: 0;
    padding: 13px 16px;
    font-weight: 700;
    cursor: default;
    margin-bottom: 12px;
}

.ozxerp-preview-trust {
    color: #666;
    font-size: 13px;
}

.ozxerp-help-card ul {
    margin: 0;
    padding-left: 18px;
}

.ozxerp-help-card li {
    margin-bottom: 10px;
}

@media (max-width: 1200px) {
    .ozxerp-builder-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .ozxerp-form-grid,
    .ozxerp-two-col,
    .ozxerp-three-col,
    .ozxerp-color-grid {
        grid-template-columns: 1fr;
    }

    .ozxerp-actions-row,
    .ozxerp-topbar {
        flex-direction: column;
        align-items: stretch;
    }
}
/* -----------------------------
Popup Preview Logo
-----------------------------*/

.ozxerp-popup-logo{
    text-align:center;
    margin-bottom:12px;
}

.ozxerp-popup-logo img{
    width:48px;
    height:auto;
    max-height:48px;
    object-fit:contain;
}
/* Preview popup layout fix */

.ozxerp-preview-box{
    text-align:center;
}

.ozxerp-preview-box img{
    display:block;
    margin:0 auto 12px auto;
}