/* Shared mobile app presentation. Keep DevExpress internal table layouts intact. */
.mobile-app {
    --mobile-blue: #155eaa;
    --mobile-ink: #172b45;
    color: var(--mobile-ink);
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    text-align: left;
    padding: clamp(16px, 3vw, 32px) 0;
    min-width: 0;
    overflow-wrap: break-word;
}
.mobile-app > .container, .mobile-app .container {
    width: 100% !important;
    max-width: 100%;
    padding: 0 12px;
    margin-top: 16px !important;
    float: none !important;
}
.mobile-app h1 { font-size: clamp(28px, 4vw, 38px); font-weight: 700; margin: 8px 0 12px; color: #172b45; }
.mobile-app h2 { font-size: 21px; font-weight: 650; margin: 0 0 20px; }
.mobile-app a { color: #155eaa; text-underline-offset: 3px; }
.mobile-app a:hover { color: #0c417b; }
.mobile-app :is(a, input, button, select, textarea):focus-visible {
    outline: 3px solid #327cc8;
    outline-offset: 3px;
}
.mobile-app .card { border: 1px solid #dce5ef; border-radius: 14px; box-shadow: 0 8px 28px #172b450c; overflow: hidden; margin-bottom: 24px; }
.mobile-app .card-header { padding: 16px 20px; background: #edf4fc; border-bottom: 1px solid #dce5ef; color: #173f6b; }
.mobile-app :is(.card-body, .card-block) { padding: 24px !important; }
.mobile-app :is(input[type=text], input[type=password], input[type=email], textarea, select) {
    font-family: inherit; font-size: 16px; max-width: 100%;
}
.mobile-app input[type=submit], .mobile-app .btn { min-height: 44px; padding: 10px 18px; border-radius: 8px; font-family: inherit; white-space: normal; }
.mobile-app .btn-primary, .mobile-app .LWOButtonBlue { background: #155eaa; border: 1px solid #155eaa; color: #fff; }
.mobile-app .btn-primary:hover, .mobile-app .LWOButtonBlue:hover { background: #104b89; color: #fff; }
.mobile-app .btn-outline-primary { border: 1px solid #155eaa; color: #155eaa; }
.mobile-app .btn-outline-primary:hover { background: #edf4fc; }
.mobile-app [class*="dxgvControl"], .mobile-app [class*="dxpclControl"], .mobile-app [class*="dxrpControl"] { max-width: 100%; text-align: left; }
.mobile-app [class*="dxgvHeader"] { padding-top: 12px; padding-bottom: 12px; }
.mobile-app [class*="dxgvDataRow"] > td { padding-top: 10px; padding-bottom: 10px; }
.mobile-app [class*="dxeEditArea"] { min-height: 28px; }
.mobile-app [class*="dxbButton"] { min-height: 40px; }
.mobile-app [class*="dxeCaption"] { padding-top: 8px; padding-bottom: 8px; }
.mobile-app .mobile-auth { max-width: 470px; margin: 0 auto; padding: 0 16px; }
.mobile-app .mobile-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #155eaa; }
.mobile-app .mobile-intro { color: #53657c; margin-bottom: 28px; }
.mobile-app .mobile-field { margin-bottom: 20px; }
.mobile-app .mobile-field label { display: block; font-weight: 600; margin-bottom: 7px; }
.mobile-app .mobile-field input { width: 100%; min-height: 46px; border: 1px solid #adbdce; border-radius: 7px; padding: 10px 12px; }
.mobile-app .mobile-signin { width: 100%; font-weight: 600; margin: 4px 0 18px; }
.mobile-app .mobile-reset-link { display: block; text-align: center; }
.mobile-app .mobile-validation { color: #b42318; font-size: 14px; }
.mobile-app .mobile-login-message { display: block; margin-top: 14px; color: #b42318; }
.mobile-app .mobile-login-message:empty { display: none; }
.mobile-app .mobile-register { text-align: center; padding: 12px 0 24px; }
.mobile-app .mobile-register h2 { margin-bottom: 8px; }
.mobile-app .mobile-register p, .mobile-app .mobile-help { color: #53657c; font-size: 14px; }
.mobile-app .mobile-help { text-align: center; border-top: 1px solid #dce5ef; padding-top: 20px; }
.driver-mobile-shell { background: #f3f6fa; color: #172b45; font-family: "Segoe UI", Arial, sans-serif; }
.driver-mobile-shell .mobile-shell { max-width: 1280px; width: calc(100% - 40px); margin: 24px auto; background: #fff; border: 1px solid #dce5ef; border-radius: 16px; box-shadow: 0 12px 40px #172b4508; }
.driver-mobile-shell .mobile-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 28px; }
.driver-mobile-shell .mobile-brand { text-align: left; }
.driver-mobile-shell .mobile-brand img { width: auto; max-width: 230px; max-height: 70px; }
.driver-mobile-shell .mobile-brand p { margin: 8px 0 0; color: #48627f !important; font-size: 14px !important; }
.driver-mobile-shell .mobile-support .btn { border-radius: 8px; padding: 11px 16px; font-family: "Segoe UI", Arial, sans-serif; }
.driver-mobile-shell #TD_TopMenu { border-top: 1px solid #e4ebf3; border-bottom: 1px solid #dce5ef; padding: 8px 16px; background: #edf4fc; }
.driver-mobile-shell .mobile-main { padding: 0 20px 24px; min-width: 0; }
.driver-mobile-shell .footer { padding: 8px 16px 28px; color: #53657c; line-height: 1.8; }
@media (max-width: 600px) {
    .driver-mobile-shell .mobile-shell { width: calc(100% - 16px); margin: 8px auto 16px; border-radius: 10px; }
    .driver-mobile-shell .mobile-header { padding: 16px; flex-wrap: wrap; gap: 12px; }
    .driver-mobile-shell .mobile-brand img { max-width: 190px; }
    .driver-mobile-shell .mobile-main { padding: 0 4px 16px; }
    .mobile-app .container { padding: 0 4px; }
    .mobile-app :is(.card-body, .card-block) { padding: 18px !important; }
    .mobile-app .mobile-auth { padding: 0 8px; }
}

.mobile-app .mobile-confirmation { max-width: 680px; margin: 16px auto 32px; }
.mobile-app .mobile-confirmation h1 { font-size: clamp(26px, 4vw, 34px); }
.mobile-app .mobile-confirmation .btn { margin-top: 12px; }


.mobile-app .mobile-account-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin: 0 0 24px;
    padding: 16px;
    background: #edf4fc;
    border-radius: 10px;
}
.mobile-app .mobile-account-details dt {
    font-size: 12px;
    font-weight: 600;
    color: #53657c;
    margin-bottom: 4px;
}
.mobile-app .mobile-account-details dd {
    margin: 0;
    font-size: 17px;
    font-weight: 650;
    color: #172b45;
    overflow-wrap: anywhere;
}

.mobile-app .mobile-account-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
    padding: 16px;
    background: #edf4fc;
    border-radius: 10px;
}
.mobile-app .mobile-account-header .mobile-account-details {
    display: block;
    min-width: 0;
    margin: 0;
    padding: 0;
    background: transparent;
}
.mobile-app .mobile-account-header > [class*="dxbButton"] {
    flex-shrink: 0;
    margin-left: auto;
}

/* Grid command links should not inherit the minimum height of form buttons. */
.mobile-app [class*="dxgvCommandColumn"] {
    vertical-align: middle;
}
.mobile-app [class*="dxgvCommandColumn"] [class*="dxbButton"] {
    min-height: 0;
}

.mobile-app .alert:empty { display: none; }
.mobile-app .container-fluid { min-width: 0; }
.mobile-app .form-text { color: var(--bs-secondary-color, #53657c); font-size: .875rem; }
.mobile-app .mobile-account-header { background: var(--bs-primary-bg-subtle, #edf4fc); }
.mobile-app [class*="dxpclContent"], .mobile-app [class*="dxrpContent"] { padding: 20px; }
@media (max-width: 575.98px) {
    .mobile-app [class*="dxpclContent"], .mobile-app [class*="dxrpContent"] { padding: 12px; }
}

/* One visual treatment for every mobile management grid. */
.mobile-app .mobile-grid {
    border: 1px solid #cbd8e6;
    font-family: Tahoma, Arial, sans-serif;
    font-size: 9pt;
    color: #172b45;
}
.mobile-app .mobile-grid .mobile-grid-header {
    background: #edf4fc;
    color: #173f6b;
    font-weight: 600;
    border-color: #cbd8e6;
    padding: 12px 8px;
}
.mobile-app .mobile-grid .mobile-grid-row > td,
.mobile-app .mobile-grid .mobile-grid-focused > td {
    padding: 10px 8px;
    vertical-align: middle;
}
.mobile-app .mobile-grid a,
.mobile-app .mobile-grid [class*="dxbButton"] {
    color: #155eaa;
    text-underline-offset: 3px;
}
.mobile-app .mobile-grid a:hover { color: #0c417b; }

/* Forms share the grids' Office2010Blue palette and consistent control states. */
.mobile-app .card-header,
.mobile-app .mobile-form-panel [class*="dxrpHeader"],
.mobile-app .mobile-form-popup [class*="dxpc-header"] {
    background: #edf4fc;
    color: #173f6b;
    border-color: #cbd8e6;
    font-weight: 600;
}
.mobile-app .mobile-form-panel,
.mobile-app .mobile-form-tabs { border-color: #cbd8e6; }
.mobile-app .mobile-form-tabs [class*="dxtc-activeTab"] {
    background: #edf4fc;
    color: #173f6b;
    font-weight: 600;
}
.mobile-app .mobile-form-button {
    background: #155eaa;
    background-image: none;
    border: 1px solid #155eaa;
    border-radius: 8px;
    color: #fff;
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 14px;
    font-weight: 600;
    min-height: 44px;
    padding: 6px 14px;
}
.mobile-app .mobile-form-button [class*="dxb"] { color: inherit; }
.mobile-app .mobile-form-button[class*="dxbButtonHover"] {
    background: #104b89;
    border-color: #104b89;
}
.mobile-app .mobile-form-button[class*="dxbDisabled"] {
    opacity: .55;
    cursor: default;
}
.mobile-app .mobile-form-editor [class*="dxeEditArea"],
.mobile-app .form-control {
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 16px;
    color: #172b45;
}
.mobile-app .mobile-form-editor [class*="dxeEditArea"] { padding: 6px 8px; }
.mobile-app .mobile-form-editor [class*="dxeCaption"],
.mobile-app .form-label { color: #173f6b; font-weight: 600; }
.mobile-app .form-control { border-color: #adbdce; }
.mobile-app .form-control:focus {
    border-color: #327cc8;
    box-shadow: 0 0 0 .2rem rgba(21, 94, 170, .15);
}
.mobile-app .input-group .btn-outline-primary {
    background: #edf4fc;
    border-color: #adbdce;
    color: #155eaa;
}
.mobile-app .input-group .btn-outline-primary:hover { background: #dcebfa; }

.mobile-app .mobile-form-panel { width: 100%; max-width: 680px; }
.mobile-app .mobile-form-panel .mobile-form-editor { margin-bottom: 12px; }
.mobile-app .mobile-form-panel .mobile-field { width: 100%; }
.mobile-app .mobile-form-panel .dxrpAW,
.mobile-app .mobile-form-panel .dxrpCW { max-width: 100%; }

.mobile-app .mobile-form-tabs { width: 100%; table-layout: fixed; }
.mobile-app .mobile-form-tabs .dxeRoot_Office2010Blue {
    width: 100% !important;
    max-width: 520px;
    margin-bottom: 12px;
}
.mobile-app .mobile-form-tabs .mobile-form-editor { max-width: 520px; }
.mobile-app .mobile-form-tabs [class*="dxtc-content"] { min-width: 0; }

/* Dense management forms: three columns on desktop, two on tablets, one on phones. */
.mobile-app.mobile-compact .mobile-form-panel { max-width: none; }
.mobile-compact .mobile-form-fields { margin-bottom: 12px; }
.mobile-app.mobile-compact .mobile-form-fields .dxeRoot_Office2010Blue {
    width: 100% !important;
    max-width: none;
    margin: 0;
    padding-bottom: 0 !important;
}
.mobile-app.mobile-compact .mobile-form-fields .mobile-form-editor {
    width: 100% !important;
    max-width: none;
    margin-bottom: 0;
}
.mobile-app.mobile-compact [class*="dxeCaption"] {
    padding-top: 2px !important;
    padding-bottom: 3px !important;
}
.mobile-app.mobile-compact .mobile-form-editor [class*="dxeEditArea"] {
    min-height: 24px;
    padding: 4px 8px;
}
.mobile-app.mobile-compact .mobile-account-header { margin-bottom: 12px; padding: 12px 16px; }
.mobile-app.mobile-compact [class*="dxpclContent"],
.mobile-app.mobile-compact [class*="dxrpContent"] { padding: 12px; }
.mobile-app.mobile-compact .mobile-field { margin-bottom: 12px !important; }

.mobile-app.mobile-compact .mobile-form-panel .dxrpCW { white-space: normal; }
.mobile-app.mobile-compact .mobile-form-panel .row { min-width: 0; }

@media (max-width: 575.98px) {
    .mobile-app.mobile-compact .mobile-account-header { gap: 8px; padding: 12px; }
    .mobile-app.mobile-compact .mobile-account-header dd { font-size: 15px; }
}

/* Company overview */
.mobile-overview .overview-message:empty { display: none; }
.mobile-overview .card { margin-bottom: 0; box-shadow: 0 4px 16px #172b4506; }
.mobile-overview .overview-company { background: linear-gradient(120deg, #edf4fc, #f8fbff); }
.mobile-overview .overview-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; flex-shrink: 0;
    border-radius: 12px; background: #e1edfa; color: #155eaa; font-size: 21px;
}
.mobile-overview .overview-caption { display: block; font: 600 13px "Segoe UI", Arial, sans-serif; color: #53657c; margin-bottom: 6px; }
.mobile-overview .overview-company-name { display: block; font: 700 clamp(22px, 2.5vw, 28px)/1.25 "Segoe UI", Arial, sans-serif; color: #172b45; overflow-wrap: anywhere; }
.mobile-overview .overview-id { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 6px 10px; background: #fff; border: 1px solid #d5e2ef; border-radius: 7px; }
.mobile-overview .overview-id-caption { font: 400 12px "Segoe UI", Arial, sans-serif; color: #53657c; }
.mobile-overview .overview-id-value { font: 600 13px "Segoe UI", Arial, sans-serif; color: #173f6b; overflow-wrap: anywhere; }
.mobile-overview .overview-stat { display: block; font: 700 36px/1.25 "Segoe UI", Arial, sans-serif; color: #172b45; margin-bottom: 14px; }
.mobile-overview .overview-license { font-size: 28px; }
.mobile-overview .overview-footnote { font-size: 12px; color: #53657c; }
.mobile-overview .overview-action { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border: 1px solid #dce5ef; border-radius: 12px; text-decoration: none; background: #fff; }
.mobile-overview .overview-action strong { display: block; color: #172b45; font-size: 16px; }
.mobile-overview .overview-action span span { display: block; color: #53657c; font-size: 13px; }
.mobile-overview .overview-action:hover { background: #f3f7fc; border-color: #9cbce0; }
.mobile-overview .overview-help { padding: 20px 24px; border: 1px solid #dce5ef; border-radius: 12px; background: #f8fafc; }
.mobile-overview .overview-help h2 { font-size: 17px; }
.mobile-overview .overview-help p, .mobile-overview .overview-help a { font-size: 14px; }
@media (max-width: 575.98px) {
    .mobile-overview .overview-stat { font-size: 30px; }
    .mobile-overview .overview-license { font-size: 24px; }
    .mobile-overview .overview-action { padding: 16px; gap: 12px; }
    .mobile-overview .overview-help { padding: 18px; }
}
