:root {
    --gold: #c5983e;
    --dark: #2f2f2f;
    --blue: #1a96d4;
    --dark-blue: #213d68;
    --light-gold: #f3e9d6;
}

@font-face {
    font-family: 'Avenir Next';
    src: url('../css/fonts/avenir-next-regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Avenir Next';
    src: url('../css/fonts/avenir-next-medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

body {
    font-family: 'Avenir Next', sans-serif;
    color: #000;
}

.text-success {
    color: #24790a !important;
}

.text-warning {
    color: #c5983e !important;
}

.text-danger {
    color: #c55a0f !important;
}

.text-blue {
    color: var(--blue);
}

.labelEqual {
    font-size: 13px;
}

.blueValue {
    font-size: 48px;
}

/* ---------- HEADER ---------- */
.header {
    background-image: url("../images/banner-img.jpg");
    background-position: top center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    padding: 50px 0px;
}

/* .header::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .55);
} */

.header-content {
    position: relative;
    z-index: 2;
    padding-bottom: 30px;
}

/* ---------- WELCOME ---------- */
.welcome {
    margin-top: 15px;
}

/* ---------- NAV TABS ---------- */
.dashboard-nav {
    display: flex;
}

.dashboard-nav .nav-link {
    flex: 1;
    border: 0;
    color: white;
    background: #242423e8;
    padding: 25px 10px;
    text-align: center;
}

.dashboard-nav .nav-link.active {
    background: var(--gold);
    color: white;
}

.dashboard-nav .nav-link:hover {
    background: var(--gold);
}

/* ---------- STATS ---------- */
.stat-box {
    background: white;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.stat-box h2 {
    color: var(--blue);
}

/* ---------- DARK PANEL ---------- */
.dark-panel {
    background: var(--dark);
    color: white;
    padding: 20px;
}

/* ---------- COUNTY ---------- */
.county-card {
    background: white;
    border: 1px solid #ddd;
    padding: 15px;
    margin-bottom: 12px;
}

.county-details {
    display: none;
}

/* ---------- GOLD BLOCK ---------- */
.gold-block {
    background: var(--gold);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
}

/* ---------- METRIC BOX ---------- */
.metric-box {
    background: #fff;
    padding: 18px;
}

.metric-box h5 {
    color: var(--dark-blue);
    font-size: 32px;
    margin-bottom: 0px;
}

/* ---------- FOOTNOTE ---------- */
.footer-note {
    font-size: 14px;
    color: #777;
}

.container {
    max-width: 1280px;
}

.dashboard-nav {
    gap: 10px !important;
}

.toggle-production {
    color: #000;
    font-size: 18px;
}

a.toggle-production.active {
    color: var(--blue);
}

.dashboard-nav .nav-item {
    flex: 1;
}

.dashboard-nav .nav-item button {
    width: 100%;
    border-radius: 0px;
}

.dashboard-nav .nav-item button span {
    font-size: 32px;
}

.dashboard-nav .nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    font-size: 20px;
}

.dashboard-nav .nav-link img {
    height: 80px;
}

.dashboard-nav .nav-link.active img,
.dashboard-nav .nav-link:hover img {
    filter: brightness(0)invert(1);
}

.alert-dismissible {
    background: #2888b8cf;
    border: 0px;
    color: #fff;
    border-radius: 0px;
    position: relative;
    font-size: 21px;
    line-height: normal;
    margin-bottom: 35px;
}

.alert-dismissible .btn-close {
    position: absolute;
    right: -10px;
    top: -10px;
    color: var(--gold);
    background-color: rgba(0, 0, 0, .7);
    height: 35px;
    width: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0px;
    background-image: none;
    border-radius: 50%;
    opacity: 1;
    font-size: 25px;
    font-weight: bold;
    line-height: normal;
}

.tab-content {
    margin-top: 50px;
    padding-bottom: 40px;
}

.cardContent p {
    margin-bottom: 0px;
}

/* _____ */
/* cards */
.info-card {
    height: 100%;
}

/* gold blocks */
.gold-section {
    display: flex;
    margin-bottom: 12px;
}

.gold-left {
    background: #cea75b;
    padding: 20px;
    flex: 3;
}

.gold-left h5 {
    font-size: 32px;
}

.gold-left h5+span {
    display: block;
    margin-bottom: 15px;
}

.gold-left p {
    font-size: 21px;
}

.gold-right {
    background: var(--light-gold);
    padding: 20px;
    flex: 1;
    text-align: center;
}

.gold-right h2 {
    margin: 0;
    color: #b38319;
    font-size: 72px;
}

.titleMining {
    color: var(--dark-blue);
    font-size: 32px;
    font-weight: 400;
}

.gold-right .tons,
.dateTime {
    font-size: 16px;
    text-transform: uppercase;
    padding-bottom: 8px;
    display: block;
}

.statusValue {
    font-size: 20px;
}

/* metric boxes */


/* fake charts */
.chart {
    /* height: 150px; */
    /* background: #e0e0e0; */
}

.bar-chart {
    height: 160px;
    background: #d8d8d8;
}

.footer-note {
    font-size: 14px;
    color: #666;
}

/* county */
.county-header {
    background: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.county-header h6 {
    color: var(--dark-blue);
    font-size: 32px;
    font-weight: 400;
}

.big {
    font-size: 60px;
    color: #1a96d4;
}

.production-panel {
    display: none;
    background: #2d2d2d;
    color: white;
    padding-left: 15px;
    padding-right: 15px;
}

.production-inner {
    font-size: 14px;
}


/* impact */
.impact-metrics {
    background: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.metric {
    font-size: 60px;
    color: var(--blue);
    font-weight: 400;
}

.metric-label {
    font-size: 16px;
}

.history-panel {
    background: #2d2d2d;
    color: white;
    border: 1px solid #ccc;
}

.history-chart {
    height: 220px;
    background: #caa03d;
    margin-bottom: 10px;
}


/* ++++++++++ */
.production-panel {
    background: #2f2f2f;
    color: #fff;
}

.panel-title {
    padding: 12px 0px 0px;
    color: var(--gold);
}

.history-panel h6,
.panel-title h2 {
    color: var(--gold);
    font-size: 26px;
}

.panel-title span {
    display: block;
    font-size: 16px;
    color: #fff;
}



.production-table thead th,
.production-table tbody tr td:first-child {
    font-weight: 500;
}


.production-table td,
.production-table th {
    background-color: transparent;
    color: #fff;
    border-color: var(--gold);
    font-size: 21px;
}

.production-table tbody tr:hover {
    background: #444;
}

.panel-note {
    font-size: 16px;
    padding: 10px 0px;
    color: #fff;
    font-style: italic;
}


/* table industry */
.tableindustry thead th {
    background: transparent;
    border-color: var(--gold);
    text-align: right;
}

.tableindustry thead th,
.tableindustry tbody tr td {
    font-size: 21px;
}

.tableindustry tbody tr td:first-child {
    font-weight: bold;
    text-align: left;
}

.tableindustry tbody tr td {
    border-color: var(--gold);
    text-align: right;
}

tr.total td {
    background-color: #e2cb9f;
}

/* ++++ */
.custom-select {
    position: relative;
    display: inline-block;
}

.custom-select select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    padding: 3px 34px 3px 10px;
    font-size: 16px;
    border: 1px solid #ababab;
    border-radius: 8px;
    cursor: pointer;
}

/* custom arrow */
.custom-select::after {
    content: "▲\A ▼";
    white-space: pre;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 10px;
    pointer-events: none;
    line-height: 10px;
    background: #fff;
    padding: 0px 1px 0px 5px;
}

.noteswithSelect {
    display: flex;
    align-items: center;
    gap: 10px;
}

.noteswithSelect p {
    margin: 0px;
}