*{box-sizing:border-box}body{margin:0;font:16px/1.6 system-ui,sans-serif;color:#18283c;background:#f3f6fa}header{background:#102746;color:white;padding:22px 6%;display:flex;align-items:center;justify-content:space-between;gap:20px}header strong{font-size:25px;letter-spacing:1px}header span{color:#81b9ed}nav{display:flex;align-items:center;gap:22px}nav a{color:white}nav form{margin:0}main{max-width:1160px;margin:48px auto;padding:0 24px}h1{font-size:34px;line-height:1.2}h2{font-size:22px}.eyebrow{letter-spacing:2px;font-size:12px;font-weight:700;color:#456785}.login{max-width:490px;margin:70px auto;padding:36px;background:white;border:1px solid #dce4ed;border-radius:12px}label{display:block;font-weight:600}input{width:100%;padding:12px;border:1px solid #aebdcd;border-radius:6px;font-size:16px}button{padding:12px 22px;background:#174f83;color:white;border:0;border-radius:6px;font-size:15px;cursor:pointer}.login button{width:100%}.errorlist{color:#a32626;padding-left:20px}.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:24px}.cards section{background:white;border:1px solid #dce4ed;border-radius:12px;padding:26px}a{color:#175184;text-underline-offset:4px}.table{overflow:auto;background:white}table{width:100%;border-collapse:collapse;font-size:14px}td,th{padding:12px;text-align:left;border-bottom:1px solid #dce4ed}th{background:#e6eef6}@media(max-width:700px){header{align-items:flex-start;flex-direction:column}nav{flex-wrap:wrap;gap:14px}main{margin:28px auto}.login{margin:24px auto;padding:24px}h1{font-size:28px}}
/* Kunderegister */
.page-heading{display:flex;justify-content:space-between;align-items:center;gap:24px;margin:20px 0 28px}.page-heading h1{margin:8px 0 14px;overflow-wrap:anywhere}.panel{background:#fff;border:1px solid #dce4ed;border-radius:12px;padding:28px;margin:24px 0}.panel h2{margin-top:0}.button{display:inline-block;padding:12px 22px;background:#174f83;color:#fff;border-radius:6px;text-decoration:none;font-size:15px;text-align:center}.secondary{background:#e6eef6;color:#173b61}.danger{background:#8c3434}.actions{display:flex;align-items:center;flex-wrap:wrap;gap:16px}.customer-form .actions{margin-top:28px}.form-grid,.detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 28px}.form-field small{display:block;margin-top:5px;color:#456078}.form-field input,.form-field select{margin-top:6px}select{width:100%;padding:12px;border:1px solid #aebdcd;border-radius:6px;background:#fff;color:#18283c;font:inherit;min-height:48px}.search-fields{display:grid;grid-template-columns:minmax(0,1fr) 190px auto auto;gap:16px;align-items:end}.search-fields input,.search-fields select{min-height:48px}.customer-table small{display:block;color:#52647a;overflow-wrap:anywhere}.customer-table td{overflow-wrap:anywhere}.badge{display:inline-block;border-radius:20px;padding:3px 12px;font-size:13px;background:#e4f3ea;color:#245438}.badge.archived{background:#eef0f3;color:#4b5665}.detail-grid{margin:0}.detail-grid dt{font-weight:600;color:#456078;font-size:14px}.detail-grid dd{margin:5px 0 0;overflow-wrap:anywhere}.notice{padding:14px 18px;border:1px solid #b7d8c4;border-radius:8px;background:#eaf6ee}.notice.error{background:#fceeed;border-color:#e2b7b4}.pagination{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:18px;margin:24px 0}.pagination a{color:#175184}.history-event{border-top:1px solid #dce4ed;padding:16px 0}.history-event summary{cursor:pointer;overflow-wrap:anywhere}.history-event table{table-layout:fixed}.history-event td,.history-event th{overflow-wrap:anywhere}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #c37400;outline-offset:3px}header nav{flex-wrap:wrap}button,.button{min-height:44px}input{min-width:0}
@media(max-width:950px){.search-fields{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.page-heading{align-items:flex-start}.page-heading>.actions{justify-content:flex-end}}
@media(max-width:600px){.page-heading{flex-direction:column;gap:12px}.page-heading>.actions{justify-content:flex-start}.panel{padding:20px}.form-grid,.detail-grid,.search-fields{grid-template-columns:1fr}.customer-table{background:transparent;overflow:visible}.customer-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.customer-table table,.customer-table tbody{display:block}.customer-table tr{display:block;background:white;border:1px solid #dce4ed;border-radius:10px;margin-bottom:14px;padding:12px}.customer-table td{display:grid;grid-template-columns:85px minmax(0,1fr);gap:4px 10px;border:0;padding:7px 4px}.customer-table td::before{content:attr(data-label);font-weight:600;color:#456078}.customer-table td small{grid-column:2}.customer-table td[colspan]{display:block}.customer-table .badge{justify-self:start}main{padding:0 16px}.history-event th,.history-event td{padding:8px 5px;font-size:12px}}

/* Adresseforslag er placeret i formularens flow, også på små skærme. */
.address-suggestions{list-style:none;margin:6px 0 10px;padding:0;border:1px solid #aebdcd;border-radius:6px;background:#fff;max-height:280px;overflow-y:auto;overscroll-behavior:contain;box-shadow:0 5px 12px #10274614}.address-suggestions[hidden]{display:none}.address-suggestions [role=option]{padding:12px;min-height:44px;cursor:pointer;border-bottom:1px solid #dce4ed;overflow-wrap:anywhere}.address-suggestions [role=option]:last-child{border-bottom:0}.address-suggestions [role=option]:hover,.address-suggestions [aria-selected=true]{background:#e6eef6;color:#102746}.address-lookup small{display:block;margin-top:6px}.address-lookup [role=status]:empty{display:none}

/* Ved næste besøg */
.next-visit-panel{border-left:5px solid #c18b2d}.task-list{display:grid;gap:14px}.task-card{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:18px;border:1px solid #dce4ed;border-radius:8px;background:#fbfcfe}.task-card[hidden]{display:none}.task-card h3{font-size:18px;margin:0 0 6px;overflow-wrap:anywhere}.task-card p{margin:4px 0;overflow-wrap:anywhere}.task-card form{margin:0;flex-shrink:0}.badge.pending{background:#fff1d5;color:#6b4800}.workflow-form textarea{display:block;width:100%;padding:12px;border:1px solid #aebdcd;border-radius:6px;font:inherit;resize:vertical}.workflow-form .actions{margin-top:24px}.workflow-form .check-field{grid-column:1/-1;display:flex;align-items:center;gap:14px}.workflow-form input[type=checkbox]{width:24px;min-width:24px;height:24px}.task-description{overflow-wrap:anywhere}.block{display:block}.panel>.page-heading{margin-top:0}.panel .actions{margin-top:20px}@media(max-width:650px){.task-card{align-items:flex-start;flex-direction:column}.task-card .button,.task-card form,.task-card button{width:100%}.workflow-form .check-field{align-items:flex-start}.next-visit-panel{padding:18px}}
/* Planning and shared visit work records */
.week-calendar{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:.6rem;margin:1.5rem 0;align-items:start}.calendar-day{min-width:0;background:#edf2f5;border-radius:12px;padding:.7rem}.calendar-day h2{font-size:1rem;text-transform:capitalize}.calendar-day small{font-weight:400}.schedule-card{background:#fff;border:1px solid #dbe3e8;border-radius:10px;padding:1rem;overflow-wrap:anywhere;margin-bottom:.7rem}.schedule-card h3{font-size:1.05rem;margin-top:0}.schedule-card p{font-size:.9rem;margin:.5rem 0}.schedule-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:1rem}.work-photo{max-width:100%;width:220px;height:auto;border-radius:8px}#id_employees{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:.5rem}#id_employees label{display:flex;align-items:center;gap:.5rem}#id_employees input{width:auto}.week-calendar a:focus{outline:3px solid #197582}@media(max-width:1100px){.week-calendar{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:650px){.week-calendar{grid-template-columns:1fr}.calendar-day{padding:1rem}.schedule-card{padding:1rem}.actions{flex-wrap:wrap}}

.next-task-reminder{background:#fff5df;border-left:4px solid #c18b2d;padding:.8rem;margin-top:.8rem}.next-task-reminder ul{padding-left:1rem;margin-bottom:0}.workflow-form .check-field:has(#id_employees){display:block}#id_employees{margin-top:.6rem}

.week-calendar .schedule-card{padding:.6rem}.week-calendar .schedule-card h3{font-size:.95rem}.week-calendar .schedule-card p{font-size:.82rem}.week-calendar .schedule-card>a{font-size:.82rem}

/* Service reports */
.report-point{border:1px solid #dce4ed;padding:18px;margin:18px 0;border-radius:8px;min-width:0}.report-point legend{font-weight:700;padding:0 6px;max-width:100%;overflow-wrap:anywhere}.report-warning{border-left:5px solid #b86b14;background:#fff5e4}.report-photos{display:flex;flex-wrap:wrap;gap:16px}.report-photos img{max-width:100%;width:220px;height:auto;border-radius:8px}.report-photos figure{margin:0;max-width:240px}.report-checkboxes label{display:flex;align-items:center;gap:8px}.report-checkboxes input{width:24px;min-width:24px}.report-form #id_equipment input{width:24px;min-width:24px}.report-form .form-field{min-width:0}.report-point select{width:100%}.workflow-form p{overflow-wrap:anywhere}.workflow-form p:has(input[type=checkbox]) input{width:24px;min-width:24px}.report-point textarea{margin-bottom:16px}@media(max-width:650px){.report-point{padding:12px}.report-photos img{width:100%}.report-form .form-grid{grid-template-columns:1fr}}

/* Fælles arbejdsområde: kompakt desktop, tydelige trykflader på mobil. */
:root{--green:#367c4c;--green-dark:#28613b;--ink:#303b36;--line:#dde3df;--muted:#65726b}
body{font:14px/1.5 system-ui,sans-serif;color:var(--ink);background:#f2f4f3}a{color:#286440}h1{font-size:26px;font-weight:600;margin:0 0 12px}h2{font-size:18px;font-weight:600}h3{font-weight:600}p{margin:8px 0 16px}.eyebrow{color:var(--muted);font-size:11px;letter-spacing:1.3px}
.app-shell{padding-left:208px}.app-shell main{max-width:none;margin:0;padding:28px 30px 50px;min-width:0}.sidebar{position:fixed;inset:0 auto 0 0;width:208px;background:#292e2b;color:#d4dbd6;z-index:20;display:flex;flex-direction:column;overflow-y:auto}.brand{display:flex;align-items:center;gap:6px;height:62px;padding:0 18px;font-size:19px;letter-spacing:1px;font-weight:700;color:#fff;text-decoration:none;flex-shrink:0}.brand span{color:#95c7a0}.brand .brand-mark{display:grid;place-items:center;background:var(--green);color:#fff;width:27px;height:27px;border-radius:7px;font-size:17px;margin-right:3px}.navigation summary{display:none}.sidebar nav{display:block;padding:10px 10px 20px}.nav-group{font-size:10px;letter-spacing:1.25px;text-transform:uppercase;color:#a1b0a6;margin:20px 12px 8px}.sidebar nav>a{display:flex;gap:12px;align-items:center;padding:10px 12px;min-height:42px;color:#dce3de;border-radius:4px;text-decoration:none;font-size:13px}.sidebar nav>a>span{width:18px;text-align:center;font-size:18px;color:#a6b7ac}.sidebar nav>a:hover{background:#363f39}.sidebar nav>a[aria-current]{background:#374c3e;color:#b9e5c1;box-shadow:inset 3px 0 #78b386}.sidebar nav>a[aria-current]>span{color:#b9e5c1}.sidebar .logout-form{margin:26px 0 0;border-top:1px solid #424b44;padding-top:12px}.logout-form button{background:transparent;color:#dce3de;width:100%;text-align:left;display:flex;justify-content:space-between;font-size:13px;padding:10px 12px}.sidebar-footer{margin:auto 20px 20px;font-size:10px;color:#a1b0a6}.workspace-header{height:62px;padding:0 30px;background:var(--green);display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:16px;color:white;font-size:11px;letter-spacing:1px}.workspace-header>div{display:flex;align-items:center;gap:10px}.workspace-indicator{width:7px;height:7px;border:1px solid #fff;border-radius:50%}.workspace-header .employee-name{font-size:13px;letter-spacing:0;color:white;max-width:45%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;background:#ffffff12;padding:6px 12px;border-radius:4px}.guest-header{padding:0 24px;background:#292e2b}.guest-shell main{margin:40px auto}.guest-shell .login{border-radius:6px}.skip-link{position:fixed;top:-70px;left:16px;z-index:100;background:white;padding:12px}.skip-link:focus{top:8px}
.page-heading{margin:0 0 20px;gap:16px}.page-heading h1{margin:4px 0 8px}.page-heading p{margin-bottom:0}.panel{border-color:var(--line);border-radius:5px;padding:22px;margin:20px 0;box-shadow:0 1px 2px #20362904}.panel h2{padding-bottom:12px;border-bottom:1px solid #edf0ee}.cards{gap:16px}.cards section{border-color:var(--line);border-radius:5px;padding:22px;border-top:3px solid #74a881}.cards section h2{margin-top:0}.cards section p{color:var(--muted)}.cards section a{font-weight:600}.actions{gap:8px}.button,button{background:var(--green);font-size:13px;min-height:38px;padding:9px 15px;border-radius:4px;font-weight:500}.button:hover,button:hover{background:var(--green-dark);color:white}.secondary{background:#fff;color:#43594a;border:1px solid #ccd7cf}.secondary:hover{background:#e8f1eb;color:#254f32}.danger{background:#963d3d}.danger:hover{background:#772e2e}.actions a:not(.button){padding:6px 0}input,select,.workflow-form textarea{border-color:#c2cdc5;border-radius:4px;padding:9px 11px;color:var(--ink);font-size:14px}select{min-height:40px}.search-fields input,.search-fields select{min-height:40px}.search-fields{gap:12px}.form-grid,.detail-grid{gap:18px 24px}label{font-weight:500}.form-field small,.detail-grid dt,.customer-table small{color:var(--muted)}.form-field input,.form-field select{margin-top:5px}.table{border:1px solid var(--line);border-radius:5px}table{font-size:13px}td,th{padding:10px 13px;border-color:#e5eae7}th{background:#edf1ee;color:#526057;font-size:11px;font-weight:600}tbody tr:nth-child(even){background:#fafcfb}tbody tr:hover{background:#f0f7f2}.badge{padding:3px 9px;border-radius:4px;font-size:11px}.notice{border-radius:4px;margin-bottom:16px}.task-card{padding:14px;border-radius:4px;background:#fbfcfb;border-color:var(--line)}.task-card h3{font-size:15px}.task-list{gap:10px}.detail-grid dt{font-size:12px}.next-visit-panel{border-left:4px solid #c18b2d}.calendar-day{background:#e9eeeb;border-radius:4px;padding:9px;min-height:160px}.calendar-day h2{font-size:13px;margin:4px 2px 14px}.calendar-day small{color:var(--muted);font-size:11px}.week-calendar{gap:8px;margin:20px 0}.schedule-card{border-radius:4px;border-color:var(--line);border-left:3px solid #76a984;padding:14px;margin:0}.schedule-card h3{font-size:15px;margin:0 0 8px}.schedule-card p{font-size:13px;margin:6px 0}.week-calendar .schedule-card{margin-bottom:8px}.schedule-list{gap:12px}.report-point{border-color:var(--line);border-radius:4px;background:#fbfcfb;border-top:3px solid #99bda2;padding:18px;margin:22px 0}.report-point legend{font-size:14px}.report-point>p{color:var(--muted);font-size:12px}.report-point .form-field{margin-bottom:12px}.report-warning{border-left:4px solid #b86b14}.address-suggestions [role=option]:hover,.address-suggestions [aria-selected=true]{background:#e8f2eb;color:#244e31}input[type=checkbox],input[type=radio]{accent-color:var(--green)}textarea:focus-visible{outline:3px solid #c37400;outline-offset:3px}
.planning-toolbar{background:#fff;border:1px solid var(--line);border-radius:5px;padding:12px;display:flex;flex-wrap:wrap;justify-content:space-between;gap:12px;margin:20px 0}.planning-toolbar .active{background:#e3efe6;border-color:#8eb59a;color:#245f35}.planning-table .visit-title{font-weight:600}.planning-table small{display:block;color:var(--muted);margin-top:3px}.planning-table td{vertical-align:top}.planning-table .button{white-space:nowrap}.report-form>button{margin-bottom:24px}
@media(min-width:1101px) and (max-width:1400px){.app-shell main{padding:24px 22px}.week-calendar .schedule-card h3{font-size:12px}.week-calendar .schedule-card p,.week-calendar .schedule-card>a{font-size:11px}}
@media(max-width:900px){.app-shell{padding-left:180px}.sidebar{width:180px}.brand{font-size:16px;padding:0 13px}.app-shell main{padding:22px 18px}.workspace-header{padding:0 18px}.sidebar nav{padding:8px}.sidebar nav>a{gap:8px}.cards{grid-template-columns:1fr}.week-calendar{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){body{font-size:15px}.app-shell{padding:0}.sidebar{position:static;width:auto;overflow:visible;display:block}.brand{height:58px;width:max-content;font-size:18px}.sidebar-footer{display:none}.navigation summary{display:block;position:absolute;right:16px;top:9px;min-height:40px;padding:9px 14px;border:1px solid #65756a;border-radius:4px;cursor:pointer;font-size:14px;color:white}.navigation summary::after{content:' ☰'}.navigation[open] summary::after{content:' ×'}.sidebar nav{padding:0 12px 14px}.sidebar nav>a{min-height:44px;font-size:14px}.nav-group{margin-top:12px}.sidebar .logout-form{margin-top:14px}.workspace-header{height:42px;padding:0 16px;font-size:10px}.workspace-header .employee-name{font-size:12px;padding:4px 7px}.app-shell main{padding:22px 16px 40px}h1{font-size:24px}.panel{padding:18px}.page-heading{gap:12px}.form-grid,.detail-grid,.search-fields{grid-template-columns:1fr}.button,button{min-height:44px;font-size:14px}input,select,.workflow-form textarea{font-size:16px;min-height:44px}.week-calendar{grid-template-columns:1fr}.week-calendar .schedule-card{padding:12px}.week-calendar .schedule-card h3{font-size:15px}.week-calendar .schedule-card p,.week-calendar .schedule-card>a{font-size:13px}.calendar-day{padding:12px;min-height:0}.calendar-day h2{font-size:15px}.planning-toolbar{padding:10px}.planning-toolbar .actions{width:100%}.planning-toolbar .button{flex:1;padding:9px}.customer-table{border:0}.customer-table tr{border-radius:5px}.report-point{padding:12px}.guest-shell main{margin:24px auto}.guest-header{padding:0 16px}.report-photos figure{max-width:100%}}
@media(prefers-reduced-motion:no-preference){a,button{transition:background-color .15s ease}}

@media(max-width:600px){.planning-table td{grid-template-columns:104px minmax(0,1fr)}.planning-table .next-task-reminder{grid-column:2}.planning-table td::before{font-size:12px}}

.template-layout,.report-editor{display:grid;grid-template-columns:260px minmax(0,1fr);gap:20px;align-items:start}.template-layout>.panel,.report-editor>.panel{margin-top:20px}.template-layout>.panel:first-child a{display:block;padding:10px 8px;border-bottom:1px solid var(--line);text-decoration:none}.template-layout>.panel:first-child a:hover{background:#e8f2eb}.report-source{font-size:13px}.report-source p{overflow-wrap:anywhere}.report-editor>.report-form{min-width:0}@media(max-width:1100px){.template-layout,.report-editor{grid-template-columns:1fr;gap:0}}

/* Layout v2: full-width registers and route-based right-hand editing panels. */
:root{--green:#229a52;--green-dark:#187c41;--ink:#373737;--line:#e5e7e8;--muted:#707070}
body{background:#fafafa;font-size:13px}.app-shell{padding-left:225px}.sidebar{width:225px;background:#333}.brand{height:66px;background:#2d2d2d;font-size:19px}.brand .brand-mark{border-radius:50%;background:#3daf61;width:34px;height:34px}.sidebar nav{padding:8px 9px 20px}.nav-group{margin:19px 15px 14px;color:#a2a2a2;font-size:11px;font-weight:700}.sidebar nav>a{padding:5px 9px;min-height:30px;border-radius:0;gap:10px;font-size:14px;letter-spacing:.2px}.sidebar nav>a>span{color:#eee;font-size:17px}.sidebar nav>a[aria-current]{box-shadow:none;background:#414141;color:#6ed183}.sidebar nav>a[aria-current]>span{color:#6ed183}.sidebar nav>a:hover{background:#414141}.sidebar-footer{color:#aaa}.workspace-header{height:44px;padding:0 18px;background:#40a659;background-image:linear-gradient(132deg,transparent 22%,#ffffff0d 22%,#ffffff0d 51%,transparent 51%),linear-gradient(68deg,transparent 63%,#ffffff0a 63%);font-size:13px;letter-spacing:.5px;text-transform:uppercase}.workspace-header>div{gap:18px}.workspace-header .employee-name{font-size:12px;padding:4px 10px;background:#ffffffdf;color:#39473c;border-radius:18px;max-width:180px;text-transform:none}.workspace-header .topbar-actions{gap:12px}.topbar-create{background:#fff;color:#367448;padding:6px 12px;border-radius:3px;font-size:12px;text-transform:none;letter-spacing:0;text-decoration:none;font-weight:600}.sidebar-toggle{padding:0;width:28px;min-height:30px;background:transparent;font-size:17px}.sidebar-toggle[hidden]{display:none}.sidebar-toggle:hover{background:#ffffff18}.app-shell main{padding:18px 20px 40px}.app-shell.sidebar-collapsed{padding-left:0}.sidebar-collapsed .sidebar{display:none}h1{font-size:22px}h2{font-size:17px}.panel{box-shadow:none;border-radius:2px;padding:18px;margin:16px 0}.button,button{border-radius:3px;min-height:32px;padding:6px 12px;font-size:12px}input,select,.workflow-form textarea{padding:6px 9px;font-size:13px;border:1px solid #e1e4e2;border-radius:3px}select{min-height:32px}.search-fields input,.search-fields select{min-height:32px}table{font-size:12px}td,th{padding:11px 12px;border-color:#eee}th{font-size:10px;background:#f8f8f8;color:#666;font-weight:600}tbody tr:nth-child(even){background:#fafafa}tbody tr:hover{background:#f0f6f1}.table{border-radius:0;border-left:0;border-right:0}.cards section{border:0;border-radius:0;padding:16px;background:transparent}.cards section h2{border-bottom:2px solid var(--green);padding-bottom:12px}.cards section p{min-height:42px}.register-page main{padding:0 0 40px}.register-search{margin:0!important;border:0;border-bottom:1px solid #eee;background:#fafafa;padding:12px!important}.register-search .search-fields{grid-template-columns:minmax(220px,350px) 170px auto auto;justify-content:start;gap:10px}.register-search label{font-size:11px;color:#666}.register-page main>p[role=status]{padding:0 12px;margin:16px 0;color:#666;font-size:12px}.register-page .customer-table table{min-width:1100px}.empty-register{height:380px;text-align:center;color:#777!important;font-size:14px;vertical-align:middle}.register-page .pagination{padding:0 16px}.drawer-page main{padding:0;background:#edf0ee;min-height:calc(100vh - 44px)}.form-drawer{width:min(100%,500px);margin-left:auto;min-height:calc(100vh - 44px);padding:20px 18px 30px;background:#fafafa;box-shadow:-5px 0 18px #0000000b}.form-drawer>h1{font-size:20px;margin:14px 0 18px}.form-drawer>.eyebrow{margin-top:12px}.form-drawer>p{color:#707070;font-size:12px}.form-drawer .panel{background:transparent;border:0;border-radius:0;padding:0;margin:16px 0}.form-drawer .form-grid{display:grid;grid-template-columns:1fr;gap:16px}.form-drawer .form-field{min-width:0}.form-drawer label{font-size:11px;color:#686868;font-weight:600}.form-drawer input,.form-drawer select{height:33px}.form-drawer input[type=checkbox]{height:22px;width:22px;min-width:22px}.form-drawer .form-field small,.field-note{font-size:11px;color:#777}.form-section-title{grid-column:1/-1;margin:8px 0 0;padding:15px 0 0!important;border-top:1px solid #e6e6e6;border-bottom:0!important;font-size:15px!important;font-weight:650}.form-section-title:before{content:'▤';color:var(--green);margin-right:8px}.form-drawer .actions{padding:16px 0;margin-top:20px;border-top:1px solid #e5e5e5}.form-drawer .actions button{min-width:130px}.form-drawer .next-visit-panel{border-left:3px solid #c18b2d;padding-left:12px}.form-drawer .task-card{padding:10px}.form-drawer .task-card h3{font-size:13px}.form-drawer .workflow-form .check-field{align-items:flex-start}.form-drawer #id_employees{grid-template-columns:1fr}.form-drawer #id_employees label{font-size:13px}.planning-toolbar{border-radius:0;border:0;border-bottom:1px solid #e3e3e3;padding:10px 0;margin:14px 0}.calendar-day{background:#fff;border:1px solid #e4e7e5;border-radius:0;min-height:260px}.week-calendar{gap:0}.calendar-day h2{text-align:center;padding-bottom:12px;border-bottom:1px solid #eee}.schedule-card{border-radius:2px}.report-point{border-radius:2px}.template-layout>.panel{border-radius:0}
@media(max-width:900px){.app-shell{padding-left:190px}.sidebar{width:190px}.brand{font-size:16px;padding:0 12px}.register-search .search-fields{grid-template-columns:minmax(0,1fr) 160px}.workspace-header{font-size:11px}.workspace-header>div{gap:8px}}
@media(max-width:650px){body{font-size:14px}.app-shell{padding-left:0}.sidebar{width:100%;background:#333}.brand{height:58px;font-size:18px}.sidebar nav>a{min-height:44px}.workspace-header{height:44px;padding:0 12px}.workspace-header .topbar-actions{gap:6px}.topbar-create{padding:6px 8px;font-size:11px}.workspace-header .employee-name{max-width:80px}.sidebar-toggle{display:none}.app-shell main{padding:18px 14px 35px}.register-page main{padding:0 12px 30px}.register-search{padding:12px 0!important}.register-search .search-fields{grid-template-columns:1fr}.register-page .customer-table table{min-width:0}.register-page .customer-table td{grid-template-columns:92px minmax(0,1fr)}.empty-register{height:150px}.button,button{min-height:44px;font-size:14px}input,select,.workflow-form textarea{font-size:16px;min-height:44px}.form-drawer{width:100%;padding:18px 16px;box-shadow:none}.drawer-page main{padding:0}.form-drawer label{font-size:12px}.form-drawer .form-field small{font-size:12px}.form-drawer .actions{flex-wrap:wrap}.calendar-day{min-height:0}.sidebar-collapsed .sidebar{display:block}.navigation summary{min-height:40px}.cards section{padding:12px 0}}

/* Scroll wide internal tables within their panel on small screens. */
.table-wrap{overflow-x:auto;max-width:100%}

/* Customer forms overlay the existing, permission-filtered customer page. */
.customer-overlay-page{overflow:hidden}.customer-overlay-background{max-height:calc(100vh - 80px);overflow:hidden}.customer-overlay-shade{position:fixed;inset:44px 0 0 225px;background:#15231b22;z-index:80}.customer-overlay-drawer{position:fixed;top:44px;right:0;bottom:0;z-index:81;overflow-y:auto;min-height:0;width:min(500px,90vw);box-shadow:-8px 0 28px #0003}.overlay-close{float:right;padding:5px 10px;font-size:20px;text-decoration:none}.sidebar-collapsed .customer-overlay-shade{left:0}.customer-overlay-drawer textarea{width:100%;max-width:100%;font:inherit;padding:10px}.customer-overlay-drawer .form-field{margin-bottom:14px}@media(max-width:650px){.customer-overlay-shade{inset:0}.customer-overlay-drawer{top:0;width:95vw;padding:18px 16px}.customer-overlay-background{max-height:100vh}}
