:root {
    --alphea-bg: #f5f7fb;
    --alphea-panel: #ffffff;
    --alphea-dark: #0f172a;
    --alphea-muted: #64748b;
    --alphea-border: #e2e8f0;
    --alphea-primary: #1e3a8a;
    --alphea-primary-soft: #eff6ff;
    --alphea-success: #15803d;
    --alphea-warning: #b45309;
    --alphea-danger: #b91c1c;
    --alphea-radius: 18px;
    --alphea-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

* {
    box-sizing: border-box;
}

body.alphea-v2 {
    margin: 0;
    background: var(--alphea-bg);
    color: var(--alphea-dark);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.alphea-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 260px 1fr;
}

.alphea-main {
    min-width: 0;
}

.alphea-content {
    padding: 28px;
}

.alphea-card {
    background: var(--alphea-panel);
    border: 1px solid var(--alphea-border);
    border-radius: var(--alphea-radius);
    box-shadow: var(--alphea-shadow);
    padding: 22px;
}

.alphea-title {
    margin: 0 0 6px;
    font-size: 28px;
    letter-spacing: -0.03em;
}

.alphea-subtitle {
    margin: 0;
    color: var(--alphea-muted);
}

.alphea-grid {
    display: grid;
    gap: 18px;
}

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

.alphea-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid var(--alphea-border);
    background: #fff;
    color: var(--alphea-dark);
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.alphea-btn-primary {
    background: var(--alphea-primary);
    border-color: var(--alphea-primary);
    color: #fff;
}

.alphea-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 800;
    background: var(--alphea-primary-soft);
    color: var(--alphea-primary);
}

.alphea-table {
    width: 100%;
    border-collapse: collapse;
}

.alphea-table th {
    text-align: left;
    font-size: 12px;
    color: var(--alphea-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 1px solid var(--alphea-border);
    padding: 12px;
}

.alphea-table td {
    border-bottom: 1px solid var(--alphea-border);
    padding: 14px 12px;
}

.alphea-topbar {
    height: 72px;
    background: rgba(255,255,255,0.88);
    border-bottom: 1px solid var(--alphea-border);
    backdrop-filter: blur(16px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    position: sticky;
    top: 0;
    z-index: 20;
}

.alphea-sidebar {
    background: #0f172a;
    color: #fff;
    padding: 22px;
}

.alphea-brand {
    font-size: 20px;
    font-weight: 900;
    letter-spacing: -0.04em;
    margin-bottom: 28px;
}

.alphea-nav {
    display: grid;
    gap: 8px;
}

.alphea-nav a {
    color: rgba(255,255,255,0.78);
    text-decoration: none;
    padding: 11px 13px;
    border-radius: 12px;
    font-weight: 700;
}

.alphea-nav a:hover,
.alphea-nav a.active {
    background: rgba(255,255,255,0.12);
    color: #fff;
}

@media (max-width: 900px) {
    .alphea-shell {
        grid-template-columns: 1fr;
    }

    .alphea-sidebar {
        display: none;
    }

    .alphea-grid-3 {
        grid-template-columns: 1fr;
    }
}

.alphea-stat-card {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.alphea-stat-card:hover {
    transform: translateY(-2px);
}

.alphea-stat-title {
    font-size: 13px;
    font-weight: 800;
    color: var(--alphea-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.alphea-stat-value {
    margin-top: 12px;
    font-size: 34px;
    font-weight: 900;
    letter-spacing: -0.05em;
}

.alphea-stat-label {
    margin-top: 6px;
    font-size: 14px;
    color: var(--alphea-muted);
}

.alphea-badge-neutral {
    background: #f1f5f9;
    color: #334155;
}

.alphea-badge-info {
    background: #eff6ff;
    color: #1d4ed8;
}

.alphea-badge-success {
    background: #ecfdf5;
    color: #047857;
}

.alphea-badge-warning {
    background: #fffbeb;
    color: #b45309;
}

.alphea-badge-danger {
    background: #fef2f2;
    color: #b91c1c;
}

.alphea-table-wrap {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--alphea-border);
    border-radius: var(--alphea-radius);
    background: #fff;
}

.alphea-table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
}

.alphea-table tbody tr:hover {
    background: #f8fafc;
}

.alphea-table-empty {
    text-align: center;
    color: var(--alphea-muted);
    padding: 28px !important;
}

.alphea-table-component {
    display: grid;
    gap: 12px;
}

.alphea-table-toolbar {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.alphea-table-search {
    width: min(360px, 100%);
    height: 42px;
    border: 1px solid var(--alphea-border);
    border-radius: 999px;
    padding: 0 16px;
    font-size: 14px;
    outline: none;
    background: #fff;
}

.alphea-table-search:focus {
    border-color: var(--alphea-primary);
    box-shadow: 0 0 0 4px var(--alphea-primary-soft);
}

.alphea-btn-secondary {
    background: #fff;
    border-color: var(--alphea-border);
    color: var(--alphea-dark);
}

.alphea-btn-danger {
    background: #b91c1c;
    border-color: #b91c1c;
    color: #fff;
}

.alphea-btn-ghost {
    background: transparent;
    border-color: transparent;
    color: var(--alphea-muted);
}

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

.alphea-tabs {
    display: flex;
    gap: 6px;
    border-bottom: 1px solid var(--alphea-border);
    margin-bottom: 18px;
    overflow-x: auto;
}

.alphea-tab {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 14px;
    color: var(--alphea-muted);
    text-decoration: none;
    font-weight: 800;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
}

.alphea-tab:hover {
    color: var(--alphea-dark);
}

.alphea-tab.active {
    color: var(--alphea-primary);
    border-bottom-color: var(--alphea-primary);
}

/* ===========================
   TIMELINE
=========================== */

.alphea-timeline{
    position:relative;
    margin-top:20px;
}

.alphea-timeline::before{

    content:"";
    position:absolute;

    left:18px;
    top:0;
    bottom:0;

    width:2px;

    background:#dbeafe;

}

.alphea-timeline-item{

    position:relative;

    padding-left:55px;
    margin-bottom:24px;

}

.alphea-timeline-dot{

    position:absolute;

    left:10px;
    top:8px;

    width:18px;
    height:18px;

    border-radius:50%;

    background:var(--alphea-primary);

    border:4px solid white;

    box-shadow:0 0 0 3px #dbeafe;

}

.alphea-timeline-card{

    background:white;

    border:1px solid var(--alphea-border);

    border-radius:14px;

    padding:16px;

}

.alphea-timeline-date{

    font-size:12px;

    color:var(--alphea-muted);

    margin-bottom:6px;

}

.alphea-timeline-title{

    font-size:16px;

    font-weight:700;

    margin-bottom:8px;

}

.alphea-timeline-text{

    color:#475569;

    line-height:1.5;

}

.alphea-dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.8fr);
    gap: 18px;
}

.alphea-attention-list {
    display: grid;
    gap: 12px;
}

.alphea-attention-item {
    display: grid;
    gap: 4px;
    padding: 14px;
    border: 1px solid var(--alphea-border);
    border-radius: 14px;
    background: #f8fafc;
}

.alphea-attention-item span {
    color: var(--alphea-muted);
    font-size: 14px;
}

.alphea-mini-timeline {
    display: grid;
    gap: 14px;
}

.alphea-mini-timeline div {
    display: grid;
    gap: 4px;
    padding-left: 14px;
    border-left: 3px solid var(--alphea-primary);
}

.alphea-mini-timeline span {
    color: var(--alphea-muted);
    font-size: 14px;
}

@media (max-width: 1100px) {
    .alphea-dashboard-grid {
        grid-template-columns: 1fr;
    }
}

.alphea-empty-state {
    display: grid;
    justify-items: center;
    text-align: center;
    gap: 10px;
    padding: 36px 22px;
    border: 1px dashed var(--alphea-border);
    border-radius: var(--alphea-radius);
    background: #f8fafc;
}

.alphea-empty-icon {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background: var(--alphea-primary-soft);
    font-size: 24px;
}

.alphea-empty-state h3 {
    margin: 6px 0 0;
    font-size: 20px;
}

.alphea-empty-state p {
    margin: 0;
    color: var(--alphea-muted);
    max-width: 520px;
}

/* ===============================
   SUMMARY CARD
================================ */

.alphea-summary-grid{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(180px,1fr));

    gap:18px;

    margin-top:20px;

}

.alphea-summary-item{

    padding:16px;

    border:1px solid var(--alphea-border);

    border-radius:14px;

    background:#fafbfd;

}

.alphea-summary-label{

    font-size:12px;

    text-transform:uppercase;

    letter-spacing:.05em;

    color:var(--alphea-muted);

    margin-bottom:8px;

    font-weight:700;

}

.alphea-summary-value{

    font-size:18px;

    font-weight:700;

}

.alphea-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 18px;
    margin-top: 20px;
}

.alphea-summary-item {
    padding: 16px;
    border: 1px solid var(--alphea-border);
    border-radius: 14px;
    background: #fafbfd;
}

.alphea-summary-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--alphea-muted);
    margin-bottom: 8px;
    font-weight: 700;
}

.alphea-summary-value {
    font-size: 18px;
    font-weight: 800;
}

.alphea-record {
    display: grid;
    gap: 18px;
}

.alphea-record-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    flex-wrap: wrap;
}

.alphea-record-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.alphea-record-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 18px;
}

.alphea-record-main,
.alphea-record-side {
    display: grid;
    gap: 18px;
    align-content: start;
}

@media (max-width: 1100px) {
    .alphea-record-grid {
        grid-template-columns: 1fr;
    }
}

.alphea-section-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.alphea-section-header h2 {
    margin: 0;
}

.alphea-section-header p {
    margin: 4px 0 0;
    color: var(--alphea-muted);
}

.alphea-notification-list {
    display: grid;
    gap: 12px;
}

.alphea-notification-item {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 14px;
    border: 1px solid var(--alphea-border);
    border-radius: 16px;
    background: #f8fafc;
}

.alphea-notification-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: var(--alphea-primary-soft);
}

.alphea-notification-item strong {
    display: block;
}

.alphea-notification-item span {
    color: var(--alphea-muted);
    font-size: 14px;
}

.alphea-kpi{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:18px;
}

.alphea-flex{
    display:flex;
    gap:18px;
}

.alphea-flex-between{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:18px;
}

.alphea-stack{
    display:grid;
    gap:18px;
}

.alphea-section{
    margin-top:26px;
}

.alphea-divider{
    height:1px;
    background:var(--alphea-border);
    margin:20px 0;
}

.alphea-scroll{
    overflow:auto;
}

.alphea-pill{
    display:inline-flex;
    align-items:center;
    padding:6px 12px;
    border-radius:999px;
    background:#f8fafc;
    border:1px solid var(--alphea-border);
    font-size:13px;
    font-weight:700;
}

.alphea-page{
    display:grid;
    gap:24px;
}

.alphea-page-header{

    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:20px;
    flex-wrap:wrap;

}

.alphea-page-title{

    display:grid;
    gap:6px;

}

.alphea-page-title h1{

    margin:0;
    font-size:34px;
    font-weight:800;

}

.alphea-page-title p{

    margin:0;
    color:var(--alphea-muted);

}

.alphea-actions{

    display:flex;
    gap:10px;
    flex-wrap:wrap;

}

.alphea-two{

    display:grid;
    grid-template-columns:2fr 1fr;
    gap:22px;

}

.alphea-three{

    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:20px;

}

@media(max-width:1100px){

.alphea-two{

grid-template-columns:1fr;

}

.alphea-three{

grid-template-columns:1fr;

}

}

.alphea-info-list{

width:100%;

border-collapse:collapse;

}

.alphea-info-list th{

width:180px;

padding:14px;

text-align:left;

color:var(--alphea-muted);

font-size:13px;

font-weight:700;

border-bottom:1px solid var(--alphea-border);

}

.alphea-info-list td{

padding:14px;

border-bottom:1px solid var(--alphea-border);

}

.alphea-info-list tr:last-child td,
.alphea-info-list tr:last-child th{

border-bottom:none;

}

.alphea-section{

display:grid;

gap:18px;

}

.alphea-section-title{

display:flex;

justify-content:space-between;

align-items:center;

gap:20px;

}

.alphea-section-title h2{

margin:0;

font-size:22px;

}

.alphea-section-title p{

margin:4px 0 0;

color:var(--alphea-muted);

}

.alphea-section-body{

display:grid;

gap:18px;

}

.alphea-grid-custom{

display:grid;

gap:18px;

}

.cols-2{

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

}

.cols-3{

grid-template-columns:repeat(3,minmax(0,1fr));

}

.cols-4{

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

}

@media(max-width:1200px){

.cols-4{

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

}

}

@media(max-width:900px){

.cols-2,
.cols-3,
.cols-4{

grid-template-columns:1fr;

}

}

.alphea-action-bar{

display:flex;

gap:12px;

flex-wrap:wrap;

}

.alphea-action-bar .alphea-btn{

display:flex;

align-items:center;

gap:8px;

}

.alphea-action-bar .alphea-btn span{

display:inline-block;

}

.alphea-kpi-grid{

display:grid;

grid-template-columns:repeat(auto-fit,minmax(240px,1fr));

gap:18px;

}

.alphea-kpi-card{

background:#fff;

border:1px solid var(--alphea-border);

border-radius:18px;

padding:22px;

display:grid;

gap:16px;

box-shadow:var(--alphea-shadow);

transition:.18s;

}

.alphea-kpi-card:hover{

transform:translateY(-3px);

}

.alphea-kpi-header{

display:flex;

justify-content:space-between;

align-items:center;

}

.alphea-kpi-icon{

width:52px;

height:52px;

display:grid;

place-items:center;

border-radius:16px;

background:var(--alphea-primary-soft);

font-size:24px;

}

.alphea-kpi-value{

font-size:42px;

font-weight:900;

line-height:1;

}

.alphea-kpi-title{

font-size:15px;

font-weight:800;

}

.alphea-kpi-subtitle{

font-size:13px;

color:var(--alphea-muted);

}

.alphea-panel{

background:#fff;

border:1px solid var(--alphea-border);

border-radius:18px;

box-shadow:var(--alphea-shadow);

overflow:hidden;

}

.alphea-panel-header{

padding:20px 24px;

border-bottom:1px solid var(--alphea-border);

display:flex;

justify-content:space-between;

align-items:center;

gap:20px;

}

.alphea-panel-header h3{

margin:0;

font-size:18px;

font-weight:800;

}

.alphea-panel-header p{

margin:5px 0 0;

color:var(--alphea-muted);

font-size:14px;

}

.alphea-panel-body{

padding:22px;

display:grid;

gap:18px;

}

.alphea-panel{

background:#fff;

border:1px solid var(--alphea-border);

border-radius:18px;

box-shadow:var(--alphea-shadow);

overflow:hidden;

}

.alphea-panel-header{

padding:20px 24px;

border-bottom:1px solid var(--alphea-border);

display:flex;

justify-content:space-between;

align-items:center;

gap:20px;

}

.alphea-panel-header h3{

margin:0;

font-size:18px;

font-weight:800;

}

.alphea-panel-header p{

margin:5px 0 0;

color:var(--alphea-muted);

font-size:14px;

}

.alphea-panel-body{

padding:22px;

display:grid;

gap:18px;

}

.alphea-widget-list{

display:grid;

gap:2px;

}

.alphea-widget-row{

display:flex;

justify-content:space-between;

align-items:center;

gap:18px;

padding:14px 0;

border-bottom:1px solid var(--alphea-border);

}

.alphea-widget-row:last-child{

border-bottom:none;

}

.alphea-widget-row-title{

font-weight:700;

font-size:15px;

}

.alphea-widget-row-subtitle{

margin-top:4px;

font-size:13px;

color:var(--alphea-muted);

}

.alphea-widget-row-right{

display:flex;

align-items:center;

gap:8px;

flex-shrink:0;

}

.alphea-metric-card{

display:grid;

gap:18px;

padding:24px;

background:#fff;

border:1px solid var(--alphea-border);

border-radius:20px;

box-shadow:var(--alphea-shadow);

text-decoration:none;

color:inherit;

transition:.18s;

}

.alphea-metric-card:hover{

transform:translateY(-4px);

}

.alphea-metric-top{

display:flex;

justify-content:space-between;

align-items:center;

}

.alphea-metric-icon{

width:56px;

height:56px;

display:grid;

place-items:center;

border-radius:18px;

background:var(--alphea-primary-soft);

font-size:26px;

}

.alphea-metric-value{

font-size:44px;

font-weight:900;

line-height:1;

}

.alphea-metric-title{

font-size:15px;

font-weight:700;

}

.alphea-trend{

padding:6px 10px;

border-radius:999px;

font-size:12px;

font-weight:800;

}

.alphea-trend-success{

background:#ecfdf5;

color:#047857;

}

.alphea-trend-warning{

background:#fff7ed;

color:#c2410c;

}

.alphea-trend-danger{

background:#fef2f2;

color:#b91c1c;

}

.alphea-trend-neutral{

background:#f1f5f9;

color:#475569;

}

.alphea-metric-card{

display:grid;

gap:18px;

padding:24px;

background:#fff;

border:1px solid var(--alphea-border);

border-radius:20px;

box-shadow:var(--alphea-shadow);

text-decoration:none;

color:inherit;

transition:.18s;

}

.alphea-metric-card:hover{

transform:translateY(-4px);

}

.alphea-metric-top{

display:flex;

justify-content:space-between;

align-items:center;

}

.alphea-metric-icon{

width:56px;

height:56px;

display:grid;

place-items:center;

border-radius:18px;

background:var(--alphea-primary-soft);

font-size:26px;

}

.alphea-metric-value{

font-size:44px;

font-weight:900;

line-height:1;

}

.alphea-metric-title{

font-size:15px;

font-weight:700;

}

.alphea-trend{

padding:6px 10px;

border-radius:999px;

font-size:12px;

font-weight:800;

}

.alphea-trend-success{

background:#ecfdf5;

color:#047857;

}

.alphea-trend-warning{

background:#fff7ed;

color:#c2410c;

}

.alphea-trend-danger{

background:#fef2f2;

color:#b91c1c;

}

.alphea-trend-neutral{

background:#f1f5f9;

color:#475569;

}

.alphea-sidebar{

background:#0f172a;

color:white;

display:flex;

flex-direction:column;

padding:22px;

gap:28px;

}

.alphea-sidebar-brand{

display:flex;

align-items:center;

gap:14px;

padding-bottom:18px;

border-bottom:1px solid rgba(255,255,255,.08);

}

.alphea-sidebar-logo{

width:52px;

height:52px;

display:grid;

place-items:center;

border-radius:16px;

background:#1d4ed8;

font-size:22px;

font-weight:900;

}

.alphea-sidebar-brand strong{

display:block;

font-size:18px;

}

.alphea-sidebar-brand small{

color:#94a3b8;

}

.alphea-sidebar-nav{

display:grid;

gap:6px;

}

.alphea-sidebar-link{

display:flex;

justify-content:space-between;

align-items:center;

padding:12px 14px;

border-radius:14px;

text-decoration:none;

color:#cbd5e1;

transition:.18s;

}

.alphea-sidebar-link:hover{

background:rgba(255,255,255,.06);

color:white;

}

.alphea-sidebar-link.active{

background:#1d4ed8;

color:white;

}

.alphea-sidebar-left{

display:flex;

align-items:center;

gap:12px;

}

.alphea-sidebar-icon{

width:28px;

display:grid;

place-items:center;

}

.alphea-sidebar-badge{

min-width:24px;

height:24px;

padding:0 8px;

display:grid;

place-items:center;

border-radius:999px;

background:white;

color:#1d4ed8;

font-size:12px;

font-weight:800;

}

.alphea-topbar{

height:78px;

display:grid;

grid-template-columns:280px 1fr auto;

align-items:center;

gap:24px;

padding:0 28px;

background:#fff;

border-bottom:1px solid var(--alphea-border);

position:sticky;

top:0;

z-index:100;

}

.alphea-topbar-left h1{

margin:0;

font-size:26px;

}

.alphea-topbar-left span{

font-size:13px;

color:var(--alphea-muted);

}

.alphea-search{

width:100%;

height:46px;

border:1px solid var(--alphea-border);

border-radius:999px;

padding:0 18px;

background:#f8fafc;

outline:none;

font-size:14px;

}

.alphea-search:focus{

border-color:#2563eb;

background:white;

}

.alphea-topbar-right{

display:flex;

align-items:center;

gap:12px;

}

.alphea-icon-button{

position:relative;

width:46px;

height:46px;

border:none;

border-radius:14px;

background:#f8fafc;

cursor:pointer;

font-size:18px;

}

.alphea-dot{

position:absolute;

top:-4px;

right:-4px;

min-width:20px;

height:20px;

padding:0 6px;

display:grid;

place-items:center;

border-radius:999px;

background:#ef4444;

color:white;

font-size:11px;

font-weight:700;

}

.alphea-user-button{

display:flex;

align-items:center;

gap:12px;

padding:8px 12px;

border:none;

background:white;

cursor:pointer;

border-radius:14px;

}

.alphea-avatar{

width:42px;

height:42px;

display:grid;

place-items:center;

background:#2563eb;

color:white;

border-radius:14px;

font-weight:800;

}

.alphea-user-button small{

display:block;

color:var(--alphea-muted);

font-size:12px;

}

@media(max-width:1200px){

.alphea-topbar{

grid-template-columns:1fr;

height:auto;

padding:18px;

}

}

.alphea-command-palette{

position:fixed;

inset:0;

background:rgba(15,23,42,.45);

display:none;

align-items:flex-start;

justify-content:center;

padding-top:90px;

z-index:5000;

}

.alphea-command-palette.is-open{

display:flex;

}

.alphea-command-window{

width:min(720px,95vw);

background:white;

border-radius:20px;

overflow:hidden;

box-shadow:0 40px 80px rgba(0,0,0,.25);

}

.alphea-command-input{

width:100%;

height:64px;

border:none;

border-bottom:1px solid var(--alphea-border);

padding:0 22px;

font-size:18px;

outline:none;

}

.alphea-command-results{

display:grid;

}

.alphea-command-item{

padding:18px 22px;

text-decoration:none;

color:inherit;

border-bottom:1px solid var(--alphea-border);

transition:.15s;

}

.alphea-command-item:hover{

background:#f8fafc;

}

.alphea-command-item:last-child{

border-bottom:none;

}

.alphea-command-item{

display:flex;

align-items:center;

gap:14px;

font-size:15px;

font-weight:600;

}

.alphea-command-item::after{

content:"↵";

margin-left:auto;

color:#94a3b8;

font-size:13px;

}

.alphea-dashboard{

display:grid;

gap:24px;

}

.alphea-dashboard-metrics{

display:grid;

grid-template-columns:repeat(auto-fit,minmax(260px,1fr));

gap:20px;

}

.alphea-dashboard-widgets{

display:grid;

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

gap:20px;

}

@media(max-width:1100px){

.alphea-dashboard-widgets{

grid-template-columns:1fr;

}

}

.alphea-alert-bar{

display:grid;

gap:14px;

margin-bottom:24px;

}

.alphea-alert{

padding:18px 22px;

border-radius:16px;

border-left:6px solid;

background:#fff;

box-shadow:var(--alphea-shadow);

}

.alphea-alert strong{

display:block;

margin-bottom:6px;

font-size:15px;

}

.alphea-alert-danger{

border-color:#dc2626;

background:#fef2f2;

}

.alphea-alert-warning{

border-color:#d97706;

background:#fff7ed;

}

.alphea-alert-info{

border-color:#2563eb;

background:#eff6ff;

}

.alphea-alert-success{

border-color:#16a34a;

background:#ecfdf5;

}

.alphea-activity-feed{

display:grid;

gap:0;

}

.alphea-activity-item{

display:grid;

grid-template-columns:18px 1fr auto;

gap:16px;

align-items:start;

padding:16px 0;

border-bottom:1px solid var(--alphea-border);

}

.alphea-activity-item:last-child{

border-bottom:none;

}

.alphea-activity-dot{

width:12px;

height:12px;

margin-top:6px;

border-radius:50%;

}

.alphea-activity-info{

background:#2563eb;

}

.alphea-activity-success{

background:#16a34a;

}

.alphea-activity-warning{

background:#d97706;

}

.alphea-activity-danger{

background:#dc2626;

}

.alphea-activity-title{

font-weight:700;

font-size:15px;

}

.alphea-activity-description{

margin-top:4px;

font-size:13px;

color:var(--alphea-muted);

}

.alphea-activity-date{

font-size:12px;

color:var(--alphea-muted);

white-space:nowrap;

}

.alphea-task-list{

display:grid;

gap:14px;

}

.alphea-task{

display:flex;

justify-content:space-between;

align-items:center;

gap:18px;

padding:18px;

background:#fff;

border:1px solid var(--alphea-border);

border-radius:16px;

transition:.15s;

}

.alphea-task:hover{

transform:translateY(-2px);

box-shadow:var(--alphea-shadow);

}

.alphea-task-title{

font-weight:700;

font-size:15px;

}

.alphea-task-description{

margin-top:4px;

font-size:13px;

color:var(--alphea-muted);

}

.alphea-task-right{

display:flex;

align-items:center;

gap:10px;

flex-shrink:0;

}

/* ==========================================================
   MODULE NAVIGATION
   Composant applicatif partagé
   ========================================================== */

.alphea-module-navigation{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
    margin:0 0 24px;
}

.alphea-module-link{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:40px;
    padding:0 18px;
    border-radius:12px;
    border:1px solid var(--alphea-border);
    background:#fff;
    color:var(--alphea-primary);
    text-decoration:none;
    font-weight:700;
    transition:
        background .18s ease,
        color .18s ease,
        border-color .18s ease,
        transform .12s ease;
}

.alphea-module-link:hover{
    background:var(--alphea-primary-soft);
    border-color:var(--alphea-primary);
}

.alphea-module-link.active{
    background:var(--alphea-primary);
    color:#fff;
    border-color:var(--alphea-primary);
}

@media (max-width:900px){

    .alphea-module-navigation{
        overflow-x:auto;
        flex-wrap:nowrap;
        padding-bottom:6px;
    }

    .alphea-module-link{
        white-space:nowrap;
    }

}

/* ==========================================================
   ALPHEA SUITE — RECHERCHE GLOBALE PREMIUM
   Installation : 2026-07-28
========================================================== */

.alphea-topbar-left {
    min-width: 210px;
}

.alphea-topbar-heading h1 {
    margin: 0;
    font-size: 19px;
    line-height: 1.15;
    letter-spacing: -0.035em;
}

.alphea-topbar-heading span {
    display: block;
    margin-top: 3px;
    color: var(--alphea-muted);
    font-size: 11px;
    font-weight: 700;
}

.alphea-topbar-center {
    position: relative;
    display: flex;
    justify-content: center;
    flex: 1;
    min-width: 280px;
    max-width: 720px;
    margin: 0 24px;
}

.alphea-global-search {
    position: relative;
    width: 100%;
}

.alphea-global-search-form {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    height: 44px;
    margin: 0;
    border: 1px solid var(--alphea-border);
    border-radius: 14px;
    background: rgba(248, 250, 252, 0.92);
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.03),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transition:
        border-color 160ms ease,
        background 160ms ease,
        box-shadow 160ms ease;
}

.alphea-global-search.is-open .alphea-global-search-form,
.alphea-global-search-form:focus-within {
    border-color: rgba(30, 58, 138, 0.55);
    background: #fff;
    box-shadow:
        0 0 0 4px rgba(30, 58, 138, 0.09),
        0 12px 30px rgba(15, 23, 42, 0.08);
}

.alphea-global-search-icon {
    display: grid;
    flex: 0 0 42px;
    place-items: center;
    color: #64748b;
    font-size: 21px;
    line-height: 1;
}

.alphea-search {
    width: 100%;
    height: 42px;
    min-width: 0;
    padding: 0 12px 0 0;
    border: 0 !important;
    outline: 0;
    background: transparent;
    color: var(--alphea-dark);
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    box-shadow: none !important;
}

.alphea-search::placeholder {
    color: #94a3b8;
    font-weight: 600;
}

.alphea-search-shortcut {
    flex: 0 0 auto;
    height: 26px;
    min-width: 52px;
    margin-right: 8px;
    padding: 0 8px;
    border: 1px solid #dbe2ea;
    border-radius: 7px !important;
    background: #fff;
    color: #64748b;
    font-size: 10px;
    font-weight: 850 !important;
    letter-spacing: 0.01em;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.alphea-search-shortcut:hover {
    border-color: #bfccda;
    color: var(--alphea-primary);
}

.alphea-search-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: 0;
    z-index: 1000;
    overflow: hidden;
    max-height: min(650px, calc(100vh - 110px));
    border: 1px solid rgba(203, 213, 225, 0.92);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.985);
    box-shadow:
        0 30px 80px rgba(15, 23, 42, 0.20),
        0 8px 22px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(22px);
    animation: alphea-search-enter 150ms ease-out;
}

.alphea-search-panel[hidden] {
    display: none !important;
}

@keyframes alphea-search-enter {
    from {
        opacity: 0;
        transform: translateY(-6px) scale(0.99);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.alphea-search-panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 17px 18px 14px;
    border-bottom: 1px solid #edf1f5;
}

.alphea-search-panel-header > div {
    display: grid;
    gap: 4px;
}

.alphea-search-panel-header strong {
    color: var(--alphea-dark);
    font-size: 14px;
}

.alphea-search-panel-header span {
    color: var(--alphea-muted);
    font-size: 12px;
    line-height: 1.45;
}

.alphea-search-panel kbd {
    display: inline-grid;
    min-width: 26px;
    height: 24px;
    padding: 0 6px;
    place-items: center;
    border: 1px solid #dbe2ea;
    border-bottom-width: 2px;
    border-radius: 6px;
    background: #f8fafc;
    color: #64748b;
    font-family: inherit;
    font-size: 10px;
    font-weight: 850;
    white-space: nowrap;
}

.alphea-search-panel-section {
    display: grid;
    gap: 3px;
    overflow-y: auto;
    max-height: 430px;
    padding: 10px;
}

.alphea-search-panel-section > small {
    padding: 3px 8px 7px;
    color: #94a3b8;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.alphea-search-suggestion {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    align-items: center;
    gap: 11px;
    min-height: 58px;
    padding: 8px 10px;
    border: 1px solid transparent;
    border-radius: 12px;
    color: var(--alphea-dark);
    text-decoration: none;
    transition:
        border-color 120ms ease,
        background 120ms ease,
        transform 120ms ease;
}

.alphea-search-suggestion:hover,
.alphea-search-suggestion:focus,
.alphea-search-suggestion.is-active {
    border-color: #dbeafe;
    outline: 0;
    background: #eff6ff;
    transform: translateX(1px);
}

.alphea-search-suggestion[hidden] {
    display: none !important;
}

.alphea-search-suggestion-icon {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border: 1px solid #dbeafe;
    border-radius: 11px;
    background: #fff;
    color: var(--alphea-primary);
    font-size: 18px;
    box-shadow: 0 3px 10px rgba(30, 58, 138, 0.07);
}

.alphea-search-suggestion > span:nth-child(2) {
    display: grid;
    min-width: 0;
    gap: 3px;
}

.alphea-search-suggestion strong {
    overflow: hidden;
    color: #16213a;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.alphea-search-suggestion small {
    overflow: hidden;
    color: var(--alphea-muted);
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.alphea-search-suggestion em {
    color: #94a3b8;
    font-size: 10px;
    font-style: normal;
    font-weight: 800;
}

.alphea-search-suggestion.is-active em,
.alphea-search-suggestion:hover em {
    color: var(--alphea-primary);
}

.alphea-search-no-result {
    display: grid;
    justify-items: center;
    gap: 6px;
    padding: 30px 22px;
    text-align: center;
}

.alphea-search-no-result[hidden] {
    display: none !important;
}

.alphea-search-no-result strong {
    color: var(--alphea-dark);
    font-size: 14px;
}

.alphea-search-no-result span {
    max-width: 380px;
    color: var(--alphea-muted);
    font-size: 12px;
    line-height: 1.5;
}

.alphea-search-panel-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 10px 14px;
    border-top: 1px solid #edf1f5;
    background: #fbfcfe;
    color: #7c8ba1;
    font-size: 10px;
    font-weight: 750;
}

.alphea-search-panel-footer span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.alphea-topbar-right {
    min-width: max-content;
}

.alphea-icon-button {
    position: relative;
    display: inline-grid;
    width: 40px;
    height: 40px;
    padding: 0;
    place-items: center;
    border: 1px solid var(--alphea-border);
    border-radius: 12px !important;
    background: #fff;
    color: var(--alphea-dark);
    cursor: pointer;
}

.alphea-icon-button:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}

.alphea-dot {
    position: absolute;
    top: -5px;
    right: -5px;
    display: grid;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    place-items: center;
    border: 2px solid #fff;
    border-radius: 999px;
    background: #dc2626;
    color: #fff;
    font-size: 9px;
    font-weight: 900;
}

.alphea-user-button {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 42px;
    padding: 4px 10px 4px 5px;
    border: 1px solid var(--alphea-border);
    border-radius: 13px !important;
    background: #fff;
    color: var(--alphea-dark);
    cursor: pointer;
}

.alphea-user-button > div:last-child {
    display: grid;
    gap: 1px;
    text-align: left;
}

.alphea-user-button strong {
    font-size: 12px;
}

.alphea-user-button small {
    color: var(--alphea-muted);
    font-size: 10px;
}

.alphea-avatar {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border-radius: 10px;
    background: linear-gradient(135deg, #1e3a8a, #2563eb);
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    box-shadow: 0 5px 13px rgba(30, 58, 138, 0.22);
}

@media (max-width: 1250px) {
    .alphea-topbar {
        padding-right: 18px;
        padding-left: 18px;
    }

    .alphea-topbar-left {
        min-width: 150px;
    }

    .alphea-topbar-heading span {
        display: none;
    }

    .alphea-topbar-center {
        margin: 0 16px;
    }

    .alphea-user-button > div:last-child {
        display: none;
    }
}

@media (max-width: 980px) {
    .alphea-topbar-left {
        display: none;
    }

    .alphea-topbar-center {
        margin-left: 0;
    }
}

@media (max-width: 720px) {
    .alphea-topbar {
        height: 66px;
        padding: 0 12px;
    }

    .alphea-topbar-center {
        min-width: 0;
        margin-right: 10px;
    }

    .alphea-topbar-right .alphea-icon-button,
    .alphea-topbar-right .alphea-user-button,
    .alphea-topbar-right .alphea-btn {
        display: none;
    }

    .alphea-search-shortcut {
        display: none;
    }

    .alphea-search-panel {
        position: fixed;
        top: 72px;
        right: 10px;
        left: 10px;
        max-height: calc(100vh - 84px);
    }

    .alphea-search-panel-footer {
        display: none;
    }
}

/* ==========================================================
   CORRECTIF BARRE DE RECHERCHE TOPBAR
========================================================== */

.alphea-topbar {
    gap: 22px;
}

.alphea-topbar-center {
    flex: 1 1 620px;
    max-width: 640px;
    min-width: 320px;
    margin: 0 auto;
}

.alphea-global-search {
    width: 100%;
}

.alphea-global-search-form {
    position: relative;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    width: 100%;
    height: 46px;
    margin: 0;
    padding: 0 76px 0 44px;
    border: 1px solid #d8e0ea;
    border-radius: 16px;
    background: #f8fafc;
    box-shadow: none;
    overflow: hidden;
}

.alphea-global-search-form:focus-within {
    border-color: #2563eb;
    background: #ffffff;
    box-shadow:
        0 0 0 3px rgba(37, 99, 235, 0.10),
        0 8px 24px rgba(15, 23, 42, 0.07);
}

.alphea-global-search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    width: 20px;
    height: 20px;
    display: grid;
    place-items: center;
    transform: translateY(-50%);
    color: #475569;
    font-size: 19px;
    line-height: 1;
    pointer-events: none;
}

.alphea-search {
    display: block !important;
    flex: 1 1 auto !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 44px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    outline: none !important;
    color: #0f172a;
    font-size: 15px;
    font-weight: 600;
    line-height: 44px;
}

.alphea-search::placeholder {
    color: #7c8ba1;
    opacity: 1;
}

.alphea-search-shortcut {
    position: absolute !important;
    top: 50% !important;
    right: 11px !important;
    bottom: auto !important;
    left: auto !important;
    z-index: 2;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: auto !important;
    min-width: 54px;
    height: 26px !important;
    margin: 0 !important;
    padding: 0 9px !important;
    transform: translateY(-50%);
    border: 1px solid #cbd5e1 !important;
    border-radius: 7px !important;
    background: #ffffff !important;
    color: #475569 !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
    font-size: 11px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
}

.alphea-search-shortcut:hover {
    border-color: #94a3b8 !important;
    color: #1d4ed8 !important;
    background: #ffffff !important;
}

.alphea-topbar-right {
    flex: 0 0 auto;
}

@media (max-width: 1200px) {
    .alphea-topbar-center {
        max-width: 520px;
        min-width: 260px;
    }
}

@media (max-width: 900px) {
    .alphea-topbar-center {
        max-width: none;
        min-width: 0;
        margin: 0;
    }

    .alphea-global-search-form {
        padding-right: 46px;
    }

    .alphea-search-shortcut {
        min-width: 30px;
        width: 30px !important;
        padding: 0 !important;
        font-size: 0 !important;
    }

    .alphea-search-shortcut::after {
        content: "⌘";
        font-size: 13px;
    }
}
