/* =========================================================================
   ANAC eServices — design system (2026)
   Loaded LAST, after bootstrap / os-style / style-index / custom.css, so it
   can neutralise the legacy theme. Everything is scoped under `.anac-ui`
   (set on <body>) to keep the Filament / Voyager back-office untouched.
   ========================================================================= */

:root {
    --anac-navy: #0F2C52;
    --anac-navy-deep: #0A1F3B;
    --anac-navy-hover: #123E70;
    --anac-link: #1D5A9E;
    --anac-bg: #F4F5F7;
    --anac-surface: #FFFFFF;
    --anac-ink: #1C2530;
    --anac-ink-soft: #33475B;
    --anac-muted: #6B7280;
    --anac-muted-2: #4B5563;
    --anac-label: #8B93A1;
    --anac-border: #E7EAF0;
    --anac-border-input: #DDE1E7;
    --anac-tint: #F4F7FB;
    --anac-tint-border: #E1E9F3;
    --anac-danger: #B0231F;
    --anac-green: #008751;
    --anac-yellow: #FCD116;
    --anac-red: #E8112B;
    --anac-shadow: 0 8px 24px rgba(15, 44, 82, 0.10);
    --anac-shadow-lg: 0 12px 32px rgba(15, 44, 82, 0.16);
    --anac-font: 'Public Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

/* -------------------------------------------------------------------------
   Legacy reset — style-index.css declares `* { font-size:12px; font-family:
   montserrat }` and pins the old fixed navbar. Undo it inside .anac-ui.
   ------------------------------------------------------------------------- */
html {
    background-color: var(--anac-bg);
}

body.anac-ui {
    margin: 0;
    padding-top: 0;
    width: 100%;
    background: var(--anac-bg);
    color: var(--anac-ink);
    font-family: var(--anac-font);
    font-size: 15px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

body.anac-ui * {
    font-family: var(--anac-font);
    font-size: inherit;
    box-sizing: border-box;
}

body.anac-ui .fa,
body.anac-ui [class^="fa-"],
body.anac-ui [class*=" fa-"] {
    font-family: FontAwesome;
}

body.anac-ui a {
    color: var(--anac-link);
    text-decoration: none;
}

body.anac-ui a:hover {
    color: var(--anac-navy-hover);
    text-decoration: underline;
}

/* `:where()` keeps these base rules at zero specificity for the element part,
   so any single component class below can still override them. */
body.anac-ui :where(h1) { font-size: 44px; }
body.anac-ui :where(h2) { font-size: 26px; }
body.anac-ui :where(h3) { font-size: 22px; }
body.anac-ui :where(h4) { font-size: 18px; }
body.anac-ui :where(h5) { font-size: 15.5px; }
body.anac-ui :where(h6) { font-size: 14px; }

body.anac-ui :where(h1, h2, h3, h4, h5, h6) {
    color: var(--anac-ink);
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 12px;
}

body.anac-ui small { font-size: 13px; }

.anac-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
}

/* -------------------------------------------------------------------------
   Header
   ------------------------------------------------------------------------- */
/* Must out-specify style-index.css's `body #app header` (1,0,2), which pins a
   fixed 97px navy bar — hence the `#app` in the selector. */
body.anac-ui #app .anac-header {
    position: static;
    z-index: auto;
    height: auto;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 40px;
    background: var(--anac-surface);
    color: var(--anac-ink);
    text-align: left;
}

.anac-header--app {
    border-bottom: 1px solid var(--anac-border);
}

.anac-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.anac-brand img {
    height: 56px;
    width: auto;
    display: block;
}

.anac-header--app .anac-brand img {
    height: 48px;
}

.anac-nav {
    display: flex;
    align-items: center;
    gap: 34px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.anac-header--app .anac-nav {
    gap: 22px;
}

.anac-nav a,
.anac-nav .anac-nav-link {
    color: var(--anac-ink);
    font-weight: 600;
    font-size: 15px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.anac-nav a:hover,
.anac-nav .anac-nav-link:hover {
    color: var(--anac-navy-hover);
    text-decoration: none;
}

.anac-header--app .anac-nav a,
.anac-header--app .anac-nav .anac-nav-link {
    font-size: 14px;
}

.anac-nav-sep {
    width: 1px;
    height: 24px;
    background: #E2E5EA;
}

.anac-nav-greeting {
    font-size: 14px;
    color: var(--anac-muted-2);
    font-weight: 400;
}

.anac-nav-greeting b {
    color: var(--anac-ink);
    font-weight: 700;
}

.anac-nav-logout {
    color: var(--anac-danger) !important;
    font-weight: 600;
}

.anac-nav-logout:hover {
    color: #8C1B18 !important;
}

/* Navy pill call to action used in the header */
.anac-nav .anac-btn-solid {
    background: var(--anac-navy);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    white-space: nowrap;
}

.anac-nav .anac-btn-solid:hover {
    background: var(--anac-navy-hover);
    color: #fff;
    text-decoration: none;
}

/* Bénin flag stripe */
.anac-flagbar {
    height: 3px;
    background: linear-gradient(90deg, var(--anac-green) 33%, var(--anac-yellow) 33% 66%, var(--anac-red) 66%);
}

.anac-flagbar--thick {
    height: 4px;
}

.anac-burger {
    display: none;
    background: none;
    border: 1px solid var(--anac-border-input);
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    color: var(--anac-ink);
    font-size: 18px;
    line-height: 1;
}

/* -------------------------------------------------------------------------
   Hero + tracking bar (public home)
   ------------------------------------------------------------------------- */
.anac-hero {
    background: var(--anac-navy);
    padding: 64px 40px 110px;
    text-align: center;
}

.anac-hero-inner {
    max-width: 1240px;
    margin: 0 auto;
}

.anac-hero-eyebrow {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 100px;
    color: #B9CBE4;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.03em;
    margin-bottom: 20px;
}

body.anac-ui .anac-hero h1 {
    color: #fff;
    font-size: 44px;
    font-weight: 800;
    line-height: 1.15;
    margin: 0 0 16px;
}

body.anac-ui .anac-hero p {
    color: #C4D2E4;
    font-size: 18px;
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.6;
}

.anac-tracker-wrap {
    max-width: 1240px;
    margin: -58px auto 0;
    padding: 0 40px;
    position: relative;
    z-index: 2;
}

.anac-tracker {
    background: #fff;
    border-radius: 14px;
    box-shadow: var(--anac-shadow-lg);
    padding: 26px 32px;
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.anac-tracker-copy {
    flex: 1;
    min-width: 260px;
}

.anac-tracker-title {
    font-weight: 700;
    font-size: 15px;
    color: var(--anac-ink);
    margin-bottom: 4px;
}

.anac-tracker-sub {
    font-size: 13px;
    color: var(--anac-muted);
}

.anac-tracker .anac-input {
    flex: 1;
    min-width: 200px;
    margin-bottom: 0;
}

.anac-tracker-result {
    flex-basis: 100%;
}

.anac-tracker-result:empty {
    display: none;
}

/* -------------------------------------------------------------------------
   Sections & service cards
   ------------------------------------------------------------------------- */
.anac-section {
    max-width: 1240px;
    margin: 0 auto;
    padding: 70px 40px 90px;
}

body.anac-ui .anac-section-title {
    font-size: 26px;
    font-weight: 700;
    margin: 0 0 6px;
}

body.anac-ui .anac-section-sub {
    color: var(--anac-muted);
    font-size: 15px;
    margin: 0 0 36px;
}

.anac-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 20px;
}

.anac-grid--compact {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 18px;
}

.anac-service {
    background: #fff;
    border: 1px solid var(--anac-border);
    border-radius: 12px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: box-shadow 0.15s, transform 0.15s;
}

.anac-service:hover {
    box-shadow: var(--anac-shadow);
    transform: translateY(-2px);
}

.anac-service-title {
    font-weight: 700;
    font-size: 15.5px;
    margin-bottom: 6px;
    color: var(--anac-ink);
}

body.anac-ui .anac-service-title a {
    color: inherit;
}

.anac-service-desc {
    color: var(--anac-muted);
    font-size: 13.5px;
    line-height: 1.5;
}

.anac-service-desc p {
    margin: 0;
    font-size: inherit;
    color: inherit;
}

.anac-service-link {
    margin-top: auto;
    font-weight: 600;
    font-size: 13.5px;
}

.anac-grid--compact .anac-service {
    padding: 20px;
    gap: 12px;
}

.anac-grid--compact .anac-service-title { font-size: 14.5px; }
.anac-grid--compact .anac-service-desc { font-size: 13px; }
.anac-grid--compact .anac-service-link { font-size: 13px; }

/* -------------------------------------------------------------------------
   Application shell — sticky sidebar + content
   ------------------------------------------------------------------------- */
.anac-shell {
    display: flex;
    align-items: flex-start;
    max-width: 1320px;
    margin: 0 auto;
    padding: 32px 40px;
    gap: 28px;
}

.anac-page {
    max-width: 980px;
    padding-top: 32px;
    padding-bottom: 48px;
}

.anac-page--wide {
    max-width: 1240px;
}

.anac-content {
    flex: 1;
    min-width: 0;
}

/* Centred, readable column for single-form pages (register, password reset…) */
.anac-narrow {
    max-width: 760px;
    margin: 0 auto;
    width: 100%;
}

/* Legacy views wrap their content in bootstrap columns (col-md-9, col-md-8…).
   Inside the shell those must span the full content column. */
.anac-content > .col-md-3,
.anac-content > .col-md-4,
.anac-content > .col-md-6,
.anac-content > .col-md-8,
.anac-content > .col-md-9,
.anac-content > .col-md-10,
.anac-content > .col-md-11,
.anac-content > .col-md-12,
.anac-page > .col-md-3,
.anac-page > .col-md-4,
.anac-page > .col-md-6,
.anac-page > .col-md-8,
.anac-page > .col-md-9,
.anac-page > .col-md-12 {
    flex: 0 0 100%;
    max-width: 100%;
    width: 100%;
    padding-left: 0;
    padding-right: 0;
}

/* -------------------------------------------------------------------------
   Sidebar
   ------------------------------------------------------------------------- */
.anac-sidebar {
    width: 270px;
    flex-shrink: 0;
    position: sticky;
    top: 24px;
}

.anac-sidebar-group {
    margin-bottom: 22px;
}

.anac-sidebar-label {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--anac-label);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0 4px 8px;
}

.anac-sidebar-list {
    background: #fff;
    border: 1px solid var(--anac-border);
    border-radius: 10px;
    overflow: hidden;
    list-style: none;
    margin: 0;
    padding: 0;
}

.anac-sidebar-list li,
.anac-sidebar-list .nav-item {
    list-style: none;
    margin: 0;
    padding: 0;
    background: none;
    /* the legacy mobile rules centre `.nav li` */
    text-align: left;
}

.anac-sidebar-list li > a,
.anac-sidebar-list .nav-link {
    display: block;
    padding: 11px 14px;
    font-size: 13.5px;
    color: var(--anac-ink-soft);
    font-weight: 500;
    line-height: 1.4;
    text-align: left;
    border-bottom: 1px solid #F0F2F5;
    text-decoration: none;
}

.anac-sidebar-list > li:last-child > a {
    border-bottom: none;
}

.anac-sidebar-list li > a:hover,
.anac-sidebar-list .nav-link:hover {
    background: var(--anac-tint);
    color: var(--anac-navy);
    text-decoration: none;
}

.anac-sidebar-list li > a.is-active {
    background: #EAF0F8;
    color: var(--anac-navy);
    font-weight: 700;
}

/* Nested submenus rendered by menu() */
.anac-sidebar-list ul {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid #F0F2F5;
}

.anac-sidebar-list ul li > a {
    padding-left: 28px;
    font-size: 13px;
    color: var(--anac-muted-2);
}

/* -------------------------------------------------------------------------
   Cards (bootstrap .card is reused across ~45 legacy views)
   ------------------------------------------------------------------------- */
body.anac-ui .card {
    background: #fff;
    border: 1px solid var(--anac-border);
    border-radius: 14px;
    box-shadow: none;
    margin-bottom: 24px;
    overflow: hidden;
}

body.anac-ui .card-header {
    height: auto !important;
    background: #fff;
    border-bottom: 1px solid var(--anac-border);
    padding: 18px 26px;
    font-size: 19px;
    font-weight: 700;
    color: var(--anac-ink);
    line-height: 1.3;
}

body.anac-ui .card-header a {
    color: inherit;
}

body.anac-ui .card-body {
    padding: 26px !important;
    font-size: 14px;
    color: var(--anac-ink-soft);
}

body.anac-ui .card-footer {
    background: #fff;
    border-top: 1px solid var(--anac-border);
    padding: 16px 26px;
    font-size: 13.5px;
    font-weight: 600;
}

/* The legacy fixed-height helpers fought the old 3-per-row card grid. */
body.anac-ui .col-md-8 .col-md-4 .equiv-body,
body.anac-ui .col-md-12 .col-md-3 .equiv-body {
    height: auto !important;
}

/* Panel used by a few form views */
body.anac-ui .anac-panel {
    background: #fff;
    border: 1px solid var(--anac-border);
    border-radius: 14px;
    overflow: hidden;
}

body.anac-ui .anac-panel-head {
    padding: 20px 26px;
    border-bottom: 1px solid var(--anac-border);
}

body.anac-ui .anac-panel-head h2 {
    font-size: 19px;
    font-weight: 700;
    margin: 0;
}

body.anac-ui .anac-panel-body {
    padding: 26px;
}

body.anac-ui .anac-panel-foot {
    padding: 18px 26px;
    border-top: 1px solid var(--anac-border);
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

/* Legacy views build their intro/action bar with the bootstrap utility stack
   `shadow p-3 mb-3 bg-white rounded` — give it the design's note / action look. */
body.anac-ui .card-body > .shadow.bg-white.rounded {
    background: var(--anac-tint) !important;
    border: 1px solid var(--anac-tint-border);
    border-radius: 10px !important;
    box-shadow: none !important;
    padding: 16px 18px !important;
    margin-bottom: 22px !important;
    font-size: 13.5px;
    color: #3E4C5E;
    line-height: 1.6;
}

body.anac-ui .card-body > .shadow.bg-white.rounded a {
    font-weight: 600;
}

/* `form/create.blade.php` nests an empty .card-footer inside .card-body. */
body.anac-ui .card-body > .card-footer:empty {
    display: none;
}

/* Informational note block */
.anac-note {
    background: var(--anac-tint);
    border: 1px solid var(--anac-tint-border);
    border-radius: 10px;
    padding: 16px 18px;
    font-size: 13.5px;
    color: #3E4C5E;
    line-height: 1.6;
    margin-bottom: 26px;
}

/* -------------------------------------------------------------------------
   Forms
   ------------------------------------------------------------------------- */
body.anac-ui label,
body.anac-ui .col-form-label {
    display: block;
    font-weight: 600;
    font-size: 13.5px;
    color: var(--anac-ink);
    margin-bottom: 6px;
    text-align: left !important;
}

body.anac-ui .form-control,
body.anac-ui .anac-input,
body.anac-ui input[type="text"],
body.anac-ui input[type="email"],
body.anac-ui input[type="password"],
body.anac-ui input[type="number"],
body.anac-ui input[type="date"],
body.anac-ui input[type="tel"],
body.anac-ui input[type="url"],
body.anac-ui select,
body.anac-ui textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 11px 14px;
    border: 1px solid var(--anac-border-input);
    border-radius: 8px;
    font-size: 14px;
    color: var(--anac-ink);
    background: #fff;
    outline: none;
    height: auto;
    box-shadow: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

body.anac-ui textarea {
    resize: vertical;
}

body.anac-ui .form-control:focus,
body.anac-ui .anac-input:focus,
body.anac-ui input:focus,
body.anac-ui select:focus,
body.anac-ui textarea:focus {
    border-color: var(--anac-navy);
    box-shadow: 0 0 0 3px rgba(15, 44, 82, 0.10);
}

body.anac-ui input::placeholder,
body.anac-ui textarea::placeholder {
    color: #9AA3B1;
    font-style: normal;
}

body.anac-ui input[type="checkbox"],
body.anac-ui input[type="radio"] {
    width: 15px;
    height: 15px;
    padding: 0;
    margin: 0 8px 0 0;
    vertical-align: middle;
}

body.anac-ui .form-group {
    margin-bottom: 20px;
}

/* The legacy theme tints and boxes <fieldset>; the card already provides the
   surface the form-builder fields sit on. */
body.anac-ui .card-body fieldset,
body.anac-ui .card-body legend {
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
}

/* Radio / checkbox rows: the form-builder emits `<input><label>` siblings, so
   the stacked-label default has to be undone here. */
body.anac-ui input[type="checkbox"] + label,
body.anac-ui input[type="radio"] + label {
    display: inline-block;
    vertical-align: middle;
    font-weight: 500;
    color: var(--anac-ink-soft);
    margin: 0 18px 0 0;
}

/* Every form-builder form marks its submit `btn btn-success`; in this design
   the primary action is navy. Status buttons (btn-effectue, btn-prevalidation,
   btn-danger) keep their own colours. */
body.anac-ui form button[type="submit"].btn-success,
body.anac-ui form input[type="submit"].btn-success {
    background: var(--anac-navy);
    border-color: var(--anac-navy);
    color: #fff;
}

body.anac-ui form button[type="submit"].btn-success:hover,
body.anac-ui form input[type="submit"].btn-success:hover {
    background: var(--anac-navy-hover);
    border-color: var(--anac-navy-hover);
}

/* Legacy `form-group row` + `col-md-4 text-md-right` label pattern is
   flattened into a simple stacked field. */
body.anac-ui .form-group.row {
    display: block;
    margin-left: 0;
    margin-right: 0;
}

body.anac-ui .form-group.row > [class^="col-md-"],
body.anac-ui .form-group.row > [class*=" col-md-"] {
    flex: 0 0 100%;
    max-width: 100%;
    width: 100%;
    margin-left: 0 !important;
    padding-left: 0;
    padding-right: 0;
}

body.anac-ui .form-check {
    padding-left: 0;
}

body.anac-ui .form-check-label,
body.anac-ui .form-check-input + label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 400;
    color: var(--anac-muted-2);
    margin-bottom: 0;
}

body.anac-ui .form-check-input {
    position: static;
    margin-left: 0;
}

body.anac-ui .invalid-feedback,
body.anac-ui .invalid-feedback strong {
    display: block;
    color: var(--anac-danger);
    font-size: 13px;
    font-weight: 500;
    margin-top: 6px;
}

body.anac-ui .is-invalid,
body.anac-ui .form-control.is-invalid {
    border-color: var(--anac-danger);
}

/* File pickers get the dashed slot treatment from the design */
body.anac-ui input[type="file"] {
    width: 100%;
    border: 1px dashed #C7CFDA;
    border-radius: 8px;
    padding: 12px 14px;
    background: #FAFBFC;
    font-size: 13px;
    color: var(--anac-muted-2);
}

/* -------------------------------------------------------------------------
   Buttons
   ------------------------------------------------------------------------- */
body.anac-ui .btn,
body.anac-ui .anac-btn {
    display: inline-block;
    min-width: 0;
    margin-left: 0;
    padding: 11px 22px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.25;
    text-align: center;
    cursor: pointer;
    white-space: normal;
    transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

body.anac-ui .btn + .btn {
    margin-left: 10px;
}

body.anac-ui .btn-primary,
body.anac-ui .anac-btn-primary {
    background: var(--anac-navy);
    border-color: var(--anac-navy);
    color: #fff;
}

body.anac-ui .btn-primary:hover,
body.anac-ui .anac-btn-primary:hover,
body.anac-ui .btn-primary:focus {
    background: var(--anac-navy-hover);
    border-color: var(--anac-navy-hover);
    color: #fff;
    text-decoration: none;
}

body.anac-ui .btn-secondary,
body.anac-ui .btn-default,
body.anac-ui form .btn-default,
body.anac-ui .anac-btn-ghost {
    background: #fff !important;
    border-color: var(--anac-border-input);
    color: var(--anac-ink-soft) !important;
}

body.anac-ui .btn-secondary:hover,
body.anac-ui .btn-default:hover,
body.anac-ui .anac-btn-ghost:hover {
    background: var(--anac-tint) !important;
    border-color: #C7CFDA;
    color: var(--anac-navy) !important;
    text-decoration: none;
}

body.anac-ui .btn-danger {
    background: var(--anac-danger);
    border-color: var(--anac-danger);
    color: #fff;
}

body.anac-ui .btn-danger:hover {
    background: #8C1B18;
    border-color: #8C1B18;
    color: #fff;
}

body.anac-ui .btn-success,
body.anac-ui .btn-effectue {
    background: var(--anac-green);
    border-color: var(--anac-green);
    color: #fff;
}

body.anac-ui .btn-success:hover,
body.anac-ui .btn-effectue:hover {
    background: #026B40;
    border-color: #026B40;
    color: #fff;
}

body.anac-ui .btn-prevalidation {
    background: var(--anac-yellow);
    border-color: #E0BA13;
    color: #4A3B00;
}

body.anac-ui .btn-prevalidation:hover {
    background: #E9C213;
    border-color: #C9A50F;
    color: #4A3B00;
}

body.anac-ui .btn-link {
    background: none;
    border-color: transparent;
    color: var(--anac-link);
    padding: 11px 8px;
}

body.anac-ui .btn-sm {
    padding: 7px 14px;
    font-size: 12.5px;
}

body.anac-ui .btn-block {
    display: block;
    width: 100%;
}

/* Segmented pill choice (Privée / Publique) */
.anac-choice {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.anac-choice > * {
    border-radius: 100px !important;
    padding: 9px 22px !important;
    font-size: 13.5px !important;
}

/* -------------------------------------------------------------------------
   Alerts
   ------------------------------------------------------------------------- */
body.anac-ui .alert {
    border-radius: 10px;
    border: 1px solid transparent;
    padding: 14px 18px;
    font-size: 13.5px;
    line-height: 1.6;
    margin-bottom: 20px;
}

body.anac-ui .alert p {
    margin: 0;
    font-size: inherit;
}

body.anac-ui .alert-success {
    background: #E8F5EE;
    border-color: #BFE3CF;
    color: #0B5132;
}

body.anac-ui .alert-danger {
    background: #FBEBEA;
    border-color: #F0C8C5;
    color: #8C1B18;
}

body.anac-ui .alert-warning {
    background: #FDF6E1;
    border-color: #F2E1AE;
    color: #6B5200;
}

body.anac-ui .alert-info {
    background: var(--anac-tint);
    border-color: var(--anac-tint-border);
    color: #3E4C5E;
}

/* -------------------------------------------------------------------------
   Tables / DataTables
   ------------------------------------------------------------------------- */
body.anac-ui table.table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 13.5px;
    color: var(--anac-ink-soft);
}

body.anac-ui table.table thead th {
    background: var(--anac-tint);
    border-bottom: 1px solid var(--anac-border);
    border-top: none;
    color: var(--anac-ink);
    font-weight: 700;
    font-size: 12.5px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 12px 10px;
    white-space: nowrap;
}

body.anac-ui table.table tbody td,
body.anac-ui table > tbody > tr > td {
    border: none !important;
    border-bottom: 1px solid #F0F2F5 !important;
    padding: 12px 10px !important;
    vertical-align: middle;
}

body.anac-ui table.table tbody tr:hover td {
    background: #FAFBFD;
}

body.anac-ui .table-responsive {
    overflow-x: auto;
}

body.anac-ui .dataTables_wrapper .dt-buttons .btn,
body.anac-ui .dataTables_wrapper .dt-button {
    background: #fff !important;
    border: 1px solid var(--anac-border-input) !important;
    border-radius: 6px !important;
    color: var(--anac-ink-soft) !important;
    padding: 7px 14px !important;
    font-size: 12.5px !important;
    font-weight: 600;
    background-image: none !important;
    box-shadow: none !important;
}

body.anac-ui .dataTables_wrapper .dataTables_filter input,
body.anac-ui .dataTables_wrapper .dataTables_length select {
    width: auto;
    display: inline-block;
    padding: 7px 12px;
    font-size: 13px;
}

body.anac-ui .dataTables_wrapper .dataTables_paginate .paginate_button {
    border-radius: 6px !important;
    border: 1px solid var(--anac-border) !important;
    background: #fff !important;
    color: var(--anac-ink-soft) !important;
    padding: 5px 11px !important;
    margin-left: 4px;
}

body.anac-ui .dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: var(--anac-navy) !important;
    border-color: var(--anac-navy) !important;
    color: #fff !important;
}

/* The expand/collapse control keeps its legacy icon */
body.anac-ui .details-control {
    width: 15px !important;
}

/* -------------------------------------------------------------------------
   Split-screen authentication
   ------------------------------------------------------------------------- */
.anac-auth {
    min-height: 100vh;
    display: flex;
}

.anac-auth-aside {
    flex: 1;
    min-width: 340px;
    background: var(--anac-navy);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px;
    overflow: hidden;
}

.anac-auth-logo {
    background: #fff;
    border-radius: 14px;
    padding: 18px 26px;
    margin-bottom: 32px;
    width: fit-content;
}

.anac-auth-logo img {
    height: 52px;
    width: auto;
    display: block;
}

body.anac-ui .anac-auth-aside h2 {
    color: #fff;
    font-size: 30px;
    font-weight: 800;
    margin: 0 0 14px;
    max-width: 420px;
}

body.anac-ui .anac-auth-aside p {
    color: #C4D2E4;
    font-size: 15.5px;
    line-height: 1.6;
    max-width: 380px;
    margin: 0;
}

.anac-auth-flag {
    display: flex;
    margin-top: 44px;
    width: 220px;
    height: 5px;
    border-radius: 3px;
    overflow: hidden;
}

.anac-auth-flag span { flex: 1; }
.anac-auth-flag span:nth-child(1) { background: var(--anac-green); }
.anac-auth-flag span:nth-child(2) { background: var(--anac-yellow); }
.anac-auth-flag span:nth-child(3) { background: var(--anac-red); }

.anac-auth-main {
    flex: 1;
    min-width: 340px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
}

.anac-auth-form {
    width: 100%;
    max-width: 380px;
}

body.anac-ui .anac-auth-form h3 {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 6px;
}

body.anac-ui .anac-auth-form .anac-auth-sub {
    color: var(--anac-muted);
    font-size: 14px;
    margin: 0 0 28px;
}

.anac-auth-form .form-group {
    margin-bottom: 18px;
}

.anac-auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 22px;
}

body.anac-ui .anac-auth-form .btn-primary {
    width: 100%;
    padding: 13px;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 16px;
}

.anac-auth-foot {
    text-align: center;
    font-size: 13.5px;
    color: var(--anac-muted);
}

/* -------------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------------- */
.anac-footer {
    background: var(--anac-navy-deep);
    padding: 48px 40px 0;
    margin-top: 40px;
}

.anac-footer-inner {
    max-width: 1240px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 26px;
    padding-bottom: 28px;
}

/* The official mark has dark lettering, so it needs a light plate on the navy
   footer — same treatment the design uses for the sign-in panel. */
.anac-footer-logo {
    background: #fff;
    border-radius: 12px;
    padding: 14px 24px;
}

.anac-footer-logo img {
    height: 44px;
    width: auto;
    display: block;
}

.anac-social {
    display: flex;
    gap: 14px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.anac-social li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.anac-social a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #B9CBE4;
    font-size: 16px;
    transition: background-color 0.15s, color 0.15s;
}

.anac-social a:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    text-decoration: none;
}

.anac-footer-rule {
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.12);
    max-width: 600px;
}

.anac-footer-copy {
    color: #8496AF;
    font-size: 13px;
    text-align: center;
}

/* -------------------------------------------------------------------------
   Responsive
   ------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .anac-shell {
        padding: 24px;
        gap: 20px;
    }

    .anac-sidebar {
        width: 240px;
    }
}

@media (max-width: 900px) {
    .anac-burger {
        display: inline-block;
    }

    body.anac-ui #app .anac-header {
        padding: 12px 20px;
        flex-wrap: wrap;
    }

    .anac-nav {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        padding: 16px 0 6px;
    }

    .anac-nav.is-open {
        display: flex;
    }

    .anac-nav-sep {
        display: none;
    }

    .anac-shell {
        display: block;
        padding: 20px;
    }

    /* The service menu is long; on small screens it lives behind the same
       burger as the header nav so the page content stays on top. */
    .anac-sidebar {
        display: none;
        width: 100%;
        position: static;
        margin-bottom: 24px;
    }

    .anac-sidebar.is-open {
        display: block;
    }

    .anac-hero {
        padding: 44px 20px 90px;
    }

    body.anac-ui .anac-hero h1 { font-size: 30px; }
    body.anac-ui .anac-hero p { font-size: 16px; }

    .anac-tracker-wrap,
    .anac-section,
    .anac-container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .anac-section {
        padding-top: 48px;
        padding-bottom: 56px;
    }

    .anac-auth {
        display: block;
    }

    .anac-auth-aside,
    .anac-auth-main {
        min-width: 0;
        padding: 40px 24px;
    }

    body.anac-ui .card-body {
        padding: 20px !important;
    }

    body.anac-ui .card-header {
        padding: 16px 20px;
        font-size: 17px;
    }

    .anac-footer {
        padding: 36px 20px 0;
    }
}

@media (max-width: 560px) {
    .anac-brand img { height: 42px; }
    .anac-tracker { padding: 20px; }
    body.anac-ui .anac-hero h1 { font-size: 26px; }
}

/* Print — drop the chrome */
@media print {
    .anac-header,
    .anac-flagbar,
    .anac-footer,
    .anac-sidebar,
    .anac-burger {
        display: none !important;
    }

    .anac-shell {
        display: block;
        padding: 0;
    }
}
