/* ============================================================
   MA SO THUE PORTAL — theme.css  v3.0
   Pixel-perfect rebuild matching the provided mockups
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* ---- Design tokens ---- */
:root {
    --blue:      #0057d9;
    --blue-2:    #003b9d;
    --blue-light:#eef5ff;
    --red:       #ed111b;
    --ink:       #061640;
    --muted:     #667293;
    --border:    #e3eaf6;
    --soft:      #f5f8fe;
    --card:      #ffffff;
    --shadow:    0 2px 12px rgba(10,37,86,.07);
    --shadow-lg: 0 10px 30px rgba(10,37,86,.10);
    --radius:    8px;
    --sidebar-w: 228px;
    --header-h:  68px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
    color: var(--ink);
    background: #f7faff;
    font-family: 'Inter', Arial, Helvetica, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font-family: inherit; }

/* ---- Container ---- */
.mstp-container {
    width: min(1440px, calc(100% - 32px));
    margin: 0 auto;
}

/* ============================================================
   HEADER
   ============================================================ */
.mstp-header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border);
    background: rgba(255,255,255,.97);
    backdrop-filter: blur(14px);
}
.mstp-header__inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 24px;
    min-height: var(--header-h);
}

/* Logo */
.mstp-logo a,
.mstp-logo__fallback {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--blue);
    font-weight: 900;
    text-decoration: none;
}
.custom-logo { max-width: 200px; max-height: 56px; object-fit: contain; }
.mstp-logo__mark {
    display: grid;
    place-items: center;
    width: 52px; height: 52px;
    border: 4px solid var(--blue);
    border-right-color: var(--red);
    border-radius: 50%;
    font-size: 13px;
    font-weight: 900;
    color: var(--blue);
    flex-shrink: 0;
}
.mstp-logo__text strong {
    display: block;
    font-size: 20px;
    line-height: 1;
    letter-spacing: .5px;
}
.mstp-logo__text em { color: var(--red); font-style: normal; }
.mstp-logo__text small {
    display: block;
    margin-top: 3px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .4px;
    color: var(--muted);
    text-transform: uppercase;
}

/* Nav menu */
.mstp-menu {
    display: flex;
    justify-content: center;
    gap: 4px;
    list-style: none;
}
.mstp-menu li { position: relative; }
.mstp-menu a {
    display: block;
    padding: 22px 14px 19px;
    border-bottom: 3px solid transparent;
    color: #1a2340;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .4px;
    transition: color .15s, border-color .15s;
    text-decoration: none;
}
.mstp-menu a:hover,
.mstp-menu .current-menu-item > a {
    border-bottom-color: var(--red);
    color: var(--blue);
    text-decoration: none;
}

/* Auth buttons */
.mstp-auth { display: flex; gap: 10px; align-items: center; }
.mstp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    padding: 0 18px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity .15s;
    text-decoration: none;
    white-space: nowrap;
}
.mstp-btn:hover { opacity: .88; text-decoration: none; }
.mstp-btn--ghost { border: 1.5px solid var(--blue); background: #fff; color: var(--blue); }
.mstp-btn--red   { border: 1.5px solid var(--red);  background: var(--red); color: #fff; }

.mstp-nav-toggle { display: none; }

/* ============================================================
   APP SHELL WRAPPER — Container + sidebar + content
   ============================================================ */

/* The outer wrapper that constrains width like the homepage */
.mstp-app-wrapper {
    width: min(1440px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
    min-height: calc(100vh - var(--header-h));
}

/* Keep mstp-app-shell for backward compat but override it when inside wrapper */
.mstp-app-shell {
    display: contents;
}

/* ---- SIDEBAR ---- */
.mstp-sidebar {
    position: sticky;
    top: var(--header-h);
    align-self: start;
    height: calc(100vh - var(--header-h));
    border-right: 1px solid var(--border);
    background: #fff;
    padding: 24px 16px;
    font-size: 13px;
    overflow-y: auto;
}
.mstp-sidebar h2 {
    padding: 0 8px;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .6px;
}
.mstp-side-nav {
    display: grid;
    gap: 2px;
    margin-bottom: 0;
}
.mstp-side-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 8px 12px;
    border-radius: 6px;
    color: #1a2340;
    font-size: 13px;
    font-weight: 600;
    transition: background .12s, color .12s;
    text-decoration: none;
}
.mstp-side-nav a:hover { background: var(--blue-light); text-decoration: none; }
.mstp-side-nav .is-active {
    background: var(--blue-light);
    color: var(--blue);
    font-weight: 700;
    box-shadow: inset 3px 0 0 var(--blue);
}
.mstp-sidebar hr {
    border: 0;
    border-top: 1px solid var(--border);
    margin: 16px 0;
}
.mstp-support-card {
    margin-top: 28px;
    padding: 14px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--soft);
}
.mstp-support-card .mstp-support-label {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    font-size: 12px;
}
.mstp-support-card strong {
    display: block;
    margin: 4px 0 2px;
    color: var(--blue);
    font-size: 15px;
    font-weight: 700;
}
.mstp-support-card small {
    display: block;
    color: var(--muted);
    font-size: 12px;
}

/* ---- MAIN CONTENT ---- */
.mstp-content {
    position: relative;
    padding: 28px 32px 46px;
    background: #f7faff;
    min-width: 0;
    /* No overflow:hidden here — ribbon uses absolute positioning within */
}
.mstp-page-ribbon {
    position: absolute;
    top: 0; right: 0;
    width: 300px; height: 200px;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
    background:
        linear-gradient(135deg, transparent 0 30%, rgba(0,87,217,.10) 30% 42%, transparent 42%),
        linear-gradient(135deg, transparent 0 48%, #0057d9 48% 58%, #0042ad 58% 67%, var(--red) 67% 76%, transparent 76%);
}
.mstp-breadcrumb {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin: 0 0 14px;
    color: #697799;
    font-size: 13px;
}
.mstp-breadcrumb a { color: #697799; }
.mstp-breadcrumb a:hover { color: var(--blue); }
.mstp-breadcrumb span::before { content: "›"; margin-right: 6px; color: #9aa7bf; }
.mstp-page-title {
    position: relative;
    z-index: 1;
    margin: 0 0 22px;
    color: var(--blue);
    font-size: 24px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .3px;
}

/* ============================================================
   COMPANY HERO (detail page top card)
   ============================================================ */
.mstp-company-hero {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: 20px;
    align-items: center;
    margin-bottom: 20px;
    padding: 22px 28px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
}
.mstp-company-icon {
    display: grid;
    place-items: center;
    width: 68px; height: 68px;
    border-radius: 50%;
    background: var(--blue-light);
    color: var(--blue);
    font-size: 32px;
    flex-shrink: 0;
}
.mstp-company-hero h2 {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 22px;
    font-weight: 800;
    color: var(--ink);
}
.mstp-company-hero p { font-size: 15px; color: var(--muted); }
.mstp-company-hero p strong { color: var(--ink); font-size: 17px; font-weight: 700; }
.mstp-company-actions { display: flex; gap: 10px; }
.mstp-company-actions a,
.mstp-company-actions button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 38px;
    padding: 0 16px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: #fff;
    color: var(--ink);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color .12s, color .12s;
    text-decoration: none;
}
.mstp-company-actions a:hover,
.mstp-company-actions button:hover { border-color: var(--blue); color: var(--blue); text-decoration: none; }

/* ============================================================
   DETAIL LAYOUT (main + right sidebar)
   ============================================================ */
.mstp-detail-layout {
    display: grid;
    grid-template-columns: minmax(0,1fr) 272px;
    gap: 20px;
    position: relative;
    z-index: 1;
    align-items: start;
}
.mstp-detail-main { min-width: 0; }

/* ---- Tabs ---- */
.mstp-tabs {
    display: flex;
    margin-bottom: 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
    overflow: hidden;
}
.mstp-tabs button {
    flex: 1;
    min-height: 52px;
    padding: 0 8px;
    border: 0;
    border-bottom: 3px solid transparent;
    background: transparent;
    color: #3a4a70;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: color .12s, border-color .12s;
}
.mstp-tabs button:hover { color: var(--blue); }
.mstp-tabs .is-active {
    border-bottom-color: var(--blue);
    color: var(--blue);
    font-weight: 700;
}

/* ---- Tab panels ---- */
.mstp-tab-panel { display: none; }
.mstp-tab-panel.is-active { display: block; }
.mstp-tab-panel > h2 {
    margin: 0 0 18px;
    color: var(--blue);
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .4px;
}

/* Card */
.mstp-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
    padding: 24px 28px;
}

/* ---- Info grid ---- */
.mstp-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 0 40px;
}
.mstp-info-grid div {
    display: grid;
    grid-template-columns: 50% 1fr;
    gap: 8px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    align-items: start;
}
.mstp-info-grid span { color: var(--muted); font-size: 13px; font-weight: 500; }
.mstp-info-grid strong { color: var(--ink); font-size: 13px; font-weight: 600; word-break: break-word; overflow: visible; }
.mstp-info-grid .mstp-source-value { white-space: normal; line-height: 1.55; }
/* Badge inside info-grid value cell — let it wrap and show fully */
.mstp-info-grid strong .mstp-badge,
.mstp-info-grid .mstp-badge {
    background: #ffe1e5;
    color: #b91c27;
    white-space: normal;
    height: auto;
    line-height: 1.4;
    display: inline-flex;
    padding: 3px 10px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 700;
    word-break: break-word;
}
.mstp-info-grid .mstp-badge:not(.is-red) {
    background: #dcfce7;
    color: #166534;
}

.mstp-info-sub {
    grid-column: 1 / -1;
    margin: 20px 0 4px;
    color: var(--blue);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .3px;
}

/* ---- Company right sidebar ---- */
.mstp-company-side {
    display: grid;
    align-content: start;
    gap: 16px;
    min-width: 0;
    overflow: hidden;
}
.mstp-widget {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
    padding: 20px;
    overflow: hidden;
    word-break: break-word;
}
.mstp-widget > h2 {
    margin: 0 0 16px;
    color: var(--blue);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .4px;
}
.mstp-highlight-list { display: grid; gap: 14px; }
.mstp-highlight-list > div {
    display: grid;
    grid-template-columns: 28px 1fr;
    gap: 10px;
    align-items: start;
    min-width: 0;
}
.mstp-highlight-list > div .mstp-hl-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px; height: 28px;
    border-radius: 7px;
    background: var(--blue-light);
    color: var(--blue);
    flex-shrink: 0;
    margin-top: 1px;
}
.mstp-highlight-list > div .mstp-hl-body {
    display: grid;
    gap: 2px;
    min-width: 0;
    word-break: break-word;
}
.mstp-highlight-list span { color: var(--muted); font-size: 12px; line-height: 1.4; }
.mstp-highlight-list strong { color: var(--ink); font-size: 13px; font-weight: 700; word-break: break-word; }

/* Side action buttons */
.mstp-side-action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 40px;
    margin-top: 8px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: #fff;
    color: var(--blue);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: background .12s, border-color .12s;
    text-decoration: none;
}
.mstp-side-action:hover { background: var(--blue-light); text-decoration: none; }
.mstp-side-action.is-danger { border-color: #ffcdd0; color: var(--red); }
.mstp-side-action.is-danger:hover { background: #fff5f5; }

/* ============================================================
   STATUS BADGE
   ============================================================ */
.mstp-badge {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 3px 10px;
    border-radius: 5px;
    background: #dcfce7;
    color: #166534;
    font-size: 12px;
    font-weight: 700;
    white-space: normal;
    word-break: break-word;
    line-height: 1.4;
    max-width: 100%;
}
/* In table cells — no background, keep original text color */
td .mstp-badge {
    background: transparent;
    padding: 0;
    border-radius: 0;
    font-size: 13px;
    font-weight: 600;
    white-space: normal;
    word-break: break-word;
    line-height: 1.5;
    min-height: 0;
    color: #166534;
}
td .mstp-badge.is-red {
    background: transparent;
    color: #b91c27;
}
/* In widget sidebar */
.mstp-hl-body .mstp-badge {
    white-space: normal;
    height: auto;
    min-height: 24px;
    line-height: 1.3;
    word-break: break-word;
}
.mstp-badge.is-red { background: #ffe1e5; color: #b91c27; }

/* ============================================================
   SEARCH RESULTS PAGE
   ============================================================ */
.mstp-filter-bar {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0,1fr) 160px 160px 160px 130px auto;
    gap: 12px;
    align-items: end;
    margin-bottom: 20px;
    padding: 20px 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
}
.mstp-filter-bar input,
.mstp-filter-bar select {
    height: 44px;
    padding: 0 14px;
    border: 1px solid #d7e1ef;
    border-radius: 6px;
    background: #fff;
    color: var(--ink);
    font-size: 13px;
    min-width: 0;
}
.mstp-filter-bar input::placeholder { color: #9aa7c0; }
.mstp-filter-bar button {
    height: 44px;
    padding: 0 20px;
    border: 0;
    border-radius: 6px;
    background: var(--blue);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}
.mstp-filter-bar button:hover { background: var(--blue-2); }
.mstp-reset {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 16px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: #fff;
    color: var(--ink);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    gap: 6px;
    text-decoration: none;
}
.mstp-reset:hover { border-color: var(--blue); color: var(--blue); text-decoration: none; }

/* Results layout: table + filter sidebar */
.mstp-results-layout {
    display: grid;
    grid-template-columns: minmax(0,1fr) 240px;
    gap: 20px;
    position: relative;
    z-index: 1;
}
.mstp-results-card {
    padding: 18px 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
}
.mstp-results-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}
.mstp-results-head p { font-size: 14px; }
.mstp-results-head p strong { color: var(--blue); }
.mstp-results-head-right { display: flex; align-items: center; gap: 12px; }
.mstp-export {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 36px;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: #fff;
    color: var(--ink);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}
.mstp-export:hover { border-color: var(--blue); color: var(--blue); text-decoration: none; }
.mstp-results-per-page {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 13px;
    color: var(--muted);
}
.mstp-results-per-page select {
    height: 34px;
    padding: 0 8px;
    border: 1px solid var(--border);
    border-radius: 5px;
    font-size: 13px;
    background: #fff;
}

/* Table */
.mstp-table-scroll {
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}
.mstp-table-scroll::-webkit-scrollbar {
    display: none; /* Chrome/Safari/Opera */
}
.mstp-result-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 700px;
}
/* Industries table inside detail page - no horizontal scroll */
.mstp-tab-panel .mstp-result-table {
    min-width: 0;
    font-size: 13px;
}
.mstp-result-table th {
    padding: 11px 12px;
    border-bottom: 1px solid var(--border);
    background: #f9fbff;
    color: #253159;
    font-weight: 700;
    text-align: left;
    font-size: 13px;
    white-space: nowrap;
}
.mstp-result-table td {
    padding: 13px 12px;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
    color: var(--ink);
    word-break: break-word;
    overflow-wrap: break-word;
}
/* Address column: give it room to breathe */
.mstp-result-table td:nth-child(4) {
    min-width: 180px;
    max-width: 240px;
}
.mstp-result-table tbody tr:last-child td { border-bottom: none; }
.mstp-result-table td a { color: var(--blue); font-weight: 600; }
.mstp-result-table small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.mstp-industry-name {
    display: block;
    font-weight: 600;
}
.mstp-industry-detail {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
}
.mstp-view {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 32px;
    padding: 0 14px;
    border: 1.5px solid var(--blue);
    border-radius: 6px;
    background: #fff;
    color: var(--blue);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: background .12s, color .12s;
}
.mstp-view:hover { background: var(--blue); color: #fff; text-decoration: none; }

/* Action column — center the button */
.mstp-result-table td:last-child {
    text-align: center;
    vertical-align: middle;
}

/* Pagination */
.mstp-pagination {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    margin-top: 16px;
    flex-wrap: wrap;
}
.mstp-pagination .page-numbers {
    display: inline-flex;
    min-width: 34px; height: 34px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: #fff;
    color: var(--ink);
    font-size: 13px;
    font-weight: 600;
    transition: background .12s, color .12s;
    text-decoration: none;
}
.mstp-pagination .page-numbers:hover { border-color: var(--blue); color: var(--blue); text-decoration: none; }
.mstp-pagination .current { background: var(--blue); border-color: var(--blue); color: #fff; }
.mstp-pagination .dots { border: none; background: none; }

/* Note / info box */
.mstp-note {
    margin: 16px 0 0;
    padding: 10px 14px;
    border-radius: 6px;
    background: #edf4ff;
    color: var(--blue);
    font-size: 13px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

/* Filter sidebar (right side on search results) */
.mstp-filter-side {
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
    font-size: 13px;
    align-self: start;
}
.mstp-filter-side > h2 {
    color: var(--blue);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .4px;
    margin-bottom: 14px;
}
.mstp-filter-side h3 {
    margin: 16px 0 8px;
    color: var(--ink);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .4px;
}
.mstp-filter-side label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 6px 0;
    cursor: pointer;
    font-size: 13px;
}
.mstp-filter-side select {
    width: 100%;
    height: 40px;
    padding: 0 10px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 13px;
    background: #fff;
    color: var(--ink);
    margin-bottom: 8px;
}
.mstp-filter-side .date-range { display: grid; gap: 8px; }
.mstp-filter-side .date-range input {
    width: 100%;
    height: 40px;
    padding: 0 10px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 13px;
    background: #fff;
    color: var(--ink);
}
.mstp-filter-side .mstp-apply-filter,
.mstp-filter-side button[type="submit"] {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    height: 42px;
    margin-top: 14px;
    border: 0;
    border-radius: 6px;
    background: var(--blue);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
}
.mstp-filter-side .mstp-apply-filter:hover,
.mstp-filter-side button[type="submit"]:hover { background: var(--blue-2); }
.mstp-filter-side .mstp-reset-filter,
.mstp-filter-side button[type="button"] {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    margin-top: 8px;
    padding: 8px;
    border: 0;
    background: none;
    color: var(--muted);
    font-size: 13px;
    cursor: pointer;
    font-family: inherit;
}
.mstp-filter-side hr {
    border: 0;
    border-top: 1px solid var(--border);
    margin: 14px 0;
}

/* ============================================================
   HISTORY TAB
   ============================================================ */
.mstp-history-head {
    display: grid;
    grid-template-columns: 150px 1fr 1fr 1fr 130px;
    gap: 12px;
    padding: 8px 0 8px 24px;
    border-bottom: 2px solid var(--border);
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .3px;
}
.mstp-history-timeline { padding: 4px 0; }
.mstp-history-row {
    display: grid;
    grid-template-columns: 150px 1fr 1fr 1fr 130px;
    gap: 12px;
    position: relative;
    padding: 14px 0 14px 24px;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
}
.mstp-history-row:last-child { border-bottom: none; }
.mstp-history-row::before {
    content: "";
    position: absolute;
    left: 4px; top: 20px;
    width: 12px; height: 12px;
    border-radius: 50%;
    background: var(--blue);
}
.mstp-history-row::after {
    content: "";
    position: absolute;
    left: 9px; top: 32px;
    width: 2px;
    height: calc(100% - 18px);
    background: var(--border);
}
.mstp-history-row:last-child::after { display: none; }
.mstp-history-time { color: var(--muted); font-size: 12px; line-height: 1.5; }

/* Pagination inside history */
.mstp-history-pager {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
    gap: 10px;
}
.mstp-history-pager .mstp-pager-left {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--muted);
}
.mstp-history-pager select {
    height: 34px;
    padding: 0 8px;
    border: 1px solid var(--border);
    border-radius: 5px;
    font-size: 13px;
}

/* Related info tabs */
.mstp-related-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    border-bottom: 2px solid var(--border);
    margin-bottom: 18px;
    overflow-x: visible;
}
.mstp-related-tabs button {
    height: 42px;
    padding: 0 16px;
    border: 0;
    border-bottom: 3px solid transparent;
    background: none;
    color: #3a4a70;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: -2px;
    transition: color .12s, border-color .12s;
    white-space: nowrap;
    flex-shrink: 0;
}
.mstp-related-tabs button:hover { color: var(--blue); }
.mstp-related-tabs .is-active {
    border-bottom-color: var(--blue);
    color: var(--blue);
    font-weight: 700;
}
.mstp-related-panel { display: none; }
.mstp-related-panel.is-active { display: block; }

/* Industries table */
.mstp-badge--main { background: #dbeafe; color: #1e40af; }

/* ============================================================
   FOOTER
   ============================================================ */
/* ============================================================
   FOOTER — redesign v2
   ============================================================ */

/* -- Top stripe: logo + hotline -- */
.mstp-footer__topbar {
    background: #0a1f56;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.mstp-footer__topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 0;
    gap: 20px;
}
.mstp-footer__topbar-brand .mstp-logo__fallback { filter: brightness(0) invert(1); }
.mstp-footer__topbar-cta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    color: rgba(255,255,255,.6);
}
.mstp-footer__hotline {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--red);
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    padding: 9px 20px;
    border-radius: 40px;
    text-decoration: none;
    transition: background .18s;
    white-space: nowrap;
}
.mstp-footer__hotline:hover { background: #c80e17; text-decoration: none; }

/* -- Main body -- */
.mstp-footer__body {
    background: var(--ink); /* #061640 */
}
.mstp-footer__grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
    gap: 0;
    padding: 48px 0 40px;
}
.mstp-footer__col {
    padding: 0 32px 0 0;
    border-right: 1px solid rgba(255,255,255,.07);
}
.mstp-footer__col:first-child { padding-left: 0; }
.mstp-footer__col:last-child  { padding-right: 0; border-right: none; }
.mstp-footer__col:not(:first-child) { padding-left: 32px; }

/* Brand col */
.mstp-footer__col--brand .mstp-logo__fallback { filter: brightness(0) invert(1); opacity: .9; }
.mstp-footer__desc {
    margin: 18px 0 20px;
    font-size: 13px;
    line-height: 1.75;
    color: rgba(255,255,255,.55);
    max-width: 280px;
}

/* Social */
.mstp-footer__social {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}
.mstp-footer__social-btn {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: rgba(255,255,255,.08);
    color: rgba(255,255,255,.7);
    text-decoration: none;
    transition: background .18s, color .18s;
}
.mstp-footer__social-btn:hover {
    background: var(--blue);
    color: #fff;
    text-decoration: none;
}

/* Security badge */
.mstp-footer__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    color: rgba(255,255,255,.45);
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 20px;
    padding: 5px 12px;
}

/* Headings */
.mstp-footer__heading {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--blue);
    margin: 0 0 18px;
}

/* Link lists */
.mstp-footer__links {
    list-style: none;
    display: grid;
    gap: 10px;
}
.mstp-footer__links li { display: flex; align-items: center; gap: 6px; }
.mstp-footer__links li::before {
    content: '';
    display: block;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(0,87,217,.6);
    flex-shrink: 0;
}
.mstp-footer__links a {
    font-size: 13px;
    color: rgba(255,255,255,.65);
    text-decoration: none;
    transition: color .15s;
    line-height: 1.4;
}
.mstp-footer__links a:hover { color: #fff; text-decoration: none; }

/* WP nav_menu inside footer col */
.mstp-footer__col .mstp-footer-menu {
    list-style: none;
    display: grid;
    gap: 10px;
    margin-bottom: 20px;
}
.mstp-footer__col .mstp-footer-menu li { display: flex; align-items: center; gap: 6px; }
.mstp-footer__col .mstp-footer-menu li::before {
    content: '';
    display: block;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(0,87,217,.6);
    flex-shrink: 0;
}
.mstp-footer__col .mstp-footer-menu a {
    font-size: 13px;
    color: rgba(255,255,255,.65);
    text-decoration: none;
    transition: color .15s;
}
.mstp-footer__col .mstp-footer-menu a:hover { color: #fff; text-decoration: none; }

/* Contact block */
.mstp-footer__contact-block {
    margin-top: 20px;
    display: grid;
    gap: 8px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,.07);
}
.mstp-footer__contact-item {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    color: rgba(255,255,255,.5);
    text-decoration: none;
}
.mstp-footer__contact-item:hover { color: rgba(255,255,255,.85); text-decoration: none; }

/* -- Bottom bar -- */
.mstp-footer__bottom {
    background: #030d2a;
}
.mstp-footer__bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    gap: 16px;
    font-size: 12px;
    color: rgba(255,255,255,.35);
}
.mstp-footer__bottom-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}
.mstp-footer__bottom-links a {
    color: rgba(255,255,255,.35);
    text-decoration: none;
    transition: color .15s;
}
.mstp-footer__bottom-links a:hover { color: rgba(255,255,255,.7); text-decoration: none; }

/* ============================================================
   HOMEPAGE
   ============================================================ */
.mstp-section { padding: 40px 0; background: #fff; }
.mstp-section-title {
    text-align: center;
    margin: 0 0 28px;
    color: var(--blue);
    font-size: 22px;
    font-weight: 800;
    text-transform: uppercase;
}
.mstp-section-title::after {
    content: "";
    display: block;
    width: 56px; height: 3px;
    margin: 10px auto 0;
    background: linear-gradient(90deg, var(--blue) 0 55%, var(--red) 55%);
}

/* Hero */
.mstp-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(110deg, #fff 0%, #fff 50%, #eef5ff 100%);
}
.mstp-hero::after {
    content: "";
    position: absolute;
    right: 0; top: 0;
    width: 320px; height: 230px;
    background:
        linear-gradient(135deg, transparent 0 28%, rgba(0,87,217,.13) 28% 40%, transparent 40%),
        linear-gradient(135deg, transparent 0 46%, #0057d9 46% 58%, #0042ad 58% 68%, var(--red) 68% 78%, transparent 78%);
    pointer-events: none;
}
.mstp-hero__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    min-height: 300px;
    padding: 48px 0 80px;
}
.mstp-hero h1 { font-size: 36px; line-height: 1.25; color: var(--blue-2); font-weight: 900; margin-bottom: 16px; }
.mstp-hero h1 span { color: var(--red); }
.mstp-hero p { max-width: 560px; margin-bottom: 28px; color: #24345d; font-size: 15px; }
.mstp-hero__features { display: flex; gap: 20px; flex-wrap: wrap; }
.mstp-hero__features span { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: #24345d; }

/* Laptop visual */
.mstp-hero__visual { position: relative; display: flex; justify-content: center; }
.mstp-laptop {
    width: 380px; height: 240px;
    background: #1a2340;
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,.2);
}
.mstp-laptop__screen {
    background: #fff;
    border-radius: 6px;
    height: 100%;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.mstp-laptop__logo {
    font-weight: 900;
    color: var(--blue);
    font-size: 16px;
}
.mstp-laptop__rows { display: flex; flex-direction: column; gap: 8px; }
.mstp-laptop__rows i {
    display: block;
    height: 8px;
    border-radius: 4px;
    background: #eef5ff;
}
.mstp-laptop__rows i:nth-child(1) { width: 80%; }
.mstp-laptop__rows i:nth-child(2) { width: 60%; }
.mstp-laptop__rows i:nth-child(3) { width: 90%; }
.mstp-laptop__rows i:nth-child(4) { width: 50%; }
.mstp-laptop__rows i:nth-child(5) { width: 70%; }
.mstp-stat-card {
    position: absolute;
    bottom: -16px; right: 20px;
    padding: 12px 16px;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0,0,0,.15);
}
.mstp-stat-card strong { display: block; font-size: 22px; color: var(--blue); font-weight: 900; }
.mstp-stat-card span { font-size: 12px; color: var(--muted); }

/* Home search */
.mstp-home-search { margin-top: -50px; position: relative; z-index: 3; }
.mstp-search-panel {
    max-width: 1060px;
    margin: 0 auto;
    padding: 14px 60px 24px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--blue), #003eaa);
    box-shadow: var(--shadow-lg);
}
.mstp-search-tabs {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    margin-bottom: 0;
}
.mstp-search-tabs button {
    height: 56px;
    border: 0;
    background: transparent;
    color: #c0d8ff;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.mstp-search-tabs .is-active {
    border-radius: 7px 7px 0 0;
    background: #fff;
    color: var(--ink);
    border-bottom-color: transparent;
}
.mstp-search-box {
    display: grid;
    grid-template-columns: 1fr auto;
    overflow: hidden;
    border-radius: 7px;
    background: #fff;
}
.mstp-search-box input {
    min-width: 0;
    height: 52px;
    padding: 0 16px;
    border: 0;
    font-size: 14px;
    color: var(--ink);
    outline: none;
}
.mstp-search-box input::placeholder { color: #9aa7c0; }
.mstp-search-box button {
    border: 0;
    height: 52px;
    padding: 0 28px;
    background: var(--red);
    color: #fff;
    font-weight: 800;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}
.mstp-search-panel > p { margin: 10px 0 0; color: #c0d8ff; font-size: 13px; }
.mstp-search-panel .mstp-search-hint {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

/* Stats */
.mstp-stats { padding: 16px 0 40px; background: #f7faff; }
.mstp-stats__inner {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    overflow: hidden;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--blue), #0042ad);
}
.mstp-stats__inner > div { padding: 22px; color: #fff; text-align: center; }
.mstp-stats__inner > div + div { border-left: 1px solid rgba(255,255,255,.25); }
.mstp-stats strong { display: block; font-size: 26px; font-weight: 800; }
.mstp-stats span { font-size: 13px; opacity: .85; }

/* Service grid */
.mstp-service-grid {
    display: grid;
    grid-template-columns: repeat(6,1fr);
    gap: 14px;
}
.mstp-service-card {
    min-height: 150px;
    padding: 22px 14px;
    text-align: center;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
    transition: box-shadow .15s, transform .15s;
    text-decoration: none;
    color: var(--ink);
    display: block;
}
.mstp-service-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); text-decoration: none; }
.mstp-service-card span {
    display: grid;
    place-items: center;
    width: 48px; height: 48px;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: var(--blue);
    color: #fff;
    font-size: 20px;
}
.mstp-service-card:nth-child(even) span { background: var(--red); }
.mstp-service-card h3 { margin: 0 0 6px; font-size: 14px; font-weight: 700; color: var(--ink); }
.mstp-service-card p { font-size: 12px; color: var(--muted); }

/* News grid */
.mstp-news-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.mstp-news-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
    overflow: hidden;
}
.mstp-news-card > a {
    display: flex;
    min-height: 110px;
    color: var(--ink);
    text-decoration: none;
}
.mstp-news-card img { width: 140px; height: 110px; object-fit: cover; flex-shrink: 0; }
.mstp-thumb-placeholder {
    width: 140px; height: 110px;
    background: linear-gradient(135deg, #dbe8ff, #f3f7ff);
    flex-shrink: 0;
}
.mstp-news-card div { padding: 12px; }
.mstp-news-card h3 { margin: 4px 0 0; font-size: 14px; font-weight: 700; }

/* News layout pages */
.mstp-news-layout {
    display: grid;
    grid-template-columns: minmax(0,1fr) 280px;
    gap: 20px;
    position: relative;
    z-index: 1;
    min-width: 0;
}

/* News list */
.mstp-news-list { padding: 0; }
.mstp-news-row {
    display: grid;
    grid-template-columns: 180px minmax(0,1fr);
    gap: 18px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
    color: var(--ink);
}
.mstp-news-row:first-child { padding-top: 0; }
.mstp-news-row__thumb img,
.mstp-news-row__thumb .mstp-thumb-placeholder {
    width: 180px; height: 115px;
    border-radius: 5px;
    object-fit: cover;
}
.mstp-news-row h2 { font-size: 17px; line-height: 1.4; text-transform: uppercase; margin-bottom: 6px; }
.mstp-news-row p { color: #26375f; font-size: 13px; margin-bottom: 6px; }
.mstp-news-row .mstp-news-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 12px;
    color: var(--muted);
}

/* Right sidebar */
.mstp-rightbar { display: grid; align-content: start; gap: 16px; }
.mstp-mini-post {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    color: var(--ink);
    text-decoration: none;
    align-items: start;
}
.mstp-mini-post:last-child { border-bottom: none; }
.mstp-mini-post img,
.mstp-mini-post .mstp-mini-thumb {
    width: 64px; height: 50px;
    border-radius: 5px;
    object-fit: cover;
    background: linear-gradient(135deg, #dbe8ff, #f3f7ff);
    flex-shrink: 0;
    display: block;
}
.mstp-mini-post > div { display: grid; gap: 3px; min-width: 0; }
.mstp-mini-post h4 { font-size: 13px; font-weight: 600; line-height: 1.4; margin: 0; word-break: break-word; }
.mstp-mini-post small { color: var(--muted); font-size: 12px; white-space: nowrap; }

.mstp-category-list { list-style: none; }
.mstp-category-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
}
.mstp-category-list li:last-child { border-bottom: none; }
.mstp-newsletter { display: grid; gap: 10px; }
.mstp-newsletter input {
    height: 44px;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 13px;
    width: 100%;
}
.mstp-newsletter button {
    height: 44px;
    border: 0;
    border-radius: 6px;
    background: var(--blue);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    font-size: 13px;
}

/* Rightbar widget */
.mstp-rightbar-widget {
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
}
.mstp-rightbar-widget > h3 {
    color: var(--blue);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .4px;
    margin-bottom: 14px;
}

/* Article */
.mstp-article { padding: 0 0 36px; }
.mstp-article__category a {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 5px;
    background: var(--blue);
    color: #fff;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    text-decoration: none;
}
.mstp-article h1 { max-width: 900px; margin: 14px 0; font-size: 28px; line-height: 1.3; text-transform: uppercase; }
.mstp-article__meta { display: flex; gap: 20px; color: var(--muted); margin-bottom: 20px; font-size: 13px; }
.mstp-article__share { display: flex; align-items: center; gap: 8px; }
.mstp-article__share a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px; height: 28px;
    border-radius: 50%;
    background: var(--blue);
    color: #fff;
    font-size: 12px;
    text-decoration: none;
}
.mstp-article__thumb img { width: 100%; max-height: 380px; object-fit: cover; border-radius: 7px; }
.mstp-article__content { margin-top: 20px; color: #14204b; font-size: 15px; line-height: 1.75; }
.mstp-article__content h2 { margin: 28px 0 12px; font-size: 18px; text-transform: uppercase; color: var(--blue-2); }
.mstp-article__content ul { padding-left: 20px; margin-bottom: 12px; }
.mstp-article__content a { color: var(--blue); }
.mstp-article__content p { margin-bottom: 14px; }

/* Simple page */
.mstp-simple-page { padding: 36px 0; }
.mstp-page-card { padding: 24px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }

/* Search filter bar on news page */
.mstp-news-filter {
    display: grid;
    grid-template-columns: minmax(0,1fr) 160px 140px 160px 120px;
    gap: 12px;
    align-items: center;
    margin-bottom: 20px;
    padding: 16px 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
}
.mstp-news-filter input,
.mstp-news-filter select {
    height: 42px;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: #fff;
    color: var(--ink);
    font-size: 13px;
    min-width: 0;
}
.mstp-news-filter input::placeholder { color: #9aa7c0; }
.mstp-news-filter button {
    height: 42px;
    padding: 0 20px;
    border: 0;
    border-radius: 6px;
    background: var(--blue);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

/* Featured badge */
.mstp-featured-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 4px;
    background: #ff6b35;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 6px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Search results table — explicit column sizing */
.mstp-result-table col.col-stt   { width: 42px; }
.mstp-result-table col.col-mst   { width: 130px; }
.mstp-result-table col.col-name  { width: 25%; }
.mstp-result-table col.col-addr  { width: 22%; }
.mstp-result-table col.col-organ { width: 14%; }
.mstp-result-table col.col-status{ width: 120px; }
.mstp-result-table col.col-action{ width: 70px; }

@media (max-width: 1180px) {
    .mstp-service-grid { grid-template-columns: repeat(3,1fr); }
    .mstp-results-layout,
    .mstp-detail-layout,
    .mstp-news-layout { grid-template-columns: 1fr; }
    .mstp-filter-bar { grid-template-columns: 1fr 1fr 1fr 1fr; }
    .mstp-app-wrapper { grid-template-columns: 200px 1fr; }
}

@media (max-width: 920px) {
    .mstp-container,
    .mstp-app-wrapper { width: calc(100% - 32px); }
    .mstp-header__inner { grid-template-columns: 1fr auto; min-height: 60px; }
    .mstp-nav-toggle {
        display: inline-flex;
        min-height: 36px;
        align-items: center;
        padding: 6px 12px;
        border: 1px solid var(--border);
        border-radius: 6px;
        background: #fff;
        font-size: 13px;
        cursor: pointer;
    }
    .mstp-nav, .mstp-auth { display: none; }
    .mstp-nav.is-open { display: block; grid-column: 1 / -1; }
    .mstp-menu { display: grid; gap: 0; }
    .mstp-menu a { padding: 12px 0; }
    .mstp-app-wrapper { grid-template-columns: 1fr; }
    .mstp-sidebar { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--border); padding: 20px 16px; }
    .mstp-content { padding: 22px 16px 36px; }
    .mstp-filter-bar { grid-template-columns: 1fr; }
    .mstp-hero__grid { grid-template-columns: 1fr; }
    .mstp-hero__visual { display: none; }
    .mstp-service-grid,
    .mstp-news-grid,
    .mstp-stats__inner { grid-template-columns: 1fr; }
    .mstp-info-grid { grid-template-columns: 1fr; }
    .mstp-company-hero { grid-template-columns: auto 1fr; }
    .mstp-company-actions { grid-column: 1 / -1; flex-wrap: wrap; }
    .mstp-footer__grid { grid-template-columns: 1fr 1fr; }
    .mstp-footer__col { border-right: none; border-bottom: 1px solid rgba(255,255,255,.07); padding: 24px 0; }
    .mstp-footer__col:not(:first-child) { padding-left: 0; }
    .mstp-footer__topbar-inner { flex-direction: column; align-items: flex-start; gap: 14px; }
    .mstp-footer__bottom-inner { flex-direction: column; align-items: flex-start; gap: 8px; }
    .mstp-tabs { flex-wrap: wrap; }
    .mstp-history-row,
    .mstp-history-head { grid-template-columns: 1fr; }
    .mstp-news-filter { grid-template-columns: 1fr; }
    .mstp-stats__inner > div + div { border-left: 0; border-top: 1px solid rgba(255,255,255,.25); }
}
.mstp-main { display: block; }

/* ============================================================
   RELATED COMPANIES SECTION (detail page)
   ============================================================ */
.mstp-related-companies {
    margin-top: 28px;
    position: relative;
    z-index: 1;
}
.mstp-related-companies__head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.mstp-related-companies__head h2 {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--blue);
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .3px;
    margin: 0;
}
.mstp-related-companies__head h2 svg { flex-shrink: 0; color: var(--blue); }
.mstp-related-companies__sub {
    display: inline-flex;
    align-items: center;
    padding: 3px 12px;
    border-radius: 20px;
    background: var(--blue-light);
    color: var(--blue);
    font-size: 12px;
    font-weight: 600;
}

/* Grid: 4 columns desktop → 2 mobile */
/* Grid: 2 cột */
.mstp-related-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.mstp-related-card {
    display: grid;
    grid-template-columns: 36px 1fr;
    gap: 12px;
    align-items: flex-start;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
    text-decoration: none;
    color: var(--ink);
    transition: border-color .15s, box-shadow .15s;
}
.mstp-related-card:hover {
    border-color: var(--blue);
    box-shadow: 0 4px 18px rgba(0,87,217,.10);
    text-decoration: none;
    color: var(--ink);
}
.mstp-related-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    border-radius: 8px;
    background: var(--blue-light);
    color: var(--blue);
    flex-shrink: 0;
    margin-top: 1px;
}
.mstp-related-card__body {
    display: grid;
    gap: 4px;
    min-width: 0;
}
.mstp-related-card__name {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    color: var(--blue);
    line-height: 1.4;
    word-break: break-word;
}
.mstp-related-card__code {
    display: flex;
    align-items: flex-start;
    gap: 5px;
    margin: 0;
    font-size: 12px;
    color: var(--muted);
}
.mstp-related-card__code svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--muted);
}
.mstp-related-card__code strong { color: var(--ink); font-weight: 600; }
.mstp-related-card__addr {
    display: flex;
    align-items: flex-start;
    gap: 5px;
    margin: 0;
    font-size: 12px;
    color: var(--muted);
    line-height: 1.4;
}
.mstp-related-card__addr svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--muted);
}
.mstp-related-card__status { display: none; } /* removed per request */

@media (max-width: 920px) { .mstp-related-grid { grid-template-columns: 1fr; } }

/* ============================================================
   HOMEPAGE — COMPANY LIST SECTION
   ============================================================ */
.mstp-home-companies { background: #f7faff; }

.mstp-home-company-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 10px;
}
.mstp-home-company-grid--hidden { display: none; }

.mstp-hc-card {
    display: grid;
    grid-template-columns: 36px 1fr;
    gap: 12px;
    align-items: flex-start;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
    text-decoration: none;
    color: var(--ink);
    transition: border-color .15s, box-shadow .15s;
}
.mstp-hc-card:hover {
    border-color: var(--blue);
    box-shadow: 0 4px 18px rgba(0,87,217,.10);
    text-decoration: none;
    color: var(--ink);
}
.mstp-hc-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    border-radius: 8px;
    background: var(--blue-light);
    color: var(--blue);
    flex-shrink: 0;
    margin-top: 1px;
}
.mstp-hc-card__body {
    display: grid;
    gap: 4px;
    min-width: 0;
}
.mstp-hc-card__name {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    color: var(--blue);
    line-height: 1.4;
    word-break: break-word;
}
.mstp-hc-card__row {
    display: flex;
    align-items: flex-start;
    gap: 5px;
    margin: 0;
    font-size: 12px;
    color: var(--muted);
    line-height: 1.5;
}
.mstp-hc-card__row svg { flex-shrink: 0; margin-top: 2px; color: var(--muted); }
.mstp-hc-card__row strong { color: var(--ink); font-weight: 600; }
.mstp-hc-card__row--addr { line-height: 1.4; }

/* Load more button */
.mstp-home-loadmore-wrap {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}
.mstp-home-loadmore {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 44px;
    padding: 0 28px;
    border: 1.5px solid var(--blue);
    border-radius: 8px;
    background: #fff;
    color: var(--blue);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: background .15s, color .15s;
}
.mstp-home-loadmore:hover { background: var(--blue); color: #fff; }

@media (max-width: 760px) { .mstp-home-company-grid { grid-template-columns: 1fr; } }

@media (max-width: 600px) {
    .mstp-footer__grid { grid-template-columns: 1fr; }
    .mstp-footer__col--brand .mstp-footer__desc { max-width: 100%; }
    .mstp-footer__bottom-links { gap: 12px; }
}
