/* TAMORA ENTERPRISE UI V2 */

:root {
    --ev2-navy: #091a29;
    --ev2-surface: #102536;
    --ev2-border: #294253;
    --ev2-green: #16a34a;
    --ev2-blue: #2563eb;
    --ev2-muted: #94a3b8;
}

.ev2-overview {
    color: #f1f5f9;
}

.ev2-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 24px 0;
}

.ev2-heading h1 {
    color: #f1f5f9 !important;
    font-size: clamp(25px, 3vw, 36px);
    font-weight: 750;
    letter-spacing: -.8px;
    margin: 8px 0;
}

.ev2-heading p {
    color: #a8bdcf;
}

.ev2-eyebrow {
    color: #86efac;
    font-size: 11px;
    letter-spacing: 1.5px;
    font-weight: 700;
}

.ev2-refresh {
    color: #dbeafe !important;
    background: #173448;
    border: 1px solid #294253;
    border-radius: 8px;
    padding: 10px 16px;
    text-decoration: none;
    white-space: nowrap;
}

.ev2-metrics {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 16px;
}

.ev2-metric {
    padding: 22px;
    background: var(--ev2-surface);
    border: 1px solid var(--ev2-border);
    border-radius: 12px;
}

.ev2-metric span {
    display: block;
    color: #a8bdcf;
    font-size: 13px;
    margin-bottom: 12px;
}

.ev2-metric strong {
    font-size: 32px;
    font-weight: 750;
    font-variant-numeric: tabular-nums;
}

.ev2-green { color: #86efac; }
.ev2-blue { color: #93c5fd; }
.ev2-red { color: #fca5a5; }
.ev2-amber { color: #fcd34d; }
.ev2-neutral { color: #f1f5f9; }

.ev2-panels {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 20px;
    margin-top: 24px;
}

.ev2-panel {
    background: #fff;
    color: #17253b;
    border-radius: 12px;
    padding: 24px;
    min-width: 0;
}

.ev2-panel h4 {
    color: #17253b !important;
    font-size: 19px;
    font-weight: 700;
}

.ev2-panel p,
.ev2-panel small {
    color: #64748b !important;
    font-size: 12px;
}

.ev2-ratio {
    font-size: 42px;
    font-weight: 750;
    color: #15803d;
    margin: 16px 0;
}

.ev2-progress {
    height: 9px;
    border-radius: 8px;
    background: #fee2e2;
    overflow: hidden;
    margin: 10px 0 18px;
}

.ev2-progress > div {
    background: #16a34a;
    height: 100%;
    border-radius: 8px;
}

.ev2-issue-progress {
    background: #e2e8f0;
    height: 6px;
}

.ev2-issue-progress > div {
    background: #2563eb;
}

.ev2-statline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #e2e8f0;
    font-size: 13px;
}

.ev2-warning {
    color: #fde68a;
    background: #3b3020;
    border: 1px solid #715b2c;
    padding: 14px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.ev2-empty {
    text-align: center;
    color: #64748b;
    padding: 36px 12px;
}

.ev2-footer {
    color: #94a3b8;
    font-size: 12px;
    margin-top: 24px;
}

/* Shared table foundation */

body.app-shell main .table {
    font-size: 13px;
}

body.app-shell main .table thead th {
    background: #f1f5f9 !important;
    color: #334155 !important;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: .25px;
}

body.app-shell main .table td {
    vertical-align: middle;
}

body.app-shell main .table-responsive {
    overflow-x: auto;
}

/* Notification Center */

.ev2-notification {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.ev2-bell {
    position: relative;
    background: transparent;
    border: 0;
    color: inherit;
    padding: 9px;
    border-radius: 8px;
    cursor: pointer;
}

.ev2-bell:hover {
    background: rgba(148,163,184,.15);
}

.ev2-count {
    position: absolute;
    top: 0;
    right: 0;
    background: #dc2626;
    color: #fff;
    min-width: 16px;
    padding: 2px 4px;
    border-radius: 20px;
    font-size: 10px;
    line-height: 1.2;
}

.ev2-dropdown {
    position: fixed;
    z-index: 1050;
    top: 65px;
    right: 18px;
    width: min(360px, calc(100vw - 24px));
    background: #102536;
    color: #f1f5f9;
    border: 1px solid #294253;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0,0,0,.24);
    overflow: hidden;
}

.ev2-dropdown[hidden],
.ev2-count[hidden] {
    display: none !important;
}

.ev2-dropdown-head {
    padding: 18px;
    border-bottom: 1px solid #294253;
}

.ev2-dropdown-head strong {
    display: block;
    font-size: 16px;
}

.ev2-dropdown-head small {
    color: #a8bdcf;
}

.ev2-notification-list {
    max-height: 420px;
    overflow-y: auto;
}

.ev2-notification-item {
    display: block;
    padding: 16px 18px;
    border-bottom: 1px solid #294253;
    color: #f1f5f9 !important;
    text-decoration: none;
}

.ev2-notification-item:hover {
    background: #193548;
}

.ev2-notification-item strong,
.ev2-notification-item small {
    display: block;
}

.ev2-notification-item small {
    color: #a8bdcf;
    margin-top: 5px;
    font-size: 11px;
}

.ev2-notification-state {
    padding: 24px;
    text-align: center;
    color: #a8bdcf;
    font-size: 13px;
}

@media(max-width:1100px) {
    .ev2-metrics {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }
}

@media(max-width:768px) {
    .ev2-panels {
        grid-template-columns: 1fr;
    }

    .ev2-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .ev2-metric {
        padding: 16px;
    }

    .ev2-metric strong {
        font-size: 27px;
    }
}

@media(prefers-reduced-motion:reduce) {
    .ev2-overview *,
    .ev2-notification * {
        animation: none !important;
        transition: none !important;
    }
}
