/* ==========================================================================
   TIMVIECLAM24H.COM.VN — UNIFIED WEB APP DESIGN SYSTEM (DESKTOP & MOBILE)
   Version: 2.0 | Brand: Indigo (#5b21b6 / #6d28d9) & Orange (#f97316)
   ========================================================================== */

:root {
    --wa-primary: #5b21b6;
    --wa-primary-light: #6d28d9;
    --wa-primary-soft: #f5f3ff;
    --wa-accent: #f97316;
    --wa-accent-hover: #ea580c;
    --wa-accent-soft: #fff7ed;
    --wa-emerald: #10b981;
    --wa-emerald-soft: #ecfdf5;
    --wa-gold: #f59e0b;
    --wa-gold-soft: #fffbeb;
    --wa-danger: #e11d48;
    --wa-bg: #f8fafc;
    --wa-surface: #ffffff;
    --wa-border: #e2e8f0;
    --wa-text: #0f172a;
    --wa-text-secondary: #475569;
    --wa-text-muted: #64748b;
    --wa-radius-sm: 8px;
    --wa-radius-md: 12px;
    --wa-radius-lg: 16px;
    --wa-shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
    --wa-shadow-md: 0 4px 12px -2px rgba(15, 23, 42, 0.08), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
    --wa-shadow-lg: 0 10px 25px -5px rgba(91, 33, 182, 0.12), 0 8px 10px -6px rgba(15, 23, 42, 0.06);
}

/* 1. GLOBAL TYPOGRAPHY & FLUID CONTAINER */
html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Be Vietnam Pro', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
    color: var(--wa-text) !important;
    background-color: var(--wa-bg) !important;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

.canvas {
    width: 100% !important;
    max-width: 1220px !important;
    margin: 0 auto !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
    box-sizing: border-box !important;
}

/* Hide side floating banners on viewports < 1360px so they never cover content */
@media screen and (max-width: 1360px) {
    #divAdLeft,
    #divAdRight,
    .gopy,
    .fixed-right {
        display: none !important;
    }
}

/* 2. HEADER & BRAND TOP BAR */
header.webapp-header {
    background: var(--wa-surface);
    border-bottom: 1px solid var(--wa-border);
    padding: 12px 0;
    min-height: auto !important;
    box-shadow: var(--wa-shadow-sm);
    position: relative;
    z-index: 50;
}

header .webapp-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

header .logo {
    float: none !important;
    width: auto !important;
    min-width: 200px;
    padding-top: 0 !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

header .logo img {
    max-height: 58px;
    width: auto;
}

.webapp-mobile-actions {
    display: none;
    align-items: center;
    gap: 8px;
}

.webapp-mobile-post-btn {
    background: linear-gradient(135deg, var(--wa-accent), var(--wa-accent-hover));
    color: #fff !important;
    font-weight: 700;
    font-size: 12px;
    padding: 7px 12px;
    border-radius: 999px;
    text-decoration: none !important;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(249, 115, 22, 0.3);
}

.webapp-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1px solid var(--wa-border);
    background: var(--wa-surface);
    color: var(--wa-primary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.webapp-icon-btn:hover {
    background: var(--wa-primary-soft);
    border-color: var(--wa-primary-light);
}

header .info.webapp-header-info {
    float: none !important;
    width: auto !important;
    flex: 1;
    max-width: 560px;
    padding-top: 0 !important;
}

header .info .statistics {
    border: 1px solid var(--wa-border) !important;
    border-radius: var(--wa-radius-sm);
    background: #fcfaff;
    display: flex;
    overflow: hidden;
    min-height: auto !important;
    margin-bottom: 6px !important;
}

header .info .statistics p {
    float: none !important;
    width: 50% !important;
    padding: 8px 12px !important;
    font-size: 12px !important;
    line-height: 1.45 !important;
    min-height: auto !important;
    color: var(--wa-text-secondary);
}

header .info .note {
    background: var(--wa-accent-soft) !important;
    border-left: 4px solid var(--wa-accent) !important;
    border-radius: 6px;
    padding: 6px 12px !important;
    min-height: auto !important;
    font-size: 12.5px !important;
    color: var(--wa-text) !important;
    margin-bottom: 0 !important;
}

/* Header Member Box (Login / Logged-in Card) */
.webapp-member-drawer {
    width: 260px;
    flex-shrink: 0;
}

header .box-form {
    float: none !important;
    width: 100% !important;
    background: var(--wa-surface);
    border-radius: var(--wa-radius-sm);
}

header .box-form .pen {
    margin-top: 0 !important;
    font-family: inherit !important;
    font-size: 12.5px !important;
    font-weight: 600;
    color: var(--wa-primary) !important;
}

header .box-form .login-form {
    border: 1px solid var(--wa-border) !important;
    border-radius: var(--wa-radius-sm);
    overflow: hidden;
    background: #fff;
}

header .box-form .login-form input[type="text"],
header .box-form .login-form input[type="password"] {
    width: calc(100% - 76px) !important;
    height: 34px !important;
    font-size: 13px !important;
    border-color: var(--wa-border) !important;
    padding: 0 10px !important;
}

header .box-form .login-form a.submit {
    width: 76px !important;
    height: 68px !important;
    background: linear-gradient(135deg, var(--wa-accent), var(--wa-accent-hover)) !important;
    font-family: inherit !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4px !important;
    line-height: 1.2 !important;
}

.dk-mail-1 {
    border: 1px solid var(--wa-border) !important;
    border-radius: var(--wa-radius-sm);
    background: var(--wa-primary-soft);
    padding: 8px 12px;
}

.dk-mail-1 .boder-box {
    border: none !important;
    padding-left: 0 !important;
}

/* 3. MAIN NAVIGATION BAR */
nav.webapp-nav {
    background: linear-gradient(90deg, #4c1d95 0%, #5b21b6 50%, #6d28d9 100%) !important;
    height: auto !important;
    min-height: 48px;
    padding: 0 !important;
    box-shadow: 0 4px 12px rgba(91, 33, 182, 0.18);
    position: sticky;
    top: 0;
    z-index: 45;
}

nav.webapp-nav .webapp-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 48px;
    flex-wrap: wrap;
}

nav.webapp-nav > div > ul {
    float: none !important;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 2px;
}

nav.webapp-nav > div > ul > li {
    float: none !important;
    height: 48px !important;
    display: flex;
    align-items: center;
    padding: 0 14px !important;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

nav.webapp-nav > div > ul > li > a {
    font-family: inherit !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    line-height: 48px !important;
    letter-spacing: 0.01em;
}

nav.webapp-nav > div > ul > li:first-child {
    background-position: center center !important;
    width: 44px !important;
}

nav.webapp-nav > div > ul > li:hover,
nav.webapp-nav > div > ul > li.selected {
    background-color: rgba(255, 255, 255, 0.16) !important;
}

.webapp-nav-cta {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
}

nav.webapp-nav .job-tool {
    float: none !important;
    height: 34px !important;
    line-height: 34px !important;
    padding: 0 14px !important;
    border-radius: 999px !important;
    font-family: inherit !important;
    font-size: 12.5px !important;
    font-weight: 700 !important;
    background: linear-gradient(135deg, var(--wa-accent), var(--wa-accent-hover)) !important;
    box-shadow: 0 2px 8px rgba(249, 115, 22, 0.35);
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

nav.webapp-nav .job-tool.job-tool-cv {
    background: rgba(255, 255, 255, 0.18) !important;
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: none;
}

nav.webapp-nav .job-tool:hover {
    transform: translateY(-1px);
}

/* 4. SMART SEARCH CARD (.webapp-search-box / .searchCnt) */
.rightBox.webapp-search-box {
    margin-top: 14px;
    margin-bottom: 16px;
    position: relative;
}

.webapp-search-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.searchTab-active {
    background: var(--wa-primary) !important;
    color: #fff !important;
    font-family: inherit !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    padding: 10px 20px !important;
    border-radius: 12px 12px 0 0;
    letter-spacing: 0.02em;
}

.webapp-filter-toggle {
    display: none;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid var(--wa-border);
    background: var(--wa-surface);
    color: var(--wa-primary);
    font-weight: 600;
    font-size: 12.5px;
    cursor: pointer;
}

.searchCnt {
    background: linear-gradient(135deg, #ede9fe 0%, #e0e7ff 100%) !important;
    border: 1px solid #c4b5fd;
    border-radius: 0 14px 14px 14px;
    padding: 16px !important;
    box-shadow: var(--wa-shadow-md);
    float: none !important;
    width: 100% !important;
}

.webapp-search-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.webapp-search-primary,
.webapp-search-advanced {
    display: contents;
}

.searchCnt input#search-keyword,
.searchCnt select {
    height: 42px !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 10px !important;
    padding: 0 12px !important;
    font-family: inherit !important;
    font-size: 13.5px !important;
    color: var(--wa-text) !important;
    background-color: #fff !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    flex: 1 1 160px;
    width: auto !important;
    min-width: 145px;
}

.searchCnt input#search-keyword {
    flex: 2 1 240px;
}

.searchCnt input#search-keyword:focus,
.searchCnt select:focus {
    outline: none !important;
    border-color: var(--wa-primary-light) !important;
    box-shadow: 0 0 0 3px rgba(109, 40, 217, 0.15) !important;
}

.submit-search {
    height: 42px !important;
    line-height: 42px !important;
    padding: 0 22px !important;
    border-radius: 10px !important;
    background: linear-gradient(135deg, var(--wa-accent), var(--wa-accent-hover)) !important;
    color: #fff !important;
    font-family: inherit !important;
    font-weight: 700 !important;
    font-size: 13.5px !important;
    letter-spacing: 0.02em;
    box-shadow: 0 4px 10px rgba(249, 115, 22, 0.3);
    white-space: nowrap;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.submit-search:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(249, 115, 22, 0.4);
}

/* 5. TWO-COLUMN DESKTOP / SINGLE-COLUMN MOBILE GRID */
.left-content {
    width: calc(100% - 316px) !important;
    float: left !important;
    margin-top: 16px !important;
    margin-bottom: 24px !important;
}

.right-content {
    width: 296px !important;
    float: right !important;
    margin-top: 16px !important;
    margin-bottom: 24px !important;
}

.left-content-1 {
    width: calc(100% - 300px) !important;
    float: left !important;
}

.right-content-1 {
    width: 280px !important;
    float: right !important;
}

/* Section Headers (.content-top-left) */
.content-top-left {
    height: auto !important;
    min-height: 44px !important;
    background: var(--wa-surface) !important;
    border: 1px solid var(--wa-border);
    border-left: 4px solid var(--wa-primary);
    border-radius: var(--wa-radius-sm);
    padding: 6px 14px !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px !important;
    box-shadow: var(--wa-shadow-sm);
}

.content-top-left .tvl {
    position: static !important;
    border: none !important;
    height: auto !important;
    line-height: 1.4 !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    color: var(--wa-primary) !important;
    padding: 0 !important;
}

.content-top-left .tvl .boder-page {
    display: none !important;
}

/* 6. MODERN JOB CARDS (HOMEPAGE & BLOCKS) */
ul.jobs-list {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 4px 0 !important;
}

ul.jobs-list li.job-item {
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
    padding: 12px 14px !important;
    background: var(--wa-surface) !important;
    border: 1px solid var(--wa-border) !important;
    border-left: 3px solid var(--wa-primary-light) !important;
    border-radius: var(--wa-radius-sm) !important;
    box-shadow: var(--wa-shadow-sm);
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}

ul.jobs-list li.job-item.hot {
    border-left-color: var(--wa-danger) !important;
    background: linear-gradient(to right, #fff1f2 0%, #ffffff 18%) !important;
}

ul.jobs-list li.job-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--wa-shadow-md);
    border-color: #c4b5fd !important;
}

ul.jobs-list li.job-item .heading {
    height: auto !important;
    margin-bottom: 2px !important;
    line-height: 1.4 !important;
}

ul.jobs-list li.job-item .heading a {
    font-size: 13.5px !important;
    font-weight: 700 !important;
    color: var(--wa-text) !important;
    text-decoration: none !important;
    display: inline;
}

ul.jobs-list li.job-item.hot .heading a {
    color: #be123c !important;
}

ul.jobs-list li.job-item .heading a:hover {
    color: var(--wa-primary) !important;
}

ul.jobs-list li.job-item .recruiters {
    font-size: 12.5px !important;
    color: var(--wa-text-muted) !important;
    text-decoration: none !important;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 7. CATEGORY JOB LIST TABLE (.sale-profile) */
.sale-profile {
    background: var(--wa-surface);
    border-radius: var(--wa-radius-md);
    border: 1px solid var(--wa-border);
    box-shadow: var(--wa-shadow-sm);
    overflow: hidden;
}

.sale-profile table thead {
    background: #f1f5f9 !important;
    border-top: none !important;
    border-bottom: 1px solid var(--wa-border);
}

.sale-profile table tr th {
    font-family: inherit !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    color: var(--wa-text-secondary) !important;
    padding: 12px 14px !important;
}

.sale-profile table tbody tr {
    border-top: 1px solid #f1f5f9 !important;
    transition: background-color 0.15s ease;
}

.sale-profile table tbody tr:hover {
    background-color: var(--wa-primary-soft) !important;
}

.sale-profile table tbody tr td {
    font-family: inherit !important;
    font-size: 13.5px !important;
    padding: 12px 14px !important;
}

.sale-profile table .profile-title a.title {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: var(--wa-text) !important;
}

.sale-profile table .profile-title a.title.hot {
    color: #be123c !important;
}

/* 8. JOB DETAIL & COMPANY PROFILE PAGE (seekers/job/default.php) */
.name-vl {
    background: var(--wa-surface);
    border: 1px solid var(--wa-border);
    border-top: 4px solid var(--wa-primary);
    border-radius: var(--wa-radius-md);
    padding: 18px 20px !important;
    box-shadow: var(--wa-shadow-sm);
    margin-bottom: 14px;
}

.name-vl h1 {
    font-size: 20px !important;
    font-weight: 800 !important;
    color: var(--wa-text) !important;
    line-height: 1.35 !important;
    margin-bottom: 8px !important;
}

.tinhot-left-botom {
    font-size: 13px !important;
    color: var(--wa-text-muted) !important;
}

.print-content > table,
.left-content > table {
    background: var(--wa-surface);
    border: 1px solid var(--wa-border) !important;
    border-radius: var(--wa-radius-md);
    overflow: hidden;
    box-shadow: var(--wa-shadow-sm);
    margin-bottom: 18px !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
}

tr.head-news,
div.head-news {
    background: linear-gradient(90deg, #4c1d95 0%, #6d28d9 100%) !important;
    color: #fff !important;
    border-radius: 10px 10px 0 0;
}

tr.head-news td {
    padding: 10px 16px !important;
    border: none !important;
}

h2.head-news-left {
    font-family: inherit !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #fff !important;
    margin: 0 !important;
    line-height: 32px !important;
}

/* Clean up legacy harsh 2px red borders on job detail table */
tr.tbInfo-row td {
    border: none !important;
    border-bottom: 1px solid #f1f5f9 !important;
    padding: 12px 16px !important;
    font-size: 14px !important;
    line-height: 1.65 !important;
    color: var(--wa-text) !important;
    vertical-align: top !important;
}

tr.tbInfo-row td:first-child,
tr.tbInfo-row td:nth-child(3) {
    background-color: #f8fafc;
    color: var(--wa-text-secondary) !important;
    font-weight: 600;
}

/* VIP Badge & Company Description (#div_mota_ngan) */
.user-vip {
    display: inline-flex !important;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
    color: #fff !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    padding: 3px 10px !important;
    border-radius: 999px !important;
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.3);
    margin-top: 4px;
}

.user-vip::before {
    content: "👑 ";
}

#div_mota_ngan {
    font-size: 14px;
    line-height: 1.7;
    color: var(--wa-text-secondary);
    background: #f8fafc;
    border: 1px solid var(--wa-border);
    border-radius: var(--wa-radius-sm);
    padding: 12px 16px;
}

/* Apply Button (.nhsn) */
.nhsn a {
    background: linear-gradient(135deg, var(--wa-accent), var(--wa-accent-hover)) !important;
    color: #fff !important;
    font-family: inherit !important;
    font-weight: 700 !important;
    font-size: 13.5px !important;
    padding: 8px 18px !important;
    border-radius: 999px !important;
    text-decoration: none !important;
    box-shadow: 0 3px 10px rgba(249, 115, 22, 0.35);
    display: inline-block;
}

/* Comment Box Responsive Override */
.box-comment textarea.textbox {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 96px !important;
    border: 1px solid var(--wa-border) !important;
    border-radius: var(--wa-radius-sm) !important;
    padding: 12px !important;
    font-family: inherit !important;
    font-size: 14px !important;
    box-sizing: border-box !important;
}

/* Sticky Mobile Apply Bar (shown on mobile job detail page) */
.sticky-mobile-apply {
    display: none;
}

/* 9. RECRUITER ACCOUNT & POST JOB FORMS (members/views/recruiters/*) */
.bottom-menu {
    background: var(--wa-surface) !important;
    border-bottom: 1px solid var(--wa-border) !important;
    box-shadow: var(--wa-shadow-sm);
    margin-bottom: 16px;
}

.bottom-menu .canvas {
    display: flex;
    align-items: stretch;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 6px;
    padding-top: 8px !important;
    padding-bottom: 8px !important;
}

.bottom-menu .border-qlhs {
    float: none !important;
    border: none !important;
    flex: 0 0 auto;
}

.bottom-menu .qlhs1 {
    min-width: auto !important;
    padding: 6px 14px !important;
    border-radius: var(--wa-radius-sm);
    border: 1px solid transparent;
    transition: all 0.15s ease;
}

.bottom-menu .qlhs1:hover {
    background: var(--wa-primary-soft);
}

.bottom-menu .qlhs1 a.active {
    color: var(--wa-primary) !important;
    font-weight: 700 !important;
}

table.section {
    width: 100% !important;
    max-width: 100% !important;
    background: var(--wa-surface);
    border: 1px solid var(--wa-border) !important;
    border-radius: 0 0 var(--wa-radius-md) var(--wa-radius-md);
    padding: 16px !important;
    margin-bottom: 20px !important;
    border-collapse: separate !important;
    border-spacing: 0 8px !important;
    box-shadow: var(--wa-shadow-sm);
}

table.section tr td {
    border: none !important;
    padding: 8px 14px !important;
    vertical-align: middle !important;
    font-size: 14px !important;
}

table.section input[type="text"],
table.section input[type="password"],
table.section input[type="email"],
table.section select,
table.section textarea {
    width: 100% !important;
    max-width: 520px !important;
    min-height: 40px !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
    padding: 8px 12px !important;
    font-family: inherit !important;
    font-size: 14px !important;
    color: var(--wa-text) !important;
    background-color: #fff !important;
    box-sizing: border-box !important;
}

table.section textarea {
    min-height: 120px !important;
    max-width: 640px !important;
    line-height: 1.6 !important;
}

table.section input[type="text"]:focus,
table.section select:focus,
table.section textarea:focus {
    outline: none !important;
    border-color: var(--wa-primary-light) !important;
    box-shadow: 0 0 0 3px rgba(109, 40, 217, 0.14) !important;
}

.daidien-area {
    width: 100% !important;
    max-width: 560px !important;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: var(--wa-radius-sm);
    padding: 14px;
}

.daidien-area img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 8px;
}

.botom-dk input[type="submit"],
input.button {
    height: 42px !important;
    line-height: 42px !important;
    padding: 0 24px !important;
    border-radius: 10px !important;
    background: linear-gradient(135deg, var(--wa-primary), var(--wa-primary-light)) !important;
    color: #fff !important;
    font-family: inherit !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    border: none !important;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(91, 33, 182, 0.25);
}

.webapp-table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.webapp-notice-banner {
    background: var(--wa-primary-soft);
    border: 1px solid #ddd6fe;
    border-left: 4px solid var(--wa-primary);
    border-radius: var(--wa-radius-sm);
    padding: 10px 16px;
    margin: 12px 0;
    color: var(--wa-primary);
    font-weight: 600;
    font-size: 13.5px;
}

/* 10. FOOTER STYLING */
footer.canvas {
    background: var(--wa-surface);
    border-top: 1px solid var(--wa-border);
    border-radius: var(--wa-radius-md) var(--wa-radius-md) 0 0;
    padding: 24px 20px !important;
    margin-top: 28px !important;
    box-shadow: var(--wa-shadow-sm);
}

/* 11. MOBILE BOTTOM NAVIGATION BAR */
.webapp-mobile-bottom-nav {
    display: none;
}

/* ==========================================================================
   12. RESPONSIVE BREAKPOINTS (TABLET & MOBILE WEB APP)
   ========================================================================== */

@media screen and (max-width: 1023px) {
    .left-content,
    .right-content,
    .left-content-1,
    .right-content-1 {
        width: 100% !important;
        float: none !important;
    }

    header .info.webapp-header-info {
        order: 3;
        width: 100% !important;
        max-width: 100% !important;
        flex: 1 1 100%;
    }
}

@media screen and (max-width: 768px) {
    body {
        padding-bottom: 78px !important; /* Space for Fixed Mobile Bottom Nav */
    }

    /* Compact Mobile App Header */
    header.webapp-header {
        padding: 10px 0;
        position: sticky;
        top: 0;
        z-index: 60;
    }

    header .logo {
        width: 100% !important;
    }

    header .logo img {
        max-height: 44px;
    }

    .webapp-mobile-actions {
        display: flex;
    }

    header .info .statistics {
        display: none !important;
    }

    header .info .note {
        font-size: 12px !important;
        padding: 6px 10px !important;
    }

    /* Collapsible Mobile Member Drawer & Main Menu */
    .webapp-member-drawer {
        display: none;
        width: 100% !important;
        order: 4;
        padding-top: 8px;
        border-top: 1px solid var(--wa-border);
    }

    .webapp-member-drawer.is-open {
        display: block;
    }

    nav.webapp-nav {
        display: none;
        position: relative;
    }

    nav.webapp-nav.is-open {
        display: block;
    }

    nav.webapp-nav > div > ul {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        padding: 8px 0;
    }

    nav.webapp-nav > div > ul > li {
        width: 100% !important;
        height: 42px !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    nav.webapp-nav > div > ul > li:first-child {
        display: none;
    }

    .webapp-nav-cta {
        width: 100%;
        justify-content: stretch;
        padding: 8px 0 12px;
    }

    .webapp-nav-cta .job-tool {
        flex: 1;
        justify-content: center;
    }

    /* Mobile Smart Search with Collapsible Advanced Filters */
    .webapp-filter-toggle {
        display: inline-flex;
    }

    .searchCnt {
        border-radius: 12px !important;
        padding: 12px !important;
    }

    .searchCnt input#search-keyword,
    .searchCnt select,
    .submit-search {
        flex: 1 1 100% !important;
        width: 100% !important;
    }

    .webapp-search-advanced {
        display: none;
        width: 100%;
    }

    .webapp-search-advanced.is-open {
        display: contents;
    }

    /* 1-Column Job Cards on Mobile */
    ul.jobs-list {
        grid-template-columns: 1fr !important;
    }

    .all-categories .box-category li,
    .resumes-list .resume-item {
        width: 50% !important;
    }

    .dktv {
        height: auto !important;
        padding: 12px;
    }

    .dktv-left,
    .dktv-right {
        width: 100% !important;
        float: none !important;
        height: auto !important;
    }

    /* Job Detail Tables -> Clean Stacked Mobile Cards */
    .print-content > table,
    .print-content > table > tbody,
    .left-content > table,
    .left-content > table > tbody {
        display: block !important;
        width: 100% !important;
    }

    tr.head-news {
        display: block !important;
        width: 100% !important;
    }

    tr.head-news td {
        display: block !important;
        width: 100% !important;
    }

    .head-news-right {
        float: none !important;
        margin-top: 8px;
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 8px;
    }

    tr.tbInfo-row {
        display: flex !important;
        flex-wrap: wrap !important;
        width: 100% !important;
        border-bottom: 1px solid var(--wa-border) !important;
    }

    tr.tbInfo-row > td {
        display: block !important;
        width: 100% !important;
        padding: 8px 14px !important;
        border: none !important;
        box-sizing: border-box !important;
    }

    tr.tbInfo-row > td:first-child,
    tr.tbInfo-row > td:nth-child(3) {
        padding-bottom: 2px !important;
        font-size: 12.5px !important;
        text-transform: uppercase;
        letter-spacing: 0.02em;
        color: var(--wa-primary) !important;
        background: #f8fafc;
    }

    /* Category Job Table (.sale-profile) -> Touch Cards on Mobile */
    .sale-profile table,
    .sale-profile thead,
    .sale-profile tbody,
    .sale-profile tr,
    .sale-profile td {
        display: block !important;
        width: 100% !important;
    }

    .sale-profile thead {
        display: none !important;
    }

    .sale-profile tbody tr {
        padding: 12px 14px !important;
        border-bottom: 1px solid var(--wa-border) !important;
        position: relative;
    }

    .sale-profile tbody tr td {
        padding: 3px 0 !important;
        text-align: left !important;
    }

    .sale-profile tbody tr td.profile-stt {
        display: none !important;
    }

    .sale-profile tbody tr td[data-label]::before {
        content: attr(data-label) ": ";
        font-weight: 600;
        color: var(--wa-text-muted);
    }

    /* Recruiter Account & Post Job Forms -> Stacked Mobile Inputs */
    table.section,
    table.section tbody,
    table.section tr,
    table.section tr td {
        display: block !important;
        width: 100% !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
        box-sizing: border-box !important;
    }

    table.section tr td:first-child {
        padding-bottom: 2px !important;
        font-weight: 700;
        color: var(--wa-text);
    }

    /* Sticky Mobile Apply Bar on Job Detail Page */
    .sticky-mobile-apply {
        display: flex !important;
        align-items: center;
        gap: 10px;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 62px; /* Sits right above the Mobile Bottom Nav Bar */
        background: rgba(255, 255, 255, 0.96);
        backdrop-filter: blur(10px);
        padding: 10px 16px;
        border-top: 1px solid var(--wa-border);
        box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.1);
        z-index: 58;
    }

    .sticky-mobile-apply .webapp-btn-save {
        flex: 0 0 auto;
        padding: 10px 16px;
        border-radius: 10px;
        border: 1px solid var(--wa-primary);
        background: var(--wa-primary-soft);
        color: var(--wa-primary) !important;
        font-weight: 700;
        font-size: 13.5px;
        text-decoration: none !important;
    }

    .sticky-mobile-apply .webapp-btn-apply {
        flex: 1;
        text-align: center;
        padding: 11px 18px;
        border-radius: 10px;
        background: linear-gradient(135deg, var(--wa-accent), var(--wa-accent-hover));
        color: #fff !important;
        font-weight: 700;
        font-size: 14px;
        text-decoration: none !important;
        box-shadow: 0 4px 12px rgba(249, 115, 22, 0.35);
    }

    /* Fixed Mobile Bottom Navigation Bar */
    .webapp-mobile-bottom-nav {
        display: flex !important;
        align-items: center;
        justify-content: space-around;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        height: 62px;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(12px);
        border-top: 1px solid var(--wa-border);
        box-shadow: 0 -2px 12px rgba(15, 23, 42, 0.08);
        z-index: 60;
        padding: 0 4px;
    }

    .webapp-bottom-nav-item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        color: var(--wa-text-muted) !important;
        text-decoration: none !important;
        font-size: 11px;
        font-weight: 600;
        padding: 4px 0;
    }

    .webapp-bottom-nav-item.active {
        color: var(--wa-primary) !important;
        font-weight: 700;
    }

    .webapp-bottom-nav-cta {
        color: var(--wa-accent) !important;
        font-weight: 700;
    }

    .webapp-bottom-cta-circle {
        width: 40px;
        height: 40px;
        border-radius: 999px;
        background: linear-gradient(135deg, var(--wa-accent), var(--wa-accent-hover));
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-top: -18px;
        box-shadow: 0 4px 10px rgba(249, 115, 22, 0.4);
        border: 3px solid #fff;
    }
}
