/* Visitanepalmx: shared, compact administration design. */
:root{--ink:#2849a0;--ink-2:#19316f;--accent:#fbe715;--bg:#f3f8fb;--card:#fff;--muted:#5e7180;--line:#d7e8f1;--danger:#c52e2a;--radius:10px;--shadow:0 4px 18px #19316f0a;color:#20344b;font-size:14px;background:var(--bg)}
[hidden]{display:none!important}a,button,input,select,textarea,summary{outline-offset:3px}a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:2px solid #3599ca}button:disabled{opacity:.55;cursor:wait}button,a,input,select{touch-action:manipulation}
.app-shell{grid-template-columns:218px minmax(0,1fr)}.sidebar{padding:12px 10px;background:#fff;color:var(--ink-2);border-right:1px solid var(--line);overflow-y:auto;gap:0}.brand{padding:2px 9px 12px;display:block;text-decoration:none;border-bottom:1px solid var(--line);margin-bottom:5px}.brand img{width:160px;height:62px;object-fit:contain;display:block}.brand>span{display:flex!important;align-items:baseline;justify-content:space-between;font-size:13px;font-weight:800}.brand small{font-size:10px!important;font-weight:500;color:var(--muted)!important;letter-spacing:0}
.sidebar nav{gap:1px}.nav-group{color:var(--muted);font-size:9px;font-weight:800;text-transform:uppercase;letter-spacing:.12em;padding:13px 10px 4px}.sidebar nav button,.sidebar nav a{display:block;min-height:31px;padding:7px 10px;border:0;border-radius:6px;color:#405370;background:transparent;font-size:12px;font-weight:600;line-height:1.25;text-align:left;text-decoration:none}.sidebar nav button:hover,.sidebar nav a:hover{background:#edf5fb;color:var(--ink)}.sidebar nav button.active,.sidebar nav [aria-current=page]{background:var(--ink);color:white;box-shadow:inset 3px 0 var(--accent)}
.admin-account{display:flex;align-items:center;gap:8px;border-top:1px solid var(--line);margin-top:16px;padding:12px 5px 2px;font-size:11px}.admin-account>div{min-width:0}.admin-account strong{display:block;overflow-wrap:anywhere;line-height:1.4}.account-caption{display:block;color:var(--muted);font-size:10px;margin-top:2px}.avatar{width:28px;height:28px;flex:none;border-radius:7px;font-size:12px}.account-settings,.logout-link{background:none;border:0;color:var(--muted);padding:5px;font-size:11px;text-align:left;text-decoration:none}.account-settings:hover,.logout-link:hover{color:var(--ink);text-decoration:underline}
.topbar{padding:12px 20px;gap:10px;min-height:69px;background:#fff;backdrop-filter:none}.topbar h1{font-size:22px;letter-spacing:-.035em;line-height:1.2}.topbar .eyebrow{font-size:9px;letter-spacing:.13em;color:var(--muted)}.topbar .top-status{flex:0 0 auto;font-size:11px;gap:10px}.content{padding:16px 20px 26px;max-width:1680px}.legacy-tools{padding:8px 20px 0;display:flex;gap:6px;flex-wrap:wrap}.legacy-tools a{font-size:11px;background:#e8f1fb;border:1px solid var(--line);padding:5px 9px;border-radius:5px;color:var(--ink);text-decoration:none}.legacy-tools a:hover{background:#dceafa}
.button{min-height:34px;padding:7px 12px;border-radius:7px;font-size:12px;font-weight:700;text-decoration:none;line-height:1.25;white-space:normal}.button.small{min-height:30px;padding:6px 9px;font-size:11px}.button.primary{background:var(--ink);color:white;border-color:var(--ink)}.button.accent{background:var(--accent);color:var(--ink-2);border-color:var(--accent)}.button.danger{background:#fff4f3;color:var(--danger);border-color:#f3d2ce}.icon-button{height:34px;width:34px;border-radius:7px;font-size:18px}
.hero{padding:16px 18px;border-radius:10px;background:linear-gradient(115deg,#2849a0,#216da7);margin-bottom:12px;display:flex;align-items:center;justify-content:space-between;gap:16px}.hero h2{font-size:24px;letter-spacing:-.035em;margin:4px 0}.hero p{margin:0;color:#e1edff;font-size:12px;line-height:1.5}.hero .eyebrow{color:#fbe715;font-size:9px}.hero .button{margin:0;flex:none}
.stats{gap:10px;margin-bottom:12px}.stat-card{padding:12px 14px;border-radius:9px;box-shadow:none;border:1px solid var(--line)}.stat-card strong{font-size:26px;line-height:1.2;color:var(--ink);letter-spacing:-.035em}.stat-card span{font-size:11px;margin-top:4px;color:var(--muted)}.grid-2{gap:12px}.panel{padding:14px;border-radius:10px;margin-bottom:12px;border:1px solid var(--line);box-shadow:none;background:#fff}.panel-head{gap:8px;margin-bottom:10px;align-items:center}.panel-head h2,.panel h2{font-size:15px;line-height:1.35;margin:0 0 6px}.panel-head h2{margin:0}.panel-head .actions{margin:0}.panel h3{font-size:13px}.panel p{line-height:1.5}.toolbar{gap:8px;margin-bottom:10px}.toolbar>p{font-size:12px;color:var(--muted);line-height:1.5}.toolbar .grow{min-width:0}.experience-selector{display:flex;align-items:center;gap:8px;flex-direction:row;font-size:11px;font-weight:600;color:var(--muted)}.experience-selector select{max-width:520px;min-width:220px;color:var(--ink-2);font-weight:600;background:white}
.experience-grid{grid-template-columns:repeat(auto-fill,minmax(285px,1fr));gap:10px}.experience-card{padding:14px;border-radius:9px;border-top:3px solid #3599ca}.experience-card h2{font-size:16px;margin:8px 0 5px;line-height:1.3}.experience-card p{font-size:12px;line-height:1.55;margin:5px 0 9px}.experience-card .actions{padding-top:10px;border-top:1px solid var(--line);gap:5px;margin-top:9px}.actions{gap:6px;margin-top:8px}.chips{gap:4px}.chip{padding:3px 6px;border-radius:4px;background:#edf4fc;color:var(--ink);font-size:10px}.badge{font-size:10px;padding:3px 7px;border-radius:4px;background:#eaf2fb;color:var(--ink)}.badge.active,.badge.approved,.badge.published,.badge.linked{background:#e3f1ff;color:#2849a0}.badge.pending,.badge.draft,.badge.used,.chip.pending{background:#fff8cd;color:#6b5600}.badge.disabled,.badge.revoked,.badge.cancelled,.badge.rejected{background:#fff0ed;color:#a92e26}
.list{gap:7px}.item-card{padding:11px 12px;gap:8px;border-radius:8px;border:1px solid var(--line);box-shadow:none;min-width:0}.item-card h3{font-size:13px;margin:0 0 4px}.item-card p{font-size:11px;line-height:1.5;margin:0}.item-card .grow{min-width:0;overflow-wrap:anywhere}.item-card .button{flex:none}.list-tools{display:flex;align-items:center;gap:10px;margin:0 0 10px}.search-box{display:flex;align-items:center;flex-direction:row;gap:8px;font-size:11px;font-weight:600;width:min(440px,100%)}.search-box input{flex:1;min-width:0}.list-count{font-size:11px;color:var(--muted);white-space:nowrap}.empty{padding:22px 14px;font-size:12px;border-radius:8px}.loading{padding:24px}
table{font-size:12px}th,td{padding:9px 8px;line-height:1.45}th{font-size:10px;letter-spacing:.04em;background:#f3f7fd;color:#536582;white-space:nowrap}td{color:#32445b}tbody tr:hover{background:#f8fbff}td strong{color:#1b3263}td small{font-size:10px;color:var(--muted)}td .actions{margin:0;gap:5px}.table-wrap{border-radius:7px}.table-wrap table{margin:0}.table-wrap input{min-width:0}
label{gap:5px;font-size:12px;font-weight:600}input,select,textarea{padding:8px 9px;min-height:34px;border-radius:6px;border-color:#cbdde9;color:#20344b;background:white;font-size:12px}input[type=checkbox],input[type=radio]{min-height:0;width:16px;height:16px;accent-color:var(--ink)}input::placeholder,textarea::placeholder{color:#7a8898;font-weight:400}.stack{gap:10px}.form-grid{gap:10px}.form-grid h3{margin:7px 0 0;padding-top:10px;font-size:12px;letter-spacing:.02em}.form-grid fieldset{padding:10px;border-radius:7px}.form-grid legend{font-size:12px}.form-grid .check,.switch-row label{font-size:12px;font-weight:500}.checks{gap:10px}.selection-grid{gap:7px;max-height:250px;overflow:auto;padding:4px}.mini-grid{gap:9px}.modal-card{padding:22px;max-width:880px;border-radius:12px}.modal-card h2{font-size:20px;letter-spacing:-.02em;margin:0 0 10px}.modal-card form{margin-top:12px}.modal-card p{font-size:12px;line-height:1.55}.modal-card textarea{min-height:65px}.modal-close{top:10px;right:10px;width:28px;height:28px}.form-actions,.modal-actions{gap:8px;margin-top:8px;padding-top:10px;border-top:1px solid var(--line)}dialog{border-radius:12px;max-height:calc(100dvh - 32px);overflow:auto}dialog::backdrop{background:#11204b70}
details{font-size:12px}summary{cursor:pointer;font-size:12px;font-weight:700;color:var(--ink);padding:7px 0;list-style:none;display:flex;align-items:center;gap:8px}summary::-webkit-details-marker{display:none}summary::before{content:'';width:6px;height:6px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(-45deg);margin:0 3px 2px;flex:none}details[open]>summary::before{transform:rotate(45deg)}details[open]>summary{margin-bottom:8px}.module-details summary{font-size:11px;padding:3px 0}.release-section{border:1px solid var(--line);border-radius:8px;padding:6px 12px}.release-section>summary{font-size:13px}.release-section>summary .chip{margin-left:auto}.release-section .form-grid{padding:5px 0 8px}.restore-section{border-top:1px solid var(--line);margin-top:10px;padding-top:3px}.help,.definition{font-size:11px;line-height:1.55;margin:7px 0}.info-banner,.notice{padding:10px 12px;border-radius:7px;background:#fff9d9;color:#645315;margin:9px 0;font-size:12px}.positive,.sync-ok{color:#2849a0}.negative,.sync-fail{color:#c52e2a}.muted{color:var(--muted)}
.finance-summary{gap:8px;margin-bottom:12px}.finance-summary article,.finance-compact article{padding:11px 12px;border-radius:8px}.finance-summary article strong,.finance-compact article strong{font-size:21px;margin-top:5px;letter-spacing:-.025em}.finance-summary article span{font-size:11px;line-height:1.4}.finance-summary article.focus{background:var(--ink);border-color:var(--ink);color:#fff}.finance-summary article.focus span{color:#e5edff}.finance-summary article.focus strong{color:var(--accent)}.finance-columns{gap:12px}.finance-line{padding:6px 0;font-size:12px}.finance-panel{margin-bottom:12px}.finance-panel .help{font-size:11px}.ledger-row{padding-bottom:8px;gap:7px}.room-card{padding:10px;gap:5px;min-width:150px;margin:3px;border-radius:7px}.room-card.locked{background:#eef5ff;border-color:#8baada}.room-card strong{font-size:12px}.doc-row{padding:7px 0;gap:8px}.catalog-row{margin:7px 0;gap:8px}.code-box{background:#edf4fc;color:var(--ink);padding:12px;border-radius:8px;font-size:19px}.code-box small{color:var(--muted)}.toast{padding:11px 15px;border-radius:8px;background:#2849a0;color:white;box-shadow:0 4px 18px #142f5b20}.toast.error{background:#b92e2a}#flash{position:fixed;top:12px;right:16px;z-index:100;max-width:min(420px,90vw)}
.auth-page{background:linear-gradient(135deg,#edf5fb,#f8fbff)}.auth-card{border:1px solid var(--line);box-shadow:0 15px 60px #2849a014;border-radius:14px;padding:28px;max-width:400px}.auth-logo{width:185px;height:auto;margin-bottom:12px}.auth-card h1{color:var(--ink);font-size:25px;margin:4px 0}.auth-card .muted{font-size:12px;margin:6px 0 20px}
@media(min-width:1001px){.sidebar{position:sticky;left:auto;width:auto;transform:none}.topbar #menuButton{display:none}}
@media(max-width:1100px){.app-shell{grid-template-columns:200px minmax(0,1fr)}.content{padding:14px}.topbar{padding:12px 14px}.finance-summary article strong{font-size:18px}.topbar .top-status{font-size:10px}.finance-columns{grid-template-columns:1fr}}
@media(max-width:1000px){.app-shell{display:block}.sidebar{position:fixed;top:0;left:0;width:230px;height:100dvh;z-index:40;transform:translateX(-100%);transition:transform .15s;box-shadow:8px 0 25px #19316f18}.sidebar.open{transform:translateX(0)}.topbar #menuButton{display:grid;place-items:center}.content{max-width:none}.topbar{position:sticky}.topbar h1{font-size:19px}}
@media(max-width:600px){.topbar{padding:10px;gap:8px;flex-wrap:wrap}.topbar h1{font-size:18px}.topbar .top-status{gap:3px;flex-direction:column;align-items:flex-end}.content{padding:10px 10px 20px}.hero{padding:14px;align-items:flex-start;flex-direction:column;gap:10px}.hero h2{font-size:22px}.stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.stat-card{padding:10px}.stat-card strong{font-size:23px}.experience-grid,.grid-2{grid-template-columns:1fr}.panel{padding:11px}.experience-card{padding:12px}.toolbar{gap:7px}.experience-selector{display:block}.experience-selector span{display:block;margin-bottom:4px}.experience-selector select{min-width:0;width:100%}.toolbar>.grow{flex-basis:100%}.item-card{flex-wrap:wrap}.item-card>.grow{flex-basis:100%}.list-tools{gap:7px;flex-wrap:wrap}.search-box{width:100%}.list-count{font-size:10px}.form-grid,.mini-grid{grid-template-columns:1fr}.modal-card{padding:18px 14px}.modal-card h2{font-size:18px}.modal-card .form-grid h3{grid-column:1}.modal-close{right:5px;top:5px}.ledger-row,.reservation-editor-row{grid-template-columns:1fr 1fr}.ledger-note{grid-column:1/-1}.panel-head{flex-wrap:wrap}.finance-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.finance-summary article strong{font-size:17px;white-space:normal}.finance-compact article strong{white-space:normal}.legacy-tools{padding:7px 10px 0}.button,.button.small{min-height:36px}.help{font-size:11px}}
.panel .finance-summary:has(>article:nth-child(6):last-child){grid-template-columns:repeat(3,minmax(0,1fr))}
.nav-backdrop{position:fixed;inset:0;border:0;background:#12245055;z-index:39}
@media(min-width:1001px){.nav-backdrop{display:none}}
@media(max-width:1000px){.sidebar{visibility:hidden;pointer-events:none}.sidebar.open{visibility:visible;pointer-events:auto}}
@media(max-width:600px){.panel .finance-summary:has(>article:nth-child(6):last-child){grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
.altitude-profile{margin:12px 0;border:1px solid #d9e4f0;border-radius:12px;padding:12px;background:linear-gradient(180deg,#fff,#f7faff);color:#203b73}
.altitude-profile header{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;margin-bottom:10px}
.altitude-profile h3{font-size:14px;margin:0;font-weight:750;letter-spacing:-.02em}
.altitude-profile header span{display:flex;align-items:center;gap:6px;font-size:10px;color:#60738e}
.altitude-profile header i{display:block;width:14px;height:3px;border-radius:2px;background:#2849a0}
.altitude-canvas{width:100%;height:250px;min-width:0}
.altitude-canvas svg{display:block;width:100%;height:100%;overflow:visible}
.altitude-canvas text{font:10px system-ui,sans-serif;fill:#60738e}
.altitude-canvas .altitude-axis-title{font-size:10px;font-weight:600}
.altitude-grid{stroke:#dce6f1;stroke-width:1;stroke-dasharray:3 4}
.altitude-line{fill:none;stroke:#2849a0;stroke-width:2.3;stroke-linecap:round;stroke-linejoin:round}
.altitude-end{fill:#2849a0;stroke:white;stroke-width:1.5}
.altitude-profile footer{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;padding-top:9px;border-top:1px solid #e1eaf4;font-size:10px;color:#60738e}
.altitude-profile footer strong{display:block;margin-top:2px;color:#203b73;font-size:12px}
.route-note{padding:10px;border:1px solid #d9e4f0;border-radius:8px;background:#f7faff;margin-bottom:12px}
.route-note textarea{resize:vertical;width:100%;font-weight:400}
.route-note>div{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:6px}
.route-note small{font-size:10px;color:#60738e;line-height:1.4}
.route-note button{flex-shrink:0}
.route-groups{display:grid;gap:8px}
.route-group-heading{display:flex;align-items:center;gap:8px;padding:9px 10px;border-left:3px solid #2849a0;border-radius:4px;background:#eaf1fa;cursor:pointer;list-style:none}
.route-group-heading::-webkit-details-marker{display:none}
.route-group-heading::before{content:'';width:6px;height:6px;flex-shrink:0;border-right:2px solid #2849a0;border-bottom:2px solid #2849a0;transform:rotate(45deg);margin:0 4px 4px 0}
.route-group[open]>.route-group-heading::before{transform:rotate(225deg);margin-top:5px;margin-bottom:0}
.route-group-heading h2{flex:1}
.route-group[open]>.route-group-heading{margin-bottom:0}
.route-group[open]>.list{margin-top:4px;gap:0;border:1px solid #d9e4f0;border-radius:6px;overflow:hidden}
.route-group .item-card{border:0;border-bottom:1px solid #e5edf5;border-radius:0;padding:8px 10px;gap:6px}
.route-group .item-card:last-child{border-bottom:0}
.route-group-heading h2{margin:0;color:#203b73;font-size:14px;overflow-wrap:anywhere}
.route-group-heading>span{flex-shrink:0;color:#60738e;font-size:11px}
.route-group .item-card .grow{min-width:0;overflow-wrap:anywhere}
.route-group .item-card p.route-list-note{margin:3px 0 0;font-size:11px;color:#60738e;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.route-editor-dialog>.modal-card>.modal-close{display:none}
.route-editor-heading h2{margin-bottom:4px}
.route-editor-heading p{margin:0;color:#60738e}
.route-editor textarea{resize:vertical;min-height:48px}
.route-editor .form-grid{gap:9px}
.route-editor .form-grid .wide{grid-column:1/-1}
.request-message{white-space:pre-wrap;overflow-wrap:anywhere}
.route-editor small{font-size:10px;color:#60738e;line-height:1.4}
.route-editor-actions{position:sticky;bottom:-22px;display:flex;gap:7px;padding:10px 0;margin-top:10px;border-top:1px solid #d9e4f0;background:#fff;z-index:2}
.route-editor-actions button:first-child{margin-right:auto}
@media(max-width:600px){.route-editor .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.route-editor-actions{bottom:-18px;gap:5px}.route-editor-actions .button{padding:7px 9px;font-size:11px}.route-group .item-card .grow{flex-basis:100%}}
@media print{.sidebar,.topbar,.legacy-tools,.list-tools,.button,#flash{display:none!important}.app-shell{display:block}.content{padding:0}.panel,.experience-card{box-shadow:none;break-inside:avoid}.hero{background:white;color:#2849a0}.hero p{color:#2849a0}details{display:block}body{background:white}}

/* Compact deletion scope keeps the confirmation within reach on phones. */
.delete-impact{margin:10px 0;border:1px solid var(--line);border-radius:8px;padding:4px 10px}.delete-impact>div{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:6px 0;border-bottom:1px solid var(--line)}.delete-impact>div:last-child{border-bottom:0}.delete-impact dt{font-size:12px}.delete-impact dd{margin:0;font-weight:700;font-variant-numeric:tabular-nums}
