/* =========================================================
   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;
    }
}


/* =========================================================
   CUSTOMER CENTER
   ========================================================= */

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


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

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


.customers-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 25px;

    margin-bottom: 22px;
}


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


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


.customers-heading > div > p:last-child {
    margin: 0;
    color: #637381;
    font-size: 13px;
}


/* ---------------------------------------------------------
   BUTTONS
   --------------------------------------------------------- */

.customers-primary-button,
.customers-secondary-button {
    min-height: 38px;
    padding: 0 16px;

    border-radius: 5px;

    font-family: inherit;
    font-size: 11px;
    font-weight: 700;

    cursor: pointer;
}


.customers-primary-button {
    background: #2f6fad;
    border: 1px solid #2f6fad;
    color: white;
}


.customers-primary-button:hover {
    background: #285f94;
}


.customers-secondary-button {
    background: white;
    border: 1px solid #c9d3da;
    color: #34495a;
}


.customers-secondary-button:hover {
    background: #f5f7f9;
}


/* ---------------------------------------------------------
   SEARCH TOOLBAR
   --------------------------------------------------------- */

.customer-toolbar {
    margin-bottom: 14px;
}


.customer-search {
    display: block;
    max-width: 480px;
}


.customer-search span {
    display: block;
    margin-bottom: 6px;

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


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

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

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

    outline: none;
}


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


/* ---------------------------------------------------------
   CUSTOMER TABLE
   --------------------------------------------------------- */

.customer-table-card {
    overflow: hidden;

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

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


.customer-table-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 18px 22px;

    border-bottom: 1px solid #e5e9ed;
}


.customer-table-heading h2 {
    margin: 0 0 3px;

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


.customer-table-heading p {
    margin: 0;

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


.customer-table-wrap {
    overflow-x: auto;
}


.customer-table {
    width: 100%;

    border-collapse: collapse;
}


.customer-table th {
    padding: 11px 14px;

    background: #f7f9fa;
    border-bottom: 1px solid #e2e7ea;

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

    text-align: left;
    text-transform: uppercase;
}


.customer-table td {
    padding: 14px;

    border-bottom: 1px solid #edf0f2;

    color: #455d6d;
    font-size: 11px;

    vertical-align: middle;
}


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


.customer-table td strong {
    display: block;

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


.customer-table td small {
    display: block;
    margin-top: 4px;

    color: #83909b;
    font-size: 9px;
}


.customer-row-action {
    width: 70px;
    text-align: right;
}


.customer-edit {
    padding: 5px 9px;

    background: white;
    border: 1px solid #cbd5dc;
    border-radius: 4px;

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

    cursor: pointer;
}


.customer-edit:hover {
    background: #f2f7fb;
}


/* ---------------------------------------------------------
   EMPTY STATE
   --------------------------------------------------------- */

.customer-empty {
    padding: 55px 25px;

    text-align: center;
}


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

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


.customer-empty p {
    max-width: 430px;
    margin: 0 auto 18px;

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


/* ---------------------------------------------------------
   CUSTOMER FORM
   --------------------------------------------------------- */

.customer-form-view {
    max-width: 920px;
}


.customer-form-card {
    overflow: hidden;

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

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


.customer-form-header {
    padding: 22px 26px;

    border-bottom: 1px solid #e5e9ed;
}


.customer-form-header h2 {
    margin: 0 0 6px;

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


.customer-form-header > div > p:last-child {
    margin: 0;

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


#customer-form {
    padding: 0 26px 25px;
}


#customer-form fieldset {
    margin: 0;
    padding: 24px 0;

    border: 0;
    border-bottom: 1px solid #edf0f2;
}


#customer-form legend {
    width: 100%;
    margin-bottom: 15px;

    color: #183b56;
    font-size: 13px;
    font-weight: 800;
}


.customer-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 18px;
}


.customer-field-full {
    grid-column: 1 / -1;
}


#customer-form label > span {
    display: block;
    margin-bottom: 6px;

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


#customer-form label > span b {
    color: #b04444;
}


#customer-form input,
#customer-form select,
#customer-form textarea {
    width: 100%;

    padding: 10px 11px;

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

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

    box-sizing: border-box;
    outline: none;
}


#customer-form select {
    min-height: 38px;
}


#customer-form textarea {
    resize: vertical;
    min-height: 90px;
}


#customer-form input:focus,
#customer-form select:focus,
#customer-form textarea:focus {
    border-color: #2f6fad;
    box-shadow: 0 0 0 3px rgba(47, 111, 173, 0.1);
}


/* ---------------------------------------------------------
   FORM MESSAGE
   --------------------------------------------------------- */

.customer-form-message {
    margin-top: 20px;
    padding: 11px 13px;

    border-radius: 5px;

    font-size: 11px;
    line-height: 1.5;
}


.customer-form-message.error {
    background: #fff2f2;
    border: 1px solid #e5bcbc;
    color: #8c3535;
}


.customer-form-message.success {
    background: #f1f8f2;
    border: 1px solid #bfd7c2;
    color: #3d7044;
}


/* ---------------------------------------------------------
   FORM ACTIONS
   --------------------------------------------------------- */

.customer-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 9px;

    padding-top: 22px;
}


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

@media (max-width: 760px) {

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


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


    .customer-form-grid {
        grid-template-columns: 1fr;
    }


    .customer-field-full {
        grid-column: auto;
    }


    .customer-form-header,
    #customer-form {
        padding-left: 18px;
        padding-right: 18px;
    }
}


/* ---------------------------------------------------------
   POSSIBLE DUPLICATE WARNING
   --------------------------------------------------------- */

.possible-duplicate {
    margin-top: 18px;
    padding: 15px 17px;

    background: #fff9e8;
    border: 1px solid #e5d49d;
    border-radius: 5px;
}


.possible-duplicate > strong {
    display: block;
    margin-bottom: 6px;

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


.possible-duplicate p {
    margin: 0;

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


.possible-duplicate-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;

    margin-top: 13px;
}


/* ---------------------------------------------------------
   DELETE CUSTOMER
   --------------------------------------------------------- */

.customer-form-actions {
    justify-content: space-between;
}


.customer-form-actions-right {
    display: flex;
    gap: 9px;
}


.customers-danger-button {
    min-height: 38px;
    padding: 0 16px;

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

    color: #a33f3f;
    font-family: inherit;
    font-size: 11px;
    font-weight: 700;

    cursor: pointer;
}


.customers-danger-button:hover {
    background: #fff2f2;
}


@media (max-width: 560px) {

    .customer-form-actions {
        align-items: stretch;
        flex-direction: column-reverse;
    }


    .customer-form-actions-right {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }


    .customers-danger-button {
        width: 100%;
    }
}
