/* Shared backoffice layout and component theme. */
:root {
    --backoffice-accent: #bc3c2d;
    --backoffice-accent-dark: #983024;
    --backoffice-ink: #292723;
    --backoffice-muted: #76726b;
    --backoffice-border: #e7e3dc;
    --backoffice-sidebar-width: 248px;
    --backoffice-header-height: 78px;
}
html { min-height: 100%; }
body.backoffice { padding: 0; background: #f7f6f2; color: var(--backoffice-ink); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: .925rem; line-height: 1.55; }
.backoffice [hidden] { display: none !important; }
.backoffice a { color: var(--backoffice-accent); }
.backoffice a:hover { color: var(--backoffice-accent-dark); }
.backoffice :focus-visible { outline: 3px solid #d88b50; outline-offset: 3px; }
.backoffice-icon-definitions { position: absolute; width: 0; height: 0; overflow: hidden; }
.backoffice-icon { width: 19px; height: 19px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.backoffice-skip-link { position: fixed; top: -70px; left: 16px; z-index: 1100; background: white; padding: 12px 18px; border-radius: 8px; }
.backoffice-skip-link:focus { top: 12px; }
.backoffice-sidebar { position: fixed; inset: 0 auto 0 0; z-index: 1040; width: var(--backoffice-sidebar-width); display: flex; flex-direction: column; background: #28231f; color: #ede8e1; border-right: 1px solid #3d352e; }
.backoffice-brand-row { min-height: 104px; padding: 28px 26px 20px; display: flex; align-items: center; justify-content: space-between; }
.backoffice a.backoffice-brand { color: inherit; text-decoration: none; font-weight: 750; font-size: 1.65rem; letter-spacing: -.06em; line-height: 1; }
.backoffice-brand > span { color: #ef8b72; }
.backoffice-brand small { display: block; margin-top: 10px; color: #b2a79b; font-size: .64rem; font-weight: 500; text-transform: uppercase; letter-spacing: .17em; }
.backoffice-navigation { overflow-y: auto; flex: 1; padding: 12px 15px 20px; }
.backoffice-nav-group + .backoffice-nav-group { margin-top: 25px; }
.backoffice-nav-group h2 { margin: 0 13px 9px; font-size: .65rem; font-weight: 650; color: #ae9f90; text-transform: uppercase; letter-spacing: .11em; }
.backoffice-nav-group ul { margin: 0; padding: 0; list-style: none; }
.backoffice a.backoffice-nav-link { display: flex; align-items: center; gap: 12px; color: #d6cfc7; padding: 11px 13px; margin-bottom: 3px; border-radius: 8px; font-size: .85rem; text-decoration: none; transition: background .15s, color .15s; }
.backoffice a.backoffice-nav-link:hover { background: #39312a; color: white; }
.backoffice a.backoffice-nav-link.active { background: #b94230; color: white; font-weight: 600; box-shadow: 0 3px 8px #0002; }
.backoffice-sidebar-footer { display: flex; align-items: center; gap: 9px; padding: 19px 27px; border-top: 1px solid #443b32; font-size: .7rem; color: #b6ab9e; }
.backoffice-status-dot { height: 6px; width: 6px; border-radius: 50%; background: #bdab85; }
.backoffice-topbar { position: sticky; top: 0; z-index: 1020; height: var(--backoffice-header-height); margin-left: var(--backoffice-sidebar-width); padding: 0 36px; display: flex; justify-content: space-between; align-items: center; gap: 18px; border-bottom: 1px solid var(--backoffice-border); background: #fffefa; }
.backoffice-auth .backoffice-topbar { margin-left: 0; }
.backoffice-location { display: flex; align-items: center; gap: 15px; min-width: 0; }
.backoffice-breadcrumb { display: flex; flex-direction: column; font-size: .88rem; font-weight: 600; }
.backoffice-breadcrumb small { font-size: .63rem; letter-spacing: .06em; text-transform: uppercase; color: var(--backoffice-muted); font-weight: 500; }
.backoffice-breadcrumb-detail { color: var(--backoffice-muted); font-weight: 400; }
.backoffice-topbar-actions, .backoffice-language-form { display: flex; align-items: center; gap: 8px; }
.backoffice-language-form select { width: auto; min-width: 96px; }
.backoffice details.backoffice-account { position: relative; margin-left: 12px; padding: 0; background: transparent; border: 0; }
.backoffice .backoffice-account > summary, .backoffice .backoffice-account[open] > summary { list-style: none; margin: 0; }
.backoffice .backoffice-account > summary::-webkit-details-marker { display: none; }
.backoffice-account > summary::after { content: '▾'; font-size: .65rem; color: var(--backoffice-muted); }
.backoffice-account[open] > .dropdown-menu { display: block; left: auto; right: 0; top: calc(100% + 10px); min-width: 160px; }
.backoffice .backoffice-account-button { display: flex; align-items: center; gap: 9px; background: transparent; border: none; font-size: .82rem; color: var(--backoffice-ink); padding: 4px; }
.backoffice-avatar { display: grid; place-items: center; width: 33px; height: 33px; border-radius: 50%; background: #f0e4d9; color: #8c4934; font-weight: 700; }
.backoffice-menu-toggle, .backoffice-sidebar-close { display: none; border: 0; background: transparent; color: inherit; padding: 7px; font-size: 1.25rem; }
.backoffice-workspace { margin-left: var(--backoffice-sidebar-width); padding: 30px 36px 60px; }
.backoffice-workspace #content { position: relative; }
.backoffice #content > .container { max-width: 1440px; padding: 0; }
.backoffice .page-header { margin: 0 0 28px; text-align: left !important; }
.backoffice h1, .backoffice .display-4, .backoffice .display-5 { font-size: clamp(1.55rem, 2.3vw, 2.15rem); font-weight: 650; letter-spacing: -.035em; color: var(--backoffice-ink) !important; }
.backoffice h2 { font-size: 1.25rem; font-weight: 600; letter-spacing: -.02em; }
.backoffice h3 { font-size: 1.12rem; font-weight: 600; }
.backoffice h5, .backoffice h6 { font-weight: 600; }
.backoffice .card { border: 1px solid var(--backoffice-border); border-radius: 12px; box-shadow: 0 3px 12px #362b1404; overflow: hidden; }
.backoffice .card-header { background: #fff; border-bottom: 1px solid var(--backoffice-border); padding: 17px 20px; }
.backoffice .card-body { padding: 22px; }
.backoffice .list-group-item { padding: 16px 20px; border-color: #efece5; background: #fff; }
.backoffice .list-group-item:hover { background: #fdfbf7; }
.backoffice .btn { border-radius: 7px; font-size: .85rem; font-weight: 550; padding: .55rem .9rem; transition: background .15s, box-shadow .15s; }
.backoffice .btn-sm { padding: .34rem .65rem; font-size: .76rem; }
.backoffice .btn-primary { color: white; background: var(--backoffice-accent); border-color: var(--backoffice-accent); }
.backoffice .btn-primary:hover, .backoffice .btn-primary:active { background: var(--backoffice-accent-dark); border-color: var(--backoffice-accent-dark); }
.backoffice .btn-primary:disabled { background: #c97465; border-color: #c97465; }
.backoffice .btn-secondary { color: #4d4841; background: #f6f3ed; border-color: #e2ddd3; }
.backoffice .btn-secondary:hover { background: #ebe6db; border-color: #d5ccbe; }
.backoffice .btn-info { background: #f2ece4; border-color: #ddd2c3; color: #635444; }
.backoffice .btn-danger { background: #fff1ee; border-color: #ebc5be; color: #a7362a; }
.backoffice .btn-danger:hover { background: #a7362a; border-color: #a7362a; color: white; }
.backoffice .btn-success { background: #eaf3ec; color: #356644; border-color: #bbd4c1; }
.backoffice .form-control, .backoffice select:not(.form-control), .backoffice input:not([type]):not(.form-control) { border: 1px solid #dcd7ce; border-radius: 7px; background: #fff; color: var(--backoffice-ink); padding: .5rem .7rem; min-height: 38px; font-size: .875rem; max-width: 100%; }
.backoffice .form-control:focus { border-color: #c47a62; box-shadow: 0 0 0 3px #bc3c2d12; }
.backoffice label { font-size: .82rem; font-weight: 550; color: #5b544c; }
.backoffice .form-group { margin-bottom: 1.15rem; }
.backoffice .form-inline { gap: 8px; }
.backoffice .table-responsive { background: white; border: 1px solid var(--backoffice-border); border-radius: 12px; margin-bottom: 22px; }
.backoffice .table { margin-bottom: 0; font-size: .85rem; }
.backoffice .table thead th { background: #f3f0e9; border: 0; color: #726858; font-size: .69rem; letter-spacing: .05em; text-transform: uppercase; padding: 15px 18px; }
.backoffice .table td { vertical-align: middle; border-color: #eeeae1; padding: 15px 18px; }
.backoffice .table tbody tr:hover { background: #fdfbf7; }
.backoffice .modal-content { border: 0; border-radius: 14px; box-shadow: 0 20px 80px #251c2333; overflow: hidden; }
.backoffice .modal-header, .backoffice .modal-footer { border-color: var(--backoffice-border); padding: 19px 24px; background: #faf8f4; }
.backoffice .modal-body { padding: 24px; }
.backoffice .modal-title { font-size: 1.18rem; }
.backoffice .dropdown-menu { border-color: var(--backoffice-border); border-radius: 9px; box-shadow: 0 8px 24px #34241314; font-size: .85rem; }
.backoffice .alert { border-radius: 9px; font-size: .875rem; }
.backoffice .alert-danger { color: #9d3028; background: #fff0ed; border-color: #f0cec6; }
.backoffice .badge { padding: .4em .65em; border-radius: 5px; font-weight: 550; }
.backoffice details { background: white; border: 1px solid var(--backoffice-border); border-radius: 9px; padding: 13px 17px; }
.backoffice summary { cursor: pointer; font-size: .86rem; font-weight: 550; color: #645649; }
.backoffice details[open] > summary { margin-bottom: 15px; }
.backoffice .content-translation-editor { padding-top: 8px; }
.backoffice .text-muted { color: var(--backoffice-muted) !important; }
.backoffice-auth .backoffice-workspace { margin-left: 0; max-width: 480px; margin-inline: auto; padding-top: 60px; }
.backoffice-auth #login_form { background: white; border: 1px solid var(--backoffice-border); border-radius: 12px; padding: 28px; }
.backoffice-auth .page-header { text-align: center !important; }
.backoffice-auth .mrgvl { margin-bottom: 0; }
.backoffice-section-intro { max-width: 720px; color: var(--backoffice-muted); margin-bottom: 26px; }
.backoffice-stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-bottom: 36px; }
.backoffice a.backoffice-stat { display: flex; flex-direction: column; gap: 12px; padding: 22px; background: white; border: 1px solid var(--backoffice-border); border-radius: 12px; color: var(--backoffice-ink); text-decoration: none; }
.backoffice-stat > span { font-size: .8rem; color: var(--backoffice-muted); }
.backoffice-stat strong { font-size: 2rem; letter-spacing: -.04em; line-height: 1; }
.backoffice-stat small { font-size: .72rem; color: var(--backoffice-accent); }
.backoffice a.backoffice-stat:hover { border-color: #cba797; box-shadow: 0 4px 14px #4b302b08; }
.backoffice-shortcut-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.backoffice-shortcut-group { padding: 24px; background: white; border: 1px solid var(--backoffice-border); border-radius: 12px; }
.backoffice-shortcut-group h2 { margin-bottom: 16px; }
.backoffice a.backoffice-shortcut { display: flex; align-items: center; gap: 12px; padding: 13px 0; color: #635a50; border-top: 1px solid #efeae2; font-size: .88rem; text-decoration: none; }
.backoffice-shortcut > span:last-child { margin-left: auto; color: #b8ad9f; }
.backoffice a.backoffice-shortcut:hover { color: var(--backoffice-accent); }
/* Loading feedback never covers or replaces the user's data. */
.backoffice-spinner, .spinner { display: inline-block; flex-shrink: 0; width: 18px; height: 18px; border: 2px solid #bc3c2d30; border-top-color: var(--backoffice-accent); border-radius: 50%; animation: backoffice-spin .75s linear infinite; }
.backoffice-activity { position: fixed; z-index: 1060; right: 24px; bottom: 24px; display: flex; align-items: center; gap: 10px; padding: 12px 18px; border: 1px solid var(--backoffice-border); border-radius: 10px; background: #fffffff2; color: #64584b; box-shadow: 0 6px 25px #3a28121a; font-size: .8rem; pointer-events: none; }
.backoffice-page-loading { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; padding: 12px 17px; border: 1px solid #e8decc; background: #fcf8ef; border-radius: 9px; color: #7b6b51; font-size: .82rem; }
.backoffice-modal-loading { display: flex; align-items: center; gap: 10px; padding-bottom: 16px; color: var(--backoffice-muted); font-size: .8rem; }
.backoffice .is-loading { cursor: wait; }
.backoffice button.is-loading::before, .backoffice a.btn.is-loading::before { content: ''; display: inline-block; width: 13px; height: 13px; margin-right: 8px; vertical-align: -2px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: backoffice-spin .75s linear infinite; }
.backoffice input[type=submit].is-loading { opacity: .65; cursor: wait; }
.backoffice form[aria-busy=true] button[type=submit] { pointer-events: none; }
@keyframes backoffice-spin { to { transform: rotate(360deg); } }
@media (max-width: 1199px) {
    .backoffice-topbar { padding-inline: 24px; }
    .backoffice-workspace { padding-inline: 24px; }
    .backoffice-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .backoffice-language-form .btn { max-width: 120px; }
}
@media (max-width: 991px) {
    .backoffice { --backoffice-header-height: 70px; }
    .backoffice-sidebar { transform: translateX(-100%); visibility: hidden; transition: transform .2s, visibility .2s; }
    .backoffice-menu-open .backoffice-sidebar { transform: translateX(0); visibility: visible; }
    .backoffice-menu-open { overflow: hidden; }
    .backoffice-sidebar-backdrop { position: fixed; inset: 0; z-index: 1035; background: #201b1870; border: 0; }
    .backoffice-menu-toggle, .backoffice-sidebar-close { display: inline-block; }
    .backoffice-topbar, .backoffice-workspace { margin-left: 0; }
    .backoffice-shortcut-grid { grid-template-columns: 1fr; }
}
@media (max-width: 575px) {
    .backoffice-topbar { height: auto; min-height: var(--backoffice-header-height); padding: 12px 16px; flex-wrap: wrap; gap: 10px; }
    .backoffice-topbar-actions { margin-left: auto; }
    .backoffice-language-form select { min-width: 80px; font-size: .75rem; }
    .backoffice-language-form .btn { font-size: .67rem; padding: .35rem .45rem; }
    .backoffice details.backoffice-account { margin-left: 2px; }
    .backoffice-account-name { display: none; }
    .backoffice-workspace { padding: 24px 16px 40px; }
    .backoffice-stat-grid { gap: 10px; }
    .backoffice a.backoffice-stat { padding: 16px; }
    .backoffice-stat > span { font-size: .73rem; }
    .backoffice .card-header { gap: 8px; padding: 15px; }
    .backoffice .modal-dialog { margin: 12px; }
    .backoffice .modal-body { padding: 18px; }
    .backoffice .form-inline > label { width: 100%; }
    .backoffice-auth .backoffice-workspace { padding-top: 35px; }
}
@media (prefers-reduced-motion: reduce) {
    .backoffice *, .backoffice *::before { transition: none !important; animation: none !important; }
}
@media print {
    .backoffice-sidebar, .backoffice-topbar, .backoffice-activity { display: none; }
    .backoffice-workspace { margin-left: 0; padding: 0; }
}

/* Spacing */

.mrgbl {
    margin-bottom: 50px;
}

.mrgtl {
    margin-top: 50px;
}

.mrgrl {
    margin-right: 50px;
}

.mrgll {
    margin-left: 50px;
}

.mrghl {
    margin-left: 50px;
    margin-right: 50px;
}

.mrgvl {
    margin-top: 50px;
    margin-bottom: 50px;
}

.mrgb {
    margin-bottom: 25px;
}

.mrgt {
    margin-top: 25px;
}

.mrgr {
    margin-right: 25px;
}

.mrgl {
    margin-left: 25px;
}

.mrgh {
    margin-left: 25px;
    margin-right: 25px;
}

.mrgv {
    margin-top: 25px;
    margin-bottom: 25px;
}

.mrgbs {
    margin-bottom: 10px;
}

.mrgts {
    margin-top: 10px;
}

.mrgrs {
    margin-right: 10px;
}

.mrgls {
    margin-left: 10px;
}

.mrghs {
    margin-left: 10px;
    margin-right: 10px;
}

.mrgvs {
    margin-top: 10px;
    margin-bottom: 10px;
}

.mrgbt {
    margin-bottom: 3px;
}

.mrgtt {
    margin-top: 3px;
}

.mrgrt {
    margin-right: 3px;
}

.mrglt {
    margin-left: 3px;
}

.mrght {
    margin-left: 3px;
    margin-right: 3px;
}

.mrgvt {
    margin-top: 3px;
    margin-bottom: 3px;
}

.mrgb0 {
    margin-bottom: 0;
}

.mrgt0 {
    margin-top: 0;
}

.mrgr0 {
    margin-right: 0;
}

.mrgl0 {
    margin-left: 0;
}

.mrgh0 {
    margin-left: 0;
    margin-right: 0;
}

.mrgv0 {
    margin-top: 0;
    margin-bottom: 0;
}



/* Pusher */

.pusher {
    display: flex;
    flex-wrap: wrap
}

.pusher__body {
    max-width: 100%;
    flex: 1 0 auto
}
