/* Bamera panel compact desktop shell and grouped sidebar */
@media (min-width: 769px) {
  .sidebar {
    width: 218px;
    min-width: 218px;
    gap: 2px;
    padding: 14px 10px 12px;
  }

  .sidebar-logo {
    gap: 8px;
    padding: 2px 7px 8px;
  }

  .sidebar-logo img {
    width: 32px !important;
    height: 32px !important;
  }

  .logo-text {
    font-size: 18px;
  }

  .sidebar-divider {
    margin: 4px 0;
  }

  .sidebar-section-label {
    display: none;
  }

  .sidebar-nav--grouped {
    flex: 1;
    min-height: 0;
    gap: 3px;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-color: rgba(178, 184, 201, .25) transparent;
    scrollbar-width: thin;
  }

  .sidebar-nav--dom-grouped {
    flex: 1;
    min-height: 0;
    gap: 2px;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-color: rgba(178, 184, 201, .25) transparent;
    scrollbar-width: thin;
  }

  .sidebar-nav--grouped + .sidebar-spacer,
  .sidebar-nav--dom-grouped + .sidebar-spacer {
    display: none;
  }

  .bamera-dom-group-toggle {
    width: 100%;
    min-height: 25px;
    margin-top: 2px;
    padding: 4px 8px;
    border: 0;
    border-bottom: 1px solid rgba(178, 184, 201, .08);
    background: transparent;
    color: rgba(178, 184, 201, .72);
    display: flex;
    align-items: center;
    justify-content: space-between;
    letter-spacing: .85px;
    font: 700 9px/1.2 Inter, sans-serif;
    cursor: pointer;
    border-radius: 7px;
  }

  .bamera-dom-group-toggle:hover {
    color: #fff;
    background: rgba(255, 255, 255, .045);
  }

  .bamera-dom-group-toggle.is-collapsed .bamera-nav-chevron {
    transform: rotate(-90deg);
  }

  .bamera-hidden-by-category {
    display: none !important;
  }

  .bamera-splitter-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
  }

  .bamera-nav-group {
    border-bottom: 1px solid rgba(178, 184, 201, .08);
    padding: 0 0 3px;
  }

  .bamera-nav-group:last-child {
    border-bottom: 0;
  }

  .bamera-nav-group-toggle {
    width: 100%;
    min-height: 25px;
    padding: 4px 8px;
    border: 0;
    background: transparent;
    color: rgba(178, 184, 201, .72);
    display: flex;
    align-items: center;
    justify-content: space-between;
    letter-spacing: .85px;
    font: 700 9px/1.2 Inter, sans-serif;
    cursor: pointer;
    border-radius: 7px;
  }

  .bamera-nav-group-toggle:hover {
    color: #fff;
    background: rgba(255, 255, 255, .045);
  }

  .bamera-nav-chevron {
    color: rgba(178, 184, 201, .7);
    font-size: 15px;
    line-height: 1;
    transform: rotate(0deg);
    transition: transform .18s ease;
  }

  .bamera-nav-group-items {
    max-height: 420px;
    opacity: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 2px;
    transition: max-height .24s ease, opacity .18s ease;
  }

  .bamera-nav-group.is-collapsed .bamera-nav-group-items {
    max-height: 0;
    opacity: 0;
    pointer-events: none;
  }

  .bamera-nav-group.is-collapsed .bamera-nav-chevron {
    transform: rotate(-90deg);
  }

  .nav-card {
    min-height: 34px;
    gap: 8px;
    padding: 7px 10px;
    border-radius: 9px;
    font-size: 12.5px;
  }

  .nav-card:hover:not(.active) {
    transform: translateX(1px);
  }

  .nav-card-icon {
    width: 16px;
    height: 16px;
  }

  .nav-card-dot {
    width: 5px;
    height: 5px;
  }

  .sidebar-profile {
    gap: 8px !important;
    padding: 7px 6px 0;
  }

  .profile-avatar {
    width: 32px;
    height: 32px;
    font-size: 12px;
  }

  .profile-name {
    font-size: 11.5px;
  }

  .profile-role {
    font-size: 10px;
  }

  .header {
    height: 58px;
    gap: 8px;
    padding: 0 24px;
  }

  .header-title {
    font-size: 18px;
  }

  .header-pill {
    padding: 6px 10px;
    font-size: 12px;
  }

  .header-btn {
    padding: 8px 14px;
    font-size: 12px;
  }

  .page-body {
    gap: 16px;
    padding: 20px 24px;
  }

  .card {
    padding: 18px;
  }

  .stats-row,
  .stock-summary-row {
    gap: 14px;
  }

  .stat-card,
  .stock-sum-card {
    padding: 16px;
  }

  .two-col,
  .dash-grid2 {
    gap: 16px;
  }
}

@media (max-width: 768px) {
  .bamera-dom-group-toggle {
    width: 100%;
    min-height: 30px;
    padding: 5px 8px;
    border: 0;
    background: transparent;
    color: rgba(178, 184, 201, .72);
    display: flex;
    align-items: center;
    justify-content: space-between;
    letter-spacing: .8px;
    font: 700 9px/1.2 Inter, sans-serif;
  }

  .bamera-dom-group-toggle.is-collapsed .bamera-nav-chevron {
    transform: rotate(-90deg);
  }

  .bamera-hidden-by-category {
    display: none !important;
  }

  .bamera-nav-group-toggle {
    width: 100%;
    min-height: 30px;
    padding: 5px 8px;
    border: 0;
    background: transparent;
    color: rgba(178, 184, 201, .72);
    display: flex;
    align-items: center;
    justify-content: space-between;
    letter-spacing: .8px;
    font: 700 9px/1.2 Inter, sans-serif;
  }

  .bamera-nav-group-items {
    display: flex;
    flex-direction: column;
    gap: 3px;
  }

  .bamera-nav-group.is-collapsed .bamera-nav-group-items {
    display: none;
  }

  .bamera-nav-chevron {
    font-size: 16px;
  }

  .bamera-nav-group.is-collapsed .bamera-nav-chevron {
    transform: rotate(-90deg);
  }
}

/* Refined Bamera login with a restrained animated brand background */
.lg {
  background: #f4f6f8;
}

.lg-sol {
  isolation: isolate;
  background: linear-gradient(145deg, #203040 0%, #2C3E50 52%, #3b566f 100%);
}

.lg-sol::before,
.lg-sol::after {
  content: "";
  position: absolute;
  z-index: 0;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  pointer-events: none;
  will-change: transform;
}

.lg-sol::before {
  top: -180px;
  left: -160px;
  background: radial-gradient(circle, rgba(105, 181, 216, .34) 0%, rgba(105, 181, 216, 0) 68%);
  animation: bameraLoginOrbOne 14s ease-in-out infinite;
}

.lg-sol::after {
  right: -190px;
  bottom: -210px;
  background: radial-gradient(circle, rgba(246, 203, 117, .2) 0%, rgba(246, 203, 117, 0) 68%);
  animation: bameraLoginOrbTwo 17s ease-in-out infinite;
}

.lg-nokta {
  z-index: 1;
  opacity: .48;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, .18) 1px, transparent 1.2px),
    linear-gradient(115deg, transparent 42%, rgba(255, 255, 255, .035) 50%, transparent 58%);
  background-size: 30px 30px, 240px 240px;
  -webkit-mask-image: linear-gradient(to bottom right, #000 15%, transparent 88%);
  mask-image: linear-gradient(to bottom right, #000 15%, transparent 88%);
  animation: bameraLoginGrid 20s linear infinite;
}

.lg-marka {
  animation: bameraLoginIntro .7s cubic-bezier(.2, .75, .25, 1) both;
}

.lg-logo {
  width: 80px;
  height: 80px;
  padding: 4px;
  background: rgba(255, 255, 255, .96);
  border: 1px solid rgba(255, 255, 255, .55);
  box-shadow: 0 18px 45px rgba(11, 25, 38, .34), 0 0 0 7px rgba(255, 255, 255, .06);
}

.lg-ad {
  font-size: 32px;
}

.lg-alt {
  color: rgba(255, 255, 255, .67);
}

.lg-cizgi {
  background: rgba(255, 255, 255, .14);
  max-width: 100%;
}

.lg-liste {
  gap: 10px;
}

.lg-liste li {
  padding: 11px 12px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 10px;
  background: rgba(255, 255, 255, .055);
  color: rgba(255, 255, 255, .82);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.lg-liste svg {
  color: #9ed3ea;
}

.lg-sag {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 18%, rgba(44, 62, 80, .055), transparent 32%),
    #f4f6f8;
}

.lg-kart {
  position: relative;
  overflow: hidden;
  max-width: 420px;
  padding: 36px 36px 31px;
  border: 1px solid rgba(44, 62, 80, .1);
  border-radius: 20px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 24px 65px rgba(31, 48, 64, .13), 0 2px 8px rgba(31, 48, 64, .05);
  animation: bameraLoginCard .65s .08s cubic-bezier(.2, .75, .25, 1) both;
}

.lg-kart::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #2C3E50, #6f94b5, #2C3E50);
}

.lg-kart h1 {
  color: #203040;
  font-size: 24px;
}

.lg-kart p.lg-aciklama {
  color: #6f7d89;
  margin-bottom: 26px;
}

.lg-btn {
  color: #fff;
  background: #2C3E50;
  box-shadow: 0 8px 22px rgba(44, 62, 80, .22);
}

.lg-btn:hover:not(:disabled) {
  background: #243544;
  box-shadow: 0 12px 28px rgba(44, 62, 80, .28);
}

.lg-btn:focus-visible {
  outline-color: #6f94b5;
}

.lg-guven {
  color: #7b8792;
}

@keyframes bameraLoginOrbOne {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(105px, 70px, 0) scale(1.12); }
}

@keyframes bameraLoginOrbTwo {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-95px, -75px, 0) scale(1.16); }
}

@keyframes bameraLoginGrid {
  from { background-position: 0 0, 0 0; }
  to { background-position: 60px 30px, 240px -240px; }
}

@keyframes bameraLoginIntro {
  from { opacity: 0; transform: translate3d(-18px, 10px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes bameraLoginCard {
  from { opacity: 0; transform: translate3d(0, 18px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@media (max-width: 900px) {
  .lg-sol {
    min-height: 42vh;
    padding: 42px 24px 34px;
  }

  .lg-sag {
    align-items: flex-start;
    padding: 0 20px 42px;
    background: #f4f6f8;
  }

  .lg-kart {
    z-index: 3;
    margin-top: -24px;
  }
}

@media (max-width: 480px) {
  .lg-logo {
    width: 68px;
    height: 68px;
  }

  .lg-ad {
    font-size: 27px;
  }

  .lg-kart {
    padding: 28px 22px 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lg-sol::before,
  .lg-sol::after,
  .lg-nokta,
  .lg-marka,
  .lg-kart {
    animation: none !important;
  }
}

/* Bamera sidebar palette and consistently aligned category chevrons */
:root {
  --sidebar-bg: #2C3E50;
  --sidebar-text: rgba(255, 255, 255, .82);
}

.sidebar {
  background: #2C3E50 !important;
  box-shadow: inset -1px 0 rgba(255, 255, 255, .1);
}

.sidebar-divider,
.bamera-nav-group {
  border-color: rgba(255, 255, 255, .12);
}

.sidebar-divider {
  background: rgba(255, 255, 255, .14);
}

.bamera-dom-group-toggle,
.bamera-nav-group-toggle {
  position: relative;
  justify-content: flex-start;
  padding-right: 30px !important;
  color: rgba(255, 255, 255, .66);
}

.bamera-dom-group-toggle:hover,
.bamera-nav-group-toggle:hover {
  color: #fff;
  background: rgba(255, 255, 255, .08);
}

.bamera-nav-chevron {
  position: absolute;
  top: 50%;
  right: 10px;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  font-size: 0 !important;
  line-height: 0;
  transform: translateY(-65%) rotate(45deg) !important;
  transform-origin: center;
  transition: transform .18s ease, color .18s ease;
}

.bamera-dom-group-toggle.is-collapsed .bamera-nav-chevron,
.bamera-nav-group.is-collapsed .bamera-nav-chevron {
  transform: translateY(-50%) rotate(-45deg) !important;
}

.sidebar .nav-card {
  color: rgba(255, 255, 255, .82);
}

.sidebar .nav-card:hover:not(.active) {
  color: #fff;
  background: rgba(255, 255, 255, .08);
}

.sidebar .nav-card.active {
  color: #fff;
  background: rgba(255, 255, 255, .14);
  border-color: rgba(255, 255, 255, .28);
  box-shadow: 0 6px 18px rgba(25, 45, 64, .18), inset 0 1px rgba(255, 255, 255, .08);
}

.sidebar .nav-card-dot {
  background: #F6CB75;
  box-shadow: 0 0 8px rgba(246, 203, 117, .72);
}

.sidebar .profile-role {
  color: rgba(255, 255, 255, .66);
}

.bamera-density-control {
  flex-shrink: 0;
  padding: 6px 4px 5px;
}

.bamera-density-label {
  display: block;
  margin: 0 4px 5px;
  color: rgba(255, 255, 255, .58);
  letter-spacing: .85px;
  font-size: 8.5px;
  font-weight: 700;
}

.bamera-density-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 9px;
  background: rgba(12, 24, 36, .2);
}

.bamera-density-btn {
  min-height: 27px;
  padding: 5px 7px;
  border-radius: 6px;
  background: transparent;
  color: rgba(255, 255, 255, .68);
  font-size: 10.5px;
  font-weight: 600;
  transition: color .18s ease, background .18s ease, box-shadow .18s ease;
}

.bamera-density-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, .07);
}

.bamera-density-btn.is-active {
  color: #2C3E50;
  background: #fff;
  box-shadow: 0 2px 8px rgba(12, 24, 36, .2);
}

@media (min-width: 769px) {
  html[data-bamera-density="comfortable"] .sidebar {
    width: 240px;
    min-width: 240px;
    gap: 4px;
    padding: 18px 14px 14px;
  }

  html[data-bamera-density="comfortable"] .sidebar-logo {
    padding: 3px 7px 11px;
  }

  html[data-bamera-density="comfortable"] .sidebar-logo img {
    width: 36px !important;
    height: 36px !important;
  }

  html[data-bamera-density="comfortable"] .nav-card {
    min-height: 40px;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 10px;
    font-size: 13.5px;
  }

  html[data-bamera-density="comfortable"] .bamera-dom-group-toggle,
  html[data-bamera-density="comfortable"] .bamera-nav-group-toggle {
    min-height: 29px;
    padding-top: 6px;
    padding-bottom: 6px;
  }

  html[data-bamera-density="comfortable"] .sidebar-nav--grouped,
  html[data-bamera-density="comfortable"] .sidebar-nav--dom-grouped {
    gap: 4px;
  }

  html[data-bamera-density="comfortable"] .header {
    height: 64px;
    padding-right: 28px;
    padding-left: 28px;
  }

  html[data-bamera-density="comfortable"] .page-body {
    gap: 20px;
    padding: 24px 28px;
  }

  html[data-bamera-density="comfortable"] .card {
    padding: 21px;
  }
}

/* Simplified special-days page: year, search, month, date and name only */
.bamera-special-days-hidden {
  display: none !important;
}

.bamera-special-days-page {
  gap: 14px !important;
  padding-bottom: 32px !important;
}

.bamera-special-days-toolbar {
  display: flex;
  align-items: center;
  margin-bottom: 0 !important;
}

.bamera-special-days-toolbar > input {
  width: min(100%, 320px) !important;
  min-width: 0 !important;
  min-height: 38px;
  padding: 9px 12px !important;
  border: 1px solid var(--border) !important;
  background: #fff;
}

.bamera-special-today {
  color: var(--muted);
  white-space: nowrap;
  font-size: 12px;
  font-weight: 600;
}

.bamera-special-month-list {
  gap: 12px !important;
}

.bamera-special-month {
  border: 1px solid var(--border);
  border-radius: 12px !important;
  box-shadow: 0 3px 12px rgba(27, 31, 40, .045) !important;
}

.bamera-special-month-head {
  padding: 10px 16px !important;
  background: #f7f9fb !important;
}

.bamera-special-month-head > span:first-child {
  font-size: 14px !important;
}

.bamera-special-row {
  min-height: 58px;
  gap: 12px !important;
  padding: 8px 16px !important;
  background: #fff !important;
}

.bamera-special-date {
  width: 40px !important;
  height: 40px !important;
  border: 0 !important;
  border-radius: 9px !important;
  background: #eef3f6 !important;
}

.bamera-special-date > span {
  color: #2C3E50 !important;
}

.bamera-special-date > span:first-child {
  font-size: 15px !important;
}

.bamera-special-content {
  display: flex;
  align-items: center;
}

.bamera-special-name {
  color: var(--dark) !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
}

.bamera-special-meta {
  display: flex !important;
  align-items: flex-end !important;
  justify-content: center;
}

.bamera-special-countdown {
  min-width: 76px;
  padding: 5px 9px;
  border-radius: 8px;
  background: #eef3f6;
  color: #2C3E50;
  text-align: center;
  white-space: nowrap;
  font-size: 10.5px;
  font-weight: 700;
}

.bamera-special-countdown[data-state="near"] {
  background: #fff3d6;
  color: #9a6500;
}

.bamera-special-countdown[data-state="past"] {
  background: #f4f5f7;
  color: #98a1ad;
  font-weight: 600;
}

@media (max-width: 768px) {
  .bamera-special-days-toolbar > input {
    width: 100% !important;
  }

  .bamera-special-days-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .bamera-special-today {
    padding-left: 2px;
  }

  .bamera-special-month-head,
  .bamera-special-row {
    padding-right: 12px !important;
    padding-left: 12px !important;
  }
}
