.taller-shell {
  --shell-sidebar-width: 288px;
  --shell-sidebar-collapsed: 88px;
  --shell-header-height: 88px;
  --shell-bg: #f4f7fb;
  --shell-surface-strong: #ffffff;
  --shell-primary: #0f766e;
  --shell-primary-deep: #0f172a;
  --shell-accent: #f59e0b;
  --shell-text: #0f172a;
  --shell-muted: #64748b;
  --shell-border: rgba(148, 163, 184, 0.24);
  --shell-shadow: 0 22px 45px rgba(15, 23, 42, 0.08);
  background:
    radial-gradient(circle at top left, rgba(15, 118, 110, 0.12), transparent 28%),
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.1), transparent 24%),
    linear-gradient(180deg, #eef5ff 0%, #f7f9fc 18%, #f4f7fb 100%);
  color: var(--shell-text);
}

.taller-shell h1,
.taller-shell h2,
.taller-shell h3,
.taller-shell h4,
.taller-shell h5,
.taller-shell h6,
.taller-shell strong {
  color: var(--shell-text);
}

.taller-shell .header-container {
  padding: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1200;
}

/* Keep Bootstrap modals above the fixed shell header */
.taller-shell .modal {
  z-index: 2000;
}

.taller-shell .modal-backdrop {
  z-index: 1990;
}

.taller-shell .navbar {
  min-height: var(--shell-header-height);
  width: 100%;
  margin: 0;
  padding-right: 22px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(15, 118, 110, 0.9));
  border-top: 0;
  border-right: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 0;
  border-radius: 0;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.22);
  overflow: visible;
}

.taller-shell .header-container .navbar-nav.theme-brand {
  width: calc(var(--shell-sidebar-width) + 16px);
  justify-content: flex-start;
  gap: 14px;
  padding: 0 18px;
  background: transparent;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.taller-shell .header-container .navbar-nav.theme-brand .theme-logo {
  width: auto;
}

.taller-shell .nav-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.taller-shell .nav-brand-mark img {
  width: 38px !important;
  height: 38px !important;
  object-fit: cover;
  border-radius: 12px;
}

.taller-shell .header-container .navbar-nav .theme-text {
  width: auto;
}

.taller-shell .header-container .navbar-nav .theme-text a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.1;
}

.taller-shell .brand-title {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
}

.taller-shell .brand-subtitle {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.taller-shell .header-container .sidebarCollapse {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.1);
}

.taller-shell .header-container .sidebarCollapse svg {
  width: 21px;
  height: 21px;
  color: #ffffff;
}

.taller-shell .header-focus {
  flex: 1;
  min-width: 0;
  padding: 0 24px;
}

.taller-shell .header-focus__eyebrow {
  display: inline-block;
  margin-bottom: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(226, 232, 240, 0.72);
}

.taller-shell .header-focus__title {
  display: block;
  margin-bottom: 4px;
  font-size: 1.12rem;
  color: #ffffff;
}

.taller-shell .header-focus__meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.84rem;
  color: rgba(226, 232, 240, 0.78);
}

.taller-shell .header-focus__dot {
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.52);
}

.taller-shell .company-pill {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.taller-shell .company-pill__label {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}

.taller-shell .user-trigger {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px !important;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.12);
}

.taller-shell .user-trigger::after {
  display: none;
}

.taller-shell .user-trigger__avatar,
.taller-shell .user-dropdown-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  color: #fff;
  font-weight: 700;
}

.taller-shell .user-trigger__copy {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.taller-shell .user-trigger__copy strong {
  color: #ffffff;
  font-size: 0.92rem;
}

.taller-shell .user-trigger__copy small {
  color: rgba(255, 255, 255, 0.62);
}

.taller-shell .navbar .navbar-item .nav-item.user-profile-dropdown .dropdown-menu {
  top: 66px !important;
  border: 1px solid var(--shell-border);
  border-radius: 22px;
  box-shadow: var(--shell-shadow);
  z-index: 1300;
}

.taller-shell .navbar .navbar-item .nav-item.user-profile-dropdown .dropdown-menu .user-profile-section {
  padding: 1rem 1rem 0.5rem;
}

.taller-shell .navbar .navbar-item .nav-item.user-profile-dropdown .dropdown-menu .media {
  align-items: center;
  gap: 12px;
}

.taller-shell .navbar .navbar-item .nav-item.user-profile-dropdown .dropdown-menu .media-body p {
  margin-bottom: 0;
  color: var(--shell-muted);
}

.taller-shell .sidebar-wrapper {
  top: var(--shell-header-height);
  left: 0;
  width: var(--shell-sidebar-width);
  height: calc(100vh - var(--shell-header-height));
  padding: 0;
  background: transparent;
  box-shadow: none;
  border: none;
}

.taller-shell #sidebar {
  display: flex;
  flex-direction: column;
  height: 100% !important;
  border-radius: 0 24px 24px 0;
  background:
    radial-gradient(circle at top, rgba(15, 118, 110, 0.18), transparent 28%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.94));
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 28px 42px rgba(15, 23, 42, 0.24);
  overflow: hidden;
}

.taller-shell .sidebar-wrapper .profile-info {
  flex: 0 0 auto;
  background: transparent;
}

.taller-shell .sidebar-wrapper .profile-info figure {
  height: 76px;
  background:
    radial-gradient(circle at 22% 20%, rgba(245, 158, 11, 0.36), transparent 28%),
    linear-gradient(135deg, rgba(15, 118, 110, 0.84), rgba(14, 116, 144, 0.58)),
    url("../assets/img/fondo.jpg") center center/cover no-repeat;
}

.taller-shell .sidebar-wrapper .profile-info .user-info {
  display: flex;
  justify-content: center;
  height: 38px;
  min-height: 38px;
  padding: 0;
}

.taller-shell .sidebar-wrapper .profile-info .user-info img {
  top: 12px;
  width: 74px;
  height: 74px;
  border: 5px solid rgba(15, 23, 42, 0.92);
  object-fit: cover;
}

.taller-shell #sidebar ul.menu-categories {
  flex: 1 1 auto;
  height: auto;
  padding: 2px 0 24px;
}

.taller-shell #sidebar ul.menu-categories.ps {
  flex: 1 1 auto;
  height: auto !important;
}

.taller-shell .sidebar-wrapper ul.menu-categories li.menu.menu-heading > .heading {
  padding: 4px 18px 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.72);
}

.taller-shell .sidebar-wrapper ul.menu-categories li.menu.menu-heading > .heading .feather-minus {
  display: none;
}

.taller-shell #sidebar ul.menu-categories li.menu {
  margin: 0 14px 3px;
}

.taller-shell #sidebar ul.menu-categories li.menu > .dropdown-toggle {
  padding: 9px 13px;
  border: 1px solid transparent;
  border-radius: 18px;
  color: #cbd5e1;
}

.taller-shell #sidebar ul.menu-categories li.menu > .dropdown-toggle svg {
  width: 17px;
  height: 17px;
  margin-right: 10px;
  color: rgba(203, 213, 225, 0.84);
  fill: transparent;
  stroke-width: 1.7px;
}

.taller-shell #sidebar ul.menu-categories li.menu > .dropdown-toggle svg.feather-chevron-right {
  width: 16px;
  margin-right: 0;
}

.taller-shell #sidebar ul.menu-categories li.menu:not(.active) > .dropdown-toggle:hover,
.taller-shell #sidebar ul.menu-categories li.menu > .dropdown-toggle[aria-expanded="true"] {
  background: rgba(148, 163, 184, 0.12);
  border-color: rgba(148, 163, 184, 0.14);
}

.taller-shell #sidebar ul.menu-categories li.menu.active > .dropdown-toggle,
.taller-shell #sidebar ul.menu-categories li.menu:not(.active) > .dropdown-toggle[aria-expanded="true"] {
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.92), rgba(14, 116, 144, 0.9));
  box-shadow: 0 14px 26px rgba(15, 118, 110, 0.28);
}

.taller-shell #sidebar ul.menu-categories li.menu.active > .dropdown-toggle span,
.taller-shell #sidebar ul.menu-categories li.menu.active > .dropdown-toggle svg,
.taller-shell #sidebar ul.menu-categories li.menu > .dropdown-toggle[aria-expanded="true"] span,
.taller-shell #sidebar ul.menu-categories li.menu > .dropdown-toggle[aria-expanded="true"] svg {
  color: #ffffff;
}

.taller-shell #sidebar ul.menu-categories ul.submenu {
  margin-top: 4px;
  padding: 1px 0 5px;
}

.taller-shell #sidebar ul.menu-categories ul.submenu > li a {
  padding: 7px 14px 7px 48px;
  color: rgba(203, 213, 225, 0.86);
}

.taller-shell #sidebar ul.menu-categories li.menu ul.submenu > li a:before {
  top: 12px;
  left: 35px;
  width: 6px;
  height: 6px;
  background-color: rgba(148, 163, 184, 0.42);
}

.taller-shell #sidebar ul.menu-categories ul.submenu > li.active a,
.taller-shell #sidebar ul.menu-categories ul.submenu > li a:hover,
.taller-shell #sidebar ul.menu-categories ul.submenu li > a[aria-expanded="true"] {
  color: #ffffff;
}

.taller-shell #sidebar ul.menu-categories li.menu ul.submenu > li.active a:before,
.taller-shell #sidebar ul.menu-categories ul.submenu > li a:hover:before,
.taller-shell #sidebar ul.menu-categories ul.submenu li > [aria-expanded="true"]:before {
  background-color: var(--shell-accent) !important;
}

.taller-shell #sidebar ul.menu-categories ul.submenu > li ul.sub-submenu > li a {
  margin-left: 48px;
  padding: 7px 12px;
  color: rgba(226, 232, 240, 0.74);
}

.taller-shell #sidebar ul.menu-categories ul.submenu > li ul.sub-submenu > li a:before {
  top: 14px !important;
  background-color: rgba(148, 163, 184, 0.42);
}

.taller-shell #sidebar ul.menu-categories ul.submenu > li ul.sub-submenu > li.active a,
.taller-shell #sidebar ul.menu-categories ul.submenu > li ul.sub-submenu > li a:hover {
  color: #ffffff;
}

.taller-shell #content {
  flex-grow: 1;
  width: calc(100% - var(--shell-sidebar-width));
  margin-top: var(--shell-header-height);
  margin-left: var(--shell-sidebar-width);
  padding-right: 0;
}

.taller-shell .layout-px-spacing {
  min-height: calc(100vh - 172px) !important;
}

.taller-shell .shell-layout {
  padding: 16px 20px 32px !important;
}

.taller-shell .shell-page-content .widget,
.taller-shell .shell-page-content .widget-content-area,
.taller-shell .shell-page-content .statbox,
.taller-shell .shell-page-content .card,
.taller-shell .shell-page-content .modal-content,
.taller-shell .shell-page-content .table-responsive {
  border-color: rgba(226, 232, 240, 0.86);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.06);
}

.taller-shell .shell-page-content .widget,
.taller-shell .shell-page-content .card,
.taller-shell .shell-page-content .table-responsive,
.taller-shell .shell-page-content .widget-content-area {
  border-radius: 24px;
  background: var(--shell-surface-strong);
}

.taller-shell .form-control,
.taller-shell select,
.taller-shell textarea {
  min-height: 44px;
  border-radius: 14px;
  border-color: rgba(203, 213, 225, 0.9);
  box-shadow: none;
}

.taller-shell .form-control:focus,
.taller-shell select:focus,
.taller-shell textarea:focus {
  border-color: rgba(15, 118, 110, 0.54);
  box-shadow: 0 0 0 0.2rem rgba(15, 118, 110, 0.12);
}

.taller-shell .btn-primary,
.taller-shell .badge-primary {
  border-color: transparent;
  background: linear-gradient(135deg, var(--shell-primary), #0ea5a4);
  box-shadow: 0 12px 24px rgba(15, 118, 110, 0.2);
}

.taller-shell .sidebar-closed > .sidebar-wrapper {
  width: var(--shell-sidebar-collapsed);
}

.taller-shell .sidebar-closed > #content {
  width: calc(100% - var(--shell-sidebar-collapsed));
  margin-left: var(--shell-sidebar-collapsed);
}

.taller-shell .sidebar-closed > .sidebar-wrapper .profile-info figure {
  opacity: 0;
}

.taller-shell .sidebar-closed > .sidebar-wrapper .profile-info .user-info {
  min-height: 16px;
  padding-top: 0;
}

.taller-shell .sidebar-closed > .sidebar-wrapper .profile-info .user-info img {
  top: 14px;
  width: 42px;
  height: 42px;
  border-width: 3px;
}

.taller-shell .sidebar-closed > .sidebar-wrapper:hover {
  width: var(--shell-sidebar-width);
}

.taller-shell .sidebar-closed > .sidebar-wrapper:hover .profile-info figure {
  opacity: 1;
}

.taller-shell .sidebar-closed > .sidebar-wrapper:hover .profile-info .user-info {
  min-height: 20px;
  padding-top: 0;
}

.taller-shell .sidebar-closed > .sidebar-wrapper:hover .profile-info .user-info img {
  top: 22px;
  width: 86px;
  height: 86px;
  border-width: 5px;
}

.taller-shell .navbar.expand-header .navbar-nav.theme-brand {
  width: calc(var(--shell-sidebar-collapsed) + 16px);
}

.taller-shell .navbar.expand-header .theme-text {
  display: none;
}

@media (max-width: 1199px) {
  .taller-shell .header-company-badge {
    display: none;
  }

  .taller-shell .header-focus {
    padding-right: 14px;
  }
}

@media (max-width: 991px) {
  .taller-shell .header-container {
    padding: 0;
  }

  .taller-shell .navbar {
    min-height: 78px;
    padding-right: 12px;
    border-radius: 0;
  }

  .taller-shell .header-container .navbar-nav.theme-brand {
    width: auto;
    gap: 10px;
    padding: 0 12px;
    border-right: none;
  }

  .taller-shell .header-focus,
  .taller-shell .header-company-badge,
  .taller-shell .user-trigger__copy {
    display: none;
  }

  .taller-shell .sidebar-wrapper {
    top: 0;
    left: 0;
    width: min(320px, calc(100vw - 24px));
    height: 100vh;
    padding: 12px;
  }

  .taller-shell #sidebar {
    height: calc(100vh - 24px) !important;
    border-radius: 24px;
  }

  .taller-shell .main-container:not(.sbar-open) .sidebar-wrapper,
  body.taller-shell.alt-menu .sidebar-closed > .sidebar-wrapper {
    width: 0;
    left: -340px;
  }

  .taller-shell #content,
  .taller-shell .sidebar-closed > #content {
    width: 100%;
    margin-left: 0 !important;
    margin-top: 98px;
    padding: 0 10px;
  }

  .taller-shell .shell-layout {
    padding: 0 0 28px !important;
  }

  .taller-shell .sidebar-closed > .sidebar-wrapper {
    width: min(320px, calc(100vw - 24px));
  }
}

@media (max-width: 767px) {
  .taller-shell .shell-page-content .widget,
  .taller-shell .shell-page-content .card,
  .taller-shell .shell-page-content .widget-content-area,
  .taller-shell .shell-page-content .table-responsive {
    border-radius: 18px;
  }
}
