/* Design System CSS Variables */
:root {
    /* Spacing System */
    --primitives-spacing-0: 0px;
    --primitives-spacing-0-5: 2px;
    --primitives-spacing-1: 4px;
    --primitives-spacing-1-duplicate: 4px;
    --primitives-spacing-5: 20px;
    --primitives-spacing-11: 44px;
    --primitives-spacing-14: 56px;

    /* Border Radius */
    --themes-border-border-radius-rounded-sm: 4px;

    /* Background Colors */
    --themes-colors-background-bg-secondary-soft: #f9fafb;
    --themes-colors-background-bg-secondary-medium: #f5f5f5;
    --themes-colors-background-bg-brand-softer: #e6f3ff;
    --themes-colors-background-bg-warning-soft: #fff8f1;
    --themes-colors-background-bg-danger-soft: #fef0f2;

    /* Border Colors */
    --themes-colors-border-border-base: #e5e5e5;
    --themes-colors-border-border-base-medium: #d1d1d1;
    --themes-colors-border-border-brand-subtle: #b3d9ff;
    --themes-colors-border-border-warning-subtle: #fcd9bd;
    --themes-colors-border-border-danger-subtle: #ffccd3;

    /* Text Colors */
    --themes-colors-text-text-body: #333333;
    --themes-colors-text-text-fg-brand-strong: #1c398e;
    --themes-colors-text-text-fg-warning: #771d1d;
    --themes-colors-text-text-fg-danger-strong: #8b0836;

    /* Brand Colors (Figma: Green/100) */
    --color-brand-green: #25af88;
    --color-brand-green-hover: #1e9a73;

    /* Panel Headers (Figma: tenant info panel header tint) */
    --color-panel-header-tinted: #f5fbf7;

    /* Chart Colors (Figma: donut charts) */
    --color-chart-status-online: #22e5a1;
    --color-chart-status-offline: #ff5e5e;
    --color-chart-importance-low: #51c0ff;
    --color-chart-importance-medium: #fe9239;
    --color-chart-importance-high: #ff5e5e;

    /* Chart Colors (Figma: bar charts) */
    --color-chart-alert-bar: #5bdcc6; /* Figma: Primary/300 teal */

    /* Dashboard Figma Alignment (Phase 1) */
    /* Banner gradient backgrounds */
    --color-banner-gradient-start: #e8f9f3;
    --color-banner-gradient-end: #d4f1e8;

    /* Tenant Scope Banner (Figma TenantBanner.tsx -- dark gradient)
       Distinct from --color-banner-gradient-* (light green, org dashboard). */
    --color-tenant-banner-gradient-start: #0f4f3b;
    --color-tenant-banner-gradient-end: #25af88;
    --color-tenant-banner-border: #0d4532;

    /* Alert severity dot colors (8px circles) */
    --color-severity-dot-high: #ff5e5e; /* coral red */
    --color-severity-dot-medium: #fe9239; /* warm orange */
    --color-severity-dot-info: #51c0ff; /* sky blue */

    /* Status Pill Colors (Figma: pill-shaped status badges) */
    --color-status-pill-bg-online: #e8f9f3;
    --color-status-pill-text-online: #1a7f5f;
    --color-status-pill-bg-danger: #ffe8e8;
    --color-status-pill-text-danger: #c93636;
    --color-status-pill-bg-warning: #fff3e8;
    --color-status-pill-text-warning: #b86e0f;
    --color-status-pill-bg-info: #e8f6ff;
    --color-status-pill-text-info: #2e7db5;
    --color-status-pill-bg-neutral: #f3f4f6;
    --color-status-pill-text-neutral: #6b7280;

    /* Filter Pill Colors (Figma: toggle filter buttons) */
    --color-filter-pill-bg-active: #25af88;
    --color-filter-pill-text-active: #ffffff;
    --color-filter-pill-border-inactive: #d1d5db;
    --color-filter-pill-text-inactive: #374151;

    /* Viewing Context Dropdown (Sidebar — Dark Theme, Figma Sidebar.tsx) */
    --color-vc-section-setup-bg: #2d1f1a;
    --color-vc-section-connected-bg: #1a2332;
}

/* Flowbite Badge Base Styles - High specificity */
table .flowbite-badge,
.flowbite-badge {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    padding: 2px 4px !important;
    position: relative !important;
    border-radius: 4px !important;
    border: 1px solid !important;
    white-space: nowrap !important;
    font-family: "Ubuntu Sans-Medium", Helvetica, sans-serif !important;
    font-weight: 500 !important;
    font-size: 12px !important;
    text-align: center !important;
    letter-spacing: 0 !important;
    line-height: 16px !important;
}

/* Flowbite Severity Badge Variants - High specificity - Design System Colors */
table .flowbite-badge-severity-low,
.flowbite-badge-severity-low {
    border-radius: 6px !important;
    border: 1px solid #bedbff !important;
    background: #eef6ff !important;
    color: #1c398e !important;
    text-align: center !important;
    font-family: "Ubuntu Sans", sans-serif !important;
    font-size: 12px !important;
    font-style: normal !important;
    font-weight: 500 !important;
    line-height: 16px !important; /* 133.333% */
}

table .flowbite-badge-severity-medium,
.flowbite-badge-severity-medium {
    border-radius: 6px !important;
    border: 1px solid #fcd9bd !important;
    background: #fff8f1 !important;
    color: #8b0836 !important;
    text-align: center !important;
    font-family: "Ubuntu Sans", sans-serif !important;
    font-size: 12px !important;
    font-style: normal !important;
    font-weight: 500 !important;
    line-height: 16px !important; /* 133.333% */
}

table .flowbite-badge-severity-high,
.flowbite-badge-severity-high {
    border-radius: 6px !important;
    border: 1px solid #ffccd3 !important;
    background: #fef0f2 !important;
    color: #8b0836 !important;
    text-align: center !important;
    font-family: "Ubuntu Sans", sans-serif !important;
    font-size: 12px !important;
    font-style: normal !important;
    font-weight: 500 !important;
    line-height: 16px !important; /* 133.333% */
}

table .flowbite-badge-severity-critical,
.flowbite-badge-severity-critical {
    border-radius: 6px !important;
    border: 1px solid #ffccd3 !important;
    background: #fef0f2 !important;
    color: #8b0836 !important;
    text-align: center !important;
    font-family: "Ubuntu Sans", sans-serif !important;
    font-size: 12px !important;
    font-style: normal !important;
    font-weight: 500 !important;
    line-height: 16px !important; /* 133.333% */
}

/* Flowbite Status Badge Variants - No dot icon, rounded shape */
table .flowbite-badge-status-active,
.flowbite-badge-status-active {
    background-color: #f5f5f5 !important;
    border-color: #d1d1d1 !important;
    color: #333333 !important;
    border-radius: 6px !important;
    padding: 2px 6px !important;
}

table .flowbite-badge-status-resolved,
.flowbite-badge-status-resolved {
    background-color: #e5e5e5 !important;
    border-color: #d1d1d1 !important;
    color: #666666 !important;
    border-radius: 6px !important;
    padding: 2px 6px !important;
}

table .flowbite-badge-status-acknowledged,
.flowbite-badge-status-acknowledged {
    background-color: #e6f3ff !important;
    border-color: #b3d9ff !important;
    color: #1c398e !important;
    border-radius: 6px !important;
    padding: 2px 6px !important;
}

/* Table Header Cell - Standard table cell, not flex container */
table thead th.table-header-cell {
    height: 44px;
    padding: 12px 20px;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    background: #f9fafb;
    color: #4a5565;
    font-family: Inter, sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    text-transform: capitalize;
    vertical-align: middle;
    text-align: left;
}

/* Table Header Link - Flex container for text and icon alignment */
table thead th.table-header-cell .table-header-link {
    color: #4a5565;
    font-family: Inter, sans-serif;
    font-size: 14px;
    font-weight: 500;
    text-transform: capitalize;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

/* Table header text */
table thead th.table-header-cell .table-header-link .table-header-text {
    display: inline;
}

/* SVG icons in table headers */
table thead th.table-header-cell .table-header-link svg {
    display: inline-block;
    flex-shrink: 0;
    width: 12px;
    height: 12px;
    vertical-align: middle;
}

.table-header-link:hover {
    color: #1f2937;
}

/* Table Cell Links - clickable items in table rows (green by default, underline on hover) */
.table-cell-link {
    color: #25af88; /* patitur green */
    text-decoration: none;
    transition:
        color 0.15s ease,
        text-decoration 0.15s ease;
}

.table-cell-link:hover {
    color: #1e9a73; /* darker green */
    text-decoration: underline;
}

.table-cell-link:focus {
    outline: 2px solid #25af88;
    outline-offset: 1px;
    border-radius: 2px;
}

/*
 * ─── Link affordance convention ────────────────────────────────────────────
 *
 * Three icon-decorated link classes:
 *
 *   .link-external  → box-with-diagonal-arrow glyph (::after).
 *                     For URLs pointing OUTSIDE the Patitur app
 *                     (mitre.org, sensus.com, hhs.gov, etc.). Always pair
 *                     with target="_blank" rel="noopener noreferrer".
 *
 *   .link-internal  → plain diagonal-arrow glyph (::after).
 *                     For in-app navigation where we want a "go to details"
 *                     affordance (e.g. "view framework", "view product model").
 *                     Do NOT add target="_blank".
 *
 *   .link-glossary  → book-open glyph PREFIX (::before).
 *                     For in-app navigation that opens a *definition* in the
 *                     glossary. Use whenever the destination is /glossary/...
 *                     The prefix glyph disambiguates "look up the term" from
 *                     "navigate to the peer object", which matters when the
 *                     link text is itself the framework / object name and
 *                     could otherwise be confused with the framework page.
 *
 * `.table-cell-link-external` is kept as a legacy alias of `.link-external`.
 *
 * Sidebar entries, breadcrumbs, or other structural navigation where the
 * user doesn't need a visual "jump to" cue should omit both classes.
 */
.link-external,
.table-cell-link-external {
    color: #25af88; /* patitur green */
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    transition:
        color 0.15s ease,
        text-decoration 0.15s ease;
}

.link-external::after,
.table-cell-link-external::after {
    /* Box-with-arrow external-link glyph (Heroicons arrow-top-right-on-square).
       Semantically means "opens in a new tab / goes off-site" — reserve for
       actual external links only. Internal navigation should omit this. */
    content: "";
    display: inline-block;
    width: 0.8rem;
    height: 0.8rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2325af88'%3E%3Cpath fill-rule='evenodd' d='M4.25 5.5a.75.75 0 00-.75.75v8.5c0 .414.336.75.75.75h8.5a.75.75 0 00.75-.75v-4a.75.75 0 011.5 0v4A2.25 2.25 0 0112.75 17h-8.5A2.25 2.25 0 012 14.75v-8.5A2.25 2.25 0 014.25 4h5a.75.75 0 010 1.5h-5z' clip-rule='evenodd' /%3E%3Cpath fill-rule='evenodd' d='M6.194 12.753a.75.75 0 001.06.053L16.5 4.44v2.81a.75.75 0 001.5 0v-4.5a.75.75 0 00-.75-.75h-4.5a.75.75 0 000 1.5h2.553l-9.056 8.194a.75.75 0 00-.053 1.06z' clip-rule='evenodd' /%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    flex-shrink: 0;
}

.link-external:hover,
.table-cell-link-external:hover {
    color: #1e9a73; /* darker green */
    text-decoration: underline;
}

.link-external:hover::after,
.table-cell-link-external:hover::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%231e9a73'%3E%3Cpath fill-rule='evenodd' d='M4.25 5.5a.75.75 0 00-.75.75v8.5c0 .414.336.75.75.75h8.5a.75.75 0 00.75-.75v-4a.75.75 0 011.5 0v4A2.25 2.25 0 0112.75 17h-8.5A2.25 2.25 0 012 14.75v-8.5A2.25 2.25 0 014.25 4h5a.75.75 0 010 1.5h-5z' clip-rule='evenodd' /%3E%3Cpath fill-rule='evenodd' d='M6.194 12.753a.75.75 0 001.06.053L16.5 4.44v2.81a.75.75 0 001.5 0v-4.5a.75.75 0 00-.75-.75h-4.5a.75.75 0 000 1.5h2.553l-9.056 8.194a.75.75 0 00-.053 1.06z' clip-rule='evenodd' /%3E%3C/svg%3E");
}

.link-external:focus,
.table-cell-link-external:focus {
    outline: 2px solid #25af88;
    outline-offset: 1px;
    border-radius: 2px;
}

/*
 * ─── Code chip ─────────────────────────────────────────────────────────────
 *
 * Monospace pill used for IDs, element codes, technique IDs, OUI prefixes —
 * anywhere we want a gray "token" to stand out in text.
 *
 * Combine with `.link-external` when the chip is a clickable off-site link
 * (e.g. `Art. 21(2)(a)` → EUR-Lex) to get the box-with-arrow glyph and the
 * hover/focus green border that signals clickability.
 */
.code-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-family:
        ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
        "Liberation Mono", "Courier New", monospace;
    font-size: 0.6875rem; /* ~11px */
    font-weight: 600;
    padding: 0.125rem 0.5rem;
    border-radius: 0.25rem;
    background-color: rgb(243 244 246); /* gray-100 */
    border: 1px solid transparent;
    color: rgb(55 65 81); /* gray-700 */
    transition:
        background-color 0.15s ease,
        border-color 0.15s ease,
        color 0.15s ease;
    text-decoration: none;
}

a.code-chip:hover,
a.code-chip:focus {
    background-color: rgb(229 231 235); /* gray-200 */
    border-color: #25af88; /* patitur green */
    color: rgb(17 24 39); /* gray-900 */
    text-decoration: none;
    outline: none;
}

/* When a code chip is itself an external link, skip the gap between the code
   text and the chip border so the ::after glyph sits neatly inside. */
a.code-chip.link-external,
a.code-chip.table-cell-link-external {
    gap: 0.25rem;
}

/* Internal "jump to details" link — diagonal arrow, no box */
.link-internal {
    color: #0e9f6e; /* glossary-alert-accent green */
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    transition:
        color 0.15s ease,
        text-decoration 0.15s ease;
}

.link-internal::after {
    content: "";
    display: inline-block;
    width: 0.7rem;
    height: 0.7rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%230e9f6e'%3E%3Cpath fill-rule='evenodd' d='M5.22 14.78a.75.75 0 001.06 0l7.22-7.22v5.69a.75.75 0 001.5 0v-7.5a.75.75 0 00-.75-.75h-7.5a.75.75 0 000 1.5h5.69l-7.22 7.22a.75.75 0 000 1.06z' clip-rule='evenodd'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    flex-shrink: 0;
}

.link-internal:hover {
    color: #047857; /* emerald-700 */
    text-decoration: underline;
}

.link-internal:hover::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23047857'%3E%3Cpath fill-rule='evenodd' d='M5.22 14.78a.75.75 0 001.06 0l7.22-7.22v5.69a.75.75 0 001.5 0v-7.5a.75.75 0 00-.75-.75h-7.5a.75.75 0 000 1.5h5.69l-7.22 7.22a.75.75 0 000 1.06z' clip-rule='evenodd'/%3E%3C/svg%3E");
}

.link-internal:focus {
    outline: 2px solid #0e9f6e;
    outline-offset: 1px;
    border-radius: 2px;
}

/* Color override for link-internal used with Tailwind text-red-600
   (e.g. alert count deep-links).  The doubled-class selector beats
   the single `.link-internal` rule above without resorting to !important. */
.link-internal.text-red-600 {
    color: #dc2626; /* Tailwind red-600 */
}
.link-internal.text-red-600::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23dc2626'%3E%3Cpath fill-rule='evenodd' d='M5.22 14.78a.75.75 0 001.06 0l7.22-7.22v5.69a.75.75 0 001.5 0v-7.5a.75.75 0 00-.75-.75h-7.5a.75.75 0 000 1.5h5.69l-7.22 7.22a.75.75 0 000 1.06z' clip-rule='evenodd'/%3E%3C/svg%3E");
}
.link-internal.text-red-600:hover {
    color: #b91c1c; /* Tailwind red-700 */
}
.link-internal.text-red-600:hover::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23b91c1c'%3E%3Cpath fill-rule='evenodd' d='M5.22 14.78a.75.75 0 001.06 0l7.22-7.22v5.69a.75.75 0 001.5 0v-7.5a.75.75 0 00-.75-.75h-7.5a.75.75 0 000 1.5h5.69l-7.22 7.22a.75.75 0 000 1.06z' clip-rule='evenodd'/%3E%3C/svg%3E");
}

/* Glossary "look up the term" link — book-open glyph prefix.
   Distinguishes definition lookups from peer-object navigation; see the
   "Link affordance convention" block above. */
.link-glossary {
    color: #0e9f6e; /* glossary-alert-accent green */
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    transition:
        color 0.15s ease,
        text-decoration 0.15s ease;
}

.link-glossary::before {
    content: "";
    display: inline-block;
    width: 0.85rem;
    height: 0.85rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='1.75' stroke='%230e9f6e'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M12 6.042A8.967 8.967 0 006 3.75c-1.052 0-2.062.18-3 .512v14.25A8.987 8.987 0 016 18c2.305 0 4.408.867 6 2.292m0-14.25a8.966 8.966 0 016-2.292c1.052 0 2.062.18 3 .512v14.25A8.987 8.987 0 0018 18a8.967 8.967 0 00-6 2.292m0-14.25v14.25'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    flex-shrink: 0;
}

.link-glossary:hover {
    color: #047857; /* emerald-700 */
    text-decoration: underline;
}

.link-glossary:hover::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='1.75' stroke='%23047857'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M12 6.042A8.967 8.967 0 006 3.75c-1.052 0-2.062.18-3 .512v14.25A8.987 8.987 0 016 18c2.305 0 4.408.867 6 2.292m0-14.25a8.966 8.966 0 016-2.292c1.052 0 2.062.18 3 .512v14.25A8.987 8.987 0 0018 18a8.967 8.967 0 00-6 2.292m0-14.25v14.25'/%3E%3C/svg%3E");
}

.link-glossary:focus {
    outline: 2px solid #0e9f6e;
    outline-offset: 1px;
    border-radius: 2px;
}

/* Status Pill Variant Classes (Figma: pill-shaped status badges) */
.status-pill-online {
    background-color: var(--color-status-pill-bg-online);
    color: var(--color-status-pill-text-online);
}

.status-pill-danger {
    background-color: var(--color-status-pill-bg-danger);
    color: var(--color-status-pill-text-danger);
}

.status-pill-warning {
    background-color: var(--color-status-pill-bg-warning);
    color: var(--color-status-pill-text-warning);
}

.status-pill-info {
    background-color: var(--color-status-pill-bg-info);
    color: var(--color-status-pill-text-info);
}

.status-pill-neutral {
    background-color: var(--color-status-pill-bg-neutral);
    color: var(--color-status-pill-text-neutral);
}

/* Filter Pill Variant Classes (Figma: toggle filter buttons) */
.filter-pill-active {
    background-color: var(--color-filter-pill-bg-active);
    color: var(--color-filter-pill-text-active);
}

.filter-pill-inactive {
    border-color: var(--color-filter-pill-border-inactive);
    color: var(--color-filter-pill-text-inactive);
}

/* Active row highlight for table row selection */
:root {
    --color-row-highlight: #e0f2fe;
}

#product-models-table tr.pm-row-active td,
#tenant-pm-tab-container tr.pm-row-active td {
    background-color: var(--color-row-highlight);
}

/* Subtle pulsing animation for attention-drawing buttons (V53) */
@keyframes pulse-orange {
    0%,
    100% {
        background-color: #f97316;
    }
    50% {
        background-color: #fdba74;
    }
}

.animate-pulse-orange {
    animation: pulse-orange 2.5s ease-in-out infinite;
}

/* Leaflet popup overrides — keep close button inside the white box */
.leaflet-popup-content-wrapper {
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    padding: 12px 14px;
}

.leaflet-popup-content {
    margin: 0;
    font-family: "Inter", system-ui, sans-serif;
    font-size: 13px;
}

.leaflet-container a.leaflet-popup-close-button {
    top: 8px;
    right: 10px;
    z-index: 10;
    font-size: 20px;
    font-weight: 400;
    color: #9ca3af;
    width: 20px;
    height: 20px;
    line-height: 20px;
    padding: 0;
}

.leaflet-container a.leaflet-popup-close-button:hover {
    color: #374151;
}

/* Tab underline — ensure no border-radius on active tab indicator.
   Tailwind's border-b-2 produces a flat bottom border; this rule guards
   against any CDN stylesheet or future browser default introducing rounding
   on the bottom corners of tab buttons. (LF-2) */
[role="tablist"] [role="tab"] {
    border-radius: 0;
}

/* ============================================================
   Alert details modal — inline status-edit form + resolution
   card.  Lifted out of templates/alerts/_alert_details_modal.html
   so the modal's chrome lives in one place and design-token
   tweaks (greens, grays, focus rings) don't require touching
   the Jinja partial.  The modal is htmx-swapped into
   #main-modal-content from any page that triggers
   ``alerts.alert_details_modal``, so the rules need to be
   loaded globally — design-system.css is the global include in
   base.html.
   ============================================================ */
.alert-resolved-card {
    margin-top: 0.5rem;
    padding: 0.625rem 0.75rem;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 0.375rem;
}
.alert-resolved-row {
    display: flex;
    gap: 0.625rem;
    font-size: 0.8125rem;
    line-height: 1.4;
    padding: 0.125rem 0;
}
.alert-resolved-label {
    flex-shrink: 0;
    width: 7rem;
    font-weight: 600;
    color: #065f46;
}
.alert-resolved-value {
    color: #1f2937;
}
.alert-resolved-value-placeholder {
    color: #9ca3af;
    font-style: italic;
}
.alert-status-row {
    display: flex;
    align-items: flex-end;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.alert-status-cell {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}
.alert-status-cell-value {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 1.75rem;
}
.alert-status-id {
    font-family:
        ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    background: #f3f4f6;
    padding: 0.125rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.8125rem;
    color: #1f2937;
}
.alert-status-edit-toggle {
    margin-left: auto;
}
.alert-status-edit-select {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    line-height: 1.4;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    background: #fff;
    color: #1f2937;
    cursor: pointer;
    min-width: 9rem;
}
.alert-status-edit-select:focus {
    outline: none;
    border-color: #059669;
    box-shadow: 0 0 0 2px rgba(5, 150, 105, 0.15);
}
.alert-status-edit-form {
    margin-top: 0.875rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e5e7eb;
}
.alert-status-edit-form-label {
    display: block;
    margin-bottom: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #374151;
}
.alert-status-edit-form-hint {
    font-weight: 400;
    color: #9ca3af;
    margin-left: 0.25rem;
}
.alert-status-edit-textarea {
    width: 100%;
    padding: 0.4375rem 0.625rem;
    font-size: 0.8125rem;
    line-height: 1.4;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    background: #fff;
    color: #1f2937;
    resize: vertical;
    min-height: 2.75rem;
}
.alert-status-edit-textarea:focus {
    outline: none;
    border-color: #059669;
    box-shadow: 0 0 0 2px rgba(5, 150, 105, 0.15);
}
.alert-status-edit-form-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.625rem;
}
.alert-status-edit-form-prototype-note {
    flex: 1;
    font-size: 0.6875rem;
    color: #9ca3af;
}
.alert-status-edit-save-btn {
    padding: 0.4375rem 1rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #fff;
    background: #059669;
    border: 1px solid #059669;
    border-radius: 0.375rem;
    cursor: pointer;
}
.alert-status-edit-save-btn:hover {
    background: #047857;
    border-color: #047857;
}
