-- 079_state_trucking_requirements.sql
--
-- State-level trucking compliance requirements for all 50 US states + DC.
-- Covers IRP, IFTA, weight-distance taxes, state motor carrier permits,
-- emissions compliance, intrastate authority, state DOT registration,
-- and state insurance filing requirements.
--
-- Data sources: FMCSA, IRP Inc, IFTA Inc, state DOT/DMV/PUC websites,
-- J.J. Keller, Simplex Group, industry compliance databases.
-- Verified May 2026 — re-verify before filing.

BEGIN;

CREATE TABLE IF NOT EXISTS state_trucking_requirements (
    id                          SERIAL PRIMARY KEY,
    state_code                  CHAR(2) NOT NULL UNIQUE REFERENCES jurisdictions(code),

    -- ── IRP (International Registration Plan) ──────────────────────────
    irp_member                  BOOLEAN NOT NULL DEFAULT FALSE,
    irp_agency                  TEXT,
    irp_url                     TEXT,

    -- ── IFTA (International Fuel Tax Agreement) ────────────────────────
    ifta_member                 BOOLEAN NOT NULL DEFAULT FALSE,
    ifta_agency                 TEXT,
    ifta_url                    TEXT,

    -- ── Weight/Distance Tax ────────────────────────────────────────────
    weight_distance_tax         BOOLEAN NOT NULL DEFAULT FALSE,
    weight_distance_tax_name    TEXT,          -- 'Weight-Mile Tax', 'Highway Use Tax', etc.
    weight_distance_agency      TEXT,
    weight_distance_url         TEXT,
    weight_distance_threshold_lbs INTEGER,     -- min GVW that triggers tax
    weight_distance_notes       TEXT,

    -- ── State Motor Carrier Permit ─────────────────────────────────────
    state_carrier_permit        BOOLEAN NOT NULL DEFAULT FALSE,
    state_carrier_permit_name   TEXT,          -- 'Motor Carrier Permit (MCP)', 'TxDMV Number', etc.
    state_carrier_permit_agency TEXT,
    state_carrier_permit_url    TEXT,
    state_carrier_permit_notes  TEXT,

    -- ── Emissions Compliance ───────────────────────────────────────────
    emissions_program           BOOLEAN NOT NULL DEFAULT FALSE,
    emissions_program_name      TEXT,          -- 'CARB Truck & Bus Rule', 'Advanced Clean Trucks', etc.
    emissions_agency            TEXT,
    emissions_url               TEXT,
    emissions_notes             TEXT,

    -- ── Intrastate Operating Authority ─────────────────────────────────
    intrastate_authority_required BOOLEAN NOT NULL DEFAULT FALSE,
    intrastate_authority_name   TEXT,          -- 'Certificate of Authority', 'CPCN', etc.
    intrastate_authority_agency TEXT,
    intrastate_authority_url    TEXT,
    intrastate_authority_notes  TEXT,

    -- ── State DOT Registration ─────────────────────────────────────────
    -- States that require their own DOT-like number beyond federal USDOT
    state_dot_required          BOOLEAN NOT NULL DEFAULT FALSE,
    state_dot_number_name       TEXT,          -- 'CA Number', 'TxDMV Number', etc.
    state_dot_agency            TEXT,
    state_dot_url               TEXT,
    state_dot_notes             TEXT,

    -- ── State Insurance Filing ─────────────────────────────────────────
    -- States with insurance filing requirements beyond federal FMCSA BIPD
    state_insurance_filing      BOOLEAN NOT NULL DEFAULT FALSE,
    state_insurance_min_cents   INTEGER,       -- state minimum liability in cents (0 = federal default)
    state_insurance_agency      TEXT,
    state_insurance_url         TEXT,
    state_insurance_notes       TEXT,

    -- ── Unified Carrier Registration (UCR) ─────────────────────────────
    -- All interstate carriers must register; some states are the base state
    ucr_base_state              BOOLEAN NOT NULL DEFAULT TRUE,  -- can this state serve as UCR base?

    -- ── Metadata ───────────────────────────────────────────────────────
    last_verified_date          DATE DEFAULT CURRENT_DATE,
    notes                       TEXT,
    created_at                  TIMESTAMPTZ NOT NULL DEFAULT NOW(),
    updated_at                  TIMESTAMPTZ NOT NULL DEFAULT NOW()
);

CREATE INDEX IF NOT EXISTS idx_state_trucking_irp
  ON state_trucking_requirements(irp_member) WHERE irp_member = TRUE;
CREATE INDEX IF NOT EXISTS idx_state_trucking_weight_dist
  ON state_trucking_requirements(weight_distance_tax) WHERE weight_distance_tax = TRUE;
CREATE INDEX IF NOT EXISTS idx_state_trucking_emissions
  ON state_trucking_requirements(emissions_program) WHERE emissions_program = TRUE;
CREATE INDEX IF NOT EXISTS idx_state_trucking_intrastate
  ON state_trucking_requirements(intrastate_authority_required) WHERE intrastate_authority_required = TRUE;

-- Updated_at trigger
CREATE OR REPLACE FUNCTION set_updated_at_state_trucking_req() RETURNS trigger AS $$
BEGIN
  NEW.updated_at = NOW();
  RETURN NEW;
END;
$$ LANGUAGE plpgsql;

DROP TRIGGER IF EXISTS trg_state_trucking_req_updated_at ON state_trucking_requirements;
CREATE TRIGGER trg_state_trucking_req_updated_at
  BEFORE UPDATE ON state_trucking_requirements
  FOR EACH ROW EXECUTE FUNCTION set_updated_at_state_trucking_req();

-- ──────────────────────────────────────────────────────────────────────
-- Seed all 51 jurisdictions (50 states + DC)
-- ──────────────────────────────────────────────────────────────────────
--
-- Column order in INSERT:
--   state_code,
--   irp_member, irp_agency, irp_url,
--   ifta_member, ifta_agency, ifta_url,
--   weight_distance_tax, weight_distance_tax_name, weight_distance_agency, weight_distance_url, weight_distance_threshold_lbs, weight_distance_notes,
--   state_carrier_permit, state_carrier_permit_name, state_carrier_permit_agency, state_carrier_permit_url, state_carrier_permit_notes,
--   emissions_program, emissions_program_name, emissions_agency, emissions_url, emissions_notes,
--   intrastate_authority_required, intrastate_authority_name, intrastate_authority_agency, intrastate_authority_url, intrastate_authority_notes,
--   state_dot_required, state_dot_number_name, state_dot_agency, state_dot_url, state_dot_notes,
--   state_insurance_filing, state_insurance_min_cents, state_insurance_agency, state_insurance_url, state_insurance_notes,
--   ucr_base_state, notes

INSERT INTO state_trucking_requirements (
    state_code,
    irp_member, irp_agency, irp_url,
    ifta_member, ifta_agency, ifta_url,
    weight_distance_tax, weight_distance_tax_name, weight_distance_agency, weight_distance_url, weight_distance_threshold_lbs, weight_distance_notes,
    state_carrier_permit, state_carrier_permit_name, state_carrier_permit_agency, state_carrier_permit_url, state_carrier_permit_notes,
    emissions_program, emissions_program_name, emissions_agency, emissions_url, emissions_notes,
    intrastate_authority_required, intrastate_authority_name, intrastate_authority_agency, intrastate_authority_url, intrastate_authority_notes,
    state_dot_required, state_dot_number_name, state_dot_agency, state_dot_url, state_dot_notes,
    state_insurance_filing, state_insurance_min_cents, state_insurance_agency, state_insurance_url, state_insurance_notes,
    ucr_base_state, notes
) VALUES

-- ═══════════════════════════════════════════════════════════════════════
-- ALABAMA
-- ═══════════════════════════════════════════════════════════════════════
('AL',
 TRUE, 'Alabama Department of Revenue', 'https://www.revenue.alabama.gov/motor-vehicle/irp-ifta-information/',
 TRUE, 'Alabama Department of Revenue', 'https://www.revenue.alabama.gov/motor-vehicle/irp-ifta-information/',
 FALSE, NULL, NULL, NULL, NULL, NULL,
 FALSE, NULL, NULL, NULL, NULL,
 FALSE, NULL, NULL, NULL, NULL,
 TRUE, 'Certificate of Authority', 'Alabama Public Service Commission', 'https://psc.alabama.gov', 'For-hire intrastate carriers must obtain COA from PSC',
 FALSE, NULL, NULL, NULL, 'USDOT number required for intrastate CMVs',
 FALSE, NULL, NULL, NULL, NULL,
 TRUE, NULL),

-- ═══════════════════════════════════════════════════════════════════════
-- ALASKA
-- ═══════════════════════════════════════════════════════════════════════
('AK',
 FALSE, NULL, NULL,
 TRUE, 'Alaska Department of Administration', 'https://doa.alaska.gov/dmv/commercial/',
 FALSE, NULL, NULL, NULL, NULL, NULL,
 FALSE, NULL, NULL, NULL, NULL,
 FALSE, NULL, NULL, NULL, NULL,
 FALSE, NULL, NULL, NULL, NULL,
 FALSE, NULL, NULL, NULL, 'USDOT number required for intrastate CMVs',
 FALSE, NULL, NULL, NULL, NULL,
 TRUE, 'Not an IRP member. IFTA voluntary participant. Trip permits required for visiting carriers.'),

-- ═══════════════════════════════════════════════════════════════════════
-- ARIZONA
-- ═══════════════════════════════════════════════════════════════════════
('AZ',
 TRUE, 'Arizona Department of Transportation', 'https://azdot.gov/motor-vehicles/commercial-vehicles',
 TRUE, 'Arizona Department of Transportation', 'https://azdot.gov/motor-vehicles/commercial-vehicles',
 FALSE, NULL, NULL, NULL, NULL, NULL,
 FALSE, NULL, NULL, NULL, NULL,
 FALSE, NULL, NULL, NULL, NULL,
 FALSE, NULL, NULL, NULL, NULL,
 FALSE, NULL, NULL, NULL, 'USDOT number required for intrastate CMVs',
 FALSE, NULL, NULL, NULL, NULL,
 TRUE, NULL),

-- ═══════════════════════════════════════════════════════════════════════
-- ARKANSAS
-- ═══════════════════════════════════════════════════════════════════════
('AR',
 TRUE, 'Arkansas Department of Finance and Administration', 'https://www.dfa.arkansas.gov/motor-vehicle/motor-carrier-services/',
 TRUE, 'Arkansas Department of Finance and Administration', 'https://www.dfa.arkansas.gov/motor-vehicle/motor-carrier-services/',
 FALSE, NULL, NULL, NULL, NULL, NULL,
 FALSE, NULL, NULL, NULL, NULL,
 FALSE, NULL, NULL, NULL, NULL,
 TRUE, 'Certificate of Authority', 'Arkansas Highway Commission', 'https://www.ardot.gov/', 'For-hire intrastate carriers',
 FALSE, NULL, NULL, NULL, NULL,
 FALSE, NULL, NULL, NULL, NULL,
 TRUE, NULL),

-- ═══════════════════════════════════════════════════════════════════════
-- CALIFORNIA
-- ═══════════════════════════════════════════════════════════════════════
('CA',
 TRUE, 'California DMV', 'https://www.dmv.ca.gov/portal/vehicle-registration/new-registration/commercial-vehicle-registration/international-registration-program/',
 TRUE, 'California Board of Equalization', 'https://www.boe.ca.gov/sptaxprog/ifta.htm',
 FALSE, NULL, NULL, NULL, NULL, NULL,
 TRUE, 'Motor Carrier Permit (MCP)', 'California DMV', 'https://www.dmv.ca.gov/portal/vehicle-industry-services/motor-carrier-services-mcs/motor-carrier-permits/', 'Required for all for-hire carriers and CMVs over 10,001 lbs GVWR. Annual renewal.',
 TRUE, 'CARB Truck & Bus Rule / Advanced Clean Trucks', 'California Air Resources Board (CARB)', 'https://ww2.arb.ca.gov/our-work/programs/truck-and-bus-regulation', 'All diesel vehicles >14,000 lbs must have 2010+ engine. ACT requires zero-emission sales targets for manufacturers.',
 TRUE, 'Motor Carrier Permit (MCP)', 'California DMV / Caltrans', 'https://www.dmv.ca.gov/portal/vehicle-industry-services/motor-carrier-services-mcs/', 'MCP serves as both state carrier permit and intrastate authority',
 TRUE, 'CA Number', 'California Highway Patrol (CHP)', 'https://dot.ca.gov/programs/traffic-operations/legal-truck-access/ca-number', 'CA Number issued by CHP; required before MCP. Must also have USDOT number.',
 TRUE, 100000000, 'California DMV', 'https://www.dmv.ca.gov/portal/vehicle-industry-services/motor-carrier-services-mcs/', 'Liability $300K-$5M depending on vehicle type and cargo. Most carriers need $750K+. Form E/H filing with CHP.',
 TRUE, 'Most regulated state for trucking. MCP + CA Number + CARB compliance all required.'),

-- ═══════════════════════════════════════════════════════════════════════
-- COLORADO
-- ═══════════════════════════════════════════════════════════════════════
('CO',
 TRUE, 'Colorado Department of Revenue', 'https://www.colorado.gov/pacific/dmv/motor-carrier-services',
 TRUE, 'Colorado Department of Revenue', 'https://www.colorado.gov/pacific/dmv/motor-carrier-services',
 FALSE, NULL, NULL, NULL, NULL, NULL,
 FALSE, NULL, NULL, NULL, NULL,
 TRUE, 'Advanced Clean Trucks (adopted)', 'Colorado Department of Public Health and Environment', 'https://cdphe.colorado.gov/advanced-clean-trucks', 'ACT rule adopted; effective 2027 model year. May be delayed due to federal CRA action.',
 FALSE, NULL, NULL, NULL, NULL,
 FALSE, NULL, NULL, NULL, 'USDOT number required for intrastate CMVs',
 FALSE, NULL, NULL, NULL, NULL,
 TRUE, NULL),

-- ═══════════════════════════════════════════════════════════════════════
-- CONNECTICUT
-- ═══════════════════════════════════════════════════════════════════════
('CT',
 TRUE, 'Connecticut DMV', 'https://portal.ct.gov/dmv/commercial/irp',
 TRUE, 'Connecticut Department of Revenue Services', 'https://portal.ct.gov/drs',
 TRUE, 'Highway Use Fee (HUF)', 'Connecticut Department of Revenue Services', 'https://portal.ct.gov/drs/businesses/highway-use-fee/huf', 26000, 'Effective Jan 2023. 2.5-17.5 cents/mile based on weight class. Quarterly filing via myconneCT.',
 FALSE, NULL, NULL, NULL, NULL,
 FALSE, NULL, NULL, NULL, NULL,
 FALSE, NULL, NULL, NULL, NULL,
 FALSE, NULL, NULL, NULL, 'USDOT number required for intrastate CMVs',
 FALSE, NULL, NULL, NULL, NULL,
 TRUE, 'Highway Use Fee is newest weight-distance tax in US (2023).'),

-- ═══════════════════════════════════════════════════════════════════════
-- DELAWARE
-- ═══════════════════════════════════════════════════════════════════════
('DE',
 TRUE, 'Delaware Division of Motor Vehicles', 'https://www.dmv.de.gov/Vehicle-Services/Commercial-Motor-Vehicle',
 TRUE, 'Delaware Division of Motor Vehicles', 'https://www.dmv.de.gov/Vehicle-Services/Commercial-Motor-Vehicle',
 FALSE, NULL, NULL, NULL, NULL, NULL,
 FALSE, NULL, NULL, NULL, NULL,
 FALSE, NULL, NULL, NULL, NULL,
 FALSE, NULL, NULL, NULL, NULL,
 FALSE, NULL, NULL, NULL, 'USDOT number required for intrastate CMVs',
 FALSE, NULL, NULL, NULL, NULL,
 TRUE, NULL),

-- ═══════════════════════════════════════════════════════════════════════
-- DISTRICT OF COLUMBIA
-- ═══════════════════════════════════════════════════════════════════════
('DC',
 TRUE, 'DC Department of Motor Vehicles', 'https://dmv.dc.gov/',
 TRUE, 'DC Office of Tax and Revenue', 'https://otr.cfo.dc.gov/',
 FALSE, NULL, NULL, NULL, NULL, NULL,
 FALSE, NULL, NULL, NULL, NULL,
 FALSE, NULL, NULL, NULL, NULL,
 FALSE, NULL, NULL, NULL, NULL,
 FALSE, NULL, NULL, NULL, NULL,
 FALSE, NULL, NULL, NULL, NULL,
 TRUE, NULL),

-- ═══════════════════════════════════════════════════════════════════════
-- FLORIDA
-- ═══════════════════════════════════════════════════════════════════════
('FL',
 TRUE, 'Florida Department of Highway Safety and Motor Vehicles', 'https://www.flhsmv.gov/motor-vehicles-tags-titles/commercial-motor-vehicles/',
 TRUE, 'Florida Department of Revenue', 'https://floridarevenue.com/taxes/taxesfees/Pages/motor_fuel.aspx',
 FALSE, NULL, NULL, NULL, NULL, NULL,
 FALSE, NULL, NULL, NULL, NULL,
 FALSE, NULL, NULL, NULL, NULL,
 FALSE, NULL, NULL, NULL, 'No separate state intrastate authority; federal authority sufficient for for-hire interstate. Intrastate for-hire may need FDOT registration.',
 FALSE, NULL, NULL, NULL, 'USDOT number required for intrastate CMVs',
 TRUE, 75000000, 'Florida DHSMV', 'https://www.flhsmv.gov/', '$750K interstate; $300K intrastate <10,001 lbs. PIP coverage required.',
 TRUE, NULL),

-- ═══════════════════════════════════════════════════════════════════════
-- GEORGIA
-- ═══════════════════════════════════════════════════════════════════════
('GA',
 TRUE, 'Georgia Department of Revenue', 'https://dor.georgia.gov/motor-vehicle-division',
 TRUE, 'Georgia Department of Revenue', 'https://dor.georgia.gov/motor-vehicle-division',
 FALSE, NULL, NULL, NULL, NULL, NULL,
 FALSE, NULL, NULL, NULL, NULL,
 FALSE, NULL, NULL, NULL, NULL,
 TRUE, 'Georgia Intrastate Motor Carrier (GIMC)', 'Georgia Public Service Commission', 'https://psc.ga.gov/', 'For-hire intrastate carriers must register with GA PSC',
 FALSE, NULL, NULL, NULL, 'USDOT number required for intrastate CMVs',
 FALSE, NULL, NULL, NULL, NULL,
 TRUE, NULL),

-- ═══════════════════════════════════════════════════════════════════════
-- HAWAII
-- ═══════════════════════════════════════════════════════════════════════
('HI',
 FALSE, NULL, NULL,
 FALSE, NULL, NULL,
 FALSE, NULL, NULL, NULL, NULL, NULL,
 FALSE, NULL, NULL, NULL, NULL,
 FALSE, NULL, NULL, NULL, NULL,
 FALSE, NULL, NULL, NULL, NULL,
 FALSE, NULL, NULL, NULL, NULL,
 FALSE, NULL, NULL, NULL, NULL,
 TRUE, 'Not an IRP or IFTA member. Island state with limited interstate trucking applicability.'),

-- ═══════════════════════════════════════════════════════════════════════
-- IDAHO
-- ═══════════════════════════════════════════════════════════════════════
('ID',
 TRUE, 'Idaho Transportation Department', 'https://itd.idaho.gov/motor-carrier/',
 TRUE, 'Idaho Transportation Department', 'https://itd.idaho.gov/motor-carrier/',
 FALSE, NULL, NULL, NULL, NULL, NULL,
 FALSE, NULL, NULL, NULL, NULL,
 FALSE, NULL, NULL, NULL, NULL,
 FALSE, NULL, NULL, NULL, NULL,
 FALSE, NULL, NULL, NULL, 'USDOT number required for intrastate CMVs',
 FALSE, NULL, NULL, NULL, NULL,
 TRUE, NULL),

-- ═══════════════════════════════════════════════════════════════════════
-- ILLINOIS
-- ═══════════════════════════════════════════════════════════════════════
('IL',
 TRUE, 'Illinois Secretary of State', 'https://www.ilsos.gov/departments/vehicles/cft/irpintro.html',
 TRUE, 'Illinois Secretary of State', 'https://www.ilsos.gov/departments/vehicles/cft/iftaintro.html',
 FALSE, NULL, NULL, NULL, NULL, NULL,
 FALSE, NULL, NULL, NULL, NULL,
 FALSE, NULL, NULL, NULL, NULL,
 TRUE, 'Certificate of Authority', 'Illinois Commerce Commission', 'https://www.icc.illinois.gov/industry/transportation', 'For-hire intrastate carriers of property and passengers must obtain ICC authority',
 FALSE, NULL, NULL, NULL, 'USDOT number required for intrastate CMVs',
 TRUE, 75000000, 'Illinois Commerce Commission', 'https://www.icc.illinois.gov/', '$750K minimum liability for intrastate for-hire carriers. Form E filing.',
 TRUE, NULL),

-- ═══════════════════════════════════════════════════════════════════════
-- INDIANA
-- ═══════════════════════════════════════════════════════════════════════
('IN',
 TRUE, 'Indiana Department of Revenue', 'https://www.in.gov/dor/motor-carrier-services/',
 TRUE, 'Indiana Department of Revenue', 'https://www.in.gov/dor/motor-carrier-services/fuel-tax/',
 FALSE, NULL, NULL, NULL, NULL, NULL,
 FALSE, NULL, NULL, NULL, NULL,
 FALSE, NULL, NULL, NULL, NULL,
 TRUE, 'Certificate of Authority', 'Indiana Department of Revenue', 'https://www.in.gov/dor/motor-carrier-services/', 'Intrastate for-hire carriers must register. Intrastate fuel decals required.',
 FALSE, NULL, NULL, NULL, 'USDOT number required for intrastate CMVs',
 FALSE, NULL, NULL, NULL, 'Intrastate fuel permit/decals required for CMVs >26,000 lbs',
 TRUE, NULL),

-- ═══════════════════════════════════════════════════════════════════════
-- IOWA
-- ═══════════════════════════════════════════════════════════════════════
('IA',
 TRUE, 'Iowa Department of Transportation', 'https://iowadot.gov/motor-carriers/irp-international-registration-plan',
 TRUE, 'Iowa Department of Transportation', 'https://iowadot.gov/motor-carriers/',
 FALSE, NULL, NULL, NULL, NULL, NULL,
 FALSE, NULL, NULL, NULL, NULL,
 FALSE, NULL, NULL, NULL, NULL,
 TRUE, 'Certificate of Authority', 'Iowa Department of Transportation', 'https://iowadot.gov/motor-carriers/', 'For-hire intrastate carriers must obtain authority from Iowa DOT',
 FALSE, NULL, NULL, NULL, 'USDOT number required for intrastate CMVs',
 FALSE, NULL, NULL, NULL, NULL,
 TRUE, NULL),

-- ═══════════════════════════════════════════════════════════════════════
-- KANSAS
-- ═══════════════════════════════════════════════════════════════════════
('KS',
 TRUE, 'Kansas Department of Revenue', 'https://www.ksrevenue.gov/motorcarrier.html',
 TRUE, 'Kansas Department of Revenue', 'https://www.ksrevenue.gov/motorcarrier.html',
 FALSE, NULL, NULL, NULL, NULL, NULL,
 FALSE, NULL, NULL, NULL, NULL,
 FALSE, NULL, NULL, NULL, NULL,
 TRUE, 'Certificate of Authority', 'Kansas Corporation Commission', 'https://kcc.ks.gov/transportation', 'For-hire intrastate carriers must obtain KCC authority',
 FALSE, NULL, NULL, NULL, 'USDOT number required for intrastate CMVs',
 FALSE, NULL, NULL, NULL, NULL,
 TRUE, NULL),

-- ═══════════════════════════════════════════════════════════════════════
-- KENTUCKY
-- ═══════════════════════════════════════════════════════════════════════
('KY',
 TRUE, 'Kentucky Transportation Cabinet', 'https://drive.ky.gov/Motor-Carriers/Pages/default.aspx',
 TRUE, 'Kentucky Transportation Cabinet', 'https://drive.ky.gov/Motor-Carriers/Pages/default.aspx',
 TRUE, 'Weight Distance Tax (KYU)', 'Kentucky Transportation Cabinet', 'https://drive.ky.gov/Motor-Carriers/Pages/KYU.aspx', 60000, '$0.0285/mile for vehicles >59,999 lbs combined license weight. Quarterly filing required. KYU number issued online.',
 FALSE, NULL, NULL, NULL, NULL,
 FALSE, NULL, NULL, NULL, NULL,
 TRUE, 'Certificate of Authority', 'Kentucky Transportation Cabinet', 'https://drive.ky.gov/Motor-Carriers/', 'For-hire intrastate carriers must register. Form E insurance filing required.',
 FALSE, NULL, NULL, NULL, 'USDOT number required for intrastate CMVs',
 TRUE, 75000000, 'Kentucky Transportation Cabinet', 'https://drive.ky.gov/Motor-Carriers/', 'Form E filing required for intrastate for-hire carriers. Intrastate fuel decals required.',
 TRUE, NULL),

-- ═══════════════════════════════════════════════════════════════════════
-- LOUISIANA
-- ═══════════════════════════════════════════════════════════════════════
('LA',
 TRUE, 'Louisiana Department of Public Safety', 'https://www.expresslane.org/Motor-Carrier-Services/',
 TRUE, 'Louisiana Department of Revenue', 'https://revenue.louisiana.gov/',
 FALSE, NULL, NULL, NULL, NULL, NULL,
 FALSE, NULL, NULL, NULL, NULL,
 FALSE, NULL, NULL, NULL, NULL,
 FALSE, NULL, NULL, NULL, 'Louisiana does not require separate intrastate authority for property carriers',
 FALSE, NULL, NULL, NULL, NULL,
 FALSE, NULL, NULL, NULL, NULL,
 TRUE, NULL),

-- ═══════════════════════════════════════════════════════════════════════
-- MAINE
-- ═══════════════════════════════════════════════════════════════════════
('ME',
 TRUE, 'Maine Bureau of Motor Vehicles', 'https://www.maine.gov/sos/bmv/',
 TRUE, 'Maine Revenue Services', 'https://www.maine.gov/revenue/taxes/fuel-tax/narratives-ifta-irp',
 FALSE, NULL, NULL, NULL, NULL, NULL,
 FALSE, NULL, NULL, NULL, NULL,
 FALSE, NULL, NULL, NULL, NULL,
 FALSE, NULL, NULL, NULL, NULL,
 FALSE, NULL, NULL, NULL, 'USDOT number required for intrastate CMVs',
 TRUE, 35000000, 'Maine Bureau of Insurance', 'https://www.maine.gov/pfr/insurance/', '$350K CSL for intrastate property carriers. Form K filing required. 30-day cancellation notice.',
 TRUE, NULL),

-- ═══════════════════════════════════════════════════════════════════════
-- MARYLAND
-- ═══════════════════════════════════════════════════════════════════════
('MD',
 TRUE, 'Maryland Motor Vehicle Administration', 'https://mva.maryland.gov/',
 TRUE, 'Maryland Comptroller', 'https://www.marylandtaxes.gov/',
 FALSE, NULL, NULL, NULL, NULL, NULL,
 FALSE, NULL, NULL, NULL, NULL,
 TRUE, 'Advanced Clean Trucks (adopted)', 'Maryland Department of the Environment', 'https://mde.maryland.gov/', 'ACT rule adopted; effective 2027 model year. May be delayed.',
 FALSE, NULL, NULL, NULL, NULL,
 FALSE, NULL, NULL, NULL, 'USDOT number required for intrastate CMVs',
 FALSE, NULL, NULL, NULL, NULL,
 TRUE, NULL),

-- ═══════════════════════════════════════════════════════════════════════
-- MASSACHUSETTS
-- ═══════════════════════════════════════════════════════════════════════
('MA',
 TRUE, 'Massachusetts Registry of Motor Vehicles', 'https://www.mass.gov/orgs/massachusetts-registry-of-motor-vehicles',
 TRUE, 'Massachusetts Department of Revenue', 'https://www.mass.gov/orgs/massachusetts-department-of-revenue',
 FALSE, NULL, NULL, NULL, NULL, NULL,
 FALSE, NULL, NULL, NULL, NULL,
 TRUE, 'Advanced Clean Trucks (adopted)', 'Massachusetts Department of Environmental Protection', 'https://www.mass.gov/orgs/massdep', 'ACT rule effective 2025 model year. Enforcement may be paused.',
 FALSE, NULL, NULL, NULL, NULL,
 FALSE, NULL, NULL, NULL, 'USDOT number required for intrastate CMVs',
 FALSE, NULL, NULL, NULL, NULL,
 TRUE, NULL),

-- ═══════════════════════════════════════════════════════════════════════
-- MICHIGAN
-- ═══════════════════════════════════════════════════════════════════════
('MI',
 TRUE, 'Michigan Secretary of State', 'https://www.michigan.gov/sos/industry-services/irp',
 TRUE, 'Michigan Department of Treasury', 'https://www.michigan.gov/treasury',
 FALSE, NULL, NULL, NULL, NULL, NULL,
 FALSE, NULL, NULL, NULL, NULL,
 FALSE, NULL, NULL, NULL, NULL,
 TRUE, 'Certificate of Authority', 'Michigan Public Service Commission', 'https://www.michigan.gov/mpsc', 'For-hire intrastate carriers of property must register with MPSC',
 FALSE, NULL, NULL, NULL, 'USDOT number required for intrastate CMVs',
 FALSE, NULL, NULL, NULL, NULL,
 TRUE, NULL),

-- ═══════════════════════════════════════════════════════════════════════
-- MINNESOTA
-- ═══════════════════════════════════════════════════════════════════════
('MN',
 TRUE, 'Minnesota Department of Public Safety', 'https://dps.mn.gov/divisions/dvs/Pages/dvs-content-detail.aspx?pageID=683',
 TRUE, 'Minnesota Department of Revenue', 'https://www.revenue.state.mn.us/',
 FALSE, NULL, NULL, NULL, NULL, NULL,
 FALSE, NULL, NULL, NULL, NULL,
 FALSE, NULL, NULL, NULL, NULL,
 TRUE, 'Certificate of Authority', 'Minnesota Department of Transportation', 'https://www.dot.state.mn.us/cvo/', 'For-hire intrastate carriers must register with MnDOT',
 FALSE, NULL, NULL, NULL, 'USDOT number required for intrastate CMVs',
 FALSE, NULL, NULL, NULL, NULL,
 TRUE, NULL),

-- ═══════════════════════════════════════════════════════════════════════
-- MISSISSIPPI
-- ═══════════════════════════════════════════════════════════════════════
('MS',
 TRUE, 'Mississippi Department of Revenue', 'https://www.dor.ms.gov/',
 TRUE, 'Mississippi Department of Revenue', 'https://www.dor.ms.gov/',
 FALSE, NULL, NULL, NULL, NULL, NULL,
 FALSE, NULL, NULL, NULL, NULL,
 FALSE, NULL, NULL, NULL, NULL,
 TRUE, 'Certificate of Authority', 'Mississippi Public Service Commission', 'https://www.psc.ms.gov/', 'For-hire intrastate carriers must obtain PSC authority',
 FALSE, NULL, NULL, NULL, NULL,
 FALSE, NULL, NULL, NULL, NULL,
 TRUE, NULL),

-- ═══════════════════════════════════════════════════════════════════════
-- MISSOURI
-- ═══════════════════════════════════════════════════════════════════════
('MO',
 TRUE, 'Missouri Department of Revenue', 'https://dor.mo.gov/motor-vehicle/motor-carrier/',
 TRUE, 'Missouri Department of Revenue', 'https://dor.mo.gov/motor-vehicle/motor-carrier/',
 FALSE, NULL, NULL, NULL, NULL, NULL,
 FALSE, NULL, NULL, NULL, NULL,
 FALSE, NULL, NULL, NULL, NULL,
 TRUE, 'Certificate of Authority', 'Missouri Department of Transportation', 'https://www.modot.org/motor-carrier-services', 'For-hire intrastate carriers must register with MoDOT',
 FALSE, NULL, NULL, NULL, 'USDOT number required for intrastate CMVs',
 FALSE, NULL, NULL, NULL, NULL,
 TRUE, NULL),

-- ═══════════════════════════════════════════════════════════════════════
-- MONTANA
-- ═══════════════════════════════════════════════════════════════════════
('MT',
 TRUE, 'Montana Department of Justice', 'https://dojmt.gov/driving/motor-carrier-services/',
 TRUE, 'Montana Department of Transportation', 'https://www.mdt.mt.gov/business/motor_carrier/',
 FALSE, NULL, NULL, NULL, NULL, NULL,
 FALSE, NULL, NULL, NULL, NULL,
 FALSE, NULL, NULL, NULL, NULL,
 FALSE, NULL, NULL, NULL, NULL,
 FALSE, NULL, NULL, NULL, 'USDOT number required for intrastate CMVs',
 FALSE, NULL, NULL, NULL, NULL,
 TRUE, NULL),

-- ═══════════════════════════════════════════════════════════════════════
-- NEBRASKA
-- ═══════════════════════════════════════════════════════════════════════
('NE',
 TRUE, 'Nebraska Department of Motor Vehicles', 'https://dmv.nebraska.gov/mc',
 TRUE, 'Nebraska Department of Motor Vehicles', 'https://dmv.nebraska.gov/mc',
 FALSE, NULL, NULL, NULL, NULL, NULL,
 FALSE, NULL, NULL, NULL, NULL,
 FALSE, NULL, NULL, NULL, NULL,
 TRUE, 'Certificate of Authority', 'Nebraska Public Service Commission', 'https://psc.nebraska.gov/', 'For-hire intrastate carriers must register with NE PSC',
 FALSE, NULL, NULL, NULL, 'USDOT number required for intrastate CMVs',
 FALSE, NULL, NULL, NULL, NULL,
 TRUE, NULL),

-- ═══════════════════════════════════════════════════════════════════════
-- NEVADA
-- ═══════════════════════════════════════════════════════════════════════
('NV',
 TRUE, 'Nevada DMV', 'https://dmv.nv.gov/mcnew.htm',
 TRUE, 'Nevada Department of Motor Vehicles', 'https://dmv.nv.gov/mcnew.htm',
 FALSE, NULL, NULL, NULL, NULL, NULL,
 FALSE, NULL, NULL, NULL, NULL,
 FALSE, NULL, NULL, NULL, NULL,
 FALSE, NULL, NULL, NULL, 'Nevada requires USDOT for intrastate CMVs >26,001 lbs',
 FALSE, NULL, NULL, NULL, 'USDOT number required for intrastate CMVs >26,001 lbs',
 FALSE, NULL, NULL, NULL, NULL,
 TRUE, NULL),

-- ═══════════════════════════════════════════════════════════════════════
-- NEW HAMPSHIRE
-- ═══════════════════════════════════════════════════════════════════════
('NH',
 TRUE, 'New Hampshire Department of Safety', 'https://www.nh.gov/safety/divisions/dmv/',
 TRUE, 'New Hampshire Department of Safety', 'https://www.nh.gov/safety/divisions/dmv/',
 FALSE, NULL, NULL, NULL, NULL, NULL,
 FALSE, NULL, NULL, NULL, NULL,
 FALSE, NULL, NULL, NULL, NULL,
 FALSE, NULL, NULL, NULL, NULL,
 FALSE, NULL, NULL, NULL, NULL,
 FALSE, NULL, NULL, NULL, NULL,
 TRUE, NULL),

-- ═══════════════════════════════════════════════════════════════════════
-- NEW JERSEY
-- ═══════════════════════════════════════════════════════════════════════
('NJ',
 TRUE, 'New Jersey Motor Vehicle Commission', 'https://www.nj.gov/mvc/',
 TRUE, 'New Jersey Division of Taxation', 'https://www.nj.gov/treasury/taxation/',
 FALSE, NULL, NULL, NULL, NULL, NULL,
 FALSE, NULL, NULL, NULL, NULL,
 TRUE, 'Advanced Clean Trucks (adopted)', 'New Jersey Department of Environmental Protection', 'https://www.nj.gov/dep/', 'ACT rule effective 2025 model year.',
 FALSE, NULL, NULL, NULL, NULL,
 FALSE, NULL, NULL, NULL, 'USDOT number required for intrastate CMVs',
 TRUE, 75000000, 'New Jersey Motor Vehicle Commission', 'https://www.nj.gov/mvc/', '$750K minimum for intrastate for-hire property carriers.',
 TRUE, NULL),

-- ═══════════════════════════════════════════════════════════════════════
-- NEW MEXICO
-- ═══════════════════════════════════════════════════════════════════════
('NM',
 TRUE, 'New Mexico Motor Vehicle Division', 'https://www.mvd.newmexico.gov/commercial/commercial-vehicles/',
 TRUE, 'New Mexico Taxation and Revenue Department', 'https://www.tax.newmexico.gov/',
 TRUE, 'Weight Distance Tax (WDT)', 'New Mexico Taxation and Revenue Department', 'https://tap.state.nm.us/tap/_/', 26001, 'All CMVs >26,001 lbs declared gross weight. Annual e-permit per vehicle via TAP portal. Quarterly reporting.',
 FALSE, NULL, NULL, NULL, NULL,
 TRUE, 'Advanced Clean Trucks (adopted)', 'New Mexico Environment Department', 'https://www.env.nm.gov/', 'ACT rule adopted; effective 2027 model year.',
 TRUE, 'Certificate of Authority', 'New Mexico Public Regulation Commission', 'https://www.nmprc.state.nm.us/', 'For-hire intrastate carriers must obtain NMPRC authority',
 FALSE, NULL, NULL, NULL, NULL,
 FALSE, NULL, NULL, NULL, NULL,
 TRUE, NULL),

-- ═══════════════════════════════════════════════════════════════════════
-- NEW YORK
-- ═══════════════════════════════════════════════════════════════════════
('NY',
 TRUE, 'New York DMV', 'https://dmv.ny.gov/commercial-vehicles/irp-registration',
 TRUE, 'New York Department of Taxation and Finance', 'https://www.tax.ny.gov/',
 TRUE, 'Highway Use Tax (HUT)', 'New York Department of Taxation and Finance', 'https://www.tax.ny.gov/bus/hut/huidx.htm', 18000, 'All motor vehicles >18,000 lbs GVW on NY highways. Certificate of Registration + decals required. File via OSCAR or Web File.',
 FALSE, NULL, NULL, NULL, NULL,
 TRUE, 'Advanced Clean Trucks (adopted)', 'New York State DEC', 'https://www.dec.ny.gov/', 'ACT rule effective 2025 model year.',
 TRUE, 'Operating Authority', 'New York State DOT', 'https://www.dot.ny.gov/', 'For-hire intrastate carriers must obtain NYSDOT operating authority',
 FALSE, NULL, NULL, NULL, 'USDOT number required for intrastate CMVs',
 TRUE, 75000000, 'New York State DOT', 'https://www.dot.ny.gov/', '$750K CSL for for-hire property carriers. NYC operations may require $1.5M. Form E filing with NYSDOT.',
 TRUE, 'HUT + intrastate authority + higher insurance = complex compliance state.'),

-- ═══════════════════════════════════════════════════════════════════════
-- NORTH CAROLINA
-- ═══════════════════════════════════════════════════════════════════════
('NC',
 TRUE, 'North Carolina DMV', 'https://www.ncdot.gov/dmv/title-registration/vehicle/Pages/irp.aspx',
 TRUE, 'North Carolina Department of Revenue', 'https://www.ncdor.gov/',
 FALSE, NULL, NULL, NULL, NULL, NULL,
 FALSE, NULL, NULL, NULL, NULL,
 FALSE, NULL, NULL, NULL, NULL,
 FALSE, NULL, NULL, NULL, 'NC does not require separate intrastate authority for property carriers',
 FALSE, NULL, NULL, NULL, 'USDOT number required for intrastate CMVs. Intrastate fuel decals required.',
 TRUE, 75000000, 'North Carolina Utilities Commission', 'https://www.ncuc.gov/', '$750K for intrastate for-hire carriers. Form E filing.',
 TRUE, NULL),

-- ═══════════════════════════════════════════════════════════════════════
-- NORTH DAKOTA
-- ═══════════════════════════════════════════════════════════════════════
('ND',
 TRUE, 'North Dakota DOT', 'https://www.dot.nd.gov/motor-vehicle/international-registration-plans-ifta-irp-and-ucr',
 TRUE, 'North Dakota DOT', 'https://www.dot.nd.gov/motor-vehicle/international-registration-plans-ifta-irp-and-ucr',
 FALSE, NULL, NULL, NULL, NULL, NULL,
 FALSE, NULL, NULL, NULL, NULL,
 FALSE, NULL, NULL, NULL, NULL,
 FALSE, NULL, NULL, NULL, NULL,
 FALSE, NULL, NULL, NULL, NULL,
 FALSE, NULL, NULL, NULL, NULL,
 TRUE, NULL),

-- ═══════════════════════════════════════════════════════════════════════
-- OHIO
-- ═══════════════════════════════════════════════════════════════════════
('OH',
 TRUE, 'Ohio Bureau of Motor Vehicles', 'https://www.bmv.ohio.gov/',
 TRUE, 'Ohio Department of Taxation', 'https://tax.ohio.gov/',
 FALSE, NULL, NULL, NULL, NULL, NULL,
 FALSE, NULL, NULL, NULL, NULL,
 FALSE, NULL, NULL, NULL, NULL,
 TRUE, 'CPCN', 'Public Utilities Commission of Ohio', 'https://puco.ohio.gov/', 'For-hire intrastate carriers must obtain CPCN from PUCO. Household goods carriers have additional requirements.',
 FALSE, NULL, NULL, NULL, 'USDOT number required for intrastate CMVs',
 TRUE, 75000000, 'Public Utilities Commission of Ohio', 'https://puco.ohio.gov/', '$750K minimum for intrastate for-hire property carriers. Form E filing with PUCO.',
 TRUE, NULL),

-- ═══════════════════════════════════════════════════════════════════════
-- OKLAHOMA
-- ═══════════════════════════════════════════════════════════════════════
('OK',
 TRUE, 'Oklahoma Corporation Commission', 'https://oklahoma.gov/occ/divisions/transportation.html',
 TRUE, 'Oklahoma Tax Commission', 'https://oklahoma.gov/tax.html',
 FALSE, NULL, NULL, NULL, NULL, NULL,
 FALSE, NULL, NULL, NULL, NULL,
 FALSE, NULL, NULL, NULL, NULL,
 TRUE, 'Intrastate License', 'Oklahoma Corporation Commission', 'https://oklahoma.gov/occ/divisions/transportation/trucking.html', 'For-hire and private intrastate carriers must obtain OCC license',
 FALSE, NULL, NULL, NULL, 'USDOT number required for intrastate CMVs',
 FALSE, NULL, NULL, NULL, NULL,
 TRUE, NULL),

-- ═══════════════════════════════════════════════════════════════════════
-- OREGON
-- ═══════════════════════════════════════════════════════════════════════
('OR',
 TRUE, 'Oregon DMV / ODOT', 'https://www.oregon.gov/odot/mct/Pages/index.aspx',
 TRUE, 'Oregon Department of Transportation', 'https://www.oregon.gov/odot/mct/Pages/index.aspx',
 TRUE, 'Weight-Mile Tax', 'Oregon Department of Transportation', 'https://www.oregon.gov/odot/mct/pages/weight-mile-tax-program-enrollment.aspx', 26001, 'All carriers with vehicles >26,000 lbs combined weight. Tax rate varies by weight bracket. No fuel tax for trucks; weight-mile tax replaces it. File via Oregon Trucking Online.',
 FALSE, NULL, NULL, NULL, NULL,
 TRUE, 'Advanced Clean Trucks (adopted)', 'Oregon Department of Environmental Quality', 'https://www.oregon.gov/deq/', 'ACT rule effective 2025 model year. Enforcement paused/delayed.',
 TRUE, 'Certificate of Authority', 'Oregon Department of Transportation', 'https://www.oregon.gov/odot/mct/', 'For-hire intrastate carriers must register with ODOT',
 FALSE, NULL, NULL, NULL, 'USDOT number required for intrastate CMVs',
 FALSE, NULL, NULL, NULL, NULL,
 TRUE, 'Weight-Mile Tax is unique — Oregon has NO diesel fuel tax for trucks. WMT replaces IFTA fuel tax for OR miles.'),

-- ═══════════════════════════════════════════════════════════════════════
-- PENNSYLVANIA
-- ═══════════════════════════════════════════════════════════════════════
('PA',
 TRUE, 'Pennsylvania Department of Transportation', 'https://www.penndot.pa.gov/',
 TRUE, 'Pennsylvania Department of Revenue', 'https://www.revenue.pa.gov/',
 FALSE, NULL, NULL, NULL, NULL, NULL,
 FALSE, NULL, NULL, NULL, NULL,
 FALSE, NULL, NULL, NULL, NULL,
 TRUE, 'Certificate of Public Convenience', 'Pennsylvania Public Utility Commission', 'https://www.puc.pa.gov/', 'For-hire intrastate carriers must obtain PUC authority. Household goods carriers have additional requirements.',
 FALSE, NULL, NULL, NULL, 'USDOT number required for intrastate CMVs. Intrastate fuel decals required.',
 TRUE, 75000000, 'Pennsylvania Public Utility Commission', 'https://www.puc.pa.gov/', '$750K for intrastate for-hire property carriers. Form E filing. Intrastate fuel permits required.',
 TRUE, NULL),

-- ═══════════════════════════════════════════════════════════════════════
-- RHODE ISLAND
-- ═══════════════════════════════════════════════════════════════════════
('RI',
 TRUE, 'Rhode Island Division of Motor Vehicles', 'https://dmv.ri.gov/',
 TRUE, 'Rhode Island Division of Taxation', 'https://tax.ri.gov/',
 FALSE, NULL, NULL, NULL, NULL, NULL,
 FALSE, NULL, NULL, NULL, NULL,
 TRUE, 'Advanced Clean Trucks (adopted)', 'Rhode Island DEM', 'https://dem.ri.gov/', 'ACT rule adopted; effective 2027 model year.',
 TRUE, 'Certificate of Authority', 'Rhode Island Public Utilities Commission', 'https://ripuc.ri.gov/', 'For-hire intrastate carriers must register with RI PUC',
 FALSE, NULL, NULL, NULL, NULL,
 FALSE, NULL, NULL, NULL, NULL,
 TRUE, NULL),

-- ═══════════════════════════════════════════════════════════════════════
-- SOUTH CAROLINA
-- ═══════════════════════════════════════════════════════════════════════
('SC',
 TRUE, 'South Carolina Department of Motor Vehicles', 'https://www.scdmvonline.com/',
 TRUE, 'South Carolina Department of Revenue', 'https://dor.sc.gov/',
 FALSE, NULL, NULL, NULL, NULL, NULL,
 FALSE, NULL, NULL, NULL, NULL,
 FALSE, NULL, NULL, NULL, NULL,
 TRUE, 'Certificate of Authority', 'South Carolina Public Service Commission', 'https://www.psc.sc.gov/', 'For-hire intrastate carriers must obtain PSC authority',
 FALSE, NULL, NULL, NULL, 'USDOT number required for intrastate CMVs',
 FALSE, NULL, NULL, NULL, NULL,
 TRUE, NULL),

-- ═══════════════════════════════════════════════════════════════════════
-- SOUTH DAKOTA
-- ═══════════════════════════════════════════════════════════════════════
('SD',
 TRUE, 'South Dakota Department of Revenue', 'https://dor.sd.gov/businesses/motor-vehicle/motor-carrier-services/',
 TRUE, 'South Dakota Department of Revenue', 'https://dor.sd.gov/businesses/motor-vehicle/motor-carrier-services/',
 FALSE, NULL, NULL, NULL, NULL, NULL,
 FALSE, NULL, NULL, NULL, NULL,
 FALSE, NULL, NULL, NULL, NULL,
 FALSE, NULL, NULL, NULL, NULL,
 FALSE, NULL, NULL, NULL, NULL,
 FALSE, NULL, NULL, NULL, NULL,
 TRUE, NULL),

-- ═══════════════════════════════════════════════════════════════════════
-- TENNESSEE
-- ═══════════════════════════════════════════════════════════════════════
('TN',
 TRUE, 'Tennessee Department of Revenue', 'https://www.tn.gov/revenue.html',
 TRUE, 'Tennessee Department of Revenue', 'https://www.tn.gov/revenue.html',
 FALSE, NULL, NULL, NULL, NULL, NULL,
 FALSE, NULL, NULL, NULL, NULL,
 FALSE, NULL, NULL, NULL, NULL,
 TRUE, 'Certificate of Authority', 'Tennessee Regulatory Authority', 'https://www.tn.gov/tra.html', 'For-hire intrastate carriers must register with TRA',
 FALSE, NULL, NULL, NULL, NULL,
 TRUE, 75000000, 'Tennessee Regulatory Authority', 'https://www.tn.gov/tra.html', '$750K for intrastate for-hire property carriers.',
 TRUE, NULL),

-- ═══════════════════════════════════════════════════════════════════════
-- TEXAS
-- ═══════════════════════════════════════════════════════════════════════
('TX',
 TRUE, 'Texas Department of Motor Vehicles', 'https://www.txdmv.gov/motor-carriers',
 TRUE, 'Texas Comptroller of Public Accounts', 'https://comptroller.texas.gov/',
 FALSE, NULL, NULL, NULL, NULL, NULL,
 TRUE, 'TxDMV Number / Intrastate Operating Authority', 'Texas Department of Motor Vehicles', 'https://www.txdmv.gov/motor-carriers', 'Required for all intrastate CMV operators. TxDMV number is state-specific.',
 FALSE, NULL, NULL, NULL, NULL,
 TRUE, 'Intrastate Operating Authority', 'Texas Department of Motor Vehicles', 'https://www.txdmv.gov/motor-carriers', 'Motor carriers operating intrastate CMVs must obtain TxDMV number and intrastate authority',
 TRUE, 'TxDMV Number', 'Texas Department of Motor Vehicles', 'https://www.txdmv.gov/motor-carriers', 'State-specific number required for intrastate CMV operations. Applied via TxFLEET portal.',
 TRUE, 50000000, 'Texas Department of Motor Vehicles', 'https://www.txdmv.gov/motor-carriers', '$500K for intrastate non-hazmat. $1M for hazmat. Form E filing with TxDMV. UM/UIM coverage mandatory.',
 TRUE, 'TxDMV number + intrastate authority + UCR registration all handled by TxDMV.'),

-- ═══════════════════════════════════════════════════════════════════════
-- UTAH
-- ═══════════════════════════════════════════════════════════════════════
('UT',
 TRUE, 'Utah Department of Transportation', 'https://www.udot.utah.gov/connect/business/motor-carriers/',
 TRUE, 'Utah State Tax Commission', 'https://tax.utah.gov/',
 FALSE, NULL, NULL, NULL, NULL, NULL,
 FALSE, NULL, NULL, NULL, NULL,
 FALSE, NULL, NULL, NULL, NULL,
 FALSE, NULL, NULL, NULL, 'Utah does not require separate intrastate authority for property carriers',
 FALSE, NULL, NULL, NULL, 'USDOT number required for intrastate CMVs. Intrastate fuel decals required.',
 FALSE, NULL, NULL, NULL, 'Intrastate fuel permit/decals required.',
 TRUE, NULL),

-- ═══════════════════════════════════════════════════════════════════════
-- VERMONT
-- ═══════════════════════════════════════════════════════════════════════
('VT',
 TRUE, 'Vermont Department of Motor Vehicles', 'https://dmv.vermont.gov/CVO/international-registration-plan-irp',
 TRUE, 'Vermont Department of Motor Vehicles', 'https://dmv.vermont.gov/CVO/',
 FALSE, NULL, NULL, NULL, NULL, NULL,
 FALSE, NULL, NULL, NULL, NULL,
 TRUE, 'Advanced Clean Trucks (adopted)', 'Vermont Agency of Natural Resources', 'https://anr.vermont.gov/', 'ACT rule effective 2026 model year. Enforcement may be delayed.',
 FALSE, NULL, NULL, NULL, NULL,
 FALSE, NULL, NULL, NULL, NULL,
 FALSE, NULL, NULL, NULL, NULL,
 TRUE, NULL),

-- ═══════════════════════════════════════════════════════════════════════
-- VIRGINIA
-- ═══════════════════════════════════════════════════════════════════════
('VA',
 TRUE, 'Virginia DMV', 'https://www.dmv.virginia.gov/vehicles/motor-carrier-services',
 TRUE, 'Virginia DMV', 'https://www.dmv.virginia.gov/vehicles/motor-carrier-services',
 FALSE, NULL, NULL, NULL, NULL, NULL,
 FALSE, NULL, NULL, NULL, NULL,
 FALSE, NULL, NULL, NULL, NULL,
 TRUE, 'Certificate of Authority', 'Virginia Department of Motor Vehicles', 'https://www.dmv.virginia.gov/vehicles/motor-carrier-services', 'For-hire intrastate carriers must obtain DMV authority',
 FALSE, NULL, NULL, NULL, NULL,
 FALSE, NULL, NULL, NULL, NULL,
 TRUE, NULL),

-- ═══════════════════════════════════════════════════════════════════════
-- WASHINGTON
-- ═══════════════════════════════════════════════════════════════════════
('WA',
 TRUE, 'Washington Department of Licensing', 'https://dol.wa.gov/vehicles-and-boats/prorate-and-fuel-tax/international-registration-plan-prorate/',
 TRUE, 'Washington Department of Licensing', 'https://dol.wa.gov/vehicles-and-boats/prorate-and-fuel-tax/',
 FALSE, NULL, NULL, NULL, NULL, NULL,
 FALSE, NULL, NULL, NULL, NULL,
 TRUE, 'Advanced Clean Trucks (adopted)', 'Washington Department of Ecology', 'https://ecology.wa.gov/', 'ACT rule effective 2025 model year.',
 TRUE, 'Permit', 'Washington Utilities and Transportation Commission', 'https://www.utc.wa.gov/regulated-industries/transportation', 'For-hire intrastate carriers must obtain WUTC permit',
 FALSE, NULL, NULL, NULL, 'USDOT number required for intrastate CMVs',
 FALSE, NULL, NULL, NULL, NULL,
 TRUE, NULL),

-- ═══════════════════════════════════════════════════════════════════════
-- WEST VIRGINIA
-- ═══════════════════════════════════════════════════════════════════════
('WV',
 TRUE, 'West Virginia Division of Motor Vehicles', 'https://transportation.wv.gov/DMV/Motor-Carriers/Pages/IRP-IFTA.aspx',
 TRUE, 'West Virginia Division of Motor Vehicles', 'https://transportation.wv.gov/DMV/Motor-Carriers/Pages/IRP-IFTA.aspx',
 FALSE, NULL, NULL, NULL, NULL, NULL,
 FALSE, NULL, NULL, NULL, NULL,
 FALSE, NULL, NULL, NULL, NULL,
 TRUE, 'Certificate of Authority', 'West Virginia Public Service Commission', 'https://www.psc.state.wv.us/', 'For-hire intrastate carriers must obtain PSC authority. Intrastate fuel decals required.',
 FALSE, NULL, NULL, NULL, 'USDOT number required for intrastate CMVs. Intrastate fuel decals required.',
 FALSE, NULL, NULL, NULL, NULL,
 TRUE, NULL),

-- ═══════════════════════════════════════════════════════════════════════
-- WISCONSIN
-- ═══════════════════════════════════════════════════════════════════════
('WI',
 TRUE, 'Wisconsin Department of Transportation', 'https://wisconsindot.gov/pages/dmv/com-drv-vehs/mtr-car-trkr/irp.aspx',
 TRUE, 'Wisconsin Department of Transportation', 'https://wisconsindot.gov/pages/dmv/com-drv-vehs/mtr-car-trkr/ifta.aspx',
 FALSE, NULL, NULL, NULL, NULL, NULL,
 FALSE, NULL, NULL, NULL, NULL,
 FALSE, NULL, NULL, NULL, NULL,
 TRUE, 'Certificate of Authority', 'Wisconsin Department of Transportation', 'https://wisconsindot.gov/', 'For-hire intrastate carriers must register with WisDOT',
 FALSE, NULL, NULL, NULL, 'USDOT number required for intrastate CMVs',
 FALSE, NULL, NULL, NULL, NULL,
 TRUE, NULL),

-- ═══════════════════════════════════════════════════════════════════════
-- WYOMING
-- ═══════════════════════════════════════════════════════════════════════
('WY',
 TRUE, 'Wyoming Department of Transportation', 'https://www.dot.state.wy.us/home/trucking_commercial_vehicles.html',
 TRUE, 'Wyoming Department of Transportation', 'https://www.dot.state.wy.us/home/trucking_commercial_vehicles.html',
 FALSE, NULL, NULL, NULL, NULL, NULL,
 FALSE, NULL, NULL, NULL, NULL,
 FALSE, NULL, NULL, NULL, NULL,
 TRUE, 'Certificate of Authority', 'Wyoming Department of Transportation', 'https://www.dot.state.wy.us/', 'For-hire intrastate carriers must register with WYDOT',
 FALSE, NULL, NULL, NULL, NULL,
 FALSE, NULL, NULL, NULL, NULL,
 TRUE, NULL)

ON CONFLICT (state_code) DO NOTHING;

COMMIT;
