body { background: #f4f6f9; }
.main-container { padding: 2em 0 4em; }
.main-container.with-menu { padding-top: 5em; }
.app-menu.ui.menu { border-radius: 0; }
.logout-form { margin: 0; }
.logout-btn.item { background: none !important; border: 0 !important; width: 100%; text-align: left !important; cursor: pointer; font: inherit; }
.login-grid { min-height: 80vh; }
.login-column { max-width: 400px; }
.text-ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.center-text { text-align: center; }
.inline-form { display: inline-block; margin: 0 .2em .3em 0; }
.pagination-wrap { text-align: center; margin-top: 2em; }
.stackable-stats.ui.statistics { justify-content: space-around; }
.ui.statistics .statistic { margin: .5em 1em !important; }

/* Tarjetas QR */
.qr-card .qr-thumb-wrap { background: #fff !important; padding: 1em; display: flex !important; justify-content: center; position: relative; }
.qr-thumb { width: 160px; height: auto; min-height: 160px; display: flex; align-items: center; justify-content: center; }
.qr-canvas { width: 100%; height: auto; display: block; }
.qr-card.inactive .qr-thumb { opacity: .35; }
.qr-card .ribbon.label { position: absolute; left: -1.2em !important; top: 1em; }

/* Diseñador */
.type-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: .6em; }
.type-option { border: 2px solid #e0e1e2; border-radius: .5em; padding: .9em .5em; text-align: center; cursor: pointer; background: #fff; transition: all .15s; display: flex; flex-direction: column; align-items: center; gap: .3em; font-size: .9em; }
.type-option input { display: none; }
.type-option:hover { border-color: #2185d0; }
.type-option.selected { border-color: #2185d0; background: #eaf4fc; color: #2185d0; font-weight: bold; }
.type-option.disabled { opacity: .35; cursor: not-allowed; }
.shape-picker { display: flex; flex-wrap: wrap; gap: .3em; }
.shape-picker .button { margin: 0 !important; }
input[type=color] { width: 100% !important; height: 2.7em !important; padding: .2em !important; cursor: pointer; }
input[type=range] { width: 100%; }
.preset-list { display: flex; flex-wrap: wrap; gap: .6em; }
.preset { width: 52px; height: 52px; border: 3px solid; border-radius: .5em; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 4px; padding: 0; }
.preset span { width: 14px; height: 14px; border-radius: 3px; display: block; }
.preset:hover { transform: scale(1.08); }
.sticky-preview { position: sticky; top: 5em; }
.qr-preview { background: repeating-conic-gradient(#f3f3f3 0% 25%, #fff 0% 50%) 50% / 20px 20px; border-radius: .5em; padding: 1em; min-height: 260px; display: flex; align-items: center; justify-content: center; margin-bottom: 1em; }
.qr-preview .qr-canvas { max-width: 300px; }
.save-btn { margin-top: 1em !important; }
.fixed-url input { font-family: monospace !important; font-size: .85em !important; }
.danger-zone { margin-top: 2em !important; }

/* Reportes */
.chart-box { position: relative; height: 240px; }
.chart-box.tall { height: 320px; }
.range-buttons { margin-top: .3em !important; flex-wrap: wrap; }
.table-scroll { overflow-x: auto; }
.actions-cell { white-space: nowrap; }
.pw-reset { display: inline-block; vertical-align: top; }
.pw-reset[open] form { display: flex; gap: .3em; margin-top: .4em; }
.pw-reset summary { list-style: none; }
.pw-reset summary::-webkit-details-marker { display: none; }
tr.disabled td { opacity: .6; }

@media (max-width: 767px) {
  .hide-sm { display: none; }
  .sticky-preview { position: static; }
  .main-container.with-menu { padding-top: 4.5em; }
}
