/* Critical dynamic-dialog styling. Scoped to uniform inventory only, so it
   does not depend on utility classes found by the static Tailwind scan. */
.uniform-modal-backdrop {
    position: fixed; inset: 0; display: flex; align-items: center; justify-content: center;
    padding: 16px; background: rgba(28, 25, 23, .55); isolation: isolate;
}
.uniform-modal-backdrop > div {
    background: #fff; color: #44403c; opacity: 1;
    border: 1px solid #fed7aa; box-shadow: 0 24px 72px rgba(28, 25, 23, .28);
}
#uniform-photo-editor .uniform-photo-panel {
    display: flex; flex-direction: column; width: min(520px, 100%); min-width: 0;
    max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px);
    overflow: hidden; border-radius: 20px; font-family: inherit;
}
.uniform-photo-head {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    flex-shrink: 0; padding: 16px 18px; border-bottom: 1px solid #ffedd5;
}
.uniform-photo-head h3 { margin: 0; font-size: 18px; line-height: 1.4; font-weight: 900; }
.uniform-photo-dismiss {
    display: flex; align-items: center; justify-content: center; width: 36px; height: 36px;
    flex-shrink: 0; border: 0; border-radius: 10px; background: #f5f5f4;
    color: #78716c; font-size: 24px; line-height: 1; cursor: pointer;
}
.uniform-photo-body { min-height: 0; overflow-y: auto; padding: 16px 18px; }
.uniform-photo-help { margin: 0 0 12px; color: #78716c; font-size: 12px; line-height: 1.6; font-weight: 700; }
.uniform-photo-file-label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 900; }
#uniform-photo-file {
    display: block; width: 100%; min-width: 0; padding: 10px; border: 1px solid #e7e5e4;
    border-radius: 12px; background: #fafaf9; color: #57534e; font: inherit; font-size: 13px;
}
#uniform-photo-file::file-selector-button {
    margin-right: 10px; padding: 7px 10px; border: 1px solid #fed7aa;
    border-radius: 8px; background: #fff7ed; color: #c2410c; font: inherit; font-weight: 800;
}
#uniform-photo-state {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
    min-width: 0; min-height: 150px; margin-top: 14px; padding: 12px;
    border: 1px dashed #d6d3d1; border-radius: 12px; background: #fafaf9;
    color: #78716c; font-size: 12px; font-weight: 700; line-height: 1.6;
    overflow-wrap: anywhere; word-break: break-word; text-align: center;
}
#uniform-photo-state .uniform-photo-image {
    display: block; width: 100%; height: 220px; max-height: 30vh; object-fit: contain;
}
#uniform-photo-error { margin-top: 10px; color: #b91c1c; font-size: 13px; font-weight: 800; line-height: 1.6; overflow-wrap: anywhere; }
#uniform-photo-error:empty { display: none; }
.uniform-photo-footer {
    display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; flex-shrink: 0;
    padding: 14px 18px; border-top: 1px solid #e7e5e4; background: #fff;
}
.uniform-photo-footer button { min-height: 44px; padding: 0 16px; border-radius: 12px; font-size: 14px; font-weight: 900; }
.uniform-photo-footer #uniform-photo-cancel { border: 1px solid #e7e5e4; background: #fff; color: #57534e; }
.uniform-photo-footer #uniform-photo-save { border: 1px solid #ea580c; background: #ea580c; color: #fff; }
#uniform-photo-editor button:disabled, #uniform-photo-editor input:disabled { cursor: wait; opacity: .65; }
@media (max-width: 480px) {
    .uniform-modal-backdrop { padding: 12px; }
    #uniform-photo-editor .uniform-photo-panel { max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); }
    .uniform-photo-head, .uniform-photo-body { padding: 14px; }
    .uniform-photo-footer { padding: 12px 14px; }
}
