:root {
    color-scheme: dark;
    --bg: #2F3136;
    --text: #bcbcbc;
    --muted: #bdbdbd;
    --line: #783E93;
    --accent: #783E93;
    --primary: #783E93;
    --primary-hover: #8b4aa8;
    --hoverPurple: #CB65FB;
    --success: #A3C16C;
    --surface: rgba(28, 28, 28, .82);
    --input: rgba(255, 255, 255, .055);
    --border: rgba(120, 62, 147, .55);
    --shadow: rgba(0, 0, 0, .32);
    --topbar: #202124;
    --topbar-text: #d4d4d4;
    --topbar-muted: #9c9c9c;
    --panel-bg: #2F3136;
    --panel-surface: #26282c;
    --panel-border: #404247;
    --panel-text: #bcbcbc;
    --panel-control: #303238;
    --panel-control-text: #d8d8d8;
}

:root[data-theme="light"] {
    color-scheme: light;
    --bg: #dedede;
    --text: #bcbcbc;
    --muted: #5f5f5f;
    --hoverPurple: #783E93;
    --surface: rgba(247, 247, 247, .86);
    --input: rgba(255, 255, 255, .78);
    --border: rgba(120, 62, 147, .38);
    --shadow: rgba(40, 40, 40, .18);
    --topbar: #f4f4f4;
    --topbar-text: #2f2f2f;
    --topbar-muted: #777777;
    --panel-bg: #ececec;
    --panel-surface: #f7f7f7;
    --panel-border: #c8c8c8;
    --panel-text: #333333;
    --panel-control: #e7e7e7;
    --panel-control-text: #333333;
}

html, body {
    width: 100vw;
    height: 100%;
}

body {
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
    background: var(--bg);
    color: var(--text);
}

#particle {
    position: fixed;
    inset: 0;
    z-index: 0;
}

.shell {
    position: relative;
    z-index: 1;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
}

.loginShell {
    display: grid;
    place-items: center;
    padding: 24px;
}

.appShell {
    display: block;
    padding: 0;
}

.loginBox {
    position: relative;
    width: min(380px, calc(100vw - 32px));
    min-height: 380px;
    padding: 38px 34px 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: 0 10px 10px var(--shadow);
    backdrop-filter: blur(14px);
}

.line {
    position: absolute;
    display: block;
    background: var(--line);
    opacity: .82;
}

.l1, .l3 { height: 2px; width: 92px; }
.l2, .l4 { width: 2px; height: 92px; }
.l1 { top: -1px; left: -1px; }
.l2 { top: -1px; left: -1px; }
.l3 { right: -1px; bottom: -1px; }
.l4 { right: -1px; bottom: -1px; }

.brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin-bottom: 30px;
}

.brand img {
    width: 156px;
    max-width: 70%;
    height: auto;
    object-fit: contain;
}

.brand span {
    color: var(--muted);
    font-size: 14px;
    letter-spacing: 0;
}

form {
    display: grid;
    gap: 14px;
}

input, button, select {
    width: 100%;
    min-height: 44px;
    border: 0;
    border-radius: 4px;
    font: inherit;
}

input {
    background: var(--input);
    border-bottom: 1px solid var(--border);
    color: var(--text);
    padding: 0 14px;
    outline: none;
}

input:focus {
    border-bottom-color: var(--primary);
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--text);
    caret-color: var(--text);
    transition: background-color 9999s ease-in-out 0s;
    box-shadow: 0 0 0 1000px transparent inset;
}

#loginButton, #forgotSubmitButton, #resetButton {
    background: var(--primary);
    color: #ffffff;
    font-weight: 700;
}

#loginButton:hover:not(:disabled),
#forgotSubmitButton:hover:not(:disabled),
#resetButton:hover:not(:disabled) {
    background: var(--primary-hover);
}

#loginButton:disabled,
#forgotSubmitButton:disabled,
#resetButton:disabled {
    cursor: wait;
    opacity: .68;
}

.status {
    min-height: 22px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.35;
    text-align: center;
}

.status.error { color: #d98282; }
.status.success { color: var(--success); }

.loginTools {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 74px 70px;
    align-items: center;
    gap: 12px;
    margin-top: 4px;
}

.resetTools {
    margin-top: 0;
}

.forgotBtn, .ghostBtn {
    width: auto;
    min-height: 32px;
    padding: 0 10px;
    background: transparent;
    color: var(--muted);
    border: 0;
}

.forgotBtn {
    justify-self: start;
    max-width: 100%;
    padding-left: 0;
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.forgotBtn:hover, .ghostBtn:hover {
    color: var(--primary);
}

.themeSwitch {
    position: relative;
    justify-self: center;
    width: 74px;
    min-height: 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;
    background: rgba(120, 62, 147, .22);
    border: 1px solid var(--border);
    border-radius: 999px;
    overflow: hidden;
}

.themeKnob {
    position: absolute;
    left: 3px;
    top: 3px;
    width: 32px;
    height: 26px;
    background: var(--primary);
    border-radius: 999px;
    transition: transform .2s ease;
}

:root[data-theme="light"] .themeKnob {
    transform: translateX(36px);
}

.themeIcon {
    position: relative;
    z-index: 1;
    width: 36px;
    height: 32px;
    display: grid;
    place-items: center;
    color: var(--muted);
    font-size: 18px;
    line-height: 1;
}

:root[data-theme="dark"] .themeIcon:first-child,
:root[data-theme="light"] .themeIcon:last-child {
    color: #ffffff;
    font-variation-settings: 'FILL' 1, 'wght' 700, 'GRAD' 0, 'opsz' 48;
}

.langSelect {
    justify-self: end;
    width: 70px;
    min-height: 32px;
    background: var(--input);
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text);
    padding: 0 8px;
    outline: none;
}

.langSelect option {
    background: var(--bg);
    color: var(--text);
}

.panelApp {
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
    background: var(--panel-bg);
    color: var(--panel-text);
}

.topbar {
    width: 100%;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0 8px 0 14px;
    background: var(--topbar);
    color: var(--topbar-text);
    border-bottom: 1px solid var(--panel-border);
    box-shadow: 0 1px 6px rgba(0, 0, 0, .22);
    overflow: hidden;
}

.topbarLeft,
.topbarRight {
    min-width: 0;
    height: 100%;
    display: flex;
    align-items: center;
}

.topbarLeft {
    flex: 1 1 auto;
    gap: 22px;
}

.topbarRight {
    flex: 0 0 auto;
    justify-content: flex-end;
    gap: 10px;
    font-size: 12px;
    white-space: nowrap;
}

.topLogo {
    width: 82px;
    max-height: 28px;
    object-fit: contain;
}

.cinemaSelect {
    width: min(260px, 32vw);
    min-height: 40px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 18px;
    align-items: center;
    gap: 8px;
    padding: 0 8px;
    background: transparent;
    color: var(--topbar-text);
    text-align: left;
}

.cinemaSelect span:first-child,
.userName,
.userTitle {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cinemaSelect .material-symbols-outlined {
    color: var(--topbar-muted);
    font-size: 20px;
}

.topClock {
    min-width: 138px;
    color: var(--topbar-text);
    text-align: right;
}

.moduleSelect {
    width: 96px;
    min-height: 26px;
    padding: 0 9px;
    background: var(--panel-control);
    border: 0;
    border-radius: 7px;
    color: var(--panel-control-text);
    font-size: 12px;
}

.moduleSelect option {
    background: var(--panel-surface);
    color: var(--panel-text);
}

.topDivider {
    width: 1px;
    height: 20px;
    background: var(--panel-border);
}

.userTitle {
    max-width: 150px;
}

.userName {
    max-width: 150px;
    font-weight: 500;
}

.userPrm {
    color: var(--topbar-muted);
}

.iconButton {
    width: 28px;
    min-height: 28px;
    display: grid;
    place-items: center;
    background: transparent;
    color: #df7777;
}

.iconButton .material-symbols-outlined {
    font-size: 19px;
}

.iconButton:hover {
    color: var(--hoverPurple);
}

.appFrame {
    width: 100%;
    height: calc(100vh - 40px);
    height: calc(100dvh - 40px);
    min-height: 0;
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    overflow: hidden;
    transition: grid-template-columns .2s ease;
}

.panelApp.navCollapsed .appFrame {
    grid-template-columns: 64px minmax(0, 1fr);
}

.sideNav {
    position: relative;
    min-width: 0;
    min-height: 0;
    height: 100%;
    padding: 8px 10px;
    overflow: visible;
    display: grid;
    grid-template-rows: 34px minmax(0, 1fr) 48px;
    gap: 8px;
    background: var(--panel-surface);
    border-right: 1px solid var(--panel-border);
    box-shadow: 2px 0 8px rgba(0, 0, 0, .08);
    z-index: 4;
}

.navToggle {
    width: 100%;
    min-height: 34px;
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    padding: 0 6px;
    background: transparent;
    color: var(--panel-text);
    border-radius: 4px;
    text-align: left;
}

.navToggle:hover {
    color: var(--hoverPurple);
    background: rgba(203, 101, 251, .08);
}

:root[data-theme="light"] .navToggle:hover {
    background: rgba(120, 62, 147, .08);
}

.navToggle .material-symbols-outlined {
    width: 28px;
    display: grid;
    place-items: center;
    font-size: 21px;
}

.navToggleText {
    min-width: 0;
    overflow: hidden;
    color: inherit;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.navList {
    min-height: 0;
    height: auto;
    margin-top: 0;
    overflow: visible;
    padding-right: 1px;
}

.panelApp:not(.navCollapsed) .navList {
    overflow-y: auto;
    overflow-x: hidden;
}

.navItem {
    position: relative;
    width: 100%;
    min-height: 36px;
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    padding: 0 6px;
    background: transparent;
    border-bottom: 1px solid var(--panel-border);
    border-radius: 4px;
    color: var(--panel-text);
    font-size: 13px;
    font-weight: 600;
    text-align: left;
}

.navItem:hover,
.navItem.active {
    color: var(--hoverPurple);
}

.navItem:hover {
    background: rgba(203, 101, 251, .08);
}

:root[data-theme="light"] .navItem:hover {
    background: rgba(120, 62, 147, .08);
}

.navIcon {
    width: 28px;
    display: grid;
    place-items: center;
    font-size: 19px;
}

.navText {
    min-width: 0;
    overflow: hidden;
    color: inherit;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.navFlyout {
    position: absolute;
    left: 48px;
    top: 50%;
    min-width: 160px;
    max-width: 260px;
    height: 36px;
    display: none;
    align-items: center;
    padding: 0 14px;
    transform: translate(8px, -50%);
    background: var(--panel-control);
    border: 1px solid var(--panel-border);
    border-left: 2px solid var(--hoverPurple);
    box-shadow: 0 10px 20px rgba(0, 0, 0, .22);
    color: var(--panel-control-text);
    font-size: 13px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: transform .16s ease, opacity .16s ease;
}

.panelApp.navCollapsed .navToggle,
.panelApp.navCollapsed .navItem {
    grid-template-columns: 28px;
    justify-content: center;
    padding: 0;
}

.panelApp.navCollapsed .navToggleText,
.panelApp.navCollapsed .navText {
    display: none;
}

.panelApp.navCollapsed .navToggle .material-symbols-outlined {
    transform: rotate(180deg);
}

.panelApp.navCollapsed .navItem:hover .navFlyout {
    display: flex;
    opacity: 1;
    transform: translate(0, -50%);
}

.navSignature {
    min-width: 0;
    height: 48px;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 4px;
    padding: 5px 6px 0;
    background: var(--panel-surface);
    border-top: 1px solid var(--panel-border);
    overflow: hidden;
}

.navSignature span {
    color: var(--topbar-muted);
    font-size: 9px;
    line-height: 1;
    white-space: nowrap;
    text-align: center;
}

.navSignature img {
    width: 88px;
    max-width: 100%;
    max-height: 22px;
    object-fit: contain;
}

.panelApp.navCollapsed .navSignature {
    justify-items: center;
    padding-left: 0;
    padding-right: 0;
}

.panelApp.navCollapsed .navSignature span {
    font-size: 7px;
}

.panelApp.navCollapsed .navSignature img {
    width: 36px;
}

.workspace {
    position: relative;
    min-width: 0;
    min-height: 0;
    height: 100%;
    overflow: hidden;
    background: var(--panel-bg);
}

.workspaceInner {
    min-width: 0;
    min-height: 0;
    height: 100%;
    padding: 0;
}

.moduleScreen {
    width: 100%;
    min-height: 0;
    height: 100%;
    display: grid;
    grid-template-rows: 36px 26px 70px minmax(0, 1fr) 42px;
    gap: 0;
    overflow: hidden;
    color: var(--panel-text);
    font-weight: 400;
}

.generalSettingsScreen {
    grid-template-rows: 36px 26px 40px minmax(0, 1fr);
}

.moduleHead {
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin: 0;
    padding: 0 16px;
    border: 0;
    border-bottom: 1px solid var(--panel-border);
    background: var(--panel-surface);
}

.moduleHead h1 {
    margin: 0;
    padding: 0;
    color: var(--hoverPurple);
    font-size: 26px;
    line-height: 1.1;
    font-weight: 700;
    text-align: left;
}

.moduleCrumb {
    height: 26px;
    display: flex;
    align-items: center;
    width: 100%;
    margin: 0;
    padding: 0 16px;
    border: 0;
    border-bottom: 1px solid var(--panel-border);
    background: var(--panel-surface);
    color: var(--topbar-muted);
    font-size: 12px;
    font-weight: 400;
}

.primaryAction,
.ghostAction,
.dangerAction {
    width: auto;
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 20px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
}

.primaryAction {
    background: var(--primary);
    color: #ffffff;
}

.primaryAction:hover {
    background: var(--hoverPurple);
}

.ghostAction {
    background: var(--panel-control);
    color: var(--panel-control-text);
    border: 1px solid var(--panel-border);
}

.dangerAction {
    background: #9d4242;
    color: #ffffff;
}

.primaryAction .material-symbols-outlined {
    font-size: 18px;
}

.moduleFilters {
    display: grid;
    grid-template-columns: minmax(180px, 360px) minmax(130px, 180px) minmax(150px, max-content);
    align-items: end;
    gap: 14px;
    width: 100%;
    height: 70px;
    margin: 0;
    padding: 8px 16px;
    border: 0;
    border-top: 1px solid var(--panel-border);
    border-bottom: 1px solid var(--panel-border);
    background: var(--panel-surface);
}

.moduleFilters label {
    min-width: 0;
    display: grid;
    gap: 6px;
}

.moduleFilters label span {
    color: var(--topbar-muted);
    font-size: 11px;
}

.moduleFilters input,
.moduleFilters select {
    min-height: 34px;
    background: var(--panel-control);
    border: 1px solid var(--panel-border);
    border-radius: 4px;
    color: var(--panel-control-text);
    padding: 0 11px;
    font-size: 13px;
}

#vprmCategoryFilters {
    grid-template-columns: minmax(240px, 360px) max-content;
}

#vprmFilters {
    grid-template-columns: minmax(180px, 360px) minmax(130px, 180px) max-content;
}

.securityPane .primaryAction {
    white-space: nowrap;
}

.settingsTopMenu {
    height: 30px;
    display: flex;
    align-items: stretch;
    padding: 0 0 0 16px;
    border-bottom: 1px solid var(--panel-border);
    background: var(--panel-surface);
}

.settingsMenuItem {
    position: relative;
    display: flex;
    align-items: stretch;
}

.settingsMenuButton,
.settingsSubMenu button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    background: rgba(145, 133, 151, 0.12);
    color: var(--panel-text);
    font-size: 13px;
    font-weight: 500;
    margin: 3px 5px 3px 0;
    min-height: 24px;
    border-radius: 4px;
}

.settingsMenuButton {
    min-width: 170px;
    padding: 0 12px;
}

.settingsMenuButton:hover,
.settingsSubMenu button:hover {
    color: var(--hoverPurple);
    background: rgba(120, 62, 147, .12);
}

.settingsSubMenu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 5;
    min-width: 220px;
    display: none;
    flex-direction: column;
    padding: 4px;
    border: 1px solid var(--panel-border);
    background: var(--panel-control);
    box-shadow: 0 12px 22px rgba(0, 0, 0, .28);
}

.settingsMenuItem.open .settingsSubMenu {
    display: flex;
}

.settingsSubMenu button {
    min-height: 24px;
    justify-content: flex-start;
    padding: 0 10px;
}

.securityPane {
    min-height: 0;
    display: grid;
    grid-template-rows: 70px minmax(0, 1fr) 42px;
    overflow: hidden;
}

.securityPane[hidden] {
    display: none;
}

.dataTableWrap {
    width: 100%;
    min-height: 0;
    overflow-y: scroll;
    overflow-x: hidden;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    scrollbar-color: var(--hoverPurple) var(--panel-surface);
    margin: 0;
    background: transparent;
}

.dataTableWrap::-webkit-scrollbar {
    width: 10px;
}

.dataTableWrap::-webkit-scrollbar-track {
    background: var(--panel-surface);
}

.dataTableWrap::-webkit-scrollbar-thumb {
    background: var(--hoverPurple);
    border: 2px solid var(--panel-surface);
    border-radius: 10px;
}

.dataTableWrap::-webkit-scrollbar-thumb:hover {
    background: #d985ff;
}

.dataTable {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0 6px;
    color: var(--panel-text);
    font-size: 13px;
    font-weight: 400;
}

.dataTable th,
.dataTable td {
    height: 42px;
    padding: 0 12px;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dataTable th {
    position: sticky;
    top: 0;
    z-index: 2;
    color: var(--topbar-muted);
    font-weight: 400;
    background: var(--panel-surface);
    border-top: 0;
    border-bottom: 1px solid var(--panel-border);
    user-select: none;
}

:root[data-theme="light"] .dataTable th {
    background: rgba(120, 62, 147, .05);
}

.dataTable th[data-account-sort],
.dataTable th[data-security-sort] {
    cursor: pointer;
}

.dataTable th[data-account-sort]:hover,
.dataTable th[data-security-sort]:hover,
.dataTable th.sortActive {
    color: var(--hoverPurple);
}

.sortIcon {
    display: inline-block;
    min-width: 10px;
    color: var(--hoverPurple);
    font-size: 10px;
}

.dataTable tbody tr {
    height: 44px;
}

.dataTable tbody tr:nth-child(odd) {
    background: rgba(38, 40, 44, .92);
}

.dataTable tbody tr:nth-child(even) {
    background: rgba(31, 33, 37, .92);
}

:root[data-theme="light"] .dataTable tbody tr:nth-child(odd),
:root[data-theme="light"] .dataTable tbody tr:nth-child(even) {
    background: #ffffff;
    box-shadow: inset 0 0 0 1px var(--panel-border);
}

.dataTable tbody tr:hover {
    background: rgba(120, 62, 147, .13);
}

.dataTable tbody td:first-child,
.dataTable thead th:first-child {
    border-left: 0;
}

.dataTable tbody td:last-child,
.dataTable thead th:last-child {
    border-right: 0;
}

.dataTable tbody td {
    border-top: 1px solid transparent;
    border-bottom: 1px solid transparent;
}

.colSno { width: 58px; }
.colId { width: 64px; }
.colCountry { width: 68px; }
.colPhone { width: 150px; }
.colStatus { width: 112px; }

.accountName {
    color: var(--hoverPurple);
    font-weight: 400;
}

.securityName {
    color: var(--hoverPurple);
    font-weight: 400;
}

.statusText {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--panel-text);
    font-weight: 400;
}

.statusText:before {
    content: "";
    width: 8px;
    height: 8px;
    display: inline-block;
    border-radius: 50%;
}

.statusActive:before { background: var(--success); }
.statusPassive:before { background: #b84e4e; }
.statusSuspended:before { background: #c68135; }

.actionsCol {
    width: 132px;
    text-align: right;
    padding-right: 38px !important;
}

.rowActions {
    display: inline-flex;
    justify-content: flex-end;
    gap: 5px;
}

.rowAction {
    width: 28px;
    min-height: 28px;
    display: grid;
    place-items: center;
    background: transparent;
    color: var(--panel-text);
    border: 1px solid transparent;
    border-radius: 4px;
}

.rowAction:hover {
    color: var(--hoverPurple);
    border-color: var(--panel-border);
    background: var(--panel-control);
}

.rowAction.danger:hover {
    color: #e57c7c;
}

.emptyCell {
    height: 72px;
    color: var(--topbar-muted);
    text-align: center !important;
}

.listFooter {
    width: 100%;
    min-height: 42px;
    margin: 0;
    padding: 0 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border: 0;
    border-top: 1px solid var(--panel-border);
    background: var(--panel-surface);
    color: var(--panel-text);
    font-weight: 400;
}

.listStats {
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--topbar-muted);
    font-size: 12px;
    white-space: nowrap;
}

.pager {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
    font-size: 12px;
}

.pagerBtn {
    width: 28px;
    min-height: 28px;
    display: grid;
    place-items: center;
    background: var(--panel-control);
    border: 1px solid var(--panel-border);
    color: var(--panel-control-text);
}

.pagerBtn:hover {
    color: var(--hoverPurple);
}

.pager input {
    width: 54px;
    min-height: 28px;
    padding: 0 7px;
    background: var(--panel-control);
    border: 1px solid var(--panel-border);
    border-radius: 4px;
    color: var(--panel-control-text);
    text-align: center;
    font-size: 12px;
}

.sideDrawer {
    position: absolute;
    inset: 0;
    z-index: 20;
    display: flex;
    justify-content: flex-end;
    background: rgba(0, 0, 0, .16);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .5s ease, visibility .5s ease;
}

.drawerPanel {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    padding: 0;
    background: var(--panel-bg);
    border-left: 1px solid var(--panel-border);
    transform: translateX(100%);
    transition: transform .5s ease;
}

#drawerContent {
    height: 100%;
    min-height: 0;
}

.sideDrawer.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.sideDrawer.open .drawerPanel {
    transform: translateX(0);
}

.drawerClose {
    position: absolute;
    top: 8px;
    right: 12px;
    width: 34px;
    min-height: 34px;
    display: grid;
    place-items: center;
    background: transparent;
    color: var(--panel-text);
    z-index: 3;
}

.drawerClose:hover {
    color: var(--hoverPurple);
}

.drawerFormShell,
.drawerMessageShell {
    height: 100%;
    min-height: 0;
    display: grid;
    grid-template-rows: 66px minmax(0, 1fr) 46px;
    overflow: hidden;
}

.drawerTitle h2 {
    margin: 0;
    padding: 0 48px 0 16px;
    display: flex;
    align-items: center;
    height: 40px;
    border-bottom: 1px solid var(--panel-border);
    color: var(--hoverPurple);
    font-size: 26px;
    font-weight: 600;
}

.drawerTitle p {
    height: 26px;
    margin: 0;
    padding: 0 16px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--panel-border);
    color: var(--topbar-muted);
    font-size: 12px;
}

.drawerFormBody {
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: var(--hoverPurple) var(--panel-surface);
}

.drawerFormBody::-webkit-scrollbar {
    width: 10px;
}

.drawerFormBody::-webkit-scrollbar-track {
    background: var(--panel-surface);
}

.drawerFormBody::-webkit-scrollbar-thumb {
    background: var(--hoverPurple);
    border: 2px solid var(--panel-surface);
    border-radius: 10px;
}

.drawerSection {
    min-width: 0;
    padding: 0;
    border-right: 1px solid rgba(120, 62, 147, .45);
}

.drawerSection:last-child {
    border-right: 0;
}

.drawerSectionTitle {
    height: 38px;
    display: flex;
    align-items: center;
    padding: 0 14px;
    border-bottom: 1px solid rgba(120, 62, 147, .45);
    background: var(--panel-surface);
    color: var(--hoverPurple);
    font-size: 14px;
    font-weight: 600;
}

.formRow {
    min-height: 48px;
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr) 30px;
    align-items: center;
    gap: 8px;
    padding: 7px 10px 7px 14px;
    border-bottom: 1px solid rgba(64, 66, 71, .55);
}

.formRow:nth-child(odd) {
    background: rgba(31, 33, 37, .50);
}

.formRow:nth-child(even) {
    background: rgba(38, 40, 44, .50);
}

.formRowLabel {
    color: var(--topbar-muted);
    color: var(--topbar-muted);
    font-size: 12px;
    font-weight: 600;
}

.formRequired {
    color: #d96d6d;
}

.formControlWrap {
    min-width: 0;
}

.infoValue {
    display: block;
    min-height: 30px;
    padding: 6px 0;
    color: var(--panel-text);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.35;
    word-break: break-word;
}

.infoValueMultiline {
    white-space: pre-wrap;
}

.infoLogoBox {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    min-height: 30px;
    color: var(--topbar-muted);
    font-size: 11px;
    word-break: break-word;
}

.infoLogoBox img {
    display: block;
    max-width: 220px;
    height: 36px;
    max-height: 36px;
    width: auto;
    object-fit: contain;
    background: rgba(255, 255, 255, .06);
    border: 1px solid var(--panel-border);
    padding: 6px;
}

.formControlWrap input,
.formControlWrap select,
.formControlWrap textarea {
    width: 100%;
    min-height: 30px;
    background: var(--panel-control);
    border: 1px solid var(--panel-border);
    color: var(--panel-control-text);
    border-radius: 0;
    padding: 0 9px;
    font-size: 13px;
}

.formControlWrap textarea {
    min-height: 68px;
    padding: 8px 9px;
    resize: vertical;
}

.formControlWrap input[type="checkbox"] {
    width: 16px;
    min-height: 16px;
    accent-color: var(--hoverPurple);
}

.formRow.i18nFormRow {
    align-items: start;
}

.i18nEditor {
    width: 100%;
    display: grid;
    gap: 8px;
}

.i18nEditor .i18nTabs {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-end;
    gap: 4px;
}

.i18nEditor .i18nTabs .i18nTab {
    flex: 1 1 0;
    width: auto !important;
    min-width: 0;
    min-height: 26px;
    padding: 0 8px;
    border-radius: 4px;
    background: rgba(145, 133, 151, 0.12);
    color: var(--panel-text);
    font-size: 12px;
    font-weight: 600;
}

.i18nEditor .i18nTabs .i18nTab.active,
.i18nEditor .i18nTabs .i18nTab:hover {
    background: var(--primary);
    color: #fff;
}

.i18nPanel {
    display: none;
    gap: 8px;
}

.i18nPanel.active {
    display: grid;
}

.i18nReadList {
    width: 100%;
    display: grid;
    gap: 6px;
}

.i18nReadItem {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 4px 10px;
    padding: 6px 8px;
    border-radius: 4px;
    background: var(--panel-control);
}

.i18nReadItem strong {
    color: var(--hoverPurple);
    font-size: 12px;
}

.i18nReadItem span,
.i18nReadItem small {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.i18nReadItem small {
    grid-column: 2;
    color: var(--topbar-muted);
}

.vprmPicker {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
}

.vprmAccessList {
    display: grid;
    gap: 6px;
    margin-top: 8px;
}

.vprmAccessItem {
    display: grid;
    grid-template-columns: minmax(120px, 1fr) repeat(3, auto) auto;
    align-items: center;
    gap: 10px;
    min-height: 32px;
    padding: 5px 7px;
    border: 1px solid var(--panel-border);
    background: rgba(0, 0, 0, .08);
}

.vprmAccessItem strong {
    color: var(--panel-text);
    font-size: 12px;
    font-weight: 500;
}

.vprmAccessItem label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--topbar-muted);
    font-size: 11px;
}

.vprmAccessRemove {
    width: 24px;
    min-height: 24px;
    display: grid;
    place-items: center;
    background: transparent;
    color: var(--panel-text);
}

.vprmAccessRemove:hover {
    color: #d96d6d;
}

.fieldHint {
    position: relative;
    width: 28px;
    min-height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(120, 62, 147, .55);
    background: var(--panel-surface);
    color: var(--hoverPurple);
    font-size: 13px;
    font-weight: 700;
}

.fieldHint:after {
    content: attr(data-help);
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    z-index: 5;
    width: 220px;
    display: none;
    padding: 8px 10px;
    background: var(--panel-control);
    border: 1px solid var(--panel-border);
    box-shadow: 0 10px 20px rgba(0, 0, 0, .24);
    color: var(--panel-control-text);
    font-size: 12px;
    font-weight: 400;
    line-height: 1.35;
    text-align: left;
}

.fieldHint:hover:after {
    display: block;
}

.logoHelp {
    display: block;
    margin-top: 5px;
    color: var(--topbar-muted);
    font-size: 11px;
}

.conditionalHidden {
    display: none;
}

.drawerFooter {
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 0 14px;
    border-top: 1px solid rgba(120, 62, 147, .55);
    background: var(--panel-surface);
}

.drawerSaveStatus {
    min-width: 0;
    margin-right: 8px;
    color: var(--topbar-muted);
    font-size: 12px;
    text-align: right;
}

.drawerSaveStatus.success {
    color: var(--success);
}

.drawerSaveStatus.error {
    color: #d96d6d;
}

.systemAlert {
    position: absolute;
    inset: 0;
    z-index: 30;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, .42);
}

.systemAlert.open {
    display: flex;
}

.systemAlertBox {
    width: min(420px, 100%);
    padding: 24px;
    background: var(--panel-surface);
    border: 1px solid var(--panel-border);
    box-shadow: 0 20px 50px rgba(0, 0, 0, .32);
    color: var(--panel-text);
    text-align: center;
}

.systemAlertIcon {
    color: #d9944a;
    font-size: 36px;
    margin-bottom: 10px;
}

.systemAlertBox h2 {
    margin: 0;
    padding: 0;
    color: var(--hoverPurple);
    font-size: 20px;
}

.systemAlertBox p {
    margin: 10px 0 22px;
    color: var(--panel-text);
    font-size: 13px;
}

.systemAlertActions {
    display: flex;
    justify-content: center;
    gap: 10px;
}

@media (max-width: 560px) {
    .loginBox { padding: 32px 24px 22px; }
    .loginTools { grid-template-columns: minmax(0, 1fr) 68px 64px; gap: 8px; }
    .themeSwitch { width: 68px; }
    .themeKnob { width: 29px; }
    :root[data-theme="light"] .themeKnob { transform: translateX(33px); }
    .topbar { gap: 8px; padding-left: 8px; }
    .topbarLeft { gap: 8px; }
    .topbarRight { gap: 6px; }
    .topLogo { width: 76px; }
    .cinemaSelect { width: 120px; }
    .topClock, .userTitle, .userPrm { display: none; }
    .userName { max-width: 90px; }
    .appFrame { grid-template-columns: 150px minmax(0, 1fr); }
    .workspaceInner { min-width: 0; padding: 0; }
    .moduleHead { align-items: stretch; flex-direction: column; }
    .moduleScreen { grid-template-rows: auto 20px auto minmax(0, 1fr) auto; }
    .moduleFilters { grid-template-columns: 1fr; height: auto; }
    .listFooter { align-items: flex-start; flex-direction: column; padding: 10px 14px; }
    .listStats { flex-wrap: wrap; gap: 8px; }
    .pager { width: 100%; justify-content: flex-start; }
    .drawerPanel { padding: 0; }
    .drawerFormBody { grid-template-columns: 1fr; }
    .drawerSection { border-right: 0; border-bottom: 1px solid rgba(120, 62, 147, .45); }
    .formRow { grid-template-columns: 128px minmax(0, 1fr) 30px; padding-left: 10px; }
    .dataTable { min-width: 760px; }
    .dataTableWrap { overflow-x: auto; }
}
