@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

/* =========================================================
   BERRY Vue Material theme → DARK CRONS (full site)
   Colors from berry-vue PurpleTheme
   ========================================================= */
:root {
  --berry-primary: #1e88e5;
  --berry-primary-dark: #1565c0;
  --berry-primary-200: #90caf9;
  --berry-secondary: #5e35b1;
  --berry-secondary-dark: #4527a0;
  --berry-secondary-200: #b39ddb;
  --berry-info: #03c9d7;
  --berry-success: #00c853;
  --berry-warning: #ffc107;
  --berry-error: #f44336;
  --berry-lightprimary: #eef2f6;
  --berry-lightsecondary: #ede7f6;
  --berry-lightsuccess: #b9f6ca;
  --berry-lighterror: #f9d8d8;
  --berry-lightwarning: #fff8e1;
  --berry-darkText: #212121;
  --berry-lightText: #616161;
  --berry-border: rgba(208, 208, 208, 0.36);
  --berry-border-solid: #e3e8ef;
  --berry-container: #eef2f6;
  --berry-surface: #ffffff;
  --berry-sidebar-w: 260px;
  --berry-header-h: 80px;
  --berry-radius: 12px;
  --berry-shadow: 0 2px 14px 0 rgba(32, 40, 45, 0.08);
  --berry-shadow-lg: 0 8px 24px rgba(32, 40, 45, 0.12);
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: 'Roboto', sans-serif !important;
  background: var(--berry-container) !important;
  color: var(--berry-darkText) !important;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--berry-primary); text-decoration: none; }
a:hover { color: var(--berry-primary-dark); }

body.hold-transition,
body.dark-crons {
  background: var(--berry-container) !important;
  color: var(--berry-darkText) !important;
}

/* ========== APP SHELL ========== */
.berry-app {
  min-height: 100vh;
  display: flex;
  background: #fff;
}

.berry-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  width: var(--berry-sidebar-w);
  height: 100vh;
  background: #fff;
  border-right: 0;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  padding: 0 8px 16px;
  transition: transform .25s ease;
}

.berry-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 24px 16px 20px;
  text-decoration: none !important;
  color: var(--berry-darkText) !important;
}
.berry-brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--berry-primary), var(--berry-secondary));
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 16px;
  flex-shrink: 0;
}
.berry-brand-text {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--berry-secondary);
}

.berry-menu-label {
  padding: 8px 16px 4px;
  margin: 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--berry-lightText);
}

.berry-nav {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
  padding-bottom: 8px;
}

.berry-menu {
  list-style: none;
  margin: 0 0 8px;
  padding: 4px 8px 0;
  overflow: visible;
  flex: none;
}
.berry-menu > li { margin-bottom: 4px; }

.berry-menu a,
.berry-menu-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 14px;
  border: 0;
  border-radius: var(--berry-radius);
  background: transparent;
  color: var(--berry-lightText);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 400;
  text-align: left;
  cursor: pointer;
  text-decoration: none !important;
  transition: background .15s, color .15s;
}
.berry-menu a:hover,
.berry-menu-btn:hover {
  background: rgba(94, 53, 177, 0.05);
  color: var(--berry-secondary);
}
.berry-menu a.active,
.berry-menu-btn.active {
  background: rgba(94, 53, 177, 0.08);
  color: var(--berry-secondary);
  font-weight: 500;
}
.berry-menu a.active i,
.berry-menu-btn.active i { color: var(--berry-secondary); }
.berry-menu i { width: 20px; text-align: center; font-size: 18px; }

.berry-menu .berry-sub {
  list-style: none;
  margin: 2px 0 6px 18px;
  padding: 0 0 0 12px;
  border-left: 1px solid rgba(30, 136, 229, 0.15);
  display: none;
}
.berry-menu .berry-tree.open > .berry-sub { display: block; }
.berry-menu .berry-sub a {
  padding: 8px 12px;
  font-size: 0.8125rem;
}
.berry-chevron {
  margin-left: auto;
  font-size: 12px !important;
  transition: transform .2s;
}
.berry-tree.open > .berry-menu-btn .berry-chevron {
  transform: rotate(180deg);
  color: var(--berry-secondary);
}

.berry-sidebar-chip {
  margin: 12px auto 8px;
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--berry-lightprimary);
  color: var(--berry-lightText);
  font-size: 11px;
  text-align: center;
}
.berry-sidebar-foot {
  margin-top: auto;
  text-align: center;
  padding-top: 8px;
  flex-shrink: 0;
}

.berry-main {
  flex: 1;
  margin-left: var(--berry-sidebar-w);
  min-width: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #fff;
}

.berry-header {
  position: sticky;
  top: 0;
  z-index: 90;
  height: var(--berry-header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 20px;
  background: #fff;
  border-bottom: 0;
}

.berry-header-left,
.berry-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.berry-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 8px;
  background: var(--berry-lightsecondary);
  color: var(--berry-secondary);
  cursor: pointer;
  text-decoration: none !important;
  transition: .15s;
}
.berry-icon-btn:hover {
  background: var(--berry-secondary);
  color: #fff;
}

.berry-clock {
  display: none;
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--berry-lightprimary);
  color: var(--berry-lightText);
  font-size: 13px;
  text-decoration: none !important;
}
@media (min-width: 992px) {
  .berry-clock { display: inline-block; }
}
.berry-clock:hover { color: var(--berry-primary); }

.berry-profile-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 4px 4px;
  border: 0;
  border-radius: 999px;
  background: var(--berry-lightprimary);
  color: var(--berry-primary);
  cursor: pointer;
  font: inherit;
  font-weight: 500;
}
.berry-profile-btn img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
}

.berry-dropdown { position: relative; }
.berry-dropdown-menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 200px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--berry-border-solid);
  border-radius: var(--berry-radius);
  box-shadow: var(--berry-shadow-lg);
  z-index: 200;
}
.berry-dropdown.open .berry-dropdown-menu { display: block; }
.berry-dropdown-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--berry-lightText) !important;
  font-size: 13px;
}
.berry-dropdown-menu a:hover {
  background: var(--berry-lightsecondary);
  color: var(--berry-secondary) !important;
}

.berry-page {
  flex: 1;
  margin: 0 16px 16px 0;
  padding: 16px;
  border-radius: var(--berry-radius);
  background: var(--berry-container);
  min-height: calc(100vh - var(--berry-header-h) - 40px);
}
@media (max-width: 1279px) {
  .berry-page { margin: 0 10px 10px; }
}

.berry-page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}
.berry-page-head h1 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--berry-darkText);
}
.berry-breadcrumb {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  font-size: 13px;
  color: var(--berry-lightText);
}
.berry-breadcrumb li + li::before {
  content: '›';
  margin-right: 6px;
  color: #9e9e9e;
}
.berry-breadcrumb a { color: var(--berry-lightText); }
.berry-breadcrumb a:hover { color: var(--berry-primary); }

.berry-footer {
  padding: 8px 24px 20px;
  text-align: center;
  color: var(--berry-lightText);
  font-size: 13px;
  background: #fff;
}

.berry-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(33, 33, 33, 0.45);
  z-index: 999;
}
body.berry-sidebar-open .berry-backdrop { display: block; }

@media (max-width: 1023px) {
  .berry-sidebar { transform: translateX(-105%); box-shadow: var(--berry-shadow-lg); }
  body.berry-sidebar-open .berry-sidebar { transform: translateX(0); }
  .berry-main { margin-left: 0; }
  .berry-page { margin: 0 10px 10px; }
}

/* ========== CARDS / BOX / TABS ========== */
.box,
.nav-tabs-custom,
.panel,
.well,
.berry-card {
  background: var(--berry-surface) !important;
  border: 1px solid var(--berry-border) !important;
  border-radius: var(--berry-radius) !important;
  box-shadow: none !important;
  color: var(--berry-darkText) !important;
  overflow: hidden;
}
.box-header {
  background: transparent !important;
  border-bottom: 1px solid var(--berry-border) !important;
  padding: 16px 20px !important;
  color: var(--berry-darkText) !important;
}
.box-header.berry-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.berry-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}
.box-header .box-title {
  color: var(--berry-darkText) !important;
  font-weight: 500;
  font-size: 1rem;
}
.box-body, .box-footer {
  background: transparent !important;
  color: var(--berry-darkText) !important;
}
.box-footer { border-top: 1px solid var(--berry-border) !important; }
.box.box-info,
.box.box-primary,
.box.box-success,
.box.box-warning,
.box.box-danger {
  border-top: 1px solid var(--berry-border) !important;
}

.nav-tabs-custom > .nav-tabs {
  background: transparent !important;
  border-bottom: 1px solid var(--berry-border) !important;
  padding: 12px 12px 0;
  margin: 0;
}
.nav-tabs-custom > .nav-tabs > li > a {
  color: var(--berry-lightText) !important;
  border: 0 !important;
  border-radius: 8px 8px 0 0 !important;
  font-weight: 500;
  text-transform: capitalize;
  background: transparent !important;
}
.nav-tabs-custom > .nav-tabs > li > a:hover {
  color: var(--berry-secondary) !important;
  background: var(--berry-lightsecondary) !important;
}
.nav-tabs-custom > .nav-tabs > li.active > a,
.nav-tabs-custom > .nav-tabs > li.active > a:hover {
  background: var(--berry-lightsecondary) !important;
  color: var(--berry-secondary) !important;
  border: 0 !important;
  border-bottom: 2px solid var(--berry-secondary) !important;
}
.nav-tabs-custom > .tab-content {
  background: transparent !important;
  padding: 20px !important;
}
.nav-tabs { border-bottom-color: var(--berry-border) !important; }
.nav-tabs > li.active > a {
  background: var(--berry-lightsecondary) !important;
  color: var(--berry-secondary) !important;
  border-color: var(--berry-border) !important;
}
hr { border-top-color: var(--berry-border) !important; }

/* ========== FORMS ========== */
.form-control,
select.form-control,
textarea.form-control,
input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
input[type="url"],
.input-group .form-control {
  background: #fff !important;
  border: 1px solid rgba(0, 0, 0, 0.12) !important;
  color: var(--berry-darkText) !important;
  border-radius: 8px !important;
  box-shadow: none !important;
  min-height: 44px;
  height: auto !important;
  padding: 10px 14px !important;
  font-size: 14px !important;
  font-weight: 500;
}
.form-control:focus,
input:focus, select:focus, textarea:focus {
  border-color: var(--berry-primary) !important;
  box-shadow: 0 0 0 1px var(--berry-primary) !important;
  outline: none !important;
}
.form-control::placeholder { color: #9e9e9e !important; font-weight: 400; }
.control-label, label {
  color: var(--berry-lightText) !important;
  font-weight: 500 !important;
}
.help-block, .hint-block, .text-muted { color: var(--berry-lightText) !important; }
.input-group-addon {
  background: var(--berry-lightprimary) !important;
  border: 1px solid rgba(0, 0, 0, 0.12) !important;
  color: var(--berry-lightText) !important;
}
.radio label, .checkbox label {
  color: var(--berry-darkText) !important;
  font-weight: 400 !important;
}
.radio-wrapper {
  background: var(--berry-lightprimary);
  border: 1px solid var(--berry-border);
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 8px;
}
option { background: #fff; color: var(--berry-darkText); }

/* ========== BUTTONS ========== */
.btn {
  border-radius: 8px !important;
  font-weight: 500 !important;
  font-family: 'Roboto', sans-serif !important;
  text-transform: capitalize !important;
  letter-spacing: 0.02em;
  padding: 10px 20px !important;
  border: none !important;
  transition: .15s ease;
  box-shadow: none !important;
}
.btn-primary, .btn-info {
  background: var(--berry-primary) !important;
  color: #fff !important;
}
.btn-primary:hover, .btn-info:hover {
  background: var(--berry-primary-dark) !important;
  color: #fff !important;
}
.btn-success { background: var(--berry-success) !important; color: #fff !important; }
.btn-warning { background: var(--berry-warning) !important; color: #212121 !important; }
.btn-danger { background: var(--berry-error) !important; color: #fff !important; }
.btn-default, .btn-default.btn-flat {
  background: #fff !important;
  border: 1px solid rgba(0,0,0,0.12) !important;
  color: var(--berry-lightText) !important;
}
.btn-default:hover {
  background: var(--berry-lightprimary) !important;
  color: var(--berry-darkText) !important;
}
.btn.bg-navy, .bg-navy {
  background: var(--berry-secondary) !important;
  color: #fff !important;
}
.btn.bg-purple, .bg-purple {
  background: var(--berry-secondary-200) !important;
  color: var(--berry-secondary-dark) !important;
}
.btn-box-tool {
  background: transparent !important;
  border: 0 !important;
  color: var(--berry-lightText) !important;
  padding: 4px 8px !important;
}
/* Berry secondary CTA (login style) */
.btn-berry-secondary {
  background: var(--berry-secondary) !important;
  color: #fff !important;
  width: 100%;
  padding: 12px 20px !important;
  font-size: 15px !important;
}
.btn-berry-secondary:hover {
  background: var(--berry-secondary-dark) !important;
  color: #fff !important;
}

/* ========== TABLES ========== */
.table { color: var(--berry-darkText) !important; background: transparent !important; }
.table > thead > tr > th {
  background: var(--berry-lightprimary) !important;
  color: var(--berry-lightText) !important;
  border-color: var(--berry-border-solid) !important;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .03em;
  font-weight: 500;
}
.table > tbody > tr > td,
.table > tbody > tr > th {
  border-color: var(--berry-border-solid) !important;
  background: transparent !important;
  vertical-align: middle !important;
}
.table-striped > tbody > tr:nth-of-type(odd) {
  background: rgba(238, 242, 246, 0.55) !important;
}
.table-hover > tbody > tr:hover {
  background: var(--berry-lightsecondary) !important;
}
.table-bordered { border-color: var(--berry-border-solid) !important; }
.table > tbody > tr.success { background: rgba(185, 246, 202, 0.35) !important; }
.table > tbody > tr.danger { background: rgba(249, 216, 216, 0.45) !important; }
.grid-view .filters input,
.grid-view .filters select {
  background: #fff !important;
  border: 1px solid rgba(0,0,0,0.12) !important;
  color: var(--berry-darkText) !important;
  border-radius: 8px !important;
}

/* ========== ALERTS / DROPDOWNS / MODALS ========== */
.alert {
  border-radius: 10px !important;
  border: 0 !important;
  color: var(--berry-darkText) !important;
}
.alert-danger { background: var(--berry-lighterror) !important; color: #c62828 !important; }
.alert-success { background: var(--berry-lightsuccess) !important; color: #1b5e20 !important; }
.alert-warning { background: var(--berry-lightwarning) !important; color: #f57f17 !important; }
.alert-info { background: #e3f2fd !important; color: var(--berry-primary-dark) !important; }

.dropdown-menu {
  background: #fff !important;
  border: 1px solid var(--berry-border-solid) !important;
  border-radius: var(--berry-radius) !important;
  box-shadow: var(--berry-shadow-lg) !important;
}
.dropdown-menu > li > a { color: var(--berry-lightText) !important; }
.dropdown-menu > li > a:hover {
  background: var(--berry-lightsecondary) !important;
  color: var(--berry-secondary) !important;
}

.modal-content {
  background: #fff !important;
  border: 0 !important;
  border-radius: var(--berry-radius) !important;
  box-shadow: var(--berry-shadow-lg);
}
.modal-header, .modal-footer { border-color: var(--berry-border-solid) !important; }

.pagination > li > a, .pagination > li > span {
  background: #fff !important;
  border: 1px solid var(--berry-border-solid) !important;
  color: var(--berry-lightText) !important;
  border-radius: 8px !important;
  margin: 0 2px;
}
.pagination > .active > a {
  background: var(--berry-primary) !important;
  border-color: var(--berry-primary) !important;
  color: #fff !important;
}
.label-primary, .label-info, .badge { background: var(--berry-primary) !important; }
.label-success { background: var(--berry-success) !important; }
.label-danger { background: var(--berry-error) !important; }
.label-warning { background: var(--berry-warning) !important; color: #212121 !important; }

.progress { background: var(--berry-lightprimary) !important; box-shadow: none; border-radius: 999px; }
.progress-bar { background: var(--berry-primary) !important; }

.content-wrapper, .content-header, .content, .main-footer { background: transparent !important; }
.content-header > h1 { color: var(--berry-darkText) !important; }

/* ========== LOGIN (Berry Auth) ========== */
.berry-auth {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--berry-lightprimary);
  padding: 32px 16px;
}
.berry-login-card {
  width: 100%;
  max-width: 475px;
  background: #fff;
  border: 1px solid var(--berry-border);
  border-radius: var(--berry-radius);
  padding: 36px 32px;
  box-shadow: none;
}
.berry-login-card .berry-logo-row {
  text-align: center;
  margin-bottom: 8px;
}
.berry-login-card .berry-logo-row .berry-brand-mark {
  margin: 0 auto 16px;
  width: 48px;
  height: 48px;
  font-size: 22px;
}
.berry-login-card h2 {
  margin: 0;
  text-align: center;
  font-size: 1.75rem;
  font-weight: 500;
  color: var(--berry-secondary);
}
.berry-login-card .berry-login-sub {
  margin: 10px 0 28px;
  text-align: center;
  color: #9e9e9e;
  font-size: 0.95rem;
  font-weight: 400;
}
.berry-login-or {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--berry-lightText);
  font-size: 12px;
}
.berry-login-or::before,
.berry-login-or::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(0,0,0,0.08);
}
.berry-login-field { margin-bottom: 20px; }
.berry-login-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
}
.berry-login-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.berry-login-row a { font-size: 13px; }

/* form actions */
.dc-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 8px;
  padding-top: 18px;
  border-top: 1px solid var(--berry-border);
}

.inline-cron-ui { display: inline-block; vertical-align: middle; }
select.inline-cron-ui, input.inline-cron-ui, #bulk-action { width: 240px; }
.table-row td { vertical-align: middle !important; }
.pointer { cursor: pointer; }
.margin-r-20 { margin-right: 20px; }
.not-set { color: #e57373; font-style: italic; }
.error-summary {
  color: #c62828;
  background: var(--berry-lighterror);
  border-left: 3px solid var(--berry-error);
  padding: 10px 20px;
  margin: 0 0 15px;
  border-radius: 8px;
}
.grid-view th { white-space: nowrap; }
.per-page.vertical select, .per-page.horizontal select { width: 120px; }
.per-page.horizontal label, .per-page.horizontal select { float: left; }
.per-page.horizontal label { padding-right: 15px; padding-top: 5px; }

.row { margin-left: -15px; margin-right: -15px; }
.row:before, .row:after { content: " "; display: table; }
.row:after { clear: both; }

.bootstrap-datetimepicker-widget,
.datepicker {
  background: #fff !important;
  color: var(--berry-darkText) !important;
  border: 1px solid var(--berry-border-solid) !important;
  border-radius: 8px !important;
}

/* Bootstrap grid still needed */
.hidden-xs { }
@media (max-width: 767px) {
  .hidden-xs { display: none !important; }
}

/* ========== BERRY DASHBOARD ========== */
.berry-dash { display: flex; flex-direction: column; gap: 20px; }

.berry-metrics {
  display: grid;
  grid-template-columns: 1.1fr 1.1fr 0.9fr;
  gap: 20px;
}
@media (max-width: 1100px) {
  .berry-metrics { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .berry-metrics { grid-template-columns: 1fr; }
}

.berry-metric {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  padding: 22px 22px 18px;
  color: #fff;
  min-height: 160px;
  box-shadow: 0 2px 14px rgba(32, 40, 45, 0.08);
}
.berry-metric--purple {
  background: linear-gradient(135deg, #5e35b1 0%, #673ab7 45%, #4527a0 100%);
}
.berry-metric--blue {
  background: linear-gradient(135deg, #1e88e5 0%, #42a5f5 50%, #1565c0 100%);
}
.berry-metric--soft-blue {
  background: #e3f2fd;
  color: var(--berry-darkText);
  min-height: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
}
.berry-metric--soft-warn {
  background: #fff;
  color: var(--berry-darkText);
  border: 1px solid var(--berry-border);
  min-height: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
}
.berry-metric-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.berry-metric-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}
.berry-metric-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(0,0,0,0.18);
  font-size: 18px;
}
.berry-metric-chip {
  background: rgba(255,255,255,0.2);
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 500;
}
.berry-metric-value {
  position: relative;
  z-index: 1;
  font-size: 2.1rem;
  font-weight: 500;
  line-height: 1.1;
}
.berry-metric-value--sm { font-size: 1.4rem; }
.berry-metric-value--dark { color: var(--berry-darkText); }
.berry-metric-label {
  position: relative;
  z-index: 1;
  margin-top: 6px;
  opacity: 0.9;
  font-size: 0.95rem;
}
.berry-metric-label--dark { color: var(--berry-lightText); opacity: 1; margin-top: 2px; font-size: 13px; }
.berry-metric-mini-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #1e88e5;
  color: #fff;
  flex-shrink: 0;
}
.berry-metric-mini-icon--warn {
  background: #ffe57f;
  color: #f57f17;
}
.berry-metric-bubbles::before,
.berry-metric-bubbles::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
}
.berry-metric-bubbles::before {
  width: 140px;
  height: 140px;
  right: -30px;
  bottom: -40px;
}
.berry-metric-bubbles::after {
  width: 90px;
  height: 90px;
  right: 40px;
  top: -20px;
}
.berry-metric-spark {
  position: relative;
  z-index: 1;
  height: 54px;
  margin-top: 10px;
}

.berry-dash-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 20px;
}
.berry-dash-grid--tables {
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 1100px) {
  .berry-dash-grid,
  .berry-dash-grid--tables { grid-template-columns: 1fr; }
}

.berry-panel {
  background: #fff;
  border: 1px solid var(--berry-border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 14px rgba(32, 40, 45, 0.05);
}
.berry-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 20px 8px;
}
.berry-panel-kicker {
  color: var(--berry-lightText);
  font-size: 13px;
  margin-bottom: 4px;
}
.berry-panel-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--berry-darkText);
}
.berry-panel-amount {
  margin-top: 8px;
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--berry-darkText);
}
.berry-panel-amount span {
  font-size: 0.85rem;
  color: var(--berry-lightText);
  font-weight: 400;
  margin-left: 4px;
}
.berry-panel-body { padding: 8px 16px 20px; }

.berry-side-feature {
  margin: 0 16px 12px;
  padding: 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(94,53,177,0.12), rgba(94,53,177,0.04));
}
.berry-side-feature-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.berry-side-feature-top strong {
  font-size: 1.5rem;
  color: var(--berry-secondary);
}
.berry-side-feature-label {
  color: var(--berry-lightText);
  font-size: 13px;
  margin-top: 2px;
}
.berry-side-mini-chart { height: 70px; margin-top: 8px; }

.berry-side-list {
  list-style: none;
  margin: 0;
  padding: 0 8px 8px;
}
.berry-side-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 12px;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
.berry-side-list li:last-child { border-bottom: 0; }
.berry-side-item-main a {
  display: block;
  color: var(--berry-darkText);
  font-weight: 500;
  font-size: 13px;
}
.berry-side-item-main small {
  display: block;
  color: var(--berry-lightText);
  font-size: 11px;
  margin-top: 2px;
}
.berry-side-empty {
  color: var(--berry-lightText);
  padding: 20px !important;
  justify-content: center !important;
}
.berry-side-footer { padding: 8px 16px 16px; }
.btn-block { display: block; width: 100%; text-align: center; }

.berry-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
}
.berry-badge--up { background: #b9f6ca; color: #00c853; }
.berry-badge--down { background: #f9d8d8; color: #f44336; }
.berry-badge--info { background: #ede7f6; color: #5e35b1; }

/* ========== CREATE / EDIT CRON FORM ========== */
.nav-tabs-custom.dc-panel {
  overflow: visible;
}
.nav-tabs-custom > .nav-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 14px 14px 10px !important;
  background: linear-gradient(180deg, #f8f5ff 0%, #fff 100%) !important;
  border-bottom: 1px solid var(--berry-border) !important;
}
.nav-tabs-custom > .nav-tabs > li {
  float: none !important;
  margin: 0 !important;
}
.nav-tabs-custom > .nav-tabs > li > a {
  border-radius: 999px !important;
  padding: 8px 14px !important;
  background: #fff !important;
  border: 1px solid rgba(0,0,0,0.06) !important;
  color: var(--berry-lightText) !important;
}
.nav-tabs-custom > .nav-tabs > li.active > a,
.nav-tabs-custom > .nav-tabs > li.active > a:hover {
  background: var(--berry-lightsecondary) !important;
  color: var(--berry-secondary) !important;
  border-color: rgba(94,53,177,0.25) !important;
  border-bottom: 1px solid rgba(94,53,177,0.25) !important;
  box-shadow: 0 2px 8px rgba(94,53,177,0.12);
}
.nav-tabs-custom > .nav-tabs > li.pull-right {
  margin-left: auto !important;
}
.nav-tabs-custom > .nav-tabs > li.pull-right > a {
  background: #e3f2fd !important;
  color: var(--berry-primary) !important;
  border-color: transparent !important;
}
.nav-tabs-custom > .tab-content {
  padding: 18px !important;
  background: #fafbfd !important;
}

.berry-form-section {
  background: #fff;
  border: 1px solid var(--berry-border);
  border-radius: 14px;
  padding: 18px 16px 8px;
  margin-bottom: 18px;
  box-shadow: 0 2px 10px rgba(32,40,45,0.04);
  border-top: 3px solid #90caf9;
}
.berry-form-section--blue { border-top-color: #1e88e5; }
.berry-form-section--purple { border-top-color: #5e35b1; }
.berry-form-section--teal { border-top-color: #00c853; }
.berry-form-section--orange { border-top-color: #ff9800; }
.berry-form-section-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 8px 16px;
  padding-bottom: 12px;
  border-bottom: 1px dashed rgba(0,0,0,0.08);
}
.berry-form-section-head h4 {
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--berry-darkText);
}
.berry-form-section-head p {
  margin: 2px 0 0;
  color: var(--berry-lightText);
  font-size: 12px;
}
.berry-form-section-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--berry-lightsecondary);
  color: var(--berry-secondary);
  flex-shrink: 0;
}
.berry-form-section--blue .berry-form-section-icon {
  background: #e3f2fd;
  color: #1e88e5;
}
.berry-form-section--teal .berry-form-section-icon {
  background: #b9f6ca;
  color: #00c853;
}
.berry-form-section--orange .berry-form-section-icon {
  background: #ffe0b2;
  color: #ef6c00;
}

.berry-schedule-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 8px;
}
@media (max-width: 992px) {
  .berry-schedule-options { grid-template-columns: 1fr; }
}
.berry-schedule-card {
  display: block;
  margin: 0;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.08);
  background: #faf7ff;
  cursor: pointer;
  transition: .15s ease;
  font-weight: 400;
}
.berry-schedule-card:hover {
  border-color: rgba(94,53,177,0.35);
  box-shadow: 0 4px 14px rgba(94,53,177,0.08);
}
.berry-schedule-card:has(input[type=radio]:checked) {
  background: #ede7f6;
  border-color: #5e35b1;
  box-shadow: 0 0 0 1px #5e35b1;
}
.berry-schedule-card-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.berry-schedule-card-top strong {
  color: var(--berry-darkText);
  font-size: 13px;
}
.berry-help-link {
  margin-left: auto;
  font-size: 12px;
}
.berry-schedule-hint {
  display: block;
  color: var(--berry-lightText);
  font-size: 12px;
}
.berry-cron-gui {
  margin: 8px 0 16px;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--berry-border);
  border-radius: 12px;
}

.berry-status-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.berry-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.1);
  background: #fff;
  cursor: pointer;
  font-weight: 400;
}
.berry-status-pill.is-active,
.berry-status-pill:has(input:checked) {
  background: #e8f5e9;
  border-color: #00c853;
  color: #1b5e20;
}
.berry-status-pill input { margin: 0; }

.berry-param-card {
  background: #fff;
  border: 1px solid var(--berry-border);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 16px;
  min-height: 180px;
  border-top: 3px solid #90caf9;
}
.berry-param-card h2 {
  margin: 0 0 14px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--berry-darkText);
}
.berry-param-card--green { border-top-color: #00c853; }
.berry-param-card--blue { border-top-color: #1e88e5; }
.berry-param-card--purple { border-top-color: #5e35b1; }
.berry-param-card .btn { margin-top: 10px; }

.dc-form-actions {
  background: #fff;
  border: 1px solid var(--berry-border);
  border-radius: 14px;
  padding: 14px 16px !important;
  margin-top: 8px;
  border-top: 3px solid #5e35b1 !important;
}

/* Header search like Berry */
.berry-search {
  flex: 1;
  max-width: 360px;
  margin: 0 16px;
  position: relative;
  display: none;
}
@media (min-width: 992px) {
  .berry-search { display: block; }
}
.berry-search input {
  width: 100%;
  height: 44px;
  border-radius: 12px !important;
  border: 0 !important;
  background: var(--berry-lightprimary) !important;
  padding-left: 42px !important;
  padding-right: 14px !important;
  box-shadow: none !important;
}
.berry-search i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--berry-lightText);
}
