:root {
    --onyx-bg: #f4f6f8;
    --onyx-panel: #ffffff;
    --onyx-panel-soft: #f8fafc;
    --onyx-border: #d1d7de;
    --onyx-border-dark: #b8c1cc;

    --onyx-text: #111827;
    --onyx-muted: #6b7280;

    --onyx-navy: #102a43;
    --onyx-navy-dark: #0b1f33;
    --onyx-blue-soft: #eef4fb;

    --onyx-sidebar: #eef1f5;
    --onyx-topbar: #ffffff;

    --onyx-radius: 12px;
    --onyx-radius-sm: 8px;

    --onyx-shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
    --onyx-shadow: 0 10px 28px rgba(15, 23, 42, 0.10);
}

body {
    background: var(--onyx-bg);
    color: var(--onyx-text);
    font-family: Arial, sans-serif;
    margin: 0;
}

/* ============================================================
   Layout
   ============================================================ */

.onyx-topbar {
    align-items: center;
    background: var(--onyx-topbar);
    border-bottom: 1px solid var(--onyx-border);
    box-shadow: var(--onyx-shadow-sm);
    display: flex;
    justify-content: space-between;
    min-height: 76px;
    padding: 18px 28px;
}

.onyx-topbar-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.onyx-brand {
    color: var(--onyx-navy);
    font-size: 30px;
    font-weight: 800;
    letter-spacing: 0.2px;
}

.onyx-tagline {
    color: var(--onyx-muted);
    font-size: 14px;
    margin-top: 3px;
}

.onyx-shell {
    display: block;
}

.onyx-sidebar {
    background: var(--onyx-sidebar);
    border-bottom: 1px solid var(--onyx-border);
    padding: 14px;
}

.onyx-sidebar-section {
    margin-bottom: 18px;
}

.onyx-sidebar-title {
    color: var(--onyx-muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.onyx-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.onyx-nav a {
    background: var(--onyx-panel);
    border: 1px solid var(--onyx-border);
    border-radius: var(--onyx-radius-sm);
    color: var(--onyx-navy);
    font-size: 14px;
    font-weight: 700;
    padding: 10px 12px;
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.onyx-nav a:hover {
    background: var(--onyx-panel-soft);
    border-color: var(--onyx-border-dark);
    box-shadow: var(--onyx-shadow-sm);
    text-decoration: none;
}

.onyx-nav a.active {
    background: var(--onyx-navy);
    border-color: var(--onyx-navy-dark);
    color: #ffffff;
}

.onyx-main {
    box-sizing: border-box;
    padding: 20px;
    width: 100%;
}

.onyx-footer {
    color: var(--onyx-muted);
    font-size: 13px;
    padding: 16px 24px;
}

.onyx-footer a {
    color: var(--onyx-navy);
    font-weight: 700;
    text-decoration: none;
}

.onyx-footer a:hover {
    text-decoration: underline;
}

/* ============================================================
   Page Header / Cards / Sections
   ============================================================ */

.onyx-pagehead {
    align-items: flex-start;
    display: flex;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
}

.onyx-pagehead h1,
.onyx-pagehead h2 {
    color: var(--onyx-text);
    font-weight: 800;
    margin: 0;
}

.onyx-pagehead-sub {
    color: var(--onyx-muted);
    font-size: 15px;
    margin-top: 5px;
}

.onyx-card {
    background: var(--onyx-panel);
    border: 1px solid var(--onyx-border);
    border-radius: var(--onyx-radius);
    box-shadow: var(--onyx-shadow-sm);
    box-sizing: border-box;
    padding: 26px;
}

.onyx-card h1,
.onyx-card h2,
.onyx-card h3,
.onyx-card h4,
.onyx-card h5 {
    color: var(--onyx-navy);
}

.onyx-card p {
    line-height: 1.55;
}

.onyx-section {
    background: var(--onyx-panel);
    border: 1px solid var(--onyx-border);
    border-radius: var(--onyx-radius);
    box-shadow: var(--onyx-shadow-sm);
    margin-bottom: 18px;
    overflow: hidden;
}

.onyx-section-header {
    background: var(--onyx-panel-soft);
    border-bottom: 1px solid var(--onyx-border);
    color: var(--onyx-navy);
    font-weight: 800;
    padding: 12px 16px;
}

.onyx-section-body {
    padding: 18px;
}

.onyx-muted {
    color: var(--onyx-muted);
}

.onyx-two-column {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* ============================================================
   Buttons / Forms
   ============================================================ */

.onyx-button {
    background: var(--onyx-navy);
    border: 1px solid var(--onyx-navy-dark);
    border-radius: var(--onyx-radius-sm);
    color: #ffffff;
    cursor: pointer;
    display: inline-block;
    font-weight: 700;
    padding: 10px 14px;
    text-decoration: none;
}

.onyx-button:hover {
    background: var(--onyx-navy-dark);
    color: #ffffff;
    text-decoration: none;
}

.onyx-button-secondary {
    background: #ffffff;
    border-color: var(--onyx-border-dark);
    color: var(--onyx-navy);
}

.onyx-button-secondary:hover {
    background: var(--onyx-panel-soft);
    color: var(--onyx-navy);
}

.onyx-button-small {
    background: #eef2f6;
    border: 1px solid var(--onyx-border);
    border-radius: 6px;
    color: var(--onyx-navy);
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    padding: 5px 10px;
    text-decoration: none;
}

.onyx-button-small:hover {
    background: #dfe7f0;
    border-color: var(--onyx-navy);
    color: var(--onyx-navy);
    text-decoration: none;
}

.onyx-form-row {
    margin-bottom: 16px;
}

.onyx-label {
    display: block;
    font-weight: 800;
    margin-bottom: 6px;
}

.onyx-input,
.onyx-textarea,
.onyx-select,
.form-control,
.form-select {
    background: #ffffff;
    border: 1px solid var(--onyx-border-dark);
    border-radius: var(--onyx-radius-sm);
    box-sizing: border-box;
    color: var(--onyx-text);
    font-size: 16px;
    padding: 11px 12px;
    width: 100%;
}

.onyx-textarea {
    min-height: 120px;
}

.onyx-input:focus,
.onyx-textarea:focus,
.onyx-select:focus,
.form-control:focus,
.form-select:focus {
    border-color: var(--onyx-navy);
    box-shadow: 0 0 0 3px rgba(16, 42, 67, 0.15);
    outline: none;
}

.onyx-help-text,
.onyx-helptext {
    color: var(--onyx-muted);
    font-size: 13px;
    margin-top: 6px;
}

.onyx-required {
    color: #b42318;
    font-weight: 800;
}

.onyx-action-bar {
    border-top: 1px solid var(--onyx-border);
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
    padding-top: 16px;
}

/* ============================================================
   Action Cards
   ============================================================ */

.onyx-action-grid {
    display: grid;
    gap: 16px;
    margin-top: 22px;
}

.onyx-action-card {
    background: var(--onyx-panel);
    border: 1px solid var(--onyx-border);
    border-radius: var(--onyx-radius);
    box-shadow: var(--onyx-shadow-sm);
    color: var(--onyx-text);
    display: block;
    padding: 20px;
    text-decoration: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.onyx-action-card:hover {
    border-color: var(--onyx-navy);
    box-shadow: var(--onyx-shadow);
    transform: translateY(-2px);
    text-decoration: none;
}

.onyx-action-card strong {
    color: var(--onyx-navy);
    display: block;
    font-size: 17px;
    margin-bottom: 7px;
}

.onyx-action-card span {
    color: var(--onyx-muted);
    display: block;
    font-size: 14px;
    line-height: 1.45;
}

/* ============================================================
   Tables
   ============================================================ */

.onyx-table {
    border-collapse: collapse;
    margin-top: 1rem;
    width: 100%;
}

.onyx-table th {
    background: var(--onyx-panel-soft);
    border: 1px solid var(--onyx-border);
    color: var(--onyx-navy);
    font-size: 14px;
    font-weight: 800;
    padding: 10px;
    text-align: left;
}

.onyx-table td {
    background: #ffffff;
    border: 1px solid var(--onyx-border);
    padding: 10px;
    vertical-align: top;
}

.onyx-table tbody tr:nth-child(even) td {
    background: #f8fafc;
}

.onyx-table tbody tr:hover td {
    background: #eef4fb;
}

.onyx-table-link {
    color: var(--onyx-navy);
    font-weight: 800;
    text-decoration: none;
}

.onyx-table-link:hover {
    text-decoration: underline;
}

.onyx-actions-cell {
    white-space: nowrap;
}

/* ============================================================
   Badges / Alerts
   ============================================================ */

.onyx-badge {
    border-radius: 999px;
    display: inline-block;
    font-size: 12px;
    font-weight: 800;
    padding: 4px 10px;
}

.onyx-badge-open {
    background: #dceeff;
    color: #0b4f8a;
}

.onyx-badge-success {
    background: #dff5e4;
    color: #216738;
}

.onyx-badge-warning {
    background: #fff3d9;
    color: #8a5a00;
}

.onyx-badge-danger {
    background: #ffe0e0;
    color: #8a1f1f;
}

/* ============================================================
   Wizard
   ============================================================ */

.onyx-wizard {
    box-sizing: border-box;
    display: grid;
    gap: 18px;
    max-width: 1500px;
    width: 100%;
}

.onyx-wizard > .onyx-stepper,
.onyx-wizard > .onyx-card {
    box-sizing: border-box;
    max-width: none;
    width: 100%;
}

.onyx-stepper {
    background: var(--onyx-panel);
    border: 1px solid var(--onyx-border);
    border-radius: var(--onyx-radius);
    box-shadow: var(--onyx-shadow-sm);
    box-sizing: border-box;
    padding: 16px;
}

.onyx-step {
    color: var(--onyx-muted);
    font-size: 14px;
    margin-bottom: 8px;
}

.onyx-step-active {
    background: var(--onyx-blue-soft);
    border-left: 4px solid var(--onyx-navy);
    color: var(--onyx-navy);
    font-size: 15px;
    font-weight: 800;
    padding: 10px 12px;
}

.onyx-step-title {
    border-top: 1px solid var(--onyx-border);
    font-size: 1rem;
    font-weight: 800;
    margin-top: 14px;
    padding-top: 14px;
}

.onyx-workflow {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 0;
    margin-bottom: 8px;
}

.onyx-workflow-step,
.onyx-workflow-step-link {
    align-items: center;
    display: flex;
    flex: 0 0 auto;
}

.onyx-workflow-step-link {
    color: inherit;
    text-decoration: none;
}

.onyx-workflow-step-link:hover {
    text-decoration: none;
}

.onyx-workflow-circle {
    align-items: center;
    background: #d7dde5;
    border: 2px solid #c2c9d2;
    border-radius: 999px;
    color: #555555;
    display: flex;
    flex: 0 0 36px;
    font-size: 14px;
    font-weight: 800;
    height: 36px;
    justify-content: center;
    width: 36px;
    z-index: 2;
}

.onyx-workflow-label {
    color: var(--onyx-muted);
    font-size: 14px;
    font-weight: 700;
    margin-left: 8px;
    white-space: nowrap;
}

.onyx-workflow-line {
    background: #cfd6de;
    flex: 0 0 24px;
    height: 2px;
    margin: 0 8px;
}

.onyx-workflow-step.active .onyx-workflow-circle,
.onyx-workflow-step-complete .onyx-workflow-circle,
.onyx-workflow-complete {
    background: var(--onyx-navy);
    border-color: var(--onyx-navy-dark);
    color: #ffffff;
}

.onyx-workflow-step.active .onyx-workflow-label,
.onyx-workflow-step-complete .onyx-workflow-label {
    color: var(--onyx-navy);
    font-weight: 800;
}

.onyx-wizard-actions {
    align-items: center;
    border-top: 1px solid var(--onyx-border);
    display: flex;
    gap: 10px;
    justify-content: space-between;
    margin-top: 22px;
    padding-top: 16px;
}

.onyx-wizard-actions-left,
.onyx-wizard-actions-right {
    align-items: center;
    display: flex;
    gap: 10px;
}

.onyx-wizard-actions-right {
    margin-left: auto;
}

/* ============================================================
   Responsive
   ============================================================ */

@media (min-width: 768px) {
    .onyx-shell {
        display: grid;
        grid-template-columns: 250px 1fr;
        min-height: calc(100vh - 109px);
    }

    .onyx-sidebar {
        border-bottom: none;
        border-right: 1px solid var(--onyx-border);
        padding: 22px 16px;
    }

    .onyx-nav {
        flex-direction: column;
    }

    .onyx-nav a {
        display: block;
    }

    .onyx-main {
        padding: 32px;
    }

    .onyx-action-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1100px) {
    .onyx-action-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .onyx-topbar {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .onyx-topbar-actions {
        justify-content: flex-start;
    }

    .onyx-pagehead {
        display: block;
    }

    .onyx-wizard-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .onyx-wizard-actions-left,
    .onyx-wizard-actions-right {
        justify-content: space-between;
        margin-left: 0;
        width: 100%;
    }
}