/* BudgetThuis — Brand refresh 2026 (TBWA\Studio Neboko).
   Extracted from bt.batco2 admin app.css: only the pieces the telesales page uses.
   Self-hosted brand fonts — no external font requests. */

/* Primary type: Budget Greet Narrow (Bold) — display / headlines, ALL CAPS. */
@font-face {
    font-family: 'Budget Greet Narrow';
    src: url('../fonts/BudgetGreetNarrow-Bold.woff2') format('woff2'),
         url('../fonts/BudgetGreetNarrow-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* Secondary type: Inter — body / UI. */
@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter-Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter-SemiBold.otf') format('opentype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --font-display: 'Budget Greet Narrow', 'Arial Narrow', 'Inter', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    --background: #F4F7F4;
    --foreground: #111111;
    --card: #FFFFFF;

    /* BT Green — primary brand colour. Always paired with BLACK text. */
    --primary: #00D780;
    --primary-foreground: #000000;
    --primary-strong: #029B77;
    --brand-green: #00D780;
    --brand-green-dark: #029B77;

    --secondary: #EBF2E8;
    --muted-foreground: #6B7280;
    --accent: #EBF2E8;
    --accent-foreground: #029B77;
    --border: #E5E7EB;
    --ring: #029B77;

    --radius: 6px;
    --radius-lg: 12px;

    --space-2: 8px;
    --space-4: 16px;
    --space-6: 24px;

    --text-lg: 16px;

    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);

    --duration-base: 150ms;
    --duration-slow: 300ms;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.5;
    background: var(--background);
    color: var(--foreground);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== Standalone page chrome (replaces the admin sidebar) ===== */
.page-header {
    background: #000000;
    color: #FFFFFF;
    padding: 16px 24px;
    display: flex;
    align-items: baseline;
    gap: 12px;
    border-bottom: 4px solid var(--brand-green);
}

.page-header h1 {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: var(--brand-green);
}

.page-header span {
    font-size: 13px;
    color: #9CA3AF;
}

.page-main {
    max-width: 960px;
    margin: 0 auto;
    padding: 24px 16px 48px;
}

/* ===== Cards ===== */
.card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--card);
    color: var(--foreground);
    box-shadow: var(--shadow-md);
    transition: box-shadow var(--duration-slow) ease-in-out;
}

.card:hover {
    box-shadow: var(--shadow-lg);
}

.card-content {
    padding: var(--space-6);
}

/* ===== Metric cards ===== */
.metric-card {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    padding: var(--space-4);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--card);
}

.metric-card-label {
    font-size: 11px;
    font-weight: 500;
    color: var(--muted-foreground);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.metric-card-value {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.metric-card-value span:first-child {
    font-size: 32px;
    font-weight: 700;
    color: var(--foreground);
    line-height: 1.2;
}

.metric-card-value span:last-child {
    font-size: 14px;
    color: var(--muted-foreground);
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    border: none;
    /* Brand 2026 CTA: Inter bold, sentence case, rounded corners (guidelines p47-49) */
    border-radius: var(--radius-lg);
    font-family: var(--font-body);
    font-size: var(--text-lg);
    font-weight: 700;
    cursor: pointer;
    transition: all var(--duration-base) ease;
    white-space: nowrap;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* CTA colorway: BT Green + black text, flat (brand 2026: buttons carry no shadows) */
.btn-primary {
    background: var(--primary);
    color: var(--primary-foreground);
}

.btn-primary:hover:not(:disabled) {
    background: color-mix(in srgb, var(--primary) 90%, black);
}

.btn-primary::after {
    content: ' →';
    font-weight: 400;
}

.btn-outline {
    border: 1px solid var(--border);
    background: transparent;
    color: var(--foreground);
}

.btn-outline:hover:not(:disabled) {
    background: var(--accent);
    color: var(--accent-foreground);
}

.btn-sm {
    height: 32px;
    padding: 0 12px;
    font-size: 12px;
}

/* ===== Inputs ===== */
.input {
    width: 100%;
    height: 36px;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #FFFFFF;
    color: var(--foreground);
    font-size: 14px;
    font-family: var(--font-body);
    transition: border-color 0.15s ease;
}

.input:focus {
    outline: none;
    border-color: var(--ring);
    box-shadow: 0 0 0 2px rgba(2, 155, 119, 0.12);
}

select.input {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 8px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 32px;
}

.label {
    font-size: 14px;
    font-weight: 500;
    color: var(--foreground);
}

.required-star {
    color: var(--brand-green-dark);
}

/* ===== Table ===== */
.table {
    width: 100%;
    border-collapse: collapse;
}

.table th {
    padding: 12px 16px;
    text-align: left;
    font-size: 12px;
    font-weight: 500;
    color: var(--muted-foreground);
    background: var(--card);
    border-bottom: 1px solid var(--border);
}

.table td {
    padding: 12px 16px;
    font-size: 14px;
    color: var(--foreground);
    border-bottom: 1px solid var(--border);
}

.table tr:last-child td {
    border-bottom: none;
}

/* ===== Section label ===== */
.chart-section-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--muted-foreground);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 6px;
}

/* ===== Layout utilities ===== */
.grid {
    display: grid;
    gap: 16px;
}

.grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 640px) {
    .grid-cols-2 {
        grid-template-columns: 1fr;
    }
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-2 {
    gap: 8px;
}

.gap-4 {
    gap: 16px;
}

.mb-6 {
    margin-bottom: 24px;
}
