:root {
    --navy: #061d44;
    --blue: #1769f5;
    --green: #18a55a;
    --amber: #ef9700;
    --red: #ee5557;
    --bg: #f7f9fd;
    --ink: #102044;
    --muted: #66738b;
    --line: #e5eaf2;
    font-family: "Nunito Sans", sans-serif;
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink)
}

aside.sidebar a {
    font-weight: 300;
}

button,
input,
select,
textarea {
    font: inherit
}

.hidden {
    display: none !important
}

.login-view {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 48% 52%;
    background: #fff
}

.login-brand {
    padding: 0;
    background: #011b46;
    color: #fff;
    display: flex;
    flex-direction: column
}

.brand {
    font-size: 24px;
    font-weight: 750;
    color: #fff;
    text-decoration: none;
    display: flex;
    gap: 10px;
    align-items: center
}

.brand i {
    color: #2378ff;
    font-size: 32px;
    font-style: normal
}

.login-brand img {
    max-width: 100%;
    max-height: 100vh;
    object-fit: contain;
    margin: 0 auto;
}

aside.sidebar img {
    max-width: 150px;
}

.login-art {
    height: 45vh;
    display: grid;
    place-items: center;
    font-size: 150px;
    color: #2178ff;
    position: relative
}

.login-art span {
    position: absolute;
    font-size: 70px;
    color: #8bb6ff
}

.login-art span:first-child {
    left: 15%;
    top: 38%
}

.login-art span:last-child {
    right: 14%;
    bottom: 18%
}

.login-brand h1 {
    font-size: 42px;
    margin: 0
}

.login-brand p {
    font-size: 18px;
    color: #d3e0ff
}

.login-form {
    width: min(100%, 510px);
    margin: auto;
    padding: 40px;
    display: grid;
    gap: 22px
}

.login-form h1 {
    font-size: 42px;
    margin: 0
}

.login-form p {
    color: var(--muted);
    margin: 8px 0
}

.login-form label {
    display: grid;
    gap: 9px;
    font-weight: 650
}

.login-form input,
.field input,
.field select,
.field textarea {
    padding: 14px;
    border: 1px solid #cbd5e5;
    border-radius: 8px;
    background: #fff;
    color: var(--ink)
}

.login-options {
    display: flex;
    justify-content: space-between;
    color: var(--navy);
    font-size: 14px
}

.check {
    display: flex !important;
    gap: 7px !important;
    align-items: center
}

.check input {
    padding: 0 !important
}

.primary {
    background: var(--navy);
    color: #fff;
    border: 0;
    border-radius: 8px;
    padding: 14px;
    font-weight: 750;
    cursor: pointer;
}

.logout {
    cursor: pointer;
}

.help {
    text-align: center;
    font-size: 14px
}

.help a,
a {
    color: var(--navy);
    text-decoration: none
}

.app {
    display: flex;
    min-height: 100vh;
    align-items: flex-start;
}

.sidebar {
    width: 250px;
    background: var(--navy);
    padding: 28px 14px;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    min-height: 100vh;
    overflow-y: auto;
}

.sidebar nav {
    display: grid;
    gap: 5px;
    margin-top: 36px
}

.nav,
.logout {
    border: 0;
    background: transparent;
    color: #dce7fa;
    padding: 13px 15px;
    border-radius: 9px;
    text-align: left;
    font-size: 15px;
    font-weight: 650
}
aside.sidebar details summary{
    border-radius: 9px;
}

.nav.active,
.nav:hover, aside.sidebar details summary:hover,  aside.sidebar details.active-parent summary {
    background: #1760df;
    color: #fff
}

.logout,
.logout-form {
    margin-top: auto
}

main {
    width: 100%;
    padding: 0;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    position: sticky;
    top: 0;
    padding: 20px 30px;
    z-index: 9;
}

.topbar h1 {
    margin: 0;
    font-size: 30px
}

.eyebrow {
    font-size: 11px;
    color: var(--blue);
    letter-spacing: 1px;
    font-weight: 800;
    margin: 0 0 4px
}

.top-actions {
    display: flex;
    align-items: center;
    gap: 12px
}

.date {
    padding: 10px;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 8px;
    font-size: 14px;
}

.bell {
    border: 0;
    background: transparent;
    font-size: 20px;
    position: relative
}

.bell b {
    position: absolute;
    right: -3px;
    top: -7px;
    background: var(--red);
    color: #fff;
    width: 17px;
    border-radius: 50%;
    font-size: 10px;
    height: 17px;
    line-height: 17px;
    ;
}

.avatar {
    display: grid;
    place-items: center;
    background: #dbe8ff;
    color: var(--blue);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-weight: 800
}

.team-box td img {
    display: inline-block;
    vertical-align: middle;
    margin-right: 8px;
}

.profile {
    display: grid;
    font-size: 12px;
    text-align: left;
}

.profile small {
    color: var(--muted)
}

.metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 17px;
    margin-bottom: 17px
}

.card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 3px 8px #10204408
}

.metric {
    border-left: 4px solid var(--blue)
}

.metric.green {
    border-color: var(--green)
}

.metric.amber {
    border-color: var(--amber)
}

.metric.red {
    border-color: var(--red)
}

.metric p {
    margin: 0;
    color: var(--muted);
    font-weight: 650
}

.metric strong {
    font-size: 30px;
    display: block;
    margin-top: 9px
}

.grid {
    display: grid;
    grid-template-columns: 1.7fr 1fr;
    gap: 17px
}

.panel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px
}

.panel-head h2 {
    font-size: 17px;
    margin: 0
}

.panel-head p {
    font-size: 13px;
    color: var(--muted);
    margin: 5px 0
}

.chart {
    height: 245px;
    background: repeating-linear-gradient(to bottom, #fff 0, #fff 48px, #edf1f7 49px);
    display: flex;
    align-items: end;
    justify-content: space-around;
    padding: 25px
}

.bar {
    width: 28px;
    background: var(--blue);
    border-radius: 5px 5px 0 0
}

.donut {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    margin: 20px auto;
    background: conic-gradient(var(--green) 0 41%, var(--amber) 41% 64%, var(--red) 64%);
    display: grid;
    place-items: center
}

.donut div {
    width: 105px;
    height: 105px;
    background: #fff;
    border-radius: 50%;
    display: grid;
    place-content: center;
    text-align: center
}

.donut small {
    color: var(--muted)
}

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

th,
td {
    text-align: left;
    padding: 12px 8px;
    border-bottom: 1px solid var(--line);
    font-size: 13px
}

th {
    color: var(--muted);
    font-size: 11px;
    text-transform: uppercase
}

.badge {
    padding: 5px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700
}

.blue {
    color: var(--blue);
    background: #edf4ff
}

.green-b {
    color: #14854a;
    background: #eaf8ef
}

.amber-b {
    color: #bd7200;
    background: #fff4e0
}
aside.sidebar details * {
    color: #dce7fa;
}
aside.sidebar details ul {
    padding-left: 35px;
}
aside.sidebar details ul li a {
    padding: 0;
    display: block;
}
aside.sidebar details summary {
    cursor: pointer;
    padding: 13px 15px;
}
aside.sidebar details ul li a.active {
    font-weight: bold;
    border-bottom: 1px solid;
    display: inline-block;
}

aside.sidebar details ul li {
    padding: 7px 0;
}

aside.sidebar > * {
    margin: 5px 0;
}
tr.recent-lead-row td a {
    font-weight: bold;
}

.red-b {
    color: #c83e40;
    background: #ffeff0
}

.page-actions {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0px;
    align-items: end;
}

.sub {
    color: var(--muted);
    margin: 5px 0
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 17px
}

.form-card {
    display: grid;
    gap: 16px
}

.form-card h2 {
    font-size: 18px;
    margin: 0
}

.field {
    display: grid;
    gap: 7px;
    font-size: 13px;
    font-weight: 650
}

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

.form-actions {
    grid-column: 1/-1;
    text-align: right
}

.outline {
    background: #fff;
    border: 1px solid var(--line);
    padding: 12px 18px;
    border-radius: 8px;
    margin-right: 8px
}

.team-layout,
.source-layout {
    display: grid;
    grid-template-columns: 1.65fr .85fr;
    gap: 17px
}

.tabs {
    display: flex;
    gap: 22px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 10px;
    margin-bottom: 10px
}

.tabs b {
    color: var(--blue)
}

.rank {
    display: grid;
    gap: 12px
}

.rank div {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
    padding-bottom: 10px
}

.permission {
    display: grid;
    grid-template-columns: 2fr repeat(5, 1fr);
    gap: 1px
}

.permission div {
    padding: 12px;
    background: #f8faff;
    border-bottom: 1px solid var(--line);
    font-size: 13px
}

.permission .tick {
    color: var(--blue);
    font-size: 18px;
    text-align: center
}

.mobile-title {
    display: none
}

button.date {
    display: flex;
    gap: 8px;
    align-items: center;
}

button.date img {
    width: 20px;
    height: 20px;
}

@media(min-width:901px) {
    .menuBAr,
    span.closeMenu .close, span.menuBAr img.companylogo  {
        display: none;
    }
    span.closeMenu {
        margin-bottom: 20px;
    }
    
}

@media(max-width:900px) {
    span.menuBAr {
        display: flex;
        gap: 10px;
        align-items: flex-start;
    }

    span.menuBAr img.companylogo {
        height: 30px;
        display: block;
    }
    .hideOnMobile {
        display: none;
    }
    aside.sidebar.active {
        left: 0;
    }
    span.closeMenu {
        position: absolute;
        top: 10px;
        left: 10px;
        display: flex;
        gap: 20px;
        align-items: center;
    }
    span.closeMenu img.companylogo {
        height: 40px;
    }
    .sidebar {
        width: 250px;
        background: var(--navy);
        padding: 70px 0 28px;
        display: flex;
        flex-direction: column;
        flex-shrink: 0;
        position: fixed;
        left: -100%;
        transition: all 0.3s ease-in-out;
        z-index: 99;
    }
    .brand {
        padding: 0 14px;
    }
    .nav {
        border-radius: 0;
    }
    .donut {
        margin: 20px 0;
    }
    .login-view {
        grid-template-columns: 1fr
    }
    section.kpi-grid {
        display: flex;
        overflow: auto;
        width: auto;
        padding: 14px;
    }
    section.dashboard-layout {
        padding: 0 14px 14px;
    }
    header.topbar {
        flex-direction: column-reverse;
        row-gap: 30px;
        padding: 14px;
    }
    section.kpi-grid article.card.kpi {
        width: 100%;
        min-width: 40vw;
    }
    .metrics {
        grid-template-columns: repeat(2, 1fr)
    }
    .grid,
    .team-layout,
    .source-layout,
    .form-grid {
        grid-template-columns: 1fr
    }
    .topbar h1 {
        font-size: 24px
    }
    .date span {
        display: none
    }
    .top-actions {
        gap: 7px
    }
    .card {
        overflow: auto
    }
    .permission {
        min-width: 620px
    }
    .top-actions {
        margin-top: 0px;
        width: 100%;
        justify-content: space-between;
    }
    button.date {
        font-size: 12px;
    }
    .login-brand img {
        max-width: 60%;
    }
}

@media(max-width:530px) {
    .metrics {
        grid-template-columns: 1fr 1fr
    }
    .metric {
        padding: 14px
    }
    .metric strong {
        font-size: 25px
    }
    .topbar {
        align-items: flex-start
    }
    table {
        min-width: 620px
    }
    .login-form {
        padding: 24px
    }
    .login-form h1 {
        font-size: 34px
    }
}

.page-header {
    padding: 0;
}

.page-toolbar {
    padding: 20px 30px;
}

div#employeeTable {
    padding: 0 30px;
    margin: 0px 0;
}
.mb-4{
    margin-bottom: 20px;
}
div#leadPriorityTable, #leadStatusTable , #leadSourceTable, div#departmentTable, div#roleTable, div#followUpModeTable, div#followUpStatusTable {
    margin: 0px 30px;
}

.lead-page-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin: 20px 0 0;
    padding: 0 30px;
}
div#leadServiceTable {
    padding: 0 30px;
}

@media (max-width: 700px) {

    .lead-page-actions {
        margin-top: 0;
        margin-bottom: 20px;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

}
.container {
    padding: 20px 30px;
}

