:root {
    --navy: #062b49;
    --navy2: #0b3b60;
    --blue: #0878f9;
    --text: #142d47;
    --muted: #667b91;
    --line: #d9e4ee;
    --bg: #f3f7fb;
    --green: #08a958;
    --violet: #7442ea;
    --orange: #ff7a09;
}
* {
    box-sizing: border-box;
}
body {
    margin: 0;
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 13px;
}
.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 220px;
    background: linear-gradient(180deg, #052846, #0b3a5e);
    color: #fff;
    display: flex;
    flex-direction: column;
    z-index: 2;
}
.brand {
    height: 112px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid #ffffff18;
}
.brand img {
    width: 88px;
    max-height: 48px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}
.brand span {
    font-size: 10px;
    letter-spacing: 1.7px;
    color: #8bd1ff;
    margin-top: 7px;
}
.sidebar nav {
    padding: 20px 12px;
    flex: 1;
}
.sidebar nav small {
    display: block;
    font-size: 9px;
    color: #88a8c1;
    margin: 12px 9px 7px;
}
.sidebar nav a {
    height: 42px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 13px;
    border-radius: 7px;
    color: #e9f4fc;
    text-decoration: none;
    font-weight: 650;
    margin-bottom: 3px;
}
.sidebar nav a span {
    font-size: 18px;
    width: 20px;
    text-align: center;
    color: #b7d7ed;
}
.sidebar nav a.active {
    background: linear-gradient(90deg, #0878f9, #0866d1);
    box-shadow: 0 5px 16px #001a3180;
}
.sidebar nav a.active span {
    color: #fff;
}
.profile {
    border-top: 1px solid #ffffff24;
    padding: 17px;
    display: flex;
    gap: 10px;
    align-items: center;
}
.avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #edf5fb;
    color: var(--navy);
    font-weight: 800;
}
.profile div:nth-child(2) {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.profile b {
    font-size: 11px;
}
.profile span {
    font-size: 9px;
    color: #a9c4d8;
}
.profile i {
    margin-left: auto;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #1fd477;
}
main {
    margin-left: 220px;
    min-height: 100vh;
    padding-bottom: 36px;
}
header {
    height: 72px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    padding: 0 20px;
    gap: 16px;
    position: sticky;
    top: 0;
    z-index: 1;
}
.menu {
    border: 0;
    background: transparent;
    font-size: 19px;
    color: var(--text);
}
header > div:nth-child(2) {
    display: flex;
    gap: 12px;
    align-items: baseline;
}
header > div:nth-child(2) b {
    font-size: 18px;
}
header > div:nth-child(2) span {
    color: var(--muted);
}
.header-actions {
    margin-left: auto;
    display: flex;
    gap: 8px;
    align-items: center;
}
.header-actions button {
    height: 42px;
    min-width: 42px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--text);
    position: relative;
}
.header-actions em {
    position: absolute;
    right: -5px;
    top: -7px;
    background: #e63746;
    color: #fff;
    border-radius: 12px;
    font-style: normal;
    font-size: 9px;
    padding: 3px 6px;
}
.header-actions .company {
    width: 215px;
    text-align: left;
    padding: 5px 13px;
    font-size: 9px;
    color: var(--muted);
}
.company strong {
    display: block;
    color: var(--text);
    font-size: 11px;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.content {
    padding: 23px 26px;
}
.welcome {
    display: flex;
    justify-content: space-between;
    align-items: end;
}
.eyebrow {
    font-size: 9px;
    color: var(--blue);
    font-weight: 800;
    letter-spacing: 1.2px;
}
.welcome h1 {
    font-size: 25px;
    margin: 5px 0 4px;
}
.welcome p,
.section-title p,
.panel-head p {
    margin: 0;
    color: var(--muted);
}
.status {
    background: #e7f8ef;
    color: #078543;
    padding: 9px 13px;
    border-radius: 7px;
    font-weight: 650;
}
.status i {
    display: inline-block;
    width: 7px;
    height: 7px;
    background: #16be6a;
    border-radius: 50%;
    margin-right: 6px;
}
.metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin: 20px 0 25px;
}
.metrics article {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 15px;
    display: flex;
    gap: 13px;
    box-shadow: 0 2px 5px #0d38550a;
}
.metric-icon {
    width: 42px;
    height: 42px;
    border-radius: 9px;
    display: grid;
    place-items: center;
    font-size: 20px;
    color: #fff;
}
.blue {
    background: #147df3;
}
.green {
    background: #11b564;
}
.violet {
    background: #7546e8;
}
.orange {
    background: #ff7b08;
}
.metrics small {
    color: var(--muted);
    display: block;
}
.metrics strong {
    font-size: 22px;
    line-height: 27px;
}
.metrics p {
    margin: 0;
    font-size: 9px;
    color: #8b9bad;
}
.section-title,
.panel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.section-title h2,
.panel-head h2 {
    font-size: 17px;
    margin: 0 0 3px;
}
.section-title > span {
    color: var(--blue);
    background: #e7f2ff;
    border-radius: 15px;
    padding: 6px 11px;
    font-size: 10px;
    font-weight: 700;
}
.modules {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 12px;
}
.module {
    background: #fff;
    border: 1px solid var(--line);
    border-top: 3px solid var(--blue);
    border-radius: 10px;
    padding: 16px;
    min-height: 312px;
    display: flex;
    flex-direction: column;
    transition: 0.2s;
}
.module:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px #173d5c12;
}
.module.cotej {
    border-top-color: var(--violet);
}
.module.stock {
    border-top-color: var(--green);
}
.module.assets {
    border-top-color: #7f94a7;
}
.module-top {
    display: flex;
    justify-content: space-between;
}
.module-icon {
    width: 42px;
    height: 42px;
    border-radius: 9px;
    background: #e8f3ff;
    color: var(--blue);
    display: grid;
    place-items: center;
    font-size: 22px;
}
.cotej .module-icon {
    color: var(--violet);
    background: #f0ebff;
}
.stock .module-icon {
    color: var(--green);
    background: #e7f8ef;
}
.assets .module-icon {
    color: #72869a;
    background: #edf2f6;
}
.badge {
    align-self: start;
    border-radius: 12px;
    padding: 5px 8px;
    font-size: 9px;
    font-weight: 750;
}
.badge.ready {
    color: #078a46;
    background: #e3f7ec;
}
.badge.migration {
    color: #94600c;
    background: #fff3d9;
}
.badge.future {
    color: #60768a;
    background: #edf2f6;
}
.module h3 {
    font-size: 16px;
    margin: 15px 0 7px;
}
.module p {
    color: var(--muted);
    line-height: 1.5;
    min-height: 58px;
    margin: 0;
}
.module ul {
    list-style: none;
    padding: 8px 0;
    margin: 0 0 13px;
    border-top: 1px solid #edf2f6;
}
.module li {
    font-size: 10px;
    margin-top: 8px;
    color: #486177;
}
.module li:before {
    content: "✓";
    color: var(--green);
    margin-right: 7px;
}
.module button {
    margin-top: auto;
    height: 38px;
    border: 0;
    border-radius: 7px;
    background: var(--navy2);
    color: #fff;
    font-weight: 750;
    text-align: left;
    padding: 0 12px;
}
.module button span {
    float: right;
}
.module button:disabled {
    background: #dce5ec;
    color: #8497a8;
}
.bottom-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 12px;
    margin-top: 20px;
}
.panel {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 17px;
}
.panel-head a {
    font-size: 10px;
    color: var(--blue);
    text-decoration: none;
}
.empty {
    text-align: center;
    padding: 26px;
    color: var(--muted);
}
.empty span {
    display: block;
    font-size: 25px;
    color: #9eb2c3;
}
.empty b {
    display: block;
    color: var(--text);
    margin: 7px;
}
.empty p {
    margin: 0;
    font-size: 10px;
}
.quick > a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text);
    padding: 10px 0;
    border-top: 1px solid #edf2f6;
}
.quick > a:first-of-type {
    margin-top: 10px;
}
.quick > a > span {
    width: 31px;
    height: 31px;
    border-radius: 7px;
    color: #fff;
    display: grid;
    place-items: center;
}
.quick > a > div {
    display: flex;
    flex: 1;
    flex-direction: column;
}
.quick small {
    color: var(--muted);
    font-size: 9px;
}
footer {
    position: absolute;
    left: 220px;
    right: 0;
    height: 36px;
    background: #fff;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: space-around;
    align-items: center;
    color: var(--muted);
    font-size: 9px;
}
.ok {
    color: #07954c;
}
@media (max-width: 1100px) {
    .modules {
        grid-template-columns: repeat(2, 1fr);
    }
    .metrics {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 720px) {
    .sidebar {
        width: 72px;
    }
    .brand span,
    .sidebar nav small,
    .sidebar nav a:not(.active),
    .profile div:nth-child(2) {
        display: none;
    }
    .brand img {
        width: 52px;
    }
    .sidebar nav a.active {
        padding: 0;
        justify-content: center;
    }
    main {
        margin-left: 72px;
    }
    .company {
        display: none !important;
    }
    .modules,
    .metrics,
    .bottom-grid {
        grid-template-columns: 1fr;
    }
    .content {
        padding: 17px;
    }
    .welcome {
        align-items: start;
        gap: 12px;
    }
    .status {
        font-size: 9px;
    }
    footer {
        left: 72px;
    }
}
