* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  width: 100%;
  overflow-x: hidden;
}

body {
  font-family: Inter, Arial, sans-serif;
  min-height: 100vh;
  color: #fff7ed;
  overflow-x: hidden;
  background: radial-gradient(circle at 20% 10%, rgba(251, 146, 60, 0.28), transparent 28%), radial-gradient(circle at 85% 20%, rgba(168, 85, 247, 0.22), transparent 30%), radial-gradient(circle at 100% 90%, rgba(239, 68, 68, 0.18), transparent 30%), #09080f;
}

a {
  color: inherit;
}

h1 {
  font-size: 42px;
  line-height: 1;
  margin-bottom: 8px;
}

p {
  color: #a8a29e;
}

img,
video,
iframe {
  max-width: 100%;
}

.page-title {
  margin-bottom: 28px;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
}

::-webkit-scrollbar-thumb {
  background: rgba(251, 146, 60, 0.45);
  border-radius: 999px;
}

@media (max-width: 768px) {
  body {
    padding-bottom: 92px;
  }
  h1 {
    font-size: 30px;
  }
}
.table-card {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th {
  color: #fed7aa;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

td {
  vertical-align: middle;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.avatar {
  width: 54px;
  height: 54px;
  min-width: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-weight: 900;
  background: linear-gradient(135deg, #fb923c, #ef4444);
  color: #fff;
}

.badge,
.status {
  display: inline-flex;
  align-items: center;
  padding: 8px 13px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
}

.status.online,
.status.activo {
  background: rgba(34, 197, 94, 0.16);
  color: #86efac;
  border: 1px solid rgba(34, 197, 94, 0.28);
}

.status.offline,
.status.inactivo {
  background: rgba(239, 68, 68, 0.16);
  color: #fecaca;
  border: 1px solid rgba(239, 68, 68, 0.28);
}

.badge.admin {
  background: rgba(239, 68, 68, 0.16);
  color: #fecaca;
}

.badge.encargado {
  background: rgba(168, 85, 247, 0.16);
  color: #d8b4fe;
}

.badge.empleado {
  background: rgba(251, 146, 60, 0.16);
  color: #fed7aa;
}

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

.sidebar {
  width: 270px;
  padding: 28px 22px;
  background: rgba(8, 8, 16, 0.8);
  border-right: 1px solid rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(18px);
}

.sidebar h2 {
  color: #fed7aa;
  margin-bottom: 28px;
}

.sidebar a {
  display: block;
  padding: 13px 14px;
  margin-bottom: 9px;
  border-radius: 15px;
  color: #d6d3d1;
  text-decoration: none;
  font-weight: 800;
}

.sidebar a:hover {
  background: rgba(251, 146, 60, 0.16);
  color: #fff;
}

main {
  flex: 1;
  padding: 36px;
}

.top-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 28px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.account-row {
  display: grid;
  grid-template-columns: 1fr 150px auto;
  gap: 12px;
  align-items: center;
}

@media (max-width: 768px) {
  .layout {
    display: block;
  }
  .sidebar {
    width: 100%;
  }
  main {
    padding: 20px;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .toolbar,
  .toolbar-left,
  .form-grid,
  .account-row {
    grid-template-columns: 1fr;
    flex-direction: column;
  }
  .card {
    overflow-x: auto;
  }
  table {
    min-width: 720px;
  }
}
@media (max-width: 1024px) {
  main {
    padding: 24px;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .layout {
    display: block;
  }
  .sidebar {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    top: auto;
    width: auto;
    height: 72px;
    padding: 8px;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 6px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    background: rgba(8, 8, 16, 0.92);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  }
  .sidebar h2 {
    display: none;
  }
  .sidebar a {
    flex: 1;
    height: 54px;
    margin: 0;
    padding: 6px 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    text-align: center;
  }
  main {
    padding: 22px 14px 110px;
  }
  .top-header {
    align-items: flex-start;
    flex-direction: column;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .toolbar,
  .toolbar-left {
    flex-direction: column;
  }
  .form-grid,
  .account-row {
    grid-template-columns: 1fr;
  }
  .card {
    overflow-x: auto;
    padding: 18px;
  }
  table {
    min-width: 760px;
  }
  .user-pill,
  .btn {
    width: 100%;
    justify-content: center;
  }
}
/* =========================
   RESPONSIVE FIX GENERAL
========================= */
html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

main {
  min-width: 0;
}

.card,
.stat-card,
.form-card,
.wide-form {
  max-width: 100%;
}

/* =========================
   MOBILE
========================= */
@media (max-width: 768px) {
  body {
    padding-bottom: 105px;
  }
  main {
    width: 100%;
    padding: 26px 18px 120px;
    overflow-x: hidden;
  }
  h1 {
    font-size: 34px;
    line-height: 1.05;
  }
  .top-header {
    display: block;
    margin-bottom: 26px;
  }
  .user-pill {
    width: 100%;
    margin-top: 18px;
    padding: 14px 18px;
    display: flex;
    justify-content: flex-start;
  }
  .stats-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
  .stat-card {
    min-width: 0;
    padding: 24px 26px;
  }
  .stat-card h2 {
    font-size: 42px;
  }
  .toolbar {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }
  .toolbar-left {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
  }
  .btn,
  button {
    width: 100%;
    min-height: 56px;
  }
  .card {
    padding: 24px;
    border-radius: 24px;
  }
  .form-card {
    width: 100%;
    max-width: 100%;
  }
  input,
  select,
  textarea {
    font-size: 16px;
    min-height: 56px;
  }
  textarea {
    min-height: 120px;
  }
  .check-label {
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .check-label input {
    width: 18px;
    min-height: auto;
  }
  /* Tablas con scroll interno limpio */
  .table-responsive,
  .card:has(table) {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  table {
    min-width: 760px;
  }
  th,
  td {
    white-space: nowrap;
  }
  /* Bottom nav */
  .sidebar {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    width: auto;
    height: 76px;
    z-index: 9999;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    border-radius: 24px;
    background: rgba(8, 8, 16, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(18px);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
  }
  .sidebar h2 {
    display: none;
  }
  .sidebar a {
    flex: 1;
    height: 58px;
    margin: 0;
    padding: 6px 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    text-align: center;
    border-radius: 18px;
  }
}
/* =========================
   CELULARES CHICOS
========================= */
@media (max-width: 430px) {
  main {
    padding: 24px 16px 120px;
  }
  h1 {
    font-size: 31px;
  }
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
  .stat-card {
    padding: 22px 26px;
  }
  .stat-card span {
    font-size: 18px;
    line-height: 1.1;
  }
  .stat-card h2 {
    font-size: 42px;
  }
  .card {
    padding: 22px;
  }
  .sidebar {
    left: 14px;
    right: 14px;
    bottom: 14px;
  }
  .sidebar a {
    font-size: 13px;
  }
}
/* FIX USUARIOS / MOBILE */
.user-info {
  display: flex;
  align-items: center;
  gap: 12px;
}
.user-info strong {
  display: block;
  font-weight: 900;
  color: #fff7ed;
}
.user-info small {
  display: block;
  color: #a8a29e;
  margin-top: 3px;
}

.avatar {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 900;
  color: white;
  background: linear-gradient(135deg, #fb923c, #ef4444);
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px;
  }
  .stat-card {
    min-width: 0;
    height: auto;
    padding: 22px 18px;
  }
  .stat-card span {
    display: block;
    font-size: 15px;
    line-height: 1.15;
    word-break: normal;
  }
  .stat-card h2 {
    font-size: 36px;
    line-height: 1;
  }
  .toolbar,
  .toolbar-left {
    width: 100%;
  }
  .toolbar-left input,
  .toolbar-left select {
    width: 100%;
  }
  .card:has(table) {
    overflow-x: auto;
    padding: 18px;
  }
  table {
    min-width: 720px;
  }
  th,
  td {
    white-space: nowrap;
  }
  .user-info {
    min-width: 180px;
  }
}
@media (max-width: 430px) {
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .stat-card {
    padding: 20px 16px;
  }
}
.toolbar {
  align-items: stretch;
}

.toolbar .btn {
  min-width: 170px;
  min-height: 58px;
  white-space: normal;
  text-align: center;
  line-height: 1.15;
}

.card,
.stat-card {
  background: rgba(22, 21, 32, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 24px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45), 0 0 45px rgba(251, 146, 60, 0.12);
  backdrop-filter: blur(18px);
}

.card {
  padding: 24px;
}

.form-card {
  max-width: 720px;
}

.wide-form {
  max-width: 980px;
}

.btn,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 19px;
  border: 0;
  border-radius: 15px;
  background: linear-gradient(135deg, #fb923c, #f97316, #ef4444);
  color: white;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.secondary-btn {
  width: auto;
  margin-bottom: 18px;
  background: rgba(251, 146, 60, 0.18);
  border: 1px solid rgba(251, 146, 60, 0.25);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 26px;
}

.stat-card {
  padding: 22px;
}

.stat-card span {
  color: #a8a29e;
  font-weight: 800;
}

.stat-card h2 {
  margin-top: 8px;
  font-size: 34px;
  color: #fb923c;
}

.toolbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.toolbar-left {
  display: flex;
  gap: 12px;
  width: 100%;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
}

th {
  color: #fed7aa;
  font-size: 12px;
  text-transform: uppercase;
}

.actions {
  display: flex;
  gap: 12px;
}

.user-pill {
  padding: 10px 15px;
  border-radius: 999px;
  background: rgba(251, 146, 60, 0.14);
  border: 1px solid rgba(251, 146, 60, 0.25);
  color: #fed7aa;
  font-weight: 900;
}

.alert {
  padding: 13px 14px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: rgba(239, 68, 68, 0.14);
  border: 1px solid rgba(239, 68, 68, 0.32);
  color: #fecaca;
}

label {
  display: block;
  margin-bottom: 7px;
  color: #fed7aa;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  padding: 14px 15px;
  margin-bottom: 18px;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(8, 8, 16, 0.75);
  color: #fff7ed;
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #fb923c;
  box-shadow: 0 0 0 4px rgba(251, 146, 60, 0.18);
}

textarea {
  min-height: 110px;
  resize: vertical;
}

input[type=datetime-local] {
  color-scheme: dark;
  cursor: pointer;
}
input[type=datetime-local]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  filter: invert(1);
  opacity: 1;
}

.check-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0;
  color: #fed7aa;
  font-weight: 800;
}
.check-label input[type=checkbox] {
  width: 18px;
  height: 18px;
  min-height: auto;
  margin: 0;
  padding: 0;
  flex: 0 0 auto;
}

.login-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-card {
  width: 100%;
  max-width: 430px;
  padding: 38px;
  border-radius: 28px;
  background: rgba(22, 21, 32, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45), 0 0 55px rgba(251, 146, 60, 0.18);
}
.login-card h1 {
  font-size: 42px;
  margin-bottom: 10px;
}
.login-card p {
  margin-bottom: 26px;
  color: #a8a29e;
}
.login-card button {
  width: 100%;
}

input[type=datetime-local] {
  color-scheme: dark;
  cursor: pointer;
}
input[type=datetime-local]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  filter: invert(1);
  opacity: 1;
}

/*# sourceMappingURL=style.css.map */
