@font-face{font-family:Rubik;src:url('../fonts/Rubik/Rubik-Regular.ttf') format('truetype');font-weight:400;font-display:swap}
@font-face{font-family:Rubik;src:url('../fonts/Rubik/Rubik-Medium.ttf') format('truetype');font-weight:500;font-display:swap}
@font-face{font-family:Rubik;src:url('../fonts/Rubik/Rubik-SemiBold.ttf') format('truetype');font-weight:600;font-display:swap}
:root{--f7-font-family:Rubik,sans-serif;--f7-page-bg-color:var(--app-page-bg);--f7-navbar-bg-color:var(--app-surface);--f7-navbar-text-color:var(--app-text-primary);--f7-tabbar-bg-color:var(--app-surface);--f7-tabbar-link-inactive-color:var(--app-text-secondary)}
body{font-family:Rubik,sans-serif;color:var(--app-text-primary);background:var(--app-page-bg)}
:root.ios.dark,:root.md.dark{--f7-page-bg-color:var(--app-page-bg);--f7-card-bg-color:var(--app-surface);--f7-navbar-bg-color:var(--app-surface)}
.service-content .app-button{white-space:normal;text-overflow:clip;height:auto;text-transform:none;line-height:1.4;padding-top:var(--app-space-sm);padding-bottom:var(--app-space-sm)}
.service-content{max-width:var(--app-content-max-width);margin:auto;padding:var(--app-space-md);padding-bottom:calc(var(--app-space-lg) + var(--app-safe-area-bottom));box-sizing:border-box}
.service-stack{display:flex;flex-direction:column;gap:var(--app-space-md)}
.service-row{display:flex;align-items:center;justify-content:space-between;gap:var(--app-space-sm);min-width:0}
.service-row>*{min-width:0}
.service-row>[data-service-status-legend]{width:auto;margin-left:auto;justify-content:flex-end;text-align:right}
.service-meta{color:var(--app-text-secondary);font-size:var(--app-font-size-body);line-height:1.5;overflow-wrap:anywhere}
.service-title{font-size:var(--app-font-size-title);font-weight:600;margin:0;line-height:1.3;overflow-wrap:anywhere}
.service-subtitle{font-size:var(--app-font-size-title-sm);font-weight:500;margin:0;line-height:1.4;overflow-wrap:anywhere}
.service-auth{min-height:75vh;display:flex;flex-direction:column;justify-content:center;gap:var(--app-space-lg);max-width:400px;margin:auto}
.service-auth label{display:flex;flex-direction:column;gap:var(--app-space-sm);font-size:var(--app-font-size-body)}
.service-auth .service-meta{margin:0}
.service-options{display:flex;justify-content:flex-end;align-items:center;gap:var(--app-space-sm)}
.service-options select{width:auto;max-width:180px}
.service-kpis{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--app-space-sm)}
.service-kpis .card{margin:0}
.service-kpis strong{display:block;font-size:var(--app-font-size-title);margin-top:var(--app-space-sm)}
.service-order{margin:0;color:inherit;display:block}
.service-order .card-content-padding{display:flex;flex-direction:column;gap:var(--app-space-sm)}
.service-order p{margin:0;overflow-wrap:anywhere}
.service-address{font-weight:500;line-height:1.5}
.service-status{font-size:var(--app-font-size-caption);white-space:normal;line-height:1.4;flex-shrink:0;max-width:48%;margin:0}
.service-filters{display:flex;gap:var(--app-space-sm);overflow:auto;padding-bottom:var(--app-space-xs)}
.service-filters>*{flex:0 0 auto}
.service-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:var(--app-space-md)}
.service-grid dt{color:var(--app-text-secondary);font-size:var(--app-font-size-caption);margin-bottom:var(--app-space-xs)}
.service-grid dd{margin:0;overflow-wrap:anywhere}
.service-actions{display:flex;flex-wrap:wrap;gap:var(--app-space-sm)}
.service-actions>*{flex:1 1 160px;min-width:0;overflow-wrap:anywhere}
.service-timeline{padding-left:var(--app-space-lg);display:flex;flex-direction:column;gap:var(--app-space-md)}
.service-timeline p{margin:var(--app-space-xs) 0}
.service-menu{margin:0}
.service-menu .item-title{white-space:normal}
.service-field-error{color:var(--app-color-error);font-size:var(--app-font-size-body);line-height:1.5}
.service-avatar{width:var(--app-navbar-avatar-size);height:var(--app-navbar-avatar-size);border-radius:var(--app-navbar-avatar-radius);object-fit:cover;background:var(--app-surface-muted)}
.service-auth-surface{position:fixed;inset:0;z-index:10000;overflow:auto;background:var(--app-page-bg);padding-top:var(--app-safe-area-top);padding-bottom:var(--app-safe-area-bottom)}
.service-auth-surface>.service-content{width:100%}
#service-protected .page-content{padding-bottom:calc(var(--f7-toolbar-height) + var(--app-safe-area-bottom))}
#service-protected .page-content>.service-content{padding-left:0;padding-right:0}
#service-protected .toolbar .tab-link{min-width:0}
#service-protected .toolbar .tabbar-label{white-space:normal;text-align:center}
.service-media-preview{display:block;width:100%;height:auto;max-height:80vh;object-fit:contain}
@media(prefers-reduced-motion:reduce){.service-content *{scroll-behavior:auto}}

.service-kanban{display:flex;gap:var(--app-space-md);overflow-x:auto;scroll-snap-type:x proximity;padding-bottom:var(--app-space-md)}
.service-kanban-column{flex:0 0 88%;min-width:0;scroll-snap-align:start}
.service-order-filters>.service-row>label{flex:1;min-width:0}

.service-table-scroll{overflow-x:auto}
.service-report-table{border-collapse:collapse;width:100%;font-size:var(--app-font-size-caption)}
.service-report-table th,.service-report-table td{padding:var(--app-space-xs);border-bottom:1px solid var(--app-border)}
.service-report-group{display:flex;flex-direction:column;gap:var(--app-space-sm)}
.service-report-series{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;align-items:center;gap:var(--app-space-sm)}
.service-report-series progress{width:100%;accent-color:var(--app-text-primary)}

.service-brand-logo{max-width:200px;max-height:72px;object-fit:contain;object-position:left center}.service-brand-logo[hidden]{display:none}

.service-message-text{white-space:pre-line}

/* Accepted PDF page utility geometry, scoped to the new document family. */
.page[data-name="service-document"] .app-w-full { width:100%; }
.page[data-name="service-document"] .app-h-full { height:100%; }
.page[data-name="service-document"] iframe { width:100%; border:0; background:var(--app-surface); }
.page[data-name="service-document"] .app-m-20 { margin:20px; }
.page[data-name="service-document"] .app-fixed-bottom-bar-full { position:absolute; left:0; right:0; bottom:0; z-index:2; background:var(--app-page-bg); }

#service-protected.service-focus-view .page-content { padding-bottom:var(--app-safe-area-bottom); }
#service-protected .navbar .left { flex-shrink:0; }
#service-protected .navbar .left>.link { min-width:44px; justify-content:center; }

/* Auth uses the client page/content geometry inside its isolated guest view. */
#service-auth-content{height:100%;width:100%;position:relative}
#service-auth-content .page,#service-pin-surface .auth-flow-page{background:var(--app-page-bg)}
#service-auth-content .auth-flow-content form{display:block;width:100%}
#service-auth-content .auth-flow-content label{display:block}
#service-auth-content .service-field-error{margin-bottom:var(--app-space-md)}
.service-auth-progress{display:block;margin-bottom:var(--app-space-md)}
#service-auth-content .navbar .title,#service-pin-surface .navbar .title{min-width:0;overflow:hidden;text-overflow:ellipsis}
#service-auth-content .title-large-text,#service-pin-surface .title-large-text{white-space:normal;line-height:1.15}

/* Company identity uses the existing client banner; only logo placement is scoped here. */
.service-company-logo{background:var(--app-surface);color:var(--app-text-primary);display:flex;align-items:center;justify-content:center;position:relative;flex-shrink:0;overflow:hidden}
.service-company-logo img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:var(--app-surface)}
.service-company .link-banner-text{min-width:0}
.service-company .link-banner-title{overflow-wrap:anywhere}

/* Client Profile camera/chips; service-only arrangement, shared tokens. */
.settings-image .edit-profile-image{background:var(--app-brand-primary);border-color:var(--app-surface)}
.settings-image .edit-profile-image i{color:var(--app-on-brand)}
.service-profile-roles{display:flex;flex-direction:column;align-items:center;gap:var(--app-space-sm);margin-top:var(--app-space-md)}
.service-profile-roles .chip{height:auto;max-width:100%;margin:0;padding-left:var(--app-space-sm)}
.service-profile-roles .chip-label{white-space:normal;overflow:visible;text-overflow:clip;line-height:var(--app-line-height-base,1.5);padding-block:var(--app-space-xs)}
.service-profile-roles .chip-media{flex-shrink:0;color:var(--app-text-primary);margin-right:var(--app-space-xs)}
.service-profile-roles .chip-media i{color:inherit}
.service-order-tabs{margin-bottom:var(--app-space-md)}
#service-home-overview{padding-top:var(--app-space-md)}

/* Service order composition reuses client cards/badges/progress/Framework7 accordion. */
.service-address{display:flex;gap:var(--app-space-sm);align-items:flex-start}
.service-address>.icon{color:var(--app-text-secondary);flex-shrink:0;font-size:var(--app-font-size-title)}
.service-address>div{min-width:0;flex:1}
.service-address strong{display:block;overflow-wrap:anywhere;font-size:var(--app-font-size-title-sm)}
.service-location-parts{display:flex;flex-wrap:wrap;gap:var(--app-space-sm) var(--app-space-md);margin:var(--app-space-sm) 0 0}
.service-location-parts>div{min-width:0}
.service-location-parts dt{font-size:var(--app-font-size-caption);color:var(--app-text-secondary);font-weight:400}
.service-location-parts dd{margin:0;overflow-wrap:anywhere}
.service-order-meta{margin:0;padding-top:var(--app-space-sm);border-top:1px solid var(--app-border)}
.service-order-category{padding-block:var(--app-space-xs)}
.service-status-help{gap:var(--app-space-xs)}
.service-status-help p{margin:0}
.service-status-help .service-status{max-width:100%;align-self:flex-start}
.service-order-filters{margin-bottom:var(--app-space-md)}
.service-order-steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:var(--app-space-xs);list-style:none;margin:var(--app-space-sm) 0 0;padding:0}
.service-order-steps li{display:flex;flex-direction:column;gap:var(--app-space-xs);align-items:center;text-align:center;font-size:var(--app-font-size-caption);overflow-wrap:anywhere;color:var(--app-text-secondary)}
.service-order-steps li[aria-current]{color:var(--app-text-primary);font-weight:500}
.service-order-steps .icon{font-size:var(--app-font-size-title-sm)}
.service-history{margin:0}
.service-history .item-title{white-space:normal}
.accordion-item-content{padding:0 10px}
.page.service-order-page{display:flex;flex-direction:column}
#service-protected .page.service-order-page>.page-content{height:auto;min-height:0;flex:1;padding-bottom:0}
.page.service-order-page>.service-order-dock{position:relative;left:auto;bottom:auto;width:auto;z-index:2;flex-shrink:0;background:var(--app-surface);border-top:1px solid var(--app-border);padding:var(--app-space-sm) var(--app-page-padding) calc(var(--app-space-sm) + var(--app-safe-area-bottom))}
.service-order-dock .service-actions{max-width:var(--app-content-max-width);margin:auto;flex-wrap:nowrap}
.service-order-dock .app-button{flex:1;min-width:0;white-space:normal;height:auto;line-height:1.4;padding:var(--app-space-sm);text-transform:none}

/* Service filters use the client popup/list-radio; only content placement is local. */
.service-filter-controls{margin-bottom:var(--app-space-md)}
.service-filter-controls>.app-button--icon{flex-shrink:0;position:relative}
.service-filter-controls .badge{position:absolute;inset-block-start:0;inset-inline-end:0}
.service-filter-fieldset{border:0;padding:0;margin:0;min-width:0}
.service-filter-fieldset .list{margin-block:var(--app-space-sm) 0}
.service-filter-fieldset .service-status{max-width:100%;white-space:normal}
#service-protected .settings-header{position:relative;padding-top:calc(var(--app-space-lg) + var(--app-button-height,44px))}
#service-protected .settings-header>.service-profile-logout{position:absolute;inset-block-start:var(--app-space-sm);inset-inline-end:var(--app-space-sm)}
/* Keep native radio keyboard/screen-reader semantics despite F7's hidden input. */
.service-filter-fieldset .item-radio input[type=radio]{display:block;position:absolute;opacity:0;width:1px;height:1px}
.service-filter-fieldset .item-radio:focus-within{outline:2px solid var(--app-brand-primary);outline-offset:-2px}
.service-order-tabs.segmented.segmented-strong .button.tab-link-active{color:var(--app-on-brand);--f7-button-bg-color:var(--app-brand-primary);--f7-button-hover-bg-color:var(--app-brand-primary)}
.service-order-tabs .segmented-highlight{background:var(--app-brand-primary)}
.service-filter-controls>[data-service-status-legend]{width:auto;margin-left:0;margin-right:auto;justify-content:flex-start;text-align:left;gap:var(--app-space-xs)}

/* Larger shared service controls, retaining client component semantics. */
.service-filter-controls>.app-button--icon>.icon{font-size:28px}
.service-status{display:inline-flex;align-items:center;font-size:var(--app-font-size-button);padding:var(--app-space-sm) var(--app-space-12);border-radius:var(--app-button-radius);box-sizing:border-box}
.service-section-heading>.service-filter-controls{margin:0;flex-shrink:0}
.service-section-heading>.service-filter-controls>span:empty{display:none}
.service-filter-popup .page-content{overflow:hidden;display:flex;padding-bottom:0}
.service-filter-popup .page-content>.service-content{width:100%;min-height:0;margin:0 auto;display:flex;padding:var(--app-space-md) 0 0}
.service-filter-popup-form{display:flex;flex-direction:column;flex:1;min-height:0;min-width:0}
.service-filter-fields{overflow:auto;min-height:0;flex:1;padding:var(--app-space-xs);overscroll-behavior:contain}
.service-filter-actions{flex-shrink:0;flex-wrap:nowrap;padding:var(--app-space-12) 0 calc(var(--app-space-12) + var(--app-safe-area-bottom));border-top:1px solid var(--app-border);background:var(--app-page-bg)}
.service-filter-actions>.app-button{margin:0;flex:1 1 0;min-height:var(--app-button-height)}
.service-filter-fieldset .item-radio .icon-radio{display:block;position:relative;inset:auto;width:24px;height:24px;box-sizing:border-box;border:2px solid var(--app-text-secondary);border-radius:50%;flex-shrink:0;background:var(--app-surface);margin-inline-end:var(--app-space-md)}
.service-filter-fieldset .item-radio .icon-radio:after{content:'';position:absolute;inset:4px;width:auto;height:auto;border-radius:50%;background:transparent;transform:none}
.service-filter-fieldset .item-radio input:checked~.icon-radio{border-color:var(--app-text-primary);background:var(--app-surface)}
.service-filter-fieldset .item-radio input:checked~.icon-radio:after{background:var(--app-text-primary)}
#service-protected .settings-header{margin:0 0 35px}
#service-protected .settings-header>.service-profile-logout{width:52px;min-height:52px;padding:var(--app-space-12);background:var(--app-color-error);color:var(--app-text-primary);border-radius:var(--app-button-radius)}
.service-profile-logout>.icon{font-size:28px;color:#fff}
[data-service-order-progress]{--f7-progressbar-progress-color:var(--app-color-success)}
[data-service-order-progress]>span{background:var(--app-color-success)}
.service-order-steps .icon{font-size:32px}
.service-order-steps .service-step-reached .icon{color:var(--app-color-success)}
#service-protected .page.service-order-page>.page-content>.service-content{padding-bottom:calc(90px + var(--app-safe-area-bottom))}
.service-timeline{list-style:none;padding:0;margin:0;gap:0}
.service-timeline>li{position:relative;display:flex;align-items:flex-start;gap:var(--app-space-12);padding-bottom:var(--app-space-lg)}
.service-timeline>li:last-child{padding-bottom:0}
.service-timeline>li:not(:last-child):before{content:'';position:absolute;inset-inline-start:15px;top:32px;bottom:0;width:2px;background:var(--app-border)}
.service-timeline-marker{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:32px;height:32px;border-radius:50%;background:var(--app-surface-muted);color:var(--app-text-primary);z-index:1}
.service-timeline-marker>.icon{font-size:22px}
.service-timeline-event{min-width:0;flex:1;overflow-wrap:anywhere}
.service-timeline-title{font-weight:500;line-height:1.5}
.service-timeline-actor{display:flex;gap:var(--app-space-xs);align-items:center}
.service-timeline-actor>.icon{font-size:var(--app-font-size-title-sm)}
.service-timeline-event .service-timeline-comment{background:var(--app-surface-muted);border-radius:var(--app-button-radius);padding:var(--app-space-sm) var(--app-space-12);margin-top:var(--app-space-sm);line-height:1.5}
.service-media-group-title{margin:0;font-size:var(--app-font-size-body);font-weight:500;color:var(--app-text-secondary)}
.service-media-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--app-space-sm)}
.service-content .service-media-tile{margin:0;display:flex;flex-direction:column;align-items:stretch;gap:var(--app-space-sm);padding:var(--app-space-sm);height:auto;text-align:start;overflow:hidden}
.service-media-cover{position:relative;display:flex;align-items:center;justify-content:center;aspect-ratio:4/3;background:var(--app-surface-muted);border-radius:var(--app-button-radius);overflow:hidden;color:var(--app-text-primary)}
.service-media-cover>.icon{font-size:40px}
.service-media-cover>img{position:absolute;inset:0;width:100%;height:100%;max-width:100%;max-height:100%;margin:0;object-fit:cover}
.service-media-cover>img:not([src]){visibility:hidden}

/* Service action forms share the client popup and fixed-action geometry. */
.service-action-popup .page-content{display:flex;overflow:hidden;padding-bottom:0}
.service-action-popup .page-content>.service-content{display:flex;min-height:0;width:100%;padding:0;margin:0 auto}
.service-action-form{display:flex;flex-direction:column;min-height:0;min-width:0;flex:1}
.service-action-fields{min-height:0;overflow:auto;flex:1;padding:var(--app-space-md) 0;overscroll-behavior:contain}
.service-action-footer{flex-shrink:0;flex-wrap:nowrap;background:var(--app-page-bg);border-top:1px solid var(--app-border);padding:var(--app-space-12) 0 calc(var(--app-space-12) + var(--app-safe-area-bottom))}
.service-action-footer>.app-button{flex:1 1 0;margin:0;min-height:var(--app-button-height)}
.service-action-form .app-button{margin:0}
.service-action-context .service-address strong{font-size:var(--app-font-size-button)}
.service-action-context .service-location-parts{margin-top:var(--app-space-xs);gap:var(--app-space-xs) var(--app-space-12)}
.service-action-context .service-status{font-size:var(--app-font-size-body);max-width:50%}
.service-action-intro{display:flex;align-items:flex-start;gap:var(--app-space-12)}
.service-action-intro p{margin:0;line-height:1.5;color:var(--app-text-secondary);font-size:var(--app-font-size-button)}
.service-action-symbol{width:44px;height:44px;display:flex;align-items:center;justify-content:center;flex-shrink:0;background:var(--app-surface-muted);border-radius:var(--app-button-radius);color:var(--app-text-primary)}
.service-action-symbol .icon{font-size:26px}
.service-action-symbol-danger{color:var(--app-color-error);background:var(--app-color-error-soft)}
.service-action-field{display:flex;flex-direction:column;gap:var(--app-space-sm);min-width:0}
.service-action-field>label,.service-action-workers>legend{font-size:var(--app-font-size-button);font-weight:500}
.service-action-field>.service-meta{margin:0}
.service-action-form input:not([type=radio]),.service-action-form textarea{font-size:16px}
.service-action-form textarea{resize:vertical;min-height:120px}
.service-action-counter{text-align:end}
.service-action-form .service-field-error{margin:0;overflow-wrap:anywhere}
.service-action-form [aria-invalid=true]{border-color:var(--app-color-error)}
.service-worker-list{max-height:260px;overflow:auto;overscroll-behavior:contain}
.service-worker-list .item-title{white-space:normal;overflow-wrap:anywhere;font-size:var(--app-font-size-button)}
.service-worker-list .item-radio:has(input:checked) .item-title{font-weight:600}
.service-action-workers [data-action-more-workers]{margin-top:var(--app-space-sm)}
.service-action-menu .item-title{display:flex;flex-direction:column;gap:var(--app-space-xs);white-space:normal}
.service-action-menu .item-content{padding-block:var(--app-space-sm)}
.service-action-menu .item-media{color:var(--app-text-primary)}
.service-action-menu .item-media .icon{font-size:28px}
.service-action-menu .service-action-destructive{border-top:1px solid var(--app-border)}
.service-action-menu .service-action-destructive strong,.service-action-menu .service-action-destructive .item-media{color:var(--app-color-error)}
.service-action-menu .page-content{padding-bottom:var(--app-safe-area-bottom)}
.service-action-file{display:flex;gap:var(--app-space-sm);align-items:center;padding:var(--app-space-sm);border:1px solid var(--app-border);border-radius:var(--app-button-radius);min-width:0}
.service-action-file-cover{width:56px;height:56px;flex-shrink:0;display:flex;align-items:center;justify-content:center;overflow:hidden;border-radius:var(--app-button-radius);background:var(--app-surface-muted)}
.service-action-file-cover>img{width:100%;height:100%;object-fit:cover}
.service-action-file-cover>.icon{font-size:28px}
.service-action-file-info{min-width:0;flex:1;display:flex;flex-direction:column;gap:var(--app-space-xs);overflow-wrap:anywhere}
.service-action-file>.app-button{flex-shrink:0}
.service-action-file>.app-button>.icon{font-size:24px}

.service-action-menu .service-meta{font-weight:400}
.service-action-popup .service-action-form textarea.app-form-control{height:auto;min-height:120px;padding:var(--app-space-12);font-size:16px;line-height:1.5}
.service-action-popup .app-form-control[aria-invalid=true]{border-color:var(--app-color-error)}

.service-order-tabs [data-service-list-tab]{gap:var(--app-space-xs)}

/* Profile large-navbar scroll opacity must not bleed into information details. */
.service-information-view #tab-4 .navbar-previous{visibility:hidden;pointer-events:none}

/* Management pages share the existing cards, metadata and filter controls. */
.service-workspace-view #tab-1 .navbar-previous{visibility:hidden;pointer-events:none}
.service-workspace-page .service-workspace-filter summary{cursor:pointer;font-weight:500}
.service-workspace-page .service-workspace-filters label,.service-workspace-page .service-report-filters label{display:flex;flex-direction:column;gap:var(--app-space-sm);min-width:0}
.service-workspace-page .service-order-meta dd{margin:0;overflow-wrap:anywhere}
.service-workspace-page .service-order-meta dt{color:var(--app-text-secondary);font-size:var(--app-font-size-caption)}
.service-workspace-page .service-stack>h1{display:none}
.service-workspace-page .service-section-heading{display:none}
.service-workspace-page .service-status{max-width:100%;align-self:flex-start}
.service-workspace-page .service-report-series{min-width:0}

/* Tab panels use the page gutter without adding another inset at each level. */
#service-protected .custom-tabs .tab{padding-left:0;padding-right:0}

/* Employee identity and the existing action-form layout. */
.service-employee-identity{display:flex;align-items:center;gap:var(--app-space-12);min-width:0}
.service-employee-identity>span,.service-employee-identity>div{min-width:0;overflow-wrap:anywhere}
.service-employee-avatar{width:calc(var(--app-navbar-avatar-size) + var(--app-space-md));height:calc(var(--app-navbar-avatar-size) + var(--app-space-md));flex-shrink:0;object-fit:cover;border-radius:var(--app-navbar-avatar-radius);background:var(--app-surface-muted)}
.service-employee-popup .page-content>.service-employee-content{flex-direction:column;padding:0 var(--app-page-padding)}
.service-employee-summary{padding:var(--app-space-md) 0;flex-shrink:0}
.service-employee-summary .service-meta{margin:var(--app-space-xs) 0 0}
.service-employee-modes{flex-shrink:0;gap:var(--app-space-xs)}
.service-employee-modes>.app-button{flex:1;min-width:0;white-space:normal;line-height:1.3}
.service-employee-popup [data-employee-form-slot]{display:flex;flex:1;min-height:0}
.service-employee-popup .service-action-fields>label{display:flex;flex-direction:column;gap:var(--app-space-xs)}
.service-employee-popup .service-action-fields>label.service-row{flex-direction:row;align-items:center}
.service-employee-popup .service-action-fields>.service-meta{margin:0}
.service-employee-roles{margin:0;padding:var(--app-space-12);border:1px solid var(--app-border);border-radius:var(--app-radius-md)}
.service-employee-roles legend{padding:0 var(--app-space-xs)}
.service-employee-roles label,.service-employee-popup label.service-row{min-height:var(--app-button-height)}
.service-employee-popup input[type=file]{height:auto;min-height:var(--app-input-height);padding:var(--app-space-12);max-width:100%;box-sizing:border-box}
.service-employee-popup .page-content{padding-left:0;padding-right:0}
.service-employee-popup .service-action-fields>label,.service-employee-popup .app-form-control{margin:0}
/* Keep the Framework7 checkbox visual while exposing its native input to keyboard/AT. */
.service-employee-popup .checkbox input[type=checkbox]{display:block;position:absolute;inset:0;width:100%;height:100%;opacity:0;z-index:1;margin:0}
.service-employee-popup .checkbox:focus-within{outline:2px solid var(--app-brand-primary);outline-offset:2px}
.service-employee-popup .service-row>.checkbox{flex-shrink:0}
.service-employee-roles .service-row>span:first-child{flex:1;white-space:normal;overflow-wrap:anywhere}

.service-employee-popup .service-employee-roles,.service-employee-photo-section{border:0;padding:0;margin:0;min-width:0}
.service-employee-popup .service-employee-roles legend,.service-employee-photo-section legend{padding:0;font-weight:500;margin-bottom:var(--app-space-sm)}
.service-employee-roles>.service-meta,.service-employee-photo-section>.service-meta{margin:0 0 var(--app-space-12)}
.service-employee-popup .service-employee-role{margin:0;padding:var(--app-space-12);border:1px solid var(--app-border);border-radius:var(--app-radius-md);background:var(--app-surface);gap:var(--app-space-12)}
.service-employee-role:has(input:checked){border-color:var(--app-brand-primary)}
.service-employee-role-copy{display:flex;flex-direction:column;gap:var(--app-space-xs)}
.service-employee-role-copy strong{font-weight:500}
.service-employee-photo-editor{display:flex;align-items:center;gap:var(--app-space-md);min-width:0}
.service-employee-photo-editor>.service-stack{min-width:0;flex:1;gap:var(--app-space-sm)}
.service-employee-photo-editor .service-employee-avatar{width:calc(var(--app-navbar-avatar-size) * 2);height:calc(var(--app-navbar-avatar-size) * 2)}
.service-employee-popup .service-employee-file{position:relative;display:flex;align-items:center;justify-content:center;gap:var(--app-space-sm);margin:0}
.service-employee-popup .service-employee-file input[type=file]{position:absolute;inset:0;opacity:0;width:100%;height:100%;min-height:0;padding:0;margin:0;cursor:pointer}
.service-employee-file:focus-within{outline:2px solid var(--app-brand-primary);outline-offset:2px}
.service-employee-photo-remove{margin:0;padding:var(--app-space-sm) 0;border-top:1px solid var(--app-border)}
.service-employee-popup .service-employee-role,.service-employee-popup .service-employee-photo-remove{display:flex;align-items:center;justify-content:space-between}
.service-employee-role-copy .service-meta{font-weight:400}

.service-order-contact>.service-order-contact-copy{flex:1 1 0;min-width:0}
.service-order-contact strong{overflow-wrap:anywhere}
.service-order-contact .service-row{justify-content:flex-start;flex-wrap:wrap;margin-top:var(--app-space-xs)}
.service-execution-timeline{margin:var(--app-space-12) 0 0}
.service-execution .timeline-item-divider{width:32px;background:none;flex-shrink:0;margin:0}
.service-execution .timeline-item-divider>.icon{font-size:26px;color:var(--app-brand-primary);background:var(--app-surface);z-index:1}
.service-execution .timeline-item-content{min-width:0;padding-bottom:var(--app-space-md)}
.service-execution .timeline-item-inner{padding:0 var(--app-space-xs) var(--app-space-12) var(--app-space-12);background:none;border-radius:0}
.service-execution .timeline-item-title{font-size:var(--app-font-size-body);font-weight:500;white-space:normal;overflow-wrap:anywhere}
.service-execution .timeline-item-inner>.service-meta{display:block;margin:var(--app-space-xs) 0}
.service-execution .timeline-item-inner>.service-timeline-actor{display:flex}
.service-execution .service-timeline-comment{padding:var(--app-space-sm);background:var(--app-surface-muted);border-radius:var(--app-radius-md)}
.service-execution .service-execution-planned .timeline-item-title,.service-execution .service-execution-planned .icon{color:var(--app-text-secondary)}
.service-execution .timeline-item:last-child .timeline-item-content{padding-bottom:0}
.service-workspace-page .item-media .service-employee-avatar{border-radius:var(--app-radius-md);object-fit:contain}
img.service-category-photo{display:block;width:calc(var(--app-navbar-avatar-size) + var(--app-space-md));height:calc(var(--app-navbar-avatar-size) + var(--app-space-md));min-width:calc(var(--app-navbar-avatar-size) + var(--app-space-md));max-width:calc(var(--app-navbar-avatar-size) + var(--app-space-md));min-height:calc(var(--app-navbar-avatar-size) + var(--app-space-md));max-height:calc(var(--app-navbar-avatar-size) + var(--app-space-md));flex-shrink:0;aspect-ratio:1;object-fit:contain;border-radius:var(--app-radius-md)}

/* Fixed contact edges; text alone consumes the remaining width. */
.service-order-contact>.service-employee-avatar{width:50px;height:50px;min-width:50px;max-width:50px;min-height:50px;max-height:50px;flex:0 0 50px}
.service-order-contact>.service-order-contact-call{width:50px;height:50px;min-width:50px;max-width:50px;min-height:50px;max-height:50px;flex:0 0 50px;box-sizing:border-box;margin:0;padding:0;display:flex;align-items:center;justify-content:center}
.service-order-contact-copy .service-meta{overflow-wrap:anywhere}
.service-execution .service-execution-complete .timeline-item-title,.service-execution .service-execution-complete .timeline-item-divider>.icon{color:var(--app-color-success)}
.service-execution .service-execution-current .timeline-item-title,.service-execution .service-execution-current .timeline-item-divider>.icon{color:var(--app-color-info)}
.service-execution .service-execution-complete .timeline-item-divider::after{background:var(--app-color-success)}

/* Reports arrange existing cards/tabs; chart geometry is bounded SVG data. */
.service-report-tabs{overflow-x:auto;flex-shrink:0}
.service-report-tabs .button{min-width:0;min-height:44px;white-space:normal;line-height:1.3}
.service-report-plot{display:block;width:100%;height:auto;overflow:visible}
.service-report-plot text{fill:var(--app-text-secondary);font-size:14px}
.service-chart-grid{stroke:var(--app-border);stroke-width:1}
.service-chart-line-0,.service-chart-line-1,.service-chart-line-2,.service-chart-line-3{fill:none;stroke-width:3;stroke:var(--app-brand-primary)}
.service-chart-line-1{stroke:var(--app-color-success);stroke-dasharray:6 3}
.service-chart-line-2{stroke:var(--app-color-warning)}
.service-chart-line-3{stroke:var(--app-color-error)}
.service-chart-fill-0{fill:var(--app-brand-primary)}
.service-chart-fill-1{fill:var(--app-color-success)}
.service-chart-fill-2{fill:var(--app-color-warning)}
.service-chart-fill-3{fill:var(--app-color-error)}
.service-chart-label-0{color:var(--app-brand-primary)}
.service-chart-label-1{color:var(--app-color-success)}
.service-chart-label-2{color:var(--app-color-warning)}
.service-chart-label-3{color:var(--app-color-error)}

/* Analytics uses the existing action popup; these rules only arrange its fields. */
.service-facts-popup .service-action-field>label{display:flex;flex-direction:column;gap:var(--app-space-sm)}
.service-facts-popup select.app-form-control{font-size:16px;appearance:auto}
.service-facts-popup summary{cursor:pointer;font-weight:500;min-height:44px;align-content:center;overflow-wrap:anywhere}
.service-facts-popup [data-asset-selected]{overflow-wrap:anywhere}
.service-facts-popup [data-asset-results] .app-button{white-space:normal;height:auto;text-align:start;overflow-wrap:anywhere}
.service-facts-popup [data-asset-lookup]>div{padding-top:var(--app-space-sm)}
.service-facts-popup .service-action-fields>*{flex-shrink:0}

/* Service shell owns the framework theme at the body scope as well as html. */
html body,html.dark body,html.ios body.dark,html.md body.dark{--f7-page-bg-color:var(--app-page-bg);--f7-theme-color:var(--app-brand-primary);--f7-theme-color-rgb:var(--app-brand-primary-rgb);--f7-navbar-bg-color:var(--app-page-bg);--f7-navbar-bg-color-rgb:var(--app-page-bg-rgb);--f7-toolbar-bg-color:var(--app-page-bg);--f7-toolbar-bg-color-rgb:var(--app-page-bg-rgb);--f7-tabbar-link-active-color:var(--app-text-primary);--f7-tabbar-link-inactive-color:var(--app-text-secondary);background:var(--app-page-bg)}
#service-protected>.toolbar,.service-auth-surface .navbar-bg,#service-protected .navbar-bg{background:var(--app-page-bg)}
#service-protected .toolbar .tab-link{color:var(--app-text-secondary)}
#service-protected .toolbar .tab-link-active{color:var(--app-text-primary)}
#service-protected .segmented .button{color:var(--app-text-primary)}
#service-protected .segmented .button-active,#service-protected .segmented .tab-link-active{color:var(--app-on-brand);background:var(--app-brand-primary)}

#service-auth-content .page[data-name="login"] .auth-flow-content{display:flex;flex-direction:column}
#service-auth-content .page[data-name="login"] .auth-flow-content>*{flex-shrink:0}
.service-auth-credit{margin-top:auto;padding-top:var(--app-space-lg)}
#service-auth-content .auth-flow-content{background:var(--app-page-bg)}
#service-protected .toolbar .tab-link .tabbar-label{color:inherit}
