.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #fff0e5;
}
.auth-card {
  width: min(420px, 100%);
  background: #fffdfb;
  border: 1px solid #f2dde0;
  border-radius: 16px;
  padding: 38px;
  box-shadow: 0 16px 40px rgba(122, 65, 77, 0.12);
}
.auth-logo {
  display: block;
  width: 82px;
  height: 82px;
  object-fit: contain;
  margin: 0 auto 20px;
}
.auth-card h1 {
  font-family: "Playfair Display", serif;
  color: #573f43;
  text-align: center;
  font-size: 28px;
  margin: 0 0 7px;
}
.auth-card > p {
  text-align: center;
  color: #86686d;
  font-size: 12px;
  margin: 0 0 26px;
}
.auth-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 17px;
}
.auth-field label {
  font-size: 12px;
  font-weight: 700;
  color: #573f43;
}
.auth-field input {
  border: 1px solid #ead5d8;
  border-radius: 8px;
  padding: 12px;
  font: inherit;
  color: #573f43;
  background: #fff;
}
.auth-field input:focus {
  outline: 0;
  border-color: #e8638b;
  box-shadow: 0 0 0 3px #f7a8bf55;
}
.password-wrap {
  display: flex;
}
.password-wrap input {
  width: 100%;
  border-radius: 8px 0 0 8px;
}
.password-wrap button {
  width: 44px;
  border: 1px solid #ead5d8;
  border-left: 0;
  border-radius: 0 8px 8px 0;
  background: #fff;
  color: #86686d;
  cursor: pointer;
}
.auth-submit {
  width: 100%;
  border: 0;
  border-radius: 8px;
  padding: 13px;
  background: #e8638b;
  color: white;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.auth-submit:hover {
  background: #c84770;
}
.auth-error {
  color: #b94668;
  background: #fde8f0;
  border-radius: 7px;
  padding: 10px;
  font-size: 11px;
  margin-bottom: 15px;
}
.auth-demo {
  border-top: 1px solid #f2dde0;
  margin-top: 23px;
  padding-top: 15px;
  color: #86686d;
  font-size: 10px;
  line-height: 1.6;
}

.users-card {
  margin: 0 46px 28px;
  background: #fffdfb;
  border: 1px solid #f2dde0;
  border-radius: 11px;
  box-shadow: var(--shadow);
}
.users-toolbar {
  padding: 20px 23px;
  border-bottom: 1px solid #f2dde0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.users-toolbar h2 {
  font-family: "Playfair Display", serif;
  margin: 0;
  color: #573f43;
}
.users-table {
  width: 100%;
  border-collapse: collapse;
}
.users-table th,
.users-table td {
  text-align: left;
  padding: 14px 23px;
  border-top: 1px solid #f4e8e8;
  font-size: 11px;
}
.users-table th {
  font-size: 9px;
  color: #9c7d82;
  letter-spacing: 0.8px;
  background: #fffaf7;
}
.user-status {
  font-size: 10px;
  color: #4f9d94;
}
.user-status.inactive {
  color: #9d7b80;
}
.role-label {
  color: #86686d;
}
.profile-card {
  margin: 0 46px 28px;
  width: min(700px, calc(100% - 92px));
  background: #fffdfb;
  border: 1px solid #f2dde0;
  border-radius: 11px;
  padding: 26px;
  box-shadow: var(--shadow);
}
.profile-card h2 {
  font-family: "Playfair Display", serif;
  color: #573f43;
  margin: 0 0 22px;
}
.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.profile-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.profile-field label {
  font-size: 11px;
  font-weight: 700;
}
.profile-field input {
  border: 1px solid #ead5d8;
  border-radius: 7px;
  padding: 11px;
  font: inherit;
}
.profile-actions {
  margin-top: 22px;
  display: flex;
  justify-content: flex-end;
}
.user-actions {
  display: flex;
  gap: 6px;
}
.user-actions button {
  border: 0;
  background: #fde8f0;
  color: #a74568;
  border-radius: 6px;
  padding: 7px 9px;
  font-size: 10px;
  cursor: pointer;
}
@media (max-width: 720px) {
  .auth-card {
    padding: 28px 22px;
  }
  .users-card {
    margin: 0 18px 22px;
    overflow: auto;
  }
  .users-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }
  .profile-card {
    margin: 0 18px 22px;
    width: auto;
  }
  .profile-grid {
    grid-template-columns: 1fr;
  }
}
.auth-page {
  background: #fbf3e3;
}
.auth-card {
  background: #fffdf9;
  border-color: #ead8d2;
  box-shadow: 0 18px 44px rgba(104, 124, 127, 0.14);
}
.auth-card h1,
.auth-field label {
  color: #4f3d43;
}
.auth-card > p {
  color: #856e72;
}
.auth-field input {
  border-color: #e4c2ab;
  background: #fffdf9;
  color: #4f3d43;
}
.auth-field input:focus {
  border-color: #ea84ac;
  box-shadow: 0 0 0 3px rgba(234, 132, 172, 0.22);
}
.password-wrap button {
  border-color: #e4c2ab;
  background: #fffdf9;
  color: #856e72;
}
.auth-submit {
  background: #d8678e;
  box-shadow: 0 8px 16px rgba(216, 103, 142, 0.22);
}
.auth-submit:hover {
  background: #bd4f76;
}
.auth-error {
  background: #f2c0ca;
  color: #873c5a;
}
.auth-demo {
  border-color: #ead8d2;
  color: #856e72;
}

.auth-submit {
  background: #ea84ac;
  color: #fff;
  box-shadow: 0 9px 18px rgba(216, 103, 142, 0.32);
}
.auth-submit:hover {
  background: #d8678e;
}
.auth-card > p,
.auth-demo {
  color: #6f585e;
}
.auth-field label {
  color: #4f3d43;
}
.auth-submit {
  color: #573f43;
}
.auth-card > p,
.auth-demo {
  color: #745b61;
}
.auth-page {
  background: #fbf3e3;
}
.auth-card {
  background: #f2c0ca;
  border-color: #e4c2ab;
  box-shadow: none;
}
.auth-card h1,
.auth-card > p,
.auth-field label,
.auth-demo {
  color: #687c7f;
}
.auth-field input {
  background: #fbf3e3;
  border-color: #e4c2ab;
  color: #687c7f;
}
.password-wrap button {
  background: #fbf3e3;
  border-color: #e4c2ab;
  color: #687c7f;
}
.auth-submit {
  background: #d8678e;
  color: #fbf3e3;
}
.auth-submit:hover {
  background: #ea84ac;
  color: #687c7f;
}
.auth-error {
  background: #e89fb3;
  color: #687c7f;
}
.auth-demo {
  border-color: #e4c2ab;
}

.auth-card {
  background: #fbf3e3;
  border-color: #d2a178;
}
.auth-card h1,
.auth-card > p,
.auth-field label,
.auth-demo {
  color: #000;
}
.auth-field input,
.password-wrap button {
  background: #fbf3e3;
  border-color: #d2a178;
  color: #000;
}
.auth-submit {
  background: #d2a178;
  color: #000;
}
.auth-submit:hover {
  background: #e4c2ab;
  color: #000;
}
.auth-error {
  background: #e4c2ab;
  color: #000;
}
.auth-demo {
  border-color: #d2a178;
}


/* Login y perfil con la misma jerarquía cromática del sistema. */
.auth-page {
  background: #fff0e5 !important;
  color: #573f43 !important;
}
.auth-card {
  background: #fff6ee !important;
  border: 1px solid #efc7b5 !important;
  box-shadow: none !important;
}
.auth-card h1,
.auth-card > p,
.auth-field label,
.auth-demo {
  color: #573f43 !important;
}
.auth-field input,
.password-wrap button {
  background: #fff0e5 !important;
  border-color: #efc7b5 !important;
  color: #573f43 !important;
}
.auth-submit {
  background: #e8638b !important;
  color: #fff !important;
  border-color: #c84770 !important;
}
.auth-submit:hover {
  background: #c84770 !important;
}
.auth-error {
  background: #fde8f0 !important;
  color: #963b5b !important;
}
.auth-demo {
  border-color: #efc7b5 !important;
}

.profile-card {
  background: #fff6ee !important;
  border-color: #efc7b5 !important;
  color: #573f43 !important;
  box-shadow: none !important;
}
.profile-card h2,
.profile-field label {
  color: #573f43 !important;
}
.profile-field input {
  background: #fff0e5 !important;
  border-color: #efc7b5 !important;
  color: #573f43 !important;
}
.profile-actions .primary-button {
  background: #e8638b !important;
  color: #fff !important;
}

/* Login y perfil: aplicación exacta de la paleta de referencia. */
.auth-page {
  background: #fff0e5 !important;
}
.auth-card {
  background: #fff6ee !important;
  border-color: #efc7b5 !important;
}
.auth-card h1,
.auth-card > p,
.auth-field label,
.auth-demo {
  color: #573f43 !important;
}
.auth-field input,
.password-wrap button {
  background: #fff0e5 !important;
  border-color: #efc7b5 !important;
  color: #573f43 !important;
}
.auth-submit {
  background: #e8638b !important;
  color: #fff !important;
  border-color: #c84770 !important;
}
.auth-submit:hover {
  background: #c84770 !important;
}
.auth-error {
  background: #fde8f0 !important;
  color: #963b5b !important;
}
.auth-demo {
  border-color: #efc7b5 !important;
}

.profile-card {
  background: #fff6ee !important;
  border-color: #efc7b5 !important;
}
.profile-card h2,
.profile-field label {
  color: #573f43 !important;
}
.profile-field input {
  background: #fff0e5 !important;
  border-color: #efc7b5 !important;
  color: #573f43 !important;
}
.auth-page,
.auth-page * {
  font-family: "DM Sans", sans-serif !important;
}
.auth-card h1 {
  font-family: "Playfair Display", serif !important;
}
.auth-page {
  background: #fbf3e3 !important;
}
.auth-card {
  background: #fbf3e3 !important;
}
.sidebar {
  background: #fbf3e3 !important;
  border-right: 1px solid #e4c2ab !important;
  color: #856e72 !important;
}
.sidebar .brand > div:last-child {
  display: block !important;
}
.sidebar .brand strong {
  font-family: "Playfair Display", serif !important;
  color: #d8678e !important;
}
.sidebar .brand span {
  display: none !important;
}
.workspace-label {
  color: #6ea3a5 !important;
  font-size: 0 !important;
}
.workspace-label::after {
  content: "GESTIÓN COMERCIAL";
  font:
    700 10px "DM Sans",
    sans-serif !important;
  letter-spacing: 1.5px !important;
}
.module-name {
  display: none !important;
}
.sidebar .nav-item,
.sidebar .nav-item span {
  color: #856e72 !important;
}
.sidebar .nav-item span {
  display: none !important;
}
.sidebar .nav-item.active,
.sidebar .nav-item:hover {
  background: #f2c0ca !important;
  color: #687c7f !important;
}
.sidebar .user-row strong,
.sidebar .user-row small,
.sidebar .user-row button {
  color: #856e72 !important;
}
.sidebar {
  width: 260px !important;
}
.module-name {
  display: block !important;
  background: #f2c0ca !important;
  color: #687c7f !important;
  border-left: 3px solid #d8678e !important;
}
.sidebar .nav-item.active {
  background: #f2c0ca !important;
  color: #687c7f !important;
}
.sidebar .nav-item {
  font-size: 14px !important;
  color: #d2a178 !important;
  font-weight: 600 !important;
}
.sidebar .nav-item.active,
.sidebar .nav-item:hover {
  color: #d2a178 !important;
  font-weight: 700 !important;
}
.top-avatar {
  display: none !important;
}
.profile-field input {
  font:
    13px "DM Sans",
    sans-serif !important;
  color: #687c7f !important;
  background: #fbf3e3 !important;
}

/* Login: ultima capa de la identidad visual vigente de Delycake. */
.auth-page {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: #fff0e5 !important;
  color: #573f43 !important;
}
.auth-page::before,
.auth-page::after {
  content: "";
  position: fixed;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
}
.auth-page::before {
  width: 360px;
  height: 360px;
  right: -145px;
  top: -145px;
  background: #e7f4f1;
}
.auth-page::after {
  width: 260px;
  height: 260px;
  left: -120px;
  bottom: -120px;
  background: #f7a8bf;
}
.auth-card {
  position: relative;
  width: min(430px, 100%);
  padding: 42px 40px 30px;
  background: #fffaf4 !important;
  border: 1px solid #f3d6dc !important;
  border-top: 5px solid #5ba0a1 !important;
  border-radius: 18px;
  box-shadow: 0 18px 42px rgba(122, 70, 78, 0.12) !important;
}
.auth-logo {
  width: 86px;
  height: 86px;
  margin: 0 auto 18px;
  object-fit: contain;
}
.auth-card h1 {
  color: #573f43 !important;
  font-size: 29px;
  letter-spacing: -0.3px;
}
.auth-card > p {
  color: #86686d !important;
  margin-bottom: 28px;
}
.auth-field label {
  color: #573f43 !important;
}
.auth-field input,
.password-wrap button {
  background: #fff6ee !important;
  border: 1px solid #efd1d5 !important;
  color: #573f43 !important;
}
.auth-field input {
  padding: 12px 13px;
}
.auth-field input::placeholder {
  color: #b48f96;
}
.auth-field input:focus {
  border-color: #e8638b !important;
  box-shadow: 0 0 0 3px #f7a8bf66 !important;
}
.password-wrap button {
  border-left: 0 !important;
  color: #86686d !important;
  font-size: 11px;
  font-weight: 700;
}
.password-wrap button:hover {
  background: #fde8f0 !important;
  color: #c84770 !important;
}
.auth-submit {
  margin-top: 3px;
  background: #e8638b !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 8px;
  padding: 13px;
  box-shadow: 0 7px 15px rgba(232, 99, 139, 0.25) !important;
}
.auth-submit:hover {
  background: #c84770 !important;
  transform: translateY(-1px);
}
.auth-error {
  background: #fde8f0 !important;
  border: 1px solid #efb8c9;
  color: #963b5b !important;
}
.auth-demo {
  background: #e7f4f1;
  border: 1px solid #b9dcd8 !important;
  border-radius: 9px;
  margin-top: 24px;
  padding: 12px 14px;
  color: #4f8987 !important;
  line-height: 1.55;
  text-align: center;
}
@media (max-width: 520px) {
  .auth-page {
    padding: 18px;
  }
  .auth-card {
    padding: 34px 23px 24px;
  }
  .auth-page::before {
    right: -210px;
  }
  .auth-page::after {
    left: -180px;
  }
}
.password-wrap button {
  display: grid;
  place-items: center;
  padding: 0;
}
.password-wrap button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.password-wrap button.is-visible {
  color: #c84770;
  background: #fde8f0 !important;
}


/* Capa final: la pantalla de acceso y el menú usan únicamente la paleta cálida. */
.auth-page {
  background: #fbf3e3 !important;
  color: #76565a !important;
}
.auth-page::before,
.auth-page::after {
  background: #f2c0ca !important;
}
.auth-card {
  background: #f7dfd2 !important;
  border-color: #e4c2ab !important;
  border-top-color: #d9959f !important;
  box-shadow: none !important;
}
.auth-card h1,
.auth-card > p,
.auth-field label {
  color: #76565a !important;
}
.auth-field input,
.password-wrap button {
  background: #fbf3e3 !important;
  border-color: #e4c2ab !important;
  color: #76565a !important;
}
.auth-field input::placeholder {
  color: #a98283 !important;
}
.auth-field input:focus {
  border-color: #d9959f !important;
  box-shadow: 0 0 0 3px rgba(217, 149, 159, 0.22) !important;
}
.password-wrap button:hover,
.password-wrap button.is-visible {
  background: #f3d6dc !important;
  color: #8f4e62 !important;
}
.auth-submit {
  background: #d9959f !important;
  color: #76565a !important;
  box-shadow: none !important;
}
.auth-submit:hover {
  background: #c9828e !important;
  color: #76565a !important;
}
.auth-card {
  background: #fbf3e3 !important;
}
.auth-demo {
  background: #fbf3e3 !important;
  border-color: #e4c2ab !important;
  color: #76565a !important;
}


/* Menú de cuenta reconstruido: ambas opciones son iguales y ninguna queda seleccionada al abrir. */
/* Menú de cuenta reconstruido: ambas opciones son exactamente iguales en tamaño, tipografía y espaciado. */
html body .session-menu,
body .session-menu {
  background: #fbf3e3 !important;
  border: 1px solid #e4c2ab !important;
  padding: 6px !important;
  border-radius: 10px !important;
  box-shadow: 0 10px 25px rgba(122, 70, 78, 0.18) !important;
}

html body .session-menu a,
html body .session-menu button,
html body .session-menu .session-option,
body .session-menu a,
body .session-menu button {
  appearance: none !important;
  -webkit-appearance: none !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  width: 100% !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  padding: 9px 12px !important;
  border: 0 !important;
  border-radius: 6px !important;
  background: transparent !important;
  color: #76565a !important;
  text-decoration: none !important;
  text-align: left !important;
  font-family: "DM Sans", sans-serif !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
  letter-spacing: 0 !important;
  min-height: 36px !important;
  height: auto !important;
  cursor: pointer !important;
  box-shadow: none !important;
  transform: none !important;
  transition: background-color 0.15s ease, color 0.15s ease !important;
}

html body .session-menu a:hover,
html body .session-menu button:hover,
html body .session-menu a:focus,
html body .session-menu button:focus,
body .session-menu a:hover,
body .session-menu button:hover {
  background: #f8dfe2 !important;
  color: #8f4e62 !important;
  outline: none !important;
}
.sidebar .avatar {
  display: grid !important;
  place-items: center !important;
  width: 40px !important;
  height: 40px !important;
  flex: 0 0 40px !important;
  border-radius: 50% !important;
  background: #d2a178 !important;
  color: #76565a !important;
  font:
    700 13px/1 "DM Sans",
    sans-serif !important;
}
