﻿html {
  font-size: 15px;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(82, 164, 255, 0.16), transparent 28%),
    radial-gradient(circle at bottom right, rgba(57, 208, 196, 0.14), transparent 24%),
    #f5f7fb;
  color: #243b53;
}

.layout-wrapper {
  display: flex;
  min-height: 100vh;
}

.app-sidebar-menu {
  width: 310px;
  background: #ffffff;
  border-right: 1px solid rgba(16, 42, 67, 0.08);
  box-shadow: 18px 0 40px rgba(15, 23, 42, 0.06);
}

.sidebar-shell {
  gap: 0.8rem;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  color: #102a43;
}

.sidebar-brand strong {
  display: block;
  font-size: 1.02rem;
}

.sidebar-brand-badge {
  width: 50px;
  height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: linear-gradient(135deg, #1d4ed8 0%, #0ea5e9 100%);
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.08em;
  box-shadow: 0 14px 32px rgba(29, 78, 216, 0.28);
}

.sidebar-brand small,
.sidebar-note {
  display: block;
  color: #6b7c93;
}

.sidebar-section-label {
  margin-top: 0.45rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9aa5b1;
  font-weight: 800;
  padding-inline: 0.35rem;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #243b53;
  text-decoration: none;
  border-radius: 16px;
  padding: 0.85rem 1rem;
  font-weight: 600;
  background: transparent;
  transition: all 0.2s ease;
}

.sidebar-link.active,
.sidebar-link:hover {
  color: #0f62fe;
  background: #eef5ff;
}

.sidebar-note {
  padding: 1rem;
  border-radius: 18px;
  background: linear-gradient(180deg, #f8fbff 0%, #eef5ff 100%);
  border: 1px solid rgba(16, 42, 67, 0.08);
  font-size: 0.92rem;
}

.sidebar-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.sidebar-group-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 0;
  background: #f8fbff;
  border-radius: 18px;
  padding: 0.95rem 1rem;
  color: #102a43;
  text-align: left;
  box-shadow: inset 0 0 0 1px rgba(16, 42, 67, 0.06);
}

.sidebar-group-main {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.sidebar-group-main strong {
  display: block;
  font-size: 0.96rem;
}

.sidebar-group-main small {
  display: block;
  color: #7b8794;
  font-size: 0.76rem;
  font-weight: 600;
}

.sidebar-group-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: #eaf2ff;
  color: #1d4ed8;
  font-size: 1.15rem;
}

.sidebar-group-arrow {
  color: #7b8794;
  transition: transform 0.2s ease;
}

.sidebar-group.is-open .sidebar-group-toggle,
.sidebar-group-toggle[aria-expanded="true"] {
  background: linear-gradient(180deg, #f8fbff 0%, #eef5ff 100%);
}

.sidebar-group-toggle[aria-expanded="true"] .sidebar-group-arrow {
  transform: rotate(180deg);
}

.sidebar-submenu {
  padding-left: 0.55rem;
}

.sidebar-submenu.show {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.sidebar-submenu .sidebar-link,
.sidebar-submenu .sidebar-link-disabled {
  padding-left: 1rem;
}

.page-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.topbar-shell {
  padding: 1.25rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(36, 59, 83, 0.08);
}

.topbar-kicker {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #5c6f82;
  font-weight: 800;
}

.topbar-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: #102a43;
}

.topbar-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  border-radius: 999px;
  padding: 0.65rem 1rem;
  background: #fff;
  box-shadow: 0 10px 26px rgba(16, 42, 67, 0.08);
  font-weight: 600;
}

.page-shell {
  padding: 2rem;
  min-width: 0;
}

.erp-shell,
.erp-shell > .row,
.hero-card,
.summary-card,
.content-card {
  min-width: 0;
  max-width: 100%;
}

.hero-card,
.summary-card,
.content-card {
  background: #fff;
  border: 1px solid rgba(16, 42, 67, 0.06);
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.08);
}

.hero-card {
  border-radius: 28px;
  padding: 1.75rem;
  background:
    radial-gradient(circle at top right, rgba(255,255,255,0.22), transparent 28%),
    linear-gradient(135deg, #12324c 0%, #1b5d8f 52%, #29a6b7 100%);
  color: #fff;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  padding: 0.45rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-title,
.hero-title-sm {
  color: #102a43;
  font-weight: 800;
}

.hero-card .hero-title {
  color: #fff;
  font-size: 2rem;
}

.hero-title-sm {
  font-size: 1.7rem;
}

.hero-copy {
  max-width: 720px;
  color: rgba(255,255,255,0.88);
  margin-bottom: 0;
}

.metric-chip {
  min-width: 180px;
  border-radius: 24px;
  padding: 1rem 1.15rem;
  background: rgba(255,255,255,0.12);
}

.metric-chip-label,
.summary-label {
  display: block;
  color: #6b7c93;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
}

.metric-chip-label {
  color: rgba(255,255,255,0.7);
}

.metric-chip-value,
.summary-value {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1.1;
}

.metric-chip-value {
  color: #fff;
}

.summary-card {
  border-radius: 24px;
  padding: 1.2rem 1.25rem;
}

.summary-value {
  color: #102a43;
  margin-top: 0.4rem;
}

.summary-help,
.content-card-subtitle {
  color: #7b8794;
}

.content-card {
  border-radius: 24px;
  overflow: hidden;
}

.content-card-header {
  padding: 1.4rem 1.5rem 0.5rem;
}

.content-card-title {
  margin: 0;
  font-size: 1.18rem;
  font-weight: 800;
  color: #102a43;
}

.content-card-body {
  padding: 1rem 1.5rem 1.5rem;
}

.erp-table thead th {
  background: #f8fafc;
  color: #486581;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom-width: 1px;
}

.erp-table td,
.erp-table th {
  padding: 1rem 1.1rem;
}

.btn-soft-primary {
  color: #1c64f2;
  background: rgba(28, 100, 242, 0.12);
  border: none;
}

.btn-soft-primary:hover {
  color: #fff;
  background: #1c64f2;
}

.btn-soft-danger {
  color: #d92d20;
  background: rgba(217, 45, 32, 0.12);
  border: none;
}

.btn-soft-danger:hover {
  color: #fff;
  background: #d92d20;
}

.form-control,
.form-select {
  border-color: rgba(16, 42, 67, 0.12);
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.photo-card {
  border: 1px solid rgba(16, 42, 67, 0.08);
  border-radius: 22px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
  content-visibility: auto;
  contain-intrinsic-size: 420px;
}

.photo-card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  background: #eef4f8;
}

.photo-card-body {
  padding: 1rem;
}

.color-check-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.75rem;
}

.color-check-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.8rem 0.95rem;
  border: 1px solid rgba(16, 42, 67, 0.08);
  border-radius: 16px;
  background: #f8fbff;
  font-weight: 600;
}

.color-check-item input {
  width: 18px;
  height: 18px;
}

.summary-card-accent {
  background: linear-gradient(135deg, #ebf8ff 0%, #f0fdf9 100%);
}

.sidebar-link-disabled {
  opacity: 0.72;
  justify-content: space-between;
  cursor: default;
}

.sidebar-link-disabled small {
  color: #7b8794;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.dashboard-module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.module-card {
  display: block;
  padding: 1.1rem 1.15rem;
  border-radius: 22px;
  border: 1px solid rgba(16, 42, 67, 0.08);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.06);
  color: #102a43;
}

.module-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 42px rgba(15, 23, 42, 0.1);
  color: #102a43;
}

.module-card-disabled {
  opacity: 0.82;
}

.module-card-icon {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(28, 100, 242, 0.1);
  color: #1c64f2;
  font-size: 1.2rem;
  margin-bottom: 0.9rem;
}

.module-card-title-row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: flex-start;
}

.module-card-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
}

.module-card-copy {
  margin: 0.75rem 0 0;
  color: #61758a;
  line-height: 1.5;
}

.dashboard-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.dashboard-list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(16, 42, 67, 0.08);
  border-radius: 18px;
  background: #fbfdff;
}

.dashboard-list-title {
  font-weight: 700;
  color: #102a43;
}

.dashboard-list-meta {
  color: #7b8794;
  font-size: 0.9rem;
}

.dashboard-list-price {
  font-weight: 800;
  color: #102a43;
  margin-bottom: 0.35rem;
}

.sticky-panel {
  position: sticky;
  top: 1.5rem;
}

.editor-summary-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.editor-summary-item {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(16, 42, 67, 0.08);
  border-radius: 18px;
  background: #fbfdff;
}

.editor-summary-item span {
  color: #7b8794;
  font-weight: 600;
}

.editor-summary-item strong {
  color: #102a43;
  text-align: right;
}

@media (max-width: 1399.98px) {
  .app-sidebar-menu {
    width: 270px;
  }

  .topbar-shell,
  .page-shell {
    padding-inline: 1.25rem;
  }

  .sticky-panel {
    position: static;
  }
}

@media (max-width: 1199.98px) {
  .app-sidebar-menu {
    width: 248px;
  }

  .topbar-shell {
    padding: 1rem 1.1rem;
  }

  .page-shell {
    padding: 1.1rem;
  }

  .hero-card {
    padding: 1.35rem;
  }

  .summary-card {
    padding: 1rem 1.05rem;
  }

  .content-card-header {
    padding: 1.1rem 1.1rem 0.35rem;
  }

  .content-card-body {
    padding: 0.9rem 1.1rem 1.1rem;
  }
}

@media (max-width: 991.98px) {
  .app-sidebar-menu {
    display: none;
  }

  .page-shell,
  .topbar-shell {
    padding-inline: 1rem;
  }
}

.photo-card-preview {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.photo-card-preview .photo-card-image {
  transition: transform 0.25s ease, filter 0.25s ease;
}

.photo-card-preview:hover .photo-card-image {
  transform: scale(1.02);
  filter: saturate(1.05);
}

.photo-preview-modal-dialog {
  max-width: min(1200px, 96vw);
}

.photo-preview-modal-content {
  border: 0;
  border-radius: 28px;
  overflow: hidden;
  background: #0f172a;
  color: #fff;
}

.photo-preview-frame {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at top, rgba(56, 189, 248, 0.18), transparent 24%),
    #020617;
  border-radius: 22px;
  overflow: hidden;
}

.photo-preview-image {
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
  display: block;
}

.photo-preview-modal-content .modal-header,
.photo-preview-modal-content .modal-body {
  background: transparent;
}

.photo-preview-modal-content .btn-close {
  filter: invert(1);
}

.photo-preview-shell {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 56px;
  align-items: center;
  gap: 1rem;
}

.photo-preview-nav {
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  transition: transform 0.2s ease, background 0.2s ease;
}

.photo-preview-nav:hover {
  background: rgba(255,255,255,0.22);
  transform: scale(1.04);
}

.photo-preview-meta {
  text-align: center;
  color: rgba(255,255,255,0.72);
  font-size: 0.92rem;
  margin-top: 1rem;
}

@media (max-width: 768px) {
  .photo-preview-shell {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    gap: 0.5rem;
  }

  .photo-preview-nav {
    width: 42px;
    height: 42px;
    font-size: 1.1rem;
  }
}

.photo-card-body .badge {
    flex-shrink: 0;
}

.photo-card-body .btn[disabled] {
    opacity: .45;
    cursor: not-allowed;
}

.photo-card-hidden {
    display: none;
}

.catalog-thumb {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 16px;
    border: 1px solid rgba(15, 23, 42, .08);
    background: #fff;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .08);
}

.catalog-thumb-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    background: linear-gradient(145deg, #f8fafc, #eef2f7);
    font-size: 1.1rem;
}

