@charset "UTF-8";
/* Mobile-first shell for SODA SCAN. Loaded after whscan2.css; page-level rules use the ws- prefix. */

:root {
    --ws-navy: #14487E;
    --ws-navy-dark: #0e3560;
    --ws-navy-soft: #e8f0fa;
    --ws-red: #be3426;
    --ws-bg: #f3f5f9;
    --ws-card: #fff;
    --ws-text: #1f2937;
    --ws-muted: #6b7280;
    --ws-border: #e5e7eb;
    --ws-radius: 14px;
    --ws-shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 4px 12px rgba(16, 24, 40, .06);
}

body {
    background: var(--ws-bg);
    color: var(--ws-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
    -webkit-tap-highlight-color: transparent;
}

/* ---------- Header ---------- */
header.ws-header {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 1030;
    margin-bottom: 0;
    border: 0;
    background: var(--ws-navy);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
}
.ws-header .container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    min-height: 56px;
}
.ws-header .container:before,
.ws-header .container:after,
.ws-header .navbar-header:before,
.ws-header .navbar-header:after {
    display: none;
}
.ws-header .container > .navbar-header {
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    float: none;
    margin: 0;
}
.ws-header .navbar-brand,
.ws-header .container > .navbar-header .navbar-brand {
    display: inline-flex;
    align-items: center;
    float: none;
    height: auto;
    margin: 0;
    padding: 12px 0;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: .06em;
    outline: none;
}
.ws-brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin-right: 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .14);
    font-size: 16px;
    top: 0;
}
.ws-header-actions {
    display: flex;
    align-items: center;
    margin-left: auto;
}
.ws-icon-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    color: #fff !important;
    font-size: 18px;
    text-decoration: none !important;
}
.ws-icon-btn:hover,
.ws-icon-btn:focus {
    background: rgba(255, 255, 255, .12);
    outline: none;
}
.ws-icon-btn .glyphicon {
    top: 0;
}
.ws-badge {
    position: absolute;
    top: 4px;
    right: 2px;
    min-width: 18px;
    height: 18px;
    margin: 0;
    padding: 0 5px;
    border-radius: 9px;
    background: var(--ws-red);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
}
.ws-header .navbar-toggle {
    float: none;
    margin: 0 0 0 4px;
    padding: 12px 10px;
    border: 0;
    border-radius: 10px;
}
.ws-header .navbar-toggle:hover,
.ws-header .navbar-toggle:focus {
    background: rgba(255, 255, 255, .12);
}
.ws-header .navbar-collapse {
    flex-basis: calc(100% + 30px);
    max-height: none;
    margin: 0 -15px;
    padding: 0;
    border-top: 1px solid rgba(255, 255, 255, .12);
    box-shadow: none;
}
.ws-header .navbar-nav > li > a {
    padding: 14px 16px;
    color: #e8eef6;
    font-size: 15px;
}
.ws-header .navbar-nav > li > a .glyphicon {
    margin-right: 10px;
    opacity: .85;
}
.ws-header .navbar-nav > li > a:hover,
.ws-header .navbar-nav > li > a:focus,
.ws-header .navbar-nav > .open > a,
.ws-header .navbar-nav > .open > a:hover,
.ws-header .navbar-nav > .open > a:focus {
    background: rgba(255, 255, 255, .1);
    color: #fff;
}
.ws-header .hredbar {
    height: 3px;
}
@media (max-width: 767px) {
    .ws-header .navbar-nav {
        margin: 0;
    }
    .ws-header .navbar-nav .dropdown-menu {
        float: none;
        width: auto;
        margin: 0;
        padding: 0;
        border: 0;
        background: rgba(0, 0, 0, .12);
    }
    .ws-header .navbar-nav .dropdown-menu > li > a {
        padding: 12px 16px 12px 42px;
        color: #e8eef6;
        font-size: 15px;
    }
    .ws-header .navbar-nav .dropdown-menu .glyphicon {
        margin-right: 10px;
    }
}
@media (min-width: 768px) {
    .ws-header .navbar-collapse {
        flex-basis: auto;
        margin: 0;
        padding: 0;
        border: 0;
    }
    .ws-header .navbar-nav {
        margin: 0;
    }
}

/* ---------- Main / footer ---------- */
#main {
    padding-top: 16px;
    padding-bottom: 16px;
}
footer {
    margin-top: 8px;
    padding: 16px 0 72px;
    background: transparent;
    color: var(--ws-muted);
    font-size: 13px;
}
footer a {
    color: var(--ws-muted);
}

/* ---------- Page scaffolding ---------- */
.ws-page {
    max-width: 720px;
    margin: 0 auto;
}
.ws-page-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin: 4px 0 18px;
}
.ws-eyebrow {
    color: var(--ws-muted);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
}
h1.ws-title {
    margin: 2px 0 0;
    color: var(--ws-text);
    font-size: 26px;
    font-weight: 700;
    line-height: 1.2;
}
.ws-chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border: 1px solid var(--ws-border);
    border-radius: 999px;
    background: #fff;
    box-shadow: var(--ws-shadow);
    color: var(--ws-navy);
    font-size: 14px;
    font-weight: 600;
}
.ws-chip .glyphicon {
    top: 0;
    margin-right: 6px;
}
.ws-chip select {
    padding: 0 4px;
    border: 0;
    background: transparent;
    color: inherit;
    font-weight: 600;
    outline: none;
}
.ws-section-label {
    margin: 8px 2px 10px;
    color: var(--ws-muted);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.ws-empty {
    padding: 28px 16px;
    border: 1px dashed #cbd5e1;
    border-radius: var(--ws-radius);
    color: var(--ws-muted);
    text-align: center;
}

/* ---------- Tiles ---------- */
.ws-tiles {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}
@media (min-width: 600px) {
    .ws-tiles { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 992px) {
    .ws-tiles { grid-template-columns: repeat(3, 1fr); }
}
a.ws-tile {
    display: flex;
    align-items: center;
    min-height: 76px;
    padding: 16px;
    border: 1px solid var(--ws-border);
    border-radius: var(--ws-radius);
    background: var(--ws-card);
    box-shadow: var(--ws-shadow);
    color: var(--ws-text);
    text-decoration: none;
    transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
a.ws-tile:hover,
a.ws-tile:focus {
    border-color: #c7d6ea;
    box-shadow: 0 6px 18px rgba(20, 72, 126, .12);
    color: var(--ws-text);
    text-decoration: none;
    outline: none;
}
a.ws-tile:active {
    transform: scale(.98);
}
.ws-tile-icon {
    display: flex;
    flex: 0 0 48px;
    align-items: center;
    justify-content: center;
    height: 48px;
    margin-right: 14px;
    border-radius: 12px;
    background: var(--ws-navy-soft);
    color: var(--ws-navy);
    font-size: 22px;
}
.ws-tile-icon .glyphicon,
.ws-tile-chevron.glyphicon {
    top: 0;
}
.ws-tile-body {
    flex: 1;
    min-width: 0;
}
.ws-tile-title {
    display: block;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.25;
}
.ws-tile-desc {
    display: block;
    margin-top: 2px;
    color: var(--ws-muted);
    font-size: 13px;
}
.ws-section-label--spaced {
    margin-top: 24px;
}
a.ws-tile--danger .ws-tile-icon {
    background: #fdecea;
    color: var(--ws-red);
}
a.ws-tile--danger .ws-tile-title {
    color: var(--ws-red);
}
a.ws-tile--danger:hover,
a.ws-tile--danger:focus {
    border-color: #f3c4bf;
    box-shadow: 0 6px 18px rgba(190, 52, 38, .12);
}
.ws-tile-chevron {
    margin-left: 8px;
    color: #9ca3af;
    font-size: 14px;
}

/* ---------- Cards & form controls ---------- */
.ws-card {
    margin-bottom: 14px;
    padding: 16px;
    border: 1px solid var(--ws-border);
    border-radius: var(--ws-radius);
    background: var(--ws-card);
    box-shadow: var(--ws-shadow);
}
.ws-card-title {
    display: flex;
    align-items: center;
    margin: 0 0 12px;
    font-size: 16px;
    font-weight: 700;
}
.ws-card-title .glyphicon {
    top: 0;
    margin-right: 8px;
    color: var(--ws-red);
}
.ws-field {
    margin-bottom: 14px;
}
.ws-field:last-child {
    margin-bottom: 0;
}
.ws-label {
    display: block;
    margin-bottom: 6px;
    color: var(--ws-muted);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.ws-label small {
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
}
.ws-input {
    display: block;
    width: 100%;
    height: 52px;
    padding: 0 14px;
    border: 1.5px solid #d1d5db;
    border-radius: 12px;
    background: #f9fafb;
    color: var(--ws-text);
    font-size: 18px;
    outline: none;
    -webkit-appearance: none;
    transition: border-color .15s, box-shadow .15s, background .15s;
}
.ws-input:focus {
    border-color: var(--ws-navy);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(20, 72, 126, .12);
}
.ws-input[readonly] {
    height: 44px;
    background: #f3f4f6;
    color: var(--ws-muted);
    font-size: 14px;
}
select.ws-input {
    height: 48px;
    font-size: 16px;
}
.ws-input-wrap {
    position: relative;
}
.ws-input-wrap > .glyphicon {
    position: absolute;
    top: 50%;
    left: 16px;
    color: var(--ws-muted);
    font-size: 20px;
    pointer-events: none;
    transform: translateY(-50%);
}
.ws-input--scan {
    height: 60px;
    padding-left: 50px;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: .03em;
}
.ws-btn-row {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}
.ws-btn {
    display: inline-flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    height: 48px;
    padding: 0 18px;
    border: 1.5px solid var(--ws-border);
    border-radius: 12px;
    background: #fff;
    color: var(--ws-text);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}
.ws-btn .glyphicon {
    top: 0;
    margin-right: 8px;
}
.ws-btn:hover,
.ws-btn:focus {
    border-color: #c7d6ea;
    color: var(--ws-text);
    text-decoration: none;
    outline: none;
}
.ws-btn--primary {
    border-color: var(--ws-navy);
    background: var(--ws-navy);
    color: #fff;
}
.ws-btn--primary:hover,
.ws-btn--primary:focus {
    background: var(--ws-navy-dark);
    color: #fff;
}
.ws-btn .uploading {
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 8px;
}

.ws-hint {
    margin: 0 0 14px;
    color: var(--ws-muted);
    font-size: 13px;
    line-height: 1.45;
}
.ws-input-group {
    display: flex;
    align-items: stretch;
}
.ws-input-group .ws-input {
    flex: 1;
    min-width: 0;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}
.ws-lock {
    display: flex;
    flex: 0 0 auto;
    margin: 0;
    cursor: pointer;
    user-select: none;
}
.ws-lock input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.ws-lock span {
    display: inline-flex;
    align-items: center;
    padding: 0 14px;
    border: 1.5px solid #d1d5db;
    border-left: 0;
    border-radius: 0 12px 12px 0;
    background: #fff;
    color: var(--ws-muted);
    font-size: 14px;
    font-weight: 600;
}
.ws-lock .glyphicon {
    top: 0;
    margin-right: 6px;
}
.ws-lock input:checked + span {
    border-color: var(--ws-navy);
    background: var(--ws-navy);
    color: #fff;
}
.ws-reco {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    padding: 12px 14px;
    border-radius: 12px;
    background: var(--ws-navy-soft);
    color: var(--ws-navy);
}
.ws-reco #recommend_location {
    font-size: 24px;
    font-weight: 800;
    word-break: break-all;
    text-align: right;
}
.ws-reco #recommend_location:empty:before {
    content: "\2014";
    opacity: .4;
}
.ws-check {
    display: flex;
    align-items: center;
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}
.ws-check input {
    width: 20px;
    height: 20px;
    margin: 0 10px 0 0;
}
.ws-choice {
    display: flex;
    gap: 8px;
}
.ws-choice label {
    flex: 1;
    margin: 0;
}
.ws-choice input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.ws-choice span {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 46px;
    border: 1.5px solid #d1d5db;
    border-radius: 12px;
    background: #fff;
    color: var(--ws-muted);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}
.ws-choice input:checked + span {
    border-color: var(--ws-navy);
    background: var(--ws-navy-soft);
    color: var(--ws-navy);
}

.ws-options {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 18px;
}
select.ws-input.ws-input--sm {
    width: auto;
    height: 40px;
    margin-left: auto;
    padding: 0 12px;
    font-size: 14px;
}
.ws-filter-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0 12px;
}
@media (min-width: 600px) {
    .ws-filter-grid { grid-template-columns: repeat(3, 1fr); }
}
.ws-filter-grid .ws-field {
    margin-bottom: 12px;
}
.ws-gp {
    margin-top: 14px;
    padding: 14px;
    border-radius: 12px;
    background: #f9fafb;
    border: 1px solid var(--ws-border);
}
.ws-gp-status {
    margin-bottom: 10px;
    color: #16a34a;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
}
.ws-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}
.ws-stats > div {
    padding: 8px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid var(--ws-border);
    text-align: center;
}
.ws-stats span {
    display: block;
    color: var(--ws-muted);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.ws-stats b {
    font-size: 22px;
}
.ws-stats .ws-stat-left b {
    color: #dc2626;
}

/* Legacy report trees (ul.report_list) rendered inside modern pages. */
.ws-report {
    margin-top: 14px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.ws-report .report_list {
    margin: 0;
    padding: 0;
    font-size: 15px;
    line-height: 1.5;
    list-style: none;
}
.ws-report .report_list h2 {
    margin: 0 0 6px;
    font-size: 20px;
    font-weight: 700;
}
.ws-report .report_list p {
    margin: 0 0 6px;
}
.ws-report .report_list ul {
    padding-left: 10px;
    font-size: 14px;
}
.ws-report .report_list ul li {
    padding: 8px 0;
    border-bottom: 1px solid var(--ws-border);
}
.ws-report .report_list ul li:last-child {
    border-bottom: 0;
}
.ws-report .report_list a.exp,
.ws-report .report_list span.exp {
    display: inline-block;
    margin: 2px 4px 2px 0;
    padding: 2px 10px;
    border-radius: 8px;
    font-size: 13px;
    text-decoration: none;
}
.ws-report .report_list a.exp:before {
    content: "";
}
.ws-report .loading_list {
    opacity: .6;
}

/* Sub-page tabs shared by cards that group several pages. */
.ws-tabs {
    display: flex;
    margin: -6px 0 16px;
    border-bottom: 2px solid #d9dee7;
}
.ws-tabs a {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    margin-bottom: -2px;
    padding: 12px 8px;
    border-bottom: 3px solid transparent;
    color: var(--ws-muted);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: color .15s, border-color .15s, background-color .15s;
}
.ws-tabs a .glyphicon {
    top: 0;
    margin-right: 8px;
    font-size: 15px;
}
.ws-tabs a:hover,
.ws-tabs a:focus {
    background: rgba(20, 72, 126, .05);
    color: var(--ws-text);
    text-decoration: none;
    outline: none;
}
.ws-tabs a.active {
    border-bottom-color: var(--ws-navy);
    color: var(--ws-navy);
}

/* ---------- Scan result ---------- */
.ws-result {
    margin-bottom: 14px;
    padding: 18px;
    border: 1px solid var(--ws-border);
    border-radius: var(--ws-radius);
    background: #fff;
    box-shadow: var(--ws-shadow);
    transition: background-color .2s, border-color .2s;
}
.ws-result.ws-pop {
    animation: ws-pop .25s ease;
}
@keyframes ws-pop {
    from { transform: scale(.97); }
    to { transform: scale(1); }
}
.ws-result-empty {
    padding: 16px 0;
    color: var(--ws-muted);
    font-size: 15px;
    text-align: center;
}
.ws-result-empty .glyphicon {
    display: block;
    margin-bottom: 8px;
    font-size: 30px;
    opacity: .5;
}
.ws-result-status {
    font-size: 26px;
    font-weight: 800;
    line-height: 1.2;
    word-break: break-word;
}
.ws-result-line {
    margin-top: 10px;
    font-size: 16px;
    line-height: 1.45;
    word-break: break-word;
}
.ws-result-key {
    display: block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    opacity: .75;
}
.ws-result.green,
.ws-result.red,
.ws-result.blue {
    color: #fff;
}
.ws-result.green { border-color: #16a34a; background: #16a34a; }
.ws-result.red   { border-color: #dc2626; background: #dc2626; }
.ws-result.blue  { border-color: #2563eb; background: #2563eb; }
.ws-result.green a,
.ws-result.red a,
.ws-result.blue a {
    color: #fff;
    text-decoration: underline;
}

/* ---------- jQuery UI autocomplete ---------- */
.ui-autocomplete {
    padding: 4px;
    border: 1px solid var(--ws-border);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(16, 24, 40, .14);
    max-height: 280px;
}
.ui-menu .ui-menu-item a,
.ui-menu .ui-menu-item .ui-menu-item-wrapper {
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 16px;
}

@media (max-width: 480px) {
    h1.ws-title { font-size: 22px; }
    .ws-card,
    .ws-result { padding: 14px; }
    .ws-result-status { font-size: 22px; }
}
