/* =========================================================
   Page shell
   ========================================================= */
body { margin: 0; }

/* =========================================================
   wa-button: Icon-zu-Text-Abstand
   ========================================================= */
wa-button::part(base) { gap: 0.4em; }

/* =========================================================
   Navbar
   ========================================================= */
.wa-navbar {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: .625rem 1.5rem;
    background: var(--wa-color-neutral-10);
    color: var(--wa-color-neutral-100);
}

.wa-navbar__brand {
    font-weight: 700;
    font-size: 1rem;
    color: var(--wa-color-neutral-100);
    text-decoration: none;
    white-space: nowrap;
}

.wa-navbar__nav {
    display: flex;
    gap: .25rem;
    margin-left: .5rem;
}

.wa-navbar__nav a {
    padding: .375rem .75rem;
    border-radius: var(--wa-border-radius-m);
    color: var(--wa-color-neutral-80);
    text-decoration: none;
    font-size: .9rem;
    transition: background .15s, color .15s;
}

.wa-navbar__nav a:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--wa-color-neutral-100);
}

.wa-navbar__nav a.active {
    background: rgba(255, 255, 255, 0.9);
    color: var(--wa-color-neutral-10);
    font-weight: 600;
}

/* =========================================================
   Main content area
   ========================================================= */
.wa-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* =========================================================
   Tables
   ========================================================= */
.wa-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .875rem;
}

.wa-table th,
.wa-table td {
    padding: .5rem .75rem;
    border-bottom: 1px solid var(--wa-color-neutral-85);
    vertical-align: middle;
    text-align: left;
}

.wa-table thead th {
    background: var(--wa-color-neutral-95);
    font-weight: 600;
    white-space: nowrap;
}

.wa-table thead.dark th {
    background: var(--wa-color-neutral-15);
    color: var(--wa-color-neutral-100);
}

.wa-table tbody tr:hover {
    background: var(--wa-color-neutral-97);
}

.wa-table td.text-end,
.wa-table th.text-end {
    text-align: right;
}

.wa-table td.text-nowrap {
    white-space: nowrap;
}

.wa-table-responsive {
    overflow-x: auto;
}

/* =========================================================
   Symfony form_row() output — restyled with WA tokens
   (keeps bootstrap_5_layout.html.twig form theme working)
   ========================================================= */
.form-label {
    display: block;
    font-size: .875rem;
    font-weight: 500;
    margin-bottom: .25rem;
    color: var(--wa-color-neutral-20);
}

.form-control {
    width: 100%;
    padding: .5rem .75rem;
    border: 1px solid var(--wa-color-neutral-70);
    border-radius: var(--wa-border-radius-m);
    font-size: .875rem;
    font-family: inherit;
    background: var(--wa-color-neutral-100);
    color: var(--wa-color-neutral-10);
    box-sizing: border-box;
    transition: border-color .15s, box-shadow .15s;
}

.form-control:focus {
    outline: none;
    border-color: var(--wa-color-brand-60);
    box-shadow: 0 0 0 3px var(--wa-color-brand-90);
}

.form-control:disabled {
    background: var(--wa-color-neutral-95);
    color: var(--wa-color-neutral-50);
    cursor: not-allowed;
}

.form-check {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: .25rem;
}

.form-check-input {
    width: 1rem;
    height: 1rem;
    cursor: pointer;
}

.form-check-label {
    font-size: .875rem;
    cursor: pointer;
}

.invalid-feedback {
    font-size: .8rem;
    color: var(--wa-color-danger-50);
    margin-top: .25rem;
}

/* =========================================================
   Card
   ========================================================= */
.card {
    background: var(--wa-color-neutral-100);
    border: 1px solid var(--wa-color-neutral-85);
    border-radius: var(--wa-border-radius-m);
}
.card-body { padding: 1.25rem; }

/* =========================================================
   Misc utilities (replaces the few d-inline etc. usages)
   ========================================================= */
.d-flex         { display: flex; }
.d-inline       { display: inline; }
.d-inline-block { display: inline-block; }
.d-block        { display: block; }
.flex-column    { flex-direction: column; }
.align-items-center      { align-items: center; }
.justify-content-between { justify-content: space-between; }
.gap-2 { gap: .5rem; }
.gap-3 { gap: 1rem; }
.text-muted     { color: var(--wa-color-neutral-50); }
.small          { font-size: .875rem; }
.fw-semibold    { font-weight: 600; }
.fw-normal      { font-weight: 400; }
.font-monospace { font-family: var(--wa-font-mono, ui-monospace, monospace); }
.border         { border: 1px solid var(--wa-color-neutral-85); }
.rounded        { border-radius: var(--wa-border-radius-m); }
.h3             { font-size: 1.25rem; font-weight: 600; margin: 0; }
.mt-1           { margin-top: .25rem; }
.mt-2           { margin-top: .5rem; }
.mt-3           { margin-top: 1rem; }
.mb-0           { margin-bottom: 0; }
.mb-1           { margin-bottom: .25rem; }
.mb-2           { margin-bottom: .5rem; }
.mb-3           { margin-bottom: 1rem; }
.mb-4           { margin-bottom: 1.5rem; }
.pt-1           { padding-top: .25rem; }
.pt-4           { padding-top: 1.5rem; }
.p-3            { padding: 1rem; }
