main > .container {
    padding: 70px 15px 20px;
}

.footer {
    background-color: #f5f5f5;
    font-size: .9em;
    height: 60px;
}

.footer > .container {
    padding-right: 15px;
    padding-left: 15px;
}

.not-set {
    color: #c55;
    font-style: italic;
}

/* add sorting icons to gridview sort links */
a.asc:after, a.desc:after {
    content: '';
    left: 3px;
    display: inline-block;
    width: 0;
    height: 0;
    border: solid 5px transparent;
    margin: 4px 4px 2px 4px;
    background: transparent;
}

a.asc:after {
    border-bottom: solid 7px #212529;
    border-top-width: 0;
}

a.desc:after {
    border-top: solid 7px #212529;
    border-bottom-width: 0;
}

.grid-view th {
    white-space: nowrap;
}

.hint-block {
    display: block;
    margin-top: 5px;
    color: #999;
}

.error-summary {
    color: #a94442;
    background: #fdf7f7;
    border-left: 3px solid #eed3d7;
    padding: 10px 20px;
    margin: 0 0 15px 0;
}

/* align the logout "link" (button in form) of the navbar */
.nav li > form > button.logout {
    padding-top: 7px;
    color: rgba(255, 255, 255, 0.5);
}

@media(max-width:767px) {
    .nav li > form > button.logout {
        display:block;
        text-align: left;
        width: 100%;
        padding: 10px 0;
    }
}

.nav > li > form > button.logout:focus,
.nav > li > form > button.logout:hover {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.75);
}

.nav > li > form > button.logout:focus {
    outline: none;
}

.form-group {
    margin-bottom: 1rem;
}

.dashboard-page {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.dashboard-card {
    background: #ffffff;
    border: 1px solid #e4e8f0;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
    padding: 22px;
}

.dashboard-rate-card {
    background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
}

.dashboard-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.dashboard-section-label {
    color: #059669;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.dashboard-kpi-row {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.dashboard-kpi {
    min-width: 110px;
    padding: 10px 14px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    text-align: right;
}

.dashboard-kpi-value {
    display: block;
    color: #0f172a;
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.1;
}

.dashboard-kpi-label {
    display: block;
    color: #64748b;
    font-size: 0.78rem;
    margin-top: 3px;
}

.dashboard-rate-grid {
    margin-top: 2px;
}

.dashboard-rate-item {
    height: 100%;
}

.dashboard-rate-title {
    color: #0f172a;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.dashboard-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 4px 10px;
    margin-bottom: 10px;
}

.dashboard-badge-success {
    color: #059669;
    background: #dcfce7;
}

.dashboard-badge-warning {
    color: #f59e0b;
    background: #fff7cd;
}

.dashboard-badge-purple {
    color: #7c3aed;
    background: #ede9fe;
}

.dashboard-badge-danger {
    color: #ef4444;
    background: #fee2e2;
}

.dashboard-input-group {
    display: flex;
    align-items: stretch;
    width: 100%;
    border: 1px solid #d8dee9;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}

.dashboard-input-prefix,
.dashboard-input-suffix {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    padding: 0 10px;
    background: #f8fafc;
    color: #475569;
    font-weight: 700;
    border-right: 1px solid #d8dee9;
}

.dashboard-input-suffix {
    border-right: 0;
    border-left: 1px solid #d8dee9;
    min-width: 62px;
}

.dashboard-rate-input {
    border: 0;
    flex: 1 1 auto;
    min-width: 0;
    padding: 11px 12px;
    font-size: 1rem;
    color: #64748b;
    background: #fff;
    outline: none;
}

.dashboard-rate-input[readonly] {
    cursor: default;
}

.dashboard-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 14px;
}

.dashboard-update-btn {
    background: linear-gradient(180deg, #2f6df6 0%, #245ef0 100%);
    border: 0;
    color: #ffffff;
    font-size: 0.98rem;
    font-weight: 700;
    border-radius: 12px;
    padding: 13px 20px;
    box-shadow: 0 10px 20px rgba(36, 94, 240, 0.2);
}

.dashboard-update-btn:hover,
.dashboard-update-btn:focus {
    color: #ffffff;
    background: linear-gradient(180deg, #245ef0 0%, #1e4fd5 100%);
}

.dashboard-status-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 20px;
    border-radius: 14px;
    border: 1px solid #8be3a0;
    background: #f0fbf1;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.08);
}

.dashboard-status-icon {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    background: #22c55e;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    flex: 0 0 auto;
    margin-top: 2px;
}

.dashboard-status-title {
    color: #14532d;
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 6px;
}

.dashboard-status-meta {
    color: #1f2937;
    font-size: 0.95rem;
    line-height: 1.5;
}

.dashboard-summary-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.dashboard-summary-title {
    color: #111827;
    font-size: 1.2rem;
    font-weight: 800;
    margin: 0;
}

.dashboard-summary-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 6px 14px;
    background: #eef2ff;
    color: #4338ca;
    font-weight: 700;
    font-size: 0.88rem;
}

.dashboard-summary-table thead th {
    color: #64748b;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-bottom: 1px solid #e5e7eb;
    padding-top: 14px;
    padding-bottom: 14px;
}

.dashboard-summary-table tbody td {
    border-top: 1px solid #edf0f5;
    padding-top: 16px;
    padding-bottom: 16px;
}

.dashboard-col-index {
    width: 52px;
    color: #94a3b8;
}

.dashboard-metal-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 8px;
    padding: 4px 12px;
    border: 1px solid transparent;
    font-weight: 700;
    font-size: 0.92rem;
}

.dashboard-metal-pill-1 {
    color: #10b981;
    background: #dcfce7;
    border-color: #86efac;
}

.dashboard-metal-pill-2 {
    color: #d97706;
    background: #fff7ed;
    border-color: #fcd34d;
}

.dashboard-metal-pill-3 {
    color: #7c3aed;
    background: #ede9fe;
    border-color: #c4b5fd;
}

.dashboard-metal-pill-4 {
    color: #ef4444;
    background: #fee2e2;
    border-color: #fca5a5;
}

.dashboard-variant-count {
    color: #0f172a;
    font-size: 1.05rem;
    font-weight: 700;
}

.dashboard-old-price {
    color: #ef4444;
    font-weight: 700;
    text-decoration: line-through;
}

.dashboard-new-price {
    color: #16a34a;
    font-weight: 800;
}

.dashboard-summary-footer {
    color: #64748b;
    font-size: 0.9rem;
    margin-top: 10px;
}

@media (max-width: 1199.98px) {
    .dashboard-card-header,
    .dashboard-summary-header,
    .dashboard-status-card {
        align-items: flex-start;
    }

    .dashboard-card-header,
    .dashboard-summary-header {
        flex-direction: column;
    }

    .dashboard-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 767.98px) {
    .dashboard-card {
        padding: 18px;
    }

    .dashboard-status-card {
        padding: 16px;
    }

    .dashboard-summary-table thead th,
    .dashboard-summary-table tbody td {
        white-space: nowrap;
    }

    .dashboard-kpi-row {
        justify-content: flex-start;
    }
}