/* =========================================================
   FADA AMS — OPERATIONS DASHBOARD
   ========================================================= */

.dashboard-page {
    width: min(1440px, calc(100% - 72px));
    margin: 0 auto;
    padding: 48px 0 90px;
}


/* =========================================================
   INTRO
   ========================================================= */

.dashboard-intro {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 50px;

    padding-bottom: 38px;

    border-bottom: 1px solid #e4e8ec;
}


.dashboard-intro-main {
    max-width: 760px;
}


.dashboard-kicker {
    display: flex;
    align-items: center;
    gap: 9px;

    margin-bottom: 15px;

    color: #a9853b;

    font-size: 9px;
    font-weight: 800;

    letter-spacing: 2px;
    text-transform: uppercase;
}


.dashboard-kicker-dot {
    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: #39735c;

    box-shadow:
        0 0 0 4px rgba(57,115,92,.09);
}


.dashboard-intro h1 {
    margin: 0;

    color: var(--navy, #10243a);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: clamp(42px, 5vw, 68px);

    font-weight: 400;

    letter-spacing: -3px;

    line-height: 1;
}


.dashboard-intro h1 span {
    color: #7b8793;
}


.dashboard-intro-main > p {
    max-width: 620px;

    margin: 20px 0 0;

    color: #718092;

    font-size: 14px;

    line-height: 1.8;
}


.dashboard-intro-meta {
    display: flex;
    align-items: center;

    flex-shrink: 0;

    padding-bottom: 5px;
}


.dashboard-date {
    display: flex;
    flex-direction: column;

    gap: 6px;
}


.dashboard-date-label {
    color: #9aa5af;

    font-size: 8px;
    font-weight: 800;

    letter-spacing: 1.6px;
}


.dashboard-date strong {
    color: #33465a;

    font-size: 11px;
    font-weight: 700;
}


.dashboard-date-divider {
    width: 1px;
    height: 30px;

    margin: 0 22px;

    background: #dfe4e8;
}


/* =========================================================
   ATTENTION
   ========================================================= */

.dashboard-attention {
    display: grid;

    grid-template-columns: 38px 1fr auto;

    align-items: center;

    gap: 15px;

    margin-top: 28px;

    padding: 15px 18px;

    border: 1px solid #e9dfc8;

    background: #fbf8f0;
}


.dashboard-attention-mark {
    width: 28px;
    height: 28px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(184,148,67,.35);

    color: #a9853b;

    font-size: 11px;
    font-weight: 800;
}


.dashboard-attention-content {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;

    gap: 8px;
}


.dashboard-attention-content strong {
    color: #33465a;

    font-size: 11px;
}


.dashboard-attention-content span {
    color: #7c7567;

    font-size: 11px;
}


.dashboard-attention-actions a {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    color: #33465a;

    font-size: 10px;
    font-weight: 800;

    text-decoration: none;
}


.dashboard-attention-actions a span {
    color: #a9853b;

    transition: transform 160ms ease;
}


.dashboard-attention-actions a:hover span {
    transform: translateX(4px);
}


/* =========================================================
   SECTION
   ========================================================= */

.dashboard-section {
    margin-top: 58px;
}


.dashboard-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 30px;

    margin-bottom: 19px;
}


.dashboard-section-heading > div:first-child {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}


.dashboard-section-index {
    padding-top: 4px;

    color: #b89443;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 12px;
}


.dashboard-section-heading h2 {
    margin: 0;

    color: #10243a;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 25px;

    font-weight: 400;

    letter-spacing: -.8px;
}


.dashboard-section-heading p {
    margin: 5px 0 0;

    color: #8a96a2;

    font-size: 11px;

    line-height: 1.5;
}


.dashboard-section-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    padding-bottom: 6px;

    border-bottom: 1px solid #d8dde2;

    color: #536172;

    font-size: 10px;
    font-weight: 800;

    text-decoration: none;
}


.dashboard-section-link span {
    color: #b89443;

    transition: transform 160ms ease;
}


.dashboard-section-link:hover span {
    transform: translateX(4px);
}


/* =========================================================
   METRICS
   ========================================================= */

.dashboard-metrics {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    border-top: 1px solid #dfe4e8;
    border-bottom: 1px solid #dfe4e8;
}


.dashboard-metric {
    min-width: 0;

    padding: 24px 25px 26px;

    border-right: 1px solid #e4e8ec;
}


.dashboard-metric:last-child {
    border-right: 0;
}


.dashboard-metric-top {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;
}


.dashboard-metric-label {
    color: #778493;

    font-size: 9px;
    font-weight: 800;

    letter-spacing: 1.1px;

    text-transform: uppercase;
}


.dashboard-metric-number {
    color: #c3c9cf;

    font-size: 8px;
    font-weight: 800;

    letter-spacing: 1px;
}


.dashboard-metric-value {
    margin-top: 19px;

    overflow: hidden;

    color: #10243a;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: clamp(26px, 2.6vw, 38px);

    font-weight: 400;

    letter-spacing: -1.7px;

    white-space: nowrap;

    text-overflow: ellipsis;
}


.dashboard-money {
    font-size: clamp(22px, 2.1vw, 31px);
}


.dashboard-value-gold {
    color: #a9853b;
}


.dashboard-value-green {
    color: #39735c;
}


.dashboard-metric-description {
    max-width: 220px;

    margin-top: 11px;

    color: #929da7;

    font-size: 10px;

    line-height: 1.65;
}


.dashboard-metric-emphasis {
    background: #fafbf9;
}


.dashboard-inline-warning {
    display: block;

    margin-top: 7px;

    color: #a9853b;

    font-size: 9px;
}


.dashboard-metric-alert {
    background: #fcfaf5;
}


/* =========================================================
   LOWER GRID
   ========================================================= */

.dashboard-lower-grid {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 24px;

    margin-top: 58px;
}


.dashboard-panel {
    min-width: 0;

    border: 1px solid #dfe4e8;

    background: #ffffff;
}


.dashboard-panel-header {
    min-height: 82px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    padding: 19px 22px;

    border-bottom: 1px solid #e6eaed;
}


.dashboard-panel-kicker {
    display: block;

    margin-bottom: 5px;

    color: #a9853b;

    font-size: 8px;
    font-weight: 800;

    letter-spacing: 1.7px;

    text-transform: uppercase;
}


.dashboard-panel-header h2 {
    margin: 0;

    color: #10243a;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 21px;

    font-weight: 400;

    letter-spacing: -.5px;
}


.dashboard-panel-count {
    padding: 6px 9px;

    border: 1px solid #dfe4e8;

    color: #718092;

    font-size: 8px;
    font-weight: 800;

    letter-spacing: .7px;

    text-transform: uppercase;
}


.dashboard-panel-count-warning {
    border-color: #e7d9b8;

    background: #fbf8f0;

    color: #a9853b;
}


.dashboard-panel-action {
    color: #718092;

    font-size: 9px;
    font-weight: 800;

    text-decoration: none;
}


.dashboard-panel-action span {
    margin-left: 5px;

    color: #a9853b;
}


/* =========================================================
   TABLE
   ========================================================= */

.dashboard-table-wrap {
    width: 100%;

    overflow-x: auto;
}


.dashboard-table {
    width: 100%;

    border-collapse: collapse;
}


.dashboard-table th {
    padding: 12px 18px;

    border-bottom: 1px solid #e7eaed;

    color: #9aa5af;

    font-size: 8px;
    font-weight: 800;

    letter-spacing: 1.1px;

    text-align: left;
    text-transform: uppercase;

    white-space: nowrap;
}


.dashboard-table td {
    padding: 14px 18px;

    border-bottom: 1px solid #eef0f2;

    color: #536172;

    font-size: 11px;

    vertical-align: middle;
}


.dashboard-table tbody tr:last-child td {
    border-bottom: 0;
}


.dashboard-table tbody tr:hover {
    background: #fafbfc;
}


.dashboard-table td strong {
    display: block;

    color: #33465a;

    font-size: 11px;
    font-weight: 700;
}


.dashboard-table-meta {
    display: block;

    margin-top: 3px;

    color: #9aa5af;

    font-family: Consolas, Monaco, monospace;

    font-size: 8px;
}


.dashboard-muted-cell {
    color: #9aa5af !important;
}


.dashboard-number-cell {
    text-align: right !important;

    white-space: nowrap;
}


.dashboard-stock-low {
    color: #a9853b !important;

    font-weight: 800;
}


.dashboard-method {
    display: inline-block;

    padding: 5px 8px;

    background: #f1f3f5;

    color: #667585;

    font-size: 8px;
    font-weight: 800;

    letter-spacing: .4px;

    text-transform: capitalize;
}


.dashboard-profit {
    color: #39735c !important;

    font-weight: 800;
}


.dashboard-loss {
    color: #a34c46 !important;

    font-weight: 800;
}


/* =========================================================
   EMPTY STATES
   ========================================================= */

.dashboard-empty {
    display: flex;
    align-items: center;

    gap: 15px;

    min-height: 170px;

    padding: 25px;
}


.dashboard-empty-mark {
    width: 32px;
    height: 32px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border: 1px solid #d7e3dd;

    color: #39735c;

    font-size: 12px;
    font-weight: 800;
}


.dashboard-empty-mark-neutral {
    border-color: #e1e5e8;

    color: #9aa5af;
}


.dashboard-empty strong {
    color: #536172;

    font-size: 11px;
}


.dashboard-empty p {
    max-width: 300px;

    margin: 5px 0 0;

    color: #929da7;

    font-size: 10px;

    line-height: 1.6;
}


.dashboard-panel-footer {
    display: flex;
    justify-content: flex-end;

    padding: 13px 18px;

    border-top: 1px solid #e7eaed;
}


.dashboard-panel-footer a {
    color: #718092;

    font-size: 9px;
    font-weight: 800;

    text-decoration: none;
}


.dashboard-panel-footer span {
    margin-left: 5px;

    color: #a9853b;
}


/* =========================================================
   QUICK ACTIONS
   ========================================================= */

.dashboard-quick-section {
    margin-top: 58px;

    padding-top: 28px;

    border-top: 1px solid #dfe4e8;
}


.dashboard-quick-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 30px;

    margin-bottom: 20px;
}


.dashboard-quick-heading h2 {
    margin: 0;

    color: #10243a;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 25px;

    font-weight: 400;
}


.dashboard-quick-heading p {
    margin: 0;

    color: #929da7;

    font-size: 10px;
}


.dashboard-actions {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    border-top: 1px solid #dfe4e8;
    border-bottom: 1px solid #dfe4e8;
}


.dashboard-action {
    min-width: 0;

    display: grid;

    grid-template-columns: 28px 1fr auto;

    align-items: center;

    gap: 12px;

    padding: 20px 18px;

    border-right: 1px solid #e4e8ec;

    color: inherit;

    text-decoration: none;

    transition:
        background 160ms ease;
}


.dashboard-action:last-child {
    border-right: 0;
}


.dashboard-action:hover {
    background: #fafbfc;
}


.dashboard-action-index {
    color: #b89443;

    font-size: 8px;
    font-weight: 800;

    letter-spacing: .8px;
}


.dashboard-action-content {
    min-width: 0;
}


.dashboard-action-content strong {
    display: block;

    overflow: hidden;

    color: #33465a;

    font-size: 10px;
    font-weight: 800;

    white-space: nowrap;

    text-overflow: ellipsis;
}


.dashboard-action-content small {
    display: block;

    margin-top: 4px;

    overflow: hidden;

    color: #9aa5af;

    font-size: 9px;

    white-space: nowrap;

    text-overflow: ellipsis;
}


.dashboard-action-arrow {
    color: #b89443;

    font-size: 14px;

    transition:
        transform 160ms ease;
}


.dashboard-action:hover .dashboard-action-arrow {
    transform: translateX(4px);
}


/* =========================================================
   RESPONSIVE — TABLET
   ========================================================= */

@media (max-width: 1100px) {

    .dashboard-page {
        width: min(100% - 48px, 1440px);
    }


    .dashboard-metrics {
        grid-template-columns: repeat(2, 1fr);
    }


    .dashboard-metric:nth-child(2) {
        border-right: 0;
    }


    .dashboard-metric:nth-child(-n + 2) {
        border-bottom: 1px solid #e4e8ec;
    }


    .dashboard-lower-grid {
        grid-template-columns: 1fr;
    }


    .dashboard-actions {
        grid-template-columns: repeat(2, 1fr);
    }


    .dashboard-action:nth-child(2) {
        border-right: 0;
    }


    .dashboard-action:nth-child(-n + 2) {
        border-bottom: 1px solid #e4e8ec;
    }

}


/* =========================================================
   RESPONSIVE — MOBILE
   ========================================================= */

@media (max-width: 700px) {

    .dashboard-page {
        width: calc(100% - 32px);

        padding:
            32px
            0
            60px;
    }


    .dashboard-intro {
        display: block;

        padding-bottom: 28px;
    }


    .dashboard-intro h1 {
        font-size: 43px;

        letter-spacing: -2.4px;
    }


    .dashboard-intro-main > p {
        font-size: 13px;
    }


    .dashboard-intro-meta {
        margin-top: 25px;
    }


    .dashboard-attention {
        grid-template-columns: 32px 1fr;

        align-items: start;
    }


    .dashboard-attention-actions {
        grid-column: 2;

        margin-top: 3px;
    }


    .dashboard-section {
        margin-top: 43px;
    }


    .dashboard-section-heading {
        align-items: flex-start;
    }


    .dashboard-section-heading > div:first-child {
        gap: 10px;
    }


    .dashboard-section-heading h2 {
        font-size: 22px;
    }


    .dashboard-section-heading p {
        max-width: 240px;
    }


    .dashboard-section-link {
        margin-top: 3px;
    }


    .dashboard-metrics {
        grid-template-columns: 1fr;
    }


    .dashboard-metric,
    .dashboard-metric:nth-child(2) {
        border-right: 0;
        border-bottom: 1px solid #e4e8ec;
    }


    .dashboard-metric:last-child {
        border-bottom: 0;
    }


    .dashboard-metric-value {
        font-size: 31px;
    }


    .dashboard-lower-grid {
        margin-top: 43px;
    }


    .dashboard-panel-header {
        min-height: 74px;

        padding:
            16px;
    }


    .dashboard-table th {
        padding:
            11px 13px;
        font-size: 7px;
    }


    .dashboard-table td {
        padding:
            13px;
        font-size: 10px;
    }


    .dashboard-quick-section {
        margin-top: 43px;
    }


    .dashboard-quick-heading {
        display: block;
    }


    .dashboard-quick-heading p {
        margin-top: 6px;
    }


    .dashboard-actions {
        grid-template-columns: 1fr;
    }


    .dashboard-action,
    .dashboard-action:nth-child(2) {
        border-right: 0;
        border-bottom: 1px solid #e4e8ec;
    }


    .dashboard-action:last-child {
        border-bottom: 0;
    }

}


@media (max-width: 450px) {

    .dashboard-page {
        width: calc(100% - 24px);
    }


    .dashboard-intro h1 {
        font-size: 38px;
    }


    .dashboard-intro-meta {
        width: 100%;
    }


    .dashboard-date-divider {
        margin:
            0 16px;
    }


    .dashboard-section-heading {
        display: block;
    }


    .dashboard-section-link {
        display: inline-flex;

        margin-top: 13px;
    }


    .dashboard-attention {
        padding: 14px;
    }


    .dashboard-empty {
        padding: 20px;
    }

}