        * { box-sizing: border-box; margin: 0; padding: 0; }
        body { font-family: 'Vazirmatn', 'Inter', Tahoma, Arial, sans-serif; background-color: #f1f5f9; color: #1e293b; line-height: 1.5; }
        html[lang="en"] body { font-family: 'Inter', 'Vazirmatn', Arial, sans-serif; }
        
        /* Core Offline Layout & Visibility Fixes */
        .hidden { display: none !important; }
        .flex { display: flex; }
        .inline-flex { display: inline-flex; }
        .grid { display: grid; }
        .block { display: block; }
        .inline-block { display: inline-block; }
        .flex-col { flex-direction: column; }
        .flex-wrap { flex-wrap: wrap; }
        .flex-1 { flex: 1 1 0%; }
        .flex-grow { flex-grow: 1; }
        .shrink-0 { flex-shrink: 0; }
        .items-center { align-items: center; }
        .items-start { align-items: flex-start; }
        .items-end { align-items: flex-end; }
        .justify-between { justify-content: space-between; }
        .justify-center { justify-content: center; }
        .justify-end { justify-content: flex-end; }
        .justify-start { justify-content: flex-start; }
        .gap-1 { gap: 0.25rem; }
        .gap-1\.5 { gap: 0.375rem; }
        .gap-2 { gap: 0.5rem; }
        .gap-2\.5 { gap: 0.625rem; }
        .gap-3 { gap: 0.75rem; }
        .gap-3\.5 { gap: 0.875rem; }
        .gap-4 { gap: 1rem; }
        .gap-5 { gap: 1.25rem; }
        .space-y-1 > * + * { margin-top: 0.25rem; }
        .space-y-1\.5 > * + * { margin-top: 0.375rem; }
        .space-y-2 > * + * { margin-top: 0.5rem; }
        .space-y-2\.5 > * + * { margin-top: 0.625rem; }
        .space-y-3 > * + * { margin-top: 0.75rem; }
        .space-y-3\.5 > * + * { margin-top: 0.875rem; }
        .space-y-4 > * + * { margin-top: 1rem; }
        .space-y-5 > * + * { margin-top: 1.25rem; }
        .space-y-6 > * + * { margin-top: 1.5rem; }

        /* Grid Columns */
        .grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
        .grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
        .grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
        @media (min-width: 640px) {
            .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
            .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
            .sm\:inline { display: inline; }
            .sm\:w-auto { width: auto; }
            .sm\:p-10 { padding: 2.5rem; }
            .sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
            .sm\:text-xl { font-size: 1.25rem; }
            .sm\:text-sm { font-size: 0.875rem; }
            .sm\:text-base { font-size: 1rem; }
        }
        @media (min-width: 768px) {
            .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
            .md\:flex-row { flex-direction: row; }
            .md\:items-center { align-items: center; }
        }
        @media (min-width: 1024px) {
            .lg\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
            .lg\:col-span-5 { grid-column: span 5 / span 5; }
            .lg\:col-span-7 { grid-column: span 7 / span 7; }
            .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
            .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
            .lg\:grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
            .lg\:grid-cols-7 { grid-template-columns: repeat(7, minmax(0, 1fr)); }
            .lg\:static { position: static; }
            .lg\:translate-x-0 { transform: translateX(0) !important; }
            .lg\:hidden { display: none !important; }
            .lg\:w-auto { width: auto; }
        }

        /* Positioning & Sizing */
        .fixed { position: fixed; }
        .sticky { position: sticky; }
        .relative { position: relative; }
        .absolute { position: absolute; }
        .inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
        .inset-y-0 { top: 0; bottom: 0; }
        .top-0 { top: 0; }
        .bottom-5 { bottom: 1.25rem; }
        .start-0 { inset-inline-start: 0; }
        .end-0 { inset-inline-end: 0; }
        .end-5 { inset-inline-end: 1.25rem; }
        .z-10 { z-index: 10; }
        .z-20 { z-index: 20; }
        .z-30 { z-index: 30; }
        .z-40 { z-index: 40; }
        .z-50 { z-index: 50; }
        .w-full { width: 100%; }
        .w-72 { width: 18rem; }
        .w-48 { width: 12rem; }
        .w-44 { width: 11rem; }
        .w-24 { width: 6rem; }
        .w-16 { width: 4rem; }
        .w-14 { width: 3.5rem; }
        .w-12 { width: 3rem; }
        .w-11 { width: 2.75rem; }
        .w-10 { width: 2.5rem; }
        .w-9 { width: 2.25rem; }
        .w-6 { width: 1.5rem; }
        .w-5 { width: 1.25rem; }
        .w-4 { width: 1rem; }
        .w-2 { width: 0.5rem; }
        .h-24 { height: 6rem; }
        .h-16 { height: 4rem; }
        .h-14 { height: 3.5rem; }
        .h-12 { height: 3rem; }
        .h-11 { height: 2.75rem; }
        .h-10 { height: 2.5rem; }
        .h-9 { height: 2.25rem; }
        .h-7 { height: 1.75rem; }
        .h-6 { height: 1.5rem; }
        .h-4 { height: 1rem; }
        .h-2 { height: 0.5rem; }
        .min-h-screen { min-height: 100vh; }
        .min-w-0 { min-width: 0; }
        .max-w-7xl { max-width: 80rem; }
        .max-w-5xl { max-width: 64rem; }
        .max-w-4xl { max-width: 56rem; }
        .max-w-3xl { max-width: 48rem; }
        .max-w-2xl { max-width: 42rem; }
        .max-w-xl { max-width: 36rem; }
        .max-w-md { max-width: 28rem; }
        .max-w-sm { max-width: 24rem; }
        .max-h-72 { max-height: 18rem; }
        .mx-auto { margin-left: auto; margin-right: auto; }
        .my-auto { margin-top: auto; margin-bottom: auto; }
        .m-4 { margin: 1rem; }
        .mt-0\.5 { margin-top: 0.125rem; }
        .mt-1 { margin-top: 0.25rem; }
        .mt-1\.5 { margin-top: 0.375rem; }
        .mt-2 { margin-top: 0.5rem; }
        .mt-3 { margin-top: 0.75rem; }
        .mt-10 { margin-top: 2.5rem; }
        .mb-1 { margin-bottom: 0.25rem; }
        .mb-1\.5 { margin-bottom: 0.375rem; }
        .mb-2 { margin-bottom: 0.5rem; }
        .mb-3 { margin-bottom: 0.75rem; }
        .mb-4 { margin-bottom: 1rem; }
        .mb-5 { margin-bottom: 1.25rem; }
        .me-1 { margin-inline-end: 0.25rem; }
        .me-1\.5 { margin-inline-end: 0.375rem; }
        .ms-1 { margin-inline-start: 0.25rem; }

        /* Padding */
        .p-1 { padding: 0.25rem; }
        .p-1\.5 { padding: 0.375rem; }
        .p-2 { padding: 0.5rem; }
        .p-2\.5 { padding: 0.625rem; }
        .p-3 { padding: 0.75rem; }
        .p-3\.5 { padding: 0.875rem; }
        .p-4 { padding: 1rem; }
        .p-5 { padding: 1.25rem; }
        .p-6 { padding: 1.5rem; }
        .p-8 { padding: 2rem; }
        .px-1\.5 { padding-left: 0.375rem; padding-right: 0.375rem; }
        .px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
        .px-2\.5 { padding-left: 0.625rem; padding-right: 0.625rem; }
        .px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
        .px-3\.5 { padding-left: 0.875rem; padding-right: 0.875rem; }
        .px-4 { padding-left: 1rem; padding-right: 1rem; }
        .px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
        .px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
        .px-8 { padding-left: 2rem; padding-right: 2rem; }
        .py-0\.5 { padding-top: 0.125rem; padding-bottom: 0.125rem; }
        .py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
        .py-1\.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
        .py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
        .py-2\.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
        .py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
        .py-3\.5 { padding-top: 0.875rem; padding-bottom: 0.875rem; }
        .py-4 { padding-top: 1rem; padding-bottom: 1rem; }
        .py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
        .py-8 { padding-top: 2rem; padding-bottom: 2rem; }
        .py-12 { padding-top: 3rem; padding-bottom: 3rem; }
        .pt-1 { padding-top: 0.25rem; }
        .pt-2 { padding-top: 0.5rem; }
        .pt-2\.5 { padding-top: 0.625rem; }
        .pt-3 { padding-top: 0.75rem; }
        .pt-6 { padding-top: 1.5rem; }
        .pt-8 { padding-top: 2rem; }
        .pb-2 { padding-bottom: 0.5rem; }
        .pb-3 { padding-bottom: 0.75rem; }
        .ps-3\.5 { padding-inline-start: 0.875rem; }
        .ps-10 { padding-inline-start: 2.5rem; }
        .pe-3\.5 { padding-inline-end: 0.875rem; }
        .pe-10 { padding-inline-end: 2.5rem; }

        /* Typography */
        .text-\[10px\] { font-size: 10px; }
        .text-\[11px\] { font-size: 11px; }
        .text-xs { font-size: 0.75rem; }
        .text-sm { font-size: 0.875rem; }
        .text-base { font-size: 1rem; }
        .text-lg { font-size: 1.125rem; }
        .text-xl { font-size: 1.25rem; }
        .text-2xl { font-size: 1.5rem; }
        .text-3xl { font-size: 1.875rem; }
        .font-medium { font-weight: 500; }
        .font-semibold { font-weight: 600; }
        .font-bold { font-weight: 700; }
        .font-extrabold { font-weight: 800; }
        .font-black { font-weight: 900; }
        .font-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }
        .text-center { text-align: center; }
        .text-start { text-align: start; }
        .text-end { text-align: end; }
        .underline { text-decoration: underline; }
        .truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
        .whitespace-nowrap { white-space: nowrap; }

        /* Colors & Backgrounds */
        .bg-white { background-color: #ffffff; }
        .bg-transparent { background-color: transparent; }
        .bg-slate-50 { background-color: #f8fafc; }
        .bg-slate-100 { background-color: #f1f5f9; }
        .bg-slate-200 { background-color: #e2e8f0; }
        .bg-slate-800 { background-color: #1e293b; }
        .bg-slate-900 { background-color: #0f172a; }
        .bg-slate-950 { background-color: #020617; }
        .bg-blue-50 { background-color: #eff6ff; }
        .bg-blue-100 { background-color: #dbeafe; }
        .bg-blue-600 { background-color: #2563eb; }
        .bg-blue-700 { background-color: #1d4ed8; }
        .bg-blue-900 { background-color: #1e3a8a; }
        .bg-indigo-50 { background-color: #eef2ff; }
        .bg-indigo-100 { background-color: #e0e7ff; }
        .bg-indigo-600 { background-color: #4f46e5; }
        .bg-indigo-900 { background-color: #312e81; }
        .bg-emerald-50 { background-color: #ecfdf5; }
        .bg-emerald-100 { background-color: #d1fae5; }
        .bg-emerald-600 { background-color: #059669; }
        .bg-emerald-700 { background-color: #047857; }
        .bg-emerald-900 { background-color: #064e3b; }
        .bg-amber-50 { background-color: #fffbeb; }
        .bg-amber-100 { background-color: #fef3c7; }
        .bg-amber-500 { background-color: #f59e0b; }
        .bg-amber-600 { background-color: #d97706; }
        .bg-rose-50 { background-color: #fff1f2; }
        .bg-rose-100 { background-color: #ffe4e6; }
        .bg-rose-600 { background-color: #e11d48; }
        .bg-cyan-50 { background-color: #ecfeff; }
        .bg-purple-50 { background-color: #faf5ff; }
        
        /* Gradient Overrides */
        .from-blue-900 { background: linear-gradient(180deg, #1e3a8a 0%, #020617 100%); }
        .from-blue-600 { background: linear-gradient(135deg, #2563eb 0%, #3730a3 100%); }
        .from-amber-500 { background: linear-gradient(135deg, #f59e0b 0%, #c2410c 100%); }
        .from-emerald-600 { background: linear-gradient(135deg, #059669 0%, #115e59 100%); }

        /* Text Colors */
        .text-white { color: #ffffff; }
        .text-slate-200 { color: #e2e8f0; }
        .text-slate-300 { color: #cbd5e1; }
        .text-slate-400 { color: #94a3b8; }
        .text-slate-500 { color: #64748b; }
        .text-slate-600 { color: #475569; }
        .text-slate-700 { color: #334155; }
        .text-slate-800 { color: #1e293b; }
        .text-slate-900 { color: #0f172a; }
        .text-slate-950 { color: #020617; }
        .text-blue-100 { color: #dbeafe; }
        .text-blue-200 { color: #bfdbfe; }
        .text-blue-600 { color: #2563eb; }
        .text-blue-700 { color: #1d4ed8; }
        .text-blue-800 { color: #1e40af; }
        .text-blue-900 { color: #1e3a8a; }
        .text-blue-950 { color: #172554; }
        .text-indigo-600 { color: #4f46e5; }
        .text-indigo-700 { color: #4338ca; }
        .text-indigo-800 { color: #3730a3; }
        .text-indigo-900 { color: #312e81; }
        .text-emerald-200 { color: #a7f3d0; }
        .text-emerald-400 { color: #34d399; }
        .text-emerald-600 { color: #059669; }
        .text-emerald-700 { color: #047857; }
        .text-emerald-800 { color: #065f46; }
        .text-amber-300 { color: #fcd34d; }
        .text-amber-400 { color: #fbbf24; }
        .text-amber-600 { color: #d97706; }
        .text-amber-700 { color: #b45309; }
        .text-amber-800 { color: #92400e; }
        .text-rose-300 { color: #fda4af; }
        .text-rose-600 { color: #e11d48; }
        .text-rose-700 { color: #be123c; }
        .text-rose-800 { color: #9f1239; }
        .text-cyan-600 { color: #0891b2; }
        .text-purple-600 { color: #9333ea; }
        .text-purple-700 { color: #7e22ce; }
        .text-purple-800 { color: #6b21a8; }

        /* Borders & Rounded */
        .border { border-width: 1px; border-style: solid; border-color: #e2e8f0; }
        .border-2 { border-width: 2px; border-style: solid; }
        .border-t { border-top-width: 1px; border-top-style: solid; border-color: #e2e8f0; }
        .border-b { border-bottom-width: 1px; border-bottom-style: solid; border-color: #e2e8f0; }
        .border-b-2 { border-bottom-width: 2px; border-bottom-style: solid; }
        .border-slate-200 { border-color: #e2e8f0; }
        .border-slate-300 { border-color: #cbd5e1; }
        .border-slate-400 { border-color: #94a3b8; }
        .border-slate-700 { border-color: #334155; }
        .border-slate-800 { border-color: #1e293b; }
        .border-blue-100 { border-color: #dbeafe; }
        .border-blue-200 { border-color: #bfdbfe; }
        .border-indigo-200 { border-color: #c7d2fe; }
        .border-emerald-200 { border-color: #a7f3d0; }
        .border-emerald-500 { border-color: #10b981; }
        .border-amber-200 { border-color: #fde68a; }
        .border-amber-300 { border-color: #fcd34d; }
        .border-amber-400 { border-color: #fbbf24; }
        .border-rose-200 { border-color: #fecdd3; }
        .border-rose-300 { border-color: #fda4af; }
        .rounded { border-radius: 0.25rem; }
        .rounded-md { border-radius: 0.375rem; }
        .rounded-lg { border-radius: 0.5rem; }
        .rounded-xl { border-radius: 0.75rem; }
        .rounded-2xl { border-radius: 1rem; }
        .rounded-3xl { border-radius: 1.5rem; }
        .rounded-full { border-radius: 9999px; }

        /* Effects & Interactive */
        .shadow-sm { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }
        .shadow { box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1); }
        .shadow-md { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1); }
        .shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1); }
        .shadow-xl { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1); }
        .shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); }
        .overflow-hidden { overflow: hidden; }
        .overflow-x-auto { overflow-x: auto; }
        .overflow-y-auto { overflow-y: auto; }
        .cursor-pointer { cursor: pointer; }
        .outline-none { outline: none; }
        button { cursor: pointer; border: none; font-family: inherit; }
        input, select { font-family: inherit; }
        table { width: 100%; border-collapse: collapse; }
        .divide-y > * + * { border-top: 1px solid #e2e8f0; }
        .opacity-0 { opacity: 0; }
        .translate-y-20 { transform: translateY(5rem); }

        /* Original Custom Styles */
        .uniform-field { height: 40px !important; padding-top: 0 !important; padding-bottom: 0 !important; line-height: 38px; }
        .uniform-date-grid select { height: 40px !important; padding-top: 0 !important; padding-bottom: 0 !important; }
        ::-webkit-scrollbar { width: 7px; height: 7px; }
        ::-webkit-scrollbar-track { background: #f1f5f9; }
        ::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
        ::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

        /* Resizable Finder Window */
        #finder-window-box {
            resize: both;
            overflow: auto;
            min-width: 340px;
            min-height: 280px;
            max-width: 98vw;
            max-height: 95vh;
        }

        @media print {
            @page { size: A4 landscape; margin: 8mm; }
            .no-print { display: none !important; }
            .print-only { display: block !important; }
            body { background-color: white !important; color: black !important; font-size: 10px !important; }
            #main-wrapper { margin: 0 !important; width: 100% !important; padding: 0 !important; }
            .print-full { width: 100% !important; box-shadow: none !important; border: none !important; }
            table { width: 100% !important; border-collapse: collapse !important; }
            th, td { border: 1px solid #64748b !important; padding: 5px 6px !important; color: #0f172a !important; vertical-align: middle !important; }
            th { background-color: #e2e8f0 !important; font-weight: 800 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }

            /* Print Modes for Modals */
            body.printing-modal #app-shell { display: none !important; }
            body.printing-expense-modal #expense-view-modal { position: static !important; display: block !important; background: white !important; padding: 0 !important; }
            body.printing-expense-modal #expense-view-card { box-shadow: none !important; border: 2px solid #0f172a !important; max-width: 100% !important; width: 100% !important; }

            body.printing-record-modal #record-view-modal { position: static !important; display: block !important; background: white !important; padding: 0 !important; }
            body.printing-record-modal #record-view-card { box-shadow: none !important; border: 2px solid #0f172a !important; max-width: 100% !important; width: 100% !important; }

            body.printing-owner-modal #owner-report-modal { position: static !important; display: block !important; background: white !important; padding: 0 !important; }
            body.printing-owner-modal #owner-report-card { box-shadow: none !important; border: 2px solid #0f172a !important; max-width: 100% !important; width: 100% !important; }

            body.printing-entity-modal #entity-view-modal { position: static !important; display: block !important; background: white !important; padding: 0 !important; }
            body.printing-entity-modal #entity-view-card { box-shadow: none !important; border: 2px solid #0f172a !important; max-width: 100% !important; width: 100% !important; }

            body.printing-customers-list #tab-reports { display: none !important; }
            body.printing-customers-list #tab-customers { display: block !important; }
        }

/* Shared FHN interface */
:root {
    --fhn-ink: #0f172a;
    --fhn-border: #cbd5e1;
    --fhn-accent: #1d4ed8;
    --fhn-accent-soft: #eff6ff;
    --fhn-surface: #ffffff;
}

.fhn-shortcut,
.fhn-secondary-button {
    background: var(--fhn-surface);
    border: 1px solid var(--fhn-border);
    color: var(--fhn-ink);
}

.fhn-shortcut:hover,
.fhn-secondary-button:hover {
    background: var(--fhn-accent-soft);
    border-color: var(--fhn-accent);
}

.fhn-shortcut-label {
    background: var(--fhn-accent-soft);
    color: var(--fhn-accent);
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

@media screen {
    #app-shell :where(input, select, textarea).uniform-field {
        border-color: var(--fhn-border);
    }

    #app-shell :where(thead) {
        background-color: #f8fafc;
        color: #334155;
    }

    #app-shell :where(tbody tr) {
        border-bottom: 1px solid #e2e8f0;
    }

    #app-shell :where(tbody tr:hover) {
        background-color: #f8fafc;
    }
}

/* Logo-inspired green accents for the sign-in screen and application shell. */
:root {
    --fhn-brand-dark: #0f3175;
    --fhn-brand-primary: #96ca3c;
    --fhn-brand-hover: #a9d65a;
    --fhn-brand-focus: #193c8e;
    --fhn-brand-soft: #f5faed;
}

#login-screen {
    background: var(--fhn-brand-soft);
}

#sidebar {
    background-color: var(--fhn-brand-dark);
}

/* Existing scripts toggle bg-blue-600 when these controls become active. */
#login-screen :is(#auth-tab-login, #auth-tab-register).bg-blue-600,
#sidebar :is(.nav-btn, button).bg-blue-600,
#main-wrapper > header :is(#lang-btn-ps, #lang-btn-fa, #lang-btn-en).bg-blue-600,
#login-screen button[type="submit"],
#main-wrapper > header button[onclick="openRegistrationMode('onlyForm')"] {
    background-color: var(--fhn-brand-primary);
    color: #0b1932;
}

#login-screen button[type="submit"]:hover,
#main-wrapper > header button[onclick="openRegistrationMode('onlyForm')"]:hover {
    background-color: var(--fhn-brand-hover);
}

#login-screen :focus-visible,
#app-shell > #sidebar :focus-visible,
#main-wrapper > header :focus-visible {
    outline-color: var(--fhn-brand-focus);
}

#sidebar :focus-visible {
    outline-color: #96ca3c;
}

/* Registration and I-number screens */
:is(#tab-register, #tab-inumbers) button.bg-blue-600 {
    background-color: var(--fhn-brand-primary, #96ca3c);
    color: #0b1932;
}

:is(#tab-register, #tab-inumbers) button.bg-blue-600:hover {
    background-color: var(--fhn-brand-hover, #a9d65a);
}

.fhn-table-scroll {
    max-width: 100%;
    overflow-x: auto;
}

.fhn-table-scroll > table {
    min-width: 48rem;
}

.fhn-table-scroll:focus-visible {
    outline: 2px solid var(--fhn-brand-focus, #193c8e);
    outline-offset: -2px;
}

:is(#top-fields-grid, #trucks-container) .grid > *,
#top-fields-grid > * {
    min-width: 0;
}

@media (max-width: 639px) {
    :is(#tab-register, #tab-inumbers) :is(button, select, input:not([type="hidden"])).uniform-field,
    #tab-register :is(#submit-btn, button[onclick="addTruckRow()"]),
    #tab-inumbers tbody button {
        min-height: 44px;
    }
}

/* Companies, customers, expenses, reports, and settings */
.fhn-primary-action {
    background-color: var(--fhn-brand-primary, #96ca3c);
    color: #0b1932;
}
.fhn-primary-action:hover {
    background-color: var(--fhn-brand-hover, #a9d65a);
}

@media screen and (max-width: 639px) {
    :is(#tab-companies, #tab-customers, #tab-financial, #tab-reports, #tab-settings)
    :is(button, input:not([type="hidden"]), select, textarea) {
        max-width: 100%;
        min-height: 44px;
    }

    :is(#tab-companies, #tab-customers, #tab-financial, #tab-settings) form button[type="submit"] {
        width: 100%;
        justify-content: center;
    }
}

@media print {
    #tab-customers .fhn-table-scroll,
    #tab-reports .fhn-table-scroll {
        overflow: visible;
    }

    #tab-customers .fhn-table-scroll > table,
    #tab-reports .fhn-table-scroll > table {
        min-width: 0;
    }
}
