/* Jahangostar modern UI layer
   Loaded after the legacy styles so every existing MVC view benefits from the
   same visual language without requiring a risky page-by-page rewrite. */

:root {
    --jg-primary: #0f766e;
    --jg-primary-dark: #115e59;
    --jg-primary-soft: #ccfbf1;
    --jg-secondary: #1e3a5f;
    --jg-accent: #f59e0b;
    --jg-success: #15803d;
    --jg-danger: #dc2626;
    --jg-warning: #d97706;
    --jg-info: #0369a1;
    --jg-surface: #ffffff;
    --jg-surface-muted: #f8fafc;
    --jg-page: #f1f5f9;
    --jg-border: #e2e8f0;
    --jg-text: #172033;
    --jg-text-muted: #64748b;
    --jg-radius-sm: 8px;
    --jg-radius: 14px;
    --jg-radius-lg: 22px;
    --jg-shadow-sm: 0 1px 2px rgba(15, 23, 42, .05), 0 4px 12px rgba(15, 23, 42, .04);
    --jg-shadow: 0 12px 32px rgba(15, 23, 42, .08);
    --jg-transition: 180ms ease;
}

html {
    min-height: 100%;
    background: var(--jg-page);
}

body {
    min-height: 100vh;
    padding-top: 64px;
    padding-bottom: 20px;
    color: var(--jg-text);
    background:
        radial-gradient(circle at 8% 5%, rgba(15, 118, 110, .07), transparent 22rem),
        radial-gradient(circle at 92% 95%, rgba(30, 58, 95, .06), transparent 26rem),
        var(--jg-page);
    line-height: 1.85;
    -webkit-font-smoothing: antialiased;
}

body.app-shell,
body.customer-shell,
body.payment-shell {
    overflow-x: hidden;
}

::selection {
    color: #fff;
    background: var(--jg-primary);
}

a {
    color: var(--jg-primary);
    transition: color var(--jg-transition), background-color var(--jg-transition), border-color var(--jg-transition), box-shadow var(--jg-transition), transform var(--jg-transition);
}

a:hover,
a:focus {
    color: var(--jg-primary-dark);
    text-decoration: none;
}

:focus-visible {
    outline: 3px solid rgba(20, 184, 166, .3);
    outline-offset: 2px;
}

.body-content {
    width: 100%;
    max-width: none;
    margin: 0 auto;
    padding: 12px clamp(10px, 1.2vw, 24px) 32px;
}

/* Legacy Bootstrap containers use fixed widths (750/970/1170px). Inside the
   application shell they should follow the available workspace instead. */
.app-shell .body-content .container,
.app-shell .body-content .container-fluid {
    width: 100% !important;
    max-width: none !important;
}

.app-shell .body-content > .container,
.app-shell .body-content > .container-fluid {
    padding-right: 0;
    padding-left: 0;
}

.body-content::before,
.body-content::after {
    display: table;
    content: "";
}

.body-content::after {
    clear: both;
}

.body-content > h1,
.body-content > h2,
.body-content > h3:first-child {
    position: relative;
    margin: 0 0 16px !important;
    padding: 0 18px 0 0;
    color: var(--jg-secondary) !important;
    font-size: clamp(22px, 2vw, 30px);
    font-weight: 700;
    line-height: 1.55;
}

.body-content > h1::before,
.body-content > h2::before,
.body-content > h3:first-child::before {
    position: absolute;
    top: .25em;
    right: 0;
    width: 5px;
    height: 1.15em;
    border-radius: 999px;
    background: linear-gradient(180deg, #14b8a6, var(--jg-primary));
    content: "";
}

h1, h2, h3, h4, h5, h6 {
    color: var(--jg-secondary);
    font-weight: 600;
}

hr {
    margin: 16px 0;
    border-color: var(--jg-border);
}

.body-content > .jg-page-title {
    min-height: 42px;
}

.body-content > h1 + br,
.body-content > h1 + br + br,
.body-content > h2 + br,
.body-content > h2 + br + br,
.body-content > .jg-page-title + br,
.body-content > .jg-page-title + br + br,
.jg-collapsed-break {
    display: none;
}

.jg-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px 22px;
    min-height: 52px;
    margin: 0 0 12px;
}

.jg-page-header > h1,
.jg-page-header > h2 {
    position: relative;
    flex: 0 0 auto;
    margin: 0 !important;
    padding: 0 18px 0 0;
    color: var(--jg-secondary) !important;
    font-size: clamp(22px, 2vw, 30px);
    font-weight: 700;
    line-height: 1.55;
}

.jg-page-header > h1::before,
.jg-page-header > h2::before {
    position: absolute;
    top: .25em;
    right: 0;
    width: 5px;
    height: 1.15em;
    border-radius: 999px;
    background: linear-gradient(180deg, #14b8a6, var(--jg-primary));
    content: "";
}

.jg-page-actions {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
}

.jg-page-meta {
    margin-right: auto;
    color: var(--jg-text-muted);
    font-size: 12px;
    white-space: nowrap;
}

.jg-page-actions-legacy {
    margin-top: 0 !important;
    margin-bottom: 12px !important;
}

#frmSearch {
    margin-top: 0;
}

#frmSearch > .container-fluid {
    padding-right: 0;
    padding-left: 0;
}

/* Top navigation */
.navbar-inverse {
    min-height: 64px;
    border: 0;
    background: rgba(15, 23, 42, .96);
    box-shadow: 0 8px 24px rgba(15, 23, 42, .16);
    backdrop-filter: blur(16px);
}

.navbar-fixed-top {
    z-index: 1040;
}

.navbar-inverse .container-fluid {
    max-width: none;
    margin: 0 auto;
    padding-right: 18px;
    padding-left: 18px;
}

.navbar-header {
    min-height: 64px;
}

.navbar-inverse .navbar-nav > li > a {
    min-height: 64px;
    padding: 20px 13px;
    color: #dbe4ef;
    font-size: 13px;
    font-weight: 500;
    line-height: 24px;
}

.navbar-inverse .navbar-nav > li > a:hover,
.navbar-inverse .navbar-nav > li > a:focus,
.navbar-inverse .navbar-nav > .active > a,
.navbar-inverse .navbar-nav > .active > a:hover,
.navbar-inverse .navbar-nav > .open > a,
.navbar-inverse .navbar-nav > .open > a:hover,
.navbar-inverse .navbar-nav > .open > a:focus {
    color: #fff;
    background: rgba(255, 255, 255, .09);
}

.navbar-inverse .navbar-nav > .active > a::after {
    position: absolute;
    right: 14px;
    bottom: 7px;
    left: 14px;
    height: 3px;
    border-radius: 999px;
    background: #2dd4bf;
    content: "";
}

.app-brand {
    display: inline-flex;
    float: right;
    align-items: center;
    min-height: 64px;
    margin-left: 14px;
    color: #fff !important;
    white-space: nowrap;
}

.app-brand:hover,
.app-brand:focus {
    color: #fff !important;
}

.app-brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin-left: 9px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg, #14b8a6, #0f766e);
    box-shadow: 0 6px 16px rgba(20, 184, 166, .22);
    font-size: 18px;
    font-weight: 700;
}

.app-brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.35;
}

.app-brand-copy strong {
    font-size: 13px;
    font-weight: 700;
}

.app-brand-copy small {
    color: #94a3b8;
    font-size: 10px;
}

.navbar-toggle {
    margin-top: 14px;
    margin-bottom: 14px;
    border-color: rgba(255, 255, 255, .16) !important;
    border-radius: 10px;
}

.dropdown-menu {
    min-width: 200px;
    padding: 8px;
    border: 1px solid var(--jg-border);
    border-radius: 12px;
    box-shadow: var(--jg-shadow);
    text-align: right;
}

.dropdown-menu > li > a {
    padding: 9px 12px;
    border-radius: 8px;
    color: #334155;
    font-size: 13px;
    line-height: 1.7;
}

.dropdown-menu > li > a:hover,
.dropdown-menu > li > a:focus,
.dropdown-menu > .active > a,
.dropdown-menu > .active > a:hover {
    color: var(--jg-primary-dark);
    background: #f0fdfa;
}

.dropdown-menu .divider {
    margin: 7px 4px;
    background: var(--jg-border);
}

.caret {
    margin-left: 6px;
}

.badge {
    min-width: 20px;
    padding: 4px 6px;
    border-radius: 999px;
    font-weight: 600;
}

/* Panels and cards */
.panel,
.well,
.jumbotron,
.thumbnail {
    border: 1px solid var(--jg-border);
    border-radius: var(--jg-radius);
    background: var(--jg-surface);
    box-shadow: var(--jg-shadow-sm);
}

.panel {
    margin-bottom: 24px;
    overflow: hidden;
}

.panel-heading {
    padding: 14px 18px;
    border-bottom: 1px solid var(--jg-border) !important;
    color: var(--jg-secondary) !important;
    background: #f8fafc !important;
    font-weight: 600;
}

.panel-body {
    padding: 20px;
}

.panel-footer {
    padding: 14px 18px;
    border-top: 1px solid var(--jg-border);
    background: #f8fafc;
}

.panel-primary { border-top: 3px solid var(--jg-primary); }
.panel-success { border-top: 3px solid var(--jg-success); }
.panel-danger { border-top: 3px solid var(--jg-danger); }
.panel-warning { border-top: 3px solid var(--jg-warning); }
.panel-info { border-top: 3px solid var(--jg-info); }

.panel-primary > .panel-heading,
.panel-success > .panel-heading,
.panel-danger > .panel-heading,
.panel-warning > .panel-heading,
.panel-info > .panel-heading {
    color: var(--jg-secondary) !important;
    background: #fff !important;
}

.panelE {
    min-height: 150px;
    transition: transform var(--jg-transition), box-shadow var(--jg-transition), border-color var(--jg-transition) !important;
}

.panelE:hover {
    padding: 0 !important;
    border-color: #cbd5e1;
    box-shadow: var(--jg-shadow);
    transform: translateY(-4px);
}

.panelE .panel-heading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 150px;
}

.well {
    padding: 20px;
    background: #fff;
}

.Caption,
table caption.Caption {
    padding: 14px 18px;
    border: 1px solid var(--jg-border);
    border-bottom: 0;
    border-radius: var(--jg-radius) var(--jg-radius) 0 0;
    color: var(--jg-secondary);
    background: #fff;
    font-size: 15px;
    font-weight: 700;
    text-align: right;
}

/* Forms */
label,
.control-label {
    margin-bottom: 7px;
    color: #334155;
    font-size: 13px;
    font-weight: 600;
}

.form-group {
    margin-bottom: 14px;
}

/* Compact form layout. ModernUI enables it only for homogeneous legacy forms;
   mixed rows, containers, tables and custom sections retain Bootstrap layout. */
.jg-form-grid > hr,
.jg-form-grid > br,
.jg-form-grid > .validation-summary-valid,
.jg-form-grid > .validation-summary-errors {
    grid-column: 1 / -1;
}

.jg-form-grid > br {
    display: none;
}

.jg-form-grid > hr {
    width: 100%;
    margin: 0 0 14px;
}

.jg-form-grid > .jg-field,
.jg-form-grid > .form-group {
    min-width: 0;
}

.jg-form-grid > .jg-field::before,
.jg-form-grid > .jg-field::after,
.jg-form-grid > .form-group::before,
.jg-form-grid > .form-group::after {
    display: table;
    content: "";
}

.jg-form-grid > .jg-field::after,
.jg-form-grid > .form-group::after {
    clear: both;
}

.jg-form-grid > .jg-form-actions {
    margin-top: 4px;
    padding-top: 16px !important;
    border-top: 1px solid var(--jg-border);
}

.jg-form-grid > .jg-form-actions > div:empty,
.jg-form-grid > .jg-form-actions > div:first-child:not(:last-child):empty {
    display: none;
}

.jg-form-grid > .jg-form-actions > div:last-child {
    width: 100%;
    padding-right: 0;
    padding-left: 0;
}

.jg-form-grid .form-control,
.jg-form-grid .bootstrap-select,
.jg-form-grid .bootstrap-select > .dropdown-toggle {
    width: 100% !important;
    max-width: none;
}

.form-control,
.bootstrap-select > .dropdown-toggle,
input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
input[type="tel"],
input[type="search"],
input[type="url"],
select,
textarea {
    min-height: 44px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    color: var(--jg-text);
    background-color: #fff;
    box-shadow: none;
    font-size: 13px;
    transition: border-color var(--jg-transition), box-shadow var(--jg-transition), background-color var(--jg-transition);
}

textarea.form-control,
textarea {
    min-height: 110px;
    resize: vertical;
}

.form-control:focus,
.bootstrap-select.open > .dropdown-toggle,
input:focus,
select:focus,
textarea:focus {
    border-color: #14b8a6;
    outline: 0;
    box-shadow: 0 0 0 4px rgba(20, 184, 166, .12);
}

.form-control[disabled],
.form-control[readonly],
fieldset[disabled] .form-control {
    color: #64748b;
    background: #f1f5f9;
}

.input-group-addon {
    min-width: 44px;
    border-color: #cbd5e1;
    color: var(--jg-primary);
    background: #f8fafc;
}

.input-group .form-control:first-child,
.input-group-addon:first-child {
    border-radius: 0 10px 10px 0;
}

.input-group .form-control:last-child,
.input-group-addon:last-child {
    border-radius: 10px 0 0 10px;
}

.help-block {
    color: var(--jg-text-muted);
    font-size: 12px;
}

.field-validation-error,
.validation-summary-errors,
.text-danger {
    color: var(--jg-danger) !important;
}

/* Buttons */
.btn {
    min-height: 40px;
    padding: 9px 17px;
    border-radius: 9px;
    box-shadow: none;
    font-size: 13px;
    font-weight: 600;
    transition: transform var(--jg-transition), box-shadow var(--jg-transition), background-color var(--jg-transition), border-color var(--jg-transition), color var(--jg-transition);
}

.btn:hover,
.btn:focus {
    transform: translateY(-1px);
}

.btn:active,
.btn.active {
    transform: translateY(0);
}

.btn-primary {
    border-color: var(--jg-primary);
    background: var(--jg-primary);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.active {
    border-color: var(--jg-primary-dark) !important;
    background: var(--jg-primary-dark) !important;
    box-shadow: 0 6px 16px rgba(15, 118, 110, .2);
}

.btn-success { border-color: var(--jg-success); background: var(--jg-success); }
.btn-danger { border-color: var(--jg-danger); background: var(--jg-danger); }
.btn-warning { border-color: var(--jg-warning); background: var(--jg-warning); }
.btn-info { border-color: var(--jg-info); background: var(--jg-info); }

.btn-default {
    border-color: #cbd5e1;
    color: #334155;
    background: #fff;
}

.btn-default:hover,
.btn-default:focus {
    border-color: #94a3b8;
    color: var(--jg-secondary);
    background: #f8fafc;
}

.btn-link {
    color: var(--jg-primary);
}

.btn-group {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    vertical-align: middle;
}

.btn-group > .btn,
.btn-group > .btn-group {
    float: none;
    margin: 0 !important;
}

.btn-group > .btn {
    position: relative;
    border-radius: 10px !important;
    box-shadow: 0 3px 8px rgba(15, 23, 42, .10);
}

.table > thead > tr > .jg-row-actions,
.table > tbody > tr > .jg-row-actions {
    width: 1%;
    text-align: left;
    white-space: nowrap;
}

.jg-row-actions .btn-group {
    flex-wrap: nowrap;
    justify-content: flex-end;
}

.jg-row-actions .btn {
    flex: 0 0 auto;
    white-space: nowrap;
}

.btn-group > .btn:hover,
.btn-group > .btn:focus {
    z-index: 2;
    box-shadow: 0 7px 16px rgba(15, 23, 42, .16);
}

/* Tables and data grids */
.table,
table.dataTable,
.tabulator {
    width: 100% !important;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid var(--jg-border) !important;
    border-radius: var(--jg-radius);
    background: #fff;
    box-shadow: var(--jg-shadow-sm);
    overflow: hidden;
}

.table > thead > tr > th,
table.dataTable thead th,
.tabulator .tabulator-header .tabulator-col {
    padding: 13px 12px;
    border-color: #dbe3ec !important;
    color: #334155 !important;
    background: #f1f5f9 !important;
    font-size: 12px;
    font-weight: 700;
    vertical-align: middle;
    white-space: nowrap;
}

.table > tbody > tr > td,
.table > tfoot > tr > td,
table.dataTable tbody td,
.tabulator-row .tabulator-cell {
    padding: 12px;
    border-color: #edf1f5 !important;
    color: #334155;
    background: #fff;
    font-size: 12px;
    vertical-align: middle;
}

.table-striped > tbody > tr:nth-of-type(odd) > td,
table.dataTable.stripe tbody tr.odd,
table.dataTable.display tbody tr.odd {
    background-color: #fbfdff;
}

.table-hover > tbody > tr:hover > td,
.table > tbody > tr:hover > td,
table.dataTable tbody tr:hover > td,
.tabulator-row:hover .tabulator-cell {
    background-color: #f0fdfa !important;
}

.table-bordered > thead > tr > th,
.table-bordered > tbody > tr > td {
    border-right: 0;
    border-left: 0;
}

.dataTables_wrapper {
    padding: 0;
    color: var(--jg-text-muted);
}

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
    margin: 10px 0;
}

.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
    min-height: 38px;
    margin-right: 7px;
    border: 1px solid #cbd5e1;
    border-radius: 9px;
    background: #fff;
}

.pagination > li > a,
.pagination > li > span,
.dataTables_wrapper .dataTables_paginate a.paginate_button {
    min-width: 38px;
    margin: 0 2px;
    padding: 8px 11px;
    border: 1px solid var(--jg-border) !important;
    border-radius: 8px !important;
    color: #475569 !important;
    background: #fff !important;
}

.pagination > .active > a,
.pagination > .active > span,
.dataTables_wrapper .dataTables_paginate a.paginate_button.current,
.dataTables_wrapper .dataTables_paginate a.paginate_button.current:hover {
    border-color: var(--jg-primary) !important;
    color: #fff !important;
    background: var(--jg-primary) !important;
}

/* DataTables Bootstrap renderer uses li.paginate_button > a.page-link.
   The li is only a structural wrapper and must not look like a second button. */
.dataTables_wrapper .dataTables_paginate .pagination > li.paginate_button {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

/* Tabs, alerts, lists and breadcrumbs */
.nav-tabs {
    display: flex;
    gap: 5px;
    padding: 6px;
    border: 1px solid var(--jg-border);
    border-radius: 12px 12px 0 0;
    background: #fff;
}

.nav-tabs > li {
    float: none;
    margin: 0;
}

.nav-tabs > li > a {
    margin: 0;
    padding: 9px 14px;
    border: 0 !important;
    border-radius: 8px;
    color: var(--jg-text-muted);
}

.nav-tabs > li.active > a,
.nav-tabs > li.active > a:hover,
.nav-tabs > li.active > a:focus {
    color: var(--jg-primary-dark);
    background: var(--jg-primary-soft);
}

.tab-content {
    padding: 20px;
    border-color: var(--jg-border);
    border-radius: 0 0 12px 12px;
    background: #fff;
}

.alert {
    padding: 14px 16px;
    border-width: 0 4px 0 0;
    border-radius: 10px;
    box-shadow: var(--jg-shadow-sm);
}

.alert-success { border-color: var(--jg-success); color: #166534; background: #f0fdf4; }
.alert-danger { border-color: var(--jg-danger); color: #991b1b; background: #fef2f2; }
.alert-warning { border-color: var(--jg-warning); color: #92400e; background: #fffbeb; }
.alert-info { border-color: var(--jg-info); color: #075985; background: #f0f9ff; }

.list-group-item {
    padding: 13px 15px;
    border-color: var(--jg-border);
}

.breadcrumb {
    padding: 10px 14px;
    border: 1px solid var(--jg-border);
    border-radius: 10px;
    background: #fff;
}

/* Modals */
.modal-backdrop.in {
    opacity: .55;
}

.modal-dialog {
    margin-top: 70px;
}

.modal-content {
    overflow: hidden;
    border: 0;
    border-radius: var(--jg-radius-lg);
    box-shadow: 0 28px 80px rgba(15, 23, 42, .26);
}

.modal-header {
    padding: 17px 20px;
    border-bottom: 1px solid var(--jg-border);
    background: #f8fafc;
}

.modal-title {
    font-size: 17px;
    font-weight: 700;
}

.modal-header .close {
    float: left;
    margin-top: 0;
    color: #475569;
    opacity: .7;
}

.modal-body {
    padding: 22px;
}

.modal-footer {
    padding: 14px 20px;
    border-top: 1px solid var(--jg-border);
    background: #f8fafc;
}

/* Authentication */
body.login-shell {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
    background:
        radial-gradient(circle at 15% 15%, rgba(45, 212, 191, .24), transparent 22rem),
        radial-gradient(circle at 85% 85%, rgba(59, 130, 246, .18), transparent 24rem),
        linear-gradient(145deg, #0f172a 0%, #123c52 48%, #0f766e 100%);
}

.login-shell .body-content {
    max-width: 1120px;
    padding: 0;
}

.auth-page {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, .75fr);
    min-height: 610px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 28px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 32px 90px rgba(2, 6, 23, .38);
}

.auth-intro {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 52px;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(145deg, rgba(15, 118, 110, .98), rgba(15, 23, 42, .98));
}

.auth-intro::before,
.auth-intro::after {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 50%;
    content: "";
}

.auth-intro::before {
    top: -140px;
    left: -100px;
    width: 360px;
    height: 360px;
}

.auth-intro::after {
    right: -80px;
    bottom: -170px;
    width: 420px;
    height: 420px;
}

.auth-brand,
.auth-intro-content,
.auth-meta {
    position: relative;
    z-index: 1;
}

.auth-brand {
    display: flex;
    align-items: center;
    gap: 13px;
}

.auth-brand img {
    width: 58px;
    height: 58px;
    padding: 7px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .14);
    object-fit: contain;
}

.auth-brand strong {
    display: block;
    color: #fff;
    font-size: 17px;
}

.auth-brand span {
    color: #99f6e4;
    font-size: 12px;
}

.auth-intro h1 {
    max-width: 520px;
    margin: 0 0 20px;
    color: #fff;
    font-size: clamp(30px, 3.7vw, 48px);
    font-weight: 700;
    line-height: 1.55;
}

.auth-intro p {
    max-width: 530px;
    margin: 0;
    color: #cbd5e1;
    font-size: 14px;
    line-height: 2.1;
}

.auth-meta {
    display: flex;
    gap: 22px;
    color: #94a3b8;
    font-size: 11px;
}

.auth-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px;
    background: #fff;
}

.auth-card-header {
    margin-bottom: 32px;
}

.auth-card-header h2 {
    margin: 0 0 9px;
    color: var(--jg-secondary);
    font-size: 27px;
    font-weight: 700;
}

.auth-card-header p {
    margin: 0;
    color: var(--jg-text-muted);
    font-size: 13px;
}

.auth-card .form-group {
    margin-bottom: 18px;
}

.auth-card .input-group {
    width: 100%;
}

.auth-card .form-control {
    height: 50px;
}

.auth-card .input-group-addon {
    width: 50px;
}

.auth-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 8px;
}

.auth-actions .btn {
    width: 100%;
    min-height: 48px;
}

.auth-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 18px;
}

.auth-options .btn-link {
    padding: 6px 0;
    color: var(--jg-primary);
}

.auth-footer {
    margin-top: 28px;
    color: #94a3b8;
    font-size: 11px;
    text-align: center;
}

.login-shell .wave {
    opacity: .05;
}

/* User landing page */
.welcome-card {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 28px;
    min-height: 250px;
    padding: clamp(28px, 5vw, 58px);
    border: 1px solid rgba(15, 118, 110, .14);
    border-radius: 24px;
    background: linear-gradient(135deg, #fff, #f0fdfa);
    box-shadow: var(--jg-shadow);
}

.welcome-card h1 {
    margin: 0 0 12px;
    font-size: clamp(25px, 3vw, 38px);
}

.welcome-card p {
    max-width: 680px;
    margin: 0;
    color: var(--jg-text-muted);
    line-height: 2;
}

.welcome-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 112px;
    height: 112px;
    border-radius: 32px;
    color: #fff;
    background: linear-gradient(135deg, #14b8a6, #0f766e);
    box-shadow: 0 20px 36px rgba(15, 118, 110, .25);
    font-size: 44px;
}

.welcome-alerts {
    margin-top: 20px;
}

/* Payment pages */
.payment-shell .body-content {
    max-width: 980px;
}

.payment-shell .PaymentTitle p {
    color: #e2e8f0 !important;
}

/* Third-party widgets */
.bootstrap-select .dropdown-toggle:focus,
.bootstrap-select > select.mobile-device:focus + .dropdown-toggle {
    outline: 0 !important;
}

.select2-container .select2-selection--single,
.select2-container .select2-selection--multiple {
    min-height: 44px;
    border-color: #cbd5e1;
    border-radius: 10px;
}

.tox-tinymce,
.jstree-default .jstree-wholerow-clicked,
.jstree-default .jstree-wholerow-hovered {
    border-radius: 10px;
}

#toast-container > div {
    border-radius: 12px;
    box-shadow: var(--jg-shadow);
}

/* Responsive behavior */
@media (max-width: 1199px) {
    .navbar-inverse .navbar-nav > li > a {
        padding-right: 9px;
        padding-left: 9px;
        font-size: 12px;
    }

    .app-brand-copy {
        display: none;
    }
}

@media (min-width: 992px) {
    .jg-form-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
        gap: 0 24px;
        padding: 20px 22px 22px;
        border: 1px solid var(--jg-border);
        border-radius: var(--jg-radius);
        background: rgba(255, 255, 255, .72);
        box-shadow: var(--jg-shadow-sm);
    }

    .jg-form-grid::before,
    .jg-form-grid::after {
        display: none !important;
        content: none !important;
    }

    .jg-form-grid > .jg-field {
        display: grid;
        grid-template-columns: minmax(105px, 30%) minmax(0, 70%);
        align-items: start;
        width: auto;
        margin-right: 0;
        margin-bottom: 14px;
        margin-left: 0;
        padding: 0;
    }

    .jg-form-grid > .form-group {
        min-width: 0;
    }

    .jg-form-grid > .jg-field > .control-label[class*="col-"],
    .jg-form-grid > .jg-field > label[class*="col-"] {
        width: auto;
        padding: 10px 0 0 12px;
        text-align: right;
    }

    .jg-form-grid > .jg-field > div[class*="col-"] {
        width: auto;
        padding-right: 0;
        padding-left: 0;
    }

    .jg-form-grid > .jg-field-wide {
        grid-column: 1 / -1;
        grid-template-columns: minmax(130px, 15%) minmax(0, 85%);
    }

    .jg-form-grid > .jg-field-span-2 {
        grid-column: span 2;
    }

    .jg-form-grid > .jg-field-span-3 {
        grid-column: span 2;
    }

    .jg-form-grid > .jg-form-actions {
        display: block;
    }

    .jg-form-grid > .jg-form-actions .btn-group,
    .jg-form-grid > .jg-form-actions > div {
        float: none;
    }

    .jg-form-grid.jg-grid-dense {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-flow: row dense;
        gap: 14px 18px;
    }

    .jg-form-grid.jg-grid-dense > .jg-field,
    .jg-form-grid.jg-grid-dense > .form-group {
        display: flex;
        float: none !important;
        flex-direction: column;
        gap: 6px;
        width: auto !important;
        margin: 0;
        padding: 0;
    }

    .jg-form-grid.jg-grid-dense > .jg-field-wrapper > .jg-field-inner {
        display: flex;
        flex-direction: column;
        gap: 6px;
        width: 100%;
        margin: 0;
    }

    .development-log-form > .form-group {
        width: auto !important;
        float: none !important;
    }

    .activity-create-form > .form-group {
        width: auto !important;
        float: none !important;
    }

    .activity-create-form textarea,
    .activity-create-form .jg-field-wide textarea {
        width: 100% !important;
        min-height: 150px;
    }

    .activity-create-form #ResultText {
        min-height: 88px;
    }

    .jg-form-grid.jg-grid-dense > .jg-field > .control-label[class*="col-"],
    .jg-form-grid.jg-grid-dense > .jg-field > label[class*="col-"],
    .jg-form-grid.jg-grid-dense > .form-group > .control-label[class*="col-"],
    .jg-form-grid.jg-grid-dense > .form-group > label[class*="col-"] {
        width: 100%;
        padding: 0;
        text-align: right;
    }

    .jg-form-grid.jg-grid-dense > .jg-field-wrapper > .jg-field-inner > .control-label[class*="col-"],
    .jg-form-grid.jg-grid-dense > .jg-field-wrapper > .jg-field-inner > label[class*="col-"] {
        float: none;
        width: 100%;
        padding: 0;
        text-align: right;
    }

    .jg-form-grid.jg-grid-dense > .jg-field > div[class*="col-"],
    .jg-form-grid.jg-grid-dense > .form-group > div[class*="col-"] {
        width: 100%;
        padding-right: 0;
        padding-left: 0;
    }

    .jg-form-grid.jg-grid-dense > .jg-field-wrapper > .jg-field-inner > div[class*="col-"] {
        float: none;
        width: 100%;
        padding-right: 0;
        padding-left: 0;
    }

    .jg-form-grid.jg-grid-dense > .form-group > div:first-child:not(:last-child) {
        min-height: 24px;
    }

    .jg-form-grid.jg-grid-dense > .form-group > div:first-child:not(:last-child) .control-label {
        padding: 0;
    }

    .jg-form-grid.jg-grid-dense > .jg-field-wide,
    .jg-form-grid.jg-grid-dense > .jg-form-actions {
        grid-column: 1 / -1;
    }

    .jg-form-grid > .jg-form-actions.btn-group {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 8px;
        width: 100%;
    }
}

@media (min-width: 1200px) {
    .jg-form-grid.jg-grid-dense {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .jg-form-grid > .jg-field-span-3 {
        grid-column: span 2;
    }
}

@media (min-width: 1500px) {
    .jg-form-grid.jg-grid-dense {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .jg-form-grid > .jg-field-span-3 {
        grid-column: span 3;
    }
}

@media (max-width: 991px) {
    .auth-page {
        grid-template-columns: 1fr 1fr;
    }

    .auth-intro,
    .auth-card {
        padding: 36px;
    }

    .auth-intro h1 {
        font-size: 31px;
    }
}

@media (max-width: 767px) {
    body {
        padding-top: 64px;
    }

    .body-content {
        padding: 10px 12px 28px;
    }

    .jg-page-header {
        align-items: flex-start;
        flex-direction: column;
        margin-bottom: 14px;
    }

    .jg-page-actions {
        flex-wrap: wrap;
        width: 100%;
    }

    .jg-page-meta {
        width: 100%;
        margin-top: 4px;
        margin-right: 0;
    }

    .navbar-inverse .container-fluid {
        padding-right: 12px;
        padding-left: 12px;
    }

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

    .navbar-toggle {
        order: 2;
        margin-left: 0;
    }

    .app-brand {
        order: 1;
        margin-right: 0;
        margin-left: auto;
    }

    .app-brand-copy {
        display: flex;
    }

    .navbar-collapse {
        max-height: calc(100vh - 64px) !important;
        padding: 10px;
        border-top-color: rgba(255, 255, 255, .1) !important;
        background: #0f172a;
        box-shadow: none !important;
    }

    .navbar-inverse .navbar-nav {
        margin: 0;
    }

    .navbar-inverse .navbar-nav > li > a {
        min-height: 44px;
        padding: 10px 12px !important;
        border-radius: 9px;
        font-size: 13px;
    }

    .navbar-inverse .navbar-nav > .active > a::after {
        top: 10px;
        right: 2px;
        bottom: 10px;
        left: auto;
        width: 3px;
        height: auto;
    }

    .navbar-nav .open .dropdown-menu {
        margin: 4px 8px 8px;
        padding: 6px;
        border: 1px solid rgba(255, 255, 255, .08);
        background: rgba(255, 255, 255, .04);
    }

    .navbar-inverse .navbar-nav .open .dropdown-menu > li > a {
        padding: 9px 12px;
        color: #cbd5e1;
    }

    .panel-body {
        padding: 16px;
    }

    .table,
    table.dataTable {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .dataTables_wrapper {
        overflow-x: auto;
    }

    .form-horizontal .control-label {
        padding-top: 0;
    }

    .modal-dialog {
        margin: 15px;
    }

    body.login-shell {
        display: block;
        padding: 18px 12px;
    }

    .auth-page {
        display: block;
        min-height: 0;
        border-radius: 22px;
    }

    .auth-intro {
        min-height: 260px;
        padding: 30px;
    }

    .auth-intro-content {
        margin: 34px 0;
    }

    .auth-intro h1 {
        font-size: 26px;
    }

    .auth-intro p,
    .auth-meta {
        display: none;
    }

    .auth-card {
        padding: 30px 24px;
    }

    .welcome-card {
        grid-template-columns: 1fr;
    }

    .welcome-card-icon {
        width: 82px;
        height: 82px;
        border-radius: 24px;
        font-size: 34px;
        grid-row: 1;
    }
}

@media (max-width: 480px) {
    .app-brand-copy small {
        display: none;
    }

    .auth-actions {
        grid-template-columns: 1fr;
    }

    .auth-options {
        align-items: flex-start;
        flex-direction: column;
    }

    .btn {
        white-space: normal;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

/* Staff navigation: RTL brand, section links and aligned account tools. */
.jg-topbar {
    background: linear-gradient(110deg, #111c2e, #1b2a40);
    border-bottom: 1px solid rgba(148, 163, 184, .16);
}
.jg-topbar .app-brand { direction: rtl; gap: 9px; margin: 0; padding: 0 6px; }
.jg-topbar .app-brand-mark { margin: 0; }
.jg-topbar .app-brand-copy { text-align: right; }
.jg-topbar .navbar-nav > li > a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 52px;
    padding: 14px 10px !important;
    border-radius: 9px;
    white-space: nowrap;
}
.jg-topbar .navbar-nav > .active > a {
    color: #99f6e4;
    background: rgba(45, 212, 191, .1);
}
.jg-topbar .navbar-nav > .active > a::after {
    right: 12px;
    left: 12px;
    bottom: 3px;
    box-shadow: 0 0 10px rgba(45, 212, 191, .25);
}
.jg-topbar a:focus-visible { outline: 2px solid #5eead4; outline-offset: -3px; }
.jg-topbar .glyphicon { top: 0; line-height: 1; }
.jg-topbar .caret { opacity: .65; }
.app-shell .navbar-inverse .jg-account-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    direction: rtl;
}
.app-shell .navbar-inverse .jg-user-avatar {
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    border: 2px solid rgba(153, 246, 228, .65);
    border-radius: 50%;
    background: #e2e8f0;
    object-fit: cover;
}
.jg-topbar .dropdown-menu { margin-top: 6px; border-top: 2px solid #14b8a6; }
.jg-topbar #repairsCount {
    position: static !important;
    min-width: 21px !important;
    height: 21px !important;
    border: 0 !important;
    border-radius: 7px !important;
    background: #fbbf24 !important;
    color: #422006 !important;
    line-height: 21px !important;
    font-size: 11px !important;
}
.jg-topbar .badge { margin-top: 0 !important; font-size: 10px; }
.jg-topbar #NotificationListCount { left: 0 !important; top: 3px !important; }
@media (min-width: 768px) {
    .jg-topbar > .container-fluid { display: flex; align-items: center; direction: rtl; gap: 14px; }
    .jg-topbar > .container-fluid::before,
    .jg-topbar > .container-fluid::after,
    .jg-topbar .navbar-collapse::before,
    .jg-topbar .navbar-collapse::after { display: none; }
    .jg-topbar .navbar-header { float: none; flex: 0 0 auto; }
    .jg-topbar .navbar-collapse {
        display: flex !important;
        align-items: center;
        flex-wrap: wrap;
        flex: 1;
        min-width: 0;
        padding: 6px 0;
        gap: 4px 12px;
    }
    .jg-topbar .navbar-nav { display: flex; align-items: center; float: none !important; margin: 0; }
    .jg-topbar .navbar-nav > li { float: none; }
    .jg-topbar .jg-main-nav { order: 0; flex-wrap: wrap; gap: 3px; }
    .jg-topbar #logoutForm { order: 1; margin: 0; margin-right: auto; float: none !important; }
    .jg-topbar .jg-nav-tools { order: 2; }
    .jg-topbar #logoutForm > ul { direction: rtl; }
    .jg-topbar #logoutForm .dropdown-menu { right: auto; left: 0; }
    .jg-topbar .jg-nav-tools > li > a { width: 42px; color: #94a3b8; }
}
@media (max-width: 767px) {
    .jg-topbar .navbar-header { direction: rtl; }
    .jg-topbar .app-brand { margin-left: auto; }
    .jg-topbar .navbar-nav > li > a { justify-content: flex-start; direction: rtl; min-height: 44px; }
    .jg-topbar .navbar-nav > .active > a::after { right: 2px; left: auto; bottom: 10px; box-shadow: none; }
    .jg-topbar .navbar-nav .open .dropdown-menu > .active > a { color: #99f6e4; background: rgba(45, 212, 191, .12); }
}


/* Change password: a focused form for staff and customers. */
.jg-password-page {
    width: min(100%, 590px);
    margin: 28px auto 48px;
    text-align: right;
}
.jg-password-heading {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}
.jg-password-heading-icon {
    display: inline-flex;
    flex: 0 0 52px;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    color: #0f766e;
    background: #ccfbf1;
    font-size: 22px;
}
.jg-password-heading h2 {
    margin: 0 0 4px;
    color: var(--jg-secondary);
    font-size: clamp(21px, 2vw, 26px);
    font-weight: 700;
}
.jg-password-heading p {
    margin: 0;
    color: var(--jg-text-muted);
    font-size: 13px;
    line-height: 1.9;
}
.jg-password-card {
    padding: clamp(22px, 4vw, 34px);
    border: 1px solid var(--jg-border);
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--jg-shadow);
}
.jg-password-field { margin-bottom: 22px; }
.jg-password-field label {
    display: block;
    margin-bottom: 9px;
    font-size: 14px;
}
.jg-password-field .form-control {
    width: 100%;
    height: 46px;
    text-align: left;
}
.jg-password-field .field-validation-error {
    display: block;
    margin-top: 7px;
    font-size: 12px;
}
.jg-password-hint {
    margin: 8px 0 0;
    color: var(--jg-text-muted);
    font-size: 12px;
    line-height: 1.8;
}
.jg-temp-password {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin-top: 12px;
}
.jg-temp-password .btn {
    color: var(--jg-primary);
    border-color: #99f6e4;
    background: #f0fdfa;
}
.jg-temp-password .btn:hover,
.jg-temp-password .btn:focus { background: #ccfbf1; }
.jg-temp-password [role="status"] { font-size: 12px; }
.jg-password-divider {
    height: 1px;
    margin: 0 0 24px;
    background: var(--jg-border);
}
.jg-password-summary.validation-summary-errors {
    margin: 0 0 20px;
    padding: 12px 16px;
    border: 1px solid #fecaca;
    border-radius: 10px;
    background: #fef2f2;
    font-size: 13px;
}
.jg-password-summary ul { margin: 0; padding-right: 18px; }
.jg-password-actions {
    padding-top: 20px;
    border-top: 1px solid var(--jg-border);
}
.jg-password-actions .btn { min-width: 185px; }
@media (max-width: 480px) {
    .jg-password-page { margin: 14px auto 32px; }
    .jg-password-heading { align-items: flex-start; gap: 12px; }
    .jg-password-heading-icon { flex-basis: 44px; width: 44px; height: 44px; }
    .jg-password-actions .btn { width: 100%; }
}

/* Account dropdown shared by the staff and customer navigation. */
.app-shell .jg-account-menu {
    min-width: 236px;
    margin-top: 8px;
    padding: 7px;
    border: 1px solid #e2e8f0;
    border-top: 3px solid #2dd4bf;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 18px 44px rgba(15, 23, 42, .18);
}
.app-shell .jg-account-menu > li > .jg-account-action {
    display: flex;
    align-items: center;
    gap: 11px;
    width: 100%;
    min-height: 46px;
    padding: 7px 10px;
    border: 0;
    border-radius: 9px;
    color: #27364d;
    background: transparent;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
    text-align: right;
    cursor: pointer;
}
.app-shell .jg-account-menu .jg-account-icon {
    display: inline-flex;
    flex: 0 0 32px;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 9px;
    color: #0f766e;
    background: #e8faf6;
}
.app-shell .jg-account-menu .jg-account-icon svg {
    display: block;
    width: 19px;
    height: 19px;
}
.app-shell .jg-account-menu > li > .jg-account-action:hover,
.app-shell .jg-account-menu > li > .jg-account-action:focus {
    color: #0f766e;
    background: #f0fdfa;
    outline: none;
}
.app-shell .jg-account-menu > li > .jg-account-action:focus-visible {
    outline: 2px solid #2dd4bf;
    outline-offset: -2px;
}
.app-shell .jg-account-menu .divider {
    margin: 7px 8px;
    background: #e2e8f0;
}
.app-shell .jg-account-menu .jg-logout-action .jg-account-icon {
    color: #dc5961;
    background: #fff1f2;
}
.app-shell .jg-account-menu > li > .jg-logout-action:hover,
.app-shell .jg-account-menu > li > .jg-logout-action:focus {
    color: #be123c;
    background: #fff1f2;
}
@media (max-width: 767px) {
    .app-shell .navbar-inverse .navbar-nav .open .jg-account-menu {
        margin: 6px 8px 10px;
        background: #fff;
        border-color: #e2e8f0;
        border-top-color: #2dd4bf;
    }
    .app-shell .navbar-inverse .navbar-nav .open .jg-account-menu > li > .jg-account-action {
        color: #27364d;
    }
    .app-shell .navbar-inverse .navbar-nav .open .jg-account-menu > li > .jg-logout-action {
        color: #be123c;
    }
}


/* Profile overview */
.jg-profile-page {
    width: min(100%, 1120px);
    margin: 20px auto 56px;
    text-align: right;
}
.jg-profile-hero {
    position: relative;
    display: flex;
    align-items: center;
    gap: 26px;
    min-height: 210px;
    padding: 30px clamp(24px, 5vw, 54px);
    overflow: hidden;
    border-radius: 24px;
    color: #e2e8f0;
    background: linear-gradient(115deg, #1d4052 0%, #14283e 58%, #101d31 100%);
    box-shadow: 0 18px 40px rgba(16, 29, 49, .16);
}
.jg-profile-hero::before,
.jg-profile-hero::after {
    position: absolute;
    border: 1px solid rgba(94, 234, 212, .13);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}
.jg-profile-hero::before { width: 310px; height: 310px; left: -70px; top: -195px; }
.jg-profile-hero::after { width: 210px; height: 210px; left: 130px; bottom: -160px; }
.jg-profile-avatar-wrap {
    position: relative;
    z-index: 1;
    flex: 0 0 112px;
    width: 112px;
    height: 112px;
    padding: 5px;
    border: 1px solid rgba(153, 246, 228, .6);
    border-radius: 28px;
    background: rgba(255, 255, 255, .12);
    box-shadow: 0 12px 26px rgba(0, 0, 0, .13);
}
.jg-profile-avatar-wrap img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 23px;
    object-fit: cover;
    background: #e2e8f0;
}
.jg-profile-hero-copy { position: relative; z-index: 1; min-width: 0; }
.jg-profile-eyebrow {
    display: inline-block;
    margin-bottom: 8px;
    color: #99f6e4;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .02em;
}
.jg-profile-hero h1 {
    margin: 0 0 8px;
    color: #fff;
    font-size: clamp(23px, 3vw, 33px);
    font-weight: 700;
    line-height: 1.4;
}
.jg-profile-hero p { margin: 0; color: #b9cbd9; font-size: 13px; line-height: 1.9; }
.jg-profile-notice {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 20px;
    padding: 12px 16px;
    border: 1px solid #99e5cd;
    border-radius: 12px;
    color: #166451;
    background: #ecfdf5;
    font-size: 13px;
}
.jg-profile-notice svg { flex: 0 0 20px; width: 20px; height: 20px; }
.jg-profile-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.16fr) minmax(0, .84fr);
    gap: 20px;
    margin-top: 22px;
}
.jg-profile-card {
    min-width: 0;
    padding: clamp(22px, 3vw, 28px);
    border: 1px solid var(--jg-border);
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--jg-shadow-sm);
}
.jg-profile-card-heading { display: flex; align-items: center; gap: 13px; }
.jg-profile-card-icon {
    display: inline-flex;
    flex: 0 0 42px;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    color: #0f766e;
    background: #e7f9f4;
}
.jg-profile-card-icon svg { width: 21px; height: 21px; }
.jg-profile-card-heading h2 {
    margin: 0 0 3px;
    color: #1e3a5f;
    font-size: 17px;
    font-weight: 700;
}
.jg-profile-card-heading p,
.jg-profile-photo-controls p,
.jg-profile-security-content p {
    margin: 0;
    color: var(--jg-text-muted);
    font-size: 12px;
    line-height: 1.9;
}
.jg-profile-photo-content {
    display: flex;
    align-items: center;
    gap: 22px;
    min-height: 158px;
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid #edf1f5;
}
.jg-profile-photo-preview {
    flex: 0 0 116px;
    width: 116px;
    height: 116px;
    padding: 4px;
    border: 1px solid #d5ece8;
    border-radius: 18px;
    background: #f0fdfa;
}
.jg-profile-photo-preview img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 14px;
    object-fit: cover;
    background: #e2e8f0;
}
.jg-profile-photo-controls { min-width: 0; }
.jg-profile-photo-controls strong {
    display: block;
    margin-bottom: 3px;
    color: #26384c;
    font-size: 14px;
}
.jg-profile-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.jg-profile-actions .btn { min-height: 38px; padding: 8px 14px; }
.jg-profile-remove { color: #b4233c; border-color: #f1c7d0; background: #fff; }
.jg-profile-remove:hover,
.jg-profile-remove:focus { color: #a31634; border-color: #ec9eac; background: #fff1f2; }
.jg-profile-page #fileProfilePicture[hidden] { display: none !important; }
.jg-profile-upload-status { display: block; min-height: 18px; margin-top: 8px; font-size: 12px; }
.jg-profile-security-card { display: flex; flex-direction: column; }
.jg-profile-security-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid #edf1f5;
}
.jg-profile-security-symbol {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    color: #0f766e;
    background: #f0fdfa;
}
.jg-profile-security-symbol svg { width: 28px; height: 28px; }
.jg-profile-security-content h3 {
    margin: 14px 0 7px;
    color: #26384c;
    font-size: 15px;
}
.jg-profile-password-link {
    margin-top: auto;
    padding: 8px 14px;
    color: #0f766e;
    border-color: #b8e6db;
    background: #f6fffd;
}
.jg-profile-password-link:hover,
.jg-profile-password-link:focus { color: #0b625b; background: #e4f8f3; }
.jg-profile-password-link span { margin-right: 10px; }
@media (max-width: 860px) {
    .jg-profile-grid { grid-template-columns: 1fr; }
    .jg-profile-password-link { margin-top: 20px; }
}
@media (max-width: 540px) {
    .jg-profile-page { margin: 12px auto 32px; }
    .jg-profile-hero { min-height: 0; gap: 15px; padding: 23px 20px; border-radius: 18px; }
    .jg-profile-avatar-wrap { flex-basis: 76px; width: 76px; height: 76px; border-radius: 20px; }
    .jg-profile-avatar-wrap img { border-radius: 15px; }
    .jg-profile-card { padding: 20px; }
    .jg-profile-photo-content { align-items: flex-start; gap: 14px; }
    .jg-profile-photo-preview { flex-basis: 80px; width: 80px; height: 80px; }
    .jg-profile-actions .btn { width: 100%; }
}


/* Unread ticket notifications */
.jg-notification-modal .modal-dialog {
    width: min(760px, calc(100% - 28px));
    max-width: none;
    margin: clamp(18px, 8vh, 72px) auto;
}
.jg-notification-modal .modal-content {
    border: 1px solid rgba(226, 232, 240, .9);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 28px 80px rgba(15, 23, 42, .26);
}
.jg-notification-modal .jg-notification-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 21px 24px;
    border-bottom: 1px solid #e7edf2;
    background: linear-gradient(105deg, #f0fdfa, #f8fafc 62%);
    text-align: right;
}
.jg-notification-header-icon {
    display: inline-flex;
    flex: 0 0 46px;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    color: #0f766e;
    background: #d5f5ec;
}
.jg-notification-header-icon svg { width: 23px; height: 23px; }
.jg-notification-heading { min-width: 0; }
.jg-notification-heading .modal-title {
    margin: 0 0 3px;
    color: #193a51;
    font-size: 17px;
    font-weight: 700;
}
.jg-notification-heading p { margin: 0; color: #64748b; font-size: 12px; }
.jg-notification-modal .jg-notification-close {
    display: inline-flex;
    flex: 0 0 34px;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    margin: 0 auto 0 0;
    padding: 0;
    border-radius: 9px;
    color: #64748b;
    background: #fff;
    box-shadow: 0 1px 4px rgba(15, 23, 42, .08);
    font-size: 22px;
    font-weight: 400;
    line-height: 1;
    opacity: 1;
}
.jg-notification-modal .jg-notification-close:hover,
.jg-notification-modal .jg-notification-close:focus {
    color: #0f766e;
    background: #e4f8f2;
    outline: 2px solid rgba(20, 184, 166, .3);
}
.jg-notification-modal .modal-body { padding: 22px 24px 26px; text-align: right; }
.jg-notification-table-wrap { max-height: min(60vh, 440px); overflow: auto; border-radius: 12px; }
.jg-notification-modal .jg-notification-table {
    display: table;
    min-width: 590px;
    margin: 0;
    border: 1px solid #e3ecf0 !important;
    border-radius: 12px;
    box-shadow: none;
    direction: rtl;
    text-align: right;
}
.jg-notification-modal .jg-notification-table > thead > tr > th {
    padding: 13px 14px;
    border-color: #d8e9e5 !important;
    color: #24546a !important;
    background: #edf8f5 !important;
    font-size: 12px;
    font-weight: 700;
}
.jg-notification-modal .jg-notification-table > tbody > tr > td {
    padding: 13px 14px;
    border-bottom: 1px solid #edf2f5;
    color: #334155;
    background: #fff;
    font-size: 12px;
    vertical-align: middle;
}
.jg-notification-modal .jg-notification-table > tbody > tr:last-child > td { border-bottom: 0; }
.jg-notification-modal .jg-notification-table > tbody > tr:hover > td { background: #f6fdfa; }
.jg-notification-id {
    display: inline-block;
    min-width: 39px;
    padding: 3px 7px;
    border-radius: 7px;
    color: #0f766e;
    background: #e8f8f3;
    font-weight: 700;
    text-align: center;
}
.jg-notification-link { color: #176778; font-weight: 700; }
.jg-notification-link:hover,
.jg-notification-link:focus { color: #0f766e; text-decoration: underline; }
.jg-notification-date { color: #64748b !important; white-space: nowrap; text-align: right; }
.jg-notification-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 210px;
    padding: 24px 16px;
    text-align: center;
}
.jg-notification-empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin-bottom: 13px;
    border-radius: 20px;
    color: #0f766e;
    background: #e9faf4;
}
.jg-notification-empty-icon svg { width: 32px; height: 32px; }
.jg-notification-empty strong { color: #1e3a5f; font-size: 16px; }
.jg-notification-empty p { margin: 5px 0 0; color: #64748b; font-size: 13px; }
.jg-notification-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 170px;
    color: #64748b;
    font-size: 13px;
}
.jg-notification-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid #c7e8df;
    border-top-color: #0f766e;
    border-radius: 50%;
    animation: jg-notification-spin .8s linear infinite;
}
@keyframes jg-notification-spin { to { transform: rotate(360deg); } }
@media (max-width: 540px) {
    .jg-notification-modal .jg-notification-header { gap: 10px; padding: 16px; }
    .jg-notification-header-icon { flex-basis: 40px; width: 40px; height: 40px; }
    .jg-notification-heading .modal-title { font-size: 15px; }
    .jg-notification-modal .modal-body { padding: 16px; }
}

/* Distinct, consistent icons for each staff navigation submenu item. */
.jg-topbar .jg-main-nav .dropdown-menu {
    width: max-content !important;
    min-width: 220px;
    max-width: min(330px, calc(100vw - 32px));
}
.jg-topbar .jg-main-nav .dropdown-menu > li > a.jg-menu-link {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 7px 10px;
    direction: rtl;
    text-align: right;
    white-space: normal;
}
.jg-topbar .jg-menu-icon {
    display: inline-flex;
    flex: 0 0 29px;
    align-items: center;
    justify-content: center;
    width: 29px;
    height: 29px;
    border-radius: 8px;
    color: #0f766e;
    background: #e7f8f4;
}
.jg-topbar .jg-menu-icon svg { display: block; width: 17px; height: 17px; }
.jg-topbar .jg-menu-label { min-width: 0; }
.jg-topbar .jg-main-nav .dropdown-menu > li > a.jg-menu-link:hover .jg-menu-icon,
.jg-topbar .jg-main-nav .dropdown-menu > .active > a.jg-menu-link .jg-menu-icon {
    color: #fff;
    background: #0f766e;
}
@media (max-width: 767px) {
    .jg-topbar .jg-main-nav .dropdown-menu { width: auto !important; min-width: 0; max-width: none; }
    .jg-topbar .jg-main-nav .open .dropdown-menu > li > a.jg-menu-link { color: #dbe4ef; }
    .jg-topbar .jg-menu-icon { color: #99f6e4; background: rgba(45, 212, 191, .14); }
    .jg-topbar .jg-main-nav .open .dropdown-menu > li > a.jg-menu-link:hover,
    .jg-topbar .jg-main-nav .open .dropdown-menu > .active > a.jg-menu-link { color: #fff; background: rgba(45, 212, 191, .12); }
}

/* The original Jahangostar mark in place of the placeholder initial. */
.app-brand .app-brand-logo {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    overflow: hidden;
    border-color: rgba(255, 255, 255, .38);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 5px 14px rgba(0, 0, 0, .12);
}
.app-brand .app-brand-logo img {
    display: block;
    width: auto;
    height: 36px;
    max-width: none;
    object-fit: contain;
}
