/* inter-100 - latin */
@font-face {
  font-display: swap; 
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100;
  src: url('fonts/inter-v20-latin-100.woff2') format('woff2'); 
}

/* inter-200 - latin */
@font-face {
  font-display: swap; 
  font-family: 'Inter';
  font-style: normal;
  font-weight: 200;
  src: url('fonts/inter-v20-latin-200.woff2') format('woff2');
}

/* inter-300 - latin */
@font-face {
  font-display: swap; 
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300;
  src: url('fonts/inter-v20-latin-300.woff2') format('woff2'); 
}

/* inter-regular - latin */
@font-face {
  font-display: swap; 
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  src: url('fonts/inter-v20-latin-regular.woff2') format('woff2'); 
}

/* inter-500 - latin */
@font-face {
  font-display: swap; 
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  src: url('fonts/inter-v20-latin-500.woff2') format('woff2');
}

/* inter-600 - latin */
@font-face {
  font-display: swap; 
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  src: url('fonts/inter-v20-latin-600.woff2') format('woff2'); 
}

/* inter-700 - latin */
@font-face {
  font-display: swap; 
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  src: url('fonts/inter-v20-latin-700.woff2') format('woff2'); 
}

/* inter-800 - latin */
@font-face {
  font-display: swap; 
  font-family: 'Inter';
  font-style: normal;
  font-weight: 800;
  src: url('fonts/inter-v20-latin-800.woff2') format('woff2'); 
}

/* inter-900 - latin */
@font-face {
  font-display: swap; 
  font-family: 'Inter';
  font-style: normal;
  font-weight: 900;
  src: url('fonts/inter-v20-latin-900.woff2') format('woff2');
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background-color: #f8fafc;
    color: #0f172a;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background-color: #e0e7ff;
}

.icon-lg { width: 1.5rem; height: 1.5rem; }
.icon-sm { width: 1rem; height: 1rem; }
.kpi-icon { width: 1.25rem; height: 1.25rem; }

.dashboard-header {
    max-width: 72rem;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
}

.metadata-tags {
    width: max-content; 
    margin: 0 auto 4rem auto;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.tag {
    color: #334155;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    border-radius: 0.375rem;
}

.header-main-row {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
}

@media (min-width: 768px) {
    .header-main-row {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.header-logo-group {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.header-title {
    font-size: 1.875rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    margin: 0;
}

.header-subtitle {
    color: #64748b;
    font-weight: 500;
    margin: 0.25rem 0 0 0;
}

.refresh-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border-radius: 9999px;
    background-color: #0f172a;
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
}

.refresh-btn:hover {
    background-color: #1e293b;
}

.dashboard-main {
    max-width: 72rem;
    margin: 0 auto;
    padding: 0 1.5rem 6rem;
}

.dashboard-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 1.25rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
    .kpi-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.kpi-card {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.kpi-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #64748b;
    margin: 0 0 0.5rem 0;
}

.kpi-value {
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #0f172a;
    line-height: 1.1;
}

.kpi-value.primary {
    color: #4f46e5;
}

.kpi-subtext {
    font-size: 0.75rem;
    color: #94a3b8;
    margin: 0.5rem 0 0 0;
}

.card-icon-wrapper {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background-color: #f5f3ff; 
    color: #4f46e5;
}

.charts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

@media (min-width: 1024px) {
    .charts-grid { grid-template-columns: 1fr 2fr; }
}

.card-header {
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0 0 0.25rem 0;
    color: #0f172a;
}

.section-desc {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0;
}

.chart-section {
    display: flex;
    flex-direction: column;
}

.donut-wrapper {
    position: relative;
    width: 100%;           
    max-width: 250px; 
    height: 240px;
    margin: 0 auto;
    z-index: 1;         
}

.donut-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    margin-top: 0.25rem;
    z-index: -1;
    pointer-events: none; 
}

.donut-val {
    font-size: 2.5rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.03em;
}

.donut-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    color: #94a3b8;
    margin-top: 0.125rem;
}

.legend-container {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #475569;
    margin-top: 1.5rem;
}

.legend-item { display: flex; align-items: center; gap: 0.5rem; }
.legend-dot { width: 0.75rem; height: 0.75rem; border-radius: 9999px; }
.legend-dot.pqc { background-color: #10b981; }
.legend-dot.legacy { background-color: #e2e8f0; }

.bar-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}
.bar-wrapper {
    height: 340px;
    width: 100%;
}

.table-container {
    overflow-x: auto;
    margin-top: 0.5rem;
}

.data-table {
    width: 100%;
    text-align: left;
    border-collapse: collapse;
    min-width: 700px;
}

.data-table th {
    padding: 0.75rem 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
    cursor: pointer;
    transition: color 0.15s;
    border-bottom: 1px solid #e2e8f0;
}

.data-table th:hover { color: #4f46e5; }
.data-table th.text-right, .data-table td.text-right { text-align: right; }
.data-table th.text-center, .data-table td.text-center { text-align: center; }

.data-table td {
    padding: 1rem;
    font-size: 0.937rem;
    font-weight: 500;
}

.td-industry { font-weight: 600; color: #0f172a; }
.td-value { color: #64748b; }
.td-rate { font-weight: 700; color: #475569; }
.td-rate.above { color: #4f46e5; }

tbody tr {
    border-bottom: 1px solid #f1f5f9;
    transition: background-color 0.15s ease;
    cursor: pointer;
}

tbody tr:hover {
    background-color: #f8fafc;
}

.variance-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
}

.variance-badge.neutral { color: #475569; }
.variance-badge.above { color: #4f46e5; }

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* Industry-Specific Branch View Styles */

.back-link {
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
    padding: 0.5rem;
    border-radius: 0.5rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
}

.back-link:hover {
    color: #0f172a;
    transform: translateX(-2px);
    background: #f8fafc;
}

.sector-kpi-grid {
    margin-bottom: 2rem;
}

.td-url {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.875rem;
    color: #475569;
}