/* Original dashboard and V4 interaction styles, loaded before V5 design tokens. */
/* InvoiceSafe.org V4: public-facing dashboard, separate from the document paper. */
body.is-home{background:#f8f9f6;}
body.is-home .topbar,body.is-home .workspace,body.is-home .preview-tool-float,body.is-home .preview-size-panel{display:none!important}
body:not(.is-home) #is-dashboard{display:none!important}
#is-dashboard,#is-dashboard button,#is-dashboard input,#is-dashboard select,#is-actions,#is-actions button{font-family:'Poppins','Avenir Next','Century Gothic',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif!important;letter-spacing:normal}
#is-dashboard{min-height:100vh;color:#273834;background:#f8f9f6;font-size:14px}
#is-dashboard button{cursor:pointer}
.is-top{height:83px;background:rgba(255,255,255,.91);border-bottom:1px solid #e8ebe6;display:flex;align-items:center;justify-content:space-between;padding:0 max(36px,calc((100vw - 1250px)/2));gap:28px;}
.is-brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:#172e2b;white-space:nowrap}
.is-brand-icon{width:37px;height:37px;border-radius:11px;background:#1e6557;display:grid;place-items:center;color:white;flex:none}
.is-brand-icon svg{width:22px;height:22px}
.is-brand-type{font-weight:650;font-size:21px;letter-spacing:-.06em}.is-brand-type b{font-weight:650;color:#23665c}.is-brand-type small{font-size:13px;font-weight:500;color:#91a19a;letter-spacing:-.025em}
.is-top-center{display:flex;gap:30px;align-items:center}.is-link{border:none;background:transparent;color:#798681;padding:12px 0;font-weight:500;font-size:12px;position:relative}
.is-link.active{color:#18372e;font-weight:600}.is-link.active:after{content:"";position:absolute;height:2px;left:0;right:0;bottom:-24px;background:#246f60}
.is-link:hover{color:#1e6557}
.is-top-right{display:flex;align-items:center;gap:18px}
.is-storage{display:flex;align-items:center;gap:8px;white-space:nowrap;color:#607d73;font-size:11px;font-weight:500}.is-storage-dot{width:7px;height:7px;background:#4b977d;border-radius:100%}
.is-btn{display:inline-flex;align-items:center;justify-content:center;gap:9px;border:1px solid #dce5dc;border-radius:9px;background:white;color:#253f35;padding:12px 16px;font-size:12px;font-weight:600;transition:all .18s;line-height:1.2;min-height:42px}
.is-btn:hover{border-color:#9eb9ac;background:#fbfdfb}.is-btn:focus-visible,.is-link:focus-visible,.is-doc-button:focus-visible,.is-new-card:focus-visible,.is-filter:focus-visible{outline:3px solid #92bea9;outline-offset:3px}
.is-btn.is-primary{background:#1c6555;color:white;border-color:#1c6555;box-shadow:0 4px 11px rgba(28,101,85,.11)}
.is-btn.is-primary:hover{background:#124d40;border-color:#124d40;transform:translateY(-1px)}
.is-btn svg{width:16px;height:16px;stroke-width:1.9}
.is-shell{max-width:1250px;margin:auto;padding:0 0 70px}
.is-hero{display:flex;justify-content:space-between;gap:35px;align-items:flex-end;margin:63px 0 44px}
.is-eyebrow{display:flex;align-items:center;gap:10px;color:#498276;font-size:11px;font-weight:600;letter-spacing:.12em;text-transform:uppercase;margin-bottom:16px}
.is-eyebrow:before{content:"";width:20px;height:1px;background:#79a79b}
.is-hero h1{font-size:clamp(32px,3.4vw,51px);font-weight:600;letter-spacing:-.068em;line-height:1.23;color:#172c26;margin:0 0 12px}
.is-hero p{color:#829087;margin:0;font-size:13px;line-height:1.8;max-width:570px}
.is-summary{display:flex;gap:24px;align-items:center;padding:0 0 7px}
.is-summary-number{font-size:31px;line-height:1;letter-spacing:-.07em;color:#1b4338;font-weight:600}
.is-summary-meta{color:#7a8a81;font-size:11px;line-height:1.7}
.is-summary-rule{height:34px;width:1px;background:#dde6dc}
.is-section{border-top:1px solid #e4e8e2;padding-top:27px}
.is-section-top{display:flex;justify-content:space-between;align-items:center;gap:25px;margin-bottom:24px}
.is-section-name h2{font-size:18px;letter-spacing:-.035em;font-weight:600;color:#1d342c;margin:0 0 4px}
.is-section-name p{font-size:11px;color:#8b978d;margin:0}
.is-controls{display:flex;gap:10px;align-items:center}
.is-search{position:relative;display:flex;align-items:center}
.is-search svg{width:16px;height:16px;position:absolute;left:14px;color:#9ba89f;stroke-width:2}
.is-search input{background:#fff;border:1px solid #e0e7de;border-radius:9px;min-height:41px;width:238px;padding:0 12px 0 39px;font-size:11px;color:#26483b;outline:none}
.is-search input:focus{border-color:#86ad9c;box-shadow:0 0 0 3px #e9f4ed}.is-search input::placeholder{color:#a3b0a6}
.is-controls select{background:white;border:1px solid #e0e7de;color:#647c70;min-height:41px;padding:0 28px 0 12px;border-radius:9px;font-size:11px;outline:none}
.is-filters{display:flex;align-items:center;gap:7px;margin-bottom:26px}
.is-filter{padding:8px 15px;background:none;border:1px solid transparent;border-radius:7px;color:#87958a;font-size:11px;font-weight:500}
.is-filter.selected{background:#e9f0e9;border-color:#d8e6dc;color:#2a6653;font-weight:600}.is-filter:hover{color:#235f4d}
.is-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:22px;align-items:stretch}
.is-document{min-width:0}
.is-doc-button,.is-new-card{width:100%;border:1px solid #e4eae2;background:#fff;border-radius:12px;padding:0;overflow:hidden;display:flex;flex-direction:column;text-align:left;box-shadow:0 5px 19px rgba(24,59,37,.028);transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease}
.is-doc-button:hover,.is-new-card:hover{transform:translateY(-5px);border-color:#a8c9b5;box-shadow:0 15px 34px rgba(24,59,37,.095)}
.is-preview{height:290px;padding:25px 38px 0;background:#f2f5f0;position:relative;overflow:hidden;display:flex;justify-content:center;align-items:flex-start;border-bottom:1px solid #e6ebe4}
.is-mini-paper{flex:none;width:206px;min-height:278px;background:white;box-shadow:0 4px 18px #2a4b3712;border:1px solid #edf0ee;padding:24px 19px;color:#25332f;font-family:Arial,sans-serif!important;position:relative}
.is-mini-paper *{font-family:Arial,sans-serif!important}
.is-mini-header{display:flex;justify-content:space-between;align-items:flex-start;gap:5px;border-bottom:1px solid #2b4439;padding-bottom:10px}
.is-mini-sender{font-size:6.4px;font-weight:800;max-width:87px;line-height:1.35}.is-mini-title{text-align:right;font-size:10.5px;letter-spacing:.1em;font-weight:800;color:#233f32}
.is-mini-num{text-align:right;font-size:5.6px;color:#a0a7a2;line-height:2.1;white-space:nowrap}
.is-mini-bill{display:flex;gap:8px;justify-content:space-between;margin:18px 0 20px;min-height:31px}
.is-mini-label{font-size:5px;color:#6c9d87;letter-spacing:.1em;font-weight:bold}.is-mini-client{font-size:7px;font-weight:bold;margin-top:5px;color:#26372e;max-width:90px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.is-mini-meta{font-size:5.8px;color:#64766c;text-align:right;line-height:1.7}
.is-mini-line{height:1px;background:#cfdad2;margin:7px 0 10px}
.is-mini-row{display:flex;justify-content:space-between;align-items:center;gap:9px;margin-bottom:10px;font-size:5.8px;color:#41564b}
.is-mini-row b{font-size:6px;color:#263a31;white-space:nowrap}
.is-mini-row .desc{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:104px}
.is-mini-total{display:flex;justify-content:space-between;border-top:1px solid #91ada0;font-size:7px;font-weight:800;padding-top:9px;margin-top:16px;color:#1e493b}
.is-mini-footer{position:absolute;left:19px;right:19px;bottom:13px;border-top:1px solid #e6ebe6;padding-top:8px;font-size:5px;text-align:center;color:#a0aca4}
.is-card-hover{position:absolute;inset:auto 15px 16px;z-index:1;border-radius:8px;background:#1d6756;color:white;display:flex;align-items:center;justify-content:center;gap:8px;padding:11px;font-size:11px;font-weight:600;opacity:0;transform:translateY(8px);transition:opacity .2s,transform .2s;box-shadow:0 9px 20px #235b4733}
.is-doc-button:hover .is-card-hover,.is-doc-button:focus-visible .is-card-hover{opacity:1;transform:none}
.is-card-info{padding:18px 19px 20px;min-height:114px;display:flex;flex-direction:column;justify-content:center}
.is-card-top{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:9px;color:#8b9a8e;font-size:10px}
.is-kind{display:flex;align-items:center;gap:7px;font-size:10px;color:#648575;font-weight:500}.is-kind:before{content:"";width:7px;height:7px;border-radius:50%;background:#80a997}.is-kind.painting:before{background:#c3a27d}
.is-example-label{background:#f3f5ef;color:#8a9885;border-radius:5px;padding:3px 6px;font-size:9px}
.is-card-info h3{font-size:13px;font-weight:600;color:#23382d;letter-spacing:-.035em;margin:0 0 5px;max-width:100%;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}
.is-card-info p{font-size:10px;color:#97a298;margin:0;display:flex;align-items:center;justify-content:space-between;gap:10px}
.is-card-info p b{font-size:10px;color:#516b5c;font-weight:600}
.is-new-card{background:transparent;border:1.5px dashed #bfcec2;box-shadow:none!important;text-align:center}
.is-new-preview{height:290px;width:100%;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:19px;border-bottom:1px dashed #cfdacf;background:repeating-linear-gradient(135deg,transparent 0px,transparent 11px,#f4f7f2 12px,#f4f7f2 13px)}
.is-plus{width:72px;height:72px;border-radius:22px;border:1.5px dashed #acc7b5;display:grid;place-items:center;color:#397863;background:#f8fbf7;transition:all .25s}
.is-plus svg{width:28px;height:28px;stroke-width:1.5;transition:transform .22s}
.is-new-card:hover .is-plus{background:#1d6554;border-color:#1d6554;color:white;border-style:solid;box-shadow:0 9px 23px #286b4b20}.is-new-card:hover .is-plus svg{transform:rotate(90deg)}
.is-new-preview span{font-size:11px;color:#889b8d;font-weight:500}
.is-new-info{height:114px;padding:20px;display:flex;flex-direction:column;justify-content:center;text-align:center}
.is-new-info strong{font-size:13px;font-weight:600;color:#2e5747}.is-new-info small{font-size:10px;color:#91a094;margin-top:5px}
.is-empty{grid-column:1/-1;background:#fff;border:1px solid #e1e8df;border-radius:12px;padding:34px;text-align:center;color:#789083;font-size:12px}
.is-foot-note{margin:34px 0 0;padding:17px 0 0;border-top:1px solid #e7ece4;display:flex;justify-content:space-between;align-items:center;gap:18px;color:#91a195;font-size:11px}
.is-foot-note strong{color:#648477;font-weight:600}
.is-foot-note button{border:none;background:none;color:#347c63;font-size:11px;font-weight:600;text-decoration:underline;text-underline-offset:4px}
.is-storage-notice{background:#eaf2eb;border:1px solid #dce9dd;color:#547561;border-radius:9px;padding:12px 16px;margin:-4px 0 24px;font-size:11px;line-height:1.7;display:flex;align-items:center;gap:13px}
.is-storage-notice[hidden]{display:none!important}.is-storage-notice strong{color:#2e654d}.is-storage-notice svg{flex:none;width:18px;height:18px}
.is-storage-notice button{border:0;background:none;color:#367a60;font-weight:600;text-decoration:underline;margin-left:auto;white-space:nowrap;font-size:11px}
#is-actions{position:fixed;border:1px solid #e3eae1;border-radius:16px;padding:29px;width:min(430px,calc(100vw - 30px));background:#fff;box-shadow:0 28px 90px rgba(24,42,27,.24);color:#2d4034;max-height:min(92dvh,700px);overflow:auto}
#is-actions::backdrop{background:rgba(21,40,29,.48);backdrop-filter:blur(3px)}
.is-dialog-close{position:absolute;right:16px;top:12px;border:0;background:transparent;color:#899b90;font-size:24px;cursor:pointer;width:32px;height:32px;border-radius:7px}
.is-dialog-close:hover{background:#f2f5f1}
.is-dialog-label{font-size:10px;font-weight:600;letter-spacing:.13em;color:#6e9981;text-transform:uppercase;margin:0 0 12px}
.is-dialog-title{font-size:23px;font-weight:600;letter-spacing:-.05em;line-height:1.2;margin:0 0 9px;color:#253d30;overflow-wrap:anywhere}
.is-dialog-subtitle{font-size:11px;color:#90a092;line-height:1.8;margin:0 0 25px}
.is-dialog-main{display:flex;flex-direction:column;gap:10px;border-bottom:1px solid #e8eee6;padding-bottom:21px}
#is-actions .is-dialog-main .is-btn{width:100%;min-height:47px}
.is-dialog-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px;padding:18px 0 15px}
#is-actions .is-dialog-actions .is-btn{min-height:45px;font-size:11px;padding:8px}
.is-dialog-secondary{display:flex;align-items:center;justify-content:space-between;gap:15px;padding-top:5px}
.is-dialog-text{border:none;background:none;color:#728a79;font-weight:500;font-size:11px;padding:8px 2px;text-decoration:underline;text-underline-offset:3px}
.is-dialog-text.danger{color:#b27065}
.is-dialog-footer{margin:15px 0 0;color:#9ba79e;font-size:10px;line-height:1.55}
body:not(.is-home) .topbar{height:auto;min-height:74px;flex-wrap:wrap;gap:8px;padding:12px 19px;font-family:'Poppins','Avenir Next','Century Gothic','Segoe UI',sans-serif!important}
body:not(.is-home) .topbar .brand strong{font-family:'Poppins','Avenir Next','Century Gothic','Segoe UI',sans-serif!important;font-size:15px;font-weight:600;letter-spacing:-.035em}
body:not(.is-home) .topbar .brand small{font-family:'Poppins','Avenir Next','Century Gothic','Segoe UI',sans-serif!important;font-size:10px}
body:not(.is-home) .topbar .toolbar{gap:6px;flex-wrap:wrap;justify-content:flex-end}
body:not(.is-home) .topbar .toolbar .btn{font-family:'Poppins','Avenir Next','Century Gothic','Segoe UI',sans-serif!important;font-size:11px;min-height:35px;padding:0 10px}
.is-back{margin-right:11px;flex:none;background:#333;border:1px solid #555;color:white;border-radius:7px;padding:8px 11px;font-size:11px;font-family:'Poppins','Avenir Next','Century Gothic','Segoe UI',sans-serif;cursor:pointer}
.is-back:hover{background:#4a4a4a}
@media(max-width:1320px){.is-top{padding:0 38px}.is-shell{margin:0 38px}}
@media(max-width:1050px){.is-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.is-top-center{gap:18px}.is-storage{display:none}.is-hero{margin-top:43px}}
@media(max-width:750px){.is-top{height:70px;padding:0 20px}.is-top-center{display:none}.is-top-right .is-btn{padding:11px 12px}.is-shell{margin:0 20px}.is-hero{display:block;margin:39px 0 34px}.is-hero h1{font-size:36px}.is-summary{margin-top:26px}.is-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.is-preview,.is-new-preview{height:251px;padding:20px 12px 0}.is-new-preview{padding:0}.is-mini-paper{transform:scale(.86);transform-origin:top center}.is-new-info,.is-card-info{height:105px}.is-section-top{align-items:stretch;flex-direction:column;gap:16px}.is-controls{width:100%}.is-search{flex:1}.is-search input{width:100%}.is-foot-note{align-items:flex-start;flex-direction:column}.is-storage-notice{align-items:flex-start;flex-wrap:wrap}.is-storage-notice button{margin-left:0}}
@media(max-width:470px){.is-brand-type{font-size:19px}.is-top-right .is-btn svg{display:none}.is-top-right .is-btn{font-size:10px}.is-grid{grid-template-columns:1fr 1fr;gap:11px}.is-preview,.is-new-preview{height:200px;padding-top:13px}.is-new-preview{padding:0}.is-mini-paper{transform:scale(.69)}.is-card-info{min-height:104px;padding:13px 12px}.is-card-info h3{font-size:11px}.is-card-info p{flex-wrap:wrap;font-size:9px}.is-new-preview span{font-size:10px}.is-plus{width:59px;height:59px;border-radius:18px}.is-hero h1{font-size:31px}.is-summary{gap:17px}.is-controls select{max-width:124px}.is-filter{padding:8px 10px}.is-card-hover{display:none}}
@media(prefers-reduced-motion:reduce){.is-btn,.is-doc-button,.is-new-card,.is-plus,.is-plus svg,.is-card-hover{transition:none!important}}
@media print{#is-dashboard,#is-actions{display:none!important}body.is-home .workspace,body.is-home .topbar{display:initial!important}}


/* InvoiceSafe v4.1 — unified dark product surface. The exported invoice paper stays white. */
:root{--is-deep:#334294;--is-blue:#2f6f94;--is-cyan:#69b4d2;--is-bg:#10151e;--is-card:#1a222f;--is-edge:#303c4d;--is-text:#edf3fb;--is-muted:#94a4b9}
html,body{font-family:'Poppins','Avenir Next','Century Gothic',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}
body.is-home{background:#10151e;color:var(--is-text)}
#is-dashboard{font-family:'Poppins','Avenir Next','Century Gothic','Segoe UI',sans-serif;color:var(--is-text);background:radial-gradient(ellipse 70% 42% at 88% 0%,#202a43 0%,#141b28 49%,#10151e 100%);font-size:13px;min-height:100vh}
#is-dashboard *{font-family:'Poppins','Avenir Next','Century Gothic','Segoe UI',sans-serif}
#is-dashboard button{transition:background .15s,border-color .15s,transform .15s,color .15s}
#is-dashboard button:focus-visible,#is-dashboard input:focus-visible,#is-dashboard select:focus-visible,#is-dashboard [role="button"]:focus-visible{outline:2px solid var(--is-cyan);outline-offset:3px}
.is-top{max-width:none;height:73px;display:flex;justify-content:space-between;align-items:center;padding:0 max(28px,calc((100vw - 1360px)/2));background:rgba(17,23,34,.82);border-bottom:1px solid #283244;gap:20px;position:relative;z-index:4}
.is-brand{color:#f6f8ff;gap:11px;display:flex;align-items:center}.is-brand:hover{color:#fff}
.is-brand-icon{width:32px;height:35px;color:#81bddb;background:transparent;border-radius:0}.is-brand-icon svg{width:28px;height:28px}
.is-brand-type{font-weight:600;font-size:19px;letter-spacing:-.05em}.is-brand-domain{font-weight:400;color:#a4b3c7;letter-spacing:-.04em}
.is-top-right{gap:22px}.is-browser-label{display:flex;gap:8px;align-items:center;font-size:11px;color:#9baec4;white-space:nowrap}.is-online-dot{width:7px;height:7px;border-radius:50%;background:#73b9ce;box-shadow:0 0 0 3px #73b9ce18}
.is-settings-anchor{position:relative}.is-settings-trigger{display:grid;place-items:center;width:40px;height:40px;background:#202a3c;border:1px solid #37455b;color:#d9e7f9;border-radius:10px}.is-settings-trigger:hover{background:#293857;border-color:#5276aa}.is-settings-trigger svg{height:21px;width:21px}
.is-shell{max-width:1360px;margin:0 auto;padding:44px 28px 70px}
.is-page-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:29px}
.is-page-heading h1{font-size:clamp(31px,3.15vw,43px);letter-spacing:-.06em;font-weight:600;margin:0;color:#f4f7fd;line-height:1.25}
.is-page-heading p{color:#94a5b9;font-size:11px;margin:8px 0 0}.is-page-count{font-size:12px;display:flex;gap:6px;align-items:baseline;color:#96a9c3;margin-top:14px}.is-page-count span{font-size:20px;font-weight:600;color:#eaf3fe}
.is-controls-line{display:flex;gap:12px;align-items:center;margin-bottom:19px;justify-content:space-between}
.is-search{position:relative;display:block;max-width:350px;width:100%;}.is-search svg{position:absolute;left:15px;top:12px;height:17px;width:17px;color:#8d9caf;pointer-events:none}
.is-search input{background:#1b2432;color:#eaf1fc;border:1px solid #323e51;border-radius:9px;height:42px;min-height:42px;width:100%;padding:0 14px 0 43px;font-size:11px;box-shadow:none}.is-search input::placeholder{color:#8291a6}.is-search input:focus{border-color:#6b8bb6;background:#202d3f;box-shadow:none}
.is-sort-label{display:flex;gap:12px;align-items:center;color:#98a8bb;font-size:11px;white-space:nowrap}
.is-sort-label select{background:#1b2432;color:#e4ebf8;border:1px solid #323e51;border-radius:9px;padding:0 30px 0 13px;height:42px;font-size:11px;min-height:42px;cursor:pointer}
.is-filters{display:flex;gap:8px;margin:0 0 21px}.is-filter{font-size:11px;padding:8px 14px;border-radius:8px;background:transparent;border:1px solid transparent;color:#93a4ba;font-weight:500}.is-filter:hover{color:#e3edff;background:#202a3b}.is-filter.selected{background:#263b5b;border-color:#3c5785;color:#dceafe}
.is-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));align-items:stretch;gap:16px}
.is-document{min-width:0;position:relative;display:flex;flex-direction:column;background:#1b2431;border:1px solid #303a4c;border-radius:12px;overflow:hidden;box-shadow:0 5px 24px #05070b1c;transition:transform .18s,border-color .18s,box-shadow .18s}
.is-document:hover{transform:translateY(-3px);border-color:#527aa5;box-shadow:0 12px 34px #05081055}
.is-doc-click{display:block;cursor:pointer;min-width:0;flex:1;outline:none}
.is-preview{display:flex;align-items:center;justify-content:center;position:relative;height:225px;padding:12px 8px;background:linear-gradient(160deg,#263346,#202a38);overflow:hidden;border-bottom:1px solid #344156}
.is-real-thumb{position:relative;flex:none;width:167px;height:215px;background:#fff;box-shadow:0 6px 18px #0006;overflow:hidden;pointer-events:none;border-radius:3px}
.is-real-thumb .paper{position:absolute!important;top:0;left:0;width:816px!important;height:1056px!important;margin:0!important;transform:scale(.205)!important;transform-origin:top left!important;box-shadow:none!important;max-width:none!important;overflow:hidden!important}
.is-real-thumb .paper [data-preview-edit]{outline:0!important;cursor:inherit!important}
.is-demo-chip{position:absolute;top:12px;left:11px;color:#d2dfee;font-weight:600;border:1px solid #7891b66b;border-radius:5px;font-size:8px;letter-spacing:.07em;padding:4px 6px;background:#142033db}
.is-card-info{padding:14px 14px 10px;display:block;min-height:103px;height:auto;color:#e9f1fd}
.is-card-heading{display:flex;align-items:center;justify-content:space-between;gap:6px}.is-card-heading strong{font-size:13px;letter-spacing:-.03em;font-weight:600}
.is-locked-status{display:inline-flex;align-items:center;gap:4px;background:#592a38;color:#ffb6c1;border:1px solid #8d4a58;border-radius:5px;padding:3px 5px;font-size:9px;white-space:nowrap}.is-locked-status svg{width:11px;height:11px}
.is-card-location{color:#dae4f2;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:8px}
.is-card-meta{display:flex;justify-content:space-between;gap:8px;margin-top:7px;color:#98a8bb;font-size:9px;white-space:nowrap}
.is-doc-actions{display:flex;gap:6px;align-items:center;border-top:1px solid #303b4c;padding:9px 12px 11px;margin-top:auto;min-height:52px}
.is-doc-actions button{font-size:10px;font-weight:550;border-radius:6px;padding:6px 9px;line-height:1.1;border:1px solid #3b4b62;color:#c7d6e7;background:#263244;white-space:nowrap}
.is-doc-actions button:hover{background:#304460;border-color:#6086ad}
.is-doc-actions .is-lock-toggle{display:inline-flex;align-items:center;gap:4px;margin-left:auto;background:transparent;color:#a4b4c9;border:1px solid #3b4b62}
.is-doc-actions .is-lock-toggle svg{width:13px;height:13px}.is-doc-actions .is-lock-toggle.locked{background:#6f303f;border:1px solid #ae5261;color:#fff1f2}.is-doc-actions .is-lock-toggle.locked:hover{background:#8d384c}
.is-doc-actions .is-more-button{font-weight:700;font-size:16px;background:transparent;border-color:transparent;color:#b6c5d9;padding:3px 6px}
.is-demo-note{font-size:9px;color:#9aafc7;margin-left:auto}
.is-new-card{min-height:378px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:10px;text-align:center;border:1.5px dashed #4b8bac;background:#172534a8;cursor:pointer;box-shadow:none}
.is-new-card:hover{border-color:#80cbe8;background:#20384d;box-shadow:0 8px 30px #08192366}
.is-new-plus{display:grid;place-items:center;width:57px;height:57px;background:linear-gradient(145deg,#3479a4,#304d98);border:1px solid #5eabd4;border-radius:15px;transition:transform .2s}.is-new-card:hover .is-new-plus{transform:scale(1.08)}.is-new-plus svg{width:29px;height:29px;color:#fff}
.is-new-card strong{font-size:15px;color:#e7f1fd;font-weight:600}.is-new-card small{color:#9ebbd1;font-size:10px}
.is-example-caption{color:#71849c;font-size:10px;margin:20px 3px}.is-empty-state{font-size:12px;color:#91a9c2;margin:30px 6px}
.is-grid.is-comfortable{grid-template-columns:repeat(4,minmax(0,1fr))}.is-comfortable .is-preview{height:250px}.is-comfortable .is-real-thumb{transform:scale(1.08)}
.is-grid.is-list{display:flex;flex-direction:column;gap:10px}.is-list .is-document{min-height:116px;display:flex;flex-direction:row;align-items:stretch}.is-list .is-doc-click{display:flex;align-items:center;flex:1;min-width:0}.is-list .is-preview{height:116px;width:96px;flex:none;padding:4px}.is-list .is-real-thumb{transform:scale(.49)}.is-list .is-card-info{padding:18px;display:flex;flex-direction:column;justify-content:center;flex:1;min-height:0}.is-list .is-card-meta{justify-content:flex-start;gap:18px}.is-list .is-doc-actions{margin:0;border-top:0;min-width:198px;justify-content:flex-end;padding:12px}.is-list .is-new-card{min-height:110px;gap:8px;flex-direction:row}.is-list .is-new-plus{height:43px;width:43px}.is-list .is-new-plus svg{height:24px;width:24px}.is-list .is-new-card strong{font-size:13px}
.is-settings-panel[hidden],.is-editor-readonly[hidden]{display:none!important}
.is-settings-panel{position:absolute;right:0;top:54px;width:min(345px,calc(100vw - 26px));z-index:15;padding:19px 19px 17px;background:#202a3a;border:1px solid #41526b;border-radius:12px;color:#e9f0fc;box-shadow:0 21px 60px #050912af}
.is-panel-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.is-panel-head strong{font-size:15px;font-weight:600}
.is-quiet{border:0;background:transparent!important;color:#aebdd1;font-size:16px;padding:5px 6px;cursor:pointer}.is-quiet:hover{color:#fff}
.is-panel-group{padding:10px 0}.is-panel-label{font-size:11px;font-weight:600;color:#d1dff2;display:block;margin-bottom:9px}
.is-segment{display:flex;gap:3px;padding:3px;border:1px solid #43516a;background:#182335;border-radius:8px}.is-segment button{width:50%;background:transparent;border:0;padding:8px;color:#9daec7;font-size:11px;border-radius:5px}.is-segment button.selected{background:#344b98;color:#fff}
.is-panel-group select,.is-number-row input{width:100%;background:#172233;color:#ebf3fc;border:1px solid #45546a;border-radius:7px;min-height:36px;padding:7px 9px;font-size:11px;outline:none;color-scheme:dark}
.is-panel-check{display:flex;align-items:center;justify-content:space-between;color:#d8e5f3;font-size:11px;gap:12px}.is-panel-check input{accent-color:#3e76b3;width:17px;height:17px;cursor:pointer}
.is-panel-rule{height:1px;background:#39475e;margin:7px 0}
.is-panel-hint{font-size:10px;line-height:1.6;color:#9bafc9;margin:0 0 10px}
.is-number-row{display:flex;gap:7px}.is-number-row input{flex:1;min-width:0;font-size:12px}.is-btn-primary{background:#35479c!important;border:1px solid #536bc0!important;color:white!important;border-radius:8px;padding:9px 14px;font-size:11px;font-weight:600;cursor:pointer}.is-btn-primary:hover{background:#4059b5!important}
.is-next-note{font-size:10px;color:#9aacc4;margin:9px 0 0}.is-next-note strong{color:#80c9ea}.is-error{font-size:10px;color:#ff9da8;min-height:0;margin:6px 0 0}
.is-panel-links{display:flex;gap:9px}.is-panel-links button{background:#2c3a50;border:1px solid #435974;color:#dce8f6;border-radius:7px;font-size:10px;padding:9px 10px;flex:1}.is-panel-links button:hover{background:#354c69}
.is-modal{font-family:'Poppins','Avenir Next','Century Gothic','Segoe UI',sans-serif!important;max-width:min(460px,calc(100vw - 30px));width:100%;border:1px solid #42516c;border-radius:16px;background:#202a3a;color:#eef4fd;box-shadow:0 30px 90px #000a;padding:24px}
.is-modal::backdrop{background:rgba(4,8,15,.78);backdrop-filter:blur(5px)}.is-modal-head{display:flex;justify-content:space-between;gap:12px}.is-modal h2{font-size:21px;letter-spacing:-.04em;margin:3px 0 8px;line-height:1.3;font-weight:600}.is-modal p{color:#a2b3c9;font-size:12px;line-height:1.7}.is-modal-kicker{color:#88bad8!important;font-size:10px!important;font-weight:600;letter-spacing:.09em;margin:0}.is-modal-actions{display:flex;flex-direction:column;gap:8px;margin-top:19px}.is-modal-actions button{background:#29384c;border:1px solid #425471;color:#e3edf9;border-radius:8px;text-align:left;padding:11px 12px;font-size:12px}.is-modal-actions button:hover{background:#354964}.is-modal-actions button.danger{color:#ffabb7}.is-modal-buttons{display:flex;justify-content:flex-end;gap:8px;margin-top:20px}.is-modal-buttons button{background:#2e3d52;color:#e8f0fc;border:1px solid #4a5b74;border-radius:8px;padding:10px 14px;font-size:11px;cursor:pointer}.is-unlock-emblem{display:grid;place-items:center;background:#633a46;border:1px solid #a05265;border-radius:11px;width:42px;height:42px;font-size:22px;margin-bottom:14px}.is-modal-explainer{margin:8px 0 20px!important}.is-modal-explainer strong{color:#e7effc}
.is-number-modal{max-width:min(510px,calc(100vw - 26px))}.is-setup-icon{display:grid;place-items:center;width:43px;height:43px;background:#334a7c;color:#dcecff;border-radius:11px;margin-bottom:18px;font-size:24px;font-weight:600}.is-number-modal form label{display:block;color:#dae6f7;font-size:11px;font-weight:600;margin-bottom:8px}.is-number-modal form label span{font-size:10px;font-weight:400;color:#96a9c5}.is-number-modal input{background:#152233;border:1px solid #475c77;color:#f3f7ff;width:100%;height:46px;padding:0 14px;border-radius:8px;font-size:14px}.is-number-help{margin:7px 0 16px!important;font-size:10px!important}.is-next-preview{display:flex;justify-content:space-between;align-items:center;gap:8px;background:#162639;border:1px solid #36516f;border-radius:9px;padding:13px;color:#a8bed7;font-size:11px}.is-next-preview strong{color:#91d2f1;font-size:15px}.is-setup-submit{width:100%;height:44px;margin-top:22px;font-size:12px}
/* Harmonize the existing editor with homepage colors, never the invoice paper. */
body.is-home .is-editor-readonly{display:none!important}
body:not(.is-home){background:#10151e;color:#e7effb}
body:not(.is-home) .topbar{background:#161e2b;border-bottom:1px solid #304058}
body:not(.is-home) .topbar .brand strong{color:#f1f5ff}
body:not(.is-home) .topbar .brand small{color:#8ca7c4}
body:not(.is-home) .editor{background:#141d2b;border-right:1px solid #344156}
body:not(.is-home) .card{background:#202b3b;border-color:#35465c}
body:not(.is-home) .centre-card{background:#1b2737;border-color:#46566c}
body:not(.is-home) .field input,body:not(.is-home) .field select,body:not(.is-home) .field textarea{background:#131e2d;border-color:#455872;color:#f1f6fb}
body:not(.is-home) .btn{background:#253348;color:#dce8f8;border-color:#435671}
body:not(.is-home) .btn.primary{background:#344699;border-color:#5366b3}
body:not(.is-home) .btn.accent{background:#2f6f94;border-color:#438ba9}
body:not(.is-home) .preview-zone{background:#192332}
body:not(.is-home) .panel-heading h1,body:not(.is-home) .card-title h2{color:#e8f0fc}
body:not(.is-home) .preview-heading h2{color:#d9e7fa}
body:not(.is-home) .page-count{background:#24334a;color:#e5edfb;border:1px solid #435876}
body:not(.is-home) .type-toggle{background:#152337}body:not(.is-home) .type-toggle button.selected{background:#32446a;color:var(--ifs-field-text)}
.is-editor-readonly{background:#562c37;color:#ffc6cd;display:flex;align-items:center;justify-content:center;gap:16px;min-height:43px;font-size:12px;font-weight:600;border-bottom:1px solid #99525c;padding:7px 16px}
.is-editor-readonly button{background:#7a3e4f;color:white;border:1px solid #b16a79;border-radius:7px;padding:7px 11px;font-size:11px}
body:not(.is-home) #is-editor-lock{border-color:#6a809f;background:#283b53}body:not(.is-home) #is-editor-lock[hidden]{display:none!important}
body:not(.is-home) .workspace{height:calc(100vh - 74px)}body:not(.is-home):has(.is-editor-readonly:not([hidden])) .workspace{height:calc(100vh - 117px)}
body:not(.is-home) .paper{background:#fff;color:#222}
@media(min-width:1400px){.is-top{padding-inline:calc((100vw - 1304px)/2)}}
@media(max-width:1250px){.is-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:960px){.is-grid,.is-grid.is-comfortable{grid-template-columns:repeat(3,minmax(0,1fr))}.is-top{padding:0 22px}.is-shell{padding:35px 22px 60px}}
@media(max-width:650px){.is-top{height:65px;padding:0 17px}.is-brand-type{font-size:16px}.is-browser-label{display:none}.is-shell{padding:28px 15px 55px}.is-page-heading h1{font-size:31px}.is-page-heading p{font-size:10px}.is-controls-line{gap:8px;align-items:stretch}.is-search{flex:1;min-width:0}.is-search input{font-size:10px;height:39px;min-height:39px}.is-sort-label{gap:4px}.is-sort-label span{display:none}.is-sort-label select{max-width:127px;font-size:10px;min-height:39px;height:39px;padding-left:6px}.is-grid,.is-grid.is-comfortable{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.is-preview{height:174px;padding:5px}.is-real-thumb{transform:scale(.73)}.is-document{border-radius:9px}.is-card-info{padding:10px 9px 7px;min-height:96px}.is-card-heading{align-items:flex-start}.is-card-heading strong{font-size:11px}.is-locked-status{font-size:8px;padding:2px 3px}.is-locked-status svg{width:10px}.is-card-location{font-size:10px}.is-card-meta{font-size:8px;display:flex;flex-wrap:wrap;gap:5px}.is-doc-actions{padding:7px 8px;gap:3px;min-height:45px}.is-doc-actions button{font-size:9px;padding:6px 6px}.is-doc-actions .is-lock-toggle{gap:3px}.is-new-card{min-height:324px}.is-new-plus{width:50px;height:50px}.is-new-card strong{font-size:13px}.is-new-card small{font-size:9px}.is-settings-panel{right:0;top:49px}.is-list .is-document{min-height:100px}.is-list .is-preview{width:72px;height:100px}.is-list .is-real-thumb{transform:scale(.39)}.is-list .is-card-info{padding:8px}.is-list .is-doc-actions{min-width:0;padding:7px 8px;flex-wrap:wrap;max-width:110px}.is-list .is-new-card{min-height:100px}.is-filter{font-size:10px;padding:7px 9px}body:not(.is-home) .workspace{height:auto!important}}
@media(max-width:390px){.is-grid,.is-grid.is-comfortable{gap:8px}.is-doc-actions .is-lock-toggle span{display:none}.is-card-heading strong{font-size:10px}.is-preview{height:160px}.is-real-thumb{transform:scale(.68)}.is-new-card{min-height:308px}}
@media print{#is-dashboard,#is-actions,#is-number-setup,#is-unlock-dialog,.is-editor-readonly{display:none!important}}


/* Version 4 interaction reliability improvements */
#is-dashboard .is-doc-click{display:block;width:100%;height:auto;border:0;border-radius:0;background:transparent;color:inherit;padding:0;margin:0;text-align:left;font:inherit;cursor:pointer;appearance:none;-webkit-appearance:none}
#is-dashboard .is-doc-click:focus-visible,#is-dashboard .is-new-card:focus-visible,#is-dashboard .is-doc-actions button:focus-visible{outline:3px solid #78c8ee;outline-offset:-3px}
#is-dashboard .is-new-card{font-family:'Poppins','Segoe UI',sans-serif!important;color:#e7f1fd;appearance:none;-webkit-appearance:none}
#is-dashboard button[disabled]{cursor:not-allowed;opacity:.55}

#is-validation-banner{position:fixed;z-index:99999;left:50%;top:80px;transform:translateX(-50%);width:min(580px,calc(100vw - 26px));display:flex;align-items:center;justify-content:space-between;gap:15px;padding:15px 17px;background:#42272f;color:#ffe9e9;border:1px solid #bf626e;border-radius:11px;box-shadow:0 14px 35px #0007;font-family:'Poppins','Segoe UI',sans-serif;font-size:12px;line-height:1.5}
#is-validation-banner[hidden]{display:none!important}
#is-validation-close{flex:none;border:0;background:#693843;color:#fff;border-radius:7px;width:29px;height:29px;cursor:pointer;font-size:20px}

/* V5.7B dashboard refinement */
.is-controls-primary{display:flex;align-items:center;gap:12px;min-width:0;flex:1}
.is-view-toggle{display:flex;align-items:center;gap:4px;padding:4px;border:1px solid #364457;background:#182332;border-radius:10px;flex:none}
.is-view-toggle button{display:inline-flex;align-items:center;gap:7px;min-height:42px;padding:0 12px;border:0;border-radius:8px;background:transparent;color:#98a8bb;font:600 11px 'Poppins','Segoe UI',sans-serif;cursor:pointer;white-space:nowrap}
.is-view-toggle button svg{width:16px;height:16px}
.is-view-toggle button:hover{background:#213145;color:#dfeaf8}
.is-view-toggle button.selected{background:#2d4770;color:#f2f7ff;box-shadow:inset 0 0 0 1px #507bb3}
.is-card-info,.is-card-heading strong,.is-card-location,.is-card-meta,.is-new-card strong,.is-new-card small{font-family:'Poppins','Segoe UI',sans-serif}
.is-card-location{font-size:12px;line-height:1.45;white-space:normal;overflow:visible;text-overflow:clip;min-height:2.9em;padding-right:2px}
.is-list .is-preview{display:flex;align-items:center;justify-content:center;padding:8px}
.is-list .is-real-thumb{transform:scale(.49);transform-origin:center center}
.is-list .is-card-location{min-height:auto}
@media(max-width:650px){.is-controls-line{justify-content:space-between;flex-wrap:wrap}.is-controls-primary{width:100%;order:1}.is-sort-label{order:2;margin-left:auto}.is-view-toggle button span{display:none}.is-view-toggle button{width:42px;justify-content:center;padding:0}}
