:root {
    color-scheme: light;
    --font-body: "Plus Jakarta Sans", "Segoe UI", sans-serif;
    --font-heading: "Space Grotesk", "Plus Jakarta Sans", sans-serif;
    --primary: #0f5ea8;
    --primary-dark: #0a477e;
    --info: #17a2c8;
    --success: #1f9d55;
    --warning: #e0a22f;
    --danger: #c43c4e;
    --background: #f3f6fb;
    --surface: #ffffff;
    --surface-alt: #f8fbff;
    --surface-soft: #eef4fb;
    --text: #13233d;
    --text-soft: #61708a;
    --border: #dfe7f1;
    --shadow: 0 12px 28px rgba(18, 34, 63, 0.08);
    --shadow-strong: 0 18px 36px rgba(18, 34, 63, 0.12);
    --radius-xl: 28px;
    --radius-lg: 22px;
    --radius-md: 16px;
    --radius-sm: 12px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    font-family: var(--font-body);
    background: var(--background);
    color: var(--text);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
}

::selection {
    background: rgba(15, 94, 168, 0.18);
    color: var(--text);
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

h1,
h2,
h3,
h4,
.page-title,
.brand-copy strong,
.sidebar-brand-copy strong,
.panel-head h3,
.page-head h2,
.hero h2,
.metric-card strong,
.stat-card strong,
.quick-link strong,
.promo-copy h2,
.mockup-kpi strong,
.tool-card strong,
.cta-copy h3 {
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
}

.layout-wrapper {
    display: flex;
    flex: 1;
    margin-top: var(--topbar-height, 72px);
    margin-left: var(--aside-width, 220px);
    min-height: calc(100vh - var(--topbar-height, 72px));
}

main {
    flex: 1;
    min-width: 0;
    min-height: calc(100vh - var(--topbar-height, 72px));
    display: flex;
    flex-direction: column;
}

main > section.container-main {
    flex: 1;
    width: min(100%, 1560px);
    margin: 0 auto;
    padding: 1.15rem clamp(0.9rem, 1.8vw, 1.6rem) 1.75rem;

}

.navbar {
    position: fixed;
    top: 0;
    left: var(--aside-width, 220px);
    right: 0;
    z-index: 1000;
    width: calc(100% - var(--aside-width, 220px));
    min-height: var(--topbar-height, 72px);
    display: flex;
    align-items: center;
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 6px 18px rgba(18, 34, 63, 0.04);
}

.container-fluid {
    width: 100%;
    padding: 0.75rem 1rem;
    display: grid;
    grid-template-columns: minmax(250px, 1.15fr) minmax(0, 0.9fr) auto;
    gap: 0.9rem;
    align-items: center;
}

.navbar-left {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    min-width: 0;
}

.menu-toggle {
    width: 42px;
    height: 42px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #ffffff;
    color: var(--primary);
    display: grid;
    place-items: center;
    font-size: 1rem;
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.menu-toggle:hover {
    transform: translateY(-1px);
    border-color: #c9d5e3;
    background: var(--surface-alt);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.brand-mark,
.sidebar-logo {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    color: #ffffff;
    background: var(--primary);
}

.brand-mark i,
.sidebar-logo i {
    font-size: 1rem;
}

.brand-mark--img,
.sidebar-logo--img {
    background: #ffffff;
    padding: 4px;
}

.brand-mark--img img,
.sidebar-logo--img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 10px;
}

.sidebar-brand .sidebar-logo:not(.sidebar-logo--img) {
    background: #d62e2e;
    color: #ffffff;
}

.brand-copy,
.sidebar-brand-copy {
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
    min-width: 0;
}

.brand-copy strong {
    font-size: 0.98rem;
    line-height: 1.1;
    color: var(--text);
}

.brand-copy small,
.sidebar-brand-copy small {
    font-size: 0.74rem;
    line-height: 1.25;
    color: var(--text-soft);
}

.navbar-center {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    justify-self: center;
    text-align: center;
    min-width: 0;
}

.page-kicker {
    margin: 0;
    font-size: 0.71rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-weight: 800;
    color: var(--primary);
}

.page-title {
    margin: 0;
    font-size: clamp(1.05rem, 1vw + 0.8rem, 1.45rem);
    line-height: 1.08;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.8rem;
    flex-wrap: wrap;
    min-width: 0;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.4rem 0.65rem 0.4rem 0.45rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: #ffffff;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.user-profile:hover {
    border-color: #cdd8e7;
}

.user-profile[aria-expanded="true"] {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(24, 88, 134, 0.12);
}

.user-menu-caret {
    font-size: 0.7rem;
    color: var(--text-soft);
    transition: transform 0.15s ease;
}

.user-profile[aria-expanded="true"] .user-menu-caret {
    transform: rotate(180deg);
}

.user-menu-wrap {
    position: relative;
}

.user-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 210px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(9, 30, 51, 0.18);
    padding: 0.4rem;
    display: none;
    z-index: 1002;
}

.user-menu.open {
    display: block;
    animation: userMenuIn 0.14s ease-out;
}

@keyframes userMenuIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

.user-menu-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 0.7rem;
    border-radius: 10px;
    color: var(--text);
    font-size: 0.84rem;
    font-weight: 600;
    transition: background 0.15s ease;
}

.user-menu-item:hover {
    background: var(--surface-alt);
}

.user-menu-item i {
    width: 18px;
    text-align: center;
    color: var(--text-soft);
}

.user-menu-item--danger {
    color: var(--danger);
}

.user-menu-item--danger i {
    color: var(--danger);
}

.user-menu-sep {
    height: 1px;
    background: var(--border);
    margin: 0.3rem 0.4rem;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #eaf2fb;
    color: var(--primary);
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.user-meta {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}

.user-meta span {
    font-weight: 700;
    font-size: 0.85rem;
    line-height: 1.1;
}

.user-meta small {
    color: var(--text-soft);
    font-size: 0.72rem;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.user-select {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 0.78rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: #ffffff;
    color: var(--text);
    font-size: 0.82rem;
    font-weight: 700;
    transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.user-select:hover {
    transform: translateY(-1px);
    background: var(--surface-alt);
    border-color: #cdd8e7;
}

.user-select-strong {
    background: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
}

.user-select-strong:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

aside {
    width: var(--aside-width, 220px);
    background: var(--primary);
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    overflow-y: auto;
    padding: 0.9rem 0 1rem;
    border-right: 1px solid var(--border);
    box-shadow: 4px 0 18px rgba(18, 34, 63, 0.04);
    z-index: 1001;
    transition: transform 0.25s ease;
    transform: translateX(0);
}

.sidebar-brand {
    margin: 0 0.9rem 0.9rem;
    padding: 0.85rem;
    border-radius: 18px;
    background: #f8fbff;
    border: 1px solid var(--border);
    border-top: 3px solid #d62e2e;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sidebar-panel {
    padding: 0 0.8rem;
}

.sidebar-panel-label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0 0 0.6rem;
    padding: 0 0.2rem;
    color: var(--text-soft);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.aside-group {
    margin-bottom: 0.9rem;
}

.aside-group-title {
    color: #fff5df;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    padding: 0.45rem 0.2rem 0.4rem;
}

.sidebar-link {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    align-items: center;
    gap: 0.65rem;
    padding: 0;
    margin-bottom: 0.32rem;
    border-radius: 14px;
    border: 1px solid transparent;
    color: #ffffff;
    position: relative;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.sidebar-link:hover {
    border-color: #dce7f3;
    transform: translateX(2px);
}

.sidebar-link.active {
    /* background: #eaf3ff; */
    border-color: #ecc9cc;
}

.sidebar-link.active::before {
    content: "";
    position: absolute;
    left: -3px;
    top: 9px;
    bottom: 9px;
    width: 4px;
    border-radius: 4px;
    background: #d62e2e;
}

.sidebar-icon {
    width: 32px;
    height: 32px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    background: #eaf2fb;
    color: var(--primary);
    font-size: 0.9rem;
    flex-shrink: 0;
}

.sidebar-link.active .sidebar-icon {
    background: var(--primary);
    color: #ffffff;
}

.sidebar-label {
    font-size: 12px;
    font-weight: 600;
    line-height: 0.9;
}

.sidebar-link--logout .sidebar-icon {
    background: rgba(214, 46, 46, 0.18);
    color: #ff8d93;
}

.sidebar-link--logout:hover {
    border-color: rgba(255, 141, 147, 0.45);
}

.sidebar-link--logout:hover .sidebar-icon {
    background: #d62e2e;
    color: #ffffff;
}

.sidebar-footer {
    margin-top: 1rem;
    padding: 0 0.8rem;
}

.sidebar-footer-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem;
    border-radius: 18px;
    border: 1px solid #dce7f3;
    background: #f8fbff;
}

.sidebar-footer-card i {
    width: 38px;
    height: 38px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    background: #eaf2fb;
    color: var(--primary);
    flex-shrink: 0;
}

.sidebar-footer-card strong,
.sidebar-footer-card small {
    display: block;
}

.sidebar-footer-card strong {
    font-size: 0.88rem;
    margin-bottom: 0.08rem;
}

.sidebar-footer-card small {
    color: var(--text-soft);
    font-size: 0.72rem;
    line-height: 1.25;
}

.aside-separator {
    height: 1px;
    margin: 0.25rem 0.6rem 0.8rem;
    background: var(--border);
    border: 0;
}

.messages-container {
    position: fixed;
    top: calc(var(--topbar-height, 72px) + 0.7rem);
    left: calc(var(--aside-width, 220px) + 0.9rem);
    right: 0.9rem;
    z-index: 100;
    display: grid;
    gap: 0.7rem;
    transition: left 0.25s ease;
}

.messages-container.aside-hidden {
    left: 0.9rem;
}

.alert {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 0.85rem 0.95rem;
    box-shadow: var(--shadow);
    background: #ffffff;
}

.alert-icon {
    margin-top: 0.1rem;
    color: var(--primary);
}

.alert-success {
    border-left: 4px solid var(--success);
}

.alert-danger {
    border-left: 4px solid var(--danger);
}

.alert-warning {
    border-left: 4px solid var(--warning);
}

.alert-info {
    border-left: 4px solid var(--info);
}

.site-footer {
    background: #ffffff;
    color: var(--text-soft);
    border-top: 1px solid var(--border);
    padding: 1rem 1.15rem;
    text-align: center;
    margin-top: auto;
}

.site-footer p {
    margin: 0;
    font-size: 0.86rem;
}

aside.hidden {
    transform: translateX(-100%);
}

.layout-wrapper.aside-hidden {
    margin-left: 0;
}

.navbar.aside-hidden {
    left: 0;
    width: 100%;
}

.card,
.panel,
.form-panel,
.detail-panel,
.hero,
.stat-card,
.quick-link,
.promo-card,
.feature-list-card,
.dashboard-mockup,
.tool-card,
.cta-card,
.download-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
}

.hero:hover,
.panel:hover,
.form-panel:hover,
.detail-panel:hover,
.stat-card:hover,
.quick-link:hover,
.promo-card:hover,
.feature-list-card:hover,
.dashboard-mockup:hover,
.tool-card:hover,
.cta-card:hover,
.download-card:hover {
    box-shadow: var(--shadow-strong);
}

.hero {
    padding: 1.2rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.9fr);
    gap: 1rem;
}

.hero-copy {
    display: grid;
    gap: 0.9rem;
    align-content: start;
}

.hero-copy h2 {
    margin: 0;
    font-size: clamp(1.6rem, 2vw, 2.55rem);
    line-height: 1.03;
    color: var(--text);
    max-width: 16ch;
}

.hero-copy p {
    margin: 0;
    color: var(--text-soft);
    line-height: 1.65;
    max-width: 68ch;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    align-self: start;
}

.hero-dashboard .hero-metrics {
    max-width: 620px;
}

.metric-card {
    padding: 0.9rem 0.95rem;
    border-radius: 18px;
    background: #f7fbff;
    border: 1px solid #dbe8f4;
    color: var(--text);
}

.metric-card span {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--text-soft);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.metric-card span i {
    color: var(--primary);
}

.metric-card strong {
    display: block;
    margin-top: 0.45rem;
    font-size: clamp(1.25rem, 1vw + 0.95rem, 1.85rem);
    line-height: 1;
    color: var(--text);
}

.panel,
.form-panel,
.detail-panel {
    padding: 1.1rem;
}


.eyebrow {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--primary);
}

.eyebrow i {
    color: var(--primary);
}

.panel-badge,
.pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.42rem 0.72rem;
    border-radius: 999px;
    font-size: 0.79rem;
    font-weight: 700;
    line-height: 1.2;
}

.panel-badge {
    background: #eef5fd;
    color: var(--primary);
    border: 1px solid #d7e6f8;
}

.panel-badge.accent {
    background: #eaf8f8;
    color: #15806f;
    border-color: #cbece8;
}

.panel-badge.danger {
    background: #fbebee;
    color: var(--danger);
    border-color: #f2ced4;
}

.panel-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.inline-form {
    display: inline;
    margin: 0;
}

.td-actions {
    text-align: center;
    white-space: nowrap;
}

.th-actions {
    text-align: center;
}

.row-actions {
    display: inline-flex;
    gap: 0.35rem;
    align-items: center;
}

.dot-manuel {
    display: inline-block;
    width: 0.5rem;
    height: 0.5rem;
    margin-left: 0.3rem;
    border-radius: 999px;
    background: var(--danger);
    vertical-align: middle;
}

.info-panel {
    background: #f4f7fb;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.25rem;
}

.pill-blue {
    background: #eef5fd;
    color: var(--primary);
}

.pill-soft {
    background: #f4f7fb;
    color: var(--text-soft);
}

.pill-success {
    background: #e8f6ee;
    color: var(--success);
}

.pill-warning {
    background: #fff5df;
    color: #946800;
}

.facture-done {
    display: inline-flex;
    align-items: center;
    color: #111827;
    font-size: 1.05rem;
}

.facture-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
}

.facture-link:hover {
    text-decoration: underline;
}

.grid {
    display: grid;
    gap: 1rem;
}

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

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

.panel-head {
    align-items: center;
}

.stack {
    display: grid;
    gap: 0.72rem;
}

.stack-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.9rem;
    padding: 0.92rem 0.95rem;
    border-radius: 18px;
    background: #f8fbff;
    border: 1px solid #e3ebf3;
}

.stack-item-main {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.stack-icon {
    width: 38px;
    height: 38px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    background: #eaf2fb;
    color: var(--primary);
    flex-shrink: 0;
}

.stack-icon-danger {
    background: #fbebee;
    color: var(--danger);
}

.stack-item strong {
    display: block;
    color: var(--text);
    font-size: 0.91rem;
    line-height: 1.2;
}

.stack-item .muted {
    color: var(--text-soft);
    margin-top: 0.15rem;
}

.muted,
.field-help {
    color: var(--text-soft);
}

.link {
    color: var(--primary);
    font-weight: 700;
}

.container-main {
    font-size: 0.95rem;
}

.quick-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.8rem;
}

.quick-link {
    min-height: 120px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.6rem;
    position: relative;
    overflow: hidden;
}

.quick-link::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary);
}

.quick-link i {
    font-size: 1rem;
    color: var(--primary);
}

.quick-link small {
    color: var(--text-soft);
    line-height: 1.45;
}

.quick-link strong {
    font-size: 0.98rem;
    color: var(--text);
}

.stat-card {
    padding: 1rem 1.05rem;
    display: grid;
    gap: 0.28rem;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary);
}

.stat-card span {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--text-soft);
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.09em;
}

.stat-card span i {
    color: var(--primary);
}

.stat-card strong {
    font-size: clamp(1.2rem, 1vw + 0.95rem, 1.7rem);
    color: var(--text);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.field {
    display: grid;
    gap: 0.35rem;
}

.field-wide {
    grid-column: 1 / -1;
}

.field label {
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--text);
}

.field input,
.field select,
.field textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 0.72rem 0.82rem;
    font-size: 0.92rem;
    min-height: 46px;
    background: #ffffff;
    color: var(--text);
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: #b8d3f0;
    box-shadow: 0 0 0 3px rgba(15, 94, 168, 0.08);
    background: #ffffff;
}

.field textarea {
    min-height: 130px;
    resize: vertical;
}

.form-actions {
    margin-top: 1rem;
    display: flex;
    justify-content: flex-end;
    gap: 0.6rem;
}

.btn {
    padding: 0.6rem 0.95rem;
    font-weight: 700;
    border-radius: 14px;
    border: 1px solid transparent;
    cursor: pointer;
    font-size: 0.88rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    line-height: 1.1;
    white-space: nowrap;
    transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 10px 18px rgba(15, 94, 168, 0.16);
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-secondary {
    background: #ffffff;
    color: var(--text);
    border-color: var(--border);
}

.btn-secondary:hover {
    background: var(--surface-alt);
    border-color: #cfdced;
}

.btn-ghost {
    background: #f7fbff;
    color: var(--text);
    border-color: #dce7f3;
}

.btn-ghost:hover {
    background: #eef5fd;
    border-color: #cfe2fb;
}

.btn-danger {
    background: var(--danger);
    color: #ffffff;
    box-shadow: 0 10px 18px rgba(196, 60, 78, 0.16);
}

.btn-danger:hover {
    background: #a83240;
}

.btn-success {
    background: var(--success);
    color: #ffffff;
    box-shadow: 0 10px 18px rgba(22, 163, 74, 0.16);
}

.btn-success:hover {
    background: #12833b;
}

.btn-outline-danger {
    background: #ffffff;
    color: var(--danger);
    border-color: #f2ced4;
}

.btn-outline-danger:hover {
    background: #fbebee;
    border-color: #eaa6b2;
}

.btn-outline-secondary {
    background: #ffffff;
    color: var(--text);
    border-color: var(--border);
}

.btn-outline-secondary:hover {
    background: var(--surface-alt);
    border-color: #cfdced;
}

.inline-delete {
    display: inline;
}

.btn-sm {
    padding: 0.5rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
}

.field-inline {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.field-inline select {
    flex: 1 1 auto;
    min-width: 0;
}

.quick-add-panel {
    margin-top: 0.5rem;
    padding: 0.85rem;
    border: 1px dashed var(--border);
    border-radius: 14px;
    background: var(--surface-alt);
    display: grid;
    gap: 0.75rem;
}

.quick-add-panel input,
.quick-add-panel select {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.6rem 0.75rem;
    font-size: 0.9rem;
    min-height: 42px;
    background: #ffffff;
    color: var(--text);
}

.quick-add-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

.detail-table {
    width: 100%;
    border-collapse: collapse;
    background: transparent;
}

.detail-table th,
.detail-table td {
    padding: 0.9rem 0;
    border-bottom: 1px solid #e7edf4;
    text-align: left;
    vertical-align: top;
}

.detail-table th {
    width: 260px;
    color: var(--text-soft);
    font-weight: 700;
    
}

.detail-sections {
    display: grid;
    gap: 1rem;
}

.empty-state {
    padding: 1rem;
    border: 1px dashed #d9e3ee;
    border-radius: 18px;
    color: var(--text-soft);
    background: #fafcff;
    line-height: 1.55;
}

.page-head .topbar-actions {
    justify-content: flex-end;
}

.page-head .btn {
    min-width: 0;
}

.page-head > div:first-child {
    min-width: 0;
}

/* Dashboard poster */
.promo-card {
    padding: 1rem;
    display: grid;
    gap: 0.9rem;
}

.promo-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.sponsor-pill {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.sponsor-logo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #eaf2fb;
    color: var(--primary);
    border: 1px solid #d7e6f8;
    flex-shrink: 0;
}

.sponsor-pill strong {
    display: block;
    font-size: 1rem;
    line-height: 1.15;
}

.sponsor-pill small {
    display: block;
    color: var(--text-soft);
    font-size: 0.76rem;
    margin-top: 0.08rem;
}

.more-btn {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: #ffffff;
    color: var(--text);
    display: grid;
    place-items: center;
    cursor: pointer;
}

.more-btn:hover {
    background: #f7fbff;
}

.promo-banner {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(260px, 0.95fr);
    gap: 0.9rem;
    border: 1px solid #dbe8f4;
    border-radius: 26px;
    overflow: hidden;
    background: #fdfefe;
}

.banner-copy {
    padding: 1.1rem;
    background: #0f4f8f;
    color: #ffffff;
    display: grid;
    gap: 0.7rem;
    align-content: start;
}

.banner-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: #ffffff;
}

.banner-copy h2 {
    margin: 0;
    font-size: clamp(2.1rem, 3vw, 3.9rem);
    line-height: 0.96;
    color: #ffffff;
    max-width: 11ch;
}

.banner-tag {
    margin: 0;
    display: inline-block;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    background: #17a2c8;
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.banner-text {
    margin: 0;
    max-width: 56ch;
    color: #e8f2ff;
    line-height: 1.55;
}

.feature-strip {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.55rem;
    margin-top: 0.2rem;
}

.feature-chip {
    padding: 0.7rem 0.72rem;
    border-radius: 16px;
    background: #ffffff;
    color: var(--text);
    border: 1px solid #dbe8f4;
    display: grid;
    gap: 0.3rem;
    min-height: 92px;
}

.feature-chip i {
    color: var(--primary);
    font-size: 0.98rem;
}

.feature-chip strong {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text);
}

.feature-chip small {
    color: var(--text-soft);
    font-size: 0.72rem;
    line-height: 1.35;
}

.banner-visual {
    padding: 1rem;
    display: grid;
    gap: 0.9rem;
    align-content: start;
    background: #f8fbff;
}

.city-scene {
    position: relative;
    min-height: 220px;
    border-radius: 20px;
    border: 1px solid #dce7f3;
    background: #eaf2fb;
    overflow: hidden;
}

.city-skyline {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 92px;
    background: #d9e7f7;
}

.skyline-bars {
    position: absolute;
    inset: 18px 18px auto 18px;
    height: 58px;
    display: flex;
    align-items: end;
    gap: 8px;
}

.skyline-bars span {
    width: 14px;
    background: #b7cae3;
    border-radius: 6px 6px 0 0;
}

.skyline-bars span:nth-child(1) { height: 18px; }
.skyline-bars span:nth-child(2) { height: 30px; }
.skyline-bars span:nth-child(3) { height: 46px; }
.skyline-bars span:nth-child(4) { height: 24px; }
.skyline-bars span:nth-child(5) { height: 38px; }
.skyline-bars span:nth-child(6) { height: 52px; }
.skyline-bars span:nth-child(7) { height: 20px; }
.skyline-bars span:nth-child(8) { height: 44px; }

.route-track {
    position: absolute;
    left: 8%;
    right: 8%;
    top: 54%;
    height: 5px;
    background: #2479d6;
    border-radius: 999px;
}

.route-track::before,
.route-track::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 13px;
    height: 13px;
    transform: translateY(-50%);
    border-radius: 50%;
    border: 3px solid #ffffff;
    background: #17a2c8;
    box-shadow: 0 0 0 4px rgba(23, 162, 200, 0.12);
}

.route-track::before {
    left: 0;
}

.route-track::after {
    right: 0;
}

.map-pin {
    position: absolute;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #ffffff;
    color: var(--primary);
    border: 1px solid #d5e2ef;
    box-shadow: 0 8px 16px rgba(18, 34, 63, 0.12);
}

.map-pin.pin-one {
    left: 17%;
    top: 20%;
}

.map-pin.pin-two {
    right: 24%;
    top: 12%;
}

.map-pin.pin-three {
    right: 38%;
    bottom: 12%;
}

.banner-fleet {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 12px;
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    padding: 0 0.75rem;
}

.vehicle-card {
    min-width: 74px;
    min-height: 78px;
    padding: 0.5rem 0.45rem;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid #dbe8f4;
    box-shadow: 0 10px 18px rgba(18, 34, 63, 0.1);
    display: grid;
    place-items: center;
    gap: 0.2rem;
    text-align: center;
}

.vehicle-card i {
    font-size: 1.15rem;
    color: var(--primary);
}

.vehicle-card small {
    font-size: 0.68rem;
    color: var(--text-soft);
    font-weight: 700;
    letter-spacing: 0.04em;
}

.banner-brand {
    position: absolute;
    right: 12px;
    top: 12px;
    padding: 0.55rem 0.7rem;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid #dbe8f4;
    color: var(--text);
    font-size: 0.72rem;
    font-weight: 800;
    text-align: right;
}

.banner-brand strong {
    display: block;
    font-size: 0.82rem;
    line-height: 1;
}

.banner-brand small {
    display: block;
    color: var(--text-soft);
    margin-top: 0.05rem;
}

.banner-notes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
}

.banner-note {
    padding: 0.72rem 0.8rem;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid #dbe8f4;
}

.banner-note strong {
    display: block;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text);
}

.banner-note small {
    display: block;
    margin-top: 0.18rem;
    color: var(--text-soft);
    line-height: 1.35;
    font-size: 0.72rem;
}

.content-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.35fr;
    gap: 1rem;
}

.feature-list-card {
    padding: 1rem;
}

.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.9rem;
}

.section-title h3 {
    margin: 0;
    font-size: 1.05rem;
    color: var(--text);
}

.section-title.center {
    justify-content: center;
    text-align: center;
}

.section-title.center h3 {
    max-width: 34ch;
    font-size: 0.98rem;
    line-height: 1.25;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.feature-list {
    display: grid;
    gap: 0.7rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.8rem;
    border-radius: 16px;
    background: #f8fbff;
    border: 1px solid #e3ebf3;
}

.feature-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    background: #eaf2fb;
    color: var(--primary);
}

.feature-item strong {
    display: block;
    font-size: 0.85rem;
    line-height: 1.2;
    margin-bottom: 0.12rem;
}

.feature-item p {
    margin: 0;
    color: var(--text-soft);
    line-height: 1.45;
    font-size: 0.75rem;
}

.dashboard-mockup {
    padding: 0.9rem;
    position: relative;
    overflow: hidden;
}

.laptop-top {
    width: 90px;
    height: 14px;
    margin: 0 auto 0.4rem;
    border-radius: 12px 12px 3px 3px;
    background: #dbe8f4;
}

.mockup-screen {
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid #dbe8f4;
    box-shadow: inset 0 0 0 1px #f5f8fc;
    padding: 0.9rem;
}

.mockup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.8rem;
    color: var(--text-soft);
    font-weight: 700;
}

.mockup-header strong {
    color: var(--text);
}

.mockup-header .mockup-date {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.mockup-layout {
    display: block;
    
}



.mockup-brand {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.1rem 0.2rem 0.35rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
    margin-bottom: 0.1rem;
}

.mockup-nav {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.48rem 0.5rem;
    border-radius: 12px;
    font-size: 0.74rem;
    color: rgba(255, 255, 255, 0.88);
}

.mockup-nav i {
    width: 18px;
    text-align: center;
}

.mockup-nav.active {
    background: #2d6fd8;
    color: #ffffff;
}

.mockup-content {
    display: grid;
    gap: 0.75rem;
}

.mockup-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.5rem;
}

.mockup-kpi {
    border-radius: 16px;
    background: #f8fbff;
    border: 1px solid #dbe8f4;
    padding: 0.72rem 0.65rem;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.2rem;
}

.mockup-kpi span {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-soft);
    font-weight: 800;
}

.mockup-kpi strong {
    font-size: 1.05rem;
    line-height: 1;
    color: var(--text);
}

.mockup-kpi small {
    color: var(--text-soft);
    font-size: 0.67rem;
    margin-top: 0.05rem;
}

.mockup-panels {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
}

.mockup-panel {
    border-radius: 16px;
    background: #f8fbff;
    border: 1px solid #dbe8f4;
    padding: 0.7rem;
    min-height: 150px;
    position: relative;
    overflow: hidden;
}

.mockup-panel .panel-label {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-soft);
    margin-bottom: 0.55rem;
}

.mockup-map {
    background: #eef4fb;
}

.report-shortcuts {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.report-shortcut {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.55rem 0.6rem;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid #dbe8f4;
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
    text-decoration: none;
}

.report-shortcut:hover {
    transform: translateY(-1px);
    border-color: var(--primary);
    box-shadow: 0 6px 16px rgba(24, 88, 134, 0.12);
}

.report-shortcut--alt {
    background: #ffffff;
}

.report-shortcut-ic {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: #eaf2fb;
    color: var(--primary);
    font-size: 0.9rem;
    flex-shrink: 0;
}

.report-shortcut--alt .report-shortcut-ic {
    background: #fdeaea;
    color: #d62e2e;
}

.report-shortcut-copy {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}

.report-shortcut-copy strong {
    font-size: 0.86rem;
    line-height: 1.15;
    color: var(--text);
}

.report-shortcut-copy small {
    font-size: 0.7rem;
    line-height: 1.2;
    color: var(--text-soft);
}

.report-shortcut-amount {
    margin-left: auto;
    flex-shrink: 0;
    font: 700 0.78rem/1.1 "Space Grotesk", sans-serif;
    color: var(--primary);
    white-space: nowrap;
}

.report-shortcut-amount i {
    font-style: normal;
    font-size: 0.62rem;
    opacity: 0.65;
}

.report-shortcut--alt .report-shortcut-amount {
    color: #d62e2e;
}

.report-result {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    margin-top: 0.55rem;
    padding: 0.55rem 0.6rem;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid #dbe8f4;
}

.report-result span {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 800;
    color: var(--text-soft);
}

.report-result strong {
    font: 700 0.9rem/1.1 "Space Grotesk", sans-serif;
}

.report-result strong i {
    font-style: normal;
    font-size: 0.66rem;
    opacity: 0.65;
}

.report-result small {
    font-size: 0.66rem;
    line-height: 1.25;
    color: var(--text-soft);
}

.report-result--pos strong {
    color: #15944d;
}

.report-result--neg strong {
    color: #d23333;
}

.mockup-map .map-board {
    position: relative;
    height: 94px;
    border-radius: 12px;
    background: #d9e7f7;
    overflow: hidden;
}

.mockup-map .route-line {
    position: absolute;
    left: 11%;
    right: 13%;
    top: 54%;
    height: 4px;
    border-radius: 999px;
    background: var(--primary);
}

.mockup-map .route-line::before,
.mockup-map .route-line::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 12px;
    height: 12px;
    transform: translateY(-50%);
    border-radius: 50%;
    border: 3px solid #ffffff;
    background: var(--info);
}

.mockup-map .route-line::before {
    left: 0;
}

.mockup-map .route-line::after {
    right: 0;
}

.mockup-map .map-pin {
    width: 24px;
    height: 24px;
    font-size: 0.72rem;
}

.mockup-map .map-pin.pin-one {
    left: 18%;
    top: 16%;
}

.mockup-map .map-pin.pin-two {
    right: 28%;
    top: 10%;
}

.mockup-map .map-pin.pin-three {
    right: 40%;
    bottom: 11%;
}

.mockup-map .map-caption {
    position: absolute;
    left: 0.55rem;
    bottom: 0.55rem;
    max-width: 152px;
    padding: 0.45rem 0.55rem;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid #dbe8f4;
    color: var(--text);
    font-size: 0.68rem;
    line-height: 1.35;
    box-shadow: 0 8px 16px rgba(18, 34, 63, 0.08);
}

.mockup-donut .donut-wrap {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.7rem;
    align-items: center;
}

.donut-ring {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 14px solid #2479d6;
    border-right-color: #17a2c8;
    border-bottom-color: #e0a22f;
    border-left-color: #c43c4e;
    background: #ffffff;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.donut-center {
    text-align: center;
}

.donut-center strong {
    display: block;
    font-size: 1rem;
    line-height: 1;
}

.donut-center span {
    display: block;
    margin-top: 0.08rem;
    color: var(--text-soft);
    font-size: 0.66rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.donut-legend {
    display: grid;
    gap: 0.35rem;
}

.legend-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.4rem;
    font-size: 0.72rem;
    color: var(--text);
    font-weight: 700;
}

.legend-item span {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.legend-mark {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.mockup-table .table-wrap {
    display: grid;
    gap: 0.35rem;
}

.table-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 0.8fr;
    gap: 0.35rem;
    align-items: center;
    font-size: 0.68rem;
    color: var(--text-soft);
}

.table-row.head {
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text);
}

.table-row span {
    padding: 0.3rem 0.1rem;
}

.mockup-bars .bars-wrap {
    display: flex;
    align-items: end;
    gap: 0.55rem;
    height: 96px;
}

.bar-column {
    flex: 1;
    display: grid;
    gap: 0.35rem;
    justify-items: center;
}

.bar-column span {
    width: 100%;
    min-height: 18px;
    border-radius: 12px 12px 4px 4px;
    background: #2479d6;
    box-shadow: 0 6px 12px rgba(36, 121, 214, 0.14);
}

.bar-column small {
    font-size: 0.66rem;
    color: var(--text-soft);
    font-weight: 700;
}

.laptop-base {
    width: 82%;
    height: 16px;
    margin: 0.4rem auto 0;
    border-radius: 0 0 18px 18px;
    background: #d0d9e6;
}

.tool-section {
    padding: 0.95rem;
}

.tool-row {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.65rem;
}

.tool-card {
    padding: 0.9rem 0.85rem;
    display: grid;
    gap: 0.45rem;
    min-height: 118px;
}

.tool-card i {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: #eaf2fb;
    color: var(--primary);
}

.tool-card strong {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.tool-card small {
    color: var(--text-soft);
    line-height: 1.45;
    font-size: 0.74rem;
}

.cta-card {
    padding: 1rem;
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr);
    gap: 0.95rem;
    align-items: center;
}

.cta-device {
    min-height: 160px;
    border-radius: 24px;
    border: 1px solid #dbe8f4;
    background: #f8fbff;
    display: grid;
    place-items: center;
    position: relative;
    overflow: hidden;
}

.cta-device i {
    position: absolute;
    font-size: 2.2rem;
    color: var(--primary);
}

.cta-device i:nth-child(1) {
    left: 16%;
    top: 26%;
    font-size: 3rem;
}

.cta-device i:nth-child(2) {
    left: 34%;
    bottom: 26%;
    font-size: 2.2rem;
}

.cta-device i:nth-child(3) {
    right: 20%;
    top: 28%;
    font-size: 2.1rem;
}

.cta-copy {
    display: grid;
    gap: 0.8rem;
}

.cta-copy h3 {
    margin: 0;
    font-size: clamp(1.45rem, 2vw, 2.2rem);
    line-height: 1.02;
}

.cta-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.cta-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.7rem;
    border-radius: 999px;
    background: #eef5fd;
    border: 1px solid #d7e6f8;
    color: var(--text);
    font-size: 0.76rem;
    font-weight: 700;
}

.cta-tag i {
    color: var(--primary);
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.download-card {
    padding: 0.95rem;
    display: grid;
    gap: 0.8rem;
    justify-items: center;
}

.benefit-row {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.6rem;
}

.benefit-item {
    padding: 0.75rem 0.8rem;
    border-radius: 16px;
    border: 1px solid #dbe8f4;
    background: #f8fbff;
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
}

.benefit-item i {
    color: var(--primary);
    margin-top: 0.12rem;
}

.benefit-item strong {
    display: block;
    font-size: 0.77rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.benefit-item small {
    display: block;
    margin-top: 0.12rem;
    color: var(--text-soft);
    line-height: 1.35;
    font-size: 0.72rem;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.85rem 1.2rem;
    border-radius: 20px;
    border: 1px solid #d7e6f8;
    background: #ffffff;
    color: var(--text);
    font-size: clamp(1.4rem, 2.2vw, 2.6rem);
    font-weight: 700;
    box-shadow: var(--shadow);
}

.download-btn i {
    color: var(--primary);
    font-size: 1.2em;
}

.download-btn:hover {
    background: #f7fbff;
    border-color: #cfe2fb;
}

/* Generic list/detail helpers */
.page-head,
.panel-head {
    margin-bottom: 0.9rem;
}

.detail-panel,
.form-panel {
    overflow: hidden;
}

.hero .eyebrow {
    margin-bottom: 0.1rem;
}

/* Responsive */
@media (max-width: 1180px) {
    .container-fluid {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .navbar-center {
        display: none;
    }

    .header-right {
        gap: 0.55rem;
    }

    .tool-row {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .feature-strip {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 992px) {
    .hero {
        grid-template-columns: 1fr;
    }

    .hero-dashboard .hero-metrics {
        max-width: 100%;
    }

    .content-grid {
        grid-template-columns: 1fr;
    }

    .promo-banner {
        grid-template-columns: 1fr;
    }

    .cta-card {
        grid-template-columns: 1fr;
    }

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

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

@media (max-width: 768px) {
    :root {
        --aside-width: 0px;
        --topbar-height: 68px;
    }

    .layout-wrapper {
        margin-left: 0;
        flex-direction: column;
    }

    aside {
        width: min(280px, 88vw);
        max-width: 88vw;
        transform: translateX(-100%);
    }

    aside:not(.hidden) {
        transform: translateX(0);
    }

    .navbar {
        left: 0;
        width: 100%;
    }

    .container-fluid {
        grid-template-columns: minmax(0, 1fr) auto;
        padding: 0.65rem 0.85rem;
    }

    .navbar-brand small {
        display: none;
    }

    .user-profile .user-meta {
        display: none;
    }

    .header-actions {
        display: none;
    }

    .topbar-actions {
        display: none;
    }

    main > section.container-main {
        padding: 0.9rem;
    }

    .messages-container {
        left: 0;
        right: 0;
        padding: 0 0.75rem;
    }

    .grid-2,
    .grid-4,
    .form-grid,
    .hero-metrics,
    .benefit-row,
    .mockup-layout,
    .mockup-kpis,
    .mockup-panels,
    .banner-notes,
    .feature-strip,
    .tool-row {
        grid-template-columns: 1fr;
    }

    .promo-top,
    .panel-head,
    .page-head,
    .stack-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .page-head {
        align-items: flex-start;
    }

    .page-head .topbar-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .download-btn {
        font-size: 1.2rem;
    }

    .cta-device {
        min-height: 140px;
    }
}

@media (max-width: 576px) {
    .menu-toggle {
        width: 40px;
        height: 40px;
        border-radius: 11px;
    }

    .brand-mark,
    .sidebar-logo {
        width: 40px;
        height: 40px;
        border-radius: 13px;
    }

    .page-title {
        font-size: 1rem;
    }

    .hero,
    .promo-card,
    .feature-list-card,
    .dashboard-mockup,
    .tool-card,
    .cta-card,
    .download-card,
    .panel,
    .form-panel,
    .detail-panel {
        border-radius: 20px;
    }

    .promo-banner {
        border-radius: 20px;
    }

    .banner-copy h2 {
        font-size: clamp(1.85rem, 8vw, 2.7rem);
    }

    .download-btn {
        width: 100%;
        justify-content: center;
    }
}

/* === Table & Search === */

.search-section {
    margin-bottom: 0.9rem;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.6rem 0.9rem;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: #ffffff;
    box-shadow: var(--shadow);
}

.search-icon {
    color: var(--text-soft);
    flex-shrink: 0;
}

.search-box input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 0.92rem;
    font-family: var(--font-body);
    color: var(--text);
    background: transparent;
    min-width: 0;
}

.search-box input::placeholder {
    color: var(--text-soft);
}

.search-count {
    flex-shrink: 0;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-soft);
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    background: #f4f7fb;
    border: 1px solid #e3ebf3;
}

.table-panel {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    overflow: hidden;
}

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

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.data-table thead {
    background: var(--primary);
    border-bottom: 2px solid var(--border);
}

.data-table th {
    padding: 0.8rem 0.95rem;
    text-align: left;
    font-weight: 800;
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #fff;
    white-space: nowrap;
}

.data-table td {
    padding: 0.7rem 0.95rem;
    border-bottom: 1px solid #eef2f7;
    vertical-align: middle;
    color: var(--text);
}

.data-table tbody tr {
    transition: background 0.12s ease;
}

.data-table tbody tr:hover {
    background: #f8fbff;
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

.table-actions {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.empty-row td {
    padding: 2rem 0.95rem;
}

/* Detail header */
.detail-header {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #eef2f7;
}

.detail-header-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: #eaf2fb;
    color: var(--primary);
    font-size: 1.3rem;
    flex-shrink: 0;
}

.detail-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--text);
}

.detail-header p {
    margin: 0.15rem 0 0;
    font-size: 0.85rem;
}

.detail-header-status {
    margin-left: auto;
    flex-shrink: 0;
}

/* Checkbox field */
.field-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0;
}

.field-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    cursor: pointer;
}

.field-check label {
    font-size: 0.88rem;
    color: var(--text);
    cursor: pointer;
}

@media (max-width: 768px) {
    .data-table th,
    .data-table td {
        padding: 0.55rem 0.6rem;
        font-size: 0.8rem;
    }

    .search-box {
        padding: 0.5rem 0.7rem;
    }

    .detail-header {
        flex-wrap: wrap;
    }

    .detail-header-status {
        margin-left: 0;
    }
}

/* Récapitulatif RH */
.filter-form .search-box {
    flex-wrap: wrap;
}

.filter-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-soft);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.filter-form select {
    padding: 0.45rem 0.6rem;
    border-radius: 10px;
    border: 1px solid var(--border);
    font-family: var(--font-body);
    font-size: 0.88rem;
    color: var(--text);
    background: #fff;
    outline: none;
}

.recap-table .num {
    text-align: right;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.recap-table .strong {
    font-weight: 700;
}

.recap-table th,
.recap-table td {
    white-space: nowrap;
}

.recap-table tfoot .totals-row {
    background: #eef5fd;
    font-weight: 700;
}

.recap-table tfoot .totals-row td {
    border-top: 2px solid var(--primary);
    border-bottom: none;
}
