body {
    background:
        radial-gradient(circle at top left, rgba(13, 110, 253, 0.08), transparent 26%),
        linear-gradient(180deg, #f7f9fc 0%, #f3f6fb 100%);
}

.table td, .table th { vertical-align: middle; }

.board-page {
    max-width: 1680px;
}

.board-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 1.25rem;
    padding: 1.25rem 1.35rem;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(10px);
}

.board-eyebrow {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #4f46e5;
    margin-bottom: 0.35rem;
}

.board-title {
    font-size: 1.85rem;
    font-weight: 700;
    color: #111827;
}

.board-subtitle {
    color: #64748b;
}

/* ═══════════════════════════════════════
   STAT / METRIC CARDS
═══════════════════════════════════════ */
.card.stat-card {
    border-radius: 1rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-top: 4px solid var(--stat-accent, #2563eb);
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.06), 0 4px 16px rgba(15, 23, 42, 0.04);
    transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.stat-tab-card {
    width: 100%;
    text-align: left;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    outline: none;
}

.stat-tab-card:focus-visible {
    outline: 2px solid var(--stat-accent, #2563eb);
    outline-offset: 2px;
}

.stat-tab-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 24px rgba(15, 23, 42, 0.10), 0 2px 8px rgba(15, 23, 42, 0.06);
}

.stat-tab-card.active {
    background: var(--stat-bg-active, rgba(239, 246, 255, 0.9));
    border-color: var(--stat-border-strong, rgba(37, 99, 235, 0.3));
    border-top-color: var(--stat-accent, #2563eb);
    box-shadow: 0 8px 32px var(--stat-shadow, rgba(37, 99, 235, 0.18)), 0 2px 8px rgba(15, 23, 42, 0.06);
}

.stat-tab-card .card-body {
    padding: 1.3rem 1.3rem 1.15rem;
}

.stat-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.15rem;
}

.stat-icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.7rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--stat-accent, #2563eb);
    color: #fff;
    font-size: 1rem;
    flex-shrink: 0;
    box-shadow: 0 3px 10px var(--stat-shadow, rgba(37, 99, 235, 0.32));
}

.stat-trend {
    display: none;
}

.stat-main-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.5rem;
}

.stat-value-wrap {
    text-align: right;
    flex-shrink: 0;
    line-height: 1;
}

.stat-value {
    font-size: clamp(1.9rem, 2.6vw, 2.6rem);
    line-height: 1;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--stat-accent, #2563eb);
}

.stat-unit {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #94a3b8;
    margin-top: 0.28rem;
}

.stat-label {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.2;
}

.stat-caption {
    font-size: 0.8rem;
    color: #94a3b8;
    margin-top: 0.22rem;
}

/* ── Per-status theme tokens ── */
.stat-theme-new {
    --stat-accent: #2563eb;
    --stat-shadow: rgba(37, 99, 235, 0.24);
    --stat-border-strong: rgba(37, 99, 235, 0.28);
    --stat-bg-active: rgba(239, 246, 255, 0.85);
}

.stat-theme-retest {
    --stat-accent: #d97706;
    --stat-shadow: rgba(217, 119, 6, 0.24);
    --stat-border-strong: rgba(217, 119, 6, 0.28);
    --stat-bg-active: rgba(255, 251, 235, 0.85);
}

.stat-theme-failed {
    --stat-accent: #dc2626;
    --stat-shadow: rgba(220, 38, 38, 0.24);
    --stat-border-strong: rgba(220, 38, 38, 0.28);
    --stat-bg-active: rgba(255, 241, 242, 0.85);
}

.stat-theme-pass {
    --stat-accent: #16a34a;
    --stat-shadow: rgba(22, 163, 74, 0.24);
    --stat-border-strong: rgba(22, 163, 74, 0.28);
    --stat-bg-active: rgba(240, 253, 244, 0.85);
}

.stat-theme-blocked {
    --stat-accent: #ea580c;
    --stat-shadow: rgba(234, 88, 12, 0.24);
    --stat-border-strong: rgba(234, 88, 12, 0.28);
    --stat-bg-active: rgba(255, 247, 237, 0.85);
}

.board-panel {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 1.25rem;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.board-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.25rem 0.9rem;
}

.board-panel-count {
    font-size: 0.85rem;
    padding: 0.55rem 0.8rem;
}

.filter-panel {
    margin: 1rem 1.25rem 1rem;
    padding: 1rem;
    background: #f8fbff;
    border: 1px solid #e4ecf7;
    border-radius: 1rem;
}

.table-shell {
    padding: 0 1.1rem 1.1rem;
}

.board-table {
    margin-bottom: 0;
    --bs-table-bg: transparent;
}

.board-table thead th {
    font-size: 0.76rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #64748b;
    border-bottom-width: 1px;
    background: #f8fafc;
}

.board-table tbody tr {
    border-color: #edf2f7;
}

.board-table tbody tr:hover {
    --bs-table-hover-bg: #f8fbff;
}

.board-table td {
    padding-top: 0.9rem;
    padding-bottom: 0.9rem;
}

.board-table .col-id {
    width: 15%;
    min-width: 180px;
}

.board-table .col-name {
    width: 18%;
    min-width: 180px;
}

.board-table .col-layer {
    width: 8%;
    min-width: 90px;
    white-space: nowrap;
}

.board-table .col-module {
    width: 29%;
    min-width: 280px;
}

.board-table .col-latest {
    width: 14%;
    min-width: 140px;
}

.board-table .col-retest {
    width: 7%;
    min-width: 90px;
    white-space: nowrap;
}

.board-table .col-action {
    width: 12%;
    min-width: 220px;
}

.board-table td.col-latest,
.board-table td.col-retest,
.board-table td.col-action,
.board-table th.col-latest,
.board-table th.col-retest,
.board-table th.col-action,
.board-table th.col-layer,
.board-table td.col-layer {
    vertical-align: middle;
}

.board-table td.col-id strong {
    white-space: nowrap;
}

.board-table td.col-module {
    color: #1f2937;
}

.board-table td.col-action .d-inline-flex {
    flex-wrap: nowrap !important;
    white-space: nowrap;
}

.bg-orange { background-color: #fd7e14 !important; }
.btn-orange {
    --bs-btn-color: #1f1f1f;
    --bs-btn-bg: #fd7e14;
    --bs-btn-border-color: #fd7e14;
    --bs-btn-hover-color: #1f1f1f;
    --bs-btn-hover-bg: #e96f0f;
    --bs-btn-hover-border-color: #e96f0f;
}

.btn-icon {
    width: 40px;
    height: 32px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    line-height: 1;
}

.btn-view,
.btn-edit,
.btn-action-note,
.btn-delete,
.btn-execute {
    border-radius: 0.75rem;
}

.btn-action-note {
    color: #6366f1;
    border-color: #c7d2fe;
    background: #eef2ff;
}

.btn-action-note:hover {
    color: #4f46e5;
    border-color: #a5b4fc;
    background: #e0e7ff;
}

.modal-dialog.modal-create-test {
    width: calc(100vw - 2rem);
    max-width: none;
    height: calc(100dvh - 2rem);
    margin: 1rem auto;
}

.modal-dialog.modal-create-test .modal-content {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.modal-dialog.modal-create-test .modal-content > form {
    height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.modal-dialog.modal-create-test .modal-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
}

.execute-modal-content,
.edit-modal-content {
    border: none;
    border-radius: 1rem;
    overflow: hidden;
}

.create-test-modal-content {
    border: none;
    border-radius: 1rem;
    overflow: hidden;
}

.quick-register-modal-content {
    border: none;
    border-radius: 1rem;
    overflow: hidden;
}

.modern-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.15rem 1.4rem;
    color: #fff;
    border-bottom: none;
}

.modern-modal-header-indigo {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
}

.modern-modal-header-violet {
    background: linear-gradient(135deg, #7c3aed 0%, #4f46e5 100%);
}

.modern-modal-header-cyan {
    background: linear-gradient(135deg, #0891b2 0%, #0f766e 100%);
}

.modern-modal-header-teal {
    background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
}

.quick-register-table-wrap {
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    overflow: hidden;
    background: #fff;
}

.quick-register-table {
    table-layout: fixed;
}

.quick-register-table .quick-col-name,
.quick-register-table .quick-col-objective {
    width: auto;
}

.quick-register-table .quick-col-action {
    width: 130px;
}

.quick-register-table thead th {
    background: #f8fafc;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    border-bottom-color: #e2e8f0;
    padding: 0.6rem 0.75rem;
}

.quick-register-table thead th:last-child {
    text-align: center;
}

.quick-register-table tbody td {
    vertical-align: middle;
    border-top-color: #eef2f7;
    padding: 0.75rem 0.75rem;
}

.quick-register-table thead th:first-child,
.quick-register-table tbody td:first-child {
    padding-left: 1rem;
}

.quick-register-table thead th:last-child,
.quick-register-table tbody td:last-child {
    padding-right: 1rem;
}

.quick-register-table tbody td input.form-control {
    width: 100%;
}

.quick-register-table .quick-row-action {
    text-align: center;
    white-space: nowrap;
}

.quick-register-table .btn-remove-quick-row {
    min-width: 86px;
}

.modern-modal-subtitle {
    font-size: 0.84rem;
    opacity: 0.88;
}

.modern-modal-body {
    background: #f8fafc;
    padding: 1.15rem 1.4rem;
}

.modern-summary-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.8rem;
    padding: 0.9rem 1rem;
}

.modern-summary-label {
    font-size: 0.73rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #94a3b8;
}

.modern-summary-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
    margin-top: 0.15rem;
    word-break: break-word;
}

.modern-summary-objective {
    font-size: 0.88rem;
    color: #475569;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.modern-section-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.8rem;
    padding: 1rem;
}

.modern-section-title {
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6366f1;
    margin-bottom: 0.75rem;
}

.modern-modal-footer {
    border-top: 1px solid #e2e8f0;
    background: #fff;
}

#executeModal .modal-body {
    overflow-y: auto !important;
}

.paste-zone {
    border: 2px dashed #9fb2c7;
    border-radius: 0.5rem;
    padding: 1rem;
    background: #f8fafc;
    color: #405266;
    min-height: 90px;
    display: flex;
    align-items: center;
}

.paste-zone:focus {
    outline: none;
    border-color: #0d6efd;
    background: #eef5ff;
}

.attachment-thumb {
    width: 220px;
    height: 140px;
    object-fit: cover;
}

.attachment-item {
    position: relative;
    width: 220px;
    height: 140px;
}

.attachment-item .attachment-remove {
    position: absolute;
    top: 8px;
    right: 8px;
    border: 1px solid rgba(255, 255, 255, 0.9);
    background: rgba(33, 37, 41, 0.82);
    color: #fff;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    padding: 0;
    line-height: 22px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.12s ease, background-color 0.12s ease;
}

.attachment-item .attachment-remove:hover {
    background: rgba(220, 53, 69, 0.95);
    transform: scale(1.06);
}

.attachment-item .attachment-remove:focus-visible {
    outline: 2px solid #0d6efd;
    outline-offset: 2px;
}

#exec_action_done_editor .ql-editor {
    min-height: 120px;
}

#exec_action_done_editor {
    margin-bottom: 0.5rem;
}

#exec_action_done_editor .ql-container {
    min-height: 140px;
}

.execution-html {
    min-height: 80px;
}

.execution-html p:last-child {
    margin-bottom: 0;
}

/* ── View Modal ─────────────────────────────────────────── */
.view-modal-content {
    border: none;
    border-radius: 1rem;
    overflow: hidden;
}

/* ── Header ── */
.view-modal-header {
    background: linear-gradient(135deg, #1a56db 0%, #3730a3 100%);
    padding: 1.25rem 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 10;
    position: relative; /* for absolute close btn */
}

.view-close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    border-radius: 0.5rem;
    width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: background 0.15s;
    cursor: pointer;
    line-height: 1;
    z-index: 2;
}

.view-close-btn:hover {
    background: rgba(255,255,255,0.24);
}

.view-header-title-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    padding-right: 2.5rem;
}

.view-header-badges {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.view-modal-testid {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    line-height: 1.4;
    margin-bottom: 0.3rem;
}

.view-modal-testname {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    word-break: break-word;
}

.view-header-version-row {
    margin-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.12);
    padding: 0.55rem 0 0;
    position: relative;
}

.view-header-version-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 0.6rem;
    /* thin custom scrollbar */
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.25) transparent;
}

.view-header-version-scroll::-webkit-scrollbar {
    height: 3px;
}

.view-header-version-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.view-header-version-scroll::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.25);
    border-radius: 999px;
}

.view-header-version-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.45);
}

.view-badge-row,
.view-modal-badge-row {
    display: flex;
    gap: 0.45rem;
}

.view-badge {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    padding: 0.22em 0.6em;
    border-radius: 0.35rem;
    border: 1px solid rgba(255,255,255,0.28);
    color: #fff;
    background: rgba(255,255,255,0.14);
    line-height: 1.4;
}

.view-badge-priority.priority-critical { background: rgba(220,38,38,0.7);  border-color: rgba(220,38,38,0.45); }
.view-badge-priority.priority-high     { background: rgba(234,88,12,0.65); border-color: rgba(234,88,12,0.4); }
.view-badge-priority.priority-medium   { background: rgba(202,138,4,0.65); border-color: rgba(202,138,4,0.4); }
.view-badge-priority.priority-low      { background: rgba(255,255,255,0.12); }

.view-modal-testid {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.65);
    text-transform: uppercase;
    line-height: 1.4;
}

.view-modal-testname {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    word-break: break-word;
}

/* Status pill */
.view-status-pill {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.3em 0.9em;
    border-radius: 999px;
    line-height: 1.5;
}

.view-status-pill.status-pass    { background: #dcfce7; color: #15803d; }
.view-status-pill.status-fail    { background: #fee2e2; color: #b91c1c; }
.view-status-pill.status-blocked { background: #ffedd5; color: #c2410c; }
.view-status-pill.status-notrun  { background: rgba(255,255,255,0.18); color: rgba(255,255,255,0.85); }

/* ── Body ── */
.view-modal-body {
    padding: 1.25rem 1.5rem;
    background: #f8fafc;
}

.view-section {
    background: #fff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 0.85rem;
    padding: 1.15rem 1.25rem;
}

.view-section-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6366f1;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 1rem;
}

.view-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.75rem 1.5rem;
}

.view-info-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #94a3b8;
    margin-bottom: 0.18rem;
}

.view-info-value {
    font-size: 0.93rem;
    font-weight: 600;
    color: #1e293b;
}

.view-info-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.6rem;
    padding: 0.7rem 0.9rem;
    font-size: 0.88rem;
    color: #334155;
    min-height: 46px;
}

/* ── Execution section header row ── */
/* ── Version history strip ── */
.exec-version-strip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.exec-version-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.28em 0.75em;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.25);
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.75);
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    white-space: nowrap;
}

.exec-version-pill:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.45);
    color: #fff;
}

.exec-version-pill.active {
    background: rgba(255,255,255,0.92);
    border-color: rgba(255,255,255,0.92);
    color: #1e3a8a;
    font-weight: 700;
}

.exec-version-pill.pill-pass.active   { background: #d1fae5; border-color: #d1fae5; color: #065f46; }
.exec-version-pill.pill-fail.active   { background: #fee2e2; border-color: #fee2e2; color: #991b1b; }
.exec-version-pill.pill-blocked.active{ background: #ffedd5; border-color: #ffedd5; color: #9a3412; }

.pill-latest-tag {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: rgba(255,255,255,0.18);
    border-radius: 999px;
    padding: 0.1em 0.45em;
    line-height: 1.4;
}

.exec-version-pill.active .pill-latest-tag {
    background: rgba(30,58,138,0.12);
}

.exec-version-pill.pill-pass.active .pill-latest-tag   { background: rgba(6,95,70,0.12); }
.exec-version-pill.pill-fail.active .pill-latest-tag   { background: rgba(153,27,27,0.12); }
.exec-version-pill.pill-blocked.active .pill-latest-tag{ background: rgba(154,52,18,0.12); }

.exec-version-loading {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.55);
}

/* ── Execution summary card ── */
.exec-summary-card {
    display: flex;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #e2e8f0;
    border-radius: 0.75rem;
    overflow: hidden;
    transition: border-left-color 0.2s;
}

.exec-summary-card.result-pass    { border-left-color: #16a34a; }
.exec-summary-card.result-fail    { border-left-color: #dc2626; }
.exec-summary-card.result-blocked { border-left-color: #ea580c; }

.exec-summary-result {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 1rem 1.4rem;
    background: #f8fafc;
    border-right: 1px solid #e2e8f0;
    flex-shrink: 0;
    min-width: 100px;
}

.exec-summary-result-label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #94a3b8;
}

.exec-summary-divider {
    display: none;
}

.exec-summary-meta {
    display: flex;
    align-items: stretch;
    flex: 1;
    flex-wrap: wrap;
}

.exec-summary-meta-cell {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.9rem 1.25rem;
    flex: 1;
    min-width: 140px;
    border-right: 1px solid #f1f5f9;
}

.exec-summary-meta-cell:last-child {
    border-right: none;
}

.exec-summary-meta-label {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #94a3b8;
}

.exec-summary-meta-label i {
    width: 12px;
    text-align: center;
}

.exec-summary-meta-value {
    font-size: 0.92rem;
    font-weight: 600;
    color: #1e293b;
}

/* status badge inside the card */
.view-exec-status-badge {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.3em 0.85em;
    border-radius: 999px;
    line-height: 1.5;
}

.exec-badge-pass    { background: #dcfce7; color: #15803d; }
.exec-badge-fail    { background: #fee2e2; color: #b91c1c; }
.exec-badge-blocked { background: #ffedd5; color: #c2410c; }

.view-no-exec {
    font-size: 0.9rem;
    padding: 0.75rem 0 0.25rem;
    color: #94a3b8;
}

/* ── Delete confirmation modal ── */
.modal-delete-test {
    max-width: 580px;
}

.delete-modal-content {
    border: 0;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.2);
}

.delete-modal-header {
    border: 0;
    padding: 0.75rem 0.85rem 0;
    justify-content: flex-end;
}

.delete-modal-close {
    opacity: 0.55;
}

.delete-modal-close:hover {
    opacity: 0.85;
}

.delete-modal-body {
    padding: 0.25rem 1.75rem 1rem;
}

.delete-modal-icon-wrap {
    margin-bottom: 0.75rem;
}

.delete-modal-icon {
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 50%;
    background: linear-gradient(180deg, #fff1f2 0%, #ffe4e6 100%);
    border: 1px solid #fda4af;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #e11d48;
    margin: 0 auto;
}

.delete-modal-title {
    font-size: 1.9rem;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 0.2rem;
}

.delete-modal-testid {
    font-size: 0.92rem;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 0.85rem;
}

.delete-modal-name-wrap {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    padding: 0.35rem 0.8rem;
    background: #f8fafc;
    margin-bottom: 0.85rem;
}

.delete-modal-name-label {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #94a3b8;
}

.delete-modal-name {
    font-size: 0.9rem;
    color: #1e293b;
}

.delete-modal-desc {
    font-size: 0.92rem;
    color: #64748b;
    line-height: 1.55;
}

.delete-modal-footer {
    border: 0;
    padding: 0.45rem 1.25rem 1.35rem;
    justify-content: center;
    gap: 0.7rem;
}

.delete-btn-cancel,
.delete-btn-confirm {
    min-width: 128px;
    border-radius: 0.55rem;
    font-weight: 600;
    padding: 0.52rem 1rem;
}

/* ── Note view modal ── */
.modal-note-view {
    max-width: 560px;
}

.note-modal-content {
    border: 0;
    border-radius: 0.95rem;
    overflow: hidden;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.18);
}

.note-modal-header {
    border-bottom: 1px solid #e2e8f0;
    background: linear-gradient(135deg, #eff6ff 0%, #eef2ff 100%);
    padding: 0.9rem 1.1rem;
}

.note-modal-subtitle {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 600;
}

.note-modal-body {
    padding: 1rem 1.1rem;
    background: #ffffff;
}

.note-modal-text {
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    border-radius: 0.7rem;
    padding: 0.85rem 0.95rem;
    color: #334155;
    line-height: 1.55;
    white-space: pre-wrap;
    word-break: break-word;
    font-size: 0.92rem;
    min-height: 84px;
}

.note-modal-footer {
    border-top: 1px solid #e2e8f0;
    background: #fff;
    padding: 0.75rem 1.1rem;
}

/* ── Auth pages ─────────────────────────────────────────────── */
.auth-page {
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.auth-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}

/* Brand / left panel */
.auth-brand-panel {
    position: relative;
    background: linear-gradient(150deg, #1a56db 0%, #3730a3 60%, #1e1b4b 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 3rem 3.5rem;
}

.auth-brand-deco {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.09) 0%, transparent 45%),
        radial-gradient(circle at 10% 80%, rgba(99,102,241,0.25) 0%, transparent 40%);
    pointer-events: none;
}

/* Decorative circles */
.auth-brand-panel::before {
    content: '';
    position: absolute;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,0.08);
    right: -90px;
    top: -80px;
    pointer-events: none;
}

.auth-brand-panel::after {
    content: '';
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,0.06);
    left: -50px;
    bottom: -60px;
    pointer-events: none;
}

.auth-brand-inner {
    position: relative;
    z-index: 1;
    color: #fff;
    max-width: 420px;
}

.auth-logo {
    width: 60px;
    height: 60px;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.55rem;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.2);
}

.auth-brand-title {
    font-size: clamp(1.8rem, 2.8vw, 2.6rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    color: #fff;
}

/* EDOCTEST wordmark */
.auth-wordmark {
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    color: #fff;
    margin-bottom: 1rem;
    line-height: 1;
}

.auth-wordmark-e {
    display: inline-block;
    background: rgba(255,255,255,0.22);
    border: 1.5px solid rgba(255,255,255,0.35);
    border-radius: 0.35rem;
    padding: 0 0.18em;
    margin-right: 0.04em;
    backdrop-filter: blur(4px);
}

.auth-wordmark-accent {
    color: #bfdbfe;
}

/* ── Entrance animations ─────────────────────────────── */
@keyframes auth-logo-pop {
    0%   { opacity: 0; transform: scale(0.55) rotate(-10deg); }
    65%  { transform: scale(1.08) rotate(2deg); }
    100% { opacity: 1; transform: scale(1) rotate(0deg); }
}

@keyframes auth-brand-slide {
    from { opacity: 0; transform: translateX(-28px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes auth-form-slide {
    from { opacity: 0; transform: translateX(28px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes auth-fade-up {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes auth-shimmer {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
    50%       { box-shadow: 0 0 0 6px rgba(255,255,255,0.12); }
}

.anim-brand {
    animation: auth-brand-slide 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.anim-logo {
    animation:
        auth-logo-pop 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) 0.05s both,
        auth-shimmer 3.5s ease-in-out 0.8s infinite;
}

.anim-form-panel {
    animation: auth-form-slide 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.anim-fade-up {
    animation: auth-fade-up 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: var(--delay, 0s);
}

.auth-brand-sub {
    color: rgba(255, 255, 255, 0.75);
    font-size: 1rem;
    line-height: 1.65;
    margin-bottom: 2rem;
}

.auth-feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.8rem;
}

.auth-feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.93rem;
}

.auth-feature-list li i {
    color: #93c5fd;
    margin-top: 2px;
    flex-shrink: 0;
}

/* Form / right panel */
.auth-form-panel {
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2.5rem;
}

.auth-form-inner {
    width: 100%;
    max-width: 400px;
}

.auth-form-header {
    margin-bottom: 2rem;
}

.auth-form-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
    margin-bottom: 0.4rem;
}

.auth-form-sub {
    color: #64748b;
    margin: 0;
}

.auth-alert {
    border-radius: 0.65rem;
    font-size: 0.9rem;
    padding: 0.6rem 0.9rem;
    margin-bottom: 1.25rem;
}

.auth-field {
    display: flex;
    flex-direction: column;
}

.auth-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.4rem;
}

.auth-label i {
    color: #6b7280;
}

.auth-input {
    height: 48px;
    border-radius: 0.65rem;
    border: 1.5px solid #e2e8f0;
    background: #fff;
    font-size: 0.95rem;
    padding: 0 0.9rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.auth-input:focus {
    border-color: #1a56db;
    box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.12);
    outline: none;
}

.auth-hint {
    font-size: 0.78rem;
    color: #94a3b8;
    margin-top: 0.3rem;
}

.auth-submit {
    height: 48px;
    border-radius: 0.65rem;
    font-weight: 700;
    font-size: 0.95rem;
    background: linear-gradient(135deg, #1a56db 0%, #3730a3 100%);
    color: #fff;
    border: none;
    letter-spacing: 0.01em;
    transition: opacity 0.15s ease, transform 0.12s ease;
}

.auth-submit:hover {
    opacity: 0.92;
    transform: translateY(-1px);
    color: #fff;
}

.auth-submit:active {
    transform: translateY(0);
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1.25rem 0;
    color: #cbd5e1;
    font-size: 0.82rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

.auth-divider span {
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.auth-switch {
    text-align: center;
    font-size: 0.9rem;
    color: #64748b;
    display: flex;
    justify-content: center;
    gap: 0.3rem;
}

.auth-switch a {
    color: #1a56db;
    font-weight: 700;
    text-decoration: none;
}

.auth-switch a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .auth-layout {
        grid-template-columns: 1fr;
    }

    .auth-brand-panel {
        padding: 2.5rem 2rem;
        min-height: auto;
    }

    .auth-brand-title {
        font-size: 1.9rem;
    }

    .auth-form-panel {
        padding: 2rem 1.5rem;
    }
}

/* Master Data Panel Styling */
.offcanvas-fullscreen {
    width: 100% !important;
    max-width: 100% !important;
}

.offcanvas-fullscreen .offcanvas-body {
    overflow-y: auto;
}

.master-panel-header {
    background: linear-gradient(135deg, #eef2ff 0%, #f8fafc 60%, #ffffff 100%);
}

.master-panel-title {
    color: #1e3a8a;
    font-weight: 700;
}

.master-panel-subtitle {
    color: #64748b;
    font-size: 0.92rem;
}

.master-data-wrap {
    max-width: 100%;
    margin: 0;
}

.master-section-card {
    border-radius: 1rem;
    border: 1px solid #e2e8f0 !important;
    overflow: hidden;
}

.master-section-card .card-header {
    padding: 0.95rem 1.2rem;
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

.master-section-head h5 {
    font-weight: 700;
}

.master-head-main {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.master-head-title {
    min-width: 280px;
}

.master-inline-form-head {
    flex: 1 1 auto;
}

.master-section-meta {
    font-size: 0.82rem;
    color: #94a3b8;
}

.master-section-card .card-body {
    padding: 1.2rem;
    background: #fcfdff;
}

.master-inline-form .form-control,
.master-inline-form .form-select {
    height: 44px;
    border-radius: 0.55rem;
    border-color: #dbe4f0;
}

.master-inline-form .form-control:focus,
.master-inline-form .form-select:focus {
    border-color: #7c9cff;
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.12);
}

.master-inline-form .btn {
    height: 44px;
    border-radius: 0.55rem;
    font-weight: 600;
    white-space: nowrap;
}

.master-list .list-group-item {
    border-color: rgba(226, 232, 240, 0.75);
    padding: 0.8rem 0.65rem;
    border-radius: 0.7rem;
    margin-bottom: 0.5rem;
    background: #ffffff;
}

.master-item-row {
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.master-item-row:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}

.master-list .list-group-item h6 {
    font-weight: 600;
    color: #0f172a;
}

.master-list .btn {
    min-width: 80px;
}

.master-edit-modal-content {
    border: none;
    border-radius: 0.95rem;
    overflow: hidden;
}

.master-edit-modal-header {
    background: linear-gradient(135deg, #1d4ed8 0%, #4f46e5 100%);
    color: #fff;
    border-bottom: none;
}

@media (max-width: 991.98px) {
    .board-hero {
        flex-direction: column;
    }

    .board-hero-actions {
        width: 100%;
    }

    .board-hero-actions .btn {
        flex: 1 1 auto;
    }

    .master-section-card .card-header {
        padding: 0.8rem 1rem;
    }

    .master-section-card .card-body {
        padding: 1rem;
    }

    .master-head-main {
        flex-direction: column;
    }

    .master-head-title {
        min-width: 0;
        width: 100%;
    }
}
