/* =========================================================
   BOOKKEEPING SIMULATOR — DASHBOARD
   ========================================================= */


.dashboard-header-spacer {
    flex: 1;
}


/* ---------------------------------------------------------
   ACTIVE SIDEBAR ITEM
   --------------------------------------------------------- */

.app-sidebar nav a.nav-active {
    background: #e8f2fb;
    color: #1d5f96;
    font-weight: 700;
    border-left: 3px solid #2f6fad;
}


/* ---------------------------------------------------------
   MAIN DASHBOARD AREA
   --------------------------------------------------------- */

.dashboard-main {
    margin-left: 246px;
    padding: 94px 34px 45px;

    min-height: 100vh;

    background: #f4f6f8;
}


.dashboard-breadcrumb {
    margin-bottom: 18px;

    color: #6c7885;
    font-size: 12px;
}


/* ---------------------------------------------------------
   WELCOME AREA
   --------------------------------------------------------- */

.dashboard-welcome {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;

    margin-bottom: 26px;
}


.dashboard-eyebrow {
    margin: 0 0 7px;

    color: #6c7885;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.09em;
}


.dashboard-welcome h1 {
    margin: 0 0 7px;

    color: #183b56;
    font-size: 28px;
    line-height: 1.2;
}


.dashboard-welcome p:not(.dashboard-eyebrow) {
    margin: 0;

    color: #637381;
    font-size: 13px;
}


.dashboard-primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 42px;
    padding: 0 19px;

    background: #2f6fad;
    border: 1px solid #2f6fad;
    border-radius: 5px;

    color: white;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;

    white-space: nowrap;
}


.dashboard-primary-button:hover {
    background: #275f95;
}


/* ---------------------------------------------------------
   METRICS
   --------------------------------------------------------- */

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

    margin-bottom: 20px;
}


.dashboard-metric-card {
    min-width: 0;
    padding: 20px 21px;

    background: white;
    border: 1px solid #dfe4e8;
    border-radius: 7px;

    box-shadow: 0 1px 2px rgba(20, 40, 60, 0.04);
}


.dashboard-metric-card > span {
    display: block;

    margin-bottom: 10px;

    color: #6c7885;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.06em;
}


.dashboard-metric-card > strong {
    display: block;

    margin-bottom: 6px;

    color: #183b56;
    font-size: 29px;
    line-height: 1;
}


.dashboard-metric-card > small {
    color: #7b8793;
    font-size: 10px;
}


/* ---------------------------------------------------------
   DASHBOARD CARDS
   --------------------------------------------------------- */

.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
    gap: 20px;

    margin-bottom: 20px;
}


.dashboard-card {
    background: white;
    border: 1px solid #dfe4e8;
    border-radius: 7px;

    box-shadow: 0 1px 2px rgba(20, 40, 60, 0.04);
}


.dashboard-card-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 19px 21px;

    border-bottom: 1px solid #e5e9ed;
}


.dashboard-card-heading h2 {
    margin: 0 0 4px;

    color: #183b56;
    font-size: 16px;
}


.dashboard-card-heading p {
    margin: 0;

    color: #7b8793;
    font-size: 10px;
}


/* ---------------------------------------------------------
   RECENT WORKDAYS TABLE
   --------------------------------------------------------- */

.dashboard-table-wrapper {
    overflow-x: auto;
}


.dashboard-table {
    width: 100%;
    border-collapse: collapse;

    font-size: 11px;
}


.dashboard-table th {
    padding: 11px 15px;

    background: #f8fafb;
    border-bottom: 1px solid #e5e9ed;

    color: #687684;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-align: left;
    white-space: nowrap;
}


.dashboard-table td {
    padding: 14px 15px;

    border-bottom: 1px solid #edf0f2;

    color: #34495a;
}


.dashboard-table tbody tr:last-child td {
    border-bottom: 0;
}


.dashboard-table tbody tr:hover {
    background: #fbfcfd;
}


.dashboard-empty {
    padding: 30px !important;

    color: #7b8793 !important;
    text-align: center;
}


.status-complete {
    display: inline-block;

    padding: 4px 8px;

    background: #edf8ef;
    border-radius: 12px;

    color: #347a43;
    font-size: 9px;
    font-weight: 800;
}


/* ---------------------------------------------------------
   LEARNING PROGRESS
   --------------------------------------------------------- */

.learning-card-body {
    padding: 26px 23px 28px;
}


.learning-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 38px;
    height: 38px;

    margin-bottom: 15px;

    background: #edf8ef;
    border-radius: 50%;

    color: #347a43;
    font-size: 18px;
    font-weight: 800;
}


.learning-card-body h3 {
    margin: 0 0 8px;

    color: #183b56;
    font-size: 14px;
}


.learning-card-body p {
    margin: 0;

    color: #637381;
    font-size: 11px;
    line-height: 1.7;
}


/* ---------------------------------------------------------
   COMPANY / LEVEL CARD
   --------------------------------------------------------- */

.dashboard-next {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    padding: 21px 23px;
}


.dashboard-next h2 {
    margin: 0 0 5px;

    color: #183b56;
    font-size: 16px;
}


.dashboard-next p:not(.dashboard-eyebrow) {
    margin: 0;

    color: #6c7885;
    font-size: 11px;
}


.dashboard-company-badge {
    padding: 7px 12px;

    background: #e8f2fb;
    border-radius: 14px;

    color: #2f6fad;
    font-size: 10px;
    font-weight: 800;
}


/* ---------------------------------------------------------
   RESPONSIVE
   --------------------------------------------------------- */

@media (max-width: 1100px) {

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


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


@media (max-width: 760px) {

    .dashboard-main {
        margin-left: 0;
        padding: 88px 18px 35px;
    }


    .dashboard-welcome {
        align-items: flex-start;
        flex-direction: column;
    }


    .dashboard-metrics {
        grid-template-columns: 1fr;
    }


    .dashboard-next {
        align-items: flex-start;
        flex-direction: column;
    }
}


/* =========================================================
   BOOKKEEPING GLOSSARY
   ========================================================= */

.glossary-main {
    margin-left: 246px;
    padding: 94px 34px 45px;
    min-height: 100vh;
    background: #f4f6f8;
}


/* ---------------------------------------------------------
   BREADCRUMB + HEADING
   --------------------------------------------------------- */

.glossary-breadcrumb {
    margin-bottom: 18px;
    color: #6c7885;
    font-size: 12px;
}


.glossary-heading {
    margin-bottom: 22px;
}


.glossary-eyebrow {
    margin: 0 0 7px;
    color: #6c7885;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.09em;
}


.glossary-heading h1 {
    margin: 0 0 7px;
    color: #183b56;
    font-size: 28px;
    line-height: 1.2;
}


.glossary-heading > p:not(.glossary-eyebrow) {
    margin: 0;
    color: #637381;
    font-size: 13px;
}


/* ---------------------------------------------------------
   SEARCH + FILTERS
   --------------------------------------------------------- */

.glossary-tools {
    margin-bottom: 20px;
    padding: 20px 22px;

    background: white;
    border: 1px solid #dfe4e8;
    border-radius: 7px;

    box-shadow: 0 1px 2px rgba(20, 40, 60, 0.04);
}


.glossary-search {
    display: block;
    margin-bottom: 16px;
}


.glossary-search > span {
    display: block;
    margin-bottom: 7px;

    color: #34495a;
    font-size: 11px;
    font-weight: 700;
}


.glossary-search input {
    width: 100%;
    max-width: 620px;
    min-height: 40px;
    padding: 0 13px;

    background: white;
    border: 1px solid #cfd8df;
    border-radius: 5px;

    color: #263f50;
    font: inherit;
    font-size: 12px;

    outline: none;
}


.glossary-search input:focus {
    border-color: #2f6fad;
    box-shadow: 0 0 0 3px rgba(47, 111, 173, 0.11);
}


.glossary-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}


.glossary-filter {
    min-height: 32px;
    padding: 0 13px;

    background: white;
    border: 1px solid #ccd6dd;
    border-radius: 16px;

    color: #526675;
    font-family: inherit;
    font-size: 10px;
    font-weight: 700;

    cursor: pointer;
}


.glossary-filter:hover {
    background: #f5f8fa;
}


.glossary-filter.active {
    background: #2f6fad;
    border-color: #2f6fad;
    color: white;
}


/* ---------------------------------------------------------
   RESULTS PANEL
   --------------------------------------------------------- */

.glossary-results {
    background: white;
    border: 1px solid #dfe4e8;
    border-radius: 7px;

    box-shadow: 0 1px 2px rgba(20, 40, 60, 0.04);
}


.glossary-results-header {
    padding: 18px 22px;

    border-bottom: 1px solid #e5e9ed;
}


.glossary-results-header h2 {
    margin: 0 0 4px;

    color: #183b56;
    font-size: 16px;
}


.glossary-results-header p {
    margin: 0;

    color: #7b8793;
    font-size: 10px;
}


/* ---------------------------------------------------------
   TERM CARDS
   --------------------------------------------------------- */

.glossary-list {
    padding: 0 22px;
}


.glossary-term {
    padding: 22px 0;

    border-bottom: 1px solid #edf0f2;
}


.glossary-term:last-child {
    border-bottom: 0;
}


.glossary-term-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;

    margin-bottom: 11px;
}


.glossary-term-heading h3 {
    margin: 0 0 6px;

    color: #183b56;
    font-size: 15px;
}


.glossary-type {
    display: inline-block;
    padding: 4px 8px;

    background: #e8f2fb;
    border-radius: 12px;

    color: #2f6fad;
    font-size: 9px;
    font-weight: 800;
}


.glossary-definition {
    max-width: 900px;
    margin: 0 0 15px;

    color: #455d6d;
    font-size: 12px;
    line-height: 1.65;
}


/* ---------------------------------------------------------
   GREENWAY EXAMPLE + ACCOUNTING EFFECT
   --------------------------------------------------------- */

.glossary-example,
.glossary-books {
    max-width: 900px;
    padding: 12px 14px;

    border-radius: 5px;
}


.glossary-example {
    margin-bottom: 8px;

    background: #f6f9fb;
    border-left: 3px solid #2f6fad;
}


.glossary-books {
    background: #f8faf8;
    border-left: 3px solid #6b9d70;
}


.glossary-example strong,
.glossary-books strong {
    display: block;
    margin-bottom: 4px;

    color: #34495a;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}


.glossary-example p,
.glossary-books p {
    margin: 0;

    color: #526675;
    font-size: 11px;
    line-height: 1.6;
}


/* ---------------------------------------------------------
   EMPTY SEARCH RESULT
   --------------------------------------------------------- */

.glossary-empty {
    padding: 50px 25px;

    text-align: center;
}


.glossary-empty strong {
    display: block;
    margin-bottom: 7px;

    color: #183b56;
    font-size: 14px;
}


.glossary-empty p {
    margin: 0;

    color: #7b8793;
    font-size: 11px;
}


/* ---------------------------------------------------------
   RESPONSIVE
   --------------------------------------------------------- */

@media (max-width: 760px) {

    .glossary-main {
        margin-left: 0;
        padding: 88px 18px 35px;
    }


    .glossary-tools,
    .glossary-results-header {
        padding-left: 17px;
        padding-right: 17px;
    }


    .glossary-list {
        padding: 0 17px;
    }


    .glossary-search input {
        max-width: none;
    }
}
