/* Takkonsulterna: warm brand accents, calm surfaces and clear financial figures. */
:root{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#263339;background:#f4f5f4;--brand:#d78b3e;--ink:#23343a;--line:#e4e8e7;--soft:#f7f8f7}
body{line-height:1.5}.shell{min-height:100vh}.side{width:250px;background:#23343a;padding:30px 18px;position:sticky;top:0;height:100vh;border-right:1px solid #31474f}.brand{margin:0 8px 32px}.brand-logo{padding:16px;border-radius:12px;margin-bottom:12px}.brand small{font-size:10px;letter-spacing:3px;color:#c3cdcd}.nav{padding:13px 15px;margin:6px 0;font-size:14px;font-weight:550;border:1px solid transparent;color:#c6d0d1}.nav.active{background:#d78b3e20;color:#ffd4a7;border-color:#d78b3e40;box-shadow:inset 3px 0 #df934a}.nav:hover{background:#ffffff0d;color:white}.main{padding:38px 40px;max-width:1600px;width:100%}.top{margin-bottom:28px}h1{font-size:30px;letter-spacing:-.8px;font-weight:750}h2{letter-spacing:-.3px;font-size:19px;font-weight:700}.muted{color:#718087;font-size:13px}#subtitle{margin-top:5px;font-size:14px}.btn{background:#bd722d;border:1px solid #ae6627;border-radius:10px;padding:11px 18px;font-size:14px;box-shadow:0 2px 3px #70401c12;transition:background .15s,box-shadow .15s}.btn:hover{background:#a96022;box-shadow:0 3px 8px #70401c22}.btn.secondary{background:white;border:1px solid #dce2e1;color:#40545c;box-shadow:none}.btn.secondary:hover{background:#f1f4f3}.btn:active{transform:translateY(1px)}button:focus-visible,a:focus-visible{outline:3px solid #df934a;outline-offset:3px}.cards{gap:18px;margin-bottom:24px}.card,.panel{border:1px solid var(--line);box-shadow:0 3px 14px #23343a05;border-radius:16px}.panel{padding:24px;margin-bottom:22px}.card{padding:22px;background:white}.card span{font-size:12px;font-weight:600;letter-spacing:.15px;color:#738087}.card strong{font-size:29px;letter-spacing:-.8px;line-height:1.25;font-variant-numeric:tabular-nums;margin-top:12px}.card small{display:block;font-size:12px;color:#7c7b70;margin-top:8px}.seller-panel{border-top:3px solid var(--brand)}.seller-panel>h2{font-size:23px;margin-bottom:5px}.seller-panel>p{margin-top:0;margin-bottom:22px}.seller-totals{margin-top:20px}.seller-totals .card{background:#fafbf9;box-shadow:none}.seller-totals .pending{background:#fff7eb;border-color:#f1dfc2}.seller-panel .figure{font-size:20px;letter-spacing:-.5px;font-variant-numeric:tabular-nums}.figure small{letter-spacing:0}.approved{color:#2b7b5a}.waiting{color:#b1742b}table{min-width:650px}th{background:#f6f8f7;font-size:11px;text-transform:uppercase;letter-spacing:.65px;padding:13px 14px;border-bottom:1px solid #dfe5e3;white-space:nowrap}td{padding:17px 14px;color:#34474e;border-color:#edf0ee;vertical-align:middle}tbody tr:hover{background:#fcfcfa}.pill{background:#edf3f0;color:#3c6a58;font-weight:600;font-size:11px;padding:6px 10px}.link{color:#9c622c;font-size:13px}.link:hover{color:#70431a;text-decoration:underline}.toolbar{gap:12px;margin-bottom:20px}input,select,textarea{border:1px solid #d6dedb;border-radius:9px;padding:11px 12px;color:#263b43;font-size:14px;background:#fff;min-height:42px}input:focus,select:focus,textarea:focus{outline:3px solid #d78b3e1f;border-color:#c58b52}input[type=search]{background:#fafbf9}.field{font-size:12px;font-weight:650;color:#586970;gap:7px}.formgrid{gap:18px}dialog{padding:28px;border:1px solid #e2e6e3;border-radius:20px;box-shadow:0 26px 100px #18282e40;max-height:90vh;overflow:auto}dialog::backdrop{background:#1c2b3266;backdrop-filter:blur(4px)}#modal{max-width:760px}#modalTitle{font-size:24px;margin-bottom:24px}.project-economy{background:#f6f8f6;padding:22px;border-color:#dfe6df}.project-economy>h2{font-size:20px;margin-bottom:6px}.project-economy>.muted{margin-top:0;margin-bottom:20px}.project-economy .economy-inputs{grid-template-columns:1fr 1fr!important;gap:18px}.order-profit-preview{background:#eaf3ec;border:1px solid #cedfd0;border-radius:12px;padding:20px;margin-top:22px}.customer-profit-inline{gap:24px;justify-content:space-between}.customer-profit-inline strong{color:#2a6047;font-variant-numeric:tabular-nums}.customer-card{background:#f5f6f3;padding:30px}.customer-heading{padding-bottom:22px;border-bottom:1px solid #e0e5df}.customer-heading>div>.muted{font-size:10px;letter-spacing:2px;color:#a16a33;font-weight:750}.customer-identity h2{font-size:30px;letter-spacing:-.7px}.customer-address{font-size:17px;color:#75838a}.customer-card .panel{box-shadow:none}.customer-profit-cards .card{background:#f7faf6;border-color:#e0e9dc}.customer-profit-cards strong{color:#326246;font-size:26px}.customer-card dt{font-size:12px;font-weight:600}.customer-card dd{font-size:14px}.customer-order{padding:20px 0;align-items:center}.customer-order:last-child{border-bottom:0}.customer-file{background:white;border-color:#e3e7e2;padding:12px;border-radius:12px}.customer-file>strong{display:block;font-size:13px}.customer-file .muted{font-size:11px}.customer-file img{height:170px}.customer-profit-list{color:#547663;font-size:12px}.customer-name-link{color:#344b53}.customer-name-link strong{font-size:15px}.customer-name-link span{font-size:12px;color:#7b898e}.empty{background:#fafbf9;border:1px dashed #dbe3dd;border-radius:12px;margin:12px 0;padding:30px}.footer{font-size:11px;color:#94a09f;padding-top:10px}.order-state{gap:8px}.order-state select{font-size:12px;min-height:34px}.order-state span{font-size:11px}.mobilehead,.bottom{background:#23343a}.bottom{border-top:1px solid #3b4d52}.bottom button.active{color:#f1b97f}
@media(min-width:1600px){.main{padding:42px 52px}}@media(max-width:1100px){.main{padding:26px}.side{width:215px;padding:24px 12px}.cards{gap:12px}.panel{padding:20px}.card{padding:18px}.card strong{font-size:25px}}@media(max-width:850px){.side{display:none}.main{padding:20px 14px 96px}.mobilehead{padding:12px 18px}.mobile-logo{width:135px}.top{gap:10px;margin-bottom:22px}h1{font-size:26px}.top>.btn{padding:10px 12px;font-size:12px}.cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.seller-totals{grid-template-columns:repeat(2,minmax(0,1fr))}.card{padding:15px}.card strong{font-size:23px}.panel{padding:18px;border-radius:13px}.customer-card{padding:18px}.customer-identity h2{font-size:24px}.customer-heading{gap:8px}.customer-address{font-size:15px}.project-economy .economy-inputs{grid-template-columns:1fr!important}.customer-profit-cards{grid-template-columns:1fr}.customer-profit-inline{flex-direction:column;gap:16px}dialog{padding:20px;border-radius:16px}.customer-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}.customer-file img{height:125px}}@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}

/* Refined workspace presentation. */
:root{background:#f3f5f4;color:#243c43;--line:#e2e8e4}
.main>.top{padding-bottom:23px;border-bottom:1px solid #dfe5e1;margin-bottom:28px}
.main>.top h1{font-size:32px;letter-spacing:-1px}.main>.top .btn{padding:12px 20px}
.side{background:linear-gradient(175deg,#263d44,#1c2e34);box-shadow:5px 0 28px #20383d08}
.side .brand-logo{box-shadow:0 5px 20px #0a1c2220}.side .nav{border-radius:9px}.side .nav.active{background:#e7a15319;color:#f4c38f;border-color:#e7a15330}
.panel{background:#fff;border-color:#e3e9e5;box-shadow:0 4px 22px #213d4405}.panel>h2{margin-bottom:18px}.panel>h2+.muted{margin-top:-10px}
.cards>.card{position:relative;min-height:112px;border-color:#e2e8e2}.cards>.card:before{content:'';position:absolute;left:20px;top:0;width:30px;height:3px;background:#d99a57;border-radius:0 0 4px 4px}.cards>.card strong{margin-top:14px;font-size:clamp(22px,2.1vw,31px);color:#29434a;overflow-wrap:anywhere}.cards>.card span{display:block;padding-top:3px;line-height:1.4;font-size:12px}.cards>.pending:before{background:#dca53d}.seller-totals .card:first-child{background:#f1f6f2}.seller-panel>h2{margin-bottom:16px}
.panel table{border-spacing:0}.panel th{background:#f2f5f2;color:#79877f;font-size:10px;letter-spacing:.8px;border-top:1px solid #e5eae5}.panel th:first-child{border-top-left-radius:8px}.panel th:last-child{border-top-right-radius:8px}.panel td{font-size:13px;padding:16px 13px}.panel tbody tr:last-child td{border-bottom:0}.panel tbody tr:hover{background:#f8faf7}.panel td strong{font-weight:650}.figure{font-variant-numeric:tabular-nums}
.admin-inline-status{border-radius:8px;min-height:37px;padding:8px 10px;font-weight:600;box-shadow:none}.admin-inline-status[data-tone=neutral]{color:#64747c;background:#f4f6f5;border-color:#e2e6e3}.admin-inline-feedback:empty{display:none}.admin-inline-feedback{font-size:10px;margin-top:5px}
.calendar-profit{border-top:3px solid #d99a57}.calendar-profit>.top{align-items:center;gap:20px}.calendar-profit>.top>h2{margin:0;font-size:22px}.calendar-profit .actions{align-items:center}.calendar-profit .actions .field{font-size:10px}.calendar-profit input{padding:8px 12px;min-height:38px}.calendar-profit tbody td:first-child strong{font-size:13px}.calendar-profit tbody tr:nth-child(even){background:#fbfcfa}.calendar-profit .cards{margin-bottom:28px}
.admin-warning{background:#fffaed;color:#8c6b30;border:1px solid #eee1bc;border-left:3px solid #dfb45d;font-size:12px;line-height:1.7}.admin-warning .actions{margin-top:8px}.admin-warning .link{background:#fffdf6;border:1px solid #ecdfbf;border-radius:7px;padding:6px 10px;text-decoration:none}.admin-warning .link:hover{background:#f8eed4}.admin-save-note{font-size:13px;border:1px solid #c5dfcc}
.admin-edit summary{font-size:12px;color:#996a37}.admin-edit[open]{min-width:440px}.admin-edit form{background:#f7f9f5;box-shadow:0 6px 20px #263d4408}.admin-edit form h2{font-size:20px}.admin-edit h3{border-bottom:1px solid #dfe7df;padding-bottom:8px;color:#536b60}.admin-live-profit{font-size:13px;line-height:1.7}
#modal{padding:0;max-width:820px;background:#fff}#modalTitle{padding:26px 28px 20px;margin:0;border-bottom:1px solid #e4eae5;background:#fafbf8;font-size:23px}#recordForm{padding:25px 28px}#recordForm>.actions{padding-top:20px;border-top:1px solid #e5eae5}#recordForm .field{font-size:11px;color:#64756c}#recordForm input,#recordForm select{min-height:44px}#recordForm .project-economy{padding:22px;margin:4px 0;background:#f8faf6;border-color:#dce6d9}.project-economy>.muted{font-size:12px;line-height:1.7}.project-economy .economy-inputs{gap:20px}.project-economy .order-profit-preview{border-left:3px solid #70a77c;background:#edf5ea}.customer-profit-inline span{font-size:11px;letter-spacing:.15px}.customer-profit-inline strong{font-size:26px}
.customer-card{border-top:4px solid #d99a57}.customer-heading{padding-bottom:24px;margin-bottom:22px}.customer-card>.actions{gap:10px;margin-bottom:24px}.customer-card>.panel:has(.customer-profit-cards){background:#fbfdf8;border-color:#dce7d5}.customer-card .customer-profit-cards .card{background:#fff}.customer-identity{column-gap:20px}.customer-card .customer-summary{font-size:13px}.customer-card .customer-order strong{font-size:15px}.customer-card .customer-order .muted{font-size:12px}.customer-file{box-shadow:0 2px 8px #203d4305}.customer-file:hover{border-color:#c7d6c6}.customer-name-link{padding:4px 0}.customer-profit-list{margin-left:0}.files-dialog{background:#fbfcf9}.files-dialog .attachment{background:white;padding:16px;border-radius:10px;margin:12px 0;border:1px solid #e3e9e0}.footer{border-top:1px solid #e0e6df;margin-top:28px;padding-top:18px}
@media(min-width:1200px){.main{padding:36px 38px}.grid2{gap:22px}.seller-panel{padding:26px}.seller-panel table td{padding-top:21px;padding-bottom:21px}}
@media(max-width:850px){.main>.top h1{font-size:25px}.main>.top{padding-bottom:18px;margin-bottom:20px}.main>.top .btn{padding:10px 12px}.cards>.card{min-height:102px}.cards>.card strong{font-size:23px}.cards>.card:before{left:15px}.calendar-profit>.top{align-items:flex-start;flex-wrap:wrap}.calendar-profit>.top>h2{font-size:20px}.calendar-profit .cards{grid-template-columns:repeat(2,minmax(0,1fr))}#modalTitle{padding:20px;font-size:21px}#recordForm{padding:20px}.customer-card .customer-profit-cards{grid-template-columns:1fr}.admin-edit[open]{min-width:290px}.customer-profit-inline strong{font-size:24px}.customer-identity h2{font-size:24px}}
