/* Realgest workspace, approved visual release 20261016.1. Presentation only.
 * Opt-in body class; existing fields, controls and processes stay intact.
 * Preserve Bootstrap visibility, tab, collapse, modal and widget behaviour.
 */
@font-face {
  font-family: "RG Manrope";
  src: url("../fonts/Manrope-Latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}

/* Standalone Agenda pages retain their calendar, toolbar and service calls. */
body.rg-workspace-theme.rg-agenda { margin: 0; }
.rg-workspace-theme.rg-agenda .agenda-logo {
  margin: 0 0 28px;
  padding: 20px 24px;
  background: #fff;
  border-bottom: 1px solid var(--rg-line);
}
.rg-workspace-theme.rg-agenda .agenda-logo img {
  width: auto;
  max-width: 190px;
  max-height: 45px;
  padding: 0;
}
.rg-workspace-theme.rg-agenda .fc,
.rg-workspace-theme.rg-agenda .multi-toolbar {
  background: #fff;
  border: 1px solid var(--rg-line);
  border-radius: 12px;
  padding: 16px;
}
.rg-workspace-theme.rg-agenda .fc th { background: var(--rg-pale); color: var(--rg-deep); }

body.rg-workspace-theme {
  --rg-green: #397329;
  --rg-brand: #4d8c32;
  --rg-deep: #124c1f;
  --rg-ink: #1b2d24;
  --rg-muted: #5d6e64;
  --rg-line: #dce5da;
  --rg-pale: #edf5e9;
  --rg-canvas: #f5f7f3;
  background: #f6f8f4;
  color: var(--rg-ink);
  font: 400 14px/1.55 "RG Manrope", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.rg-workspace-theme #wrapper { background: #f6f8f4; }
.rg-workspace-theme #page-wrapper {
  background: var(--rg-canvas);
  border-left-color: var(--rg-line);
  padding-bottom: 36px;
  min-height: calc(100vh - 140px);
}
.rg-workspace-theme h1,
.rg-workspace-theme h2,
.rg-workspace-theme h3,
.rg-workspace-theme h4,
.rg-workspace-theme h5,
.rg-workspace-theme h6 {
  color: var(--rg-ink);
  font-family: "RG Manrope", Arial, sans-serif;
  font-weight: 750;
  line-height: 1.25;
  letter-spacing: -.035em;
}
.rg-workspace-theme a { color: var(--rg-green); }
.rg-workspace-theme a:hover { color: var(--rg-deep); }
.rg-workspace-theme a:focus-visible,
.rg-workspace-theme button:focus-visible,
.rg-workspace-theme input:focus-visible,
.rg-workspace-theme select:focus-visible,
.rg-workspace-theme textarea:focus-visible {
  outline: 3px solid #b77b19;
  outline-offset: 3px;
}

/* Existing header and account controls. */
.rg-workspace-theme .navbar-static-top {
  min-height: 86px;
  border: 0;
  border-bottom: 1px solid var(--rg-line);
  background: #fff;
}
.rg-workspace-theme .navbar-brand {
  padding: 20px 24px;
  height: 85px;
}
.rg-workspace-theme .navbar-brand img {
  max-height: 45px;
  width: auto;
  object-fit: contain;
}
.rg-workspace-theme .navbar-static-top > .btn-group {
  margin: 20px 24px !important;
}
.rg-workspace-theme .navbar-static-top .btn {
  min-height: 42px;
  font-size: 13px;
  padding: 10px 13px;
}
.rg-workspace-theme .navbar-static-top .btn[disabled] {
  opacity: 1;
  color: var(--rg-muted);
  background: #f8faf6;
}
.rg-workspace-theme .navbar-toggle {
  margin-top: 24px;
  padding: 11px;
  border-color: var(--rg-line);
  border-radius: 8px;
}
.rg-workspace-theme .navbar-toggle .icon-bar { background: var(--rg-deep); }

/* Keep the menu tree, links and collapse plugin intact. */
.rg-workspace-theme .navbar-static-side {
  background: #f6f8f4;
  padding: 16px 12px 28px;
}
.rg-workspace-theme .navbar-static-side h4 {
  background: transparent;
  color: #65765e;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  line-height: 1.5;
  text-transform: uppercase;
  padding: 13px 13px 10px;
}
.rg-workspace-theme .navbar-static-side ul li { border-bottom: 0; }
.rg-workspace-theme .nav.side-menu { margin-bottom: 12px; }
.rg-workspace-theme .nav.side-menu > li { margin: 3px 0; }
.rg-workspace-theme .nav.side-menu > li > a {
  color: #425746;
  padding: 11px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.45;
}
.rg-workspace-theme .nav.side-menu > li > a > .fa {
  color: #78906f;
  width: 20px;
  margin-right: 5px;
}
.rg-workspace-theme .nav.side-menu > li > a > .arrow { width: auto; margin: 3px 0 0; }
.rg-workspace-theme .nav.side-menu a:hover,
.rg-workspace-theme .nav.side-menu a:focus { background: #e8f0e3; }
.rg-workspace-theme .nav.side-menu .active > a {
  background: #e2efda;
  color: var(--rg-deep);
  font-weight: 800;
}
.rg-workspace-theme .nav.side-menu > .active > a { box-shadow: inset 3px 0 var(--rg-brand); }
.rg-workspace-theme .nav-second-level { padding: 4px 0 6px; }
.rg-workspace-theme .nav-second-level > li > a {
  color: #5c6d5e;
  font-size: 12px;
  padding: 9px 12px 9px 38px;
  border-radius: 7px;
}

/* Page titles use the existing page-header, including its original actions. */
.rg-workspace-theme #page-wrapper .page-header {
  margin-top: 28px;
  margin-bottom: 26px;
  padding: 24px 28px;
  background: var(--rg-deep);
  border: 1px solid var(--rg-deep);
  border-radius: 14px;
  color: #fff;
}
.rg-workspace-theme #page-wrapper .page-header h2 {
  margin: 0;
  font-size: 30px;
  color: #fff;
  font-weight: 750;
}
.rg-workspace-theme #page-wrapper .page-header h2 > a { color: #c8e3b9; font-size: .62em; }
.rg-workspace-theme .breadcrumb {
  margin: 0 0 12px;
  padding: 0;
  background: transparent;
  border-radius: 0;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .02em;
}
.rg-workspace-theme .page-header .breadcrumb,
.rg-workspace-theme .page-header .breadcrumb a,
.rg-workspace-theme .page-header .breadcrumb > .active { color: #d2e5ca; }
.rg-workspace-theme .page-header .breadcrumb > li + li:before { color: #8eb884; }
.rg-workspace-theme .page-header .btn-primary { background: #fff; border-color: #fff; color: var(--rg-deep); }
.rg-workspace-theme .page-header .btn-primary:hover { background: var(--rg-pale); border-color: var(--rg-pale); }
.rg-workspace-theme .page-header .btn-group { margin-left: 16px; }

/* Buttons retain their original semantic colours and disabled states. */
.rg-workspace-theme .btn {
  font-family: inherit;
  border-radius: 7px;
  padding: 9px 15px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  transition: background-color .15s, border-color .15s, box-shadow .15s;
}
.rg-workspace-theme .btn-xs { padding: 3px 7px; font-size: 11px; border-radius: 5px; }
.rg-workspace-theme .btn-sm { padding: 6px 10px; font-size: 12px; border-radius: 6px; }
.rg-workspace-theme .btn-lg { padding: 12px 20px; font-size: 15px; }
.rg-workspace-theme .btn-primary { background: var(--rg-green); border-color: var(--rg-green); color: #fff; }
.rg-workspace-theme .btn-primary:hover,
.rg-workspace-theme .btn-primary:focus,
.rg-workspace-theme .btn-primary:active,
.rg-workspace-theme .btn-primary.active,
.rg-workspace-theme .open > .dropdown-toggle.btn-primary { background: #285d20; border-color: #285d20; color: #fff; }
.rg-workspace-theme .btn-default { background: #fff; border-color: #cfdbca; color: #344b39; }
.rg-workspace-theme .btn-default:hover,
.rg-workspace-theme .btn-default:focus { background: var(--rg-pale); border-color: #9eb890; color: var(--rg-deep); }
.rg-workspace-theme .btn-success { background: #327b42; border-color: #327b42; color: #fff; }
.rg-workspace-theme .btn-info { background: #286f88; border-color: #286f88; color: #fff; }
.rg-workspace-theme .btn-warning { background: #9b6416; border-color: #9b6416; color: #fff; }
.rg-workspace-theme .btn-danger { background: #b63b35; border-color: #b63b35; color: #fff; }
.rg-workspace-theme .btn-danger:hover { background: #962f2a; border-color: #962f2a; color: #fff; }
.rg-workspace-theme .btn-group > .btn:not(:first-child):not(:last-child):not(.dropdown-toggle) { border-radius: 0; }
.rg-workspace-theme .btn-group > .btn:first-child:not(:last-child):not(.dropdown-toggle) { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.rg-workspace-theme .btn-group > .btn:last-child:not(:first-child),
.rg-workspace-theme .btn-group > .dropdown-toggle:not(:first-child) { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.rg-workspace-theme .dropdown-menu {
  border: 1px solid var(--rg-line);
  border-radius: 10px;
  padding: 7px;
  box-shadow: 0 12px 32px #15351b18;
  font-size: 13px;
}
.rg-workspace-theme .dropdown-menu > li > a { padding: 9px 12px; color: #344b39; border-radius: 5px; }
.rg-workspace-theme .dropdown-menu > li > a:hover { background: var(--rg-pale); color: var(--rg-deep); }

/* Panels and tables. Table overflow remains scrollable where already defined. */
.rg-workspace-theme .panel {
  border-radius: 12px;
  border-color: var(--rg-line);
  box-shadow: 0 3px 14px #18391e05;
  margin-bottom: 24px;
}
.rg-workspace-theme .panel-default > .panel-heading {
  background: #fff;
  color: var(--rg-ink);
  border-bottom-color: var(--rg-line);
  padding: 17px 20px;
  border-radius: 12px 12px 0 0;
  font-weight: 750;
}
.rg-workspace-theme .panel-heading .btn { margin-top: -3px; margin-bottom: -3px; }
.rg-workspace-theme .panel-body { padding: 20px; }
.rg-workspace-theme .panel-footer { background: #f7faf5; border-color: var(--rg-line); padding: 14px 20px; border-radius: 0 0 12px 12px; }
.rg-workspace-theme .widgets .panel-heading b { font-size: 16px !important; font-weight: 750; }
.rg-workspace-theme .table { font-size: 12px; background: #fff; }
.rg-workspace-theme .table > thead > tr > th {
  padding: 13px 12px;
  background: #f2f6ef;
  color: #53694b;
  border-bottom: 1px solid #d8e3d3;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .045em;
  line-height: 1.5;
  text-transform: uppercase;
  vertical-align: middle;
}
.rg-workspace-theme .table > tbody > tr > td { padding: 12px; border-top-color: #e8eee4; vertical-align: middle; }
.rg-workspace-theme .table-striped > tbody > tr:nth-child(odd) > td { background: #fafcf8; }
.rg-workspace-theme .table-hover > tbody > tr:hover > td { background: #edf5e9; }
.rg-workspace-theme .table-bordered { border-color: var(--rg-line); }
.rg-workspace-theme .table-bordered > thead > tr > th,
.rg-workspace-theme .table-bordered > tbody > tr > td { border-color: #e4ebe0; }
.rg-workspace-theme .table.estates thead th,
.rg-workspace-theme .table.requests thead th { color: #53694b !important; }
.rg-workspace-theme .table-responsive { border-color: var(--rg-line); }
.rg-workspace-theme .dataTables_wrapper .dataTables_filter input,
.rg-workspace-theme .dataTables_wrapper .dataTables_length select { border: 1px solid #cbd9c5; border-radius: 6px; padding: 6px 9px; background: #fff; }
.rg-workspace-theme .dataTables_info { font-size: 11px; color: var(--rg-muted); padding-top: 14px; }
.rg-workspace-theme .pagination > li > a,
.rg-workspace-theme .pagination > li > span { color: var(--rg-green); border-color: var(--rg-line); padding: 7px 12px; }
.rg-workspace-theme .pagination > .active > a,
.rg-workspace-theme .pagination > .active > span { background: var(--rg-green); border-color: var(--rg-green); color: #fff; }
.rg-workspace-theme .pagination > .disabled > a,
.rg-workspace-theme .pagination > .disabled > span { color: #75806d; background: #fafcf8; }

/* Existing form controls and tabs: no display/position changes to inputs. */
.rg-workspace-theme .form-control {
  font-family: inherit;
  font-size: 13px;
  color: var(--rg-ink);
  background-color: #fff;
  border-color: #cbd9c5;
  border-radius: 7px;
  box-shadow: inset 0 1px 2px #17331d03;
}
.rg-workspace-theme input.form-control,
.rg-workspace-theme select.form-control { height: 40px; padding: 9px 12px; }
.rg-workspace-theme textarea.form-control { padding: 11px 12px; line-height: 1.6; }
.rg-workspace-theme .form-control:focus { border-color: var(--rg-brand); box-shadow: 0 0 0 3px #4d8c3218; }
.rg-workspace-theme .form-control[disabled],
.rg-workspace-theme .form-control[readonly],
.rg-workspace-theme fieldset[disabled] .form-control { background-color: #eef2eb; color: #667360; }
.rg-workspace-theme .control-label { color: #45583d; font-size: 12px; font-weight: 700; }
.rg-workspace-theme .form-horizontal .control-label { padding-top: 10px; }
.rg-workspace-theme .form-group { margin-bottom: 20px; }
.rg-workspace-theme .help-block { color: #677560; font-size: 11px; line-height: 1.5; }
.rg-workspace-theme .input-group-addon { color: #526a49; background: #f2f6ee; border-color: #cbd9c5; font-size: 12px; }
.rg-workspace-theme .input-group .form-control:not(:first-child):not(:last-child) { border-radius: 0; }
.rg-workspace-theme .input-group .form-control:first-child { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.rg-workspace-theme .input-group .form-control:last-child { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.rg-workspace-theme .nav-tabs {
  border-bottom: 1px solid var(--rg-line);
  margin-bottom: 24px;
}
.rg-workspace-theme .nav-tabs > li > a {
  color: #607256;
  background: #eef3e9;
  border-color: #e1e8db;
  border-radius: 8px 8px 0 0;
  padding: 13px 16px;
  font-size: 12px;
  font-weight: 700;
}
.rg-workspace-theme .nav-tabs > li.active > a,
.rg-workspace-theme .nav-tabs > li.active > a:hover,
.rg-workspace-theme .nav-tabs > li.active > a:focus {
  color: var(--rg-deep);
  background: #fff;
  border-color: var(--rg-line);
  border-bottom-color: var(--rg-brand);
  box-shadow: inset 0 -2px var(--rg-brand);
}
.rg-workspace-theme .tab-content { padding-top: 4px; }
.rg-workspace-theme .well { background: #fff; border-color: var(--rg-line); border-radius: 12px; box-shadow: none; padding: 22px; }
.rg-workspace-theme legend { color: var(--rg-deep); font-size: 19px; font-weight: 750; padding-bottom: 14px; border-color: var(--rg-line); }
.rg-workspace-theme .multiselect.btn { min-height: 40px; }
.rg-workspace-theme .multiselect-container > li > a > label { font-size: 12px; padding-top: 7px; padding-bottom: 7px; }
.rg-workspace-theme .datepicker,
.rg-workspace-theme .ui-datepicker { font-family: inherit; border-color: var(--rg-line); border-radius: 9px; box-shadow: 0 10px 26px #15351b14; }
.rg-workspace-theme .bootstrap-switch { border-color: #cbd9c5; border-radius: 6px; }
.rg-workspace-theme .bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-primary { background: var(--rg-green); color: #fff; }
.rg-workspace-theme .has-error .form-control,
.rg-workspace-theme .form-control.error { border-color: #b63b35; }
.rg-workspace-theme label.error,
.rg-workspace-theme .has-error .help-block,
.rg-workspace-theme .has-error .control-label { color: #a32e29; }

/* Existing dashboard quick links; no new cards, metrics or actions. */
.rg-workspace-theme .qlinksbtn { margin-right: 9px; margin-bottom: 9px; }
.rg-workspace-theme .qlinksbtn a.btn-primary {
  min-width: 128px !important;
  padding: 17px 20px;
  border: 1px solid #d4e2cc;
  background: #fff;
  color: var(--rg-deep);
  border-radius: 10px;
  box-shadow: 0 3px 10px #17331d04;
}
.rg-workspace-theme .qlinksbtn a.btn-primary:hover { background: #edf5e9; border-color: #9ebe8d; }
.rg-workspace-theme .qlinksbtn .fa { color: var(--rg-brand); }
.rg-workspace-theme .widgets .agenda-date { color: var(--rg-muted); padding: 12px 0; }
.rg-workspace-theme .progress { background: #e6eedf; border-radius: 8px; box-shadow: none; }
.rg-workspace-theme .progress-bar-success { background: var(--rg-green); }
.rg-workspace-theme .progress-bar[aria-valuenow="0"] { color: var(--rg-deep); }
.rg-workspace-theme .label { font-family: inherit; font-weight: 700; border-radius: 5px; padding: .35em .55em; }
.rg-workspace-theme .label-success { background: #327b42; }
.rg-workspace-theme .label-danger { background: #b63b35; }
.rg-workspace-theme .alert { border-radius: 9px; font-size: 12px; line-height: 1.65; }
.rg-workspace-theme .alert-info { background: #edf5f8; border-color: #ccdee6; color: #315f72; }
.rg-workspace-theme .alert-success { background: #eaf5e6; border-color: #cde1c3; color: #285d20; }
.rg-workspace-theme .alert-warning { background: #fff5df; border-color: #ebd6a6; color: #795216; }
.rg-workspace-theme .alert-danger { background: #fff0ee; border-color: #e7c1bd; color: #96342f; }
.rg-workspace-theme .modal-content { border: 1px solid var(--rg-line); border-radius: 13px; box-shadow: 0 18px 60px #15351b26; }
.rg-workspace-theme .modal-header { padding: 20px 24px; border-bottom-color: var(--rg-line); }
.rg-workspace-theme .modal-title { color: var(--rg-deep); font-size: 19px; font-weight: 750; }
.rg-workspace-theme .modal-body { padding: 24px; }
.rg-workspace-theme .modal-footer { border-color: var(--rg-line); padding: 16px 24px; }
.rg-workspace-theme #wrapper > .col-lg-6 { color: #697762; font-size: 10px; padding: 20px 24px; }
.rg-workspace-theme #wrapper > .col-lg-6 img { max-height: 30px; width: auto; }

@media (min-width: 768px) {
  .rg-workspace-theme .navbar-static-side { width: 248px; }
  .rg-workspace-theme #page-wrapper { margin-left: 248px; padding-left: 36px; padding-right: 36px; }
}
@media (max-width: 1199px) and (min-width: 768px) {
  .rg-workspace-theme #page-wrapper { padding-left: 24px; padding-right: 24px; }
  .rg-workspace-theme .page-header .btn-group { margin-left: 10px; }
}
@media (max-width: 767px) {
  .rg-workspace-theme .navbar-brand { padding: 20px 16px; }
  .rg-workspace-theme .navbar-brand img { max-width: 190px; }
  .rg-workspace-theme .navbar-static-top > .btn-group { margin: 8px 16px 16px !important; }
  .rg-workspace-theme .navbar-static-side { padding: 0 12px; }
  .rg-workspace-theme #page-wrapper { padding: 0 18px 28px; }
  .rg-workspace-theme #page-wrapper .page-header { margin-top: 18px; margin-bottom: 20px; padding: 20px; border-radius: 11px; }
  .rg-workspace-theme #page-wrapper .page-header h2 { font-size: 23px; }
  .rg-workspace-theme .page-header .btn-group { margin-left: 8px; }
  .rg-workspace-theme .page-header .btn { padding: 7px 10px; font-size: 11px; }
  .rg-workspace-theme .panel-heading { padding-left: 16px; padding-right: 16px; }
  .rg-workspace-theme .panel-body { padding: 16px; }
  .rg-workspace-theme .table > tbody > tr > td { padding: 9px; }
  .rg-workspace-theme .nav-tabs > li > a { padding: 12px; }
  .rg-workspace-theme .qlinksbtn a.btn-primary { min-width: 115px !important; padding: 14px 16px; }
  .rg-workspace-theme .modal-body { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .rg-workspace-theme .btn { transition: none; }
}

/* The existing login form keeps the same fields, token and submit action. */
body.rg-workspace-theme.rg-login { background: #f2f6ed; }
.rg-workspace-theme.rg-login > .container { max-width: 980px; }
.rg-workspace-theme.rg-login > .container > div {
  margin-top: clamp(40px, 12vh, 140px) !important;
  padding: 42px;
  background: #fff;
  border: 1px solid var(--rg-line);
  border-radius: 16px;
  box-shadow: 0 12px 40px #15351b08;
}
.rg-workspace-theme.rg-login h2 { font-size: 28px; margin-top: 0; margin-bottom: 24px; color: var(--rg-deep); }
.rg-workspace-theme.rg-login .payoff { font-size: 14px; line-height: 1.5; letter-spacing: 0; color: var(--rg-muted); }
.rg-workspace-theme.rg-login #loginform { margin-top: 26px; }
.rg-workspace-theme.rg-login #loginform .form-control { height: 46px; font-size: 14px; }
.rg-workspace-theme.rg-login #loginform input[type="submit"] { padding: 11px 26px; font-size: 13px; }
@media (max-width: 767px) {
  .rg-workspace-theme.rg-login > .container { padding: 18px; }
  .rg-workspace-theme.rg-login > .container > div { margin-top: 24px !important; padding: 26px 22px; }
  .rg-workspace-theme.rg-login .col-xs-12:first-child img { max-width: 220px; }
  .rg-workspace-theme.rg-login h2 { font-size: 24px; }
  .rg-workspace-theme.rg-login .col-xs-12 + .hidden-xs + .col-xs-12 h2 { margin-top: 26px; }
}
