:root {
  --cg-green: #4f9f3d;
  --cg-green-dark: #3d7f30;
  --cg-blue: #315f7f;
  --cg-blue-dark: #254b67;
  --cg-blue-soft: #dcebf5;
  --cg-red: #a9443b;
  --cg-red-soft: #f5e2e0;
  --cg-border: #aab3b9;
  --cg-border-light: #d4dade;
  --cg-surface: #f5f6f6;
  --cg-surface-alt: #e9edef;
  --cg-text: #26343d;
  --cg-muted: #68757d;
}
.ap-live.error{color:#a33b32}.ap-live.error i{background:#c84b42!important;box-shadow:0 0 0 3px #f5deda!important}.ap-report-error{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:9px;padding:8px 10px;border:1px solid #dfaaa5;border-left:4px solid #c84b42;border-radius:3px;background:#fff1f0;color:#8d302a;font-size:11px}.ap-report-error button{min-height:26px;white-space:nowrap}

html, body,
button, input, select, textarea {
  font-family: "Segoe UI", Tahoma, Arial, sans-serif !important;
}

body {
  color: var(--cg-text);
}

button:not(:disabled),
[role="button"],
[role="option"],
[data-screen],
.data-table tbody tr,
.tree label,
.users label,
input[type="checkbox"],
input[type="radio"],
select {
  cursor: pointer;
}

button:disabled,
[aria-disabled="true"] {
  cursor: default;
}

.titlebar {
  background: linear-gradient(#f4f7f8, #d8dee2) !important;
  border-bottom-color: #98a3aa !important;
}

.brand-copy b {
  color: #26343d !important;
}

.titlebar-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 25px;
  overflow: hidden;
}

.titlebar-symbol {
  position: relative;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  overflow: hidden;
}

.titlebar-symbol img {
  position: absolute;
  inset: 0;
  width: 24px;
  height: 24px;
  object-fit: contain;
  max-width: none;
}

.titlebar-logo strong {
  color: #49a83a;
  font-size: 12px;
  font-weight: 900 !important;
  line-height: 1;
  letter-spacing: .1px;
}

.titlebar-logo i {
  width: 1px;
  height: 15px;
  margin: 0 1px;
  background: #8f999f;
}

.titlebar-logo b {
  color: #075991;
  font-size: 11px;
  font-weight: 900 !important;
  line-height: 1;
}

.menubar {
  background: #f1f3f4 !important;
  border-bottom: 1px solid #aeb6bb !important;
}

.menubar button {
  min-width: auto;
  color: #26343d !important;
  font-size: 11px;
}

.menubar button:hover {
  background: #dce1e4 !important;
}

.menubar button.active {
  color: #1e3e54 !important;
  background: linear-gradient(#cbd2d6, #e8ecee) !important;
  border-radius: 4px !important;
  box-shadow: inset 0 1px 3px #7f898f, inset 0 -1px 0 #fff !important;
}

.dropdown {
  font-size: 11px;
}

.dropdown kbd {
  margin-left: auto;
  padding-left: 18px;
  color: #6b747a;
  font: 10px "Segoe UI", sans-serif;
  background: transparent;
  border: 0;
}

.dropdown button.menu-separator {
  margin-top: 4px;
  border-top: 1px solid #a7abad !important;
}

.screen-title {
  background: linear-gradient(#fbfcfc, #dde2e5) !important;
  border-bottom-color: #a8b0b5 !important;
}

.screen-title b {
  color: var(--cg-blue-dark) !important;
  font-size: 12px !important;
}

.screen-title span {
  color: var(--cg-muted) !important;
}

.screen-window-controls {
  display: flex;
  align-self: stretch;
  height: 30px;
  margin: 0 -9px 0 auto;
}

.screen-window-controls button {
  position: relative;
  width: 38px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: #34434d;
  background: transparent;
  box-shadow: none;
}

.screen-window-controls button:hover {
  background: rgba(104, 132, 151, .18);
}

.screen-window-controls .screen-close:hover {
  color: #fff;
  background: #c84d45;
}

.screen-window-controls i {
  position: absolute;
  display: block;
  width: 12px;
  height: 12px;
  top: 9px;
  left: 13px;
}

.screen-minimize-icon::after {
  content: "";
  position: absolute;
  left: 1px;
  right: 1px;
  bottom: 2px;
  height: 1px;
  background: currentColor;
}

.screen-maximize-icon::before {
  content: "";
  position: absolute;
  inset: 2px;
  border: 1px solid currentColor;
}

.screen-close-icon::before,
.screen-close-icon::after {
  content: "";
  position: absolute;
  top: 5px;
  left: 0;
  width: 12px;
  height: 1px;
  background: currentColor;
  transform: rotate(45deg);
}

.screen-close-icon::after {
  transform: rotate(-45deg);
}

.screen.screen-maximized {
  position: absolute;
  inset: 0;
  z-index: 12;
  height: 100%;
}

.screen.screen-minimized > :not(.screen-title) {
  display: none !important;
}

.screen.screen-minimized {
  height: 32px;
  flex: 0 0 32px;
  align-self: flex-start;
  box-shadow: 1px 2px 5px rgba(32, 47, 57, .22);
}

.toolbar {
  gap: 5px !important;
  background: #f5f6f7 !important;
  border-bottom-color: #9aa1a5 !important;
}

.toolbar button,
.modal-actions button,
.filter-panel button.full,
.uniform-ficha-btn,
.sif-filter-pagination button {
  height: 27px !important;
  padding: 0 10px !important;
  color: #34434c;
  border: 1px solid #9fa9af !important;
  border-radius: 3px !important;
  background: linear-gradient(#fff, #e4e8ea) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.85);
}

.toolbar button {
  justify-content: center;
}

.win-select {
  width: 96px;
  height: 24px;
}

.permissions-head .permission-select {
  width: 250px;
  height: 23px;
}

.permissions-head .win-select-button {
  height: 23px !important;
  padding-left: 6px !important;
  font-size: 11px;
  border: 1px solid #7f9db9 !important;
  background: linear-gradient(#ffffff, #f6f6f6) !important;
  box-shadow: inset 1px 1px 0 #fff, inset -1px -1px 0 #e1e4e6 !important;
}

.permissions-head .win-select-button:hover,
.permissions-head .permission-select.open .win-select-button {
  border-color: #5e7f96 !important;
  box-shadow: inset 1px 1px 0 #fff, 0 0 0 1px rgba(88,125,150,.12) !important;
}

.permissions-head .win-select-button i {
  width: 19px;
  height: 21px;
  margin-right: -3px;
  border-left: 1px solid #aeb8be;
  background: linear-gradient(#fafbfc 0%, #e6eaed 52%, #d8dde0 100%);
  box-shadow: inset 1px 0 0 #fff;
}

.permissions-head .win-select-button i::after {
  margin-top: 8px;
  border-left-width: 3px;
  border-right-width: 3px;
  border-top-width: 4px;
}

.permissions-head .win-select-options {
  top: 22px;
  padding: 2px;
  border-color: #979797;
  border-radius: 0;
  background: linear-gradient(90deg, #ececec 0, #ececec 27px, #f7f7f7 27px, #f7f7f7 100%);
  box-shadow: 2px 3px 6px rgba(0,0,0,.26);
}

.permissions-head .win-select-options button {
  display: flex !important;
  align-items: center;
  height: 23px !important;
  min-height: 23px;
  padding: 0 7px 0 5px !important;
  border-radius: 1px !important;
  font-size: 11px;
  line-height: 23px;
  background: transparent !important;
}

.permissions-head .win-select-options .win-menu-icon {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  margin-right: 10px;
}

.permissions-head .win-select-options button:hover,
.permissions-head .win-select-options button[aria-selected="true"]:hover {
  color: #1f2c34 !important;
  background: linear-gradient(#f1f8ff, #dcecff) !important;
  box-shadow: inset 0 0 0 1px #7da2ce !important;
}

.period-select {
  width: 86px;
}

.period-select .win-select-button {
  justify-content: flex-start !important;
  padding-right: 7px !important;
}

.period-select .win-select-button i {
  display: none;
}

.win-select-button {
  display: flex !important;
  justify-content: space-between !important;
  width: 100%;
  height: 24px !important;
  padding: 0 4px 0 7px !important;
  border: 1px solid #9da6ac !important;
  color: #26343d !important;
  box-shadow: inset 1px 1px 0 #f7f7f7 !important;
}

.win-select-button:hover,
.win-select.open .win-select-button {
  border-color: #6f8797 !important;
  background: #fff !important;
  transform: none !important;
}

.win-select-button i {
  margin-right: -3px;
  border-left: 1px solid #a2a7aa;
}

.win-select-button i::after {
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid #34434d;
}

.win-select-options {
  width: 100%;
}

.win-select.open .win-select-options {
  display: block;
  animation: menu-enter .12s ease-out;
}

.win-select-options button {
  display: block !important;
  height: 22px !important;
  padding: 0 5px !important;
  border: 0 !important;
  border-radius: 0 !important;
  color: #26343d !important;
  background: #fff !important;
  box-shadow: none !important;
}

.win-select-options button:hover {
  color: #26343d !important;
  background: #e4eaed !important;
  box-shadow: inset 0 0 0 1px #a8b4bb !important;
  transform: none !important;
}

.win-select-options button[aria-selected="true"] {
  color: #26343d !important;
  font-weight: 400;
  background: #fff !important;
  box-shadow: none !important;
  transform: none !important;
}

.win-select-options button[aria-selected="true"]:hover {
  background: #e4eaed !important;
  box-shadow: inset 0 0 0 1px #a8b4bb !important;
}

.action-icon {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.follow-icon {
  display: grid !important;
  place-items: center;
  width: 26px !important;
  color: #496779 !important;
}

.follow-icon .action-icon {
  width: 16px;
  height: 16px;
}

.toolbar button:hover,
.modal-actions button:hover,
.filter-panel button.full:hover,
.uniform-ficha-btn:hover:not(:disabled),
.sif-filter-pagination button:hover:not(:disabled) {
  border-color: #718c9e !important;
  background: linear-gradient(#fff, #e4f0f7) !important;
  box-shadow: 0 2px 4px rgba(37, 55, 67, .16);
}

.toolbar button:active,
.modal-actions button:active,
.filter-panel button.full:active,
.uniform-ficha-btn:active:not(:disabled),
.sif-filter-pagination button:active:not(:disabled) {
  background: #d5dce0 !important;
  box-shadow: inset 0 2px 4px rgba(35, 48, 57, .25) !important;
  transform: translateY(1px);
}

.toolbar button.primary,
.modal-actions button.primary,
.filter-panel button.primary {
  color: #fff !important;
  border-color: var(--cg-green-dark) !important;
  background: linear-gradient(#61ae4e, #478f38) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25);
}

.filter-panel button.primary:hover,
.toolbar button.primary:hover,
.modal-actions button.primary:hover {
  color: #fff !important;
  border-color: #356f2b !important;
  background: linear-gradient(#6ab858, #4b963c) !important;
  box-shadow: 0 2px 5px rgba(43,79,37,.22) !important;
}

.filter-panel button.primary:active,
.toolbar button.primary:active,
.modal-actions button.primary:active {
  color: #fff !important;
  background: #438536 !important;
}

.toolbar button.danger,
.modal-actions button.danger {
  color: #8f332c !important;
  border-color: #c59a96 !important;
  background: linear-gradient(#fff, var(--cg-red-soft)) !important;
}

input, select, textarea {
  color: #26343d;
  border: 1px solid #aab3b9 !important;
  border-radius: 2px;
  background: #fff;
  outline: none;
}

input:focus, select:focus, textarea:focus {
  border-color: #5f89a5 !important;
  box-shadow: 0 0 0 2px rgba(68, 125, 162, .14);
}

fieldset {
  border-color: #adb6bc !important;
  background: #f8f9f9 !important;
}

legend {
  color: var(--cg-blue-dark) !important;
}

.filter-panel {
  background: #e9edef !important;
}

.filter-panel h3 {
  color: #2c536d !important;
  background: #dce4e8 !important;
  border-color: #98a1a6 !important;
}

.tabs {
  background: #e5e9eb !important;
}

.tabs button {
  color: #43515a;
  border-color: #aab2b7 !important;
  background: #dce0e2 !important;
}

.tabs button:hover {
  background: #edf3f6 !important;
}

.tabs button.active {
  color: #264f6b;
  font-weight: 600;
  background: #fff !important;
  border-top: 2px solid var(--cg-blue) !important;
}

.contract-tab-panel {
  display: none;
}

.contract-tab-panel.active {
  display: grid;
  animation: screen-enter .16s ease-out;
}

.user-tabs {
  margin-bottom: 6px;
}

.user-tab-panel {
  display: none;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.user-tab-panel.active {
  display: flex;
  animation: screen-enter .16s ease-out;
}

.contract-grid.contract-tab-panel.active {
  display: grid;
}

.tab-content-panel {
  margin: 8px;
  border: 1px solid #adb6bc;
  background: #fff;
}

.tab-content-panel h3 {
  margin: 0;
  padding: 7px 9px;
  color: #315f7f;
  font-size: 11px;
  background: linear-gradient(#f7f9fa, #dce2e5);
  border-bottom: 1px solid #adb6bc;
}

.tab-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  padding: 8px;
}

.tab-summary div {
  padding: 10px;
  border: 1px solid #98a1a6;
  background: #f1f4f2;
}

.tab-summary b,
.tab-summary span {
  display: block;
}

.tab-summary b {
  color: #315f7f;
  font-size: 15px;
}

.tab-summary span {
  margin-top: 3px;
  color: #68757d;
  font-size: 10px;
}

.data-table,
.panel table {
  color: #2d3941;
  font-size: 11px;
}

.data-table th,
.panel th {
  height: 27px;
  padding: 5px 7px !important;
  color: #314550;
  font-weight: 600 !important;
  background: linear-gradient(#f8fafb, #dde3e6) !important;
  border-color: #9ba2a6 !important;
}

.data-table td,
.panel td {
  height: 25px;
  padding: 4px 7px !important;
  border-color: #b5b9bc !important;
}

.data-table tbody tr:nth-child(even),
.panel tbody tr:nth-child(even) {
  background: #f5f7f8 !important;
}

.data-table tbody tr:hover,
.panel tbody tr:hover {
  background: #e6f0f6 !important;
}

.data-table tbody tr.selected,
.data-table tbody tr.selected:nth-child(even) {
  background: #cfe3f1 !important;
  box-shadow: inset 3px 0 0 var(--cg-blue);
}

td.cell-money {
  text-align: right !important;
  font-variant-numeric: tabular-nums;
}

td.cell-date,
td.cell-status {
  text-align: center !important;
  font-variant-numeric: tabular-nums;
}

.grid-footer {
  color: #64727a;
  background: #e6eaec !important;
}


.panel {
  border-color: #abb5bb !important;
}

.panel-head {
  color: var(--cg-blue-dark) !important;
  background: linear-gradient(#f7f9fa, #dce2e5) !important;
}

.metric {
  border-color: #aeb9c0 !important;
  background: linear-gradient(135deg, #fff, #e9eef1) !important;
}

.metric {
  cursor: default;
}

.statusbar {
  color: #526069;
  background: #e6eaec !important;
}

.statusbar .status-online {
  color: var(--cg-green-dark) !important;
  font-weight: 600;
}

.online-dot {
  width: 6px;
  height: 6px;
  margin-right: 5px;
  padding: 0 !important;
  display: inline-block;
  border: 0 !important;
  border-radius: 50%;
  background: var(--cg-green);
  box-shadow: 0 0 0 1px rgba(45, 105, 43, .18);
}

.tree label {
  position: relative;
  display: flex !important;
  align-items: center;
}

.permission-grid > div {
  display: flex;
  min-height: 0;
  flex-direction: column;
  overflow: hidden;
}

.permission-grid h3 {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
}

.permission-grid .tree,
.permission-grid .users {
  min-height: 0;
  flex: 1 1 auto;
  overflow: auto;
}

.tree label.tree-group {
  margin-top: 3px;
  color: #294d64;
  font-weight: 600;
  background: #e8edef;
  border-top: 1px solid #afb5b8;
  border-bottom: 1px solid #b8bdbf;
}

.tree-chevron {
  width: 0;
  height: 0;
  margin: 0 6px 0 3px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid #5c6d77;
  cursor: pointer;
  transition: transform .15s ease;
}

.tree label.tree-group.collapsed .tree-chevron {
  transform: rotate(90deg);
}

.tree label[hidden] {
  display: none !important;
}

@keyframes tree-expand {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}

@keyframes tree-collapse {
  from { opacity: 1; transform: none; }
  to   { opacity: 0; transform: translateY(-6px); }
}

.tree label.level2.expanding {
  animation: tree-expand .18s ease-out;
}

.tree label.level2.collapsing {
  animation: tree-collapse .15s ease-in forwards;
}


.tree .level2 .tree-chevron {
  visibility: hidden;
}

.tree .level2[data-group] .tree-chevron { visibility: visible; }
.tree .level3 { padding-left: 49px; }
.tree .level3 .tree-chevron { visibility: hidden; }
.permission-disabled { opacity: .48 !important; pointer-events: none !important; }
.panel-permission-actions{display:grid;grid-template-columns:140px repeat(4,1fr);align-items:center;margin-top:8px;border:1px solid #9aa2a8;background:#f5f7f8}.panel-permission-actions>b{padding:7px 9px;color:#294d64}.panel-permission-actions label{display:flex;align-items:center;justify-content:center;gap:5px;min-height:32px;padding:5px;border-left:1px solid #abb1b4;font-size:11px;white-space:nowrap}.panel-permission-actions input{margin:0}
.specific-permission-actions{margin-top:8px;border:1px solid #9aa2a8;background:#f5f7f8}.specific-permission-actions>strong{display:block;padding:7px 9px;border-bottom:1px solid #abb1b4;color:#294d64}.specific-permission-row{display:flex;align-items:center;gap:14px;min-height:34px;padding:5px 9px;border-bottom:1px solid #b6bbbd}.specific-permission-row:last-child{border-bottom:0}.specific-permission-row>b{width:180px;flex:0 0 180px}.specific-permission-row label{display:flex;align-items:center;gap:5px;white-space:nowrap}.specific-permission-row input{margin:0}

.permissions-head .permission-user-field{min-width:300px}.permissions-head .permission-user-field select{width:220px;height:25px;border:1px solid #8ea1ae;background:#fff;padding:2px 24px 2px 6px;color:#1f3442;font:inherit}
.permission-grid .users{display:block;grid-template-columns:none}.permission-grid .users label{width:100%}
.permission-grid #user-list input[type="checkbox"]{display:none}

.users label.new-user-permission {
  color: #315f7f;
  font-weight: 600;
  background: #e5f0e3;
  box-shadow: inset 3px 0 0 #4f9f3d;
  animation: screen-enter .22s ease-out;
}

.users label small {
  margin-left: 5px;
  color: #6a777e;
  font-size: 9px;
  font-weight: 400;
}

.modal {
  border-color: #68757d !important;
}

.modal:has(.fleet-form) {
  width: 720px;
  max-width: calc(100vw - 40px);
}

.modal-body {
  max-height: min(70vh, 600px);
  overflow: auto;
}

.modal-body:has(.fleet-form) {
  max-height: none;
  overflow: visible;
}

.file-picker {
  display: flex;
  align-items: center;
  min-height: 31px;
  margin-top: 3px;
  overflow: hidden;
  border: 1px solid #9ba9b4;
  background: #fff;
  box-shadow: inset 1px 1px 2px rgba(0, 0, 0, .06);
}

.file-picker input[type="file"] {
  display: none;
}

.file-picker button {
  flex: 0 0 auto;
  height: 29px;
  margin: 0;
  padding: 0 12px;
  border: 0;
  border-right: 1px solid #aab5bd;
  background: linear-gradient(#fff, #e1e6e9);
  color: #263b49;
  cursor: pointer;
}

.file-picker button:hover {
  background: linear-gradient(#f5fbff, #d7e8f3);
}

.file-picker span {
  flex: 1;
  min-width: 0;
  padding: 0 10px;
  overflow: hidden;
  color: #78858e;
  line-height: 29px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-picker span.has-file {
  color: #255d36;
}

.file-picker .file-name-edit {
  flex: 1;
  min-width: 0;
  height: 29px;
  padding: 0 10px;
  border: 0;
  border-radius: 0;
  outline: 0;
  background: transparent;
  color: #255d36;
  font: inherit;
  box-shadow: none;
}

.file-picker .file-name-edit:disabled {
  color: #78858e;
  background: transparent;
  opacity: 1;
}

.file-picker .file-name-edit:focus {
  background: #f8fcff;
  box-shadow: inset 0 0 0 1px #6e96b1;
}

.file-picker .file-remove {
  border-right: 0;
  border-left: 1px solid #a2a8ad;
  color: #8a302a;
}

.crlv-analysis {
  display: block;
  margin-top: 4px;
  color: #667680;
  font-size: 10px;
  font-weight: 400;
}

