/* ================================================================
   RIDCO Modern Theme  —  ridco-theme.css
   Loaded only for RIDCO users (UserSession.OrgCode == "RIDCO")
   Overrides the base admin stylesheet via CSS specificity.
   Base framework: Bootstrap 3 + module.admin.stylesheet-complete
   ================================================================ */

/* ── Design Tokens ──────────────────────────────────────────── */
:root {
    --ridco-navy:       #0D2B5E;
    --ridco-navy-dark:  #091F44;
    --ridco-blue:       #1565C0;
    --ridco-blue-light: #1976D2;
    --ridco-accent:     #42A5F5;
    --ridco-bg:         #F4F6FA;
    --ridco-surface:    #FFFFFF;
    --ridco-border:     #E2E8F0;
    --ridco-text:       #2D3748;
    --ridco-text-muted: #718096;
    --ridco-text-faint: #A0AEC0;
    --ridco-radius:     12px;
    --ridco-radius-sm:  8px;
    --ridco-shadow:     0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
    --ridco-shadow-md:  0 4px 16px rgba(0,0,0,0.10);
}

/* ── Typography ─────────────────────────────────────────────── */
body,
.sidebar, .navbar, .panel, .modal,
.table, .form-control, .btn,
input, button, select, textarea, label, p, div, td, th {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI',
                 Roboto, Helvetica, Arial, sans-serif !important;
    -webkit-font-smoothing: antialiased !important;
    letter-spacing: 0.1px !important;
}
/* Apply Inter to anchors only when they do NOT carry an icon font class.
   Anchors with glyphicons/fa classes render icons via ::before pseudo-elements
   that inherit font-family — forcing Inter on them breaks the icon glyphs. */
a:not([class*="glyphicons"]):not([class*="glyphicon-"]):not(.fa):not([class*="fa-"]) {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI',
                 Roboto, Helvetica, Arial, sans-serif !important;
}
/* Never override font-family on icon elements — breaks Font Awesome / glyphicons */
i.fa, i[class*="fa-"], span.fa, span[class*="fa-"],
.glyphicon, [class*="glyphicon-"] {
    font-family: inherit !important;
    font-family: 'FontAwesome' !important;
    -webkit-font-smoothing: antialiased !important;
    letter-spacing: 0 !important;
}

/* ── Page background ────────────────────────────────────────── */
body { background-color: var(--ridco-bg) !important; }
#content { background-color: var(--ridco-bg) !important; }
#containerfluid { background-color: var(--ridco-bg) !important; }

/* ── Sidebar ────────────────────────────────────────────────── */
#menu,
#menu .sidebar-blue,
#sidebar-fusion-wrapper,
.sidebar.sidebar-fusion #menu > div ul,
.sidebar.sidebar-fusion #menu > div {
    background: var(--ridco-navy) !important;
}

#menu #brandWrapper {
    background: var(--ridco-navy-dark) !important;
    border-bottom: 1px solid rgba(255,255,255,0.08) !important;
    padding: 0 !important;
    min-height: 60px !important;
}

/* Org code label in sidebar */
#menu #brandWrapper span[title] {
    color: #FFFFFF !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    letter-spacing: 1px !important;
    padding: 18px 0 0 16px !important;
}

/* Sidebar menu links */
#menu ul li > a,
#menu ul li > a:visited {
    color: rgba(255,255,255,0.78) !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    border-radius: 6px !important;
    margin: 1px 10px !important;
    padding: 9px 14px !important;
    transition: background 0.18s ease, color 0.18s ease !important;
    border-left: none !important;
}

#menu ul li > a:hover {
    background: rgba(255,255,255,0.10) !important;
    color: #FFFFFF !important;
}

#menu ul li.active > a,
#menu ul li.open > a {
    background: rgba(66,165,245,0.20) !important;
    color: var(--ridco-accent) !important;
    border-left: none !important;
}

/* Sidebar group/section headers */
#menu .group-title, #menu .group-header,
#menu ul li.group-header > span,
#menu ul li.group-header {
    color: rgba(255,255,255,0.38) !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    letter-spacing: 1.4px !important;
    text-transform: uppercase !important;
    padding: 18px 24px 5px !important;
    margin: 0 !important;
}

/* Icons in sidebar */
#menu ul li > a > i.fa {
    color: rgba(255,255,255,0.55) !important;
    width: 20px !important;
    margin-right: 10px !important;
    font-size: 14px !important;
}
#menu ul li > a:hover > i.fa,
#menu ul li.active > a > i.fa {
    color: var(--ridco-accent) !important;
}

/* Sub-menu */
#menu ul ul {
    background: rgba(0,0,0,0.15) !important;
    border-radius: 6px !important;
    margin: 2px 10px !important;
}

/* Sidebar scrollbar */
#sidebar-fusion-wrapper::-webkit-scrollbar { width: 4px !important; }
#sidebar-fusion-wrapper::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.18) !important;
    border-radius: 2px !important;
}

/* ── Top Navbar ─────────────────────────────────────────────── */
/* sidebar.main.init.js dynamically adds navbar-primary and layout-blue
   classes at runtime based on #menu having sidebar-blue class.
   Using html-prefixed selectors guarantees we beat those dynamic additions
   even without relying solely on !important cascade ordering. */
html .navbar.main,
html .navbar.navbar-primary.main,
html.layout-blue .navbar.main,
html.layout-blue .navbar.navbar-primary.main,
html.paceSimple .navbar.main,
html.sidebar.sidebar-fusion .navbar.main {
    background: var(--ridco-surface) !important;
    border-bottom: 1px solid var(--ridco-border) !important;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06) !important;
    /* 88px gives enough room for both the 2-line username toggle AND the
       collapsed-sidebar tagline logo (3:1 aspect, needs ~62px tall to
       make the tagline lines readable at ~10px each). */
    min-height: 88px !important;
    height: 88px !important;
}

html .navbar.navbar-primary.main .navbar-text,
html .navbar.navbar-primary.main .navbar-link,
html .navbar.navbar-primary.main li > a,
html .navbar.navbar-primary.main li > a:hover {
    color: var(--ridco-text) !important;
}

html .navbar.navbar-primary.main .btn-navbar,
html .navbar.navbar-primary.main #btn-navbar {
    background: transparent !important;
    color: var(--ridco-blue) !important;
    border: none !important;
    box-shadow: none !important;
}

/* User info / avatar area in navbar */
.navbar.main .user-action .btn {
    color: var(--ridco-text) !important;
}

/* Username dropdown toggle — dark text on white navbar */
.navbar.main .dropdown.username > a,
.navbar.main .dropdown.username > a span,
.navbar.main .user-action .dropdown-toggle,
.navbar.main .user-action .dropdown-toggle span {
    color: var(--ridco-text) !important;
}

/* Navbar action icon links that have hardcoded inline color:#ffffff
   CSS !important overrides inline styles — make them blue on white navbar */
.navbar.main a[style*="color:#ffffff"],
.navbar.main a[style*="color: #ffffff"] {
    color: var(--ridco-blue) !important;
}

/* Notification bell and badge area */
.navbar.main .notifications a.dropdown-toggle,
.navbar.main .notifications > li > a {
    color: var(--ridco-text) !important;
}

/* ── Page heading bar ───────────────────────────────────────── */
.heading-buttons,
div.heading-buttons {
    background: var(--ridco-surface) !important;
    border-bottom: 1px solid var(--ridco-border) !important;
    padding: 12px 20px !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03) !important;
}

.heading-buttons h4,
.heading-buttons .heading-title {
    font-size: 15px !important;
    font-weight: 600 !important;
    color: var(--ridco-blue) !important;
    margin: 0 !important;
}

/* ── Panels / Cards ─────────────────────────────────────────── */
.panel {
    border: none !important;
    border-radius: var(--ridco-radius) !important;
    box-shadow: var(--ridco-shadow) !important;
    background: var(--ridco-surface) !important;
    margin-bottom: 20px !important;
}

.panel-default > .panel-heading,
.panel-heading {
    background: var(--ridco-surface) !important;
    border-bottom: 1px solid var(--ridco-border) !important;
    border-radius: var(--ridco-radius) var(--ridco-radius) 0 0 !important;
    padding: 14px 20px !important;
    color: var(--ridco-text) !important;
}

.panel-title {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: var(--ridco-text) !important;
}

.panel-body { padding: 20px !important; }

.panel-primary > .panel-heading {
    background: var(--ridco-blue) !important;
    color: #fff !important;
    border-color: var(--ridco-blue) !important;
}

.panel-primary > .panel-heading .panel-title { color: #fff !important; }

/* Well */
.well {
    background: var(--ridco-bg) !important;
    border: 1px solid var(--ridco-border) !important;
    border-radius: var(--ridco-radius-sm) !important;
    box-shadow: none !important;
}

/* ── Tables ─────────────────────────────────────────────────── */
.table > thead > tr > th {
    background: var(--ridco-blue) !important;
    color: #FFFFFF !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    letter-spacing: 0.6px !important;
    text-transform: uppercase !important;
    border: none !important;
    padding: 11px 14px !important;
    white-space: nowrap !important;
}

.table > tbody > tr > td {
    vertical-align: middle !important;
    padding: 10px 14px !important;
    font-size: 13px !important;
    color: var(--ridco-text) !important;
    border-top: 1px solid var(--ridco-border) !important;
}

.table > tbody > tr:first-child > td { border-top: none !important; }

.table-striped > tbody > tr:nth-of-type(odd) {
    background-color: #F7FAFC !important;
}

.table-hover > tbody > tr:hover {
    background-color: #EBF4FF !important;
    cursor: default !important;
}

.table-bordered { border: 1px solid var(--ridco-border) !important; }
.table-bordered > thead > tr > th,
.table-bordered > tbody > tr > td {
    border: 1px solid var(--ridco-border) !important;
}
.table-bordered > thead > tr > th { border-color: var(--ridco-blue) !important; }

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
    border-radius: var(--ridco-radius-sm) !important;
    font-weight: 500 !important;
    font-size: 13px !important;
    padding: 7px 16px !important;
    transition: all 0.18s ease !important;
    box-shadow: none !important;
    border-width: 1px !important;
    letter-spacing: 0.2px !important;
}

.btn-primary {
    background: var(--ridco-blue) !important;
    border-color: var(--ridco-blue) !important;
    color: #fff !important;
}
.btn-primary:hover, .btn-primary:focus {
    background: #0D47A1 !important;
    border-color: #0D47A1 !important;
    box-shadow: 0 3px 10px rgba(21,101,192,0.30) !important;
}

.btn-default {
    background: #fff !important;
    border-color: var(--ridco-border) !important;
    color: var(--ridco-text) !important;
}
.btn-default:hover {
    background: #F7FAFC !important;
    border-color: #CBD5E0 !important;
    color: var(--ridco-text) !important;
}

.btn-success {
    background: #2E7D32 !important; border-color: #2E7D32 !important;
}
.btn-success:hover { background: #1B5E20 !important; border-color: #1B5E20 !important; }

.btn-danger {
    background: #C62828 !important; border-color: #C62828 !important;
}
.btn-danger:hover { background: #B71C1C !important; border-color: #B71C1C !important; }

.btn-warning {
    background: #E65100 !important; border-color: #E65100 !important; color: #fff !important;
}
.btn-warning:hover { background: #BF360C !important; border-color: #BF360C !important; }

.btn-info {
    background: #0277BD !important; border-color: #0277BD !important;
}
.btn-info:hover { background: #01579B !important; border-color: #01579B !important; }

.btn-sm { padding: 5px 12px !important; font-size: 12px !important; }
.btn-xs { padding: 3px 8px !important; font-size: 11px !important; }
.btn-lg { padding: 10px 22px !important; font-size: 14px !important; }

/* ── Forms ──────────────────────────────────────────────────── */
.form-control {
    border: 1px solid var(--ridco-border) !important;
    border-radius: var(--ridco-radius-sm) !important;
    height: 36px !important;
    font-size: 13px !important;
    color: var(--ridco-text) !important;
    background: #fff !important;
    box-shadow: none !important;
    transition: border-color 0.18s ease, box-shadow 0.18s ease !important;
}

.form-control:focus {
    border-color: var(--ridco-blue) !important;
    box-shadow: 0 0 0 3px rgba(21,101,192,0.12) !important;
    outline: none !important;
}

textarea.form-control { height: auto !important; }

label {
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #4A5568 !important;
    letter-spacing: 0.3px !important;
    margin-bottom: 5px !important;
    display: inline-block !important;
}

.control-label { color: #4A5568 !important; font-weight: 600 !important; }

.input-group-addon {
    background: #F7FAFC !important;
    border-color: var(--ridco-border) !important;
    color: var(--ridco-text-muted) !important;
    border-radius: var(--ridco-radius-sm) !important;
}

/* ── Breadcrumb ─────────────────────────────────────────────── */
.breadcrumb {
    background: transparent !important;
    padding: 8px 20px !important;
    border-radius: 0 !important;
    font-size: 12px !important;
    border-bottom: none !important;
    margin-bottom: 0 !important;
}
.breadcrumb > li > a { color: var(--ridco-blue) !important; }
.breadcrumb > li + li::before { color: var(--ridco-text-faint) !important; }
.breadcrumb > .active { color: var(--ridco-text) !important; font-weight: 600 !important; }

/* ── Badges & Labels ────────────────────────────────────────── */
.label, .badge {
    border-radius: 5px !important;
    font-weight: 500 !important;
    font-size: 11px !important;
    padding: 3px 8px !important;
    letter-spacing: 0.2px !important;
}
.label-primary, .badge-primary { background: var(--ridco-blue) !important; }
.label-success, .badge-success { background: #2E7D32 !important; }
.label-warning, .badge-warning { background: #E65100 !important; color: #fff !important; }
.label-danger,  .badge-danger  { background: #C62828 !important; }
.label-info,    .badge-info    { background: #0277BD !important; }
.label-default, .badge-default {
    background: #EDF2F7 !important; color: var(--ridco-text) !important;
}

/* ── Modals ─────────────────────────────────────────────────── */
.modal-content {
    border-radius: var(--ridco-radius) !important;
    border: none !important;
    box-shadow: 0 20px 60px rgba(0,0,0,0.18) !important;
}
.modal-header {
    background: var(--ridco-blue) !important;
    color: #fff !important;
    border-radius: var(--ridco-radius) var(--ridco-radius) 0 0 !important;
    padding: 14px 20px !important;
    border-bottom: none !important;
}
.modal-header .modal-title { color: #fff !important; font-weight: 600 !important; font-size: 15px !important; }
.modal-header .close { color: rgba(255,255,255,0.8) !important; opacity: 1 !important; text-shadow: none !important; }
.modal-header .close:hover { color: #fff !important; }
.modal-footer {
    border-top: 1px solid var(--ridco-border) !important;
    padding: 12px 20px !important;
    background: #F7FAFC !important;
    border-radius: 0 0 var(--ridco-radius) var(--ridco-radius) !important;
}

/* ── Tabs ───────────────────────────────────────────────────── */
.nav-tabs > li > a {
    border-radius: var(--ridco-radius-sm) var(--ridco-radius-sm) 0 0 !important;
    color: var(--ridco-text-muted) !important;
    font-weight: 500 !important;
    font-size: 13px !important;
    border: 1px solid transparent !important;
    padding: 9px 16px !important;
}
.nav-tabs > li > a:hover {
    background: #F7FAFC !important;
    border-color: var(--ridco-border) !important;
    color: var(--ridco-text) !important;
}
.nav-tabs > li.active > a,
.nav-tabs > li.active > a:focus,
.nav-tabs > li.active > a:hover {
    background: #fff !important;
    border-color: var(--ridco-border) !important;
    border-bottom-color: transparent !important;
    color: var(--ridco-blue) !important;
    font-weight: 600 !important;
}
.tab-content { background: #fff; border: 1px solid var(--ridco-border); border-top: none; border-radius: 0 0 var(--ridco-radius-sm) var(--ridco-radius-sm); padding: 16px 20px; }

/* ── Alerts ─────────────────────────────────────────────────── */
.alert {
    border-radius: var(--ridco-radius-sm) !important;
    border-left-width: 4px !important;
    font-size: 13px !important;
    padding: 12px 16px !important;
}
.alert-info    { border-left-color: #0277BD !important; background: #E3F2FD !important; color: #01579B !important; border-color: #BBDEFB !important; }
.alert-success { border-left-color: #2E7D32 !important; background: #E8F5E9 !important; color: #1B5E20 !important; border-color: #C8E6C9 !important; }
.alert-warning { border-left-color: #E65100 !important; background: #FFF3E0 !important; color: #BF360C !important; border-color: #FFE0B2 !important; }
.alert-danger  { border-left-color: #C62828 !important; background: #FFEBEE !important; color: #B71C1C !important; border-color: #FFCDD2 !important; }

/* ── Pagination ─────────────────────────────────────────────── */
.pagination > li > a,
.pagination > li > span {
    color: var(--ridco-blue) !important;
    border-color: var(--ridco-border) !important;
    border-radius: var(--ridco-radius-sm) !important;
    margin: 0 2px !important;
    font-size: 13px !important;
    padding: 6px 12px !important;
}
.pagination > li.active > a,
.pagination > li.active > span {
    background: var(--ridco-blue) !important;
    border-color: var(--ridco-blue) !important;
    color: #fff !important;
}
.pagination > li > a:hover {
    background: #EBF4FF !important;
    border-color: var(--ridco-blue) !important;
    color: var(--ridco-blue) !important;
}

/* ── Dropdown menus ─────────────────────────────────────────── */
.dropdown-menu {
    border-radius: var(--ridco-radius-sm) !important;
    border: 1px solid var(--ridco-border) !important;
    box-shadow: var(--ridco-shadow-md) !important;
    padding: 6px 0 !important;
    font-size: 13px !important;
}
.dropdown-menu > li > a {
    padding: 8px 16px !important;
    color: var(--ridco-text) !important;
    font-weight: 400 !important;
}
.dropdown-menu > li > a:hover {
    background: #EBF4FF !important;
    color: var(--ridco-blue) !important;
}
.dropdown-menu > li.active > a {
    background: var(--ridco-blue) !important;
    color: #fff !important;
}

/* ── Select2 (if used) ──────────────────────────────────────── */
.select2-container .select2-selection--single,
.select2-container .select2-selection--multiple {
    border: 1px solid var(--ridco-border) !important;
    border-radius: var(--ridco-radius-sm) !important;
    height: 36px !important;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 34px !important;
    color: var(--ridco-text) !important;
    font-size: 13px !important;
}
.select2-dropdown {
    border-color: var(--ridco-border) !important;
    border-radius: var(--ridco-radius-sm) !important;
    box-shadow: var(--ridco-shadow-md) !important;
}

/* ── Scrollbar (Webkit) ─────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--ridco-bg); }
::-webkit-scrollbar-thumb { background: #CBD5E0; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #A0AEC0; }

/* ================================================================
   RIDCO Dashboard — Custom Components (IndexRIDCO.cshtml)
   ================================================================ */

.ridco-dashboard { padding: 24px; }

/* Welcome Banner */
.ridco-welcome-bar {
    background: linear-gradient(135deg, var(--ridco-navy) 0%, var(--ridco-blue-light) 100%);
    border-radius: var(--ridco-radius);
    padding: 22px 28px;
    color: #fff;
    margin-bottom: 24px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    box-shadow: 0 4px 20px rgba(13,43,94,0.25);
}
.ridco-welcome-bar h2 {
    font-size: 20px !important;
    font-weight: 700 !important;
    margin: 0 0 4px !important;
    color: #fff !important;
}
.ridco-welcome-bar p {
    font-size: 13px !important;
    color: rgba(255,255,255,0.78) !important;
    margin: 0 !important;
}
.ridco-date-badge {
    background: rgba(255,255,255,0.14);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255,255,255,0.92);
    white-space: nowrap;
    border: 1px solid rgba(255,255,255,0.18);
}
.ridco-date-badge i { margin-right: 6px; }

/* KPI Stat Cards */
.ridco-stat-card {
    background: var(--ridco-surface);
    border-radius: var(--ridco-radius);
    padding: 22px 20px;
    box-shadow: var(--ridco-shadow);
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid var(--ridco-border);
    height: 100%;
}
.ridco-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--ridco-shadow-md);
}
.ridco-stat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 4px;
}
.ridco-stat-card.blue::before   { background: var(--ridco-blue); }
.ridco-stat-card.green::before  { background: #2E7D32; }
.ridco-stat-card.orange::before { background: #E65100; }
.ridco-stat-card.purple::before { background: #6A1B9A; }

.ridco-stat-icon {
    width: 46px; height: 46px;
    border-radius: 12px;
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 14px;
}
.ridco-stat-icon.blue   { background: #EBF4FF; color: var(--ridco-blue); }
.ridco-stat-icon.green  { background: #E8F5E9; color: #2E7D32; }
.ridco-stat-icon.orange { background: #FFF3E0; color: #E65100; }
.ridco-stat-icon.purple { background: #F3E5F5; color: #6A1B9A; }

.ridco-stat-value {
    font-size: 30px !important;
    font-weight: 700 !important;
    color: #1A202C !important;
    line-height: 1 !important;
    margin-bottom: 4px !important;
    letter-spacing: -0.5px !important;
}
.ridco-stat-label {
    font-size: 13px !important;
    color: var(--ridco-text-muted) !important;
    font-weight: 500 !important;
    margin: 0 !important;
}
.ridco-stat-sub {
    font-size: 11px !important;
    color: var(--ridco-text-faint) !important;
    margin-top: 8px !important;
}

/* Section title */
.ridco-section-title {
    font-size: 11px !important;
    font-weight: 700 !important;
    color: var(--ridco-text-faint) !important;
    letter-spacing: 1.2px !important;
    text-transform: uppercase !important;
    margin: 0 0 12px !important;
}

/* Quick Action Buttons */
.ridco-action-grid {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}
.ridco-quick-action {
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    background: var(--ridco-surface);
    border: 1px solid var(--ridco-border);
    border-radius: 10px;
    color: var(--ridco-text);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none !important;
    -webkit-transition: all 0.18s ease;
    transition: all 0.18s ease;
    cursor: pointer;
    white-space: nowrap;
}
.ridco-quick-action:hover {
    background: #EBF4FF;
    border-color: var(--ridco-blue);
    color: var(--ridco-blue) !important;
    -webkit-transform: translateY(-1px);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(21,101,192,0.12);
    text-decoration: none !important;
}
.ridco-qa-icon {
    width: 34px; height: 34px;
    border-radius: 8px;
    background: #EBF4FF;
    color: var(--ridco-blue);
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    font-size: 15px;
    -ms-flex-negative: 0;
    flex-shrink: 0;
}

/* Skeleton loading shimmer */
.ridco-skeleton {
    display: inline-block;
    width: 60px; height: 30px;
    background: linear-gradient(90deg, #EDF2F7 25%, #E2E8F0 50%, #EDF2F7 75%);
    background-size: 200% 100%;
    -webkit-animation: ridco-shimmer 1.4s infinite;
    animation: ridco-shimmer 1.4s infinite;
    border-radius: 4px;
    vertical-align: middle;
}
@-webkit-keyframes ridco-shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
@keyframes ridco-shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ── Legacy widget-head bg-primary section headers ───────────
   Several LDM forms (Land Allotment Plan, Auction config, etc.) use
   hardcoded inline markup like:
     <div class="widget-head bg-primary innerLR" style="opacity:0.7;">
       <h3 class="heading text-white">Plan Detail</h3>
     </div>
   The `bg-primary` class resolves to the original orange/red RIICO
   accent which clashes with the RIDCO blue theme.  Re-skin these
   headers for RIDCO without touching the shared markup. */
html .widget-head.bg-primary,
html .widget-head.bg-primary.innerLR,
.app .widget-head.bg-primary {
    background: var(--ridco-navy) !important;
    opacity: 1 !important;
    border-radius: var(--ridco-radius-sm) !important;
    padding: 10px 16px !important;
    margin-bottom: 14px !important;
    box-shadow: 0 1px 3px rgba(27,58,120,0.08) !important;
}
html .widget-head.bg-primary > h3,
html .widget-head.bg-primary > h3.heading,
html .widget-head.bg-primary > h3.text-white,
html .widget-head.bg-primary > h4,
html .widget-head.bg-primary > h4.heading {
    color: #FFFFFF !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    margin: 0 !important;
    padding: 0 !important;
    height: auto !important;
    line-height: 1.4 !important;
    letter-spacing: 0.2px !important;
}
/* Section panels that the widget-head sits above — give them a clean
   light-grey body so they don't look like floating bars. */
html .widget-head.bg-primary + div,
html .widget-head.bg-primary + .innerAll,
html .widget-head.bg-primary + .form-horizontal {
    background: #FFFFFF !important;
    border: 1px solid var(--ridco-border) !important;
    border-top: none !important;
    border-radius: 0 0 var(--ridco-radius-sm) var(--ridco-radius-sm) !important;
    padding: 14px !important;
}

/* ── Tab navigation (Land Allotment Plan / Property Details) ───
   The tab strip on these legacy LDM forms uses orange active state
   from the admin theme.  Recolour to RIDCO navy/blue. */
html .nav-tabs > li.active > a,
html .nav-tabs > li.active > a:hover,
html .nav-tabs > li.active > a:focus {
    background: var(--ridco-blue) !important;
    color: #FFFFFF !important;
    border-color: var(--ridco-blue) !important;
}
html .nav-tabs > li > a {
    color: var(--ridco-text) !important;
    font-weight: 500 !important;
}
html .nav-tabs > li > a:hover {
    background: #EBF4FF !important;
    color: var(--ridco-blue) !important;
}

/* ── Module Container Tiles ─────────────────────────────────── */
/* _moduleListContainer.cshtml always renders inside #MainBody on every
   inner page via _Layout.cshtml.  Hidden for RIDCO because the right
   sidebar already provides module navigation, and the tile grid clutters
   the page with a white background.  Non-RIDCO users are unaffected
   since this file is only loaded when UserSession.OrgCode == "RIDCO". */
#menuShow {
    display: none !important;
}

/* ── Notification Bell (hide for RIDCO) ─────────────────────── */
/* RIDCO has no notifications facility yet — the bell + count badge in
   the navbar (.notifications > li.dropdown.notif containing #notificationList)
   is hidden.  The Home / Help / Help Desk icons live in a SEPARATE
   <ul class="notifications"> further along, so we target only the FIRST
   such <ul> (the one whose first <li> contains #notificationList). */
.navbar.main ul.notifications:has(#notificationList) {
    display: none !important;
}
/* Fallback for browsers without :has() — hide the specific li directly. */
.navbar.main ul.notifications > li.dropdown.notif:has(#notificationList) {
    display: none !important;
}

/* ── Username Dropdown — fix overlap on hover ───────────────── */
/* The base admin theme places a coloured ::after pointer triangle on
   .navbar .dropdown.username .dropdown-menu using @primaryColor; on the
   RIDCO white navbar this looks like the dropdown is bleeding into the
   username text.  Also fix the dropdown's top offset so it doesn't
   visually collide with the username row. */
.navbar.main .dropdown.username .dropdown-menu,
.navbar.main .dropdown.username.hidden-xs .dropdown-menu {
    top: 52px !important;
    margin-top: 4px !important;
    border-radius: var(--ridco-radius-sm) !important;
    border: 1px solid var(--ridco-border) !important;
    box-shadow: var(--ridco-shadow-md) !important;
    min-width: 220px !important;
}
.navbar.main .dropdown.username .dropdown-menu::after,
.navbar.main .dropdown.username .dropdown-menu::before {
    display: none !important;
    content: none !important;
    border: none !important;
}

/* Dropdown items — clean spacing, proper icon alignment */
.navbar.main .dropdown.username .dropdown-menu > li {
    border-bottom: 1px solid #F0F4F8 !important;
}
.navbar.main .dropdown.username .dropdown-menu > li:last-child {
    border-bottom: none !important;
}
.navbar.main .dropdown.username .dropdown-menu > li > a {
    padding: 9px 14px 9px 38px !important;
    color: var(--ridco-text) !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    line-height: 18px !important;
    position: relative !important;
}
.navbar.main .dropdown.username .dropdown-menu > li > a:hover {
    background: #EBF4FF !important;
    color: var(--ridco-blue) !important;
}
/* Glyphicon icon inside dropdown items — proper positioning */
.navbar.main .dropdown.username .dropdown-menu > li > a.glyphicons {
    padding-left: 38px !important;
}
.navbar.main .dropdown.username .dropdown-menu > li > a.glyphicons > i:before {
    color: var(--ridco-text-faint) !important;
    font-size: 14px !important;
    top: 11px !important;
    left: 14px !important;
}
.navbar.main .dropdown.username .dropdown-menu > li > a.glyphicons:hover > i:before {
    color: var(--ridco-blue) !important;
}

/* Username toggle — 2-line content (name + [unit,year]) + caret.
   With navbar = 88px and line-height 1.3 (~16px), 2 lines = ~32px.
   ~20px breathing room above and below centres cleanly via flex. */
.navbar.main .dropdown.username > a.dropdown-toggle {
    padding: 6px 14px !important;
    line-height: 1.3 !important;
    display: flex !important;
    align-items: center !important;
    height: 88px !important;
    box-sizing: border-box !important;
}
.navbar.main .dropdown.username.pull-left {
    padding-top: 0 !important;
    height: 88px !important;
}
.navbar.main .dropdown.username > a.dropdown-toggle:hover,
.navbar.main .dropdown.username > a.dropdown-toggle:focus,
.navbar.main .dropdown.username.open > a.dropdown-toggle {
    background: #F7FAFC !important;
    color: var(--ridco-text) !important;
    text-decoration: none !important;
}
.navbar.main .user-action {
    height: 88px !important;
    padding: 0 !important;
}
.navbar.main ul.notifications,
.navbar.main ul.notifications > li {
    height: 88px !important;
}
.navbar.main ul.notifications > li > a {
    height: 88px !important;
    line-height: 88px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* ── RIDCO Logo: Sidebar brand area (top-left, like RIICO) ──── */
/* The shared layouts render <img src="@UserSession.NavigationLogo">
   for ALL orgs inside #brandWrapper.  For RIDCO we replace that <img>'s
   source via CSS so the shared layouts stay untouched.

   DOM structure inside #brandWrapper:
     #brandWrapper                   <- dark navy background, ~260px wide
       └─ <div> (inline: width:110px white box, height:59px)
            └─ <a class="logo"> (inline: width:65px)
                 └─ <img src=...>   <- the logo image

   Three levels of inline styles need overriding to let the wordmark
   breathe properly. Path resolution: ridco-theme.css lives at
   /Content/css/ so "../Images/ridco-logo.png" -> /Content/Images/...  */

/* Sidebar brand area now uses the TAGLINE variant (icon + RIDCO +
   "Rajasthan Industrial Corridors…").  The sidebar is the more permanent
   surface so giving it the descriptive lockup makes the brand explicit;
   the navbar gets the compact mark to reclaim horizontal space at the top. */
#menu #brandWrapper a.logo > img {
    content: url("../Images/ridco-logo-tagline.png") !important;
    width: 100% !important;
    height: auto !important;
    max-height: 70px !important;
    object-fit: contain !important;
    display: block !important;
}
/* Override inline width:65px on the anchor — make room for the wider lockup */
#menu #brandWrapper a.logo {
    width: 215px !important;
    height: 70px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
}
/* Taller white container so the 3-row tagline ("Rajasthan Industrial /
   Corridors Development / Corporation Limited") is legible. */
#menu #brandWrapper > div:first-child {
    width: 240px !important;
    height: 80px !important;
    padding: 5px 10px !important;
    margin-left: -15px !important;
    margin-right: 0 !important;
    background: #FFFFFF !important;
    display: flex !important;
    align-items: center !important;
    box-sizing: border-box !important;
}
/* Make the dark portion of #brandWrapper match the sidebar navy so the
   gap on the right of the white logo box doesn't read as a "bar". */
#menu #brandWrapper {
    background: var(--ridco-navy) !important;
    min-height: 59px !important;
}
/* The duplicate <span> rendering @UserSession.OrgCode after the logo —
   our PNG already contains the "RIDCO" wordmark, so the standalone text
   collides with the logo.  Hide it for RIDCO users only (this stylesheet
   is loaded only when UserSession.OrgCode == "RIDCO"). */
#menu #brandWrapper > span[title] {
    display: none !important;
}

/* ── Collapsed-sidebar logo (#divHiddenLogo) ──────────────────
   Now uses the COMPACT variant (icon + "RIDCO" wordmark only, no
   tagline) — the tagline lives in the sidebar brand box instead.
   This keeps the top bar slim so the home/help/monitor icons and the
   username area on the right have plenty of breathing room. */
#divHiddenLogo a.logo > img {
    content: url("../Images/ridco-logo.png") !important;
    height: 48px !important;
    width: auto !important;
    max-width: 100% !important;
    object-fit: contain !important;
    display: block !important;
}
#divHiddenLogo a.logo {
    width: auto !important;
    height: 48px !important;
    display: flex !important;
    align-items: center !important;
}
/* Hide the duplicate OrgCode text inside the collapsed-sidebar logo box */
#divHiddenLogo > span {
    display: none !important;
}
/* Slim container — the compact logo at 48px tall is ~168px wide,
   so the container can be tight while still giving the logo breathing
   room.  This reclaims a lot of horizontal space for the rest of the
   navbar. */
#divHiddenLogo {
    width: 190px !important;
    height: 88px !important;
    padding: 4px 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    box-sizing: border-box !important;
}
/* The outer col-md-3 wrapper around #divHiddenLogo — tight minimum
   matching the slim compact logo. */
.navbar.main .col-md-3:has(#divHiddenLogo) {
    width: auto !important;
    min-width: 200px !important;
    max-width: 22% !important;
    padding: 0 !important;
}

/* ── Welcome Banner: layout for logo + text ─────────────────── */
.ridco-welcome-bar .ridco-welcome-left {
    display: flex;
    align-items: center;
    gap: 18px;
    flex: 1;
    min-width: 0;
}
.ridco-welcome-bar .ridco-brand-mark {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 88px;
    height: 88px;
    background: #FFFFFF;
    border-radius: 12px;
    padding: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.ridco-welcome-bar .ridco-brand-mark img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

/* ── Content tabs (wizard/tabsbar) — replace RIICO orange active with RIDCO navy ── */
.tabsbar li.active,
.tabsbar-2 li.active,
.tabsbar ul li.active,
.tabsbar li.active > a,
.tabsbar-2 li.active > a,
.tabsbar li.glyphicons.active,
.tabsbar li.glyphicons.active > a {
    background: var(--ridco-navy) !important;
    border-color: var(--ridco-navy) !important;
    color: #ffffff !important;
}
.tabsbar li.active > a,
.tabsbar li.active > a *,
.tabsbar li.glyphicons.active > a,
.tabsbar li.glyphicons.active > a * {
    color: #ffffff !important;
}
