/* Field theme: quiet, high-contrast, and easy to scan outdoors. */
.theme-field {
    --field-ink: #18283b;
    --field-navy: #122236;
    --field-navy-dark: #0b1727;
    --field-muted: #647386;
    --field-line: #e4e9ee;
    --field-canvas: #f7f9fb;
    --field-card: #ffffff;
    --field-amber: #d97722;
    --field-teal: #177b80;
    background: var(--field-canvas);
    color: var(--field-ink) !important;
    font-family: "Montserrat", "Segoe UI", sans-serif;
    font-size: 13px;
}

.theme-field #main-wrapper,
.theme-field #content-wrapper,
.theme-field .container-fluid {
    background: transparent;
}

.theme-field #main-wrapper {
    padding-left: 0 !important;
}

.theme-field #main-navbar {
    background: var(--field-card);
    border-bottom: 1px solid var(--field-line);
    box-shadow: 0 2px 12px rgba(18, 34, 54, .06);
    height: 52px;
    min-height: 52px;
}

.theme-field #main-navbar h4 {
    color: var(--field-ink);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .04em;
    margin-top: 15px;
    text-transform: none;
}

.theme-field #main-navbar .main-navbar-collapse > div > h4 {
    display: block;
    line-height: 52px;
    margin: 0;
}

.theme-field #main-navbar .navbar-brand,
.theme-field #main-navbar .navbar-nav > li > a,
.theme-field #main-navbar .user-menu {
    color: var(--field-ink);
}

.theme-field #main-navbar .navbar-brand:hover,
.theme-field #main-navbar .navbar-nav > li > a:hover {
    color: var(--field-amber);
}

.theme-field #main-navbar .navbar-header .navbar-brand {
    color: var(--field-amber);
    white-space: nowrap;
}

.theme-field #main-menu,
.theme-field #main-menu-bg {
    background: var(--field-navy);
}

.theme-field #main-menu,
.theme-field #main-menu-bg {
    height: calc(100% - 52px);
    left: 0 !important;
    top: 52px;
    width: 240px !important;
}

.theme-field #main-menu {
    box-shadow: 3px 0 16px rgba(11, 23, 39, .10);
}

.theme-field #main-menu .navigation {
    padding-top: 0;
}

.theme-field #main-menu .menu-content.top {
    border-bottom: 1px solid rgba(255, 255, 255, .12);
    margin-bottom: 0;
    padding-top: 20px;
    padding-bottom: 20px;
}

.theme-field #main-menu .text-bg,
.theme-field #main-menu .text-bg .text-slim,
.theme-field #main-menu .text-bg .text-semibold {
    color: #f4f7fa;
}

.theme-field #main-menu .navigation > li > a,
.theme-field #main-menu .mm-dropdown > a {
    color: #dce5ed;
    min-height: 44px;
    padding-bottom: 12px;
    padding-top: 12px;
    transition: background-color .15s ease, color .15s ease;
}

.theme-field #main-menu .navigation > li > a:hover,
.theme-field #main-menu .navigation > li.active > a,
.theme-field #main-menu .mm-dropdown.open > a {
    background: rgba(255, 255, 255, .08);
    color: #fff;
}

.theme-field #main-menu .navigation > li.active > a {
    border-left: 3px solid var(--field-amber);
    padding-left: 17px;
}

.theme-field #main-menu .menu-icon {
    color: #9fb4c4;
}

.theme-field #main-menu .navigation > li > a:hover .menu-icon,
.theme-field #main-menu .navigation > li.active > a .menu-icon {
    color: #f0a35f;
}

#content-wrapper {
    padding-top: 46px !important;
}

.inventory-catalog {
    background: #f4f7f9;
    color: #183247;
    min-height: 100vh;
}

.inventory-catalog-header {
    align-items: center;
    background: #102b40;
    color: #fff;
    display: flex;
    justify-content: space-between;
    min-height: 64px;
    padding: 0 7%;
}

.inventory-catalog-brand {
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: .02em;
}

.inventory-catalog-brand span,
.inventory-eyebrow {
    color: #e3a93b;
}

.inventory-catalog-tagline {
    color: #b9cbd6;
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.inventory-catalog-content {
    margin: 0 auto;
    max-width: 1280px;
    padding: 48px 24px 72px;
}

.inventory-catalog-intro {
    align-items: end;
    display: flex;
    justify-content: space-between;
    margin-bottom: 28px;
}

.inventory-catalog-intro h1 {
    font-size: 34px;
    font-weight: 700;
    margin: 7px 0;
}

.inventory-catalog-intro p {
    color: #647b89;
    margin: 0;
}

.inventory-eyebrow {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.inventory-catalog-search {
    background: #fff;
    border: 1px solid #dce5ea;
    box-shadow: 0 5px 18px rgba(16,43,64,.06);
    display: flex;
    gap: 10px;
    margin-bottom: 32px;
    padding: 12px;
}

.inventory-catalog-search .form-control {
    border: 0;
    box-shadow: none;
    flex: 1;
    height: 44px;
}

.inventory-catalog-message {
    color: #647b89;
    padding: 32px;
    text-align: center;
}

.inventory-catalog-grid {
    display: grid;
    gap: 22px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.inventory-product-card {
    background: #fff;
    border: 1px solid #dce5ea;
    box-shadow: 0 6px 20px rgba(16,43,64,.06);
    display: flex;
    flex-direction: column;
    min-height: 390px;
}

.inventory-product-image {
    align-items: center;
    background: #edf3f6;
    color: #8ca3af;
    display: flex;
    height: 190px;
    justify-content: center;
    overflow: hidden;
}

.inventory-product-image img {
    height: 100%;
    object-fit: contain;
    width: 100%;
}

.inventory-product-image i {
    font-size: 46px;
}

.inventory-product-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 20px;
}

.inventory-product-type {
    color: #e09f2f;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.inventory-product-body h2 {
    font-size: 20px;
    margin: 7px 0 10px;
}

.inventory-product-meta {
    color: #607987;
    display: flex;
    font-size: 12px;
    gap: 14px;
}

.inventory-product-body p {
    color: #647b89;
    font-size: 13px;
    line-height: 1.5;
    margin: 16px 0;
}

.inventory-product-footer {
    border-top: 1px solid #e8eef1;
    display: flex;
    font-size: 12px;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 14px;
}

.inventory-product-footer strong {
    color: #1a7b73;
}

@media (max-width: 600px) {
    .inventory-catalog-header,
    .inventory-catalog-intro {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
    }

    .inventory-catalog-content {
        padding: 30px 16px 50px;
    }

    .inventory-catalog-search {
        flex-direction: column;
    }
}

.theme-field #content-wrapper {
    left: 0 !important;
    min-height: 100vh;
    margin-left: 240px;
    padding-top: 52px !important;
    width: calc(100% - 240px);
}

/* The status strip belongs to the view shell, not the padded page content. */
#content-wrapper > .offline-status-shell {
    margin-left: -18px;
    margin-right: -18px;
    margin-bottom: 18px;
    padding: 0 !important;
}

#content-wrapper > .offline-status-shell > .offline-status-bar {
    display: flex;
    min-height: 64px;
    padding: 10px 28px;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px 24px;
    border: 1px solid;
    border-left: 0;
    border-radius: 0;
    border-right: 0;
    margin: 0 !important;
    transition: background-color .2s ease, border-color .2s ease;
}

#content-wrapper > .offline-status-shell > .offline-status-bar.is-online {
    background: #f3f4f5;
    border-top-color: #e5e8ea;
    border-bottom-color: #e5e8ea;
    color: #405466;
}

#content-wrapper > .offline-status-shell > .offline-status-bar.is-offline {
    background: #fcebec;
    border-color: #efb1b6;
    color: #9b2530;
}

.offline-status-overview {
    display: flex;
    min-width: 235px;
    align-items: center;
    gap: 12px;
}

.offline-status-icon {
    display: inline-flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    flex: 0 0 40px;
    border-radius: 50%;
    color: #fff;
    font-size: 19px;
    box-shadow: 0 2px 6px rgba(30, 55, 70, .16);
}

.is-online .offline-status-icon {
    background: #187ca3;
}

.is-offline .offline-status-icon {
    background: #c43d49;
}

.offline-status-copy {
    display: flex;
    flex-direction: column;
}

.offline-status-copy strong {
    font-size: 15px;
    line-height: 1.25;
}

.offline-status-copy small {
    margin-top: 2px;
    color: inherit;
    opacity: .8;
}

.offline-status-details {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 16px;
    font-size: 12px;
}

.offline-status-details i {
    margin-right: 4px;
}

.offline-status-actions {
    display: inline-flex;
    margin-left: auto;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px;
}

.offline-sync-message {
    line-height: 30px;
}

.offline-auto-confirm {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

.offline-sync-button {
    margin: 0;
    background: #187ca3;
    border-color: #146b8c;
    color: #fff;
}

.offline-sync-button:hover,
.offline-sync-button:focus {
    background: #146b8c;
    border-color: #105a76;
    color: #fff;
}

@media (max-width: 767px) {
    #content-wrapper > .offline-status-shell > .offline-status-bar {
        padding: 12px 16px;
        gap: 10px;
    }

    .offline-status-overview,
    .offline-status-details,
    .offline-status-actions {
        width: 100%;
    }

    .offline-status-actions {
        margin-left: 0;
        justify-content: flex-start;
    }
}

.dashboard-date-time .title {
    font-size: 16px;
    line-height: 1.2;
    white-space: nowrap;
}

.theme-default .dashboard-kpi-row > [class*="col-"] {
    display: flex;
}

.theme-default .dashboard-kpi-row > [class*="col-"] rd-widget {
    display: block !important;
    width: 100% !important;
}

.theme-default .dashboard-kpi-row > [class*="col-"] rd-widget-body,
.theme-default .dashboard-kpi-row > [class*="col-"] .widget,
.theme-default .dashboard-kpi-row > [class*="col-"] .widget-body,
.theme-default .dashboard-kpi-row > [class*="col-"] .widget-content {
    box-sizing: border-box;
    height: 100px !important;
    min-height: 100px !important;
    width: 100% !important;
}

.dashboard-summary-column,
.dashboard-summary-column .dashboard-kpi-row,
.dashboard-summary-column .dashboard-kpi-row > [class*="col-"] {
    display: flex;
    flex-direction: column;
}

.dashboard-kpi-stack,
.dashboard-summary-column,
.dashboard-map-column {
    display: flex;
    flex-direction: column;
}

.dashboard-kpi-stack .dashboard-kpi-row,
.dashboard-summary-column .dashboard-kpi-row {
    display: flex;
    flex: 0 0 100px;
    height: 100px;
    margin-bottom: 16px;
    min-height: 100px;
    width: 100%;
}

.dashboard-kpi-stack .dashboard-kpi-row rd-widget,
.dashboard-summary-column .dashboard-kpi-row rd-widget {
    display: block;
    height: 100px;
    min-height: 100px;
    width: 100%;
}

.dashboard-kpi-stack .dashboard-kpi-row rd-widget-body,
.dashboard-summary-column .dashboard-kpi-row rd-widget-body {
    box-sizing: border-box;
    height: 100% !important;
    min-height: 100px !important;
}

.dashboard-kpi-stack .dashboard-kpi-row rd-widget,
.dashboard-kpi-stack .dashboard-kpi-row rd-widget .widget,
.dashboard-kpi-stack .dashboard-kpi-row rd-widget .widget-body,
.dashboard-kpi-stack .dashboard-kpi-row rd-widget .widget-content,
.dashboard-summary-column .dashboard-kpi-row rd-widget,
.dashboard-summary-column .dashboard-kpi-row rd-widget .widget,
.dashboard-summary-column .dashboard-kpi-row rd-widget .widget-body,
.dashboard-summary-column .dashboard-kpi-row rd-widget .widget-content {
    box-sizing: border-box;
    height: 100% !important;
    min-height: 100% !important;
}

.dashboard-kpi-stack .dashboard-kpi-row .widget-content,
.dashboard-summary-column .dashboard-kpi-row .widget-content {
    align-items: center;
    display: flex;
    min-width: 0;
}

.dashboard-kpi-stack .dashboard-kpi-row .widget-icon,
.dashboard-summary-column .dashboard-kpi-row .widget-icon {
    flex: 0 0 65px;
    float: none !important;
    margin-right: 15px;
}

.dashboard-kpi-stack .dashboard-kpi-row .kpi-copy,
.dashboard-summary-column .dashboard-kpi-row .kpi-copy {
    flex: 1 1 auto;
    min-width: 0;
}

.dashboard-kpi-stack .dashboard-kpi-row:last-child,
.dashboard-summary-column .dashboard-kpi-row:last-of-type {
    margin-bottom: 0;
}

.dashboard-map-column .panel {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    height: 448px;
    min-height: 448px;
    width: 100%;
}

.dashboard-map-column .panel-body {
    flex: 1;
}

.dashboard-map-column .panel-body,
.dashboard-map-column .panel-body > .panel-padding,
.dashboard-map-column #sample {
    height: 100% !important;
}

.dashboard-summary-column .dashboard-kpi-row > [class*="col-"] {
    width: 100%;
}

.dashboard-summary-column rd-widget,
.dashboard-summary-column rd-widget-body {
    width: 100%;
}

.dashboard-revenue-panel {
    box-sizing: border-box;
    height: 216px;
    margin-top: 0;
    min-height: 216px;
}

.dashboard-revenue-chart {
    box-sizing: border-box;
    height: calc(100% - 39px);
    padding: 10px 14px 4px;
    position: relative;
}

.dashboard-revenue-chart svg {
    display: block;
    height: 100%;
    overflow: visible;
    width: 100%;
}

.revenue-grid-line {
    stroke: #e3e8ed;
    stroke-width: 1;
}

.revenue-area {
    fill: rgba(32, 124, 181, .12);
}

.revenue-line {
    fill: none;
    stroke: #207cb5;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 3;
}

.revenue-point {
    fill: #fff;
    stroke: #207cb5;
    stroke-width: 3;
}

.revenue-label {
    fill: #71808d;
    font-size: 11px;
    text-anchor: middle;
}

.theme-field #content-wrapper > .container-fluid {
    padding-left: 28px;
    padding-right: 28px;
}

.theme-field .dashboard-top-layout {
    align-items: flex-start;
    display: flex;
    flex-wrap: wrap;
}

.theme-field .dashboard-kpi-column,
.theme-field .dashboard-map-column {
    display: flex;
    flex-direction: column;
}

.theme-field .dashboard-kpi-column {
    padding-right: 8px;
}

.theme-field .dashboard-map-column {
    padding-left: 8px;
}

.dashboard-resources-column > uib-accordion {
    display: block;
    width: 100%;
}

.agent-location-search-action {
    padding-top: 25px;
}

.agent-location-search-action .btn {
    width: 100%;
    white-space: nowrap;
}

.agent-location-map {
    min-height: 560px;
    width: 100%;
}

.theme-field .agent-location-map {
    min-height: 560px;
}

.theme-field .dashboard-kpi-column .dashboard-kpi-row > [class*="col-"] {
    width: 50%;
}

.theme-field .dashboard-map-column .panel {
    width: 100%;
}

.theme-field .dashboard-summary-column {
    padding-left: 8px;
}

.theme-field .dashboard-summary-column .dashboard-summary-kpis {
    gap: 10px;
}

.theme-field .dashboard-summary-column .dashboard-summary-kpis > [class*="col-"] {
    padding-left: 0;
    padding-right: 0;
}

.theme-field .dashboard-revenue-panel {
    border-left: 0 !important;
    border-right: 0 !important;
    margin-top: 10px;
    height: 268px;
    min-height: 268px;
}

.theme-field .dashboard-revenue-panel .panel-heading {
    padding: 12px 16px;
}

.theme-field .dashboard-revenue-chart {
    height: calc(100% - 55px);
}

.theme-field .dashboard-kpi-stack .dashboard-kpi-row rd-widget,
.theme-field .dashboard-summary-column .dashboard-kpi-row rd-widget {
    height: 126px;
    min-height: 126px;
}

.theme-field .dashboard-kpi-stack .dashboard-kpi-row,
.theme-field .dashboard-summary-column .dashboard-kpi-row {
    flex-basis: 126px;
    height: 126px;
    min-height: 126px;
}

.theme-field .dashboard-kpi-stack .dashboard-kpi-row rd-widget-body,
.theme-field .dashboard-summary-column .dashboard-kpi-row rd-widget-body {
    min-height: 126px;
}

.theme-field .dashboard-map-column .panel {
    height: 552px;
    min-height: 552px;
}

.theme-field .breadcrumb-page {
    background: transparent;
    border: 0;
    color: var(--field-muted);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .03em;
    margin-bottom: 12px;
    padding-left: 20px;
    text-transform: uppercase;
}

.theme-field .breadcrumb-page a {
    color: var(--field-amber);
}

.theme-field #content-wrapper > .container-fluid {
    padding-left: 20px;
    padding-right: 20px;
}

.theme-field .panel,
.theme-field .stat-panel,
.theme-field rd-widget {
    background: var(--field-card);
    border: 1px solid var(--field-line);
    border-left: 0 !important;
    border-right: 0 !important;
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(18, 34, 54, .05);
    overflow: hidden;
}

.theme-field .dashboard-kpi-row {
    align-items: stretch;
    display: flex;
    flex-wrap: wrap;
}

.theme-field .dashboard-kpi-row > [class*="col-"] {
    display: flex;
}

.theme-field .dashboard-kpi-row .stat-panel,
.theme-field .dashboard-kpi-row rd-widget,
.theme-field .dashboard-kpi-row rd-widget-body {
    width: 100%;
}

.theme-field .dashboard-kpi-row rd-widget {
    display: flex;
    flex: 1;
}

.theme-field .dashboard-kpi-row rd-widget-body {
    flex: 1;
}

.theme-field .dashboard-kpi-row .stat-panel,
.theme-field .dashboard-kpi-row rd-widget-body {
    height: 126px !important;
    min-height: 126px;
}

.theme-field .dashboard-kpi-row rd-widget-body {
    padding: 16px;
}

.theme-field .dashboard-kpi-row rd-widget-body {
    align-items: center;
    display: flex;
}

.theme-field .dashboard-kpi-row .widget,
.theme-field .dashboard-kpi-row .widget-body,
.theme-field .dashboard-kpi-row .widget-content {
    box-sizing: border-box;
    min-width: 0;
    width: 100%;
}

.theme-field .dashboard-kpi-row .widget-body {
    align-items: center;
    display: flex;
    height: 100% !important;
    padding: 16px !important;
}

.theme-field .dashboard-kpi-row .widget-content {
    align-items: center;
    display: flex;
    flex: 1 1 auto;
}

.theme-field .dashboard-kpi-row .widget-icon {
    flex: 0 0 65px;
    float: none !important;
    margin-right: 15px;
}

.theme-field .dashboard-kpi-row .kpi-copy {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
}

.theme-field .panel-heading {
    background: var(--field-card);
    border-bottom: 1px solid var(--field-line);
    color: var(--field-ink);
    font-weight: 700;
    letter-spacing: .015em;
    padding: 16px 18px;
}

.theme-field .panel-heading,
.theme-field .panel-heading .panel-title,
.theme-field .panel-heading .panel-title a,
.theme-field .panel-heading .panel-title-icon {
    color: var(--field-ink) !important;
    opacity: 1 !important;
}

.theme-field .panel-heading-controls,
.theme-field .panel-heading-text,
.theme-field .panel-heading-controls a {
    color: var(--field-muted) !important;
}

.theme-field .panel-title,
.theme-field .panel-title a {
    color: var(--field-ink) !important;
    opacity: 1 !important;
}

.theme-field .panel-success .panel-heading {
    background: #dff0d8;
    border-bottom-color: #d0e6be;
    color: #468847;
}

.theme-field .panel-success .panel-heading,
.theme-field .panel-success .panel-heading .panel-title,
.theme-field .panel-success .panel-heading .panel-title a,
.theme-field .panel-success .panel-heading .panel-title-icon,
.theme-field .panel-success .panel-heading-controls a {
    color: #468847 !important;
}

.theme-field .panel-primary .panel-heading {
    background: #337ab7;
    border-bottom-color: #2e6da4;
    color: #fff;
}

.theme-field .panel-info .panel-heading {
    background: #d9edf7;
    border-bottom-color: #bce8f1;
    color: #31708f;
}

.theme-field .panel-warning .panel-heading {
    background: #fcf8e3;
    border-bottom-color: #faebcc;
    color: #8a6d3b;
}

.theme-field .panel-danger .panel-heading {
    background: #f2dede;
    border-bottom-color: #ebccd1;
    color: #a94442;
}

.theme-field .panel-primary .panel-heading .panel-title,
.theme-field .panel-primary .panel-heading .panel-title a,
.theme-field .panel-primary .panel-heading .panel-title-icon,
.theme-field .panel-primary .panel-heading-controls a {
    color: #fff !important;
}

.theme-field .panel-info .panel-heading .panel-title,
.theme-field .panel-info .panel-heading .panel-title a,
.theme-field .panel-info .panel-heading .panel-title-icon,
.theme-field .panel-info .panel-heading-controls a {
    color: #31708f !important;
}

.theme-field .panel-warning .panel-heading .panel-title,
.theme-field .panel-warning .panel-heading .panel-title a,
.theme-field .panel-warning .panel-heading .panel-title-icon,
.theme-field .panel-warning .panel-heading-controls a {
    color: #8a6d3b !important;
}

.theme-field .panel-danger .panel-heading .panel-title,
.theme-field .panel-danger .panel-heading .panel-title a,
.theme-field .panel-danger .panel-heading .panel-title-icon,
.theme-field .panel-danger .panel-heading-controls a {
    color: #a94442 !important;
}

.theme-field .panel-dark .panel-heading,
.theme-field .widget-profile .panel-heading {
    background: #3b4350;
    border-bottom-color: #303744;
    color: #fff;
}

.theme-field .panel-dark .panel-heading,
.theme-field .panel-dark .panel-heading .panel-title,
.theme-field .panel-dark .panel-heading .panel-title a,
.theme-field .panel-dark .panel-heading .panel-title-icon,
.theme-field .panel-dark .panel-heading-controls a,
.theme-field .widget-profile .panel-heading,
.theme-field .widget-profile .panel-heading .widget-profile-header,
.theme-field .widget-profile .panel-heading .widget-profile-header span,
.theme-field .widget-profile .panel-heading .widget-profile-bg-icon {
    color: #fff !important;
}

.theme-field .panel-body,
.theme-field rd-widget-body {
    background: var(--field-card);
    color: var(--field-ink);
}

.theme-field rd-widget-body {
    border-radius: 12px;
    display: block;
    min-height: 116px;
    padding: 20px;
}

.theme-field .widget-icon {
    background: transparent !important;
    color: var(--field-teal);
    font-size: 22px;
}

.theme-field .widget-icon.red,
.theme-field .widget-icon.green,
.theme-field .widget-icon.blue,
.theme-field .widget-icon.orange {
    background: transparent !important;
}

.theme-field .widget-icon i {
    color: var(--field-teal) !important;
}

.theme-field rd-widget .title {
    color: var(--field-ink);
    font-size: 25px;
    font-weight: 700;
}

.theme-field rd-widget .comment {
    color: var(--field-muted);
    font-size: 11px;
    line-height: 1.4;
    text-transform: uppercase;
}

/* Pixel Admin adds borders to nested stat cells; cards should read as one surface. */
.theme-field .stat-panel,
.theme-field .stat-panel .stat-row,
.theme-field .stat-panel .stat-cell,
.theme-field .stat-panel .stat-rows {
    border: 0 !important;
    border-left: 0 !important;
    box-shadow: none !important;
}

.theme-field .stat-panel .stat-cell {
    background: var(--field-card) !important;
    color: var(--field-ink) !important;
}

.theme-field .stat-panel .stat-cell:first-child,
.theme-field .stat-panel .stat-row:first-child .stat-cell {
    border-left: 0 !important;
}

.theme-field .stat-panel .bg-success,
.theme-field .stat-panel .bg-info,
.theme-field .stat-panel .bg-danger,
.theme-field .stat-panel .bg-warning {
    background: var(--field-card) !important;
    color: var(--field-ink) !important;
}

.theme-field .stat-panel .stat-cell:first-child i {
    color: var(--field-teal);
}

.theme-field .btn {
    border-radius: 5px;
    font-weight: 600;
    transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.theme-field .btn-primary,
.theme-field .btn-success {
    background: var(--field-navy);
    border-color: var(--field-navy);
}

.theme-field .btn-primary:hover,
.theme-field .btn-primary:focus,
.theme-field .btn-success:hover,
.theme-field .btn-success:focus {
    background: var(--field-navy-dark);
    border-color: var(--field-navy-dark);
    box-shadow: 0 3px 8px rgba(11, 23, 39, .16);
}

.theme-field .btn-warning,
.theme-field .label-warning {
    background: var(--field-amber);
    border-color: var(--field-amber);
    color: #fff;
}

.theme-field .form-control,
.theme-field select,
.theme-field textarea {
    background: #fff;
    border: 1px solid #cbd5de;
    border-radius: 5px;
    color: var(--field-ink);
    min-height: 38px;
}

.theme-field .form-control:focus,
.theme-field select:focus,
.theme-field textarea:focus {
    border-color: var(--field-amber);
    box-shadow: 0 0 0 3px rgba(217, 119, 34, .14);
}

.theme-field .table > thead > tr > th {
    background: #f3f6f8;
    border-bottom: 1px solid #d7e0e6;
    color: var(--field-muted);
    font-size: 11px;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.theme-field .table > tbody > tr > td {
    border-top: 1px solid #edf0f2;
}

.theme-field .ticket {
    border-bottom: 1px solid var(--field-line);
    padding: 14px 8px;
}

.theme-field .ticket-title {
    color: var(--field-ink);
    font-weight: 700;
}

.theme-field .ticket-info,
.theme-field .text-muted {
    color: var(--field-muted);
}

.theme-field .alert {
    border: 1px solid var(--field-line);
    border-radius: 8px;
}

@media (max-width: 767px) {
    .theme-field #content-wrapper > .container-fluid {
        padding-left: 12px;
        padding-right: 12px;
    }

    .theme-field #main-menu,
    .theme-field #main-menu-bg {
        width: 80% !important;
    }

    .theme-field #content-wrapper {
        margin-left: 0;
        padding-top: 52px !important;
        width: 100%;
    }

    .theme-field #main-wrapper {
        padding-left: 0 !important;
    }

    .theme-field .dashboard-top-layout {
        display: block;
    }

    .theme-field .dashboard-kpi-column,
    .theme-field .dashboard-map-column,
    .theme-field .dashboard-summary-column {
        padding-left: 0;
        padding-right: 0;
    }

    .dashboard-summary-column {
        padding-left: 15px;
        padding-right: 15px;
    }

    .theme-field .dashboard-summary-column {
        padding-left: 15px;
    }

    .theme-field .dashboard-kpi-column .dashboard-kpi-row > [class*="col-"] {
        width: 100%;
    }

    .theme-field .dashboard-kpi-row {
        display: block;
    }

    .theme-field .dashboard-kpi-row > [class*="col-"] {
        display: block;
    }

    .dashboard-summary-column .dashboard-summary-kpis > [class*="col-"] {
        width: 100%;
    }

    .theme-field #main-navbar h4 {
        font-size: 13px;
    }

    .theme-field .dashboard-date-time .title {
        font-size: 14px;
    }

    .theme-field .btn,
    .theme-field .form-control,
    .theme-field select {
        min-height: 44px;
    }

    .theme-field .panel-heading,
    .theme-field rd-widget-body {
        padding: 15px;
    }
}

.update-news-actions {
    margin-top: 24px;
}

/* Customer detail uses compact information blocks instead of a wide empty form. */
.customer-detail-panel .panel-body {
    padding: 18px 22px;
}

.customer-detail-panel > .panel-heading {
    background: #e7f1f7;
    border-bottom-color: #c7dce8;
    color: #1f4e6b;
    font-weight: 700;
}

.customer-detail-panel > .panel-heading i {
    margin-right: 7px;
    color: #187ca3;
}

.customer-detail-actions {
    display: flex;
    float: right;
    align-items: center;
    gap: 8px;
}

.customer-detail-actions .btn {
    margin: 0;
    border-radius: 3px;
}

.customer-detail-actions i {
    margin-right: 5px;
    color: inherit !important;
}

.customer-detail-back-button {
    background: #f8fbfd;
    border-color: #b7ccd8;
    color: #245b7a;
}

.customer-detail-back-button:hover,
.customer-detail-back-button:focus {
    background: #e8f3f8;
    border-color: #8fb4c6;
    color: #1d4b65;
}

.theme-field .customer-detail-actions .btn-primary,
.theme-default .customer-detail-actions .btn-primary {
    background: #187ca3;
    border-color: #146b8c;
}

.theme-field .customer-detail-actions .btn-primary:hover,
.theme-default .customer-detail-actions .btn-primary:hover {
    background: #146b8c;
    border-color: #105a76;
}

.theme-field .customer-detail-panel > .panel-heading {
    background: #245b7a;
    border-bottom-color: #1d4b65;
    color: #fff !important;
}

.theme-field .customer-detail-panel > .panel-heading i {
    color: #8bd2e8;
}

.theme-default .customer-detail-panel > .panel-heading {
    background: #245b7a;
    border-bottom-color: #1d4b65;
    color: #fff !important;
}

.theme-default .customer-detail-panel > .panel-heading i {
    color: #8bd2e8;
}

.customer-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.customer-detail-section {
    padding: 14px 16px 10px;
    background: #f7f9fb;
    border: 1px solid #e4e9ee;
    border-radius: 4px;
}

.customer-detail-section h4 {
    margin: 0 0 12px;
    color: #3b5874;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.customer-detail-section .dl-horizontal {
    margin: 0;
}

.customer-detail-section .dl-horizontal dt {
    width: 125px;
    color: #6b7280;
    font-weight: 600;
    text-align: left;
}

.customer-detail-section .dl-horizontal dd {
    margin-left: 140px;
    margin-bottom: 7px;
    color: #18283b;
    overflow-wrap: anywhere;
}

.customer-related-grid {
    display: flex;
    margin-right: -8px;
    margin-left: -8px;
}

.customer-related-column {
    display: flex;
    padding-right: 8px;
    padding-left: 8px;
}

.customer-related-panel {
    width: 100%;
    margin-bottom: 16px;
}

.customer-related-column:first-child .customer-related-panel > .panel-heading {
    background: #e8f5f3;
    border-bottom-color: #c5e5df;
    color: #17665f;
}

.customer-related-column:first-child .customer-related-panel > .panel-heading i {
    color: #159a8c;
}

.customer-related-column:last-child .customer-related-panel > .panel-heading {
    background: #eef2f7;
    border-bottom-color: #d5dfe9;
    color: #405b76;
}

.customer-related-column:last-child .customer-related-panel > .panel-heading i {
    color: #537a9d;
}

.theme-field .customer-related-column:first-child .customer-related-panel > .panel-heading {
    background: #dff1ee;
    color: #17665f !important;
}

.theme-field .customer-related-column:last-child .customer-related-panel > .panel-heading {
    background: #e6edf5;
    color: #405b76 !important;
}

.theme-default .customer-related-column:first-child .customer-related-panel > .panel-heading {
    background: #dff1ee;
    border-bottom-color: #c5e5df;
    color: #17665f;
}

.theme-default .customer-related-column:first-child .customer-related-panel > .panel-heading i,
.theme-default .customer-related-column:last-child .customer-related-panel > .panel-heading i {
    color: #159a8c;
}

.theme-default .customer-related-column:last-child .customer-related-panel > .panel-heading {
    background: #e6edf5;
    border-bottom-color: #d5dfe9;
    color: #405b76;
}

.theme-default .customer-related-column:last-child .customer-related-panel > .panel-heading i {
    color: #537a9d;
}

.customer-related-panel .panel-heading small {
    display: inline-block;
    margin-left: 6px;
    color: #718096;
    font-weight: 600;
}

.customer-related-panel .panel-body {
    padding: 16px;
}

.customer-related-panel .table {
    margin-bottom: 0;
}

.customer-clickable-row {
    cursor: pointer;
}

.customer-clickable-row:hover {
    background-color: #f0f7fb !important;
}

.customer-clickable-row:focus {
    outline: 2px solid #6bb4d2;
    outline-offset: -2px;
}

/* Inventory detail follows the compact, read-only customer detail layout. */
.inventory-detail-panel .panel-body {
    padding: 18px 22px;
}

.inventory-detail-panel > .panel-heading,
.inventory-edit-panel > .panel-heading {
    background: #245b7a;
    border-bottom-color: #1d4b65;
    color: #fff !important;
    font-weight: 700;
}

.inventory-detail-panel > .panel-heading i,
.inventory-edit-panel > .panel-heading i {
    margin-right: 7px;
    color: #8bd2e8;
}

.inventory-detail-actions {
    display: flex;
    float: right;
    align-items: center;
    gap: 8px;
}

.inventory-detail-actions .btn {
    margin: 0;
    border-radius: 3px;
}

.inventory-detail-actions i {
    margin-right: 5px;
    color: inherit !important;
}

.inventory-detail-back-button {
    background: #f8fbfd;
    border-color: #b7ccd8;
    color: #245b7a;
}

.inventory-detail-grid {
    display: grid;
    grid-template-columns: minmax(220px, .8fr) minmax(340px, 1.35fr) minmax(260px, 1fr);
    gap: 16px;
    align-items: stretch;
}

.inventory-image-section,
.inventory-detail-section {
    padding: 14px 16px;
    background: #f7f9fb;
    border: 1px solid #e4e9ee;
    border-radius: 4px;
}

.inventory-detail-image {
    display: flex;
    min-height: 260px;
    height: 100%;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #dce3e9;
    border-radius: 3px;
}

.inventory-detail-image img {
    max-width: 100%;
    max-height: 300px;
    object-fit: contain;
}

.inventory-image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #8a98a8;
}

.inventory-image-placeholder i {
    font-size: 42px;
}

.inventory-detail-section h4 {
    margin: 0 0 12px;
    color: #3b5874;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.inventory-detail-section .dl-horizontal {
    margin: 0;
}

.inventory-detail-section .dl-horizontal dt {
    width: 115px;
    color: #6b7280;
    font-weight: 600;
    text-align: left;
}

.inventory-detail-section .dl-horizontal dd {
    margin-left: 130px;
    margin-bottom: 7px;
    color: #18283b;
    overflow-wrap: anywhere;
}

.inventory-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.inventory-stat-grid > div {
    display: flex;
    min-height: 82px;
    padding: 11px;
    flex-direction: column;
    justify-content: center;
    background: #fff;
    border: 1px solid #dce5ec;
    border-radius: 3px;
}

.inventory-stat-grid span,
.inventory-stat-grid small {
    color: #718096;
}

.inventory-stat-grid strong {
    color: #1f4e6b;
    font-size: 20px;
}

.inventory-profit-stat {
    grid-column: 1 / -1;
}

.inventory-related-panel > .panel-heading {
    background: #e8f5f3;
    border-bottom-color: #c5e5df;
    color: #17665f !important;
    font-weight: 700;
}

.inventory-expense-panel > .panel-heading {
    background: #e6edf5;
    border-bottom-color: #d5dfe9;
    color: #405b76 !important;
}

.inventory-related-panel > .panel-heading i {
    margin-right: 6px;
}

.inventory-related-panel > .panel-heading small {
    margin-left: 5px;
    color: #718096;
    font-weight: 600;
}

.inventory-related-panel .table {
    margin-bottom: 0;
}

.inventory-clickable-row td:not(:last-child) {
    cursor: pointer;
}

.inventory-clickable-row:hover {
    background-color: #f0f7fb !important;
}

.inventory-edit-panel .panel-body {
    padding: 22px;
}

.inventory-edit-panel .form-group {
    min-height: 38px;
    margin-bottom: 14px;
}

/* Job search keeps filters compact and gives the recent records clear priority. */
.job-search-panel > .panel-heading {
    background: #245b7a;
    border-bottom-color: #1d4b65;
    color: #fff !important;
    font-weight: 700;
}

.job-search-panel > .panel-heading i {
    margin-right: 7px;
    color: #8bd2e8;
}

.job-list-summary {
    color: #d8eaf2;
    font-size: 12px;
    font-weight: 600;
}

.job-search-panel .panel-body {
    padding: 18px 20px 8px;
}

.job-search-toolbar {
    display: grid;
    grid-template-columns: minmax(220px, 1.25fr) minmax(210px, 1fr) 130px auto auto auto;
    gap: 10px;
    align-items: end;
    margin-bottom: 18px;
}

.job-search-toolbar label {
    display: block;
    margin-bottom: 6px;
    color: #52667a;
    font-size: 12px;
    font-weight: 700;
}

.job-search-toggle {
    padding-bottom: 8px;
    text-align: center;
}

.job-search-toggle label {
    white-space: nowrap;
}

.job-search-toolbar .btn {
    min-width: 82px;
    margin: 0;
}

.job-add-button .btn {
    min-width: 105px;
}

.job-search-panel .table-responsive {
    margin-right: -20px;
    margin-left: -20px;
    border-top: 1px solid #e3e9ee;
}

.job-search-results {
    margin-bottom: 0;
}

.job-search-results thead th {
    border-bottom-width: 1px;
    background: #f4f7f9;
    color: #52667a;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.job-search-row td:not(:first-child):not(:last-child) {
    cursor: pointer;
}

.job-search-row:hover {
    background-color: #f0f7fb !important;
}

.job-remove-cell {
    background: #f8fafb;
}

/* Job detail mirrors the read-only customer and inventory detail experience. */
.job-detail-panel .panel-body {
    padding: 18px 22px;
}

.job-detail-panel > .panel-heading,
.job-edit-panel > .panel-heading {
    background: #245b7a;
    border-bottom-color: #1d4b65;
    color: #fff !important;
    font-weight: 700;
}

.job-detail-panel > .panel-heading i,
.job-edit-panel > .panel-heading i {
    margin-right: 7px;
    color: #8bd2e8;
}

.job-detail-actions {
    display: flex;
    float: right;
    align-items: center;
    gap: 8px;
}

.job-detail-actions .btn {
    margin: 0;
    border-radius: 3px;
}

.job-detail-actions i {
    margin-right: 5px;
    color: inherit !important;
}

.job-detail-back-button {
    background: #f8fbfd;
    border-color: #b7ccd8;
    color: #245b7a;
}

.job-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.job-detail-section {
    padding: 14px 16px 10px;
    background: #f7f9fb;
    border: 1px solid #e4e9ee;
    border-radius: 4px;
}

.job-detail-section h4 {
    margin: 0 0 12px;
    color: #3b5874;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.job-detail-section .dl-horizontal {
    margin: 0;
}

.job-detail-section .dl-horizontal dt {
    width: 115px;
    color: #6b7280;
    font-weight: 600;
    text-align: left;
}

.job-detail-section .dl-horizontal dd {
    margin-left: 130px;
    margin-bottom: 8px;
    color: #18283b;
    overflow-wrap: anywhere;
}

.job-related-grid {
    display: flex;
    margin-right: -8px;
    margin-left: -8px;
}

.job-related-column {
    display: flex;
    padding-right: 8px;
    padding-left: 8px;
}

.job-related-panel {
    width: 100%;
    margin-bottom: 16px;
}

.job-related-panel > .panel-heading {
    background: #e8f5f3;
    border-bottom-color: #c5e5df;
    color: #17665f !important;
    font-weight: 700;
}

.job-invoices-panel > .panel-heading,
.job-runs-panel > .panel-heading {
    background: #e6edf5;
    border-bottom-color: #d5dfe9;
    color: #405b76 !important;
}

.job-related-panel > .panel-heading i {
    margin-right: 6px;
}

.job-related-panel > .panel-heading small {
    margin-left: 5px;
    color: #718096;
    font-weight: 600;
}

.job-related-panel .table {
    margin-bottom: 0;
}

.job-clickable-row td:not(:first-child):not(:last-child),
.job-rigs-panel .job-clickable-row td {
    cursor: pointer;
}

.job-clickable-row:hover {
    background-color: #f0f7fb !important;
}

.job-run-actions {
    display: flex;
    gap: 6px;
}

.job-edit-panel .panel-body {
    padding: 22px;
}

.job-edit-panel .form-group {
    min-height: 38px;
    margin-bottom: 14px;
}

.customer-clickable-row .btn {
    position: relative;
    z-index: 1;
}

.invoice-modal-body .form-group {
    margin-bottom: 16px;
}

.invoice-modal-body .form-group:last-child {
    margin-bottom: 4px;
}

.invoice-modal-body .form-group > label {
    padding-top: 9px;
    color: #405b76;
    font-weight: 600;
}

.invoice-modal-body .form-control,
.invoice-modal-body .form-control-static {
    min-height: 38px;
}

.theme-field .invoice-modal-body .form-group > label {
    color: var(--field-ink);
}

/* Keep form panels consistent without changing dashboard and map panels. */
.theme-default .panel:has(form) > .panel-heading,
.theme-field .panel:has(form) > .panel-heading {
    padding: 13px 18px;
    background: #245b7a;
    border-bottom-color: #1d4b65;
    color: #fff;
    font-weight: 700;
}

.theme-default .panel:has(form) > .panel-heading i,
.theme-field .panel:has(form) > .panel-heading i {
    margin-right: 7px;
    color: #8bd2e8;
}

.theme-default .panel:has(form) > .panel-body,
.theme-field .panel:has(form) > .panel-body {
    padding: 18px 20px;
}

.theme-default .panel:has(form) .form-group,
.theme-field .panel:has(form) .form-group {
    margin-bottom: 16px;
}

.theme-default .panel:has(form) .form-group:last-child,
.theme-field .panel:has(form) .form-group:last-child {
    margin-bottom: 4px;
}

.theme-default .panel:has(form) .form-control,
.theme-default .panel:has(form) select,
.theme-default .panel:has(form) textarea,
.theme-field .panel:has(form) .form-control,
.theme-field .panel:has(form) select,
.theme-field .panel:has(form) textarea {
    border-radius: 3px;
}

.theme-default .panel:has(form) .form-control:focus,
.theme-default .panel:has(form) select:focus,
.theme-default .panel:has(form) textarea:focus,
.theme-field .panel:has(form) .form-control:focus,
.theme-field .panel:has(form) select:focus,
.theme-field .panel:has(form) textarea:focus {
    border-color: #6bb4d2;
    box-shadow: 0 0 0 2px rgba(107, 180, 210, .18);
}

@media (max-width: 767px) {
    .customer-detail-actions,
    .inventory-detail-actions,
    .job-detail-actions {
        float: none;
        justify-content: flex-end;
        margin-top: 10px;
    }

    .customer-detail-grid,
    .customer-related-grid,
    .inventory-detail-grid,
    .job-detail-grid,
    .job-related-grid {
        display: block;
    }

    .job-related-column {
        display: block;
    }

    .job-detail-section + .job-detail-section {
        margin-top: 12px;
    }

    .job-detail-section .dl-horizontal dt {
        float: none;
        width: auto;
    }

    .job-detail-section .dl-horizontal dd {
        margin-left: 0;
    }

    .job-run-actions {
        float: none !important;
        margin-top: 10px;
    }

    .job-search-toolbar {
        display: block;
    }

    .job-search-field,
    .job-search-toggle,
    .job-search-button,
    .job-clear-button,
    .job-add-button {
        margin-bottom: 10px;
        text-align: left;
    }

    .job-search-toolbar .btn {
        width: 100%;
    }

    .inventory-image-section,
    .inventory-detail-section {
        margin-bottom: 12px;
    }

    .inventory-detail-section .dl-horizontal dt {
        float: none;
        width: auto;
    }

    .inventory-detail-section .dl-horizontal dd {
        margin-left: 0;
    }

    .customer-related-column {
        display: block;
    }

    .customer-detail-section + .customer-detail-section {
        margin-top: 12px;
    }

    .customer-detail-section .dl-horizontal dt {
        float: none;
        width: auto;
        text-align: left;
    }

    .customer-detail-section .dl-horizontal dd {
        margin-left: 0;
    }

    .customer-related-panel {
        margin-bottom: 12px;
    }
}
