/* Shared premium frame for the account and administration surfaces. */
.backoffice-body{display:block;min-height:100svh;padding:clamp(16px,4vh,46px) 20px;background:linear-gradient(115deg,rgba(232,241,247,.82),rgba(235,226,247,.74)),url('images/background_2.jpeg') center/cover fixed!important;color:var(--ui-ink)}
/* The whole product keeps one image treatment: softened in light mode, vivid in dark mode. */
.home-body,.resort-body{background-attachment:fixed}
.account-shell,.admin-shell{width:min(100%,1040px)!important;margin:0 auto!important;padding:0!important;color:var(--ui-ink)}
.account-card,.admin-card{overflow:hidden;border:0!important;border-radius:30px!important;background:rgba(246,250,252,.93)!important;box-shadow:var(--alpine-shadow)!important}.account-card:before,.admin-card:before{opacity:.08!important}
.account-head,.admin-head{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:22px!important;min-height:82px!important;margin:0!important;padding:16px clamp(20px,5vw,52px)!important;color:#fff!important;background:linear-gradient(112deg,#372266,#55338c 52%,#33215f)!important}.account-head h1,.admin-head h1{margin:2px 0 4px!important;color:#fff!important;font-size:clamp(25px,3.3vw,36px)!important;line-height:1.04!important}.account-head h1 span,.admin-head h1 span{color:#f4c87e!important}.account-head h1 em,.admin-head h1 em{font-style:normal;font-size:.6em}.account-head p,.admin-head p{margin:0!important;color:rgba(255,255,255,.76)!important;font-size:12px!important}.account-kicker,.admin-kicker{color:#e2d6f7!important;font-size:10px!important;font-weight:850!important;letter-spacing:.14em}
.account-actions,.admin-actions{display:flex!important;flex:0 0 auto;align-items:center;justify-content:flex-end;gap:8px}.account-actions .account-btn,.admin-actions .admin-link{display:inline-flex!important;align-items:center;justify-content:center;gap:7px;min-width:0!important;min-height:39px!important;padding:0 12px!important;border:1px solid rgba(255,255,255,.28)!important;border-radius:12px!important;color:#fff!important;background:rgba(255,255,255,.09)!important;font-size:11px!important;font-weight:800!important;text-decoration:none!important;white-space:nowrap}.account-actions .account-btn:hover,.admin-actions .admin-link:hover{background:rgba(255,255,255,.19)!important}
.backoffice-content{padding:clamp(25px,4vw,46px)}.backoffice-content>h2{margin:28px 0 12px;color:#344d63;font-size:21px;letter-spacing:-.03em}.backoffice-content>h2:before{display:inline-grid;place-items:center;width:29px;height:29px;margin-right:9px;border-radius:9px;color:#fff;background:linear-gradient(135deg,#5a328c,#8d67bd);content:'◈';font-size:12px;vertical-align:3px}.account-muted,.account-card p{color:#627588!important;line-height:1.55}.account-grid,.admin-grid{gap:12px!important;margin:0 0 22px!important}.account-stat,.admin-stat{border:1px solid #dce7ee!important;border-radius:16px!important;background:linear-gradient(135deg,#f7fbfd,#eaf3f8)!important;box-shadow:none!important}.account-stat{padding:18px!important}.account-stat b,.admin-stat b{color:#234765!important}.account-stat span,.admin-stat span{color:#627588!important;font-size:12px}.account-profile{grid-template-columns:1fr auto!important;gap:10px}.account-form input,.account-form button{border-radius:12px!important}.account-primary{background:linear-gradient(135deg,#372266,#55338c)!important}.account-note{border:1px solid #eadcb9!important;border-radius:14px!important;background:#fff7e7!important;color:#705326!important}.account-history{margin:0!important;border-collapse:separate!important;border-spacing:0!important;border:1px solid #dce7ee;border-radius:16px;overflow:hidden}.account-history th{background:#eef5f9!important}.account-history th,.account-history td{padding:13px 11px!important}
.admin-safety,.admin-notice{border-radius:15px!important}.admin-filter{padding:15px!important;border:1px solid #dce7ee;border-radius:16px;background:rgba(247,251,253,.72)}.admin-filter button{width:auto!important;padding:0 14px!important;background:linear-gradient(135deg,#372266,#55338c)!important}.admin-filter .admin-link{background:#315f7d!important}.admin-table-wrap{overflow:visible!important;border:1px solid #dce7ee!important;border-radius:16px!important;background:#fff!important}.admin-table{width:100%!important;min-width:0!important;table-layout:fixed!important;border-collapse:collapse!important}.admin-table th,.admin-table td{min-width:0!important;padding:12px 7px!important;overflow-wrap:anywhere;word-break:normal;vertical-align:top!important}.admin-table th{font-size:10px!important}.admin-table th:nth-child(1),.admin-table td:nth-child(1){width:10%}.admin-table th:nth-child(2),.admin-table td:nth-child(2){width:8%}.admin-table th:nth-child(3),.admin-table td:nth-child(3){width:9%}.admin-table th:nth-child(4),.admin-table td:nth-child(4){width:9%}.admin-table th:nth-child(5),.admin-table td:nth-child(5){width:20%}.admin-table th:nth-child(6),.admin-table td:nth-child(6){width:8%}.admin-table th:nth-child(7),.admin-table td:nth-child(7){width:10%}.admin-table th:nth-child(8),.admin-table td:nth-child(8){width:10%}.admin-table th:nth-child(9),.admin-table td:nth-child(9){width:16%}.admin-card-number{white-space:normal!important;word-break:break-all!important;font-size:11px!important;letter-spacing:.01em!important}.admin-row-actions{display:flex!important;flex-wrap:wrap;min-width:0!important;gap:4px}.admin-row-actions button{min-height:29px!important;padding:5px 7px!important;border:1px solid #dfd4ef!important;border-radius:8px!important;background:#f3eef9!important;color:#55338c!important;font-size:10px!important}
:root[data-theme="dark"] .backoffice-body{background:linear-gradient(115deg,rgba(5,18,31,.54),rgba(39,26,75,.46)),url('images/background_2.jpeg') center/cover fixed!important}:root[data-theme="dark"] .account-card,:root[data-theme="dark"] .admin-card{background:rgba(16,29,42,.94)!important}:root[data-theme="dark"] .backoffice-content>h2{color:#edf5fb}:root[data-theme="dark"] .account-stat,:root[data-theme="dark"] .admin-stat,:root[data-theme="dark"] .admin-filter{border-color:#30495b!important;background:rgba(22,43,61,.83)!important}:root[data-theme="dark"] .account-stat b,:root[data-theme="dark"] .admin-stat b{color:#f4c87e!important}:root[data-theme="dark"] .account-stat span,:root[data-theme="dark"] .admin-stat span{color:#b8c9d5!important}:root[data-theme="dark"] .account-history,:root[data-theme="dark"] .admin-table-wrap{border-color:#30495b!important;background:#142230!important}:root[data-theme="dark"] .account-history th,:root[data-theme="dark"] .admin-table th{background:#182938!important}:root[data-theme="dark"] .account-history th,:root[data-theme="dark"] .account-history td,:root[data-theme="dark"] .admin-table td{border-color:#30495b!important}:root[data-theme="dark"] .admin-row-actions button{border-color:#554371!important;background:#29213f!important;color:#ddcaff!important}
@media(max-width:760px){.backoffice-body{padding:0;background-attachment:scroll!important}.account-shell,.admin-shell{width:100%!important}.account-card,.admin-card{min-height:100svh;border:0!important;border-radius:0!important}.account-head,.admin-head{align-items:flex-start!important;min-height:0!important;padding:18px 17px!important}.account-actions,.admin-actions{justify-content:flex-start!important}.account-actions .account-btn span,.admin-actions .admin-link span{font-size:10px}.backoffice-content{padding:24px 17px}.account-profile{grid-template-columns:1fr!important}.account-history{font-size:12px}.account-history th,.account-history td{padding:10px 6px!important}.admin-grid{grid-template-columns:1fr!important}.admin-filter{display:grid!important;grid-template-columns:1fr 1fr;align-items:end!important}.admin-filter label{width:auto!important}.admin-filter label.admin-check{grid-column:1/-1}.admin-filter button{width:100%!important}.admin-table-wrap{border:0!important;background:transparent!important}.admin-table,.admin-table tbody,.admin-table tr,.admin-table td{display:block;width:100%!important}.admin-table thead{display:none}.admin-table tbody{display:grid;gap:10px}.admin-table tr{padding:12px;border:1px solid #dce7ee;border-radius:16px;background:rgba(255,255,255,.82)}.admin-table td{display:grid;grid-template-columns:108px minmax(0,1fr);gap:10px;padding:7px 0!important;border:0!important;text-align:right!important;word-break:normal}.admin-table td:before{color:#718195;content:'';font-size:10px;font-weight:850;letter-spacing:.04em;text-align:left;text-transform:uppercase}.admin-table td:nth-child(1):before{content:'Дата'}.admin-table td:nth-child(2):before{content:'Заказ'}.admin-table td:nth-child(3):before{content:'Курорт'}.admin-table td:nth-child(4):before{content:'Тариф'}.admin-table td:nth-child(5):before{content:'Скипасс'}.admin-table td:nth-child(6):before{content:'Сумма'}.admin-table td:nth-child(7):before{content:'Статус'}.admin-table td:nth-child(8):before{content:'Целостность'}.admin-table td:nth-child(9):before{content:'Действия'}.admin-card-number{word-break:break-all!important}.admin-row-actions{justify-content:flex-end}.admin-row-actions form{display:inline-block}.admin-pagination{margin-top:16px}:root[data-theme="dark"] .admin-table tr{border-color:#30495b;background:#182938}:root[data-theme="dark"] .admin-table td:before{color:#adbdca}}
/* Same photographic scene and vertical rhythm as the public site. */
.backoffice-body{background-position:center!important;background-repeat:no-repeat!important}
.account-shell,.admin-shell{min-height:0!important}
/* Final contrast and header-control guardrails. */
.account-actions .account-btn,.admin-actions .admin-link{width:auto!important;flex:0 0 auto!important}
.account-actions,.admin-actions{flex-wrap:nowrap!important}
:root[data-theme="dark"] .account-note{border-color:#71562a!important;background:#2d291d!important;color:#f4dba7!important}
:root[data-theme="dark"] .account-note *{color:inherit!important}
@media(max-width:760px){.account-actions,.admin-actions{flex-wrap:wrap!important}}
