/* Modern common alert/confirm dialog skin. Behavior remains owned by ax5 dialog. */
:root,
.ax-body {
    --ppm-disabled-cursor: url("/assets/cursor/disabled-lock-cursor.png") 15 15;
    --ppm-required-color: #2563eb;
    --ppm-required-bg: #f8fbff;
    --ppm-required-label: #374151;
}

[data-ax-td][data-ppm-required="true"] [data-ax-td-label] {
    color: var(--ppm-required-label) !important;
    font-size: 13px;
    font-weight: 600 !important;
}

[data-ax-td-label] .ppm-td-label-text {
    vertical-align: middle;
}

[data-ax-td-label] .ppm-required-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-left: 4px;
    border-radius: 50%;
    background: var(--ppm-required-color);
    vertical-align: middle;
    transform: translateY(-1px);
}

[data-ax-td][data-ppm-required="true"] [data-ax-td-wrap] input.form-control:not([type="checkbox"]):not([type="radio"]):not([readonly]):not([disabled]),
[data-ax-td][data-ppm-required="true"] [data-ax-td-wrap] select.form-control:not([readonly]):not([disabled]),
[data-ax-td][data-ppm-required="true"] [data-ax-td-wrap] textarea.form-control:not([readonly]):not([disabled]),
[data-ax-td][data-ppm-required="true"] [data-ax-td-wrap] .ax5select-display {
    background-color: var(--ppm-required-bg) !important;
}

[data-ax-validate].ppm-validate-error,
.form-control.ppm-validate-error {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.12) !important;
}

@keyframes ppm-dialog-in {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes ppm-dialog-out {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateY(6px) scale(0.96);
    }
}

.ax-mask .ax-mask-bg {
    background: rgba(0, 0, 0, 0.35) !important;
    opacity: 1 !important;
    filter: none !important;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.ax5-ui-dialog {
/*     width: min(430px, calc(100vw - 32px)) !important; */
    width: min(430px, calc(100vw - 32px));
    min-width: 0 !important;
    border: 0 !important;
    border-radius: 20px !important;
    background: #ffffff !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12) !important;
    overflow: hidden !important;
    animation: ppm-dialog-in 0.16s ease-out both !important;
    font-family: "Pretendard", "Noto Sans KR", "Malgun Gothic", "Apple SD Gothic Neo", Arial, sans-serif !important;
}

.ax5-ui-dialog.destroy {
    animation: ppm-dialog-out 0.12s ease-in both !important;
}

.ax5-ui-dialog .ax-dialog-header,
.ax5-ui-dialog.primary .ax-dialog-header,
.ax5-ui-dialog.success .ax-dialog-header,
.ax5-ui-dialog.info .ax-dialog-header,
.ax5-ui-dialog.warning .ax-dialog-header,
.ax5-ui-dialog.danger .ax-dialog-header {
    position: relative !important;
    min-height: 88px !important;
    padding: 28px 32px 0 !important;
    border: 0 !important;
    background: #ffffff !important;
    color: transparent !important;
    font-size: 0 !important;
    line-height: 0 !important;
    text-align: center !important;
}

.ax5-ui-dialog .ax-dialog-header:before {
    content: "i";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #e8f0ff;
    color: #3b82f6;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
}

.ax5-ui-dialog.success .ax-dialog-header:before {
    content: "✓";
    background: #dcfce7;
    color: #16a34a;
    font-family: "Pretendard", Arial, sans-serif;
    font-size: 30px;
}

.ax5-ui-dialog.warning .ax-dialog-header:before {
    content: "!";
    background: #fef3c7;
    color: #f59e0b;
    font-family: "Pretendard", Arial, sans-serif;
    font-size: 30px;
}

.ax5-ui-dialog.danger .ax-dialog-header:before {
    content: "×";
    background: #fee2e2;
    color: #ef4444;
    font-family: "Pretendard", Arial, sans-serif;
    font-size: 34px;
}

.ax5-ui-dialog.primary .ax-dialog-header:before,
.ax5-ui-dialog.info .ax-dialog-header:before {
    content: "i";
    background: #e8f0ff;
    color: #3b82f6;
}

.ax5-ui-dialog .ax-dialog-header .badge {
    display: none !important;
}

.ax5-ui-dialog .ax-dialog-body {
    padding: 12px 32px 30px !important;
    background: #ffffff !important;
    color: #64748b !important;
    text-align: center !important;
    font-family: inherit !important;
}

.ax5-ui-dialog .ax-dialog-body .ax-dialog-msg {
/*     max-width: 330px; */
    margin: 0 auto;
    padding: 0 !important;
    color: #111827 !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    letter-spacing: -0.2px !important;
    line-height: 1.42 !important;
    word-break: keep-all;
}

.ax5-ui-dialog .ax-dialog-body [data-dialog-els="additional-content"],
.ax5-ui-dialog .ax-dialog-body .ax-dialog-prompt {
    max-width: 330px;
    margin: 14px auto 0 !important;
    padding: 0 !important;
    color: #64748b !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    line-height: 1.6 !important;
    text-align: center !important;
}

.ax5-ui-dialog .ax-dialog-body .ax-dialog-prompt input,
.ax5-ui-dialog .ax-dialog-body .ax-dialog-prompt textarea,
.ax5-ui-dialog .ax-dialog-body .ax-dialog-prompt select {
    width: 100% !important;
    min-height: 44px !important;
    border: 1px solid #dbe5f1 !important;
    border-radius: 12px !important;
    background: #f8fafc !important;
    color: #111827 !important;
    font-size: 15px !important;
    outline: 0 !important;
    box-shadow: none !important;
}

.ax5-ui-dialog .ax-dialog-body .ax-dialog-prompt input:focus,
.ax5-ui-dialog .ax-dialog-body .ax-dialog-prompt textarea:focus,
.ax5-ui-dialog .ax-dialog-body .ax-dialog-prompt select:focus {
    border-color: #93c5fd !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12) !important;
}

.ax5-ui-dialog .ax-dialog-body .ax-dialog-buttons {
    display: flex !important;
    justify-content: center !important;
    gap: 12px !important;
    max-width: 330px !important;
    margin: 28px auto 0 !important;
}

.ax5-ui-dialog .ax-dialog-body .ax-dialog-buttons .btn,
.ax5-ui-dialog .ax-dialog-body .ax-dialog-buttons button {
    flex: 1 1 0 !important;
/*     min-width: 124px !important; */
    min-width: 64px;
    height: 46px !important;
    padding: 0 18px !important;
    border: 0 !important;
    border-radius: 12px !important;
    box-shadow: none !important;
    font-family: inherit !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    letter-spacing: -0.2px !important;
    line-height: 46px !important;
    transition: background 0.16s ease, color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease !important;
}

.ax5-ui-dialog .ax-dialog-body .ax-dialog-buttons .btn:hover,
.ax5-ui-dialog .ax-dialog-body .ax-dialog-buttons button:hover {
    transform: translateY(-1px);
}

.ax5-ui-dialog .ax-dialog-body .ax-dialog-buttons .btn-default,
.ax5-ui-dialog .ax-dialog-body .ax-dialog-buttons button[data-dialog-btn="cancel"] {
    border: 1px solid #e2e8f0 !important;
    background: #f8fafc !important;
    color: #334155 !important;
}

.ax5-ui-dialog .ax-dialog-body .ax-dialog-buttons .btn-primary,
.ax5-ui-dialog.primary .ax-dialog-body .ax-dialog-buttons .btn-primary,
.ax5-ui-dialog.info .ax-dialog-body .ax-dialog-buttons .btn-primary {
    background: #2563eb !important;
    color: #ffffff !important;
}

.ax5-ui-dialog.success .ax-dialog-body .ax-dialog-buttons .btn-primary,
.ax5-ui-dialog.success .ax-dialog-body .ax-dialog-buttons button[data-dialog-btn="ok"] {
    background: #10b981 !important;
    color: #ffffff !important;
}

.ax5-ui-dialog.warning .ax-dialog-body .ax-dialog-buttons .btn-primary,
.ax5-ui-dialog.warning .ax-dialog-body .ax-dialog-buttons button[data-dialog-btn="ok"] {
    background: #f59e0b !important;
    color: #ffffff !important;
}

.ax5-ui-dialog.danger .ax-dialog-body .ax-dialog-buttons .btn-primary,
.ax5-ui-dialog.danger .ax-dialog-body .ax-dialog-buttons button[data-dialog-btn="ok"] {
    background: #ef4444 !important;
    color: #ffffff !important;
}

@media (max-width: 480px) {
    .ax5-ui-dialog {
        width: calc(100vw - 24px) !important;
        border-radius: 18px !important;
    }

    .ax5-ui-dialog .ax-dialog-header {
        padding-right: 22px !important;
        padding-left: 22px !important;
    }

    .ax5-ui-dialog .ax-dialog-body {
        padding-right: 22px !important;
        padding-left: 22px !important;
    }

    .ax5-ui-dialog .ax-dialog-body .ax-dialog-buttons {
        gap: 8px !important;
    }

    .ax5-ui-dialog .ax-dialog-body .ax-dialog-buttons .btn,
    .ax5-ui-dialog .ax-dialog-body .ax-dialog-buttons button {
        min-width: 0 !important;
    }
}

@keyframes ppm-loading-fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes ppm-loading-fade-out {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@keyframes ppm-loading-ring {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes ppm-skeleton-shimmer {
    0% {
        background-position: 100% 0;
    }
    100% {
        background-position: -100% 0;
    }
}

.ax-mask.ppm-loading-mask {
    z-index: 2000 !important;
    animation: ppm-loading-fade-in 200ms ease-out both !important;
}

.ax-mask.ppm-loading-mask.fade-out {
    animation: ppm-loading-fade-out 200ms ease-in both !important;
}

.ax-mask.ppm-loading-mask .ax-mask-bg {
    background: rgba(248, 250, 252, 0.68) !important;
    opacity: 1 !important;
    backdrop-filter: blur(6px) saturate(1.03);
    -webkit-backdrop-filter: blur(6px) saturate(1.03);
}

.ax-mask.ppm-loading-mask .ax-mask-content {
    color: #111827 !important;
    text-shadow: none !important;
    font-family: "Pretendard", "Noto Sans KR", "Malgun Gothic", "Apple SD Gothic Neo", Arial, sans-serif !important;
}

.ax-mask.ppm-loading-mask .ax-mask-content .ax-mask-body {
    display: table-cell !important;
    vertical-align: middle !important;
    text-align: center !important;
}

.ppm-loading-box,
.ppm-loading-inline {
    display: inline-flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    min-width: 120px;
}

.ppm-loading-inline {
    min-height: 120px;
}

.ppm-loading-box div,
.ppm-loading-inline div {
    display: block !important;
}

.ppm-loading-ring {
    position: relative;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 50%;
    background: conic-gradient(from 90deg, rgba(37, 99, 235, 0), rgba(37, 99, 235, 0.18), #2563eb 44%, #14b8a6 72%, rgba(20, 184, 166, 0));
    animation: ppm-loading-ring 1.28s cubic-bezier(0.65, 0, 0.35, 1) infinite;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.ppm-loading-ring:before {
    content: "";
    position: absolute;
    inset: 4px;
    border-radius: inherit;
    background: rgba(255, 255, 255, 0.88);
}

.ppm-loading-ring:after {
    content: "";
    position: absolute;
    top: 6px;
    right: 3px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #14b8a6;
    box-shadow: 0 0 12px rgba(20, 184, 166, 0.48);
}

.ppm-loading-text {
    color: #1f2937 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.45 !important;
    letter-spacing: 0 !important;
    white-space: nowrap;
}

.ppm-action-loading,
.ppm-action-loading:hover,
.ppm-action-loading:focus {
    cursor: progress !important;
    opacity: 0.72;
    pointer-events: none;
}

.ppm-skeleton-overlay {
    position: absolute;
    inset: 0;
    z-index: 200;
    box-sizing: border-box;
    padding: 14px 16px;
    overflow: hidden;
    pointer-events: none;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(2px) saturate(1.02);
    -webkit-backdrop-filter: blur(2px) saturate(1.02);
    opacity: 1;
    animation: ppm-loading-fade-in 120ms ease-out both;
}

.ppm-skeleton-host[data-ax5grid],
.ppm-skeleton-host[data-fit-height-content] {
    min-height: 160px;
}

.ppm-skeleton-overlay.is-hiding {
    animation: ppm-loading-fade-out 180ms ease-in both;
}

.ppm-skeleton-layout {
    width: 100%;
    height: 100%;
}

.ppm-skeleton-message {
    position: absolute;
    left: 50%;
    bottom: 18px;
    transform: translate(-50%, 6px);
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(248, 250, 252, 0.92);
    border: 1px solid #e2e8f0;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.35;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 160ms ease, transform 160ms ease;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.ppm-skeleton-overlay.is-long .ppm-skeleton-message {
    opacity: 1;
    transform: translate(-50%, 0);
}

.ppm-skeleton-line,
.ppm-skeleton-cell,
.ppm-skeleton-thumb,
.ppm-skeleton-head-cell,
.ppm-skeleton-select,
.ppm-skeleton-action,
.ppm-skeleton-avatar,
.ppm-skeleton-more {
    display: block;
    border-radius: 6px;
    background: linear-gradient(90deg, #eef2f6 0%, #f8fafc 42%, #e4ebf3 70%);
    background-size: 240% 100%;
    animation: ppm-skeleton-shimmer 1.35s ease-in-out infinite;
}

.ppm-skeleton-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255,255,255,0.72);
}

.ppm-skeleton-grid-head,
.ppm-skeleton-grid-row {
    display: grid;
    grid-template-columns: 34px minmax(170px, 1.32fr) repeat(var(--ppm-skeleton-extra-columns, 4), minmax(92px, 1fr)) 28px;
    gap: 16px;
    align-items: center;
    width: 100%;
}

.ppm-skeleton-grid-head {
    min-height: 38px;
    padding: 0 12px;
    background: #f5f7fa;
    border-bottom: 1px solid #edf0f4;
}

.ppm-skeleton-grid-row {
    min-height: 78px;
    padding: 0 12px;
    border-bottom: 1px solid #edf0f4;
}

.ppm-skeleton-grid-row:last-child {
    border-bottom: 0;
}

.ppm-skeleton-grid-head .ppm-skeleton-head-cell {
    height: 11px;
    background: linear-gradient(90deg, #dfe6ee 0%, #f8fafc 42%, #d8e1ec 70%);
    background-size: 240% 100%;
}

.ppm-skeleton-select {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    background: #f4f6f8;
    border: 1px solid #dde3eb;
    animation: none;
}

.ppm-skeleton-action {
    width: 4px;
    height: 16px;
    justify-self: center;
    border-radius: 99px;
}

.ppm-skeleton-grid-row .ppm-skeleton-cell {
    height: 30px;
}

.ppm-skeleton-profile-cell {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    min-width: 0;
}

.ppm-skeleton-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 42%, #d7dde5 0 13%, transparent 14%),
        radial-gradient(circle at 50% 67%, #d7dde5 0 18%, transparent 19%),
        linear-gradient(90deg, #eef2f6 0%, #f8fafc 42%, #e4ebf3 70%);
    background-size: auto, auto, 240% 100%;
}

.ppm-skeleton-stack,
.ppm-skeleton-cell-group {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 8px;
}

.ppm-skeleton-cell-group {
    gap: 9px;
}

.ppm-skeleton-line {
    height: 12px;
}

.ppm-skeleton-line.name,
.ppm-skeleton-line.eyebrow {
    height: 10px;
}

.ppm-skeleton-line.name {
    width: 34%;
}

.ppm-skeleton-line.eyebrow {
    width: 26%;
    opacity: 0.78;
}

.ppm-skeleton-line.short,
.ppm-skeleton-head-cell.short {
    width: 34%;
}

.ppm-skeleton-line.medium,
.ppm-skeleton-head-cell.medium {
    width: 58%;
}

.ppm-skeleton-line.wide,
.ppm-skeleton-head-cell.wide {
    width: 78%;
}

.ppm-skeleton-line.long,
.ppm-skeleton-head-cell.long {
    width: 92%;
}

.ppm-skeleton-more {
    width: 3px;
    height: 18px;
    justify-self: center;
    border-radius: 99px;
    opacity: 0.86;
}

.ppm-skeleton-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ppm-skeleton-list-row {
    display: grid;
    grid-template-columns: minmax(120px, 0.32fr) 1fr;
    gap: 12px;
    align-items: center;
}

.ppm-skeleton-list-row .ppm-skeleton-line {
    height: 16px;
}

.ppm-skeleton-list-row .ppm-skeleton-line.title {
    height: 20px;
}

.ppm-skeleton-card {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.ppm-skeleton-card-item {
    min-height: 140px;
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.72);
}

.ppm-skeleton-thumb {
    width: 44px;
    height: 44px;
    margin-bottom: 14px;
    border-radius: 8px;
}

.ppm-skeleton-card-item .ppm-skeleton-line {
    height: 14px;
    margin-bottom: 10px;
}

.ppm-skeleton-card-item .ppm-skeleton-line.title {
    width: 70%;
    height: 18px;
}

.ppm-skeleton-card-item .ppm-skeleton-line.short {
    width: 46%;
}

.ppm-skeleton-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ppm-skeleton-form-row {
    display: grid;
    grid-template-columns: minmax(80px, 0.22fr) 1fr;
    gap: 14px;
    align-items: center;
}

.ppm-skeleton-form-row .ppm-skeleton-line.label {
    height: 12px;
}

.ppm-skeleton-form-row .ppm-skeleton-line.field {
    height: 34px;
}

@media (max-width: 640px) {
    .ppm-skeleton-overlay {
        padding: 10px;
    }

    .ppm-skeleton-grid-head,
    .ppm-skeleton-grid-row {
        grid-template-columns: 28px minmax(150px, 1fr) minmax(90px, 0.7fr) 24px;
    }

    .ppm-skeleton-grid-head .ppm-skeleton-head-cell:nth-of-type(n+4),
    .ppm-skeleton-grid-row .ppm-skeleton-cell-group:nth-of-type(n+4) {
        display: none;
    }

    .ppm-skeleton-list-row,
    .ppm-skeleton-form-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

/* MES toast refresh */
.ax5-ui-toast-container.top-right,
.ax5-ui-toast-container.bottom-right,
.ax5-ui-toast-container.bottom-left,
.ax5-ui-toast-container.top-left {
    right: 22px !important;
    left: auto !important;
    top: 22px !important;
    bottom: auto !important;
    z-index: 10080 !important;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    width: min(380px, calc(100vw - 32px));
    pointer-events: none;
}

.ax5-ui-toast-container .ax5-ui-toast {
    position: relative;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 30px;
    align-items: center;
    gap: 10px;
    width: 100% !important;
    min-height: 56px;
    margin: 0 !important;
    padding: 12px 12px 12px 14px !important;
    border: 1px solid #dce6f3 !important;
    border-left: 4px solid #2563eb !important;
    border-radius: 8px !important;
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.16) !important;
    color: #10233f !important;
    font-family: "Noto Sans KR", "Helvetica Neue", Arial, sans-serif !important;
    pointer-events: auto;
}

.ax5-ui-toast-container .ax5-ui-toast.success,
.ax5-ui-toast-container .ax5-ui-toast.default {
    border-left-color: #16a34a !important;
}

.ax5-ui-toast-container .ax5-ui-toast.info,
.ax5-ui-toast-container .ax5-ui-toast.primary {
    border-left-color: #2563eb !important;
}

.ax5-ui-toast-container .ax5-ui-toast.warning {
    border-left-color: #f59e0b !important;
}

.ax5-ui-toast-container .ax5-ui-toast.danger {
    border-left-color: #ef4444 !important;
}

.ax5-ui-toast-container .ax5-ui-toast .ax-toast-icon {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 34px !important;
    height: 34px !important;
    margin: 0 !important;
    border-radius: 8px !important;
    background: #eaf2ff !important;
    color: #2563eb !important;
    font-size: 17px !important;
    line-height: 1 !important;
}

.ax5-ui-toast-container .ax5-ui-toast.success .ax-toast-icon,
.ax5-ui-toast-container .ax5-ui-toast.default .ax-toast-icon {
    background: #eaf8ef !important;
    color: #16a34a !important;
}

.ax5-ui-toast-container .ax5-ui-toast.info .ax-toast-icon,
.ax5-ui-toast-container .ax5-ui-toast.primary .ax-toast-icon {
    background: #eaf2ff !important;
    color: #2563eb !important;
}

.ax5-ui-toast-container .ax5-ui-toast.warning .ax-toast-icon {
    background: #fff7e6 !important;
    color: #d97706 !important;
}

.ax5-ui-toast-container .ax5-ui-toast.danger .ax-toast-icon {
    background: #fff1f2 !important;
    color: #dc2626 !important;
}

.ax5-ui-toast-container .ax5-ui-toast .ax-toast-body {
    min-width: 0;
    padding: 0 !important;
    color: #172a45 !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    line-height: 1.45 !important;
    letter-spacing: 0 !important;
    word-break: keep-all;
}

.ax5-ui-toast-container .ax5-ui-toast .ax-toast-close {
    position: static !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 30px !important;
    height: 30px !important;
    margin: 0 !important;
    border-radius: 8px !important;
    color: #64748b !important;
    background: transparent !important;
    font-size: 15px !important;
    line-height: 1 !important;
    text-decoration: none !important;
    cursor: pointer;
}

.ax5-ui-toast-container .ax5-ui-toast .ax-toast-close:hover,
.ax5-ui-toast-container .ax5-ui-toast .ax-toast-close:focus {
    color: #10233f !important;
    background: #eef4fb !important;
    outline: none;
}

@media (max-width: 640px) {
    .ax5-ui-toast-container.top-right,
    .ax5-ui-toast-container.bottom-right,
    .ax5-ui-toast-container.bottom-left,
    .ax5-ui-toast-container.top-left {
        top: 12px !important;
        right: 12px !important;
        width: calc(100vw - 24px);
    }
}

.ppm-file-preview-card {
    position: fixed;
    z-index: 100000;
    width: 280px;
    padding: 12px;
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 18px 42px rgba(15, 23, 42, .18), 0 2px 8px rgba(15, 23, 42, .08);
    opacity: 0;
    transform: translateY(4px) scale(.98);
    transition: opacity .14s ease, transform .14s ease;
    pointer-events: auto;
}

[data-ax5uploader-uploaded-box][data-ax5uploader-uploaded-box="inline"] [data-ax5uploader-uploaded-item] .uploaded-item-holder [data-uploaded-item-cell="filename"] {
    display: inline-flex !important;
    align-items: center;
    flex: 1 1 auto !important;
    min-width: 24px;
    max-width: 360px;
    color: #1e293b !important;
    font-size: 12px !important;
    font-weight: 700;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ppm-file-preview-card.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.ppm-file-preview-media {
    min-height: 92px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #f8fafc;
    overflow: hidden;
}

.ppm-file-preview-image-button {
    display: block;
    width: 100%;
    max-height: 220px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
}

.ppm-file-preview-image-button img {
    display: block;
    width: 100%;
    max-height: 220px;
    object-fit: contain;
}

.ppm-file-preview-image-button img:not([src]),
.ppm-file-preview-image-button img[src=""] {
    display: none;
}

.ppm-file-preview-icon {
    width: 74px;
    height: 86px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 14px;
    border-radius: 10px;
    color: #fff;
    background: #64748b;
    box-shadow: inset 0 -28px 0 rgba(15, 23, 42, .16);
    font-size: 15px;
    font-weight: 900;
}

.ppm-file-preview-icon-pdf {
    background: #ef4444;
}

.ppm-file-preview-icon-excel {
    background: #10b981;
}

.ppm-file-preview-icon-word {
    background: #2563eb;
}

.ppm-file-preview-icon-ppt {
    background: #f97316;
}

.ppm-file-preview-icon-zip {
    background: #7c3aed;
}

.ppm-file-preview-icon-text {
    background: #475569;
}

.ppm-file-preview-info {
    padding: 11px 2px 0;
}

.ppm-file-preview-info strong {
    display: block;
    color: #0f172a;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ppm-file-preview-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}

.ppm-file-preview-meta span:not(:last-child):after {
    content: "";
    display: inline-block;
    width: 3px;
    height: 3px;
    margin-left: 6px;
    border-radius: 50%;
    background: #cbd5e1;
    vertical-align: middle;
}

.ppm-file-preview-lightbox {
    position: fixed;
    inset: 0;
    z-index: 100001;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 28px;
    background: rgba(15, 23, 42, .72);
}

.ppm-file-preview-lightbox.is-visible {
    display: flex;
}

.ppm-file-preview-lightbox img {
    max-width: min(1120px, calc(100vw - 56px));
    max-height: calc(100vh - 56px);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .32);
    object-fit: contain;
}

.ppm-file-preview-lightbox-close {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    color: #0f172a;
    background: #fff;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .18);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

@media (max-width: 640px) {
    .ppm-file-preview-card {
        width: min(280px, calc(100vw - 24px));
    }

    .ppm-file-preview-lightbox {
        padding: 14px;
    }

    .ppm-file-preview-lightbox img {
        max-width: calc(100vw - 28px);
        max-height: calc(100vh - 28px);
    }
}
