/* =========================================================
   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;
    }
}


/* =========================================================
   LEARN — BEGINNER BOOKKEEPING COURSE
   ========================================================= */

.learn-main {
    margin-left: 246px;
    padding: 94px 34px 45px;
    min-height: 100vh;
    background: #f4f6f8;
}


.learn-breadcrumb {
    margin-bottom: 18px;
    color: #6c7885;
    font-size: 12px;
}


/* ---------------------------------------------------------
   PAGE HEADING
   --------------------------------------------------------- */

.learn-heading {
    margin-bottom: 22px;
}


.learn-eyebrow,
.lesson-kicker {
    margin: 0 0 7px;
    color: #6c7885;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.09em;
}


.learn-heading h1 {
    margin: 0 0 7px;
    color: #183b56;
    font-size: 28px;
    line-height: 1.2;
}


.learn-heading > div > p:not(.learn-eyebrow) {
    margin: 0;
    color: #637381;
    font-size: 13px;
}


/* ---------------------------------------------------------
   INTRO CARD
   --------------------------------------------------------- */

.learn-intro-card {
    display: flex;
    align-items: flex-start;
    gap: 15px;

    margin-bottom: 20px;
    padding: 18px 21px;

    background: #eef6fc;
    border: 1px solid #d5e6f3;
    border-radius: 7px;
}


.learn-intro-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;

    width: 34px;
    height: 34px;

    background: #2f6fad;
    border-radius: 50%;

    color: white;
    font-size: 14px;
    font-weight: 800;
}


.learn-intro-card h2 {
    margin: 1px 0 5px;
    color: #183b56;
    font-size: 14px;
}


.learn-intro-card p {
    max-width: 760px;
    margin: 0;

    color: #526675;
    font-size: 11px;
    line-height: 1.6;
}


/* ---------------------------------------------------------
   COURSE CONTAINER
   --------------------------------------------------------- */

.learn-course {
    background: white;
    border: 1px solid #dfe4e8;
    border-radius: 7px;

    box-shadow: 0 1px 2px rgba(20, 40, 60, 0.04);
}


.learn-course-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    padding: 20px 22px;

    border-bottom: 1px solid #e5e9ed;
}


.learn-course-heading h2 {
    margin: 0 0 4px;
    color: #183b56;
    font-size: 17px;
}


.learn-course-heading p:not(.learn-eyebrow) {
    margin: 0;
    color: #7b8793;
    font-size: 10px;
}


.learn-level-badge {
    padding: 6px 11px;

    background: #e8f2fb;
    border-radius: 14px;

    color: #2f6fad;
    font-size: 10px;
    font-weight: 800;
}


/* ---------------------------------------------------------
   LESSON LIST
   --------------------------------------------------------- */

.lesson-list {
    padding: 0 22px;
}


.lesson-card {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) auto;
    align-items: center;
    gap: 17px;

    min-height: 108px;
    padding: 17px 0;

    border-bottom: 1px solid #edf0f2;
}


.lesson-card:last-child {
    border-bottom: 0;
}


.lesson-number {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;

    background: #f1f5f8;
    border: 1px solid #dce3e8;
    border-radius: 50%;

    color: #183b56;
    font-size: 14px;
    font-weight: 800;
}


.lesson-info {
    min-width: 0;
}


.lesson-label {
    display: block;
    margin-bottom: 3px;

    color: #83909b;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.07em;
}


.lesson-info h3 {
    margin: 0 0 5px;

    color: #183b56;
    font-size: 13px;
}


.lesson-info p {
    max-width: 720px;
    margin: 0;

    color: #6c7885;
    font-size: 10px;
    line-height: 1.55;
}


.lesson-action {
    min-width: 105px;
    min-height: 36px;
    padding: 0 13px;

    background: white;
    border: 1px solid #2f6fad;
    border-radius: 5px;

    color: #2f6fad;
    font-family: inherit;
    font-size: 10px;
    font-weight: 700;

    cursor: pointer;
}


.lesson-action:hover {
    background: #f2f7fb;
}


/* ---------------------------------------------------------
   LESSON VIEWER
   --------------------------------------------------------- */

.lesson-viewer {
    max-width: 900px;
    margin: 0 auto;

    background: white;
    border: 1px solid #dfe4e8;
    border-radius: 7px;

    box-shadow: 0 1px 3px rgba(20, 40, 60, 0.06);
}


.lesson-viewer-header {
    padding: 15px 24px;

    border-bottom: 1px solid #e5e9ed;
}


.lesson-back {
    padding: 0;

    background: transparent;
    border: 0;

    color: #2f6fad;
    font-family: inherit;
    font-size: 11px;
    font-weight: 700;

    cursor: pointer;
}


#lesson-content {
    padding: 30px 38px 40px;
}


.lesson-viewer-title {
    margin-bottom: 30px;
    padding-bottom: 22px;

    border-bottom: 1px solid #e5e9ed;
}


.lesson-viewer-title p {
    margin: 0 0 6px;

    color: #7b8793;
    font-size: 10px;
    font-weight: 700;
}


.lesson-viewer-title h1 {
    margin: 0;

    color: #183b56;
    font-size: 26px;
}


/* ---------------------------------------------------------
   LESSON CONTENT
   --------------------------------------------------------- */

.lesson-section {
    margin-bottom: 30px;
}


.lesson-section h2 {
    margin: 0 0 12px;

    color: #183b56;
    font-size: 18px;
}


.lesson-section p {
    margin: 0 0 13px;

    color: #455d6d;
    font-size: 12px;
    line-height: 1.75;
}


.lesson-concept-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;

    margin-top: 15px;
}


.lesson-concept {
    padding: 16px;

    background: #f8fafb;
    border: 1px solid #e3e8ec;
    border-radius: 6px;
}


.lesson-concept strong {
    display: block;
    margin-bottom: 5px;

    color: #183b56;
    font-size: 12px;
}


.lesson-concept span {
    color: #637381;
    font-size: 10px;
    line-height: 1.55;
}


/* ---------------------------------------------------------
   EXAMPLES & CALLOUTS
   --------------------------------------------------------- */

.lesson-example {
    margin: 25px 0 30px;
    padding: 20px 22px;

    background: #f6f9fb;
    border-left: 4px solid #2f6fad;
    border-radius: 4px;
}


.example-label,
.check-label {
    display: block;
    margin-bottom: 7px;

    color: #2f6fad;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.08em;
}


.lesson-example h3 {
    margin: 0 0 10px;

    color: #183b56;
    font-size: 14px;
}


.lesson-example p {
    margin: 0 0 10px;

    color: #526675;
    font-size: 11px;
    line-height: 1.65;
}


.lesson-example p:last-child {
    margin-bottom: 0;
}


.lesson-callout {
    margin: 22px 0 30px;
    padding: 15px 17px;

    background: #fff9e8;
    border: 1px solid #eee1b5;
    border-radius: 5px;

    color: #66592f;
    font-size: 11px;
    line-height: 1.6;
}


/* ---------------------------------------------------------
   ACCOUNTING EQUATION
   --------------------------------------------------------- */

.equation-display {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;

    margin-top: 20px;
    padding: 22px;

    background: #f5f8fa;
    border: 1px solid #dfe5e9;
    border-radius: 6px;
}


.equation-display span {
    padding: 9px 13px;

    background: white;
    border: 1px solid #d8e0e5;
    border-radius: 5px;

    color: #183b56;
    font-size: 13px;
    font-weight: 800;
}


.equation-display b {
    color: #6c7885;
    font-size: 18px;
}


.mini-entry {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;

    margin: 15px 0;
}


.mini-entry span {
    padding: 7px 10px;

    background: white;
    border: 1px solid #dce3e8;
    border-radius: 4px;

    color: #34495a;
    font-size: 10px;
    font-weight: 700;
}


/* ---------------------------------------------------------
   DEALER
   --------------------------------------------------------- */

.dealer-display {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;

    margin: 20px 0 30px;
}


.dealer-side {
    padding: 20px;

    background: #f8fafb;
    border: 1px solid #dfe4e8;
    border-radius: 6px;
}


.dealer-heading {
    display: block;
    margin-bottom: 14px;

    color: #6c7885;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.06em;
}


.dealer-item {
    display: flex;
    align-items: center;
    gap: 10px;

    margin-bottom: 9px;
}


.dealer-item:last-child {
    margin-bottom: 0;
}


.dealer-item strong {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 28px;
    height: 28px;

    background: #e8f2fb;
    border-radius: 50%;

    color: #2f6fad;
    font-size: 12px;
}


.dealer-item span {
    color: #34495a;
    font-size: 11px;
    font-weight: 700;
}


.journal-example {
    margin-top: 15px;

    border: 1px solid #dfe4e8;
    border-radius: 5px;

    overflow: hidden;
}


.journal-example div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    padding: 10px 13px;

    background: white;
    border-bottom: 1px solid #e8ecef;
}


.journal-example div:last-child {
    border-bottom: 0;
}


.journal-example span,
.journal-example strong {
    color: #34495a;
    font-size: 10px;
}


/* ---------------------------------------------------------
   QUICK CHECK
   --------------------------------------------------------- */

.lesson-check {
    margin-top: 32px;
    padding: 21px 22px;

    background: #f8fafb;
    border: 1px solid #dfe4e8;
    border-radius: 6px;
}


.lesson-check h3 {
    margin: 0 0 15px;

    color: #183b56;
    font-size: 13px;
    line-height: 1.5;
}


.check-options {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}


.check-options button {
    min-width: 90px;
    padding: 8px 13px;

    background: white;
    border: 1px solid #ccd6dd;
    border-radius: 4px;

    color: #34495a;
    font-family: inherit;
    font-size: 10px;
    font-weight: 700;

    cursor: pointer;
}


.check-options button:hover {
    background: #f1f5f8;
}


.check-options button.answer-correct {
    background: #edf8ef;
    border-color: #77ad82;
    color: #347a43;
}


.check-options button.answer-wrong {
    background: #fff1f0;
    border-color: #d99b96;
    color: #a24740;
}


.check-feedback {
    margin: 13px 0 0;

    color: #526675;
    font-size: 10px;
    font-weight: 700;
}


/* ---------------------------------------------------------
   RESPONSIVE
   --------------------------------------------------------- */

@media (max-width: 900px) {

    .lesson-concept-grid,
    .dealer-display {
        grid-template-columns: 1fr;
    }
}


@media (max-width: 760px) {

    .learn-main {
        margin-left: 0;
        padding: 88px 18px 35px;
    }


    .lesson-card {
        grid-template-columns: 42px minmax(0, 1fr);
    }


    .lesson-action {
        grid-column: 1 / -1;
        width: 100%;
    }


    #lesson-content {
        padding: 24px 20px 30px;
    }
}

.lesson-table-wrap{overflow-x:auto}.lesson-journal{width:100%;border-collapse:collapse;margin:18px 0;font-size:14px}.lesson-journal th,.lesson-journal td{text-align:left;padding:10px;border-bottom:1px solid #d5deea}.lesson-journal th{background:#eef4ff}.lesson-journal td:not(:first-child){white-space:nowrap}.check-feedback{font-size:14px;line-height:1.6}
