html {
  overflow-x: hidden;
}

body {
  min-width: 320px;
}

button,
.btn,
input,
select,
textarea {
  min-height: 2.5rem;
}

.btn {
  align-items: center;
  justify-content: center;
  white-space: normal;
}

.page-heading h2 {
  line-height: 1.2;
}

.main-content {
  min-width: 0;
}

.main-content .grid > * {
  min-width: 0;
}

.movie-grid {
  align-items: stretch;
}

.article-pos-grid {
  align-items: stretch;
}

.article-image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tablet-pos {
  --pos-border: #e2e8f0;
  --pos-panel: #ffffff;
  --pos-muted: #64748b;
  --pos-ink: #1e293b;
  padding-top: 1.25rem;
}

.dark .tablet-pos {
  --pos-border: #384766;
  --pos-panel: #26334d;
  --pos-muted: #a3adc2;
  --pos-ink: #e9eef5;
}

.tablet-pos-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.tablet-pos-kicker {
  color: var(--pos-muted);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.tablet-pos-header h2 {
  color: var(--pos-ink);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  line-height: 1;
}

.tablet-primary-action,
.tablet-secondary-action,
.tablet-icon-button {
  align-items: center;
  border-radius: .75rem;
  display: inline-flex;
  font-weight: 700;
  gap: .5rem;
  justify-content: center;
  min-height: 3rem;
}

.tablet-primary-action {
  background: #4f46e5;
  color: #fff;
  padding: 0 1rem;
}

.tablet-secondary-action {
  background: #f1f5f9;
  color: #334155;
  padding: 0 1rem;
}

.dark .tablet-secondary-action {
  background: #202b40;
  color: #c2c9d6;
}

.tablet-icon-button {
  background: #f1f5f9;
  color: #475569;
  height: 3rem;
  width: 3rem;
}

.dark .tablet-icon-button {
  background: #202b40;
  color: #c2c9d6;
}

.tablet-message {
  background: #ecfdf5;
  border: 1px solid #86efac;
  border-radius: .75rem;
  color: #15803d;
  margin-bottom: 1rem;
  padding: .875rem 1rem;
}

.user-page {
  min-width: 0;
}

.user-layout,
.profile-layout {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  align-items: start;
}

.profile-layout {
  grid-template-columns: minmax(16rem, 20rem) minmax(0, 1fr);
}

.profile-layout .user-panel:last-child {
  grid-column: 2;
}

.user-panel,
.profile-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  box-shadow: 0 16px 40px rgba(15, 23, 42, .08);
  min-width: 0;
  padding: 1rem;
}

.dark .user-panel,
.dark .profile-card {
  background: #26334d;
  border-color: #384766;
}

.user-panel-heading {
  margin-bottom: 1rem;
}

.user-panel-heading h3,
.profile-card h3 {
  color: #1e293b;
  font-size: 1.05rem;
  font-weight: 800;
}

.dark .user-panel-heading h3,
.dark .profile-card h3 {
  color: #e9eef5;
}

.user-panel-heading p,
.profile-card p {
  color: #64748b;
  font-size: .85rem;
  margin-top: .2rem;
}

.dark .user-panel-heading p,
.dark .profile-card p {
  color: #a3adc2;
}

.tablet-field {
  display: grid;
  gap: .4rem;
}

.tablet-field > span {
  color: #475569;
  font-size: .8rem;
  font-weight: 700;
}

.dark .tablet-field > span {
  color: #c2c9d6;
}

.tablet-field small {
  color: #dc2626;
  font-size: .75rem;
}

.user-list {
  display: grid;
  gap: .75rem;
}

.user-row {
  align-items: center;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: .875rem;
  display: grid;
  gap: .75rem;
  grid-template-columns: auto minmax(0, 1fr) auto;
  padding: .75rem;
}

.dark .user-row {
  background: #202b40;
  border-color: #384766;
}

.user-row h4 {
  color: #1e293b;
  font-size: .95rem;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dark .user-row h4 {
  color: #e9eef5;
}

.user-row p {
  color: #64748b;
  font-size: .8rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.role-badge {
  background: #eef2ff;
  border-radius: 999px;
  color: #4f46e5;
  display: inline-flex;
  font-size: .72rem;
  font-weight: 800;
  justify-content: center;
  min-width: 5.25rem;
  padding: .35rem .65rem;
  text-transform: uppercase;
}

.role-badge.is-admin {
  background: #ecfdf5;
  color: #15803d;
}

.profile-card {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  text-align: center;
}

.profile-avatar {
  border: 4px solid #eef2ff;
  border-radius: 999px;
  height: 7rem;
  overflow: hidden;
  width: 7rem;
}

.profile-avatar img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.empty-panel {
  border: 1px dashed #cbd5e1;
  border-radius: .875rem;
  color: #64748b;
  padding: 1rem;
  text-align: center;
}

.filepond--root {
  font-family: inherit;
  margin-bottom: 0;
  min-height: 10rem;
}

.filepond--panel-root {
  background: #f8fafc;
  border: 2px dashed #cbd5e1;
  border-radius: 1rem;
}

.dark .filepond--panel-root {
  background: #202b40;
  border-color: #52617d;
}

.filepond--drop-label {
  color: #475569;
  min-height: 10rem;
}

.dark .filepond--drop-label {
  color: #c2c9d6;
}

.filepond--drop-label label {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: .35rem;
  padding: 1rem;
}

.filepond-icon {
  align-items: center;
  background: #eef2ff;
  border-radius: 999px;
  color: #4f46e5;
  display: inline-flex;
  font-size: 1.5rem;
  height: 3.5rem;
  justify-content: center;
  margin-bottom: .25rem;
  width: 3.5rem;
}

.dark .filepond-icon {
  background: rgba(124, 58, 237, .14);
  color: #a78bfa;
}

.filepond-main {
  color: #1e293b;
  font-size: .95rem;
  font-weight: 800;
}

.dark .filepond-main {
  color: #e9eef5;
}

.filepond-sub {
  color: #64748b;
  font-size: .78rem;
  font-weight: 600;
}

.dark .filepond-sub {
  color: #a3adc2;
}

.filepond--item-panel {
  background-color: #4f46e5;
}

.filepond--image-preview-wrapper,
.filepond--image-preview {
  border-radius: .875rem;
}

.filepond--file-action-button {
  background-color: rgba(15, 23, 42, .72);
}

.tablet-pos-layout {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr) minmax(20rem, 24rem);
  align-items: start;
}

.tablet-products {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(12.5rem, 1fr));
}

.tablet-product-card {
  background: var(--pos-panel);
  border: 2px solid transparent;
  border-radius: 1rem;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .08);
  color: inherit;
  display: flex;
  flex-direction: column;
  min-height: 16rem;
  overflow: hidden;
  text-align: left;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}

.tablet-product-card:active {
  transform: scale(.985);
}

.tablet-product-card.is-selected {
  border-color: #4f46e5;
  box-shadow: 0 16px 34px rgba(79, 70, 229, .22);
}

.tablet-product-card:disabled {
  cursor: not-allowed;
  opacity: .52;
}

.tablet-product-media {
  aspect-ratio: 4 / 3;
  background: #f1f5f9;
  display: block;
  overflow: hidden;
}

.dark .tablet-product-media {
  background: #202b40;
}

.tablet-product-media img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.tablet-product-placeholder {
  align-items: center;
  color: #94a3b8;
  display: flex;
  height: 100%;
  justify-content: center;
  width: 100%;
}

.tablet-product-placeholder i {
  font-size: 2.5rem;
}

.tablet-product-body {
  display: grid;
  gap: .35rem;
  padding: 1rem;
}

.tablet-product-name {
  color: var(--pos-ink);
  font-size: 1rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.tablet-product-price {
  color: #4f46e5;
  font-size: 1.2rem;
  font-weight: 800;
}

.tablet-checkout {
  position: sticky;
  top: 5rem;
}

.tablet-checkout-card,
.tablet-sales-card,
.tablet-modal {
  background: var(--pos-panel);
  border: 1px solid var(--pos-border);
  border-radius: 1rem;
  box-shadow: 0 16px 40px rgba(15, 23, 42, .10);
}

.tablet-checkout-card {
  padding: 1rem;
}

.tablet-checkout-media {
  align-items: center;
  aspect-ratio: 16 / 9;
  background: #f1f5f9;
  border-radius: .875rem;
  color: #94a3b8;
  display: flex;
  justify-content: center;
  overflow: hidden;
}

.dark .tablet-checkout-media {
  background: #202b40;
}

.tablet-checkout-media img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.tablet-checkout-media i {
  font-size: 2.5rem;
}

.tablet-checkout-title {
  margin-top: 1rem;
}

.tablet-checkout-title p {
  color: var(--pos-muted);
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
}

.tablet-checkout-title h3 {
  color: var(--pos-ink);
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.2;
  margin-top: .25rem;
  overflow-wrap: anywhere;
}

.tablet-sale-form {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.tablet-stepper,
.tablet-payment {
  background: #f8fafc;
  border: 1px solid var(--pos-border);
  border-radius: .875rem;
  display: grid;
}

.dark .tablet-stepper,
.dark .tablet-payment {
  background: #202b40;
}

.tablet-stepper {
  grid-template-columns: 3.25rem 1fr 3.25rem;
  min-height: 3.5rem;
}

.tablet-stepper button,
.tablet-payment button {
  align-items: center;
  display: flex;
  justify-content: center;
}

.tablet-stepper strong {
  align-items: center;
  color: var(--pos-ink);
  display: flex;
  font-size: 1.5rem;
  font-weight: 800;
  justify-content: center;
}

.tablet-payment {
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
}

.tablet-payment button {
  color: var(--pos-muted);
  font-weight: 800;
  min-height: 3.25rem;
}

.tablet-payment button.is-active {
  background: #4f46e5;
  color: #fff;
}

.tablet-total-row {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.tablet-total-row span {
  color: var(--pos-muted);
  font-weight: 700;
}

.tablet-total-row strong {
  color: var(--pos-ink);
  font-size: 1.75rem;
  font-weight: 900;
}

.tablet-submit {
  align-items: center;
  background: #10b981;
  border-radius: .875rem;
  color: #fff;
  display: flex;
  font-weight: 900;
  gap: .5rem;
  justify-content: center;
  min-height: 3.75rem;
  width: 100%;
}

.tablet-submit:disabled {
  opacity: .5;
}

.tablet-sales-card {
  margin-top: 1rem;
  overflow: hidden;
}

.tablet-sales-head {
  border-bottom: 1px solid var(--pos-border);
  color: var(--pos-ink);
  font-weight: 800;
  padding: 1rem;
}

.tablet-sale-row {
  align-items: center;
  border-bottom: 1px solid var(--pos-border);
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: .875rem 1rem;
}

.tablet-sale-row strong,
.tablet-sale-row small {
  display: block;
}

.tablet-sale-row strong {
  color: var(--pos-ink);
}

.tablet-sale-row small,
.tablet-sales-empty {
  color: var(--pos-muted);
}

.tablet-sales-empty {
  padding: 1rem;
}

.cart-lines {
  display: grid;
  gap: .75rem;
}

.cart-line {
  align-items: center;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: .875rem;
  display: grid;
  gap: .65rem;
  grid-template-columns: 3rem minmax(0, 1fr) auto auto;
  padding: .6rem;
}

.dark .cart-line {
  background: #202b40;
  border-color: #384766;
}

.cart-line-media {
  align-items: center;
  background: #eef2ff;
  border-radius: .7rem;
  color: #4f46e5;
  display: flex;
  height: 3rem;
  justify-content: center;
  overflow: hidden;
  width: 3rem;
}

.cart-line-media img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.cart-line strong,
.cart-line small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cart-line strong {
  color: #1e293b;
  font-size: .85rem;
  font-weight: 800;
}

.dark .cart-line strong {
  color: #e9eef5;
}

.cart-line small {
  color: #64748b;
  font-size: .72rem;
}

.cart-line-actions {
  align-items: center;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  display: flex;
  gap: .35rem;
  min-height: 2.35rem;
  padding: .2rem;
}

.dark .cart-line-actions {
  background: #1d273a;
  border-color: #384766;
}

.cart-line-actions button,
.cart-remove {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  height: 1.95rem;
  justify-content: center;
  width: 1.95rem;
}

.cart-line-actions button {
  background: #eef2ff;
  color: #4f46e5;
}

.cart-line-actions button:disabled {
  opacity: .4;
}

.cart-line-actions span {
  color: #1e293b;
  font-size: .85rem;
  font-weight: 800;
  min-width: 1.25rem;
  text-align: center;
}

.dark .cart-line-actions span {
  color: #e9eef5;
}

.cart-remove {
  background: #fee2e2;
  color: #dc2626;
}

.cart-empty {
  min-height: 8rem;
}

.stock-pill {
  background: #ecfdf5;
  border-radius: 999px;
  color: #15803d;
  display: inline-flex;
  font-size: .72rem;
  font-weight: 800;
  margin-top: .35rem;
  padding: .3rem .55rem;
  width: fit-content;
}

.stock-pill.is-empty {
  background: #fee2e2;
  color: #dc2626;
}

.article-admin-layout,
.inventory-layout {
  align-items: start;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(18rem, 24rem) minmax(0, 1fr);
}

.inventory-layout {
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 22rem);
}

.article-list-panel,
.inventory-grid {
  display: grid;
  gap: 1rem;
}

.inventory-grid {
  grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
}

.article-manage-card,
.inventory-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  box-shadow: 0 16px 40px rgba(15, 23, 42, .08);
  min-width: 0;
  padding: 1rem;
}

.dark .article-manage-card,
.dark .inventory-card {
  background: #26334d;
  border-color: #384766;
}

.article-manage-summary {
  align-items: center;
  display: grid;
  gap: .85rem;
  grid-template-columns: 4.5rem minmax(0, 1fr) auto;
}

.article-manage-media {
  align-items: center;
  background: #eef2ff;
  border-radius: .875rem;
  color: #4f46e5;
  display: flex;
  height: 4.5rem;
  justify-content: center;
  overflow: hidden;
  width: 4.5rem;
}

.article-manage-media img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.article-manage-summary h3,
.inventory-card h3 {
  color: #1e293b;
  font-size: 1rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.dark .article-manage-summary h3,
.dark .inventory-card h3 {
  color: #e9eef5;
}

.article-manage-summary p,
.inventory-card p {
  color: #64748b;
  font-size: .85rem;
  font-weight: 700;
}

.article-manage-actions {
  display: flex;
  gap: .5rem;
}

.tablet-icon-button.is-danger {
  background: #fee2e2;
  color: #dc2626;
}

.article-edit-form {
  border-top: 1px solid #e2e8f0;
  margin-top: 1rem;
  padding-top: 1rem;
}

.dark .article-edit-form {
  border-color: #384766;
}

.article-solid-form input:not([type="file"]):not([type="checkbox"]):not([type="radio"]) {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #1e293b;
}

.dark .article-solid-form input:not([type="file"]):not([type="checkbox"]):not([type="radio"]) {
  background: #1d273a;
  border-color: #52617d;
  color: #e9eef5;
}

.inventory-card {
  display: grid;
  gap: .9rem;
  grid-template-columns: auto minmax(0, 1fr);
}

.inventory-form {
  display: grid;
  gap: .7rem;
  grid-column: 1 / -1;
}

.inventory-form label {
  display: grid;
  gap: .35rem;
}

.inventory-form label span {
  color: #475569;
  font-size: .78rem;
  font-weight: 800;
}

.dark .inventory-form label span {
  color: #c2c9d6;
}

.inventory-form input {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: .875rem;
  color: #1e293b;
  min-height: 3rem;
  padding: 0 .9rem;
}

.dark .inventory-form input {
  background: #1d273a;
  border-color: #52617d;
  color: #e9eef5;
}

.management-panel {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  box-shadow: 0 16px 40px rgba(15, 23, 42, .08);
  min-width: 0;
  padding: 1rem;
}

.dark .management-panel {
  background: #26334d;
  border-color: #384766;
}

.management-panel-head {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.management-panel-head h3 {
  color: #1e293b;
  font-size: 1.05rem;
  font-weight: 800;
}

.dark .management-panel-head h3 {
  color: #e9eef5;
}

.management-panel-head p {
  color: #64748b;
  font-size: .85rem;
  margin-top: .15rem;
}

.dark .management-panel-head p {
  color: #a3adc2;
}

.table-create-form {
  align-items: end;
  display: grid;
  gap: .9rem;
  grid-template-columns: minmax(12rem, 1.3fr) minmax(8rem, .7fr) minmax(14rem, 1fr) auto auto;
}

.responsive-table-wrap {
  overflow-x: auto;
  width: 100%;
}

.management-table {
  border-collapse: separate;
  border-spacing: 0;
  min-width: 48rem;
  width: 100%;
}

.inventory-table {
  min-width: 62rem;
}

.management-table th {
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  color: #475569;
  font-size: .72rem;
  font-weight: 900;
  padding: .75rem;
  text-align: left;
  text-transform: uppercase;
}

.dark .management-table th {
  background: #202b40;
  border-color: #384766;
  color: #c2c9d6;
}

.management-table td {
  border-bottom: 1px solid #e2e8f0;
  color: #334155;
  font-size: .86rem;
  padding: .75rem;
  vertical-align: middle;
}

.dark .management-table td {
  border-color: #384766;
  color: #d9e1ee;
}

.management-table tbody tr:last-child td {
  border-bottom: 0;
}

.management-table strong,
.management-table small {
  display: block;
}

.management-table strong {
  color: #1e293b;
  font-weight: 800;
}

.dark .management-table strong {
  color: #e9eef5;
}

.management-table small {
  color: #64748b;
  font-size: .75rem;
  margin-top: .15rem;
}

.table-thumb {
  align-items: center;
  background: #eef2ff;
  border-radius: .75rem;
  color: #4f46e5;
  display: flex;
  height: 3.25rem;
  justify-content: center;
  overflow: hidden;
  width: 3.25rem;
}

.table-thumb img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.state-pill {
  background: #ecfdf5;
  border-radius: 999px;
  color: #15803d;
  display: inline-flex;
  font-size: .72rem;
  font-weight: 800;
  padding: .3rem .55rem;
}

.state-pill.is-off {
  background: #f1f5f9;
  color: #64748b;
}

.table-actions {
  align-items: center;
  display: flex;
  gap: .5rem;
  justify-content: flex-end;
}

.table-action-main {
  min-height: 2.65rem;
  padding: 0 .85rem;
}

.table-input {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: .75rem;
  color: #1e293b;
  min-height: 2.65rem;
  padding: 0 .75rem;
  width: 100%;
}

.table-input-sm {
  max-width: 6rem;
}

.dark .table-input {
  background: #1d273a;
  border-color: #52617d;
  color: #e9eef5;
}

.table-empty {
  color: #64748b;
  padding: 2rem !important;
  text-align: center;
}

.tablet-empty-state {
  align-items: center;
  background: var(--pos-panel);
  border: 1px dashed var(--pos-border);
  border-radius: 1rem;
  color: var(--pos-muted);
  display: grid;
  gap: .75rem;
  min-height: 16rem;
  place-items: center;
}

.tablet-modal {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .24);
  max-height: calc(100vh - 2rem);
  max-width: 34rem;
  overflow-y: auto;
  padding: 1rem;
  position: relative;
  width: min(100%, 34rem);
}

.dark .tablet-modal {
  border-color: #384766;
  background: #26334d;
}

.article-modal {
  color: #1e293b;
}

.article-modal .tablet-pos-kicker {
  color: #64748b;
}

.dark .article-modal {
  color: #e9eef5;
}

.dark .article-modal .tablet-pos-kicker {
  color: #a3adc2;
}

.tablet-modal-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.tablet-modal-head h3 {
  color: #1e293b;
  font-size: 1.35rem;
  font-weight: 800;
}

.dark .tablet-modal-head h3 {
  color: #e9eef5;
}

.tablet-form {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.article-modal-form .tablet-field input:not([type="file"]):not([type="checkbox"]):not([type="radio"]) {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #1e293b;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .02);
}

.dark .article-modal-form .tablet-field input:not([type="file"]):not([type="checkbox"]):not([type="radio"]) {
  background: #1d273a;
  border-color: #52617d;
  color: #e9eef5;
}

.tablet-field {
  display: grid;
  gap: .4rem;
}

.tablet-field > span {
  color: #475569;
  font-size: .8rem;
  font-weight: 800;
}

.dark .tablet-field > span {
  color: #c2c9d6;
}

.tablet-field input:not([type="file"]):not([type="checkbox"]):not([type="radio"]) {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: .875rem;
  color: #1e293b;
  min-height: 3.5rem;
  padding: 0 1rem;
  width: 100%;
}

.dark .tablet-field input:not([type="file"]):not([type="checkbox"]):not([type="radio"]) {
  background: #202b40;
  border-color: #384766;
  color: #e9eef5;
}

.tablet-file-field {
  cursor: pointer;
  display: block;
}

.tablet-file-field input {
  height: 1px;
  opacity: 0;
  position: absolute;
  width: 1px;
}

.tablet-file-field span {
  align-items: center;
  background: #f8fafc;
  border: 1px dashed var(--pos-border);
  border-radius: .875rem;
  color: var(--pos-muted);
  display: flex;
  gap: .75rem;
  justify-content: center;
  min-height: 4rem;
}

.dark .tablet-file-field span {
  background: #202b40;
}

.tablet-toggle {
  align-items: center;
  color: var(--pos-ink);
  display: flex;
  font-weight: 800;
  gap: .75rem;
}

.tablet-toggle input {
  display: none;
}

.tablet-toggle span {
  background: #cbd5e1;
  border-radius: 999px;
  height: 1.75rem;
  position: relative;
  width: 3.25rem;
}

.tablet-toggle span:before {
  background: #fff;
  border-radius: 999px;
  content: "";
  height: 1.25rem;
  left: .25rem;
  position: absolute;
  top: .25rem;
  transition: transform .15s ease;
  width: 1.25rem;
}

.tablet-toggle input:checked + span {
  background: #4f46e5;
}

.tablet-toggle input:checked + span:before {
  transform: translateX(1.5rem);
}

.tablet-modal-actions {
  display: flex;
  gap: .75rem;
  justify-content: flex-end;
}

.tablet-dashboard .dashboard-panel {
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  box-shadow: 0 16px 36px rgba(15, 23, 42, .08);
  overflow: hidden;
}

.dark .tablet-dashboard .dashboard-panel {
  border-color: #384766;
}

.dashboard-stat {
  border-radius: .875rem;
  min-height: 7rem;
}

.dashboard-stat p:first-child {
  font-size: clamp(1.35rem, 3vw, 2rem);
  overflow-wrap: anywhere;
}

.tablet-dashboard .apexcharts-canvas,
.tablet-dashboard .apexcharts-svg {
  max-width: 100%;
}

.dashboard-recent .movie-card {
  min-height: 22rem;
}

.tablet-form-modal {
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  box-shadow: 0 20px 50px rgba(15, 23, 42, .18);
}

.dark .tablet-form-modal {
  border-color: #384766;
}

.tablet-form-stack {
  display: grid;
  gap: 1rem;
}

.tablet-form-stack .form-group {
  display: grid;
  gap: .4rem;
  margin: 0;
}

.tablet-form-stack label,
.tablet-form-stack .control-label,
.tablet-form-stack .form-label {
  color: var(--pos-muted, #64748b);
  font-size: .82rem;
  font-weight: 800;
  margin: 0;
}

.tablet-form-stack input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.tablet-form-stack select,
.tablet-form-stack textarea,
.tablet-form-stack .form-control,
.tablet-form-stack .form-input,
.tablet-form-stack .form-select,
.tablet-form-stack .ts-control {
  background: #f8fafc;
  border: 1px solid #dbe3ef;
  border-radius: .875rem;
  color: #1e293b;
  min-height: 3.35rem;
  padding: 0 1rem;
  width: 100%;
}

.dark .tablet-form-stack input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.dark .tablet-form-stack select,
.dark .tablet-form-stack textarea,
.dark .tablet-form-stack .form-control,
.dark .tablet-form-stack .form-input,
.dark .tablet-form-stack .form-select,
.dark .tablet-form-stack .ts-control {
  background: #202b40;
  border-color: #384766;
  color: #e9eef5;
}

.tablet-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  justify-content: flex-end;
}

.tablet-form-actions .btn {
  border-radius: .75rem;
  min-height: 3rem;
}

.ticket-form-panel {
  background: #fff;
}

.dark .ticket-form-panel {
  background: #26334d;
}

.ticket-form-panel .form-group {
  margin-bottom: .85rem;
}

.ticket-form-panel label {
  color: var(--pos-muted, #64748b);
  font-size: .8rem;
  font-weight: 800;
}

.ticket-form-panel input,
.ticket-form-panel select {
  min-height: 3rem;
}

.import-wizard .card {
  border-radius: 1rem;
}

.wizard-steps-panel > div {
  width: 100%;
}

.tablet-wizard-card {
  border: 1px solid #e2e8f0;
  box-shadow: 0 16px 36px rgba(15, 23, 42, .08);
}

.dark .tablet-wizard-card {
  border-color: #384766;
}

.tablet-price-field > span:first-child {
  border-radius: .875rem 0 0 .875rem;
  min-height: 3.35rem;
}

#filmProd {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: .875rem;
  color: #475569;
  display: grid;
  gap: .35rem;
  min-height: 4rem;
  padding: 1rem;
}

.dark #filmProd {
  background: #202b40;
  border-color: #384766;
  color: #c2c9d6;
}

#wrapper,
.gridjs-container {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  box-shadow: 0 16px 36px rgba(15, 23, 42, .08);
  overflow: hidden;
}

.dark #wrapper,
.dark .gridjs-container {
  background: #26334d;
  border-color: #384766;
}

.gridjs-search {
  padding-top: 1rem;
}

.gridjs-input.gridjs-search-input {
  min-height: 3rem;
}

.movie-item,
.movie-card {
  min-height: 26rem;
  isolation: isolate;
}

.movie-card > img {
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.movie_info {
  min-height: 20rem;
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
}

.poster__info,
.detail_info,
.inner {
  min-width: 0;
}

.movie-card h3,
.movie-card .release,
.movie-card .popularity {
  overflow-wrap: anywhere;
}

.movie-card h3 {
  font-size: 1.25rem;
  line-height: 1.25;
}

.movie-card .datos {
  gap: .75rem;
}

.movie-action {
  border-radius: .5rem;
}

.poster__footer {
  padding: 0 1rem 1.25rem;
}

.app-modal-panel {
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
}

.form-group,
.form-control,
.form-input,
.form-select,
.ts-wrapper,
.ts-control {
  min-width: 0;
  width: 100%;
}

.gridjs-container {
  min-width: 0;
}

.gridjs-wrapper {
  border-radius: .5rem;
  -webkit-overflow-scrolling: touch;
}

.gridjs-search {
  justify-content: stretch;
}

.gridjs-search input {
  width: 100%;
}

.gridjs-pagination {
  gap: .75rem;
}

.gridjs-pages {
  gap: .25rem;
}

.scrollbar-sm > .bg-white {
  flex: 0 0 min(18rem, 82vw);
}

.pos-ticket-layout {
  align-items: start;
}

.ticket-form-panel {
  border: 1px solid #e2e8f0;
  border-radius: .5rem;
  padding: 1rem;
}

.dark .ticket-form-panel {
  border-color: #384766;
}

.pos-ticket-layout button[onclick^="getChair"] {
  width: 2.5rem;
  height: 2.5rem;
  margin: .25rem;
}

@media (max-width: 767px) {
  :root {
    --margin-x: .875rem;
  }

  nav.header {
    height: 56px;
  }

  nav.header .header-container {
    padding-left: .875rem;
    padding-right: .875rem;
  }

  .main-content {
    margin-left: 0;
    margin-top: 56px;
    padding-bottom: 6rem;
  }

  .main-sidebar {
    --tw-translate-x: 0 !important;
    bottom: 0;
    top: auto;
    width: 100%;
    height: 4.75rem;
    z-index: 70;
    transform: translate3d(0, 0, 0) !important;
  }

  .main-sidebar > div {
    flex-direction: row;
    justify-content: space-around;
    border-top: 1px solid #e2e8f0;
    border-right: 0;
    padding: .5rem .75rem;
  }

  .dark .main-sidebar > div {
    border-top-color: #26334d;
  }

  .main-sidebar > div > .flex.pt-4,
  .main-sidebar > div > .flex.flex-col.items-center {
    display: none;
  }

  .main-sidebar .is-scrollbar-hidden {
    flex-direction: row;
    justify-content: space-around;
    width: 100%;
    padding-top: 0;
    overflow: visible;
    gap: .25rem;
  }

  .main-sidebar .is-scrollbar-hidden > a {
    width: 3.25rem;
    height: 3.25rem;
  }

  .main-sidebar .is-scrollbar-hidden svg {
    width: 1.5rem;
    height: 1.5rem;
  }

  .header .btn {
    min-width: 2.5rem;
    padding-left: .625rem;
    padding-right: .625rem;
  }

  .page-heading {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }

  .movie-card {
    min-height: 24rem;
  }

  .movie_info {
    min-height: 18.5rem;
    padding: 1rem;
  }

  .movie-card .datos {
    flex-wrap: wrap;
  }

  .movie-card .datos_col {
    min-width: 30%;
  }

  .app-modal-panel {
    max-height: calc(100vh - 1rem);
  }

  .pos-ticket-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .ticket-form-panel {
    order: -1;
  }

  .steps.is-vertical {
    flex-direction: row;
    width: 100%;
    max-width: calc(100vw - 1.75rem);
    overflow-x: auto;
    padding-bottom: .5rem;
  }

  .steps.is-vertical .step {
    flex: 0 0 11rem;
    min-width: 0;
    padding-bottom: 0;
  }

  .steps.is-vertical .step:not(:last-child):before {
    display: none;
  }

  .gridjs-pagination {
    align-items: stretch;
  }

  .gridjs-pages {
    justify-content: center;
  }

  .tablet-pos {
    padding-top: .75rem;
  }

  .tablet-pos-header {
    align-items: flex-start;
  }

  .tablet-pos-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .tablet-products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tablet-product-card {
    border-radius: .875rem;
    min-height: 13.5rem;
  }

  .tablet-product-body {
    padding: .75rem;
  }

  .tablet-product-name {
    font-size: .9rem;
  }

  .tablet-product-price {
    font-size: 1rem;
  }

  .tablet-checkout {
    bottom: 5rem;
    left: .875rem;
    position: sticky;
    right: .875rem;
    top: auto;
    z-index: 30;
  }

  .tablet-checkout-card {
    box-shadow: 0 -10px 30px rgba(15, 23, 42, .18);
  }

  .tablet-checkout-media {
    display: none;
  }

  .tablet-sale-form {
    gap: .75rem;
  }

  .tablet-stepper,
  .tablet-payment {
    min-height: 3rem;
  }

  .tablet-sales-card {
    display: none;
  }

  .tablet-modal-actions {
    flex-direction: column-reverse;
  }

  .tablet-modal-actions > * {
    width: 100%;
  }

  .cart-line {
    grid-template-columns: 2.75rem minmax(0, 1fr) auto;
  }

  .cart-remove {
    grid-column: 1 / -1;
    justify-self: end;
  }

  .article-admin-layout,
  .inventory-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .table-create-form {
    grid-template-columns: minmax(0, 1fr);
  }

  .article-manage-summary {
    grid-template-columns: 4rem minmax(0, 1fr);
  }

  .article-manage-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }

  .tablet-dashboard {
    gap: .875rem;
  }

  .dashboard-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-side {
    grid-template-columns: minmax(0, 1fr);
  }

  .dashboard-side .card {
    grid-column: auto;
  }

  .tablet-form-actions {
    flex-direction: column-reverse;
  }

  .tablet-form-actions .btn,
  .tablet-form-actions .tablet-primary-action,
  .tablet-form-actions .tablet-secondary-action {
    width: 100%;
  }

  .user-layout,
  .profile-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .profile-layout .user-panel:last-child {
    grid-column: auto;
  }

  .user-row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .user-row .role-badge {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .main-sidebar .is-scrollbar-hidden > a {
    width: 2.85rem;
  }
}

@media (min-width: 768px) {
  .gridjs-search input {
    max-width: 20rem;
  }
}

@media (min-width: 768px) and (max-width: 1180px) {
  .tablet-pos-layout {
    grid-template-columns: minmax(0, 1fr) 20rem;
  }

  .tablet-products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tablet-checkout {
    top: 4.75rem;
  }

  .tablet-dashboard {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }

  .tablet-dashboard > .card:first-child,
  .tablet-dashboard > .dashboard-side,
  .tablet-dashboard > .dashboard-recent {
    grid-column: span 12 / span 12;
  }

  .dashboard-side {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .dashboard-side .card {
    grid-column: auto;
  }

  .dashboard-side .card:first-child {
    grid-column: span 1 / span 1;
  }

  .import-wizard > .wizard-steps-panel,
  .import-wizard > div:last-child {
    grid-column: span 12 / span 12;
  }

  .import-wizard .steps.is-vertical {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: .5rem;
  }

  .import-wizard .steps.is-vertical .step {
    flex: 0 0 15rem;
    padding-bottom: 0;
  }

  .import-wizard .steps.is-vertical .step:not(:last-child):before {
    display: none;
  }

  .user-layout,
  .profile-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .profile-layout .user-panel:last-child {
    grid-column: auto;
  }

  .user-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .user-row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .user-row .role-badge {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .article-admin-layout,
  .inventory-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .table-create-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .table-create-form .tablet-primary-action {
    grid-column: span 2 / span 2;
  }
}

@media (min-width: 1280px) {
  .movie-card {
    min-height: 28rem;
  }
}
