*{box-sizing:border-box}body{margin:0;background:#ffffff;color:#17283e;font:15px system-ui,sans-serif}aside{position:fixed;width:230px;height:100vh;background:#24113e;color:white;padding:30px 22px}aside h1{font-size:28px;letter-spacing:2px;margin:0}aside p{color:#9fb1c5;font-size:12px;margin-bottom:35px}nav a{display:block;padding:12px;color:#d1deec;text-decoration:none;border-radius:8px;margin:4px 0}nav a.active,nav a:hover{background:#432267;color:white}main{margin-left:230px;padding:40px;max-width:1400px}h1{font-size:30px;margin-top:0}h2{font-size:19px}.muted{color:#68788b}.card{background:white;border:1px solid #dde4ed;border-radius:12px;padding:24px;margin:20px 0}.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.stat{font-size:32px;font-weight:700}label{display:block;font-size:13px;font-weight:600;margin-bottom:15px}input,select,textarea{display:block;width:100%;padding:11px;border:1px solid #cad4df;border-radius:6px;font:inherit;margin-top:6px}input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),select:not([multiple]){height:44px}textarea{min-height:80px}button,.button{background:#6d3bea;border:0;color:white;border-radius:6px;padding:11px 18px;cursor:pointer;text-decoration:none;display:inline-block}table{width:100%;border-collapse:collapse}td,th{text-align:left;padding:13px 8px;border-bottom:1px solid #e7edf3}th{font-size:12px;color:#68788b}a{color:#6d3bea}.error{background:#fff0ed;color:#9b2c21;padding:14px;border-radius:8px}.auth{margin:60px auto;max-width:460px;padding:24px}.auth main{margin:0;padding:0}.two{display:grid;grid-template-columns:1fr 1fr;gap:16px}@media(max-width:760px){aside{position:static;width:auto;height:auto;padding:20px}aside p{margin-bottom:12px}nav{display:flex;flex-wrap:wrap}nav a{padding:8px}main{margin:0;padding:20px}.grid,.two{grid-template-columns:1fr}.card{overflow:auto;padding:18px}}
.preline{white-space:pre-line}.totals{text-align:right;line-height:1.9}@media print{aside,.no-print,main>h1{display:none!important}body{background:white}main{margin:0;padding:0;max-width:none}.card{border:0;margin:0;padding:0;overflow:visible}.two{grid-template-columns:1fr 1fr}.invoice-paper{font-size:12px}a{color:inherit}}

.overdue{color:#a23424;font-weight:600}.filter{display:inline-block;padding:8px 12px;border:1px solid #cad4df;border-radius:6px;text-decoration:none;margin-bottom:5px}.filter.selected{background:#6d3bea;color:white}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
.actions{text-align:right;white-space:nowrap;width:1%}.actions .button{padding:8px 16px}

.brand{display:block;max-width:186px}.brand img{display:block;width:100%;height:auto}

.item-table-wrap{overflow-x:auto}.item-table{min-width:680px}.item-table th:first-child{width:42%}.item-table input{margin:0;min-width:80px}.item-table .remove-row{background:transparent;color:#c92b2b;font-size:24px;line-height:1;padding:6px 8px}.item-table .remove-row:hover{background:#ffeded}.item-table output{white-space:nowrap;font-weight:600}.item-table th:last-child{width:36px}

.checkbox-label{display:flex;align-items:center;gap:10px}.checkbox-label input[type="checkbox"]{width:18px;height:18px;margin:0;accent-color:#6d3bea}

.logo-preview img{max-width:220px;max-height:85px}.logo-left{text-align:left}.logo-center{text-align:center}.logo-right{text-align:right}



.item-combobox{position:relative}.item-table .item-combobox input{padding-right:40px}.item-table .catalogue-toggle{position:absolute;right:1px;top:1px;height:42px;width:34px;padding:0;background:transparent;color:#17283e;border-radius:0 6px 6px 0;font-size:20px}.catalogue-menu{border:1px solid #cad4df;border-radius:6px;background:white;max-height:240px;overflow:auto;margin-top:4px}.catalogue-menu[hidden]{display:none}.item-table .catalogue-menu button{display:block;width:100%;text-align:left;white-space:normal;background:white;color:#17283e;padding:10px;border-radius:0}.item-table .catalogue-menu button:hover,.item-table .catalogue-menu button:focus{background:#f3edff}.catalogue-menu p{padding:10px;margin:0;font-size:13px}

/* Jarvis purple identity */
body{color:#281939}aside{background:linear-gradient(180deg,#28123f,#1b102d);overflow-y:auto}aside p{color:#c4b5d8}nav a{color:#e5dbef}nav a.active{background:#6139a4;box-shadow:inset 3px 0 #ffca44}nav a:hover{background:#432267}main{background:#fff}h1,h2{color:#2f164b}.card{border-color:#e9e1f0;box-shadow:0 4px 18px rgba(47,22,75,.035)}button,.button{background:#6d3bea;transition:background .15s,box-shadow .15s}button:hover,.button:hover{background:#5424c8}a{color:#6532ce}input:focus,select:focus,textarea:focus{outline:3px solid #e6d9ff;border-color:#8b5cf6}button:focus-visible,a:focus-visible{outline:3px solid #ffca44;outline-offset:3px}.grid .card:nth-child(1){border-top:4px solid #8b5cf6}.grid .card:nth-child(2){border-top:4px solid #fa5c9c}.grid .card:nth-child(3){border-top:4px solid #ffbe3d}.filter.selected{background:#6d3bea}.checkbox-label input[type="checkbox"]{accent-color:#6d3bea}
body.auth{margin:0;max-width:none;min-height:100vh;padding:40px 24px;display:grid;place-items:center;background:radial-gradient(ellipse at 95% 100%,#8242ef 0,transparent 52%),radial-gradient(ellipse at 10% 0,#432270 0,transparent 58%),#201033}.auth main{margin:0;padding:0;max-width:1080px;width:100%;background:transparent}.auth-layout{display:grid;grid-template-columns:1.1fr 1fr;min-height:610px;border-radius:28px;overflow:hidden;box-shadow:0 30px 100px #12071e66}.auth-welcome{position:relative;overflow:hidden;padding:54px 48px;background:linear-gradient(145deg,#3b205e,#5830a0);border:1px solid #ffffff1c;display:flex;flex-direction:column;justify-content:space-between}.auth-logo{display:block;width:min(100%,310px);height:auto;position:relative;z-index:1}.welcome-copy{position:relative;z-index:1;margin-top:85px;max-width:390px}.eyebrow{font-size:11px;font-weight:800;letter-spacing:2px;color:#ffc94b;margin:0 0 24px}.welcome-copy h2{color:white;font-size:clamp(40px,5vw,66px);line-height:1.04;letter-spacing:-2px;margin:0 0 26px}.welcome-copy>p:last-child{color:#e3d7f3;font-size:17px;line-height:1.65;margin:0}.welcome-ring{position:absolute;right:-95px;bottom:-110px;width:280px;height:280px;border:40px solid #ef64be77;border-radius:50%}.auth-welcome:before{content:"";position:absolute;left:-70px;top:230px;width:190px;height:190px;background:#a783f433;border-radius:48px;transform:rotate(28deg)}.auth-panel{padding:70px 48px 35px;background:#fff;display:flex;flex-direction:column;justify-content:center}.auth-heading{display:flex;align-items:center;gap:16px;margin-bottom:35px}.auth-heading h1{font-size:29px;letter-spacing:-1px;margin:0 0 7px}.auth-heading p{margin:0;line-height:1.5}.auth-monogram{display:grid;place-items:center;flex-shrink:0;width:54px;height:54px;background:linear-gradient(135deg,#9562ff,#6335e5 55%,#fb5ea9);border-radius:16px;color:white;font-size:27px;font-weight:800;box-shadow:0 8px 20px #6335e530}.auth-form label{margin-bottom:22px;color:#564361}.auth-form input:not([type="hidden"]){height:50px;border-radius:11px;border-color:#ded4e8;background:#fff}.auth-submit{display:flex;align-items:center;justify-content:space-between;width:100%;margin-top:8px;border-radius:11px;padding:15px 20px;font-weight:700;box-shadow:0 8px 20px #6335e525}.auth-footer{color:#897793;font-size:10px;letter-spacing:1.5px;margin:40px 0 0}.auth-panel .error{margin-top:0}.item-table .catalogue-toggle:hover{background:#f3edff}.item-table .catalogue-menu button:hover,.item-table .catalogue-menu button:focus{background:#f3edff}
@media(max-width:760px){body.auth{padding:20px 14px}.auth-layout{grid-template-columns:1fr;min-height:0;border-radius:22px}.auth-welcome{padding:30px}.auth-logo{width:210px}.welcome-copy{margin-top:36px;max-width:420px}.welcome-copy h2{font-size:40px;letter-spacing:-1px}.welcome-copy h2 br{display:none}.welcome-copy>p:last-child{font-size:15px}.eyebrow{margin-bottom:14px}.auth-panel{padding:35px 28px}.auth-heading{margin-bottom:28px}.auth-footer{margin-top:28px}}@media(prefers-reduced-motion:reduce){button,.button{transition:none}}

.auth .auth-form input:not([type="hidden"]){height:50px}.payment-auth main{max-width:560px}.payment-auth main>h1{color:#fff}

.dashboard-stats{grid-template-columns:repeat(4,minmax(0,1fr))}.dashboard-stats .stat{font-size:clamp(24px,2.5vw,32px);overflow-wrap:anywhere}.dashboard-stats .card:nth-child(4){border-top:4px solid #fb923c}@media(max-width:1100px){.dashboard-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:760px){.dashboard-stats{grid-template-columns:1fr}}

th .table-sort{display:inline-flex;align-items:center;gap:7px;background:transparent;color:inherit;font:inherit;font-weight:700;text-align:left;padding:0;border-radius:3px;box-shadow:none}th .table-sort:hover{background:transparent;color:#6532ce}.sort-arrow{color:#8b5cf6;font-size:13px}@media print{.sort-arrow{display:none}}

.button.delete-button,button.delete-button{background:#c62845;color:#fff}.button.delete-button:hover,button.delete-button:hover{background:#a51d36}

.prompt-category-table{min-width:680px;table-layout:fixed}.prompt-category-table .prompt-category-count{width:90px}.prompt-category-table .actions{width:230px}.prompt-category-name input{margin:0}.prompt-category-action-buttons{display:flex;align-items:center;justify-content:flex-end;gap:8px;white-space:nowrap}.prompt-category-action-buttons form{margin:0}.prompt-category-action-buttons button{white-space:nowrap}

.prompt-enhancement{margin:18px 0 24px;padding:18px;border:1px solid #dde4ed;border-radius:8px;background:#faf9fe}.prompt-enhancement-preview{margin-top:18px;padding-top:12px;border-top:1px solid #dde4ed}.prompt-enhancement-preview[hidden]{display:none}.prompt-enhancement button:disabled{opacity:.55;cursor:wait}.prompt-enhancement .secondary-button{background:#e9e4f2;color:#392457}.prompt-enhancement [data-enhance-status]:empty{display:none}
