﻿.container {
    padding: 0 0.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    box-sizing: border-box;
}

.dashboard {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
    width: 100%;
    box-sizing: border-box;
}

.quick-actions,
.system-status {
    background-color: white;
    padding: 20px;
    border-radius: 4px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.tools {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.tool-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
}

.open-new-tab-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #1d4ed8;
    background: #eff6ff;
    border: 1px solid #93c5fd;
    border-radius: 6px;
    text-decoration: none;
    padding: 8px 14px;
    white-space: nowrap;
    transition: background-color 0.15s, border-color 0.15s;
}

.open-new-tab-link:hover {
    background: #dbeafe;
    border-color: #60a5fa;
    text-decoration: none;
}

.open-new-tab-link--loading {
    opacity: 0.65;
    pointer-events: none;
}

body.standalone-mode .open-new-tab-link,
html.standalone-mode .open-new-tab-link,
body.standalone-mode .embedded-only-hint,
html.standalone-mode .embedded-only-hint {
    display: none !important;
}

body.standalone-mode .nav-admin-only,
html.standalone-mode .nav-admin-only {
    display: none !important;
}

body.standalone-mode .top-nav,
html.standalone-mode .top-nav {
    border-bottom: 1px solid #e5e7eb;
}

.embedded-only-hint {
    margin: -8px 0 16px;
    font-size: 0.875rem;
    color: #4b5563;
    line-height: 1.4;
}

.status-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 10px;
}

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

.status-row--pair {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.status-item {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 64px;
}

/* Clickable status row (dashboard → Check-Quick variances) */
.status-item--link {
    flex: 1;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}

.status-item--link:hover {
    border-color: var(--primary-color, #0095ff);
    background: #f0f8ff;
}

.status-item--link .status-link-hint {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-color, #0095ff);
    margin-left: 0.5rem;
}

.status-item--link.has-open-variances {
    border-color: #f0c98e;
    background: #fff8ec;
}

.status-item--link.has-open-variances .status-value > span:first-child {
    color: #b45309;
    font-weight: 700;
}

.status-label {
    font-size: 0.85rem;
    color: #6b7280;
    letter-spacing: 0.2px;
}

.status-value {
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
}

footer {
    background-color: #f8f9fa;
    width: 100%;
    box-sizing: border-box;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* Extra bottom padding so the fixed connection-status badge sits below the text */
    padding: 1rem 0.5rem 2.75rem;
    border-top: 1px solid #e0e0e0;
    color: #666;
    font-size: 14px;
}

/* Shared ops content column (Pick / Find / Fix) - Pick-Quick gold standard */
@media (min-width: 1025px) {
    .ops-page-content {
        max-width: 1200px;
        margin-left: auto;
        margin-right: auto;
        width: 100%;
        box-sizing: border-box;
    }
}