:root {
  --yalioo-page-bg: #f3f4f6;
  --yalioo-surface: #ffffff;
  --yalioo-surface-muted: #f8f9fa;
  --yalioo-border: #e5e7eb;
  --yalioo-text: #283c50;
  --yalioo-text-muted: #64748b;
  --yalioo-shadow: none;
}

html.app-skin-dark {
  --yalioo-page-bg: #080808;
  --yalioo-surface: #151515;
  --yalioo-surface-muted: #1c1c1c;
  --yalioo-border: #2c241d;
  --yalioo-text: #fff7eb;
  --yalioo-text-muted: #b6ad9f;
  --yalioo-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  --yalioo-accent: #ff7f1c;
  --yalioo-accent-2: #f6ab2e;
  --yalioo-accent-soft: rgba(255, 127, 28, 0.18);
}

body {
  background: var(--yalioo-page-bg);
  color: var(--yalioo-text-muted);
}

html.app-skin-dark .avatar-image, html.app-skin-dark .avatar-text, html.app-skin-dark .border, html.app-skin-dark .border-bottom, html.app-skin-dark .border-end, html.app-skin-dark .border-start, html.app-skin-dark .border-top, html.app-skin-dark .btn-icon, html.app-skin-dark .btn-light, html.app-skin-dark .btn-light-brand, html.app-skin-dark .card, html.app-skin-dark .card-footer, html.app-skin-dark .card-header, html.app-skin-dark .dropdown-divider, html.app-skin-dark .dropdown-header, html.app-skin-dark .dropdown-menu, html.app-skin-dark .filter-btn, html.app-skin-dark .footer, html.app-skin-dark .form-control, html.app-skin-dark .input-group-text, html.app-skin-dark .ladda-button, html.app-skin-dark .language_select a, html.app-skin-dark .list-group-item, html.app-skin-dark .modal-content, html.app-skin-dark .modal-footer, html.app-skin-dark .modal-header, html.app-skin-dark .notifications-footer, html.app-skin-dark .notifications-head, html.app-skin-dark .notifications-item, html.app-skin-dark .nxl-header, html.app-skin-dark .offcanvas, html.app-skin-dark .page-content-left-close-toggle, html.app-skin-dark .page-content-left-sidebar-wrapper, html.app-skin-dark .page-content-right-close-toggle, html.app-skin-dark .page-content-right-sidebar-wrapper, html.app-skin-dark .page-header, html.app-skin-dark .page-header-right-close-toggle, html.app-skin-dark .page-header-right-items, html.app-skin-dark .pagination-common-style li a, html.app-skin-dark .reportrange-picker-field, html.app-skin-dark .table thead th, html.app-skin-dark .table tr td, html.app-skin-dark .timesheets-footer, html.app-skin-dark .timesheets-head
 {
    border-color: #2c241d !important;
}

html.app-skin-dark .nxl-navigation .navbar-content {
    border-right: 1px solid #2c241d !important;
}

html.app-skin-dark body {
  /* background:
    radial-gradient(circle at 15% 20%, rgba(255, 127, 28, 0.16), transparent 24%),
    radial-gradient(circle at 86% 18%, rgba(246, 171, 46, 0.20), transparent 22%),
    radial-gradient(circle at 88% 82%, rgba(255, 127, 28, 0.12), transparent 18%),
    linear-gradient(180deg, #080808 0%, #090909 40%, #0b0b0b 100%); */
  background: #080808 !important;
}

html.app-skin-dark a {
  color: var(--yalioo-text);
}

html.app-skin-dark a:hover {
  color: var(--yalioo-accent-2);
}

html.app-skin-dark .h1,
html.app-skin-dark .h2,
html.app-skin-dark .h3,
html.app-skin-dark .h4,
html.app-skin-dark .h5,
html.app-skin-dark .h6,
html.app-skin-dark h1,
html.app-skin-dark h2,
html.app-skin-dark h3,
html.app-skin-dark h4,
html.app-skin-dark h5,
html.app-skin-dark h6 {
  color: var(--yalioo-text);
}

.content-panel {
  box-shadow: var(--yalioo-shadow) !important;
}

.no-border{
  border: 0 !important;
}

.form-select {
  font-size: 14px !important;
}
.nxl-navigation .m-header {
  background: transparent !important;
  border-bottom: 0px !important;
}

html.app-skin-dark .nxl-navigation,
html.app-skin-dark .nxl-navigation .navbar-wrapper,
html.app-skin-dark .nxl-navigation .navbar-content,
html.app-skin-dark .nxl-header,
html.app-skin-dark .page-header {
  background: #101010 !important;
}

html.app-skin-dark .nxl-navigation .m-header {
  background: #101010 !important;
  border-right: 1px solid var(--yalioo-border) !important;
  border-bottom: 1px solid var(--yalioo-border) !important;
}

html.app-skin-dark .nxl-navigation .navbar-content,
html.app-skin-dark .nxl-navigation .navbar-content .nxl-caption,
html.app-skin-dark .nxl-navigation .navbar-content .nxl-link {
  color: var(--yalioo-text-muted) !important;
}

html.app-skin-dark .nxl-navigation .navbar-content .nxl-item.active > .nxl-link,
html.app-skin-dark .nxl-navigation .navbar-content .nxl-item:hover > .nxl-link,
html.app-skin-dark .nxl-navigation .navbar-content .nxl-item:focus > .nxl-link {
  color: var(--yalioo-text) !important;
  background-color: rgba(255, 127, 28, 0.15) !important;
}

html.app-skin-dark .nxl-navigation .navbar-content .nxl-item.active > .nxl-link .nxl-micon i,
html.app-skin-dark .nxl-navigation .navbar-content .nxl-item:hover > .nxl-link .nxl-micon i,
html.app-skin-dark .nxl-navigation .navbar-content .nxl-item:focus > .nxl-link .nxl-micon i {
  color: var(--yalioo-accent-2) !important;
}

html.app-skin-dark .nxl-navigation .navbar-content .nxl-hasmenu.active > .nxl-link,
html.app-skin-dark .nxl-navigation .navbar-content .nxl-hasmenu:hover > .nxl-link {
  background-color: rgba(255, 127, 28, 0.15) !important;
}

html.app-skin-dark .nxl-navigation .navbar-content .nxl-submenu .nxl-item.active > .nxl-link {
  color: var(--yalioo-text) !important;
  background-color: rgba(255, 127, 28, 0.15) !important;
}

html.app-skin-dark .nxl-navigation .navbar-content .nxl-submenu .nxl-item.active > .nxl-link i,
html.app-skin-dark .nxl-navigation .navbar-content .nxl-submenu .nxl-item:hover > .nxl-link i {
  color: var(--yalioo-accent-2) !important;
}

.sidebar-account {
  background: var(--yalioo-surface-muted) !important;
  border-color: var(--yalioo-border) !important;
}

html.app-skin-dark .sidebar-account .small,
html.app-skin-dark .sidebar-account .text-muted {
  color: var(--yalioo-text-muted) !important;
}

html.app-skin-dark .sidebar-account .btn-outline-secondary,
html.app-skin-dark .sidebar-account .btn-light {
  color: var(--yalioo-text) !important;
  background-color: var(--yalioo-surface) !important;
  border-color: var(--yalioo-border) !important;
}

html.app-skin-dark .sidebar-account .btn-outline-secondary:hover,
html.app-skin-dark .sidebar-account .btn-light:hover {
  color: #ffffff !important;
  background-color: rgba(255, 127, 28, 0.16) !important;
  border-color: var(--yalioo-accent) !important;
}

.content-panel-header h3 {
    font-size: 16px !important;
}

.cards-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 1200px) {
  .cards-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.tab-content {
  display: none;
  margin-top: 1rem;
}

.tab-content.active {
  display: block;
}

.content-panel {
  background: var(--yalioo-surface);
  border: 1px solid var(--yalioo-border);
  border-radius: 0.5rem;
  margin-bottom: 1rem;
}

.content-panel-header {
  padding: 1rem;
  border-bottom: 1px solid var(--yalioo-border);
  color: var(--yalioo-text);
}

.content-panel-body {
  padding: 1rem;
}

.builder-form .content-panel > *:not(.content-panel-header) {
  padding-left: 1rem;
  padding-right: 1rem;
}

.builder-form .content-panel > *:last-child {
  padding-bottom: 1rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group input:not([type="checkbox"]):not([type="color"]):not([type="range"]),
.form-group textarea,
.form-group select {
  width: 100%;
}

.builder-form .form-label,
.builder-form label {
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.builder-form .checkbox-wrapper .form-check-input {
  margin-top: 0;
}

.form-row {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

.checkbox-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.content-panel-header h3,
.content-panel-header h4 {
  margin: 0;
}

.plan-banner {
  border: 1px solid var(--yalioo-border);
  background: var(--yalioo-surface-muted);
  color: var(--yalioo-text);
  border-radius: 0.5rem;
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
}

.plan-warning {
  display: block;
  color: #8a5a00;
  background: #fff3cd;
  border: 1px solid #ffe69c;
  border-radius: 0.375rem;
  padding: 0.375rem 0.5rem;
  margin-top: 0.4rem;
}

.hidden {
  display: none !important;
}

.hours-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.5rem;
}

.hours-label {
  font-weight: 600;
}

.plan-lock-wrap {
  position: relative;
}

.plan-lock-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
  border-radius: 0.5rem;
}

html.app-skin-dark .plan-warning {
  color: #ffd27a;
  background: rgba(255, 127, 28, 0.08);
  border-color: rgba(255, 127, 28, 0.22);
}

html.app-skin-dark .plan-lock-overlay {
  background: rgba(8, 8, 8, 0.72);
}

.plan-lock-overlay-link {
  display: inline-block;
  margin-top: 0.35rem;
}

.toast {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  background: var(--yalioo-surface);
  color: var(--yalioo-text);
  padding: 0.65rem 0.85rem;
  border-radius: 0.5rem;
  border: 1px solid var(--yalioo-border);
  z-index: 1080;
  animation: slideIn 0.3s ease forwards;
}

@keyframes slideIn {
  from { transform: translateY(6px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.builder-sidebar-content {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 80px);
  height: calc(100vh - 80px);
}

.builder-sidebar-nav {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
}

.sidebar-account {
  flex: 0 0 auto;
  background: var(--yalioo-surface-muted);
}


.sidebar-account-actions {
  align-items: center;
}

.sidebar-account-btn {
  font-size: 12px;
  padding: 0.25rem 0.5rem;
  line-height: 1.2;
  white-space: nowrap;
}

.impersonation-banner {
  position: sticky;
  top: 0;
  z-index: 2000;
  width: 100%;
  background: rgba(255, 127, 28, 0.12);
  border-bottom: 1px solid rgba(255, 127, 28, 0.24);
}

html.app-skin-dark .impersonation-banner {
  background: rgba(255, 127, 28, 0.10);
  border-bottom-color: rgba(255, 127, 28, 0.24);
}

.impersonation-banner__content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.impersonation-banner__label {
  color: #fff1d6;
  font-size: 0.9rem;
}

html.app-skin-dark .impersonation-banner__label {
  color: var(--yalioo-text);
}

.theme-switcher {
  width: 100%;
  margin-bottom: 0.75rem;
  padding: 0;
  border: 1px solid var(--yalioo-border);
  background: var(--yalioo-surface);
  border-radius: 0.5rem;
  box-shadow: none;
}

.theme-switcher .form-select {
  width: 100%;
}

.theme-switcher__label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--yalioo-text-muted);
}

.theme-switcher select.form-select {
  margin: 0;
  background-color: var(--yalioo-surface-muted);
  color: var(--yalioo-text);
  border-color: var(--yalioo-border);
  border-radius: 0.375rem;
}

html.app-skin-dark .form-control,
html.app-skin-dark .form-select,
html.app-skin-dark .input-group-text,
html.app-skin-dark .dropdown-menu,
html.app-skin-dark .modal-content,
html.app-skin-dark .card,
html.app-skin-dark .content-panel,
html.app-skin-dark .table,
html.app-skin-dark .nav-tabs .nav-link,
html.app-skin-dark .btn,
html.app-skin-dark .alert,
html.app-skin-dark .badge {
  border-color: var(--yalioo-border) !important;
}

html.app-skin-dark .form-control,
html.app-skin-dark .form-select,
html.app-skin-dark .input-group-text,
html.app-skin-dark .dropdown-menu,
html.app-skin-dark .modal-content,
html.app-skin-dark .card,
html.app-skin-dark .content-panel,
html.app-skin-dark .table,
html.app-skin-dark .nav-tabs .nav-link {
  background-color: var(--yalioo-surface) !important;
  color: var(--yalioo-text) !important;
}

html.app-skin-dark .form-control::placeholder {
  color: #7f7465 !important;
}

html.app-skin-dark .btn-primary,
html.app-skin-dark .btn-success,
html.app-skin-dark .btn-warning,
html.app-skin-dark .btn-info {
  color: #111 !important;
  border-color: transparent !important;
  background: linear-gradient(135deg, var(--yalioo-accent), var(--yalioo-accent-2)) !important;
}

html.app-skin-dark .btn-outline-primary,
html.app-skin-dark .btn-outline-secondary,
html.app-skin-dark .btn-outline-dark {
  color: var(--yalioo-text) !important;
  background: transparent !important;
  border-color: var(--yalioo-border) !important;
}

html.app-skin-dark .btn-outline-primary:hover,
html.app-skin-dark .btn-outline-secondary:hover,
html.app-skin-dark .btn-outline-dark:hover {
  color: #111 !important;
  background: linear-gradient(135deg, var(--yalioo-accent), var(--yalioo-accent-2)) !important;
  border-color: transparent !important;
}

html.app-skin-dark .badge {
  background: rgba(255, 127, 28, 0.12) !important;
  color: #ffd99b !important;
}

html.app-skin-dark .alert-info {
  background: rgba(255, 127, 28, 0.10) !important;
  color: #fff1d6 !important;
}

html.app-skin-dark .table thead th,
html.app-skin-dark .table tfoot th {
  color: var(--yalioo-text-muted) !important;
}

html.app-skin-dark .table tbody tr:hover > * {
  background-color: rgba(255, 127, 28, 0.08) !important;
}

html.app-skin-dark .table.table-hover > tbody > tr:hover > *,
html.app-skin-dark .table.table-striped > tbody > tr:nth-of-type(odd) > *,
html.app-skin-dark .table > tbody > tr:hover > *,
html.app-skin-dark .table > tbody > tr:nth-of-type(odd) > * {
  --bs-table-accent-bg: rgba(255, 127, 28, 0.06) !important;
  background-color: rgba(255, 127, 28, 0.06) !important;
  color: var(--yalioo-text) !important;
}

html.app-skin-dark .table > :not(caption) > * > * {
  background-color: var(--yalioo-surface) !important;
}

html.app-skin-dark .table.table-hover > tbody > tr:hover > *,
html.app-skin-dark .table.table-striped > tbody > tr:nth-of-type(odd) > * {
  background-image: none !important;
}

html.app-skin-dark .nav-tabs {
  --bs-nav-tabs-border-width: 1px;
  --bs-nav-tabs-border-color: var(--yalioo-border);
  --bs-nav-tabs-link-hover-border-color: var(--yalioo-border) var(--yalioo-border) var(--yalioo-border);
  --bs-nav-tabs-link-active-color: var(--yalioo-accent-2);
  --bs-nav-tabs-link-active-bg: var(--yalioo-surface-muted);
  --bs-nav-tabs-link-active-border-color: var(--yalioo-border) var(--yalioo-border) var(--yalioo-surface-muted);
  border-bottom: 1px solid var(--yalioo-border) !important;
}

html.app-skin-dark .nav-tabs .nav-link,
html.app-skin-dark .nav-tabs .nav-link:hover,
html.app-skin-dark .nav-tabs .nav-link.active,
html.app-skin-dark .nav-tabs .nav-item.show .nav-link {
  background-color: var(--yalioo-surface) !important;
  color: var(--yalioo-text) !important;
  border-color: var(--yalioo-border) !important;
}

html.app-skin-dark .nav-tabs .nav-link.active,
html.app-skin-dark .nav-tabs .nav-item.show .nav-link {
  background-color: var(--yalioo-surface-muted) !important;
  color: var(--yalioo-accent-2) !important;
}

html.app-skin-dark .nxl-navigation .navbar-content .nxl-item.active > .nxl-link,
html.app-skin-dark .nxl-navigation .navbar-content .nxl-item:hover > .nxl-link,
html.app-skin-dark .nxl-navigation .navbar-content .nxl-item:focus > .nxl-link {
  color: var(--yalioo-text) !important;
  background-color: rgba(255, 127, 28, 0.18) !important;
}

html.app-skin-dark .nxl-navigation .navbar-content .nxl-item.active > .nxl-link .nxl-micon i,
html.app-skin-dark .nxl-navigation .navbar-content .nxl-item.active > .nxl-link .nxl-mtext,
html.app-skin-dark .nxl-navigation .navbar-content .nxl-item.active > .nxl-link .nxl-arrow i,
html.app-skin-dark .nxl-navigation .navbar-content .nxl-item:hover > .nxl-link .nxl-micon i,
html.app-skin-dark .nxl-navigation .navbar-content .nxl-item:hover > .nxl-link .nxl-mtext,
html.app-skin-dark .nxl-navigation .navbar-content .nxl-item:hover > .nxl-link .nxl-arrow i {
  color: var(--yalioo-text) !important;
}

html.app-skin-dark .builder-sidebar-nav,
html.app-skin-dark .nxl-navigation .navbar-content {
  scrollbar-width: thin;
  scrollbar-color: var(--yalioo-accent) #101010;
}

html.app-skin-dark .builder-sidebar-nav::-webkit-scrollbar,
html.app-skin-dark .nxl-navigation .navbar-content::-webkit-scrollbar {
  width: 6px;
}

html.app-skin-dark .builder-sidebar-nav::-webkit-scrollbar-track,
html.app-skin-dark .nxl-navigation .navbar-content::-webkit-scrollbar-track,
html.app-skin-dark ::-webkit-scrollbar-track {
  background-color: #101010 !important;
}

html.app-skin-dark .builder-sidebar-nav::-webkit-scrollbar-thumb,
html.app-skin-dark .nxl-navigation .navbar-content::-webkit-scrollbar-thumb,
html.app-skin-dark ::-webkit-scrollbar-thumb {
  background-color: #3b2d1d !important;
}

html.app-skin-dark .builder-sidebar-nav::-webkit-scrollbar-thumb:hover,
html.app-skin-dark .nxl-navigation .navbar-content::-webkit-scrollbar-thumb:hover,
html.app-skin-dark ::-webkit-scrollbar-thumb:hover {
  background-color: var(--yalioo-accent) !important;
}

html.app-skin-dark .ps__rail-x,
html.app-skin-dark .ps__rail-y {
  background-color: transparent !important;
}

html.app-skin-dark .ps__thumb-x,
html.app-skin-dark .ps__thumb-y {
  background-color: #3b2d1d !important;
}

html.app-skin-dark .ps .ps__rail-x.ps--clicking .ps__thumb-x,
html.app-skin-dark .ps .ps__rail-x:focus > .ps__thumb-x,
html.app-skin-dark .ps .ps__rail-x:hover > .ps__thumb-x,
html.app-skin-dark .ps .ps__rail-y.ps--clicking .ps__thumb-y,
html.app-skin-dark .ps .ps__rail-y:focus > .ps__thumb-y,
html.app-skin-dark .ps .ps__rail-y:hover > .ps__thumb-y {
  background-color: var(--yalioo-accent) !important;
}
