/* Compact flash / notice messages (shared across the app) */

.cfz-flashes {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    margin-bottom: 0.5rem;
}

.cfz-flash {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 2rem 0.4rem 0.625rem;
    border-radius: 6px;
    border: 1px solid #e2e6ea;
    background: #fff;
    position: relative;
    font-size: 0.8125rem;
    line-height: 1.35;
    color: #212529;
}

.cfz-flash__icon {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.875rem;
}

.cfz-flash__icon .bx {
    font-size: 0.875rem;
    line-height: 1;
}

.cfz-flash__body {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem;
}

.cfz-flash__label {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0;
    flex-shrink: 0;
    color: #495057;
}

.cfz-flash__label::after {
    content: ':';
}

.cfz-flash__text {
    font-size: 0.8125rem;
    line-height: 1.35;
    color: #212529;
}

.cfz-flash__dismiss {
    position: absolute;
    top: 0.35rem;
    right: 0.35rem;
    opacity: 0.55;
    padding: 0.15rem;
}

.cfz-flash__dismiss:hover {
    opacity: 1;
}

/* Variants */
.cfz-flash--notice {
    background: linear-gradient(90deg, #fff9f0 0%, #fff 35%);
}

.cfz-flash--notice .cfz-flash__icon {
    background: #fff3cd;
    color: #b35c00;
}

.cfz-flash--notice .cfz-flash__label {
    color: #b35c00;
}

.cfz-flash--danger {
    background: linear-gradient(90deg, #fff5f5 0%, #fff 35%);
}

.cfz-flash--danger .cfz-flash__icon {
    background: #ffe3e3;
    color: #c92a2a;
}

.cfz-flash--danger .cfz-flash__label {
    color: #c92a2a;
}

.cfz-flash--success {
    background: linear-gradient(90deg, #f0fdf4 0%, #fff 35%);
}

.cfz-flash--success .cfz-flash__icon {
    background: #dcfce7;
    color: #15803d;
}

.cfz-flash--success .cfz-flash__label {
    color: #14532d;
}

.cfz-flash--warning {
    background: linear-gradient(90deg, #fefce8 0%, #fff 35%);
}

.cfz-flash--warning .cfz-flash__icon {
    background: #fef9c3;
    color: #a16207;
}

.cfz-flash--warning .cfz-flash__label {
    color: #854d0e;
}

.cfz-flash--info {
    background: linear-gradient(90deg, #eff6ff 0%, #fff 35%);
}

.cfz-flash--info .cfz-flash__icon {
    background: #dbeafe;
    color: #2563eb;
}

.cfz-flash--info .cfz-flash__label {
    color: #1e3a5f;
}

/* Authorization form workflow status (same cfz-flash format, color-coded) */
.cfz-flash--statusSelectivity {
    background: linear-gradient(90deg, #fff5f5 0%, #fff 35%);
}

.cfz-flash--statusSelectivity .cfz-flash__icon {
    background: #ffe3e3;
    color: #c92a2a;
}

.cfz-flash--statusSelectivity .cfz-flash__label {
    color: #842029;
}

.cfz-flash--statusInspection {
    background: linear-gradient(90deg, #f0fdf4 0%, #fff 35%);
}

.cfz-flash--statusInspection .cfz-flash__icon {
    background: #dcfce7;
    color: #15803d;
}

.cfz-flash--statusInspection .cfz-flash__label {
    color: #14532d;
}

.cfz-flash--statusVerification {
    background: linear-gradient(90deg, rgba(124, 58, 237, 0.08) 0%, #fff 35%);
}

.cfz-flash--statusVerification .cfz-flash__icon {
    background: rgba(124, 58, 237, 0.12);
    color: #7c3aed;
}

.cfz-flash--statusVerification .cfz-flash__label {
    color: #4c1d95;
}

.cfz-flash--statusVerified {
    background: linear-gradient(90deg, #eff6ff 0%, #fff 35%);
}

.cfz-flash--statusVerified .cfz-flash__icon {
    background: #dbeafe;
    color: #2563eb;
}

.cfz-flash--statusVerified .cfz-flash__label {
    color: #1e3a5f;
}

.cfz-flash--statusVoided {
    background: linear-gradient(90deg, #f8f9fa 0%, #fff 35%);
}

.cfz-flash--statusVoided .cfz-flash__icon {
    background: #e9ecef;
    color: #495057;
}

.cfz-flash--statusVoided .cfz-flash__label {
    color: #343a40;
}

.cfz-flash--statusAuthRequested {
    background: linear-gradient(90deg, rgba(219, 39, 119, 0.1) 0%, #fff 35%);
}

.cfz-flash--statusAuthRequested .cfz-flash__icon {
    background: rgba(219, 39, 119, 0.14);
    color: #be185d;
}

.cfz-flash--statusAuthRequested .cfz-flash__label {
    color: #861043;
}

.cfz-flash--statusMarkedAuthorized {
    background: linear-gradient(90deg, rgba(234, 88, 12, 0.12) 0%, #fff 35%);
}

.cfz-flash--statusMarkedAuthorized .cfz-flash__icon {
    background: rgba(234, 88, 12, 0.15);
    color: #c2410c;
}

.cfz-flash--statusMarkedAuthorized .cfz-flash__label {
    color: #7c2d12;
}

.cfz-flash--statusPaymentPending {
    background: linear-gradient(90deg, #fefce8 0%, #fff 35%);
}

.cfz-flash--statusPaymentPending .cfz-flash__icon {
    background: #fef9c3;
    color: #a16207;
}

.cfz-flash--statusPaymentPending .cfz-flash__label {
    color: #854d0e;
}

/* Legacy Bootstrap flash alerts (inline in GSP templates) */
.alert.alert-dismissible.fade.show:has(.font-35) {
    padding: 0.4rem 2rem 0.4rem 0.625rem !important;
    margin-bottom: 0.375rem;
    border-radius: 6px !important;
    border: 1px solid #e2e6ea !important;
    box-shadow: none !important;
}

.alert.alert-dismissible.fade.show:has(.font-35) > .d-flex.align-items-center {
    align-items: center !important;
    gap: 0.5rem;
}

.alert.alert-dismissible.fade.show:has(.font-35) .font-35 {
    font-size: 1rem !important;
    line-height: 1;
    flex-shrink: 0;
    width: 1.5rem;
    height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.alert.alert-dismissible.fade.show:has(.font-35) .ms-3 {
    margin-left: 0 !important;
    min-width: 0;
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem;
}

.alert.alert-dismissible.fade.show:has(.font-35) h6 {
    font-size: 0.6875rem !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 !important;
    flex-shrink: 0;
}

.alert.alert-dismissible.fade.show:has(.font-35) h6::after {
    content: ':';
}

.alert.alert-dismissible.fade.show:has(.font-35) h6 + div {
    font-size: 0.8125rem;
    line-height: 1.35;
}

.alert.alert-dismissible.fade.show:has(.font-35) .btn-close {
    top: 0.35rem;
    right: 0.35rem;
    padding: 0.15rem;
}

.alert.alert-warning.border-0.bg-warning.alert-dismissible.fade.show:has(.font-35),
.alert.border-0.border-start.border-5.border-info.alert-dismissible.fade.show:has(.font-35) {
    background: linear-gradient(90deg, #fff9f0 0%, #fff 35%) !important;
}

.alert.alert-warning.border-0.bg-warning.alert-dismissible.fade.show:has(.font-35) .font-35,
.alert.border-0.border-start.border-5.border-info.alert-dismissible.fade.show:has(.font-35) .font-35 {
    background: #fff3cd;
    color: #b35c00 !important;
}

.alert.alert-warning.border-0.bg-warning.alert-dismissible.fade.show:has(.font-35) h6,
.alert.border-0.border-start.border-5.border-info.alert-dismissible.fade.show:has(.font-35) h6 {
    color: #b35c00 !important;
}

.alert.alert-warning.border-0.bg-warning.alert-dismissible.fade.show:has(.font-35) h6 + div,
.alert.border-0.border-start.border-5.border-info.alert-dismissible.fade.show:has(.font-35) h6 + div {
    color: #212529 !important;
}

.alert.alert-danger.border-0.bg-danger.alert-dismissible.fade.show:has(.font-35) {
    background: linear-gradient(90deg, #fff5f5 0%, #fff 35%) !important;
}

.alert.alert-danger.border-0.bg-danger.alert-dismissible.fade.show:has(.font-35) .font-35 {
    background: #ffe3e3;
    color: #c92a2a !important;
}

.alert.alert-danger.border-0.bg-danger.alert-dismissible.fade.show:has(.font-35) h6 {
    color: #c92a2a !important;
}

.alert.alert-danger.border-0.bg-danger.alert-dismissible.fade.show:has(.font-35) h6 + div {
    color: #212529 !important;
}

.alert.alert-success.border-0.bg-success.alert-dismissible.fade.show:has(.font-35),
.alert.border-0.border-start.border-5.border-success.alert-dismissible.fade.show:has(.font-35) {
    background: linear-gradient(90deg, #f0fdf4 0%, #fff 35%) !important;
}

.alert.alert-success.border-0.bg-success.alert-dismissible.fade.show:has(.font-35) .font-35,
.alert.border-0.border-start.border-5.border-success.alert-dismissible.fade.show:has(.font-35) .font-35 {
    background: #dcfce7;
    color: #15803d !important;
}

.alert.alert-success.border-0.bg-success.alert-dismissible.fade.show:has(.font-35) h6,
.alert.border-0.border-start.border-5.border-success.alert-dismissible.fade.show:has(.font-35) h6 {
    color: #14532d !important;
}

.alert.alert-success.border-0.bg-success.alert-dismissible.fade.show:has(.font-35) h6 + div,
.alert.border-0.border-start.border-5.border-success.alert-dismissible.fade.show:has(.font-35) h6 + div {
    color: #212529 !important;
}

.alert.alert-warning.border-0.border-start.border-5.border-warning.alert-dismissible.fade.show:has(.font-35) {
    background: linear-gradient(90deg, #fefce8 0%, #fff 35%) !important;
}

.alert.alert-warning.border-0.border-start.border-5.border-warning.alert-dismissible.fade.show:has(.font-35) .font-35 {
    background: #fef9c3;
    color: #a16207 !important;
}

.alert.alert-warning.border-0.border-start.border-5.border-warning.alert-dismissible.fade.show:has(.font-35) h6 {
    color: #854d0e !important;
}

/* Login page and other simple alerts */
.alert.alert-warning.bg-warning,
.alert.alert-danger:not(.alert-dismissible) {
    padding: 0.4rem 0.75rem !important;
    margin-bottom: 0.375rem;
    border-radius: 6px;
    font-size: 0.8125rem;
    line-height: 1.35;
    border: 1px solid #e2e6ea;
}

.alert.alert-warning.bg-warning {
    background: linear-gradient(90deg, #fff9f0 0%, #fff 35%) !important;
    color: #212529 !important;
}

.alert.alert-danger:not(.alert-dismissible) {
    background: linear-gradient(90deg, #fff5f5 0%, #fff 35%) !important;
    color: #212529 !important;
}

