/* Extracted from resources/views\pages\business-api.blade.php. Keep page-specific styles centralized here. */
.business-api-docs {
        --business-ink: #10231f;
        --business-muted: #5d7470;
        --business-line: #dbe7e4;
        --business-accent: #0f766e;
        --business-accent-soft: #e6f5f3;
        --business-code: #0f172a;
        color: var(--business-ink);
        max-width: 100%;
        min-width: 0;
    }
    .business-api-docs .docs-hero {
        background: radial-gradient(circle at 10% 5%, rgba(15, 118, 110, .2), transparent 38%), linear-gradient(130deg, var(--theme-surface-muted), var(--theme-accent-soft));
        border: 1px solid var(--business-line);
        border-radius: 16px;
        padding: 26px;
        margin-bottom: 18px;
    }
    .business-api-docs .docs-hero h1 { margin: 0 0 10px; font-size: 1.8rem; letter-spacing: -.025em; }
    .business-api-docs .docs-hero p { color: var(--business-muted); max-width: 54rem; }
    .business-api-docs .docs-endpoint { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 10px; max-width: 100%; min-width: 0; padding: 9px 14px; background: var(--theme-surface); border: 1px solid var(--business-line); border-radius: 999px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; overflow-wrap: anywhere; }
    .business-api-docs .docs-endpoint > span:last-child { min-width: 0; overflow-wrap: anywhere; word-break: break-word; }
    .business-api-docs .docs-method { padding: 2px 9px; border-radius: 999px; background: var(--business-accent); color: #fff; font-weight: 700; font-size: .78rem; }
    .business-api-docs .docs-actions, .business-api-docs .docs-toc { display: flex; flex-wrap: wrap; gap: 8px; }
    .business-api-docs .docs-actions { margin-top: 16px; }
    .business-api-docs .docs-toc { margin-bottom: 18px; }
    .business-api-docs .docs-toc a { color: var(--theme-text); background: var(--theme-surface); border: 1px solid var(--business-line); border-radius: 999px; padding: 7px 12px; font-size: .88rem; font-weight: 600; text-decoration: none; }
    .business-api-docs .docs-section { background: var(--theme-surface); border: 1px solid var(--business-line); border-radius: 14px; min-width: 0; padding: 21px; margin-bottom: 14px; }
    .business-api-docs .docs-section h2 { margin: 0 0 10px; font-size: 1.35rem; }
    .business-api-docs .docs-section h3 { margin: 18px 0 8px; font-size: 1rem; text-transform: uppercase; letter-spacing: .02em; color: var(--theme-text); }
    .business-api-docs .docs-section p, .business-api-docs .docs-section li { color: var(--business-muted); }
    .business-api-docs .docs-section code { color: var(--theme-accent); background: var(--business-accent-soft); border-radius: 5px; padding: 1px 5px; overflow-wrap: anywhere; }
    .business-api-docs .docs-code { background: var(--business-code); color: #e2e8f0; border: 1px solid #1e293b; border-radius: 12px; max-width: 100%; padding: 15px; overflow-x: auto; overscroll-behavior-inline: contain; -webkit-overflow-scrolling: touch; scrollbar-width: thin; touch-action: pan-x; white-space: pre; }
    .business-api-docs .docs-code code { color: inherit; background: transparent; padding: 0; white-space: pre; }
    .business-api-docs .docs-note { padding: 12px 14px; background: var(--theme-surface-muted); border: 1px solid var(--theme-accent-border); border-left: 4px solid var(--business-accent); border-radius: 9px; color: var(--theme-accent); }
    .business-api-docs .docs-warning { border-left-color: #d97706; background: var(--theme-warning-soft); border-color: var(--theme-warning-border); color: var(--theme-warning); }
    .business-api-docs .table thead th { background: var(--theme-accent-soft); color: var(--theme-text); border-color: var(--business-line); }
    .business-api-docs .table td, .business-api-docs .table th { border-color: var(--business-line); vertical-align: top; }
    .business-api-docs .table-responsive { max-width: 100%; overscroll-behavior-inline: contain; -webkit-overflow-scrolling: touch; }
    .business-api-docs .field-list { min-width: 10rem; }
    .business-api-docs .field-permalink { color: inherit; display: inline-flex; align-items: center; gap: 6px; max-width: 100%; text-decoration: none; }
    .business-api-docs .field-permalink code { overflow-wrap: normal; white-space: nowrap; word-break: normal; }
    .business-api-docs .field-permalink .fa-link { color: var(--business-muted); font-size: .7rem; opacity: 0; transition: opacity .15s ease; }
    .business-api-docs .field-permalink:hover .fa-link, .business-api-docs .field-permalink:focus .fa-link { opacity: 1; }
    .business-api-docs tr:target td { background: var(--theme-accent-soft); }
    .business-api-docs [id] { scroll-margin-top: 5rem; }
    body[data-page="business-api-docs"] .public-wrapper { overflow-x: clip; }

    @media (max-width: 767.98px) {
        .business-api-docs .table-responsive { border: 0; overflow: visible; }
        .business-api-docs .docs-mobile-table,
        .business-api-docs .docs-mobile-table tbody { border: 0; display: block; min-width: 0; width: 100%; }
        .business-api-docs .docs-mobile-table thead { clip: rect(0 0 0 0); clip-path: inset(50%); height: 1px; overflow: hidden; position: absolute; white-space: nowrap; width: 1px; }
        .business-api-docs .docs-mobile-table tbody tr { background: var(--theme-surface); border: 1px solid var(--business-line); border-radius: 10px; box-shadow: 0 3px 12px rgba(16, 35, 31, .04); display: block; margin-bottom: 11px; overflow: hidden; width: 100%; }
        .business-api-docs .docs-mobile-table tbody td { border: 0; border-bottom: 1px solid var(--theme-accent-border); display: block; font-size: .86rem; line-height: 1.45; min-width: 0; overflow-wrap: anywhere; padding: 10px 11px; text-align: left; white-space: normal; width: 100%; word-break: break-word; }
        .business-api-docs .docs-mobile-table tbody td:last-child { border-bottom: 0; }
        .business-api-docs .docs-mobile-table tbody td::before { color: var(--theme-muted); display: block; font-size: .68rem; font-weight: 800; letter-spacing: .055em; margin-bottom: 5px; text-transform: uppercase; }
        .business-api-docs .docs-mobile-table tbody td:first-child { background: var(--theme-accent-soft); }
        .business-api-docs .docs-auth-table td:nth-child(1)::before { content: "Transport"; }
        .business-api-docs .docs-auth-table td:nth-child(2)::before { content: "Example"; }
        .business-api-docs .docs-auth-table td:nth-child(3)::before { content: "Notes"; }
        .business-api-docs .docs-field-table td:nth-child(1)::before { content: "Field"; }
        .business-api-docs .docs-field-table td:nth-child(2)::before { content: "Rule"; }
        .business-api-docs .docs-field-table td:nth-child(3)::before { content: "Description"; }
        .business-api-docs .docs-tunnel-table td:nth-child(1)::before { content: "Tunnel family"; }
        .business-api-docs .docs-tunnel-table td:nth-child(2)::before { content: "Required fields"; }
        .business-api-docs .docs-tunnel-table td:nth-child(3)::before { content: "Format example"; }
        .business-api-docs .docs-quota-table td:nth-child(1)::before { content: "Header"; }
        .business-api-docs .docs-quota-table td:nth-child(2)::before { content: "Meaning"; }
        .business-api-docs .docs-errors-table td:nth-child(1)::before { content: "Status"; }
        .business-api-docs .docs-errors-table td:nth-child(2)::before { content: "Meaning"; }
        .business-api-docs .docs-mobile-table tbody td:first-child > code { display: inline-block; max-width: 100%; overflow-x: auto; overflow-wrap: normal; scrollbar-width: thin; white-space: nowrap; word-break: normal; }
        .business-api-docs .field-list { min-width: 0; }
        .business-api-docs .field-permalink { min-height: 44px; padding: 5px 0; width: 100%; }
        .business-api-docs .field-permalink .fa-link { flex: 0 0 auto; opacity: .65; }
        .business-api-docs .docs-code { font-size: .8rem; padding: 12px; }
    }

    @media (max-width: 575.98px) {
        .business-api-docs .docs-hero, .business-api-docs .docs-section { padding: 16px; border-radius: 11px; }
        .business-api-docs .docs-hero h1 { font-size: 1.42rem; }
        .business-api-docs .docs-section h2 { font-size: 1.17rem; }
        .business-api-docs .docs-section h3 { font-size: .9rem; }
        .business-api-docs .docs-endpoint { align-items: flex-start; border-radius: 10px; flex-direction: column; font-size: .82rem; width: 100%; }
        .business-api-docs .docs-endpoint > span:last-child { display: block; max-width: 100%; overflow-x: auto; overflow-wrap: normal; padding-bottom: 2px; scrollbar-width: thin; white-space: nowrap; word-break: normal; }
        .business-api-docs .docs-method { flex: 0 0 auto; }
        .business-api-docs .docs-actions > .btn { align-items: center; display: inline-flex; justify-content: center; min-height: 44px; text-align: center; white-space: normal; width: 100%; }
        .business-api-docs .docs-toc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
        .business-api-docs .docs-toc a { align-items: center; display: flex; justify-content: center; line-height: 1.2; min-height: 44px; text-align: center; }
        .business-api-docs .docs-section ul { padding-left: 1.2rem; }
        .business-api-docs .docs-code,
        .business-api-docs .docs-code code { overflow-wrap: normal; white-space: pre; word-break: normal; }
        .business-api-docs .docs-code { overflow-x: auto; }
    }

    @media (max-width: 359.98px) {
        .business-api-docs .docs-hero,
        .business-api-docs .docs-section { padding: 13px; }
        .business-api-docs .docs-toc { grid-template-columns: minmax(0, 1fr); }
    }
