/* PayPage admin — deliberately original, calm financial UI */
:root{--navy:#0b2545;--navy-2:#123b66;--blue:#0070ba;--blue-hover:#005b99;--blue-soft:#e9f4fc;--ink:#142b44;--muted:#6b7e93;--line:#dfe7f0;--surface:#fff;--bg:#f4f7fb;--green:#16856b;--green-soft:#e8f7f1;--red:#c43d4b;--red-soft:#fff0f1;--amber:#a86608;--amber-soft:#fff6e4;--shadow:0 3px 14px rgba(20,43,68,.045);--radius:14px}
*{box-sizing:border-box}html{font-size:15px}body{margin:0;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;color:var(--ink);background:var(--bg);-webkit-font-smoothing:antialiased}button,input,textarea,select{font:inherit}button,a{-webkit-tap-highlight-color:transparent}a{color:inherit;text-decoration:none}button{cursor:pointer}svg{display:block}img{max-width:100%}h1,h2,h3,p{margin-top:0}input,textarea,select{color:var(--ink)}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.muted{color:var(--muted)}.small-text{font-size:13px;line-height:1.55}.pre-line{white-space:pre-line}.break-url{overflow-wrap:anywhere}.required{color:var(--red)}
.brand{display:inline-flex;align-items:center;gap:10px;color:#0782d4;flex:none}.brand-mark{width:38px;height:38px}.brand-word{font-size:24px;font-weight:750;letter-spacing:-1px;color:#102f50}.brand-word span{font-weight:450;color:#52708e}.sidebar .brand-word,.login-visual .brand-word{color:#fff}.sidebar .brand-word span,.login-visual .brand-word span{color:#9db4ce}.sidebar .brand-mark,.login-visual .brand-mark{color:#1995df}
.admin-shell{display:flex;min-height:100vh}.sidebar{position:fixed;inset:0 auto 0 0;width:248px;background:linear-gradient(175deg,#0b294b 0%,#091f39 100%);color:#d8e4f0;padding:27px 18px 20px;display:flex;flex-direction:column;z-index:40}.sidebar-brand{padding:0 12px 35px}.sidebar-nav{display:flex;flex-direction:column;gap:6px}.nav-caption{padding:0 13px 8px;color:#7f9bb8;text-transform:uppercase;font-size:10px;letter-spacing:1.25px;font-weight:700}.nav-caption-spaced{margin-top:26px}.nav-link{display:flex;align-items:center;gap:12px;padding:12px 13px;border-radius:9px;font-size:14px;font-weight:550;color:#b7c9db;transition:.18s ease}.nav-link svg{width:20px;height:20px;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.nav-link:hover{color:#fff;background:rgba(255,255,255,.055)}.nav-link.active{background:#124a78;color:#fff;box-shadow:inset 3px 0 #49b5f4}.sidebar-bottom{margin-top:auto}.system-status{display:flex;align-items:flex-start;gap:10px;padding:16px 12px;margin-bottom:12px;border-top:1px solid rgba(255,255,255,.08);border-bottom:1px solid rgba(255,255,255,.08)}.status-dot{width:8px;height:8px;margin-top:5px;border-radius:50%;background:#60d3ad;box-shadow:0 0 0 4px rgba(96,211,173,.1);flex:none}.system-status strong{display:block;font-size:12px;color:#d9e7f3;font-weight:600}.system-status small{display:block;color:#7f9bb8;font-size:10px;margin-top:4px}.logout-button{width:100%;display:flex;align-items:center;gap:11px;padding:11px 13px;border:0;background:transparent;color:#94adc5;border-radius:8px;font-size:13px;text-align:left}.logout-button svg{width:19px;height:19px;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.logout-button:hover{color:#fff;background:rgba(255,255,255,.05)}.admin-main{margin-left:248px;min-width:0;width:calc(100% - 248px);display:flex;flex-direction:column;min-height:100vh}.admin-content{width:100%;max-width:1560px;margin:0 auto;padding:36px 38px 50px;flex:1}.admin-footer{display:flex;justify-content:space-between;gap:15px;padding:20px 38px;color:#8b9aad;font-size:11px;border-top:1px solid #e6edf4}.admin-footer span:first-child{font-weight:700;color:#6d8298}.mobile-topbar{display:none}.sidebar-overlay{display:none}
.page-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:25px;margin-bottom:27px}.page-heading h1{font-size:30px;line-height:1.2;letter-spacing:-.8px;margin:5px 0 8px;font-weight:730;color:#102d4d}.page-heading p{margin:0;color:var(--muted);font-size:14px;line-height:1.5}.eyebrow{display:block;text-transform:uppercase;letter-spacing:1.5px;font-weight:750;font-size:10px;color:#4480ac}.eyebrow.light{color:#8cc9ee}.button{min-height:42px;border-radius:8px;padding:10px 17px;display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid transparent;font-size:13px;font-weight:650;line-height:1.2;transition:background .17s,border .17s,transform .17s,box-shadow .17s;white-space:nowrap}.button svg{width:17px;height:17px;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.button:hover{transform:translateY(-1px)}.button:active{transform:translateY(0)}.button-primary{color:#fff;background:var(--blue);border-color:var(--blue);box-shadow:0 3px 8px rgba(0,112,186,.14)}.button-primary:hover{background:var(--blue-hover);border-color:var(--blue-hover);box-shadow:0 4px 12px rgba(0,112,186,.2)}.button-secondary{background:#fff;border-color:#d6e1eb;color:#36526e}.button-secondary:hover{border-color:#a9bfd3;background:#f9fbfd}.button-success{background:var(--green);color:#fff;border-color:var(--green)}.button-success:hover{background:#106b56}.button-danger-ghost{background:#fff;color:var(--red);border-color:#efced2}.button-danger-ghost:hover{background:var(--red-soft);border-color:#e5adb4}.button-full{width:100%}.button-small{min-height:37px;padding:8px 13px;font-size:12px}.heading-actions{display:flex;gap:10px;align-items:center}.back-link{display:inline-flex;align-items:center;gap:6px;color:#65809a;font-size:12px;font-weight:600;margin-bottom:10px}.back-link:hover{color:var(--blue)}.back-link svg{width:16px;height:16px;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.alert{display:flex;align-items:flex-start;gap:11px;padding:14px 16px;border-radius:10px;margin:0 0 22px;font-size:13px;line-height:1.5;border:1px solid}.alert>svg{width:20px;height:20px;flex:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.alert p{margin:2px 0 0}.alert strong{display:block;margin-bottom:2px}.alert-success{background:var(--green-soft);border-color:#c5e9dc;color:#176f5c}.alert-error{background:var(--red-soft);border-color:#f1cbd0;color:#a83240}.alert button{margin-left:auto;border:0;background:transparent;color:inherit;font-size:22px;line-height:1;padding:0 3px}.panel{background:var(--surface);border:1px solid #e2eaf2;border-radius:var(--radius);box-shadow:var(--shadow)}
.stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:24px}.stat-card{display:flex;gap:14px;align-items:center;background:#fff;border:1px solid #e2eaf2;border-radius:12px;padding:20px 19px;box-shadow:var(--shadow);min-width:0}.stat-icon{width:44px;height:44px;border-radius:11px;display:grid;place-items:center;flex:none}.stat-icon svg{width:22px;height:22px;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}.stat-icon.blue{color:#0878c5;background:#e7f3fc}.stat-icon.violet{color:#7161bc;background:#f0edfc}.stat-icon.teal{color:#188b7a;background:#e8f7f3}.stat-icon.amber{color:#b1761d;background:#fff4e3}.stat-card>div:last-child{min-width:0}.stat-card span{display:block;font-size:11px;color:#6e8297;margin-bottom:2px}.stat-card strong{display:block;font-size:26px;letter-spacing:-.5px;line-height:1.15;color:#173450}.stat-card small{display:block;font-size:10px;color:#91a0b0;margin-top:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pages-panel{overflow:hidden}.panel-toolbar{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:20px 22px;border-bottom:1px solid #e7edf3}.panel-toolbar h2{font-size:16px;margin:0 0 3px}.panel-toolbar .muted{font-size:11px}.filters{display:flex;align-items:center;gap:8px}.filters select,.filters input{height:37px;border:1px solid #d9e3ec;background:#fff;border-radius:7px;padding:7px 10px;font-size:12px;outline:0}.filters select:focus,.filters input:focus{border-color:#6eb4e2;box-shadow:0 0 0 3px #eaf5fc}.search-field{position:relative;display:block}.search-field svg{position:absolute;left:10px;top:10px;width:16px;height:16px;stroke:#8ca0b3;stroke-width:1.7;stroke-linecap:round}.search-field input{width:245px;padding-left:33px}.filter-reset{display:grid;place-items:center;width:25px;height:25px;color:#7890a7;font-size:21px}.table-wrap{overflow-x:auto}.pages-table{width:100%;border-collapse:collapse;text-align:left;white-space:nowrap}.pages-table th{padding:12px 15px;background:#f9fbfd;color:#7a8ea2;font-size:10px;font-weight:700;letter-spacing:.45px;text-transform:uppercase;border-bottom:1px solid #e5ecf3}.pages-table th:first-child,.pages-table td:first-child{padding-left:22px}.pages-table th:last-child,.pages-table td:last-child{padding-right:18px}.pages-table td{padding:15px;border-bottom:1px solid #edf1f5;font-size:12px;vertical-align:middle}.pages-table tbody tr{transition:background .15s}.pages-table tbody tr:hover{background:#fafcff}.pages-table tbody tr:last-child td{border-bottom:0}.page-cell{display:flex;align-items:center;gap:11px;max-width:340px}.page-cell-icon{width:37px;height:37px;border-radius:9px;display:grid;place-items:center;flex:none}.page-cell-icon.product{background:#eaf4fc;color:#147abb}.page-cell-icon.service{background:#f0edfb;color:#7662b9}.page-cell-icon svg{width:19px;height:19px;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}.page-cell>div:last-child{min-width:0}.page-title-link{display:block;font-size:12px;font-weight:700;color:#1c3b59;max-width:270px;overflow:hidden;text-overflow:ellipsis}.page-title-link:hover{color:var(--blue)}.page-reference{display:block;margin-top:4px;color:#8799aa;font-size:10px}.kind-label{color:#6f8295;font-size:11px}.money-cell{display:block;font-size:12px;color:#193954}.recipient-cell{display:block;font-size:9px;color:#94a2b0;margin-top:4px;max-width:140px;overflow:hidden;text-overflow:ellipsis}.status-badge{display:inline-flex;align-items:center;gap:6px;border-radius:20px;padding:5px 9px;font-size:10px;font-weight:650;line-height:1.2}.status-badge>span{width:5px;height:5px;border-radius:50%;background:currentColor}.status-active{color:#14755f;background:#e8f6f0}.status-draft{color:#6d7480;background:#eef1f4}.status-disabled{color:#a64b53;background:#fceff0}.status-paid{color:#3d65a9;background:#ebf0fb}.activity-cell{display:flex;align-items:center;gap:5px;color:#6e8297;font-size:11px}.activity-cell svg{width:14px;height:14px;stroke:#93a6b8;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.activity-divider{width:1px;height:12px;background:#dce4eb;margin:0 3px}.date-cell{font-size:10px;color:#7d8fa2}.row-action{width:28px;height:28px;display:grid;place-items:center;border:1px solid #e1e8ef;border-radius:7px;color:#6e879e}.row-action:hover{background:#edf6fc;color:var(--blue);border-color:#c1deef}.row-action svg{width:15px;height:15px;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.empty-state{text-align:center;padding:55px 20px 60px}.empty-illustration{width:80px;margin:0 auto 18px}.empty-illustration svg{stroke:#80b8dc;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.empty-illustration svg circle{fill:#e8f4fb;stroke:#80b8dc}.empty-state h3{font-size:18px;margin-bottom:8px}.empty-state p{max-width:470px;margin:0 auto 20px;color:var(--muted);font-size:13px;line-height:1.6}
/* Editor */
.form-page-heading{align-items:flex-end}.editor-layout{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:22px;align-items:start}.editor-main{display:flex;flex-direction:column;gap:20px;min-width:0}.form-section{padding:25px}.section-heading{display:flex;align-items:flex-start;gap:12px;margin-bottom:24px}.section-heading-inner{display:flex;align-items:flex-start;gap:12px}.section-heading h2{font-size:17px;letter-spacing:-.2px;margin:0 0 5px}.section-heading p{font-size:12px;color:var(--muted);margin:0;line-height:1.45}.section-number{width:31px;height:31px;display:grid;place-items:center;background:#eaf4fb;color:#1678b7;font-size:10px;font-weight:750;border-radius:8px;flex:none}.section-number svg{width:18px;height:18px;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.section-heading-actions{justify-content:space-between;gap:15px}.field{margin-bottom:18px}.field:last-child{margin-bottom:0}.field label,.field-label{display:block;font-size:12px;font-weight:650;color:#314b65;margin-bottom:7px}.field input,.field textarea,.field select,.security-form input{width:100%;border:1px solid #d5e0ea;background:#fff;border-radius:8px;padding:11px 12px;font-size:13px;outline:0;transition:border .15s,box-shadow .15s;line-height:1.4}.field input,.field select{height:43px}.field textarea{resize:vertical;min-height:82px}.field input::placeholder,.field textarea::placeholder{color:#a0afbc}.field input:focus,.field textarea:focus,.field select:focus,.security-form input:focus{border-color:#5da9d9;box-shadow:0 0 0 3px rgba(57,148,207,.11)}.field select{appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23647b91' stroke-width='2'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center;padding-right:34px}.field-hint{display:block;font-size:10px;color:#8a9aaa;margin-top:6px;line-height:1.5}.form-row{display:grid;gap:15px}.two-cols{grid-template-columns:repeat(2,minmax(0,1fr))}.kind-switch{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:21px}.kind-option{position:relative;margin:0!important;cursor:pointer}.kind-option input{position:absolute;opacity:0;pointer-events:none}.kind-option>span{display:grid;grid-template-columns:34px 1fr;grid-template-rows:auto auto;column-gap:10px;padding:14px;border:1px solid #d9e3ec;border-radius:10px;transition:.15s}.kind-option svg{grid-row:1/3;width:26px;height:26px;align-self:center;stroke:#7891a7;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}.kind-option strong{font-size:13px;color:#314c66}.kind-option small{font-size:10px;color:#8598aa;margin-top:3px}.kind-option input:checked+span{border-color:#3a97ce;background:#f1f9fe;box-shadow:0 0 0 1px #3a97ce}.kind-option input:checked+span svg{stroke:#0878bd}.kind-option input:focus-visible+span{outline:3px solid #b7ddf4}.url-input{position:relative}.url-input>svg{position:absolute;left:12px;top:12px;width:19px;height:19px;stroke:#7d96aa;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.url-input input{padding-left:40px}.items-list{display:flex;flex-direction:column;gap:16px}.line-item{border:1px solid #e0e8ef;border-radius:11px;background:#fbfcfe;overflow:hidden}.line-item-heading{display:flex;align-items:center;gap:10px;padding:13px 16px;background:#f6f9fc;border-bottom:1px solid #e5ecf2}.line-item-number{width:25px;height:25px;border-radius:7px;background:#e4eef6;color:#4e7391;display:grid;place-items:center;font-size:10px;font-weight:750}.line-item-heading h3{font-size:12px;margin:0 0 2px}.line-item-heading p{font-size:9px;color:#8b9dad;margin:0}.remove-item{margin-left:auto;width:29px;height:29px;display:grid;place-items:center;background:transparent;border:0;border-radius:6px;color:#9aabb9}.remove-item:hover{background:#fff0f1;color:#c54b56}.remove-item:disabled{opacity:.3;cursor:not-allowed}.remove-item svg{width:16px;height:16px;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}.line-item-grid{display:grid;grid-template-columns:135px 1fr;gap:17px;padding:17px}.item-photo-field{text-align:center}.item-image-preview{width:100%;aspect-ratio:1/1;border:1px solid #e0e8ef;border-radius:9px;overflow:hidden;background:#edf4f9}.item-image-preview img{width:100%;height:100%;object-fit:cover}.item-image-preview:not(.has-image) img{object-fit:cover;opacity:.85}.photo-upload-button{display:flex!important;align-items:center;justify-content:center;gap:5px;color:#177bb8!important;font-size:10px!important;margin:9px 0 4px!important;cursor:pointer}.photo-upload-button svg{width:13px;height:13px;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.item-photo-field small{display:block;font-size:8px;color:#96a5b2;line-height:1.4}.visually-hidden-file{position:absolute;width:1px;height:1px;opacity:0;overflow:hidden;clip:rect(0,0,0,0)}.item-fields-main .field{margin-bottom:13px}.item-fields-main .field:last-child{margin-bottom:0}.item-fields-main textarea{min-height:66px}.compact-fields{margin-bottom:0}.quantity-input,.price-input{position:relative}.quantity-input input{padding-right:42px}.quantity-input>span{position:absolute;right:12px;top:12px;color:#8b9cab;font-size:11px}.price-input input{padding-right:54px}.price-input>span{position:absolute;right:12px;top:12px;color:#6f8497;font-size:10px;font-weight:650}.add-item-wide{display:flex;align-items:center;justify-content:center;gap:7px;width:100%;margin-top:16px;padding:12px;border:1px dashed #c8d8e5;border-radius:8px;background:#fbfdff;color:#377ca5;font-size:11px;font-weight:650}.add-item-wide:hover{background:#f0f8fd;border-color:#73b5dc}.add-item-wide svg{width:15px;height:15px;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}.add-item-wide span{margin-left:auto;color:#98a8b5;font-size:9px;font-weight:500}.editor-aside{position:sticky;top:20px;display:flex;flex-direction:column;gap:18px}.aside-section{padding:21px}.aside-section h2{font-size:14px;margin-bottom:18px}.aside-section .field{margin-bottom:16px}.aside-card-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:18px}.aside-card-heading h2{margin:0}.live-badge{font-size:8px;color:#27846d;background:#e9f7f1;padding:4px 6px;border-radius:5px;text-transform:uppercase;letter-spacing:.4px;font-weight:700}.aside-security{display:flex;align-items:flex-start;gap:7px;font-size:9px;line-height:1.5;color:#8a9cac;margin:13px 0 0}.aside-security svg{width:14px;height:14px;flex:none;stroke:#7b9bb2;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.calculation-lines{border-top:1px solid #e7edf2;padding-top:13px;display:flex;flex-direction:column;gap:10px}.calculation-lines>div{display:flex;justify-content:space-between;gap:10px;font-size:11px;color:#73879a}.calculation-lines strong{font-weight:550;color:#415d75}.discount-line,.discount-line strong{color:#228269!important}.grand-total{display:flex;justify-content:space-between;align-items:flex-end;gap:10px;border-top:1px solid #dfe8ef;margin-top:15px;padding-top:16px}.grand-total span{font-size:12px;font-weight:650}.grand-total strong{font-size:21px;letter-spacing:-.5px;color:#0b5f94;text-align:right}.calculation-note{font-size:9px;color:#97a6b3;line-height:1.5;margin:12px 0 0}
/* Detail */
.detail-title-row{display:flex;align-items:center;gap:13px}.detail-title-row h1{max-width:700px}.share-panel{display:flex;align-items:center;justify-content:space-between;gap:25px;padding:24px 26px;margin-bottom:22px;background:linear-gradient(115deg,#fff 60%,#f3f9fd);border-color:#d8e7f1}.share-main{display:flex;align-items:flex-start;gap:16px;min-width:0;flex:1}.share-icon{width:44px;height:44px;border-radius:12px;display:grid;place-items:center;background:#e3f2fb;color:#0878bb;flex:none}.share-icon svg{width:23px;height:23px;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.share-content{min-width:0;flex:1}.share-content h2{font-size:17px;margin:4px 0 4px}.share-content>p{font-size:11px;color:var(--muted);margin-bottom:14px}.copy-field{display:flex;max-width:690px;gap:8px}.copy-field input{height:42px;min-width:0;flex:1;border:1px solid #d3e1eb;border-radius:8px;background:#fff;padding:9px 12px;font-size:11px;color:#3d6685;outline:0}.copy-field input:focus{border-color:#75b8df;box-shadow:0 0 0 3px #e7f3fa}.share-meta{display:flex;flex-wrap:wrap;gap:16px;margin-top:13px}.share-meta>span{display:flex;align-items:center;gap:5px;color:#748b9f;font-size:9px}.share-meta svg{width:13px;height:13px;stroke:#819eb4;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.qr-block{text-align:center;flex:none;padding-left:22px;border-left:1px solid #e0eaf1}.qr-frame{padding:7px;border:1px solid #e1e9ef;border-radius:9px;background:#fff}.qr-frame img{display:block;width:118px;height:118px}.qr-block>span{display:block;font-size:8px;color:#8b9cab;margin-top:7px}.detail-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:22px;align-items:start}.detail-main,.detail-aside{display:flex;flex-direction:column;gap:20px;min-width:0}.detail-section{padding:23px}.detail-section>h2{font-size:15px;margin-bottom:10px}.detail-section-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:15px}.detail-section-heading h2{font-size:15px;margin:0}.detail-section-heading>span{font-size:10px;color:#8497a9}.detail-items{display:flex;flex-direction:column}.detail-item{display:flex;align-items:center;gap:13px;padding:14px 0;border-bottom:1px solid #e9eef3}.detail-item:first-child{padding-top:3px}.detail-item-image{width:61px;height:61px;object-fit:cover;border-radius:9px;background:#edf4f9;border:1px solid #e5ecf2;flex:none}.detail-item-content{min-width:0;flex:1}.detail-item-content h3{font-size:12px;margin:0 0 4px}.detail-item-content p{font-size:10px;color:#7b8fa2;line-height:1.45;margin:0 0 5px;white-space:pre-line}.detail-item-content>span{font-size:9px;color:#8d9dad}.detail-item>strong{font-size:12px;white-space:nowrap}.detail-totals{padding-top:14px;display:flex;flex-direction:column;gap:9px}.detail-totals>div{display:flex;justify-content:space-between;gap:15px;font-size:11px;color:#75899c}.detail-totals strong{color:#38546e;font-weight:600}.detail-totals .detail-grand-total{border-top:1px solid #e1e9ef;padding-top:14px;margin-top:3px;align-items:center;color:#203e58;font-weight:700;font-size:13px}.detail-totals .detail-grand-total strong{font-size:20px;color:#0b6298;letter-spacing:-.4px}.info-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 25px;margin:0}.info-grid>div{min-width:0}.info-wide{grid-column:1/-1}.info-grid dt{font-size:9px;text-transform:uppercase;letter-spacing:.55px;color:#8c9eae;margin-bottom:5px;font-weight:700}.info-grid dd{margin:0;font-size:12px;color:#36526b;line-height:1.55}.status-actions{display:flex;flex-direction:column;gap:8px;margin-top:16px}.aside-footnote{font-size:9px;line-height:1.55;color:#96a4b1;margin:13px 0 0}.danger-zone hr{border:0;border-top:1px solid #e7edf2;margin:18px 0}.danger-zone form+form{margin-top:0}.activity-details dl{margin:0;display:flex;flex-direction:column;gap:11px}.activity-details dl>div{display:flex;justify-content:space-between;gap:10px;font-size:9px}.activity-details dt{color:#8a9cab}.activity-details dd{margin:0;text-align:right;color:#526c83}
/* Security */
.security-layout{display:grid;grid-template-columns:minmax(0,650px) minmax(260px,360px);gap:22px;align-items:start}.security-form{max-width:480px}.security-info{padding:27px}.security-info-icon{width:55px;height:55px;display:grid;place-items:center;background:#e9f6f1;border-radius:14px;color:#21866c;margin-bottom:18px}.security-info-icon svg{width:35px;height:35px;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.security-info h2{font-size:17px}.security-info ul{list-style:none;padding:0;margin:20px 0 0;display:flex;flex-direction:column;gap:18px}.security-info li{position:relative;padding-left:17px}.security-info li:before{content:"";position:absolute;left:0;top:5px;width:6px;height:6px;border-radius:50%;background:#50ad93}.security-info strong{display:block;font-size:12px;margin-bottom:3px}.security-info span{display:block;font-size:10px;color:#8296a9;line-height:1.5}
/* Login */
.login-body{background:#fff}.login-layout{min-height:100vh;display:grid;grid-template-columns:minmax(400px,1.02fr) minmax(440px,.98fr)}.login-visual{position:relative;overflow:hidden;background:linear-gradient(145deg,#082b4d 0%,#064c7b 70%,#086b9e 120%);color:#fff;padding:45px 55px}.login-visual-inner{height:100%;position:relative;z-index:2;display:flex;flex-direction:column;max-width:580px;margin:auto}.login-message{margin:auto 0}.login-message h1{font-size:43px;line-height:1.13;letter-spacing:-1.5px;margin:13px 0 20px;font-weight:700}.login-message>p{max-width:480px;color:#b4cee2;font-size:16px;line-height:1.65;margin:0}.login-feature-card{display:flex;gap:14px;align-items:center;padding:18px;border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.07);backdrop-filter:blur(10px);border-radius:13px;max-width:480px}.feature-icon{width:40px;height:40px;border-radius:10px;background:rgba(103,220,183,.14);display:grid;place-items:center;color:#7be0bf;flex:none}.feature-icon svg{width:24px;height:24px;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.login-feature-card strong{display:block;font-size:13px;margin-bottom:4px}.login-feature-card span{display:block;font-size:11px;line-height:1.5;color:#a9c6dc}.login-copyright{font-size:10px;color:#789eba;margin:28px 0 0}.visual-orb{position:absolute;border-radius:50%;border:1px solid rgba(255,255,255,.08)}.orb-one{width:520px;height:520px;right:-280px;top:-200px;box-shadow:0 0 0 80px rgba(255,255,255,.015),0 0 0 160px rgba(255,255,255,.01)}.orb-two{width:330px;height:330px;left:-200px;bottom:-170px;box-shadow:0 0 0 70px rgba(255,255,255,.018)}.login-form-side{display:grid;place-items:center;padding:40px;background:#fff}.login-form-wrap{width:100%;max-width:390px}.login-form-wrap h2{font-size:28px;letter-spacing:-.7px;margin:8px 0 9px;color:#112f4e}.login-form-wrap>.muted{font-size:13px;margin-bottom:28px}.login-form{margin-top:23px}.login-form .field{margin-bottom:18px}.input-with-icon{position:relative}.input-with-icon>svg{position:absolute;left:13px;top:13px;width:18px;height:18px;stroke:#8ca0b1;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.input-with-icon input{height:46px;padding-left:42px;padding-right:42px}.password-toggle{position:absolute;right:6px;top:5px;width:36px;height:36px;display:grid;place-items:center;background:transparent;border:0;color:#849bad;border-radius:6px}.password-toggle:hover{background:#f0f5f9;color:#367da9}.password-toggle svg{width:18px;height:18px;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}.login-submit{min-height:46px;margin-top:6px}.login-submit svg{margin-left:auto}.login-help{display:flex;align-items:flex-start;justify-content:center;gap:7px;color:#94a3b1;font-size:10px;line-height:1.5;margin-top:25px}.login-help svg{width:14px;height:14px;flex:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round}.login-mobile-logo{display:none}.standalone-body{min-height:100vh;display:grid;place-items:center;padding:25px;background:#f2f7fb}.standalone-card{width:100%;max-width:510px;text-align:center;background:#fff;border:1px solid #e0eaf2;border-radius:18px;padding:38px;box-shadow:0 10px 35px rgba(19,49,77,.07)}.standalone-card .brand{margin-bottom:25px}.error-code{font-size:65px;font-weight:750;color:#d7e7f2;line-height:1}.standalone-card h1{font-size:24px;margin:12px 0 10px}.standalone-card p{color:var(--muted);line-height:1.6;font-size:13px;margin-bottom:24px}.toast{position:fixed;left:50%;bottom:25px;transform:translate(-50%,20px);background:#102e4b;color:#fff;padding:11px 18px;border-radius:8px;box-shadow:0 8px 25px rgba(0,0,0,.2);font-size:12px;opacity:0;pointer-events:none;transition:.2s;z-index:100}.toast.show{opacity:1;transform:translate(-50%,0)}
@media(min-width:1500px){.admin-content{padding-left:45px;padding-right:45px}.editor-layout{grid-template-columns:minmax(0,1fr) 345px}.form-section{padding:28px}.line-item-grid{grid-template-columns:150px 1fr}.page-title-link{font-size:13px}.pages-table td{font-size:13px}}
@media(max-width:1200px){.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.panel-toolbar{align-items:flex-start;flex-direction:column}.filters{width:100%;flex-wrap:wrap}.search-field{flex:1}.search-field input{width:100%}.editor-layout{grid-template-columns:minmax(0,1fr) 280px}.detail-layout{grid-template-columns:minmax(0,1fr) 270px}.share-panel{padding:20px}.qr-block{display:none}.login-visual{padding:38px}.login-message h1{font-size:36px}.admin-content{padding:30px 25px 45px}}
@media(max-width:980px){.sidebar{transform:translateX(-100%);transition:transform .22s ease}.sidebar.open{transform:translateX(0)}.sidebar-overlay.open{display:block;position:fixed;inset:0;background:rgba(4,20,35,.5);z-index:35;backdrop-filter:blur(2px)}.admin-main{margin-left:0;width:100%}.mobile-topbar{height:64px;background:#fff;border-bottom:1px solid #e1e9f0;display:flex;align-items:center;justify-content:space-between;padding:0 24px;position:sticky;top:0;z-index:30}.mobile-topbar .brand-mark{width:31px;height:31px}.mobile-topbar .brand-word{font-size:20px}.icon-button{width:38px;height:38px;display:grid;place-items:center;border:1px solid #e0e8ef;border-radius:8px;background:#fff;color:#42617d}.icon-button svg{width:20px;height:20px;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}.mobile-avatar{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;background:#e6f2fa;color:#1678b6;font-size:12px;font-weight:700}.admin-content{padding-top:28px}.editor-layout{grid-template-columns:minmax(0,1fr) 300px}.detail-layout{grid-template-columns:1fr}.detail-aside{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}.activity-details{display:none}.login-layout{grid-template-columns:1fr}.login-visual{display:none}.login-form-side{min-height:100vh}.login-mobile-logo{display:block;margin-bottom:40px}}
@media(max-width:760px){.page-heading{align-items:flex-start;flex-direction:column}.page-heading>.button{width:100%}.heading-actions{width:100%}.heading-actions .button{flex:1}.editor-layout{display:flex;flex-direction:column}.editor-main,.editor-aside{width:100%}.editor-aside{position:static;flex-direction:column-reverse}.form-section{padding:20px}.section-heading-actions{flex-direction:column}.section-heading-actions>.button{width:100%}.detail-title-row{align-items:flex-start;flex-direction:column;gap:5px}.share-main{gap:12px}.share-icon{display:none}.copy-field{flex-direction:column}.copy-field .button{width:100%}.security-layout{grid-template-columns:1fr}.security-info{order:-1}.login-form-side{padding:30px}.login-form-wrap{max-width:420px}.admin-footer{padding:18px 24px}.detail-aside{grid-template-columns:1fr}.activity-details{display:block}.share-meta{gap:10px}.stats-grid{gap:12px}.stat-card{padding:16px}.line-item-grid{grid-template-columns:110px 1fr}.page-heading h1{font-size:26px}}
@media(max-width:560px){html{font-size:14px}.admin-content{padding:23px 15px 35px}.mobile-topbar{padding:0 15px}.stats-grid{grid-template-columns:1fr 1fr;gap:9px}.stat-card{gap:9px;padding:13px 11px;align-items:flex-start}.stat-icon{width:32px;height:32px;border-radius:8px}.stat-icon svg{width:17px;height:17px}.stat-card strong{font-size:22px}.stat-card small{display:none}.stat-card span{font-size:9px}.panel-toolbar{padding:17px}.filters{display:grid;grid-template-columns:1fr 1fr}.search-field{grid-column:1/-1}.filters select{width:100%}.filter-reset{display:none}.pages-table th:nth-child(2),.pages-table td:nth-child(2),.pages-table th:nth-child(5),.pages-table td:nth-child(5),.pages-table th:nth-child(6),.pages-table td:nth-child(6){display:none}.page-cell{max-width:210px}.page-title-link{max-width:160px}.pages-table td,.pages-table th{padding:12px 9px}.pages-table th:first-child,.pages-table td:first-child{padding-left:13px}.form-section{padding:17px}.section-heading{gap:9px}.section-heading p{font-size:11px}.two-cols,.kind-switch{grid-template-columns:1fr}.kind-switch{gap:8px}.line-item-grid{grid-template-columns:1fr}.item-photo-field{display:grid;grid-template-columns:80px 1fr;grid-template-rows:auto auto;align-items:center;text-align:left;column-gap:12px}.item-image-preview{grid-row:1/3;width:80px}.photo-upload-button{justify-content:flex-start;margin:0 0 4px!important}.item-photo-field small{font-size:8px}.line-item-heading{padding:11px}.line-item-grid{padding:13px}.add-item-wide span{display:none}.aside-section{padding:18px}.share-panel{padding:18px}.share-content h2{font-size:15px}.detail-section{padding:18px}.info-grid{grid-template-columns:1fr}.info-wide{grid-column:auto}.detail-item{align-items:flex-start;flex-wrap:wrap}.detail-item-image{width:50px;height:50px}.detail-item>strong{margin-left:63px;margin-top:-15px}.detail-item-content{min-width:160px}.login-form-side{padding:24px}.login-mobile-logo{margin-bottom:30px}.login-form-wrap h2{font-size:25px}.standalone-card{padding:28px 20px}.admin-footer{font-size:9px;padding:16px 15px}.admin-footer span:last-child{text-align:right}.page-heading{margin-bottom:21px}.form-page-heading .heading-actions{display:grid;grid-template-columns:1fr 1fr}.detail-heading .heading-actions{display:grid;grid-template-columns:1fr 1fr}.detail-heading .button{padding:9px;font-size:11px}.detail-title-row h1{font-size:24px}.toast{width:calc(100% - 30px);text-align:center}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
