body.crm-extjs-enabled {
  --crm-ext-bg-top: #e4e7eb;
  --crm-ext-bg-bottom: #d5d9de;
  --crm-ext-panel-top: #f7f7f8;
  --crm-ext-panel-bottom: #eceef1;
  --crm-ext-panel-border: #a6adb7;
  --crm-ext-toolbar-top: #f6f7f8;
  --crm-ext-toolbar-bottom: #dde1e6;
  --crm-ext-header-top: #fafafb;
  --crm-ext-header-bottom: #dfe3e8;
  --crm-ext-title: #2d3a48;
  --crm-ext-text: #26323c;
  --crm-ext-accent: #2f87da;
  --crm-ext-accent-strong: #206db3;
  --crm-ext-grid-line: #cfd4da;
  background:
    linear-gradient(180deg, rgba(255,255,255,.42), rgba(255,255,255,0)),
    linear-gradient(180deg, var(--crm-ext-bg-top), var(--crm-ext-bg-bottom));
  color: var(--crm-ext-text);
}

body.crm-extjs-enabled .crm-ext-shell {
  display: grid;
  gap: 1rem;
}

body.crm-extjs-enabled .crm-ext-toolbar,
body.crm-extjs-enabled .crm-ext-panel,
body.crm-extjs-enabled .crm-ext-modal .modal-content {
  border: 1px solid var(--crm-ext-panel-border);
  border-radius: 0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.95), 0 1px 2px rgba(33,48,66,.12);
}

body.crm-extjs-enabled .crm-ext-toolbar {
  padding: .75rem;
  background: linear-gradient(180deg, var(--crm-ext-toolbar-top), var(--crm-ext-toolbar-bottom));
  border-top: 1px solid rgba(255,255,255,.9);
}

body.crm-extjs-enabled .crm-ext-panel {
  overflow: hidden;
  background: linear-gradient(180deg, var(--crm-ext-panel-top), var(--crm-ext-panel-bottom));
}

body.crm-extjs-enabled .crm-ext-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  min-height: 34px;
  padding: .45rem .7rem;
  border-bottom: 1px solid var(--crm-ext-panel-border);
  background: linear-gradient(180deg, var(--crm-ext-header-top), var(--crm-ext-header-bottom));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.85);
}

body.crm-extjs-enabled .crm-ext-panel-title {
  margin: 0;
  font-size: .83rem;
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--crm-ext-title);
}

body.crm-extjs-enabled .crm-ext-panel-body {
  padding: .85rem;
}

body.crm-extjs-enabled .crm-ext-toolbar .btn,
body.crm-extjs-enabled .crm-ext-toolbar .form-select,
body.crm-extjs-enabled .crm-ext-toolbar .form-control,
body.crm-extjs-enabled .crm-ext-panel .btn,
body.crm-extjs-enabled .crm-ext-panel .form-select,
body.crm-extjs-enabled .crm-ext-panel .form-control,
body.crm-extjs-enabled .crm-ext-panel .select2-selection,
body.crm-extjs-enabled .crm-ext-modal .btn,
body.crm-extjs-enabled .crm-ext-modal .form-select,
body.crm-extjs-enabled .crm-ext-modal .form-control {
  border-radius: 0 !important;
}

body.crm-extjs-enabled .btn {
  min-height: 30px;
  padding: .2rem .58rem;
  font-weight: 600;
  font-size: .82rem;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.75);
}

body.crm-extjs-enabled .crm-ext-toolbar .btn-primary,
body.crm-extjs-enabled .crm-ext-panel .btn-primary {
  background: linear-gradient(180deg, #fefefe, #dbe3ec);
  border-color: #9fb0c2;
  color: #21364e;
}

body.crm-extjs-enabled .btn-success {
  background: linear-gradient(180deg, #fefefe, #dbe3ec);
  border-color: #9fb0c2;
  color: #21364e;
}

body.crm-extjs-enabled .btn-outline-secondary,
body.crm-extjs-enabled .btn-outline-primary,
body.crm-extjs-enabled .btn-outline-success,
body.crm-extjs-enabled .btn-outline-danger,
body.crm-extjs-enabled .btn-outline-warning,
body.crm-extjs-enabled .btn-outline-info,
body.crm-extjs-enabled .btn-secondary,
body.crm-extjs-enabled .btn-light {
  background: linear-gradient(180deg, #fdfefe, #dce3eb);
  border-color: #a9b7c8;
  color: #21364e;
}

body.crm-extjs-enabled .btn-outline-danger {
  color: #7f2330;
}

body.crm-extjs-enabled .btn-outline-warning {
  color: #7b5b10;
}

body.crm-extjs-enabled .btn-outline-primary:hover,
body.crm-extjs-enabled .btn-outline-primary:focus,
body.crm-extjs-enabled .btn-primary:hover,
body.crm-extjs-enabled .btn-primary:focus {
  background: linear-gradient(180deg, #4e9ae5, #2f7fcf);
  border-color: #2a6fb2;
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18);
}

body.crm-extjs-enabled .btn .bi {
  font-size: .82rem;
}

body.crm-extjs-enabled .btn:hover {
  filter: brightness(.98);
}

body.crm-extjs-enabled .form-control,
body.crm-extjs-enabled .form-select,
body.crm-extjs-enabled .select2-container .select2-selection--single,
body.crm-extjs-enabled .select2-container .select2-selection--multiple {
  min-height: 30px;
  background: linear-gradient(180deg, #ffffff, #f5f6f8) !important;
  border: 1px solid #b2b9c2 !important;
  box-shadow: inset 0 1px 2px rgba(0,0,0,.04) !important;
}

body.crm-extjs-enabled .form-control:focus,
body.crm-extjs-enabled .form-select:focus,
body.crm-extjs-enabled .select2-container--default.select2-container--open .select2-selection--single,
body.crm-extjs-enabled .select2-container--default.select2-container--focus .select2-selection--multiple {
  border-color: #74a8d7 !important;
  box-shadow: 0 0 0 1px rgba(116,168,215,.16), inset 0 1px 2px rgba(0,0,0,.03) !important;
}

body.crm-extjs-enabled .badge {
  border-radius: 2px !important;
  font-size: .68rem;
}

body.crm-extjs-enabled .crm-ext-panel .table-responsive {
  margin-top: 0;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

body.crm-extjs-enabled .crm-ext-panel table.dataTable,
body.crm-extjs-enabled .crm-ext-panel .table {
  margin-bottom: 0;
  border-collapse: collapse !important;
  border-spacing: 0 !important;
  background: #edf2f7;
  border: 1px solid var(--crm-ext-grid-line);
}

body.crm-extjs-enabled .crm-ext-panel .table thead th,
body.crm-extjs-enabled .crm-ext-panel table.dataTable thead th {
  background: linear-gradient(180deg, #f8f8f9, #e1e5ea) !important;
  color: #556473 !important;
  border: 1px solid var(--crm-ext-grid-line) !important;
  font-size: .78rem;
  font-weight: 700;
  white-space: nowrap;
}

body.crm-extjs-enabled .crm-ext-panel .table tbody td,
body.crm-extjs-enabled .crm-ext-panel table.dataTable tbody td {
  background: rgba(255,255,255,.95);
  border: 1px solid var(--crm-ext-grid-line);
}

body.crm-extjs-enabled .crm-ext-panel .table tbody tr:nth-child(even) td {
  background: rgba(244,247,250,.96);
}

body.crm-extjs-enabled .crm-ext-panel .table tbody tr:hover td {
  background: rgba(237,242,247,.98);
}

body.crm-extjs-enabled .crm-ext-modal .modal-header,
body.crm-extjs-enabled .crm-ext-modal .modal-footer {
  border-radius: 0 !important;
  background: linear-gradient(180deg, var(--crm-ext-header-top), var(--crm-ext-header-bottom)) !important;
}
