/* ============================================================
   TEKNA CINEMA — tema "projection room"
   Cinematografico, professionale, basso carico cognitivo.
   Attivazione: data-theme="cinema" su <html>
   Funzioni invariate: solo skin CSS (Feature A).
   Diverso da Neo-Radar (niente neon/grid) e dai temi classici.
   ============================================================ */

@import url("https://fonts.googleapis.com/css2?family=Syne:wght@500;600;700&family=Source+Sans+3:wght@400;500;600;700&display=swap");

html[data-theme="cinema"],
html[data-theme="cinema"] :root {
    --tk-primary:            #3d6b8a;
    --tk-primary-dark:       #2a4f68;
    --tk-navbar-bg:          rgba(12, 14, 18, 0.94);
    --tk-navbar-text:        #f0f2f5;
    --tk-bg-surface:         #0c0e12;
    --tk-bg-card:            #f4f6f8;
    --tk-text-primary:       #1a1d24;
    --tk-border-color:       rgba(26, 29, 36, 0.08);
    --tk-table-header-bg:    transparent;
    --tk-table-header-color: #5a6270;
    --tk-hover-row-bg:       rgba(61, 107, 138, 0.06);
    --tk-hover-accent:       #3d6b8a;
    --tk-link-color:         #2a4f68;
    --tk-accent-subtle-bg:   rgba(61, 107, 138, 0.1);
    --tk-accent-subtle-text: #2a4f68;
    --tk-surface-plain:      #f4f6f8;
    --tk-border-soft:        rgba(26, 29, 36, 0.1);
    --tk-border-subtle:      rgba(26, 29, 36, 0.06);
    --tk-info-soft:          rgba(61, 107, 138, 0.08);
    --tk-overlay-dark:       rgba(8, 10, 14, 0.72);

    /* Cinema exclusive */
    --tk-cinema-ink:         #0c0e12;
    --tk-cinema-screen:      #f4f6f8;
    --tk-cinema-mist:        #e8ecf1;
    --tk-cinema-muted:       #6b7380;
    --tk-cinema-spotlight:   #c9a227;
    --tk-cinema-letterbox:   #050608;
    --tk-cinema-radius:      2px;
    --tk-cinema-ease:        cubic-bezier(0.22, 1, 0.36, 1);
    --tk-cinema-nav-h:       3.25rem;
    /* Azioni: spazio reale per icona+label (layout-core default 8.5rem taglia "Elimina") */
    --tk-actions-col-width: 13.75rem;
    --tk-actions-col-width-edit: 14.5rem;
}

/* —— Stage: vignette only (NO fixed letterbox bars → no notch shell/stage) —— */
html[data-theme="cinema"] body {
    background-color: var(--tk-cinema-ink);
    background-image:
        radial-gradient(ellipse 90% 55% at 50% 0%, rgba(61, 107, 138, 0.14), transparent 55%),
        radial-gradient(ellipse 70% 40% at 50% 100%, rgba(0, 0, 0, 0.35), transparent 60%);
    background-attachment: fixed;
    color: var(--tk-text-primary);
    font-family: "Source Sans 3", "Segoe UI", sans-serif;
    font-weight: 450;
    letter-spacing: 0.01em;
}

/* Letterbox bars removed: they fought .app-shell padding/radius and created corner notches */
html[data-theme="cinema"] body::before,
html[data-theme="cinema"] body::after {
    content: none !important;
    display: none !important;
}

html[data-theme="cinema"] h1,
html[data-theme="cinema"] h2,
html[data-theme="cinema"] h3,
html[data-theme="cinema"] h4,
html[data-theme="cinema"] h5,
html[data-theme="cinema"] h6,
html[data-theme="cinema"] .navbar-brand,
html[data-theme="cinema"] .offcanvas-title,
html[data-theme="cinema"] .modal-title,
html[data-theme="cinema"] .card-header {
    font-family: Syne, "Segoe UI", sans-serif;
    font-weight: 600;
    letter-spacing: -0.02em;
}

/* —— Projection screen: edge-to-edge under navbar (shell ≡ content plane) —— */
html[data-theme="cinema"] .app-main,
html[data-theme="cinema"] .container-fluid.app-main {
    padding: 0 !important;
    max-width: none;
    width: 100% !important;
    margin: 0 !important;
    box-sizing: border-box;
    min-width: 0;
    overflow-x: hidden; /* clip table scroll inside, never past shell */
    min-height: calc(100dvh - var(--tk-cinema-nav-h));
}

html[data-theme="cinema"] .app-shell {
    background: var(--tk-cinema-screen);
    border-radius: 0 !important;
    box-shadow: none;
    margin: 0 !important;
    padding: 1rem 1.15rem 1.35rem !important;
    animation: tk-cinema-rise 0.45s var(--tk-cinema-ease) both;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0;
    box-sizing: border-box;
    overflow-x: hidden; /* scroll happens in .table-responsive, not past screen */
    overflow-y: visible;
    min-height: calc(100dvh - var(--tk-cinema-nav-h));
}

/* Containment: flex/grid children can shrink */
html[data-theme="cinema"] .app-shell .row,
html[data-theme="cinema"] .app-shell [class*="col-"],
html[data-theme="cinema"] .app-shell .col,
html[data-theme="cinema"] .app-shell .d-flex,
html[data-theme="cinema"] .app-shell .card,
html[data-theme="cinema"] .app-shell .card-body,
html[data-theme="cinema"] #tabella_tot,
html[data-theme="cinema"] #table_container,
html[data-theme="cinema"] #ws_container,
html[data-theme="cinema"] #costi_container,
html[data-theme="cinema"] #adminTabsContent,
html[data-theme="cinema"] .tk-dashboard-panel {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

html[data-theme="cinema"] .container,
html[data-theme="cinema"] .container-fluid {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

@keyframes tk-cinema-rise {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* —— Navbar: quiet cinema bar —— */
html[data-theme="cinema"] .navbar.bg-primary {
    background: var(--tk-navbar-bg) !important;
    backdrop-filter: blur(12px) saturate(1.1);
    -webkit-backdrop-filter: blur(12px) saturate(1.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: none;
    min-height: 3rem;
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
}

html[data-theme="cinema"] .navbar .nav-link {
    font-family: Syne, sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    opacity: 0.78;
    transition: opacity 0.2s var(--tk-cinema-ease), color 0.2s ease;
}

html[data-theme="cinema"] .navbar .nav-link:hover,
html[data-theme="cinema"] .navbar .nav-link.active,
html[data-theme="cinema"] .navbar .nav-link.show {
    opacity: 1;
    color: #fff !important;
}

html[data-theme="cinema"] #logo_bar {
    background: transparent !important;
    padding: 0.35rem 0 !important;
}

html[data-theme="cinema"] #logo_svg svg {
    height: 56px;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.35));
}

/* —— Cards / panels: de-card for lower cognitive load —— */
html[data-theme="cinema"] .card {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    color: var(--tk-text-primary);
}

html[data-theme="cinema"] .card-header {
    background: transparent !important;
    border-bottom: 1px solid var(--tk-border-soft) !important;
    padding-left: 0;
    padding-right: 0;
    color: var(--tk-text-primary);
    font-size: 0.95rem;
}

html[data-theme="cinema"] .card-body {
    padding-left: 0;
    padding-right: 0;
}

html[data-theme="cinema"] .modal-content,
html[data-theme="cinema"] .offcanvas {
    background: var(--tk-cinema-screen) !important;
    border: none !important;
    border-radius: var(--tk-cinema-radius) !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
    color: var(--tk-text-primary);
}

html[data-theme="cinema"] .offcanvas-header,
html[data-theme="cinema"] .modal-header {
    border-bottom-color: var(--tk-border-soft) !important;
}

/* —— Forms: quiet fields —— */
html[data-theme="cinema"] .form-control,
html[data-theme="cinema"] .form-select {
    background: #fff;
    border: 1px solid var(--tk-border-soft);
    border-radius: var(--tk-cinema-radius);
    color: var(--tk-text-primary);
    box-shadow: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

html[data-theme="cinema"] .form-control:focus,
html[data-theme="cinema"] .form-select:focus {
    border-color: var(--tk-primary);
    box-shadow: 0 0 0 3px rgba(61, 107, 138, 0.18);
}

html[data-theme="cinema"] .form-label,
html[data-theme="cinema"] label {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--tk-cinema-muted);
}

/* —— Buttons: one clear primary action —— */
html[data-theme="cinema"] .btn {
    border-radius: var(--tk-cinema-radius);
    font-family: Syne, sans-serif;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: transform 0.15s var(--tk-cinema-ease), filter 0.15s ease, background 0.15s ease;
}

html[data-theme="cinema"] .btn-primary {
    background: var(--tk-primary);
    border: none;
    color: #fff;
    box-shadow: none;
}

html[data-theme="cinema"] .btn-primary:hover,
html[data-theme="cinema"] .btn-primary:focus {
    background: var(--tk-primary-dark);
    filter: none;
    transform: translateY(-1px);
    color: #fff;
}

html[data-theme="cinema"] .btn-outline-secondary,
html[data-theme="cinema"] .btn-outline-primary,
html[data-theme="cinema"] .btn-light {
    border-color: var(--tk-border-soft);
    background: transparent;
    color: var(--tk-text-primary);
}

html[data-theme="cinema"] .btn-outline-secondary:hover,
html[data-theme="cinema"] .btn-outline-primary:hover {
    background: var(--tk-cinema-mist);
    border-color: var(--tk-border-soft);
    color: var(--tk-text-primary);
}

html[data-theme="cinema"] .btn-success {
    background: #3d7a5a;
    border: none;
}

/* —— Tables: editorial rows, no heavy chrome —— */
html[data-theme="cinema"] .table {
    --bs-table-bg: transparent;
    --bs-table-color: var(--tk-text-primary);
    --bs-table-hover-bg: var(--tk-hover-row-bg);
    --bs-table-striped-bg: rgba(26, 29, 36, 0.025);
    border-color: var(--tk-border-subtle);
}

html[data-theme="cinema"] .table thead th,
html[data-theme="cinema"] thead.table-dark th,
html[data-theme="cinema"] .table > thead {
    background: transparent !important;
    color: var(--tk-cinema-muted) !important;
    font-family: Syne, sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-bottom: 1px solid var(--tk-border-soft) !important;
    box-shadow: none !important;
}

html[data-theme="cinema"] .table tbody td {
    border-color: var(--tk-border-subtle);
    vertical-align: middle;
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
}

html[data-theme="cinema"] .table tbody tr {
    transition: background 0.15s ease;
}

html[data-theme="cinema"] .table-responsive,
html[data-theme="cinema"] .table-responsive-fixed {
    border: none;
    background: transparent;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

html[data-theme="cinema"] .table {
    width: 100%;
    max-width: 100%;
}

/* —— Dropdown / menus —— */
html[data-theme="cinema"] .dropdown-menu {
    background: #fff;
    border: 1px solid var(--tk-border-soft);
    border-radius: var(--tk-cinema-radius);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    padding: 0.35rem;
}

html[data-theme="cinema"] .dropdown-item {
    border-radius: var(--tk-cinema-radius);
    font-size: 0.9rem;
    color: var(--tk-text-primary);
}

html[data-theme="cinema"] .dropdown-item:hover,
html[data-theme="cinema"] .dropdown-item:focus {
    background: var(--tk-cinema-mist);
    color: var(--tk-primary-dark);
}

html[data-theme="cinema"] .text-muted {
    color: var(--tk-cinema-muted) !important;
}

/* —— Tabs / filters: calm —— */
html[data-theme="cinema"] .nav-tabs {
    border-bottom: 1px solid var(--tk-border-soft);
}

html[data-theme="cinema"] .nav-tabs .nav-link {
    border: none;
    color: var(--tk-cinema-muted);
    font-family: Syne, sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    border-radius: 0;
    position: relative;
}

html[data-theme="cinema"] .nav-tabs .nav-link.active {
    color: var(--tk-text-primary);
    background: transparent;
}

html[data-theme="cinema"] .nav-tabs .nav-link.active::after {
    content: "";
    position: absolute;
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0;
    height: 2px;
    background: var(--tk-cinema-spotlight);
    animation: tk-cinema-underline 0.35s var(--tk-cinema-ease) both;
}

@keyframes tk-cinema-underline {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

html[data-theme="cinema"] .admin-tabs-inline .nav-link.active {
    color: var(--tk-text-primary) !important;
    background: transparent !important;
    box-shadow: inset 0 -2px 0 var(--tk-cinema-spotlight);
}

html[data-theme="cinema"] .pager-bar {
    background: transparent;
    border-top: 1px solid var(--tk-border-soft);
}

html[data-theme="cinema"] .pager-bar .page-link {
    border: none;
    background: transparent;
    color: var(--tk-cinema-muted);
    border-radius: var(--tk-cinema-radius);
}

html[data-theme="cinema"] .pager-bar .page-item.active .page-link {
    background: var(--tk-primary);
    color: #fff;
}

/* —— Badges / chips quieter —— */
html[data-theme="cinema"] .badge {
    border-radius: var(--tk-cinema-radius);
    font-weight: 600;
    letter-spacing: 0.03em;
}

html[data-theme="cinema"] .tk-theme-card.active,
html[data-theme="cinema"] .tk-theme-card[aria-pressed="true"] {
    border-color: var(--tk-primary) !important;
    box-shadow: 0 0 0 1px var(--tk-primary);
}

/* —— Filter bars: calm surface WITHOUT breaking layout-core flex geometry —— */
html[data-theme="cinema"] .admin-db-filter-bar,
html[data-theme="cinema"] .costi-filter-bar,
html[data-theme="cinema"] #filter-container {
    background: var(--tk-cinema-mist) !important;
    border: none !important;
    border-radius: var(--tk-cinema-radius);
    padding: 0.45rem 0.65rem !important;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    overflow: visible;
}

html[data-theme="cinema"] #filter-container .admin-db-filter-bar.filters-body-tight,
html[data-theme="cinema"] #filter-container .filters-card .filters-body-tight {
    padding: 0.35rem 0.55rem !important;
}

/* Do NOT force flex-wrap on .filters-grid — layout-core owns desktop nowrap */
html[data-theme="cinema"] #filter-container .filters-grid {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    align-items: flex-end;
}

/* Ricerca globale: SEMPRE una sola riga (input + icona) */
html[data-theme="cinema"] #filter-container .filters-grid > .fg-search,
html[data-theme="cinema"] #filter-container .fg-search.admin-db-filter-field {
    flex: 0 0 auto !important;
    width: clamp(160px, 18vw, 240px) !important;
    max-width: 240px !important;
    min-width: 140px !important;
}

html[data-theme="cinema"] #filter-container .fg-search .filter-field-stack,
html[data-theme="cinema"] #filter-container .filter-field-stack--global {
    flex: none !important;
    min-width: 0;
    max-width: 100%;
    width: 100%;
}

html[data-theme="cinema"] #filter-container .fg-search .input-group,
html[data-theme="cinema"] #filter-container #q_global.form-control {
    flex-wrap: nowrap !important;
    white-space: nowrap;
}

html[data-theme="cinema"] #filter-container .fg-search .input-group {
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
}

html[data-theme="cinema"] #filter-container .fg-search .input-group-text {
    flex: 0 0 auto;
}

html[data-theme="cinema"] #filter-container #q_global {
    flex: 1 1 auto !important;
    width: 1% !important; /* input-group shrink trick, single line */
    min-width: 0 !important;
    max-width: 100% !important;
    height: calc(1.5em + 0.5rem + 2px) !important;
    min-height: calc(1.5em + 0.5rem + 2px) !important;
    max-height: calc(1.5em + 0.5rem + 2px) !important;
    line-height: 1.5 !important;
    padding-top: 0.25rem !important;
    padding-bottom: 0.25rem !important;
    overflow: hidden;
    text-overflow: ellipsis;
    resize: none;
    field-sizing: fixed;
}

html[data-theme="cinema"] #filter-container .fg-search .filter-field-label {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

html[data-theme="cinema"] .costi-filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.55rem 0.75rem;
}

html[data-theme="cinema"] #filter-container .filters-actions,
html[data-theme="cinema"] .filters-actions {
    flex: 0 0 auto;
    min-width: 0;
    margin-left: auto;
    display: flex;
    flex-wrap: nowrap;
    gap: 0.4rem;
    align-items: center;
}

html[data-theme="cinema"] #filter-container .form-control,
html[data-theme="cinema"] #filter-container .form-select,
html[data-theme="cinema"] .costi-filter-bar .form-control,
html[data-theme="cinema"] .costi-filter-bar .form-select {
    max-width: 100%;
    min-width: 0;
}

html[data-theme="cinema"] .alert {
    border-radius: var(--tk-cinema-radius);
    border: none;
    box-shadow: none;
    max-width: 100%;
    overflow-wrap: anywhere;
}

/* —— Colonna Azioni: token width + sticky right + mai clip del btn-group —— */
html[data-theme="cinema"] col.table-actions-col-group {
    width: var(--tk-actions-col-width) !important;
    min-width: var(--tk-actions-col-width) !important;
    max-width: var(--tk-actions-col-width) !important;
}

html[data-theme="cinema"] th.table-actions-col,
html[data-theme="cinema"] td.table-actions-col,
html[data-theme="cinema"] td.sticky-col-cell.table-actions-col,
html[data-theme="cinema"] #tabella_tot .tabella-rapportini tbody td.table-actions-col,
html[data-theme="cinema"] #tabella_tot .tabella-rapportini tbody .sticky-col-cell.table-actions-col,
html[data-theme="cinema"] #adminTabsContent td.table-actions-col {
    width: var(--tk-actions-col-width) !important;
    min-width: var(--tk-actions-col-width) !important;
    max-width: var(--tk-actions-col-width) !important;
    white-space: nowrap !important;
    vertical-align: middle !important;
    overflow: visible !important;
    position: sticky !important;
    right: 0 !important;
    z-index: 6 !important;
    background: var(--tk-actions-cell-bg, var(--tk-cinema-screen)) !important;
    box-shadow: -8px 0 14px rgba(12, 14, 18, 0.07);
    padding-left: 0.35rem !important;
    padding-right: 0.65rem !important;
    text-align: right !important;
}

html[data-theme="cinema"] th.table-actions-col {
    background: var(--tk-cinema-screen) !important;
    color: var(--tk-cinema-muted) !important;
    z-index: 7 !important;
}

html[data-theme="cinema"] .table-actions-col .btn-group {
    display: inline-flex !important;
    flex-wrap: nowrap !important;
    flex-direction: row !important;
    align-items: center;
    justify-content: flex-end;
    gap: 0.15rem;
    white-space: nowrap;
    max-width: none !important;
    width: auto !important;
}

html[data-theme="cinema"] .table-actions-col .btn-group .btn,
html[data-theme="cinema"] .table-actions-col > .btn {
    flex: 0 0 auto !important;
    white-space: nowrap !important;
    overflow: visible !important;
    line-height: 1.2;
    padding-left: 0.4rem;
    padding-right: 0.4rem;
}

html[data-theme="cinema"] .table-actions-col .btn .bi {
    display: inline-block;
    vertical-align: -0.05em;
}

/* Labels Azioni: rispettano Bootstrap d-xl + admin-db-tables (mai forzare inline) */

/* Compact mode (guard): solo icone — NON mutare --tk-actions-col-width (pin/token invariant) */
html[data-theme="cinema"].tk-cinema-actions-compact .table-actions-col .btn span:not(.bi) {
    display: none !important;
}

html[data-theme="cinema"] .table-responsive,
html[data-theme="cinema"] .table-responsive-fixed {
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    /* sticky right actions need a scrollport that stays inside the screen */
}

html[data-theme="cinema"] .app-shell {
    overflow-x: hidden;
}

html[data-theme="cinema"] .table-responsive.tk-cinema-contain-fix,
html[data-theme="cinema"] .table-responsive-fixed.tk-cinema-contain-fix {
    overflow-x: auto !important;
    overflow-y: visible;
}

/* —— Auto-heal classes (cinema-layout-guard.js) —— */
html[data-theme="cinema"] .tk-cinema-contain-fix {
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
}

html[data-theme="cinema"] .tk-cinema-contain-fix:not(.row):not(.filters-grid):not(.d-flex):not(.btn-group):not(.input-group):not(.fg-search):not(.table-actions-col) {
    overflow-x: auto;
}

html[data-theme="cinema"] .tk-cinema-contain-fix.row,
html[data-theme="cinema"] .tk-cinema-contain-fix.d-flex {
    flex-wrap: wrap !important;
    overflow-x: visible !important;
}

html[data-theme="cinema"] .filters-grid.tk-cinema-contain-fix,
html[data-theme="cinema"] .fg-search.tk-cinema-contain-fix,
html[data-theme="cinema"] .input-group.tk-cinema-contain-fix,
html[data-theme="cinema"] .btn-group.tk-cinema-contain-fix,
html[data-theme="cinema"] .table-actions-col.tk-cinema-contain-fix {
    flex-wrap: nowrap !important;
    overflow-x: visible !important;
}

html[data-theme="cinema"] .tk-cinema-contain-fix.table,
html[data-theme="cinema"] .tk-cinema-contain-fix table {
    width: 100% !important;
}

html[data-theme="cinema"] .tk-cinema-contain-fix img,
html[data-theme="cinema"] .tk-cinema-contain-fix svg,
html[data-theme="cinema"] .tk-cinema-contain-fix canvas,
html[data-theme="cinema"] .tk-cinema-contain-fix video {
    max-width: 100%;
    height: auto;
}

html[data-theme="cinema"] .tk-cinema-contain-fix.table-responsive,
html[data-theme="cinema"] .tk-cinema-contain-fix.table-responsive-fixed,
html[data-theme="cinema"] #tabella_tot.tk-cinema-contain-fix,
html[data-theme="cinema"] #table_container.tk-cinema-contain-fix {
    overflow-x: auto !important;
    overflow-y: visible;
}

/* —— Login / empty shells still get stage —— */
html[data-theme="cinema"] body.login-page {
    background: var(--tk-cinema-screen) !important;
    background-image: none !important;
    padding-top: env(safe-area-inset-top, 0px) !important;
}

html[data-theme="cinema"] body.login-page .app-main {
    min-height: 100dvh !important;
    padding: 0 !important;
}

html[data-theme="cinema"] body.login-page .app-shell {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    min-height: 100dvh !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 1rem 0.75rem 1.5rem !important;
}

html[data-theme="cinema"] body.login-page .login-card {
    max-width: 420px;
    margin-left: auto !important;
    margin-right: auto !important;
    min-height: auto;
    border-radius: var(--tk-cinema-radius) !important;
}

html[data-theme="cinema"] :focus-visible {
    outline: 2px solid var(--tk-primary);
    outline-offset: 2px;
}

@media (max-width: 1199.98px) {
    /* Sotto xl: #tabella_tot token da admin-db-tables; registry/altre tabelle icon-rail */
    html[data-theme="cinema"]:not(.tk-cinema-actions-compact) {
        --tk-actions-col-width: 5.5rem;
        --tk-actions-col-width-edit: 8rem;
    }
}

@media (max-width: 991.98px) {
    html[data-theme="cinema"] .app-shell {
        padding: 0.75rem 0.65rem 1.1rem !important;
        min-height: calc(100dvh - var(--tk-cinema-nav-h));
    }

    html[data-theme="cinema"] #filter-container .filters-grid > .fg-search {
        width: 100% !important;
        max-width: 100% !important;
        flex: 1 1 100% !important;
    }
}
