﻿@import "Common.css";

:root {
    --sidebar-bg-start: #f6f9ff;
    --sidebar-bg-end: #e6edf8;
    --sidebar-surface: rgba(255, 255, 255, 0.92);
    --sidebar-surface-muted: rgba(248, 250, 255, 0.96);
    --sidebar-surface-hover: rgba(235, 242, 255, 0.92);
    --sidebar-surface-active: rgba(224, 235, 255, 0.9);
    --sidebar-border: rgba(64, 84, 104, 0.16);
    --sidebar-border-strong: rgba(47, 128, 237, 0.35);
    --sidebar-text: #1f2f4a;
    --sidebar-text-muted: rgba(31, 47, 74, 0.75);
    --sidebar-subtext: rgba(31, 47, 74, 0.7);
    --sidebar-primary: #2f80ed;
    --sidebar-primary-dark: #1c5fbf;
    --sidebar-accent: #5aa1ff;
    --sidebar-shadow: 0 16px 48px rgba(45, 74, 110, 0.16);
    --sidebar-expanded-width: 240px;
    --sidebar-collapsed-width: 112px;
    --sidebar-layout-gap: 12px;
    --sidebar-right-offset: 80px;
    --dashboard-table-alt: #f3f6ff;
    --dashboard-table-hover: #e4ecf9;
    --dashboard-page-header-vertical-padding: 10px;
    --dashboard-page-header-height: 20px;
    --b2b_Main_Right-padding: 6px;
    --dashboard-results-margin-top: 2px;
    --b2b_Main_Right-height: calc(100vh - 110px);
    --dashboard-results-height: calc(var(--b2b_Main_Right-height) - var(--dashboard-page-header-height) - var(--dashboard-page-header-vertical-padding) - var(--b2b_Main_Right-padding) - var(--dashboard-results-margin-top));
}

/* Prevent autofill/credentials button from appearing in Chrome/Safari */
input::-webkit-credentials-auto-fill-button {
    visibility: hidden;
    display: none !important;
    pointer-events: none;
    height: 0;
    width: 0;
    margin: 0;
}

/* Additional autofill prevention styles */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px white inset !important;
    box-shadow: 0 0 0 30px white inset !important;
}

/* Modern Textbox and Input Styling */
input[type="text"],
input[type="password"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="search"],
input[type="url"],
textarea,
select {
    padding: 5px 10px 5px 10px;
    border-radius: 0.8rem;
    border: 1px solid rgba(203, 213, 225, 0.85);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.06);
    font-size: 0.85rem;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
    box-sizing: border-box;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
input[type="search"]:focus,
input[type="url"]:focus,
textarea:focus,
select:focus {
    border-color: rgba(31, 92, 255, 0.75);
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.2), inset 0 1px 2px rgba(15, 23, 42, 0.06);
    outline: none;
    transform: translateY(-1px);
}

input[type="text"]:hover:not(:focus):not([disabled]):not([readonly]),
input[type="password"]:hover:not(:focus):not([disabled]):not([readonly]),
input[type="email"]:hover:not(:focus):not([disabled]):not([readonly]),
input[type="tel"]:hover:not(:focus):not([disabled]):not([readonly]),
input[type="number"]:hover:not(:focus):not([disabled]):not([readonly]),
input[type="search"]:hover:not(:focus):not([disabled]):not([readonly]),
input[type="url"]:hover:not(:focus):not([disabled]):not([readonly]),
textarea:hover:not(:focus):not([disabled]):not([readonly]),
select:hover:not(:focus):not([disabled]):not([readonly]) {
    border-color: rgba(148, 163, 184, 0.75);
}

input[type="text"][disabled],
input[type="password"][disabled],
input[type="email"][disabled],
input[type="tel"][disabled],
input[type="number"][disabled],
input[type="search"][disabled],
input[type="url"][disabled],
textarea[disabled],
select[disabled],
input[type="text"][readonly],
input[type="password"][readonly],
input[type="email"][readonly],
input[type="tel"][readonly],
input[type="number"][readonly],
input[type="search"][readonly],
input[type="url"][readonly],
textarea[readonly] {
    background: rgba(248, 250, 252, 0.95);
    color: rgba(100, 116, 139, 0.85);
    cursor: not-allowed;
    border-color: rgba(203, 213, 225, 0.6);
}

input.error,
textarea.error,
select.error,
input[type="text"].is-invalid,
input[type="password"].is-invalid,
input[type="email"].is-invalid,
textarea.is-invalid,
select.is-invalid {
    border-color: rgba(220, 38, 38, 0.85);
    box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.2);
}

textarea {
    min-height: 80px;
    resize: vertical;
    line-height: 1.5;
}

select {
    cursor: pointer !important;
    appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 9L1 4h10z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    padding-right: 10px !important;
}

/* Remove dropdown arrow from list-style selects */
select[size],
select[multiple] {
    background-image: none !important;
    padding-right: 10px !important;
}

html, body {
    height: calc(100vh - 2px) !important;
}

.b2b_Main
{
 width:100%;
 border:0;
 padding:0;
 margin:0;
}

.b2b_Main_Top
{
        border-radius:20px;
        margin:1px 16px 5px;
        border:1px solid rgba(155, 187, 232, 0.45);
        box-shadow:0 18px 32px rgba(23, 56, 99, 0.18);
        background: linear-gradient(135deg, #d2e8ff 0%, #7fb4e6 40%, #1f4d82 100%);
        color:#f5f9ff;
        padding-left:16px;
        padding-right:16px;
        padding-top:2px;
        padding-bottom:2px;
}
.Common_TitleLanguage
{
    margin-left:auto;
    padding-right:3px;
    padding-top:0px;
    text-align:right;
    color:#f5f9ff;
    display:flex;
    flex-direction:column;
    align-items:flex-end;
    gap:0px;
}
.Common_TitleLanguage select
{
        font-size: 0.95rem;
        color: #0b3a66;
        background-color: #ffffff;
        border: 1px solid #0b3a66;
        border-radius:3px;
}
.Common_TitleLanguage a
{
        color:#f5f9ff;
        text-decoration:none;
        }
.Common_TitleLanguage a:hover
{
        color:#ffe8a1;
        text-decoration:underline;
}

.tms-header__language {
    display:flex;
    align-items:center;
    gap:16px;
}

.tms-header__version-label {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:6px 16px;
    border-radius:14px;
    background:rgba(10, 34, 64, 0.28);
    color:#f5f9ff;
    font-weight:600;
    letter-spacing:0.04em;
    box-shadow:0 8px 18px rgba(0, 0, 0, 0.18);
}

.tms-header__session {
    display:flex;
    align-items:center;
    gap:10px;
    color:#f5f9ff;
    font-weight:600;
}

.Common_TitleLanguage_Separator {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:0 6px;
    color:rgba(255, 255, 255, 0.75);
    font-weight:400;
}

.Common_HeaderMenu 
{
    border:1px solid #CCCCCC;
    width:100%;
}

.Common_HeaderMenu th
{
    border:1px solid #CCCCCC;
    cursor:pointer;
    height:25px;
    vertical-align:middle;
}

.Common_HeaderMenu th:hover
{
    color:Red;
    border:1px solid #00FFFF;

}
/*----------------  Left Menu ----------------*/

.b2b_Main_Left {
    position: absolute;
    width: var(--sidebar-expanded-width);
    margin-left: 0px;
    margin-top: 0px;
    height: calc(100vh - 85px) !important;
    padding: 5px 5px 5px;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    background: linear-gradient(200deg, #f6f9ff 0%, #e3ebf8 100%);
    border-radius: 22px;
    border: 1px solid rgba(86, 108, 136, 0.16);
    box-shadow: 0 24px 44px rgba(37, 60, 96, 0.18);
    box-sizing: border-box;
    color: var(--sidebar-text);
    backdrop-filter: blur(6px);
    transition: width 0.4s ease, padding 0.4s ease, background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}
.b2b_Main_Left.sidebar-collapsed {
    width: var(--sidebar-collapsed-width);
    padding: 22px 12px 24px;
    background: transparent;
    border-color: transparent;
    box-shadow: none;
    backdrop-filter: none;
}
.b2b_Main_Right {
    margin-left: 245px;
    margin-right: 24px;
    margin-bottom: 24px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(101, 121, 145, 0.18);
    border-radius: 28px;
    padding: var(--b2b_Main_Right-padding);
    box-shadow: 0 28px 48px rgba(37, 60, 96, 0.16);
    overflow: visible;
    height: var(--b2b_Main_Right-height) !important;
    width: calc(100vw - var(--sidebar-expanded-width) - var(--sidebar-right-offset) + 35px) !important;
    transition: margin-left 0.4s ease, width 0.4s ease;
}
.b2b_Main.sidebar-collapsed .b2b_Main_Right {
    margin-left: calc(var(--sidebar-collapsed-width) + var(--sidebar-layout-gap));
    width: calc(100vw - var(--sidebar-collapsed-width) - var(--sidebar-right-offset)) !important;
}

.sidebar-shell {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
    height: 100%;
}

.sidebar-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    padding: 12px 14px;
    border-radius: 18px;
    background: var(--sidebar-surface);
    border: 1px solid rgba(101, 121, 145, 0.15);
    box-shadow: 0 12px 24px rgba(37, 60, 96, 0.12);
}

.sidebar-toolbar__buttons {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.sidebar-icon-button {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    border: 1px solid rgba(86, 108, 136, 0.18);
    background: #ffffff;
    color: var(--sidebar-text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    appearance: none;
    -webkit-appearance: none;
    box-shadow: 0 8px 18px rgba(37, 60, 96, 0.12);
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.25s ease, color 0.18s ease;
}

.sidebar-icon-button:hover {
    background: var(--sidebar-surface-hover);
    border-color: var(--sidebar-border-strong);
    transform: translateY(-1px);
    box-shadow: 0 16px 24px rgba(41, 66, 102, 0.18);
    color: var(--sidebar-primary);
}

.sidebar-icon-button:focus-visible {
    outline: 2px solid var(--sidebar-accent);
    outline-offset: 2px;
}

.sidebar-icon-button__icon {
    width: 16px;
    height: 16px;
    display: block;
}

.sidebar-divider {
    height: 1px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(83, 108, 140, 0.18) 0%, rgba(47, 128, 237, 0.35) 50%, rgba(83, 108, 140, 0.18) 100%);
    opacity: 0.9;
}

.LeftMenu {
    flex: 1;
    overflow-y: auto;
    padding: 2px 0px 2px 0;
    overscroll-behavior: contain;
}

.LeftMenu::-webkit-scrollbar {
    width: 8px;
}

.LeftMenu::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 999px;
}

.LeftMenu::-webkit-scrollbar-track {
    background: transparent;
}

.LeftMenu ul.container {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.LeftMenu li.menu > ul {
    list-style: none;
    margin: 0;
    padding: 10px 0 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: transparent;
    border-radius: 20px;
    border: none;
}

.LeftMenu li.button {
    list-style: none;
}

.LeftMenu li.button > a,
.LeftMenu li.button > a:visited {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 11px 14px;
    font-size: 0.94rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: var(--sidebar-text);
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid rgba(91, 110, 138, 0.12);
    box-shadow: 0 10px 18px rgba(37, 60, 96, 0.08);
    text-decoration: none;
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.25s ease, color 0.18s ease;
}

.LeftMenu li.button > a:hover {
    transform: translateY(-1px);
    background: var(--sidebar-surface-muted);
    border-color: var(--sidebar-border-strong);
    box-shadow: 0 16px 24px rgba(41, 66, 102, 0.16);
}

.LeftMenu li.button.activatemenu > a {
    background: linear-gradient(135deg, var(--sidebar-primary) 0%, var(--sidebar-primary-dark) 100%);
    border-color: rgba(47, 128, 237, 0.45);
    box-shadow: 0 20px 32px rgba(47, 128, 237, 0.25);
    color: #ffffff;
}

.LeftMenu li.button a span {
    display: none;
}

.LeftMenu li.button.has-dropdown > a::after {
    content: "";
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.18s ease, border-color 0.18s ease;
    opacity: 0.7;
}

.LeftMenu li.button.has-dropdown.open > a::after,
.LeftMenu li.button.has-dropdown.activatemenu > a::after {
    transform: rotate(225deg);
    border-color: #ffffff;
}

.LeftMenu .dropdown {
    display: none;
    margin: 6px 0 0;
    padding-top: 2px;
}

.LeftMenu .dropdown > ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.LeftMenu .dropdown li {
    list-style: none;
}

.LeftMenu .dropdown li a,
.LeftMenu .dropdown li a:visited {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border-radius: 10px;
    color: var(--sidebar-text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.LeftMenu .dropdown li a::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: currentColor;
    opacity: 0.6;
}

.LeftMenu .dropdown li a:hover {
    background: rgba(226, 238, 255, 0.88);
    color: var(--sidebar-primary);
    transform: translateX(4px);
}

.LeftMenu .dropdown li.activatemenu > a {
    background: linear-gradient(135deg, rgba(47, 128, 237, 0.12), rgba(47, 128, 237, 0.24));
    color: var(--sidebar-primary);
    font-weight: 600;
    box-shadow: inset 0 0 0 1px rgba(47, 128, 237, 0.24);
}

.LeftMenu .dropdown li.activatemenu > a::before {
    opacity: 1;
}

.flagdropdown {
    display: inline-flex;
    position: relative;
    font-family: 'Segoe UI', Arial, sans-serif;
    font-size: 0.85rem;
    color: var(--sidebar-text);
}

.flagdropdown dt,
.flagdropdown dd,
.flagdropdown ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.flagdropdown dd {
    position: relative;
}

.flagdropdown dt a,
.flagdropdown dt a:visited {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 38px 4px 14px;
    min-width: 150px;
    border-radius: 12px;
    border: 1px solid rgba(86, 108, 136, 0.16);
    background: #ffffff;
    color: var(--sidebar-text);
    text-decoration: none;
    position: relative;
    box-shadow: 0 10px 18px rgba(37, 60, 96, 0.1);
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.2s ease;
}

.flagdropdown dt a::after {
    content: "";
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    opacity: 0.75;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.flagdropdown.open dt a::after {
    transform: translateY(-50%) rotate(225deg);
    opacity: 1;
}

.flagdropdown.open dd ul {
    display: block !important;
}

.flagdropdown dt a:hover {
    background: var(--sidebar-surface-hover);
    border-color: var(--sidebar-border-strong);
    box-shadow: 0 16px 26px rgba(41, 66, 102, 0.16);
}

.flagdropdown span.value {
    display: none;
}

.flagdropdown dd ul {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 180px;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid rgba(86, 108, 136, 0.16);
    background: #ffffff;
    box-shadow: 0 18px 32px rgba(37, 60, 96, 0.15);
    display: none;
    z-index: 1000;
}

.flagdropdown dd ul li + li {
    margin-top: 4px;
}

.flagdropdown dd ul li a,
.flagdropdown dd ul li a:visited {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 10px;
    color: var(--sidebar-text-muted);
    text-decoration: none;
    transition: background 0.18s ease, color 0.18s ease;
}

.flagdropdown dd ul li a:hover {
    background: rgba(229, 239, 255, 0.92);
    color: var(--sidebar-primary);
}

.flagdropdown img.flag {
    width: 18px;
    height: 12px;
    border-radius: 3px;
    box-shadow: 0 4px 10px rgba(37, 60, 96, 0.15);
}

.tms-header__language .flagdropdown {
    color: #0f2d4d;
    margin-block: 1px;
}

.tms-header__language .flagdropdown dt a,
.tms-header__language .flagdropdown dt a:visited {
    background: rgba(245, 249, 255, 0.94);
    color: #0f2d4d;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 10px 24px rgba(10, 41, 72, 0.25);
}

.tms-header__language .flagdropdown dt a:hover {
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(255, 255, 255, 0.75);
    color: #0b1f36;
}

.tms-header__language .flagdropdown dd ul {
    background: rgba(245, 249, 255, 0.98);
    border: 1px solid rgba(183, 204, 235, 0.65);
}

.tms-header__language .flagdropdown dd ul li a,
.tms-header__language .flagdropdown dd ul li a:visited {
    color: #1b2f53;
}

.tms-header__language .flagdropdown dd ul li a:hover {
    background: rgba(222, 236, 255, 0.92);
    color: #0f1f36;
}

.sidebar-menu-panel {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
    height: 100%;
    padding: 18px 16px 26px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid rgba(86, 108, 136, 0.16);
    box-shadow: 0 18px 28px rgba(37, 60, 96, 0.12);
    box-sizing: border-box;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.sidebar-menu-panel::-webkit-scrollbar {
    width: 8px;
}

.sidebar-menu-panel::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.5);
    border-radius: 999px;
}

.sidebar-menu-panel::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-menu-panel ul.container {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sidebar-menu-panel li.menu > ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sidebar-menu-panel li.button {
    list-style: none;
}

.sidebar-menu-panel li.button a,
.sidebar-menu-panel li.button a:visited {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 16px;
    font-size: 0.94rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: var(--sidebar-text);
    background: #fdfefe;
    border-radius: 14px;
    border: 1px solid rgba(91, 110, 138, 0.14);
    box-shadow: 0 10px 20px rgba(37, 60, 96, 0.1);
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.22s ease, background 0.22s ease, border-color 0.18s ease, color 0.18s ease;
}

.sidebar-menu-panel li.button a:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 24px rgba(41, 66, 102, 0.16);
    border-color: var(--sidebar-border-strong);
    background: var(--sidebar-surface-muted);
}

.sidebar-menu-panel li.button.activatemenu > a {
    background: linear-gradient(135deg, var(--sidebar-primary) 0%, var(--sidebar-primary-dark) 100%);
    color: #ffffff;
    border-color: rgba(47, 128, 237, 0.45);
    box-shadow: 0 18px 28px rgba(47, 128, 237, 0.22);
}

.sidebar-menu-panel li.button a span {
    display: none;
}

.sidebar-menu-panel .dropdown {
    display: none;
    margin: 6px 0 0;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid rgba(86, 108, 136, 0.16);
    background: #ffffff;
    box-shadow: 0 14px 26px rgba(37, 60, 96, 0.12);
}

.sidebar-menu-panel .dropdown ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar-menu-panel .dropdown li {
    list-style: none;
}

.sidebar-menu-panel .dropdown li + li {
    margin-top: 6px;
}

.sidebar-menu-panel .dropdown li a,
.sidebar-menu-panel .dropdown li a:visited {
    display: block;
    padding: 9px 14px;
    border-radius: 10px;
    color: var(--sidebar-subtext);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.18s ease, color 0.18s ease;
}

.sidebar-menu-panel .dropdown li a:hover {
    background: rgba(229, 239, 255, 0.9);
    color: var(--sidebar-primary);
}

.sidebar-menu-panel .dropdown li.activatemenu > a {
    background: linear-gradient(135deg, rgba(47, 128, 237, 0.14), rgba(47, 128, 237, 0.28));
    color: var(--sidebar-primary);
    font-weight: 600;
    box-shadow: inset 0 0 0 1px rgba(47, 128, 237, 0.24);
}

/* ======================================== Dashboard shell (index.aspx) */
.dashboard-body
{
    background: linear-gradient(180deg, #e8f1ff 0%, #c5d9f6 100%);
    font-family: 'Segoe UI', Arial, sans-serif;
}

/* Merged .dashboard-body styles into base .b2b_Main_* rules above for consistency across all pages */

.dashboard-shell
{
    display:flex;
    flex-direction:column;
    gap:12px;
    width:100%;
    min-height:0;
    height:100%;
}

.dashboard-controls
{
    display:flex;
    align-items:center;
    justify-content:space-between;
    flex-wrap:wrap;
    gap:16px;
    padding:5px 15px;
    border-radius:22px;
    background:linear-gradient(135deg, rgba(248, 252, 255, 0.95) 0%, rgba(220, 237, 255, 0.95) 100%);
    border:1px solid rgba(155, 187, 232, 0.5);
    box-shadow:0 20px 36px rgba(23, 56, 99, 0.18);
    flex-shrink:0;
}

.dashboard-controls__refresh
{
    display:flex;
    align-items:center;
    gap:8px;
    font-size:0.9rem;
    color:#163e6c;
    font-weight:600;
}

.dashboard-controls__hint {
    font-size: 0.9rem;
    color: #345a84;
    opacity: 0.9;
}

.dashboard-legend
{
    display:flex;
    align-items:center;
    gap:12px;
    flex-wrap:wrap;
}

.dashboard-legend__title
{
    font-weight:600;
    color:#163e6c;
    margin-right:4px;
}

.dashboard-legend__item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.85);
    box-shadow: inset 0 0 0 1px rgba(155, 187, 232, 0.45);
    color: #1f4d82;
    font-size: 0.9rem;
}

.dashboard-card {
    background: rgba(255, 255, 255, 0.96);
    border-radius: 22px;
    border: 1px solid rgba(155, 187, 232, 0.55);
    box-shadow: 0 24px 42px rgba(23, 56, 99, 0.18);
    padding: 10px 16px 5px 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: calc(100vw - var(--sidebar-expanded-width) - var(--sidebar-right-offset)-10px) !important;
    /*max-width:100%;*/
    max-height: calc(var(--b2b_Main_Right-height) - var(--dashboard-page-header-height) - var(--dashboard-page-header-vertical-padding) - var(--b2b_Main_Right-padding) - var(--dashboard-results-margin-top) - 30px);
}
.dashboard-card.fullheight-card {
    height: calc(var(--b2b_Main_Right-height) - var(--dashboard-page-header-height) - var(--dashboard-page-header-vertical-padding) - var(--b2b_Main_Right-padding) - var(--dashboard-results-margin-top) - 30px);
}
.dashboard-card--map
{
    padding:0;
    overflow:hidden;
    flex-shrink:0;
}

#div1.dashboard-card
{
    flex:1;
    min-height:0;
    overflow:hidden;
}

#div1.dashboard-card .dashboard-card__body
{
    flex:1;
    min-height:0;
}

.dashboard-map
{
    width:100%;
    height:330px;
    border:none;
}

.dashboard-card__body {
    width: auto;
    overflow: auto;
}

.dashboard-card__title
{
    margin:0 0 5px 0;
    font-size:20px;
    font-weight:700;
    color:#163e6c;
}

/* Search bar overrides */
.dashboard-card.search-bar
{
    padding:0 16px 16px 16px;
}

.dashboard-card__body.search-bar
{
    display:flex;
    align-items:center;
    gap:16px;
    flex-wrap:nowrap;
}

.dashboard-card__body.search-bar .dashboard-card__title
{
    margin:0;
    white-space:nowrap;
    flex-shrink:0;
    font-size:1.0em;
}

.dashboard-card__body.search-bar .dashboard-form--search
{
    flex:1;
    align-items:center;
}

.dashboard-page-header
{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:14px;
    padding: var(--dashboard-page-header-vertical-padding) 16px;
    height: var(--dashboard-page-header-height);
    border-radius:20px;
    background:linear-gradient(135deg, rgba(248, 252, 255, 0.95) 0%, rgba(220, 237, 255, 0.95) 100%);
    border:1px solid rgba(155, 187, 232, 0.5);
    box-shadow:0 16px 30px rgba(23, 56, 99, 0.18);
}

.dashboard-breadcrumb
{
    display:flex;
    align-items:center;
    gap:12px;
    width:100%;
    color:#1f4d82;
}

.dashboard-breadcrumb__path
{
    font-weight:600;
    font-size:1.0em;
    flex:1;
    min-width:0;
}

.dashboard-breadcrumb__meta
{
    margin-left:auto;
    font-size:12px;
    color:rgba(31, 77, 130, 0.7);
    white-space:nowrap;
}

.dashboard-page-actions
{
    display:flex;
    align-items:center;
    gap:10px;
    flex-wrap:wrap;
}

.dashboard-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.3rem 0.5rem;
    border-radius: 0.8rem;
    border: 1px solid transparent;
    font-weight: 600;
    font-size: 1.0em;
    text-decoration: none;
    cursor: pointer;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.92) 0%, rgba(232, 241, 255, 0.92) 100%);
    color: #163e6c;
    box-shadow: 0 10px 20px rgba(23, 56, 99, 0.16);
    transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.25s ease, border-color 0.18s ease;
}

.dashboard-button:hover
{
    transform:translateY(-1px);
    box-shadow:0 14px 26px rgba(23, 56, 99, 0.2);
}

.dashboard-button:focus-visible
{
    outline:none;
    border-color:#1f4d82;
    box-shadow:0 0 0 3px rgba(31, 77, 130, 0.2);
}

.dashboard-button--primary
{
    background:linear-gradient(135deg, #2f80ed 0%, #1c5db8 100%);
    color:#ffffff;
    border-color:rgba(31, 93, 184, 0.85);
}

.dashboard-button--primary:hover
{
    background:linear-gradient(135deg, #256fe0 0%, #184d9b 100%);
}

.dashboard-button--secondary
{
    background:rgba(255, 255, 255, 0.95);
    color:#475569;
    border-color:rgba(148, 163, 184, 0.4);
}

.dashboard-button--secondary:hover
{
    border-color:rgba(31, 92, 255, 0.6);
    color:#1f5cff;
    background:rgba(240, 247, 255, 0.95);
}

.dashboard-button--ghost
{
    background:rgba(255, 255, 255, 0.85);
    border-color:rgba(155, 187, 232, 0.5);
}

.dashboard-button__icon
{
    display:inline-flex;
    align-items:center;
    justify-content:center;
}

.dashboard-button__icon img
{
    width:18px;
    height:18px;
}

.dashboard-button__text
{
    display:inline-block;
}

.dashboard-form
{
    display:flex;
    flex-direction:column;
    gap:12px;
}


.dashboard-form--search
{
    flex-direction:row;
    align-items:flex-end;
    flex-wrap:wrap;
    column-gap:16px;
    row-gap:8px;
}

.dashboard-form--search .dashboard-form__grid
{
    gap:8px;
    flex:1 1 auto;
    min-width:0;
}

.dashboard-form--search .dashboard-form__field
{
    gap:4px;
    max-width: 300px;
}

.dashboard-form--search .dashboard-input
{
    padding-top:3px;
    padding-bottom:3px;
}

.dashboard-form--search .dashboard-form__actions
{
    margin-left:auto;
    align-self:flex-end;
}

.dashboard-form__grid
{
    display:grid;
    gap:12px;
    grid-template-columns:repeat(auto-fit, minmax(220px, 1fr));
}

.dashboard-form--legacy .dashboard-form__table
{
    display:grid;
    grid-template-columns:170px minmax(220px, 1fr);
    column-gap:18px;
    row-gap:10px;
    align-items:center;
}

.dashboard-form__table-label
{
    justify-self:end;
    text-align:right;
}

.dashboard-form__table-text
{
    font-weight:600;
    color:#1f4d82;
}

.dashboard-form__table-control
{
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    gap:8px;
}

.dashboard-form__table-control .error
{
    margin-left:0;
    width:auto;
}

.dashboard-form__table-control--password .dashboard-input
{
    max-width:115px;
}

.dashboard-form__table-control--action
{
    gap:12px;
}

.dashboard-form__table-value
{
    color:#1f2f4a;
}

.dashboard-form--legacy .dashboard-input
{
    max-width:250px;
}

.dashboard-form--legacy textarea.dashboard-input
{
    max-width:100%;
}

.dashboard-form__field
{
    display:flex;
    flex-direction:column;
    gap:6px;
    color:#1f4d82;
}

.dashboard-form__field .dashboard-input
{
    width:100%;
    max-width:100%;
    box-sizing:border-box;
}

.dashboard-form__field--toggle
{
    flex-direction:row;
    align-items:center;
    flex-wrap:wrap;
    gap:10px 16px;
}

.dashboard-form__field--toggle .dashboard-form__label
{
    flex:1 1 auto;
    margin:0;
}

.dashboard-form__field--full
{
    grid-column:1 / -1;
}

.dashboard-toggle
{
    width:auto;
    height:18px;
    min-width:18px;
    cursor:pointer;
    accent-color:#2f80ed;
}

.dashboard-form__label {
    font-weight: 600;
    font-size: 0.9em;
}

.dashboard-form__field--range .dashboard-form__range
{
    display:flex;
    align-items:center;
    gap:6px;
}

.dashboard-form__range .dashboard-input
{
    flex:1 1 0;
    min-width:0;
}

.dashboard-form__range-separator
{
    font-weight:600;
    color:#1f4d82;
}

.dashboard-form__actions
{
    display:flex;
    justify-content:flex-end;
    gap:12px;
    flex-wrap:wrap;
}

.dashboard-form__value
{
    display:inline-block;
    padding:6px 12px;
    border-radius:11px;
    background:rgba(248, 252, 255, 0.95);
    color:#163e6c;
    font-size:13px;
    min-width:160px;
}

.dashboard-form__value--wrap
{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    padding:0;
    background:transparent;
    min-width:0;
}

.dashboard-feedback
{
    margin-bottom:12px;
    padding:10px 14px;
    border-radius:11px;
    background:rgba(243, 248, 255, 0.9);
    color:#1f4d82;
    font-weight:600;
}

.dashboard-feedback:empty
{
    display:none;
}

.dashboard-feedback--error
{
    background:rgba(255, 235, 235, 0.95);
    color:#9a1f1f;
}

.dashboard-listbox
{
    width:100%;
    min-height:280px;
    padding:8px;
    border:1px solid rgba(155, 187, 232, 0.7);
    border-radius:12px;
    background:rgba(248, 252, 255, 0.95);
    color:#163e6c;
    font-size:13px;
}

.dashboard-listbox:focus
{
    outline:none;
    border-color:#1f4d82;
    box-shadow:0 0 0 3px rgba(31, 77, 130, 0.15);
    background:#ffffff;
}

.dashboard-dual-list
{
    display:grid;
    grid-template-columns:minmax(240px, 1fr) auto minmax(240px, 1fr);
    gap:20px;
    align-items:stretch;
}

.dashboard-dual-list__column
{
    display:flex;
    flex-direction:column;
    gap:8px;
    min-width:0;
}

.dashboard-dual-list__actions
{
    display:flex;
    flex-direction:column;
    gap:16px;
    justify-content:center;
    padding:12px 0;
}

.dashboard-dual-list__actions .dashboard-button
{
    min-width:160px;
}

@media (max-width: 960px)
{
    .dashboard-dual-list
    {
        grid-template-columns:minmax(0, 1fr);
    }

    .dashboard-dual-list__actions
    {
        flex-direction:row;
        justify-content:flex-start;
    }
}

.role-user-chip
{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:6px 12px;
    border-radius:14px;
    background:rgba(47, 128, 237, 0.12);
    color:#1f4d82;
    font-weight:600;
    font-size:13px;
    box-shadow:inset 0 0 0 1px rgba(47, 128, 237, 0.25);
    text-align:center;
    white-space:normal;
    word-break:break-word;
    max-width:100%;
}

.dashboard-table
{
    margin-top:16px;
    overflow-x:auto;
}

.dashboard-table table
{
    width:100%;
    min-width:480px;
}

.dashboard-dual-list__column .dashboard-listbox
{
    width:100%;
}

.dashboard-card__title-emphasis
{
    color:#2f80ed;
    font-weight:600;
}

.dashboard-form__field--role-users
{
    flex-direction:row;
    flex-wrap:wrap;
    align-items:flex-start;
    gap:8px;
}

.dashboard-form__field--role-users .dashboard-form__label
{
    flex:0 0 auto;
    margin:0;
}

.dashboard-form__field--role-users .dashboard-form__value--wrap
{
    flex:1 1 auto;
}

.dashboard-results
{
    display:flex;
    flex-direction:column;
    flex:1 1 auto;
    min-height:0;
    margin-top:var(--dashboard-results-margin-top);
}

.dashboard-results .dashboard-card
{
    flex:1 1 auto;
    min-height:0;
    display:flex;
    flex-direction:column;
}

.dashboard-results .dashboard-card__body {
    overflow-x: auto;
    overflow-y: auto;
    flex: 1 1 auto;
    min-height: 0;
    max-height: calc(var(--b2b_Main_Right-height) - var(--dashboard-page-header-height) - var(--dashboard-page-header-vertical-padding) - var(--b2b_Main_Right-padding) - var(--dashboard-results-margin-top) - 110px) !important;
}

.dashboard-card--empty
{
    align-items:center;
    text-align:center;
}

.dashboard-card--empty .dashboard-card__body
{
    display:flex;
    justify-content:center;
}

.dashboard-card__empty-text
{
    font-size:16px;
    font-weight:600;
    color:#b03b3b;
}

.report-header
{
    display:flex;
    flex-direction:column;
    gap:12px;
    margin-bottom:16px;
}

.report-header__title
{
    margin:0;
    font-size:22px;
    font-weight:700;
    color:#163e6c;
}

.report-header__meta
{
    display:flex;
    justify-content:space-between;
    flex-wrap:wrap;
    gap:12px;
    font-size:13px;
    color:#345a84;
    font-weight:600;
}

.report-header__meta-item
{
    display:flex;
    gap:6px;
    align-items:center;
}

#tbGridView
{
    width:100%;
    border-collapse:collapse;
    color:#1f4d82;
    font-size:13px;
}

#tbGridView th
{
    color:#ffffff;
    text-decoration:none;
    padding:0.4rem 0.01rem;
    background:linear-gradient(135deg, #1f4d82 0%, #3c76b5 100%);
    border:none;
    text-transform:uppercase;
    letter-spacing:0.01em;
}

#tbGridView td
{
    padding:10px;
    border-bottom:1px solid rgba(155, 187, 232, 0.45);
    text-align:center;
}

#tbGridView tr.trStyle
{
    background-color:rgba(232, 241, 255, 0.8);
    transition:background-color 0.2s ease, transform 0.2s ease;
}

#tbGridView tr.trStyle:hover
{
    background-color:#d4e6ff !important;
    transform:translateY(-1px);
    box-shadow:0 10px 18px rgba(23, 56, 99, 0.18);
}

.dashboard-pagination
{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:12px;
    flex-wrap:wrap;
    flex-shrink:0;
}

.dashboard-pagination__grid
{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:12px;
    flex-wrap:wrap;
    width:100%;
}

.dashboard-pagination__input-group
{
    display:flex;
    align-items:center;
    gap:6px;
    flex-wrap:wrap;
    color:#1f4d82;
    font-weight:600;
}

.dashboard-pagination__label
{
    font-size:13px;
}

.dashboard-pagination__separator
{
    font-size:14px;
    font-weight:600;
    color:#1f4d82;
}

.dashboard-pagination__nav
{
    min-width:160px;
    text-align:right;
}

.dashboard-input {
    padding: 0.2rem 0.1rem;
    border-radius: 0.8rem;
    border: 1px solid rgba(155, 187, 232, 0.7);
    background: rgba(248, 252, 255, 0.95);
    color: #163e6c;
    font-size: 13px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.dashboard-input:focus
{
    outline:none;
    border-color:#1f4d82;
    box-shadow:0 0 0 3px rgba(31, 77, 130, 0.15);
    background:#ffffff;
}

.dashboard-input--small
{
    width:60px;
    text-align:center;
}

.dashboard-input--page
{
    width:2.5rem;
    text-align:right;
}

.dashboard-input--size
{
    width:2.5rem;
    text-align:center;
}

.dashboard-input--compact
{
    width:78px;
    text-align:right;
}

.dashboard-modal.ui-dialog
{
    padding:0;
    border:none;
    border-radius:22px;
    background:linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(235, 244, 255, 0.98) 100%);
    box-shadow:0 26px 70px rgba(23, 56, 99, 0.22);
    color:#163e6c;
    overflow:hidden;
}

.dashboard-modal .ui-dialog-titlebar
{
    background:rgba(31, 77, 130, 0.08);
    border:none;
    padding:16px 24px;
    border-bottom:1px solid rgba(155, 187, 232, 0.4);
}

.dashboard-modal .ui-dialog-title
{
    margin:0;
    font-size:18px;
    font-weight:700;
    color:#163e6c;
}

.dashboard-modal .ui-dialog-titlebar-close
{
    border:none;
    background:transparent;
    width:32px;
    height:32px;
    border-radius:50%;
    transition:background 0.2s ease;
}

.dashboard-modal .ui-dialog-titlebar-close span
{
    margin:-8px 0 0 -8px;
}

.dashboard-modal .ui-dialog-titlebar-close:hover
{
    background:rgba(47, 128, 237, 0.15);
}

.dashboard-modal .ui-dialog-content
{
    padding:24px;
}

.dashboard-modal__body
{
    display:flex;
    flex-direction:column;
    gap:20px;
}

.dashboard-modal__group
{
    display:flex;
    align-items:center;
    gap:16px;
    flex-wrap:wrap;
}

.dashboard-modal__hint
{
    font-weight:600;
    font-size:13px;
    color:#1f4d82;
}

.dashboard-option
{
    display:inline-flex;
    align-items:center;
    gap:8px;
    padding:6px 14px;
    border:1px solid rgba(155, 187, 232, 0.65);
    border-radius:14px;
    background:rgba(248, 252, 255, 0.92);
    color:#163e6c;
    font-weight:600;
    font-size:13px;
    cursor:pointer;
    transition:border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.dashboard-option input
{
    margin:0;
    accent-color:#2f80ed;
}

.dashboard-option:hover
{
    border-color:#2f80ed;
    background:#ffffff;
    box-shadow:0 12px 26px rgba(23, 56, 99, 0.18);
}

.dashboard-modal__grid
{
    display:grid;
    grid-template-columns:repeat(auto-fit, minmax(160px, 1fr));
    gap:16px;
}

.dashboard-modal__field
{
    display:flex;
    flex-direction:column;
    gap:8px;
}

.dashboard-modal__label
{
    font-weight:600;
    font-size:13px;
    color:#1f4d82;
}

.dashboard-modal__actions
{
    display:flex;
    justify-content:flex-end;
    gap:12px;
}

.dashboard-modal__overlay
{
    background:rgba(16, 45, 78, 0.42) !important;
    backdrop-filter:blur(2px);
}

.dashboard-datetimepicker
{
    padding:18px;
    border-radius:18px;
    background:#ffffff;
    border:1px solid rgba(155, 187, 232, 0.65);
    box-shadow:0 26px 64px rgba(23, 56, 99, 0.22);
    font-family:'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.dashboard-datetimepicker .ui-widget-header
{
    background:linear-gradient(135deg, #3c8ce7 0%, #1c5db8 100%);
    border:none;
    border-radius:12px;
    color:#ffffff;
    margin:0 0 14px;
    padding:14px 18px;
    box-shadow:0 12px 24px rgba(23, 56, 99, 0.25);
}

.dashboard-datetimepicker .ui-datepicker-prev,
.dashboard-datetimepicker .ui-datepicker-next
{
    top:50% !important;
    margin-top:-12px;
    width:28px;
    height:28px;
    background:rgba(255, 255, 255, 0.22);
    border:none;
    transition:background 0.2s ease;
}
.dashboard-datetimepicker .ui-datepicker-next
{
    margin-right: 4px;
}
.dashboard-datetimepicker .ui-datepicker-prev
{
    margin-left: 4px;
}


.dashboard-datetimepicker .ui-datepicker-prev:hover,
.dashboard-datetimepicker .ui-datepicker-next:hover
{
    background:rgba(255, 255, 255, 0.35);
}

.dashboard-datetimepicker .ui-datepicker-prev span,
.dashboard-datetimepicker .ui-datepicker-next span
{
    margin-top:-8px;
    margin-left:-8px;
}

.dashboard-datetimepicker .ui-datepicker-title
{
    font-size:16px;
    font-weight:600;
}

.dashboard-datetimepicker table
{
    width:100%;
    font-size:13px;
    border-collapse:separate;
    border-spacing:6px;
}

    .dashboard-datetimepicker th {
        color: #1c5db8;
        font-weight: 600;
        text-transform: uppercase;
        font-size: 11px;
        letter-spacing: 0.08em;
    }

.dashboard-datetimepicker .ui-datepicker-calendar td
{
    padding:0;
    height:24px;
}

.dashboard-datetimepicker .ui-datepicker-calendar td a,
.dashboard-datetimepicker .ui-datepicker-calendar td span
{
    border:none !important;
    background:transparent !important;
    color:#163e6c !important;
    border-radius:10px;
    display:flex;
    align-items:center;
    justify-content:center;
    height:24px;
    line-height:24px;
    font-weight:500;
    transition:background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
    box-shadow:none;
}

.dashboard-datetimepicker .ui-datepicker-calendar td a.ui-state-hover,
.dashboard-datetimepicker .ui-datepicker-calendar td a.ui-state-focus,
.dashboard-datetimepicker .ui-datepicker-calendar td span.ui-state-hover,
.dashboard-datetimepicker .ui-datepicker-calendar td span.ui-state-focus
{
    background:rgba(47, 128, 237, 0.12) !important;
    color:#184d9b !important;
}

.dashboard-datetimepicker .ui-datepicker-calendar td a.ui-state-active,
.dashboard-datetimepicker .ui-datepicker-calendar td span.ui-state-active
{
    background:#2f80ed !important;
    color:#ffffff !important;
    font-weight:600;
    box-shadow:0 10px 24px rgba(32, 77, 130, 0.28);
}

.dashboard-datetimepicker .ui-datepicker-calendar .ui-state-disabled,
.dashboard-datetimepicker .ui-datepicker-calendar .ui-datepicker-other-month span
{
    color:rgba(22, 62, 108, 0.35) !important;
    opacity:1 !important;
}

.dashboard-datetimepicker .ui-datepicker-calendar .ui-datepicker-today a,
.dashboard-datetimepicker .ui-datepicker-calendar .ui-datepicker-today span
{
    border:1px solid rgba(47, 128, 237, 0.65) !important;
}

.dashboard-datetimepicker .ui-timepicker-div
{
    margin-top:2px;
    padding-top:2px;
    border-top:1px solid rgba(155, 187, 232, 0.35);
}

.dashboard-datetimepicker .ui-timepicker-div .ui-widget-header
{
    background:transparent;
    border:none;
    margin:0 0 8px;
    padding:0;
    color:#1f4d82;
    font-weight:600;
}

.dashboard-datetimepicker dl
{
    display:grid;
    grid-template-columns:auto 1fr;
    row-gap:4px;
    column-gap:5px;
    align-items:center;
}

.dashboard-datetimepicker dt
{
    font-weight:600;
    color:#1f4d82;
    font-size:12px;
    letter-spacing:0.04em;
    text-transform:uppercase;
}

.dashboard-datetimepicker dd
{
    margin:0;
    display:flex;
    align-items:center;
    gap:12px;
    flex-wrap:nowrap;
}

.dashboard-datetimepicker .ui_tpicker_time_input
{
    width:78px;
}

.dashboard-datetimepicker .ui_tpicker_hour_slider,
.dashboard-datetimepicker .ui_tpicker_minute_slider
{
    flex:1;
    width:100%;
    min-width:0;
}

.dashboard-datetimepicker .ui_tpicker_time_input
{
    border-radius:12px;
    border:1px solid rgba(155, 187, 232, 0.65);
    padding:6px 12px;
    font-size:13px;
    color:#163e6c;
    background:rgba(248, 252, 255, 0.95);
}

.dashboard-datetimepicker .ui-slider-horizontal
{
    height:8px;
    border-radius:10px;
    background:#ffffff;
    border:1px solid rgba(28, 93, 184, 0.55);
    box-shadow:inset 0 2px 6px rgba(23, 56, 99, 0.18);
    cursor:pointer;
}

.dashboard-datetimepicker .ui-slider-horizontal .ui-slider-handle
{
    width:16px;
    height:16px;
    border-radius:50%;
    background:#2f80ed;
    border:2px solid #ffffff;
    box-shadow:0 4px 12px rgba(32, 77, 130, 0.25);
    top:-5px;
    margin-left:-8px;
}

.dashboard-datetimepicker .ui-datepicker-buttonpane
{
    margin:18px -10px -10px;
    padding:14px 18px;
    display:flex;
    justify-content:flex-end;
    gap:10px;
    background:rgba(27, 84, 140, 0.06);
    border-top:1px solid rgba(155, 187, 232, 0.35);
}

.dashboard-datetimepicker .ui-datepicker-buttonpane button
{
    border:none;
    border-radius:12px;
    padding:6px 16px;
    font-weight:600;
    color:#163e6c;
    background:#ffffff;
    border:1px solid rgba(155, 187, 232, 0.6);
    cursor:pointer;
    transition:border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
    min-width:88px;
}

.dashboard-datetimepicker .ui-datepicker-buttonpane button:hover
{
    border-color:#2f80ed;
    color:#1c5db8;
    background:rgba(47, 128, 237, 0.1);
}

.dashboard-datetimepicker .ui-timepicker-div .ui-button
{
    border:none;
    border-radius:12px;
    padding:6px 16px;
    font-weight:600;
    color:#163e6c;
    background:#ffffff;
    border:1px solid rgba(155, 187, 232, 0.6);
    cursor:pointer;
    transition:border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.dashboard-datetimepicker .ui-timepicker-div .ui-button:hover
{
    border-color:#2f80ed;
    color:#1c5db8;
    background:rgba(47, 128, 237, 0.1);
}

.dashboard-pagination #ajaxloading
{
    margin-left:12px;
}

@media screen and (max-width: 1024px)
{
    .b2b_Main_Left
    {
        position:relative;
        width:auto;
        margin:0 16px 12px;
    }

    .b2b_Main_Right
    {
        margin-left:16px;
        width: calc(100vw - 48px) !important;
    }

    .b2b_Main.sidebar-collapsed .b2b_Main_Right {
        margin-left: 16px;
        width: calc(100vw - 48px) !important;
    }
}

@media screen and (max-width: 768px)
{
    .dashboard-controls
    {
        padding:16px;
    }

    .dashboard-card
    {
        padding:20px;
    }

    .dashboard-map
    {
        height:300px;
    }
}


/* ======================================== Header styles */
.b2b_Header_DivTop_Left
{
    float:left;
    width:300px;
    }
.b2b_Header_DivTop_Right
{
    float:right;
    }

.tms-header {
    display:flex;
    flex-direction:column;
    gap:12px;
}

.tms-header__main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
    height: 70px;
}

.tms-header__branding {
    display:grid;
    grid-template-columns:auto 1fr;
    align-items:center;
    column-gap:16px;
    row-gap:12px;
}

.tms-header__branding-logo {
    display:flex;
    align-items:center;
}

.tms-header__branding-title {
    display:flex;
    align-items:center;
}

.tms-header__title {
    font-size:2.1em;
    font-weight:bold;
    color:#ffffff;
    text-shadow:0 2px 4px rgba(0,0,0,0.35);
}

.tms-header__center {
    flex:1 1 auto;
    display:flex;
    justify-content:center;
    align-items:center;
}

.tms-header__branding > .tms-header__title:first-child {
    margin-left:0;
}

.tms-header__logo,
.tms-header__customer-logo {
    min-height: 48px;
    max-height: 64px;
    width: auto;
}

.tms-header__meta {
    display:flex;
    justify-content:flex-end;
    align-items:center;
    flex:0 0 auto;
    flex-wrap:wrap;
}

.tms-header__meta .Common_TitleLanguage {
    margin-left:0;
}

.Common_TitleLanguage_Primary {
    display:inline-block;
    font-weight:600;
    letter-spacing:0.02em;
}

.Common_TitleLanguage_Message {
    color:#f5f9ff;
    font-weight:bold;
}

.Common_TitleLanguage_Logoff {
    display:inline-block;
    margin-top:0;
    padding:2px 12px;
    border-radius:4px;
    border:1px solid rgba(255,255,255,0.55);
    background-color:rgba(0,0,0,0.25);
    color:#f5f9ff;
}

.Common_TitleLanguage_Logoff:hover {
    background-color:rgba(0,0,0,0.4);
    color:#ffe8a1;
}

@media screen and (max-width: 768px) {
    .tms-header__main {
        flex-direction:row;
        flex-wrap:wrap;
        align-items:center;
        gap:8px;
        height:auto;
        padding:4px 0;
    }

    .tms-header__branding {
        grid-template-columns:auto auto;
        gap:6px;
    }

    .tms-header__branding-logo {
        display:none; /* hide logo on mobile to save space */
    }

    .tms-header__branding-title {
        justify-content:flex-start;
    }

    .tms-header__center {
        display:none; /* hide customer logo on mobile */
    }

    .tms-header__title {
        font-size:1.1em;
        text-align:left;
        white-space:nowrap;
    }

    .tms-header__meta {
        margin-left:auto;
        flex:0 1 auto;
    }

    .tms-header__meta .Common_TitleLanguage {
        text-align:right;
        align-items:flex-end;
        gap:2px;
    }

    .tms-header__session {
        font-size:0.75em;
        gap:4px;
    }

    .tms-header__language {
        justify-content:flex-end;
        flex-wrap:nowrap;
        gap:6px;
    }

    .tms-header__version-label {
        font-size:0.6em;
    }

    #sessionTimeoutDisplay {
        font-size:0.75em;
    }

    .Common_TitleLanguage_Message {
        font-size:0.8em;
    }

    .Common_TitleLanguage_Logoff {
        padding:2px 6px;
        font-size:0.8em;
    }

    /* Language dropdown: compact on mobile */
    .flagdropdown {
        font-size: 0.7rem;
    }

    .flagdropdown dt a,
    .flagdropdown dt a:visited {
        min-width: 90px;
        padding: 3px 26px 3px 8px;
        gap: 4px;
        border-radius: 8px;
    }

    .flagdropdown dt a::after {
        width: 6px;
        height: 6px;
        right: 8px;
    }

    .flagdropdown img.flag {
        width: 14px;
        height: 10px;
    }

    .flagdropdown dd ul {
        min-width: 140px;
        padding: 6px 8px;
        border-radius: 10px;
    }

    .flagdropdown dd ul li a,
    .flagdropdown dd ul li a:visited {
        padding: 6px 8px;
        font-size: 0.75rem;
        gap: 6px;
    }

    .tms-header__language .flagdropdown dt a,
    .tms-header__language .flagdropdown dd ul {
        width:auto;
    }

    .lang-label {
        font-size: 0.7rem;
    }
}

/* Zoomed mode (iPhone Display Zoom ~320px) */
@media screen and (max-width: 380px) {
    .b2b_Main_Right {
        margin-left: 8px;
        width: calc(100vw - 16px) !important;
    }

    .b2b_Main.sidebar-collapsed .b2b_Main_Right {
        margin-left: 8px;
        width: calc(100vw - 16px) !important;
    }

    .b2b_Main_Left {
        margin: 0 8px 8px;
    }

    .tms-header__title {
        font-size: 0.9em;
    }

    .tms-header__session {
        font-size: 0.65em;
    }

    .Common_TitleLanguage_Message {
        font-size: 0.7em;
    }

    .Common_TitleLanguage_Logoff {
        padding: 2px 4px;
        font-size: 0.7em;
    }

    .flagdropdown dt a,
    .flagdropdown dt a:visited {
        min-width: 70px;
        padding: 2px 22px 2px 6px;
    }

    .dashboard-card {
        padding: 12px;
    }

    .dashboard-controls {
        padding: 10px;
    }

    .login-banner {
        padding: 12px;
    }

    .login-banner__title {
        font-size: 1.4em;
    }

    .login-banner__logo,
    .login-banner__customer-logo {
        max-height: 50px;
    }

    .login-panel__card {
        padding: 24px 16px;
    }
}

.login-body {
    min-height:100vh;
    margin:0;
    background:linear-gradient(160deg, #e8f3ff 0%, #c5daf0 45%, #95bfe4 100%);
}

.login-shell {
    min-height:100vh;
    display:flex;
    flex-direction:column;
}

.login-banner {
    background:linear-gradient(135deg, #d2e8ff 0%, #7fb4e6 40%, #1f4d82 100%);
    color:#f5f9ff;
    padding:32px 40px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    flex-wrap:wrap;
    gap:24px;
    box-shadow:0 3px 10px rgba(15,57,107,0.35);
}

.login-banner__branding {
    display:flex;
    align-items:center;
    gap:20px;
}

.login-banner__title {
    font-size:2.4em;
    font-weight:600;
    text-shadow:0 2px 4px rgba(0,0,0,0.35);
}

.login-banner__center {
    flex:1 1 auto;
    display:flex;
    justify-content:center;
    align-items:center;
}

.login-banner__logo,
.login-banner__customer-logo {
    max-height:90px;
    width:auto;
}

.login-panel {
    flex:1 1 auto;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:10px 20px 60px;
}

.login-panel__card {
    width:100%;
    max-width:640px;
    background-color:rgba(255,255,255,0.92);
    border-radius:12px;
    box-shadow:0 12px 30px rgba(31,77,130,0.25);
    padding:40px 48px;
}

.login-panel__card table {
    width:100%;
}

.login-panel__card th {
    text-align:left;
    padding-right:12px;
    white-space:nowrap;
    vertical-align:middle;
}

.login-panel__card td {
    padding:10px 0;
    vertical-align:middle;
}

.login-panel__actions {
    text-align:center;
    margin-top:24px;
}

@media screen and (max-width: 768px) {
    .login-banner {
        padding:24px;
    }

    .login-panel__card {
        padding:32px 24px;
    }
}

/*  ======================================= Left memu bar =================   */ 

.LeftMenubar
{
    list-style-type:none;
    padding-left:0;
    margin-top:1.5em;
}
.LeftMenubar li
{
    /*border:1px solid #CCCCCC;*/
}
.LeftMenubar li ul
{
    list-style-type:none;
    padding-left:0;
}

.LeftMenubar li ul li
{
    /*border:1px solid #333333;
    margin:0 0 0.5em -1em;*/
}

.LeftMenuHeaderUL
{
    margin-top:2px;
    }
 
.LeftMenuHeaderButton
{
    cursor:pointer;
    border-top:2px solid #ffffff;
    border-bottom:1px solid #99bbe8;
    padding:8px;
    background-color:#dfe8f6;
    font-weight: bold;
}
.LeftMenuButton
{
    cursor:pointer;
    border-bottom:1px solid #CCCCCC;
    margin-bottom:1px;
    padding-top:5px;
    padding-bottom:5px;
    padding-left:1.5em;
    background-color:#f0f0f1;
}

.LeftMenuButtonSelected
{
    font-size:1em;
    color:Red;
    font-weight:bold;
    background-color:#f9d8d8;
}

.LeftMenubarTable
{
    border-spacing:8px;
    width:100%;
}
.LeftMenubarTable th{}
.LeftMenubarTable td 
{
    color:#333333;
    font-family:微軟正黑體;
    font-size:1em;
    height:35px;
    text-align:left;
    padding-left:10px;
    background-color:#EFEFEF;
    border-top:1px solid #DDDDDD;
    border-left:1px solid #DDDDDD;
    border-right:2px groove #999999;
    border-bottom:2px groove #999999;
    cursor:pointer;
    }
.LeftMenubarTable td:hover
{
    color:#000000;
    font-family:微軟正黑體;
    font-size:1.25em;
    font-weight:bold;
    height:35px;
    text-align:left;
    padding-left:10px;
    background-color:#EFEFEF;
    border-top:1px solid #DDDDDD;
    border-left:1px solid #DDDDDD;
    border-right:2px groove #000000;
    border-bottom:2px groove #000000;
    cursor:pointer;
}
    
.LeftMenuTableVisable
{
    color:#CCCCCC;
}

/* Grid view container for query results */
#divGridView {
    margin-top: 5px;
}

.b2bQueryTable {
    width:100%;
    border:0px solid #CCCCCC;
    margin-left:auto;
    margin-right:auto;
    border-spacing:0;
    border-collapse: separate;
    border-radius: 12px;
    overflow: hidden;
}

.b2bQueryTable thead th {
    background-color:#336699;
    color:#CCCCCC;
    font-family:微軟正黑體, 新細明體, Arial;
    border:1px solid #333333;
    height:25px;
    line-height:25px;
    font-size:15px;
    vertical-align:middle;
    font-weight:600;
}

/* Round top corners of header row */
.b2bQueryTable thead tr:first-child th:first-child {
    border-top-left-radius: 12px;
}

.b2bQueryTable thead tr:first-child th:last-child {
    border-top-right-radius: 12px;
}

.b2bQueryTable tbody td{
    border:1px solid #CCCCCC;
    padding:2px;
    line-height:1.5em;
    font-size:13px;
    font-weight:500;
}

/* Round bottom corners of last row */
.b2bQueryTable tbody tr:last-child td:first-child {
    border-bottom-left-radius: 12px;
}

.b2bQueryTable tbody tr:last-child td:last-child {
    border-bottom-right-radius: 12px;
}

.b2bQueryTable tbody tr:nth-child(odd) td
{
    background-color:var(--dashboard-table-alt);
    transition:background-color 0.2s ease;
}

.b2bQueryTable tbody tr:hover td
{
    background-color:var(--dashboard-table-hover);
}

.b2bQueryTable td[style*="pink"],
.b2bQueryTable td[style*="Pink"],
.b2bQueryTable td[style*="255, 192, 203"],
.b2bQueryTable tr[style*="pink"] td,
.b2bQueryTable tr[style*="Pink"] td,
.b2bQueryTable tr[style*="255, 192, 203"] td,
#tbGridView td[style*="pink"],
#tbGridView td[style*="Pink"],
#tbGridView td[style*="255, 192, 203"]
{
    background-color:var(--dashboard-table-alt) !important;
    color:inherit !important;
    transition:background-color 0.2s ease;
}
    
/* ======================================== ProductApplication styles */
.b2b_ProductApp_tab{}
.b2b_ProductApp_tabs{ display:inline-block;}
.b2b_ProductApp_tagRight
{
    float:right;
    }
.b2b_ProductApp_tagLeft
{
    float:left;
    padding:5px;
    }
.b2b_ProductApp_mt
{
    margin:0;
    padding:0;
    display:inline-block;
    height:45px; 
    line-height:45px;
    width:60px; 
    text-align:center;
    cursor:pointer;
    border:0px solid #FF0000;
 
    }

.PA_mt_b1 {background:url(/images/mt_b1.jpg) no-repeat;}
.PA_mt_b2 {background:url(/images/mt_b2.jpg) no-repeat;}
.PA_mt_b3 {background:url(/images/mt_b3.jpg) no-repeat;}
.PA_mt_b4 {background:url(/images/mt_b4.jpg) no-repeat;}

.b2b_ProductShowSpecResultTable
{
    border:1px solid #CCCCCC;
    /*width:500px;*/
}
.b2b_ProductShowSpecResultTableUmall
{
    border:1px solid #3799FF;
    }
.b2b_ProductShowSpecResultTable thead th
{
    border:1px solid #CCCCCC;
    color:#333333;
    font-size:15px;
}
.b2b_ProductShowSpecResultTable tbody td
{
    border:1px solid #CCCCCC;
    text-align:left;
    padding-left:6px;
    color:#666666;
}
.pPrice{ width:100px;}
.ppPrice{ width:25px;}
.b2b_DivConfirmPriceH { padding-top:10px;}
.b2b_DivConfirmPrice { font-size:12px; color:#999999;padding-top:10px;}
.b2b_DivConfirmPrice input { color:Red; font-weight:bold; border:0; border-bottom:1px solid #333333; text-align:center;}
.b2b_DivConfirmPrice1 { font-size:12px; color:#333333; font-weight:bold;}

.Div_ProdStep_Area{ border:1px solid #CCCCCC; margin:10px;}
.Div_ProdStep_Table .td1 { font-size:25px; width:50px; line-height:45px; vertical-align:top; border:1px solid #CCCCCC; background-color:#EFEFEF; text-align:center; padding-top:10px;}
.Div_ProdStep_Table .td2 { width:120px;vertical-align:top; padding-top:10px; padding-left:10px;}
.Div_ProdStep_Table .td3 { width:20px; }
.Div_ProdStep_Table .td4 { width:20px; }
.Div_ProdStep_Table .td5 {  }



.ProductDescAttention_no_icon , .ProductDescAttention
{
    vertical-align:baseline;
    background-color:#FFF6B8;
    border:1px solid #FFB547;
    color:#666666;
    width:100%;
    
}
.ProductDescAttention_no_icon{ line-height:20px; padding:3px; margin-bottom:8px;}
.ProductDescAttention
{
    background-image:url(/Resource/images/icons/warning.jpg);
    background-repeat:no-repeat;
    padding-left:35px;
    min-height:32px;
    }
    

.b2b_AuthStep
{
   border:1px solid #99bbe8;
   margin:2px;
   padding:0;
    }
.b2b_AuthStep h3
{
    
}


/* ======================================== SWF upload progress styles */
.swf_image_No{ border:1px solid #CCCCCC; text-align:center; vertical-align:middle; font-size:20px; font-weight:bold; margin:0; color:#666666; }
.swf_image_btn{ border:0px solid #CCCCCC;text-align:left; padding-left:12px; vertical-align:middle; }
.swf_image_btn input { font-size:12px;}
.swf_image_place{ border:1px solid #CCCCCC; background-color:#EFEFEF; height:125px; width:130px; text-align:center; vertical-align:middle;}

div.fieldset {
	border:  1px solid #afe14c;
	margin: 10px 0;
	padding: 20px 10px;
}
div.fieldset span.legend {
	position: relative;
	background-color: #FFF;
	padding: 3px;
	top: -30px;
	font: 700 14px Arial, Helvetica, sans-serif;
	color: #73b304;
}

div.flash {
	width: 375px;
	margin: 10px 5px;
	border-color: #D9E4FF;

	-moz-border-radius-topleft : 5px;
	-webkit-border-top-left-radius : 5px;
    -moz-border-radius-topright : 5px;
    -webkit-border-top-right-radius : 5px;
    -moz-border-radius-bottomleft : 5px;
    -webkit-border-bottom-left-radius : 5px;
    -moz-border-radius-bottomright : 5px;
    -webkit-border-bottom-right-radius : 5px;

}


.progressWrapper {
	width: 357px;
	overflow: hidden;
}

.progressContainer {
	margin: 5px;
	padding: 4px;
	border: solid 1px #E8E8E8;
	background-color: #F7F7F7;
	overflow: hidden;
}
.progressName {
	font-size: 8pt;
	font-weight: 700;
	color: #555;
	width: 323px;
	height: 14px;
	text-align: left;
	white-space: nowrap;
	overflow: hidden;
}

.progressBarInProgress,
.progressBarComplete,
.progressBarError {
	font-size: 0;
	width: 0%;
	height: 2px;
	background-color: blue;
	margin-top: 2px;
}

.progressBarComplete {
	width: 100%;
	background-color: green;
	visibility: hidden;
}

.progressBarError {
	width: 100%;
	background-color: red;
	visibility: hidden;
}

.progressBarStatus {
	margin-top: 2px;
	width: 337px;
	font-size: 7pt;
	font-family: Arial;
	text-align: left;
	white-space: nowrap;
}

a.progressCancel {
	font-size: 0;
	display: block;
	height: 14px;
	width: 14px;
	background-image: url(../images/cancelbutton.gif);
	background-repeat: no-repeat;
	background-position: -14px 0px;
	float: right;
}

a.progressCancel:hover {
	background-position: 0px 0px;
}

.b2b_txt_DateTime
{
    width:80px;
}

/*======================================================================= Product search page =========================================*/
.B2BSearchConditionLeft
{
    float:left;
    border:0px solid #CCCCCC;
    width:500px;
    }
.B2BSearchConditionRight
{
    float:left;
    padding-top:15px;       /*Adjust based on the height of the search panel*/
    border:0px solid #CCCCCC;
    text-align:center;
    padding-left:180px;
    }

.Div_ProdQuery_Table { width:100%;}
.Div_ProdQuery_Table .td1{ font-size:20px; width:50px; line-height:45px; vertical-align:top; border:1px solid #CCCCCC; background-color:#EFEFEF; text-align:center; padding-top:10px;}
.Div_ProdQuery_Table .td2{ width:5px;border-left:1px solid #CCCCCC; padding-right:1px;}
.Div_ProdQuery_Table .td3{ }

/*-------- Temporary, can be removed later */

.WaitToHandle table
{
    }
.WaitToHandle table th
{ background-color:Red;
    }
.WaitToHandle table
{
    }
    
    




/* Master Page Footer section */

.Common_Footer
{
	height: 70px;
	margin: 80px auto 0px auto;
	padding: 0;
	min-width: 780px;
	max-width: 1260px;
}
.Common_FooterLeft
{
	color: #818181;
	font-size: 10px;
	line-height: 12px;
	padding: 10px;
	margin: 10px;
	text-align: center;
	border-top: 1px solid #dbdbdb;
	border-bottom: 1px solid #dbdbdb;
	background: url(/Content/images/icon_idlogo.jpg) no-repeat 0 12px;
}

/* Master Page Menu section */
.Common_Menu
{
	padding: 3px;
	position: relative;
	z-index: 2;
}
    
.dashboard-split
{
    display:grid;
    grid-template-columns:minmax(0, 1fr);
    gap:20px;
    align-items:start;
}

@media (min-width: 1200px)
{
    .dashboard-split
    {
        grid-template-columns:minmax(360px, 420px) minmax(0, 1fr);
    }
}

/* ======================================== Mobile responsive (phones) ======================================== */
@media screen and (max-width: 768px) {
    :root {
        --b2b_Main_Right-height: auto;
    }

    html, body {
        height: auto !important;
        overflow-x: hidden;
    }

    .b2b_Main {
        display: flex;
        flex-direction: column;
        min-height: 100vh;
    }

    .b2b_Main_Top {
        box-sizing: border-box;
        margin: 4px 4px;
        border-radius: 14px;
        padding: 4px 6px;
        padding-left: 48px; /* space for hamburger button */
        max-width: calc(100vw - 8px);
        z-index: 10;
        position: relative;
    }

    /* Sidebar wrapper: take out of layout flow on mobile.
       The inner .sidebar is already position:fixed via sidemenu-style.css.
       We just need .b2b_Main_Left to not push content. */
    .b2b_Main_Left {
        position: fixed !important;
        width: 0 !important;
        height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
        box-shadow: none !important;
        background: transparent !important;
        overflow: visible;
        z-index: 1000;
    }

    .b2b_Main_Left.sidebar-collapsed {
        width: 0 !important;
        padding: 0 !important;
        background: transparent !important;
        border-color: transparent !important;
        box-shadow: none !important;
    }

    /* Content takes full width */
    .b2b_Main_Right {
        box-sizing: border-box !important;
        margin-left: 4px !important;
        margin-right: 4px !important;
        margin-bottom: 4px !important;
        width: calc(100vw - 8px) !important;
        max-width: 100vw !important;
        height: auto !important;
        border-radius: 14px;
        padding: 6px !important;
        overflow-x: auto;
    }

    .b2b_Main.sidebar-collapsed .b2b_Main_Right {
        margin-left: 4px !important;
        width: calc(100vw - 8px) !important;
    }

    /* Dashboard shell adjustments */
    .dashboard-shell {
        gap: 8px;
        max-width: 100%;
        overflow: hidden;
    }

    .dashboard-results {
        max-width: 100%;
        overflow: hidden;
    }

    .dashboard-results .dashboard-card__body {
        max-height: none !important;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .dashboard-page-header {
        padding: 6px 8px;
    }

    .dashboard-breadcrumb {
        font-size: 12px;
        flex-wrap: wrap;
        gap: 6px !important;
    }

    .dashboard-controls {
        padding: 8px 10px;
        border-radius: 14px;
        gap: 6px;
        flex-direction: column;
        align-items: stretch;
    }

    .dashboard-controls__refresh {
        font-size: 0.7rem;
    }

    .dashboard-controls__refresh input {
        width: 36px;
        font-size: 0.7rem;
        padding: 2px 4px;
    }

    .dashboard-controls__hint {
        font-size: 0.7rem;
    }

    .dashboard-legend {
        gap: 4px;
    }

    .dashboard-legend__title {
        font-size: 0.7rem;
    }

    .dashboard-legend__item {
        padding: 2px 6px;
        font-size: 0.65rem;
        gap: 3px;
        border-radius: 12px;
    }

    .dashboard-legend__item span {
        font-size: 0.65rem;
    }

    .dashboard-legend__item img {
        width: 12px;
        height: 12px;
    }

    .dashboard-card {
        padding: 4px;
        border-radius: 14px;
        width: 100% !important;
        max-width: 100% !important;
        max-height: none;
        box-sizing: border-box;
        overflow-x: auto;
    }

    /* Map: responsive height based on viewport */
    .dashboard-map {
        height: 45vw;
        min-height: 180px;
        max-height: 350px;
    }

    /* Grid: responsive font sizes */
    .b2bQueryTable th,
    .b2bQueryTable thead th {
        font-size: 0.5rem !important;
        height: auto;
        line-height: 1.2;
        padding: 3px 2px;
        white-space: nowrap;
        max-width: 60px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .b2bQueryTable td,
    .b2bQueryTable tbody td {
        font-size: 0.8em;
        line-height: 1.2;
        padding: 2px 1px;
        max-width: 60px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .b2bQueryTable {
        border-radius: 8px;
    }

    .b2bQueryTable thead tr:first-child th:first-child {
        border-top-left-radius: 8px;
    }

    .b2bQueryTable thead tr:first-child th:last-child {
        border-top-right-radius: 8px;
    }

    .b2bQueryTable tbody tr:last-child td:first-child {
        border-bottom-left-radius: 8px;
    }

    .b2bQueryTable tbody tr:last-child td:last-child {
        border-bottom-right-radius: 8px;
    }

    /* Pagination */
    .dashboard-pagination {
        gap: 4px;
        padding: 4px 2px;
    }

    .dashboard-pagination__grid {
        gap: 4px;
        font-size: 0.6rem;
    }

    .dashboard-pagination__input-group {
        gap: 3px;
        font-size: 0.6rem;
    }

    .dashboard-pagination__label {
        font-size: 0.6rem;
    }

    .dashboard-pagination__separator {
        font-size: 0.6rem;
    }

    .dashboard-pagination__nav {
        min-width: auto;
        font-size: 0.6rem;
    }

    .dashboard-pagination__nav a,
    .dashboard-pagination__nav span {
        font-size: 0.6rem !important;
        padding: 2px 4px;
    }

    .dashboard-input--page {
        width: 2.1rem;
        font-size: 0.6rem;
        padding: 0.2rem 0.1rem !important;
        text-align: center;
    }

    .dashboard-input--size {
        width: 2.1rem;
        font-size: 0.6rem;
        padding: 0.2rem 0.1rem !important;
        text-align: center;
    }

    .dashboard-card.fullheight-card {
        height: auto;
    }

    .dashboard-table {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .dashboard-table table {
        min-width: 320px;
    }

    .dashboard-pagination__nav {
        min-width: auto;
        text-align: left;
    }

    .dashboard-pagination__grid {
        gap: 6px;
        font-size: 12px;
    }

    /* Sidebar hamburger button on mobile */
    .sidebar-menu-button {
        z-index: 1001 !important;
        left: 8px !important;
        top: 8px !important;
    }
}

