.as-wrap {
    width: 100%;
}

.as-stack {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.as-panel {
    background: #ffffff;
    border: 1px solid #d8d8d8;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
}

.as-panel h2 {
    margin: 0 0 16px;
    font-size: 1.3rem;
    line-height: 1.2;
}

.as-notice {
    margin-bottom: 20px;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid #cfd8cf;
}

.as-notice-success {
    background: #f3faf3;
    color: #1f5f2a;
}

.as-order-form {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.as-form-row {
    display: grid;
    gap: 14px;
    margin-bottom: 12px;
}

.as-form-row-2 {
    grid-template-columns: 1.4fr 1fr;
}

.as-form-row-3 {
    grid-template-columns: 1fr 1fr 1fr;
}

.as-field {
    margin-bottom: 0;
}

.as-field label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
}

.as-field input,
.as-field textarea,
.as-field select {
    width: 100%;
    padding: 9px 11px;
    border: 1px solid #cfcfcf;
    border-radius: 10px;
    background: #ffffff;
    box-sizing: border-box;
}

.as-field textarea {
    resize: vertical;
    min-height: 90px;
}

.as-help {
    margin: 8px 0 0;
    font-size: 0.92rem;
    color: #666666;
}

.as-actions {
    margin-top: 14px;
}

.as-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border: 0;
    border-radius: 10px;
    background: #111111;
    color: #ffffff;
    text-decoration: none;
    cursor: pointer;
    font-weight: 600;
    line-height: 1;
}

.as-button-secondary {
    background: #eceff1;
    color: #111111;
}

.as-button-small {
    padding: 8px 12px;
    font-size: 0.92rem;
}

.as-media-selectors {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.as-media-slot {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border: 1px dashed #c8c8c8;
    border-radius: 12px;
    padding: 12px;
    background: #fafafa;
}

.as-media-slot .button {
    width: 100%;
    margin-right: 0;
    margin-bottom: 8px;
}

.as-media-remove {
    margin-top: 0;
}

.as-media-preview {
    margin-top: 10px;
    width: 100%;
}

.as-media-preview img {
    display: block;
    width: 100%;
    max-width: 120px;
    height: auto;
    border-radius: 10px;
    border: 1px solid #dddddd;
}

.as-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.as-table-wrap {
    overflow-x: auto;
}

.as-table {
    width: 100%;
    min-width: 980px;
    border-collapse: collapse;
}

.as-table th,
.as-table td {
    padding: 10px 9px;
    border-bottom: 1px solid #e5e5e5;
    text-align: left;
    vertical-align: middle;
}

.as-table td {
    font-size: 0.88rem;
}

.as-table th {
    background: #f6f7f8;
    font-weight: 700;
    white-space: nowrap;
    font-size: 0.95rem;
}

.as-table tfoot td {
    background: #fafafa;
}

.as-icon-col,
.as-icon-cell {
    width: 56px;
    text-align: center !important;
}

.as-header-icon {
    font-size: 18px;
    width: 18px;
    height: 18px;
    color: #333333;
}

.as-main-cell {
    transition: background-color 0.2s ease;
}

.as-order-row.is-checked-row .as-main-cell {
    background: #bfe7c3;
}

.as-title-button {
    padding: 0;
    border: 0;
    background: transparent;
    color: #111111;
    font: inherit;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}

.as-title-button:hover {
    text-decoration: underline;
}

.as-status-cell {
    text-align: center !important;
    transition: background-color 0.2s ease;
}

.as-status-cell.is-checked {
    background: #bfe7c3;
}

.as-status-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.as-status-checkbox[disabled] {
    cursor: not-allowed;
    opacity: 0.45;
}

.as-icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid #d4d8dc;
    border-radius: 10px;
    background: #f3f5f7;
    color: #222222;
    cursor: pointer;
}

.as-icon-button .dashicons {
    width: 18px;
    height: 18px;
    font-size: 18px;
    line-height: 18px;
}

.as-icon-button-delete {
    background: #fff5f5;
    border-color: #ebd2d2;
    color: #8a1f1f;
}

.as-website-cell {
    white-space: nowrap;
}

.as-no-website {
    color: #b42318;
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.as-hidden-detail-data {
    display: none;
}

.as-access-denied {
    padding: 18px;
    border: 1px solid #e3b6b6;
    background: #fff4f4;
    color: #8a1f1f;
    border-radius: 12px;
}

.as-modal,
.as-image-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
}

.as-modal.is-open,
.as-image-modal.is-open {
    display: block;
}

.as-modal-backdrop,
.as-image-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.as-modal-dialog {
    position: relative;
    z-index: 2;
    width: min(920px, calc(100vw - 32px));
    max-height: calc(100vh - 40px);
    margin: 20px auto;
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.as-modal-header {
    padding: 18px 22px;
    border-bottom: 1px solid #e5e5e5;
}

.as-modal-header h3 {
    margin: 0;
    font-size: 1.15rem;
}

.as-modal-body {
    padding: 22px;
    max-height: calc(100vh - 120px);
    overflow: auto;
}

.as-modal-close,
.as-image-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 12px;
    background: rgba(245, 245, 245, 0.95);
    color: #111111;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.as-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 18px;
}

.as-detail-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px 14px;
    border: 1px solid #e6e6e6;
    border-radius: 12px;
    background: #fafafa;
}

.as-detail-item-full {
    grid-column: 1 / -1;
}

.as-detail-label {
    font-size: 0.82rem;
    font-weight: 700;
    color: #666666;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.as-detail-value {
    font-size: 0.95rem;
    line-height: 1.45;
    color: #111111;
    word-break: break-word;
}

.as-detail-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 4px;
}

.as-detail-thumb-button {
    padding: 0;
    border: 1px solid #d8d8d8;
    border-radius: 12px;
    background: #ffffff;
    cursor: pointer;
    overflow: hidden;
}

.as-detail-thumb {
    display: block;
    width: 140px;
    height: 100px;
    object-fit: cover;
}

.as-image-modal-dialog {
    position: relative;
    z-index: 2;
    width: min(1200px, calc(100vw - 24px));
    height: calc(100vh - 24px);
    margin: 12px auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.as-image-modal-img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    border-radius: 14px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
    background: #ffffff;
}

/* =========================
   LOGIN FORM ANGLEICHEN
========================= */

#as-loginform {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Labels */
#as-loginform label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
}

/* Inputs */
#as-loginform input[type="text"],
#as-loginform input[type="password"] {
    width: 100%;
    padding: 9px 11px;
    border: 1px solid #cfcfcf;
    border-radius: 10px;
    background: #ffffff;
    box-sizing: border-box;
}

/* Wrapper von WP */
#as-loginform p {
    margin: 0;
}

/* Checkbox sauber ausrichten */
#as-loginform .login-remember {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Button wie dein System */
#as-loginform .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border: 0;
    border-radius: 10px;
    background: #111111;
    color: #ffffff;
    cursor: pointer;
    font-weight: 600;
}

/* Optional: gleiche Breite wie Register */
#as-loginform .login-submit {
    margin-top: 10px;
}

/* =========================
   LOGIN / REGISTER TABS
========================= */

.as-auth-tabs-panel {
    padding-top: 18px;
}

.as-auth-tabs-nav {
    display: flex;
    gap: 10px;
    margin-bottom: 18px;
    border-bottom: 1px solid #e5e5e5;
    padding-bottom: 12px;
}

.as-auth-tab-button {
    appearance: none;
    border: 1px solid #d6d6d6;
    background: #f5f6f7;
    color: #111111;
    border-radius: 10px;
    padding: 10px 16px;
    font-weight: 600;
    cursor: pointer;
    line-height: 1;
}

.as-auth-tab-button.is-active {
    background: #111111;
    color: #ffffff;
    border-color: #111111;
}

.as-auth-tab-panel {
    display: none;
}

.as-auth-tab-panel.is-active {
    display: block;
}

.as-auth-tab-panel h2 {
    margin: 0 0 16px;
}

.as-required {
    color: #c62828;
    margin-left: 4px;
    font-weight: 700;
}

/* =========================
   VALIDIERUNG FEEDBACK
========================= */

.as-field-error input,
.as-field-error textarea {
    border-color: #d32f2f !important;
    background: #fff5f5;
}

.as-field-error label {
    color: #d32f2f;
}

/* optional: leichter Shake Effekt */
.as-field-error {
    animation: as-shake 0.2s ease-in-out 2;
}

@keyframes as-shake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-3px); }
    50% { transform: translateX(3px); }
    75% { transform: translateX(-3px); }
    100% { transform: translateX(0); }
}

.as-field-error input,
.as-field-error textarea {
    border-color: #d32f2f !important;
    background: #fff5f5;
}

.as-field-error label {
    color: #d32f2f;
}

.as-error-message {
    margin-top: 6px;
    padding: 8px 10px;
    border-radius: 8px;
    background: #fff1f1;
    border: 1px solid #f1c5c5;
    color: #b42318;
    font-size: 0.85rem;
    line-height: 1.3;
}

.as-file-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}

.as-upload-zone {
    position: relative;
    border: 2px dashed #c8c8c8;
    border-radius: 14px;
    background: #fafafa;
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: border-color 0.2s ease, background-color 0.2s ease;
    overflow: hidden;
}

.as-upload-zone.is-dragover {
    border-color: #111111;
    background: #f1f5f2;
}

.as-upload-zone-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 18px;
    pointer-events: none;
}

.as-upload-zone-inner .dashicons {
    font-size: 28px;
    width: 28px;
    height: 28px;
}

.as-upload-zone-inner strong {
    font-size: 1rem;
}

.as-upload-zone-inner span,
.as-upload-zone-inner small {
    color: #666666;
}

.as-file-preview-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.as-file-preview-item {
    position: relative;
    border: 1px solid #d8d8d8;
    border-radius: 12px;
    background: #ffffff;
    overflow: hidden;
}

.as-file-preview-thumb-wrap {
    aspect-ratio: 4 / 3;
    background: #f3f3f3;
}

.as-file-preview-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.as-file-preview-meta {
    padding: 10px 12px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.82rem;
}

.as-file-preview-meta strong {
    font-size: 0.86rem;
    word-break: break-word;
}

.as-file-remove {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #111111;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

body.as-modal-open {
    overflow: hidden;
}

@media (max-width: 980px) {
    .as-file-preview-list {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 680px) {
    .as-file-preview-list {
        grid-template-columns: 1fr;
    }

    .as-upload-zone {
        min-height: 130px;
    }
}

@media (max-width: 980px) {
    .as-form-row-2,
    .as-form-row-3 {
        grid-template-columns: 1fr 1fr;
    }

    .as-media-selectors {
        grid-template-columns: 1fr;
    }

    .as-list-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .as-detail-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .as-form-row-2,
    .as-form-row-3 {
        grid-template-columns: 1fr;
    }

    .as-modal-dialog {
        width: calc(100vw - 16px);
        margin: 8px auto;
    }

    .as-modal-body {
        padding: 16px;
    }

    .as-detail-thumb {
        width: 110px;
        height: 80px;
    }
}

.as-view-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.as-view-tabs .as-button.is-active {
    background: #111111;
    color: #ffffff;
}

.as-button-danger {
    background: #8a1f1f;
    color: #ffffff;
}

.as-icon-button-reject {
    background: #fff6f2;
    border-color: #efcfbe;
    color: #8a3d12;
}

.as-rejected-indicator {
    color: #8a3d12;
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.as-order-row.is-rejected-row .as-main-cell,
.as-order-row.is-rejected-row .as-status-cell,
.as-order-row.is-rejected-row .as-icon-cell {
    background: #f8dede;
}

.as-order-row.is-rejected-row .as-title-button {
    color: #5f1f1f;
}

.as-detail-item-rejected {
    background: #fff3f3;
    border-color: #efcaca;
}

.as-reject-modal-dialog {
    max-width: 680px;
}

.as-file-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}

.as-upload-zone {
    position: relative;
    border: 2px dashed #c8c8c8;
    border-radius: 14px;
    background: #fafafa;
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: border-color 0.2s ease, background-color 0.2s ease;
    overflow: hidden;
}

.as-upload-zone.is-dragover {
    border-color: #111111;
    background: #f1f5f2;
}

.as-upload-zone-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 18px;
    pointer-events: none;
}

.as-upload-zone-inner .dashicons {
    font-size: 28px;
    width: 28px;
    height: 28px;
}

.as-upload-zone-inner strong {
    font-size: 1rem;
}

.as-upload-zone-inner span,
.as-upload-zone-inner small {
    color: #666666;
}

.as-file-preview-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.as-file-preview-item {
    position: relative;
    border: 1px solid #d8d8d8;
    border-radius: 12px;
    background: #ffffff;
    overflow: hidden;
}

.as-file-preview-thumb-wrap {
    aspect-ratio: 4 / 3;
    background: #f3f3f3;
}

.as-file-preview-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.as-file-preview-meta {
    padding: 10px 12px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.82rem;
}

.as-file-preview-meta strong {
    font-size: 0.86rem;
    word-break: break-word;
}

.as-file-remove {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #111111;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

body.as-modal-open {
    overflow: hidden;
}

@media (max-width: 980px) {
    .as-file-preview-list {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 680px) {
    .as-file-preview-list {
        grid-template-columns: 1fr;
    }

    .as-upload-zone {
        min-height: 130px;
    }

    .as-view-tabs {
        width: 100%;
    }
}

.as-view-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.as-view-panel { display: none; }
.as-view-panel.is-active { display: block; }

.as-view-tab-button.is-active {
    background: #111111;
    color: #ffffff;
}

.as-button-danger {
    background: #8a1f1f;
    color: #ffffff;
}

.as-icon-button-reject {
    background: #fff6f2;
    border-color: #efcfbe;
    color: #8a3d12;
}

.as-icon-button-restore {
    background: #eef7f0;
    border-color: #cfe3d3;
    color: #1f5f2a;
}

.as-rejected-indicator {
    color: #8a3d12;
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.as-order-row.is-rejected-row .as-main-cell,
.as-order-row.is-rejected-row .as-status-cell,
.as-order-row.is-rejected-row .as-icon-cell {
    background: #f8dede;
}

.as-order-row.is-rejected-row .as-title-button {
    color: #5f1f1f;
}

.as-detail-item-rejected {
    background: #fff3f3;
    border-color: #efcaca;
}

.as-reject-modal-dialog {
    max-width: 680px;
}

.as-inline-form {
    margin-top: 6px;
}

.as-inline-form-row {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.as-inline-form-row select {
    min-width: 280px;
    max-width: 100%;
    padding: 9px 11px;
    border: 1px solid #cfcfcf;
    border-radius: 10px;
    background: #ffffff;
    box-sizing: border-box;
}

@media (max-width: 680px) {
    .as-inline-form-row {
        flex-direction: column;
        align-items: stretch;
    }

    .as-inline-form-row select {
        min-width: 0;
        width: 100%;
    }
}