/* required styles */

.leaflet-pane,
.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow,
.leaflet-tile-container,
.leaflet-pane > svg,
.leaflet-pane > canvas,
.leaflet-zoom-box,
.leaflet-image-layer,
.leaflet-layer {
	position: absolute;
	left: 0;
	top: 0;
	}
.leaflet-container {
	overflow: hidden;
	}
.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow {
	-webkit-user-select: none;
	   -moz-user-select: none;
	        user-select: none;
	  -webkit-user-drag: none;
	}
/* Prevents IE11 from highlighting tiles in blue */
.leaflet-tile::selection {
	background: transparent;
}
/* Safari renders non-retina tile on retina better with this, but Chrome is worse */
.leaflet-safari .leaflet-tile {
	image-rendering: -webkit-optimize-contrast;
	}
/* hack that prevents hw layers "stretching" when loading new tiles */
.leaflet-safari .leaflet-tile-container {
	width: 1600px;
	height: 1600px;
	-webkit-transform-origin: 0 0;
	}
.leaflet-marker-icon,
.leaflet-marker-shadow {
	display: block;
	}
/* .leaflet-container svg: reset svg max-width decleration shipped in Joomla! (joomla.org) 3.x */
/* .leaflet-container img: map is broken in FF if you have max-width: 100% on tiles */
.leaflet-container .leaflet-overlay-pane svg {
	max-width: none !important;
	max-height: none !important;
	}
.leaflet-container .leaflet-marker-pane img,
.leaflet-container .leaflet-shadow-pane img,
.leaflet-container .leaflet-tile-pane img,
.leaflet-container img.leaflet-image-layer,
.leaflet-container .leaflet-tile {
	max-width: none !important;
	max-height: none !important;
	width: auto;
	padding: 0;
	}

.leaflet-container img.leaflet-tile {
	/* See: https://bugs.chromium.org/p/chromium/issues/detail?id=600120 */
	mix-blend-mode: plus-lighter;
}

.leaflet-container.leaflet-touch-zoom {
	-ms-touch-action: pan-x pan-y;
	touch-action: pan-x pan-y;
	}
.leaflet-container.leaflet-touch-drag {
	-ms-touch-action: pinch-zoom;
	/* Fallback for FF which doesn't support pinch-zoom */
	touch-action: none;
	touch-action: pinch-zoom;
}
.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom {
	-ms-touch-action: none;
	touch-action: none;
}
.leaflet-container {
	-webkit-tap-highlight-color: transparent;
}
.leaflet-container a {
	-webkit-tap-highlight-color: rgba(51, 181, 229, 0.4);
}
.leaflet-tile {
	filter: inherit;
	visibility: hidden;
	}
.leaflet-tile-loaded {
	visibility: inherit;
	}
.leaflet-zoom-box {
	width: 0;
	height: 0;
	-moz-box-sizing: border-box;
	     box-sizing: border-box;
	z-index: 800;
	}
/* workaround for https://bugzilla.mozilla.org/show_bug.cgi?id=888319 */
.leaflet-overlay-pane svg {
	-moz-user-select: none;
	}

.leaflet-pane         { z-index: 400; }

.leaflet-tile-pane    { z-index: 200; }
.leaflet-overlay-pane { z-index: 400; }
.leaflet-shadow-pane  { z-index: 500; }
.leaflet-marker-pane  { z-index: 600; }
.leaflet-tooltip-pane   { z-index: 650; }
.leaflet-popup-pane   { z-index: 700; }

.leaflet-map-pane canvas { z-index: 100; }
.leaflet-map-pane svg    { z-index: 200; }

.leaflet-vml-shape {
	width: 1px;
	height: 1px;
	}
.lvml {
	behavior: url(#default#VML);
	display: inline-block;
	position: absolute;
	}


/* control positioning */

.leaflet-control {
	position: relative;
	z-index: 800;
	pointer-events: visiblePainted; /* IE 9-10 doesn't have auto */
	pointer-events: auto;
	}
.leaflet-top,
.leaflet-bottom {
	position: absolute;
	z-index: 1000;
	pointer-events: none;
	}
.leaflet-top {
	top: 0;
	}
.leaflet-right {
	right: 0;
	}
.leaflet-bottom {
	bottom: 0;
	}
.leaflet-left {
	left: 0;
	}
.leaflet-control {
	float: left;
	clear: both;
	}
.leaflet-right .leaflet-control {
	float: right;
	}
.leaflet-top .leaflet-control {
	margin-top: 10px;
	}
.leaflet-bottom .leaflet-control {
	margin-bottom: 10px;
	}
.leaflet-left .leaflet-control {
	margin-left: 10px;
	}
.leaflet-right .leaflet-control {
	margin-right: 10px;
	}


/* zoom and fade animations */

.leaflet-fade-anim .leaflet-popup {
	opacity: 0;
	-webkit-transition: opacity 0.2s linear;
	   -moz-transition: opacity 0.2s linear;
	        transition: opacity 0.2s linear;
	}
.leaflet-fade-anim .leaflet-map-pane .leaflet-popup {
	opacity: 1;
	}
.leaflet-zoom-animated {
	-webkit-transform-origin: 0 0;
	    -ms-transform-origin: 0 0;
	        transform-origin: 0 0;
	}
svg.leaflet-zoom-animated {
	will-change: transform;
}

.leaflet-zoom-anim .leaflet-zoom-animated {
	-webkit-transition: -webkit-transform 0.25s cubic-bezier(0,0,0.25,1);
	   -moz-transition:    -moz-transform 0.25s cubic-bezier(0,0,0.25,1);
	        transition:         transform 0.25s cubic-bezier(0,0,0.25,1);
	}
.leaflet-zoom-anim .leaflet-tile,
.leaflet-pan-anim .leaflet-tile {
	-webkit-transition: none;
	   -moz-transition: none;
	        transition: none;
	}

.leaflet-zoom-anim .leaflet-zoom-hide {
	visibility: hidden;
	}


/* cursors */

.leaflet-interactive {
	cursor: pointer;
	}
.leaflet-grab {
	cursor: -webkit-grab;
	cursor:    -moz-grab;
	cursor:         grab;
	}
.leaflet-crosshair,
.leaflet-crosshair .leaflet-interactive {
	cursor: crosshair;
	}
.leaflet-popup-pane,
.leaflet-control {
	cursor: auto;
	}
.leaflet-dragging .leaflet-grab,
.leaflet-dragging .leaflet-grab .leaflet-interactive,
.leaflet-dragging .leaflet-marker-draggable {
	cursor: move;
	cursor: -webkit-grabbing;
	cursor:    -moz-grabbing;
	cursor:         grabbing;
	}

/* marker & overlays interactivity */
.leaflet-marker-icon,
.leaflet-marker-shadow,
.leaflet-image-layer,
.leaflet-pane > svg path,
.leaflet-tile-container {
	pointer-events: none;
	}

.leaflet-marker-icon.leaflet-interactive,
.leaflet-image-layer.leaflet-interactive,
.leaflet-pane > svg path.leaflet-interactive,
svg.leaflet-image-layer.leaflet-interactive path {
	pointer-events: visiblePainted; /* IE 9-10 doesn't have auto */
	pointer-events: auto;
	}

/* visual tweaks */

.leaflet-container {
	background: #ddd;
	outline-offset: 1px;
	}
.leaflet-container a {
	color: #0078A8;
	}
.leaflet-zoom-box {
	border: 2px dotted #38f;
	background: rgba(255,255,255,0.5);
	}


/* general typography */
.leaflet-container {
	font-family: "Helvetica Neue", Arial, Helvetica, sans-serif;
	font-size: 12px;
	font-size: 0.75rem;
	line-height: 1.5;
	}


/* general toolbar styles */

.leaflet-bar {
	box-shadow: 0 1px 5px rgba(0,0,0,0.65);
	border-radius: 4px;
	}
.leaflet-bar a {
	background-color: #fff;
	border-bottom: 1px solid #ccc;
	width: 26px;
	height: 26px;
	line-height: 26px;
	display: block;
	text-align: center;
	text-decoration: none;
	color: black;
	}
.leaflet-bar a,
.leaflet-control-layers-toggle {
	background-position: 50% 50%;
	background-repeat: no-repeat;
	display: block;
	}
.leaflet-bar a:hover,
.leaflet-bar a:focus {
	background-color: #f4f4f4;
	}
.leaflet-bar a:first-child {
	border-top-left-radius: 4px;
	border-top-right-radius: 4px;
	}
.leaflet-bar a:last-child {
	border-bottom-left-radius: 4px;
	border-bottom-right-radius: 4px;
	border-bottom: none;
	}
.leaflet-bar a.leaflet-disabled {
	cursor: default;
	background-color: #f4f4f4;
	color: #bbb;
	}

.leaflet-touch .leaflet-bar a {
	width: 30px;
	height: 30px;
	line-height: 30px;
	}
.leaflet-touch .leaflet-bar a:first-child {
	border-top-left-radius: 2px;
	border-top-right-radius: 2px;
	}
.leaflet-touch .leaflet-bar a:last-child {
	border-bottom-left-radius: 2px;
	border-bottom-right-radius: 2px;
	}

/* zoom control */

.leaflet-control-zoom-in,
.leaflet-control-zoom-out {
	font: bold 18px 'Lucida Console', Monaco, monospace;
	text-indent: 1px;
	}

.leaflet-touch .leaflet-control-zoom-in, .leaflet-touch .leaflet-control-zoom-out  {
	font-size: 22px;
	}


/* layers control */

.leaflet-control-layers {
	box-shadow: 0 1px 5px rgba(0,0,0,0.4);
	background: #fff;
	border-radius: 5px;
	}
.leaflet-control-layers-toggle {
	background-image: url(images/layers.png);
	width: 36px;
	height: 36px;
	}
.leaflet-retina .leaflet-control-layers-toggle {
	background-image: url(images/layers-2x.png);
	background-size: 26px 26px;
	}
.leaflet-touch .leaflet-control-layers-toggle {
	width: 44px;
	height: 44px;
	}
.leaflet-control-layers .leaflet-control-layers-list,
.leaflet-control-layers-expanded .leaflet-control-layers-toggle {
	display: none;
	}
.leaflet-control-layers-expanded .leaflet-control-layers-list {
	display: block;
	position: relative;
	}
.leaflet-control-layers-expanded {
	padding: 6px 10px 6px 6px;
	color: #333;
	background: #fff;
	}
.leaflet-control-layers-scrollbar {
	overflow-y: scroll;
	overflow-x: hidden;
	padding-right: 5px;
	}
.leaflet-control-layers-selector {
	margin-top: 2px;
	position: relative;
	top: 1px;
	}
.leaflet-control-layers label {
	display: block;
	font-size: 13px;
	font-size: 1.08333em;
	}
.leaflet-control-layers-separator {
	height: 0;
	border-top: 1px solid #ddd;
	margin: 5px -10px 5px -6px;
	}

/* Default icon URLs */
.leaflet-default-icon-path { /* used only in path-guessing heuristic, see L.Icon.Default */
	background-image: url(images/marker-icon.png);
	}


/* attribution and scale controls */

.leaflet-container .leaflet-control-attribution {
	background: #fff;
	background: rgba(255, 255, 255, 0.8);
	margin: 0;
	}
.leaflet-control-attribution,
.leaflet-control-scale-line {
	padding: 0 5px;
	color: #333;
	line-height: 1.4;
	}
.leaflet-control-attribution a {
	text-decoration: none;
	}
.leaflet-control-attribution a:hover,
.leaflet-control-attribution a:focus {
	text-decoration: underline;
	}
.leaflet-attribution-flag {
	display: inline !important;
	vertical-align: baseline !important;
	width: 1em;
	height: 0.6669em;
	}
.leaflet-left .leaflet-control-scale {
	margin-left: 5px;
	}
.leaflet-bottom .leaflet-control-scale {
	margin-bottom: 5px;
	}
.leaflet-control-scale-line {
	border: 2px solid #777;
	border-top: none;
	line-height: 1.1;
	padding: 2px 5px 1px;
	white-space: nowrap;
	-moz-box-sizing: border-box;
	     box-sizing: border-box;
	background: rgba(255, 255, 255, 0.8);
	text-shadow: 1px 1px #fff;
	}
.leaflet-control-scale-line:not(:first-child) {
	border-top: 2px solid #777;
	border-bottom: none;
	margin-top: -2px;
	}
.leaflet-control-scale-line:not(:first-child):not(:last-child) {
	border-bottom: 2px solid #777;
	}

.leaflet-touch .leaflet-control-attribution,
.leaflet-touch .leaflet-control-layers,
.leaflet-touch .leaflet-bar {
	box-shadow: none;
	}
.leaflet-touch .leaflet-control-layers,
.leaflet-touch .leaflet-bar {
	border: 2px solid rgba(0,0,0,0.2);
	background-clip: padding-box;
	}


/* popup */

.leaflet-popup {
	position: absolute;
	text-align: center;
	margin-bottom: 20px;
	}
.leaflet-popup-content-wrapper {
	padding: 1px;
	text-align: left;
	border-radius: 12px;
	}
.leaflet-popup-content {
	margin: 13px 24px 13px 20px;
	line-height: 1.3;
	font-size: 13px;
	font-size: 1.08333em;
	min-height: 1px;
	}
.leaflet-popup-content p {
	margin: 17px 0;
	margin: 1.3em 0;
	}
.leaflet-popup-tip-container {
	width: 40px;
	height: 20px;
	position: absolute;
	left: 50%;
	margin-top: -1px;
	margin-left: -20px;
	overflow: hidden;
	pointer-events: none;
	}
.leaflet-popup-tip {
	width: 17px;
	height: 17px;
	padding: 1px;

	margin: -10px auto 0;
	pointer-events: auto;

	-webkit-transform: rotate(45deg);
	   -moz-transform: rotate(45deg);
	    -ms-transform: rotate(45deg);
	        transform: rotate(45deg);
	}
.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
	background: white;
	color: #333;
	box-shadow: 0 3px 14px rgba(0,0,0,0.4);
	}
.leaflet-container a.leaflet-popup-close-button {
	position: absolute;
	top: 0;
	right: 0;
	border: none;
	text-align: center;
	width: 24px;
	height: 24px;
	font: 16px/24px Tahoma, Verdana, sans-serif;
	color: #757575;
	text-decoration: none;
	background: transparent;
	}
.leaflet-container a.leaflet-popup-close-button:hover,
.leaflet-container a.leaflet-popup-close-button:focus {
	color: #585858;
	}
.leaflet-popup-scrolled {
	overflow: auto;
	}

.leaflet-oldie .leaflet-popup-content-wrapper {
	-ms-zoom: 1;
	}
.leaflet-oldie .leaflet-popup-tip {
	width: 24px;
	margin: 0 auto;

	-ms-filter: "progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)";
	filter: progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678);
	}

.leaflet-oldie .leaflet-control-zoom,
.leaflet-oldie .leaflet-control-layers,
.leaflet-oldie .leaflet-popup-content-wrapper,
.leaflet-oldie .leaflet-popup-tip {
	border: 1px solid #999;
	}


/* div icon */

.leaflet-div-icon {
	background: #fff;
	border: 1px solid #666;
	}


/* Tooltip */
/* Base styles for the element that has a tooltip */
.leaflet-tooltip {
	position: absolute;
	padding: 6px;
	background-color: #fff;
	border: 1px solid #fff;
	border-radius: 3px;
	color: #222;
	white-space: nowrap;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
	pointer-events: none;
	box-shadow: 0 1px 3px rgba(0,0,0,0.4);
	}
.leaflet-tooltip.leaflet-interactive {
	cursor: pointer;
	pointer-events: auto;
	}
.leaflet-tooltip-top:before,
.leaflet-tooltip-bottom:before,
.leaflet-tooltip-left:before,
.leaflet-tooltip-right:before {
	position: absolute;
	pointer-events: none;
	border: 6px solid transparent;
	background: transparent;
	content: "";
	}

/* Directions */

.leaflet-tooltip-bottom {
	margin-top: 6px;
}
.leaflet-tooltip-top {
	margin-top: -6px;
}
.leaflet-tooltip-bottom:before,
.leaflet-tooltip-top:before {
	left: 50%;
	margin-left: -6px;
	}
.leaflet-tooltip-top:before {
	bottom: 0;
	margin-bottom: -12px;
	border-top-color: #fff;
	}
.leaflet-tooltip-bottom:before {
	top: 0;
	margin-top: -12px;
	margin-left: -6px;
	border-bottom-color: #fff;
	}
.leaflet-tooltip-left {
	margin-left: -6px;
}
.leaflet-tooltip-right {
	margin-left: 6px;
}
.leaflet-tooltip-left:before,
.leaflet-tooltip-right:before {
	top: 50%;
	margin-top: -6px;
	}
.leaflet-tooltip-left:before {
	right: 0;
	margin-right: -12px;
	border-left-color: #fff;
	}
.leaflet-tooltip-right:before {
	left: 0;
	margin-left: -12px;
	border-right-color: #fff;
	}

/* Printing */

@media print {
	/* Prevent printers from removing background-images of controls. */
	.leaflet-control {
		-webkit-print-color-adjust: exact;
		print-color-adjust: exact;
		}
	}









.dialog{margin:auto}
:root{--background:#f3f6f8;--foreground:#20394a;--primary:#146454;--primary-foreground:#fff;--card:#fff;--card-foreground:#20394a;--border:#dce5eb;--muted:#eef3f6;--muted-foreground:#627887;--ring:#20856f;--radius:.75rem;color-scheme:light}
*{box-sizing:border-box}body{margin:0;font-family:Arial,Helvetica,sans-serif;background:var(--background);color:var(--foreground);font-size:16px}button,input,select,textarea{font:inherit}button,a,input,select,textarea{outline-offset:4px}button:focus-visible,a:focus-visible{outline:3px solid #20856f}button{cursor:pointer}button:disabled{opacity:.55;cursor:not-allowed}button,a{touch-action:manipulation}button svg{width:18px;height:18px;flex-shrink:0}input,select,textarea{border:1px solid #cbd8df;border-radius:8px;background:white;color:#20394a;padding:11px 12px;width:100%;min-height:44px}textarea{resize:vertical;min-height:105px}label{font-size:14px;font-weight:600;display:grid;gap:8px}small{font-size:13px;color:#617785}h1,h2,h3,p{margin:0}h1{font-size:30px;letter-spacing:-.8px;font-weight:650}h2{font-size:20px;font-weight:650}h3{font-weight:600}a{color:#146454}button{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid #d4e0e7;background:white;border-radius:8px;padding:10px 15px;color:#355266;min-height:42px;font-size:14px;font-weight:600}.primary{background:#146454;color:white;border-color:#146454}.primary:hover{background:#104e43}.ghost{border-color:transparent;background:transparent}.danger{color:#ad3535}.shell{display:grid;grid-template-columns:232px minmax(0,1fr);min-height:100vh}.sidebar{background:#193b4d;color:#dce8ed;padding:30px 18px;display:flex;flex-direction:column;position:sticky;top:0;height:100vh}.brand{display:flex;gap:12px;align-items:center;padding:0 8px 35px}.brand-mark{background:#b7e9d8;color:#164b40;border-radius:11px;padding:10px;display:flex}.brand strong{font-size:19px;letter-spacing:1px;color:white}.brand small{display:block;color:#bdd0d9;font-size:12px;margin-top:4px}.nav-label{font-size:12px;letter-spacing:1.6px;color:#9db6c3;margin:0 12px 15px}.nav{display:grid;gap:7px}.nav button{background:none;color:#c7d9e1;border:0;justify-content:flex-start;text-align:left;padding:13px 14px;font-size:14px}.nav button.active{background:#2c5666;color:white;box-shadow:inset 3px 0 #a9e6cd}.sidebar-footer{margin-top:auto;border-top:1px solid #3b5867;padding:20px 8px 0}.sidebar-footer p{font-size:14px;color:white;margin-bottom:6px}.sidebar-footer small{color:#b4cbd6;font-size:13px;line-height:1.6}.workspace{min-width:0}.topbar{min-height:77px;border-bottom:1px solid #dce5eb;background:white;display:flex;justify-content:space-between;align-items:center;padding:18px 36px;gap:16px}.breadcrumb{font-size:14px;color:#627987}.account{display:flex;gap:12px;align-items:center;font-size:14px}.avatar{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:#e3f1ed;color:#146454;font-weight:bold}.account small{display:block;margin-top:3px}.content{max-width:1550px;margin:0 auto;padding:34px 36px 48px}.heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:28px}.heading p{color:#667e8e;margin-top:9px;font-size:14px;line-height:1.6}.eyebrow{font-size:12px;letter-spacing:1.6px;color:#497466;font-weight:700;margin-bottom:10px}.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:27px}.metric{padding:21px 23px;background:white;border:1px solid #dce5eb;border-radius:12px;position:relative;overflow:hidden}.metric:before{content:'';position:absolute;top:0;left:0;height:100%;width:3px;background:var(--tone,#9caeb9)}.metric-label{display:flex;align-items:center;justify-content:space-between;font-size:14px;color:#5a7180;gap:8px}.metric-label svg{width:19px;height:19px}.metric strong{display:block;font-size:33px;font-weight:600;margin:14px 0 7px;font-variant-numeric:tabular-nums}.panel{border:1px solid #dce5eb;border-radius:12px;background:white;overflow:hidden}.panel-head{padding:23px 24px;border-bottom:1px solid #e3eaf0;display:flex;justify-content:space-between;align-items:center;gap:16px}.panel-head small{display:block;margin-top:5px}.filters{display:grid;grid-template-columns:minmax(210px,1.5fr) minmax(150px,1fr) minmax(150px,1fr) auto;align-items:end;gap:14px;padding:20px 24px;border-bottom:1px solid #e3eaf0;background:#fcfdfe}.filters label{font-size:14px;color:#627887}.search{position:relative}.search svg{position:absolute;left:12px;top:13px;width:18px;height:18px;color:#7c8f9b}.search input{padding-left:39px}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;font-size:14px;text-align:left}th{font-size:12px;letter-spacing:.6px;text-transform:uppercase;font-weight:600;background:#f8fafb;color:#637b89;padding:15px 22px;white-space:nowrap}td{padding:20px 22px;border-top:1px solid #edf1f4;vertical-align:middle}td small{display:block;margin-top:6px}td strong{font-weight:600}tbody tr:hover{background:#fafcfd}.number{color:#1d5f52}.badge{display:inline-flex;align-items:center;white-space:nowrap;font-size:14px;font-weight:600;padding:7px 10px;border-radius:6px;background:#edf2f6;color:#526b7c}.status-0{background:#eef2f7;color:#556b85}.status-1{background:#fff2d9;color:#946317}.status-2{background:#e5f1ff;color:#28639a}.status-3{background:#e3f3eb;color:#297252}.inactive{background:#f8eaea;color:#9b4444}.empty{padding:60px 24px 65px;text-align:center;display:grid;justify-items:center;gap:12px}.empty-icon{padding:18px;border-radius:50%;color:#557d75;background:#eef5f3;margin-bottom:4px}.empty h3{font-size:18px}.empty p{max-width:430px;line-height:1.7;color:#69808e;font-size:14px}.empty button{margin-top:10px}.table-footer{padding:16px 24px;border-top:1px solid #e3eaf0;display:flex;justify-content:space-between;align-items:center;gap:12px;color:#6a8090;font-size:13px}.pagination{display:flex;align-items:center;gap:9px}.notice{padding:16px 20px;border:1px solid #bcd8cc;background:#edf7f2;border-radius:10px;margin-bottom:22px;display:flex;align-items:center;justify-content:space-between;gap:16px;font-size:14px;line-height:1.6}.error{background:#fff0ee;border-color:#edc4be;color:#953e30}.success{color:#216749}.loading{padding:80px 20px;text-align:center;color:#708896}.cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.center-card{border:1px solid #dce5eb;background:white;border-radius:12px;padding:23px}.center-card-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}.center-symbol{border:1px solid #dce7e5;border-radius:9px;padding:10px;background:#f1f7f5;display:flex;color:#367560}.center-card h3{font-size:18px;margin-bottom:7px}.center-card p{font-size:14px;color:#738592}.center-counts{display:flex;gap:28px;margin:24px 0;padding-top:20px;border-top:1px solid #edf0f2}.center-counts strong{font-size:24px;display:block;margin-bottom:5px}.card-actions{display:flex;gap:8px;flex-wrap:wrap}.dialog{border:0;border-radius:15px;padding:0;width:min(620px,calc(100% - 32px));max-height:90vh;color:#20394a;box-shadow:0 30px 90px #193b4d40;background:white}.dialog::backdrop{background:#152f4380;backdrop-filter:blur(3px)}.dialog-head{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:23px 26px;border-bottom:1px solid #e4ebef}.dialog-body{padding:25px 26px;display:grid;gap:20px}.dialog-actions{display:flex;justify-content:flex-end;gap:10px;border-top:1px solid #e4ebef;padding:19px 26px;background:#f8fafb}.two-fields{display:grid;grid-template-columns:1fr 1fr;gap:16px}.hint{font-size:13px;line-height:1.65;color:#708595}.detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.detail-grid small{display:block;margin-bottom:7px}.observation{background:#f5f8fa;border:1px solid #e4ebef;border-radius:8px;padding:15px;white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.6}.timeline{list-style:none;padding:0;margin:0}.timeline li{border-left:2px solid #dce9e3;padding:0 0 20px 20px;margin-left:5px;font-size:14px}.timeline li:last-child{padding-bottom:0}.timeline small{display:block;margin-top:6px;line-height:1.6}.role-help{padding:13px 15px;background:#eef5f3;border-radius:8px;font-size:14px;color:#416b5c;line-height:1.6}.view-note{font-size:13px;color:#748b98;margin-top:23px;display:flex;align-items:center;gap:8px}.view-note svg{width:15px;height:15px}.mono{font-variant-numeric:tabular-nums}.inline-actions{display:flex;gap:8px}.user-email{overflow-wrap:anywhere}.error-card{padding:40px;max-width:600px;margin:40px auto;line-height:1.7}.error-card p{margin:12px 0 20px}
@media(min-width:1600px){.content{padding-top:44px}.heading{margin-bottom:35px}}@media(max-width:1100px){.shell{grid-template-columns:190px minmax(0,1fr)}.sidebar{padding:25px 10px}.content{padding:28px 22px}.topbar{padding:18px 22px}.metric{padding:19px 16px}.cards{grid-template-columns:1fr 1fr}.filters{grid-template-columns:1fr 1fr}.filters>label:first-child{grid-column:1/-1}}@media(max-width:750px){.shell{display:block}.sidebar{position:static;height:auto;padding:16px}.brand{padding:0 0 16px}.brand small,.nav-label,.sidebar-footer{display:none}.nav{display:flex;gap:5px;overflow:auto}.nav button{white-space:nowrap;padding:10px}.nav button.active{box-shadow:inset 0 -3px #a9e6cd}.topbar{padding:14px 18px;min-height:65px}.breadcrumb{font-size:13px}.account>div:nth-child(2){display:none}.content{padding:24px 16px}.heading{align-items:flex-start;flex-wrap:wrap;margin-bottom:22px}h1{font-size:26px}.metrics{grid-template-columns:1fr 1fr;gap:10px}.metric{padding:16px}.metric strong{font-size:28px}.metric small{font-size:12px}.metric-label{font-size:14px}.panel-head{padding:18px}.filters{padding:18px;gap:12px}.filters .ghost{justify-self:start}.cards{grid-template-columns:1fr}.table-footer{padding:16px;flex-wrap:wrap}.notice{flex-wrap:wrap}.two-fields{grid-template-columns:1fr}.dialog-head,.dialog-body{padding:20px}.dialog-actions{padding:16px 20px}.view-note{line-height:1.6}.account{gap:7px}.nav button svg{width:16px}.account a{font-size:13px}}

.refresh-controls{display:flex;align-items:center;justify-content:flex-end;gap:14px;flex-wrap:wrap}.refresh-countdown{display:inline-flex;align-items:center;gap:7px;color:#627887;font-size:13px;white-space:nowrap}.refresh-countdown svg{width:16px;height:16px}.refresh-countdown strong{color:#355266;font-variant-numeric:tabular-nums;min-width:36px}.panel-head{flex-wrap:wrap}

.customer-name{overflow-wrap:anywhere;max-width:240px}

.finalized-filter{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 24px;border-bottom:1px solid #e3eaf0;font-size:13px;color:#627887;flex-wrap:wrap}.finalized-filter button[aria-pressed=true]{background:#e3f3eb;border-color:#b7d8c9;color:#216749}

.operator-preview-picker{display:flex;align-items:end;gap:12px;padding:0 0 24px;flex-wrap:wrap}.operator-preview-picker label{min-width:260px;max-width:100%;font-size:13px}.operator-center-label{display:flex;align-items:center;gap:10px;background:#e4f0ed;color:#236354;border:1px solid #cce0d9;padding:12px 16px;border-radius:9px;font-weight:600;font-size:15px}.operator-center-label svg{width:21px;height:21px}.operator-orders{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:12px;padding:16px;background:#f8fafb}.operator-order{border:1px solid #dce5eb;border-top:3px solid #72a293;border-radius:10px;background:#fff;padding:14px;min-width:0;display:flex;flex-direction:column}.operator-order-top{display:flex;align-items:center;justify-content:space-between;gap:12px}.operator-order-top h3{font-size:19px;color:#1b5e51;margin-top:2px;overflow-wrap:anywhere}.operator-order-client{display:grid;gap:3px;margin:10px 0;font-size:15px;overflow-wrap:anywhere}.operator-delivery{display:flex;align-items:center;gap:8px;padding:9px 10px;background:#edf4f8;border-radius:7px;margin-bottom:8px}.operator-delivery small{display:block;margin-bottom:3px}.operator-delivery strong{font-size:14px}.operator-received{display:block;line-height:1.4;margin:8px 0 10px}.operator-order-actions{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;margin-top:auto;padding-top:10px;border-top:1px solid #e6edef}.operator-order-actions button{min-height:40px;padding:8px 10px}.operator-order .badge{padding:5px 8px}.operator-order .observation{padding:8px 10px;line-height:1.45;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.operator-shell .notice a{white-space:nowrap;font-weight:600}@media(max-width:750px){.operator-orders{padding:12px}.operator-order{padding:14px}.operator-preview-picker label{min-width:0;width:100%}}

.operator-login{min-height:100vh;display:grid;place-items:center;padding:24px;background:#193b4d}.login-card{width:min(440px,100%);padding:34px;border-radius:18px;background:white;box-shadow:0 20px 60px #102a3b44}.login-card .brand-mark{width:fit-content;margin-bottom:22px}.login-card>p:not(.eyebrow){font-size:15px;line-height:1.6;color:#617785;margin-top:12px}.login-card form{display:grid;gap:20px;margin:26px 0}.login-card>small{line-height:1.6}

/* Compact operator cards: secondary information remains in Details. */
.operator-orders{grid-template-columns:repeat(auto-fit,minmax(min(100%,255px),1fr));gap:10px;padding:12px;align-items:start}
.operator-order{padding:12px;border-radius:8px}
.operator-order-top h3{font-size:18px;margin:0}
.operator-order-top>div>small{display:none}
.operator-order-client{margin:8px 0;gap:2px;font-size:14px}
.operator-order-client>small{display:none}
.operator-delivery{padding:7px 8px;margin-bottom:7px;gap:7px}
.operator-delivery small{font-size:12px;margin-bottom:2px}
.operator-delivery strong{font-size:14px}
.operator-order .observation{padding:0;border:0;background:transparent;font-size:13px;line-height:1.4;-webkit-line-clamp:1;margin-bottom:7px}
.operator-received{display:none}
.operator-order-actions{padding-top:8px;gap:6px;margin-top:0}
.operator-order-actions button{min-height:36px;padding:7px 8px;font-size:13px;gap:5px}
.operator-order-actions button svg{width:15px;height:15px}
.operator-order .badge{font-size:12px;padding:4px 6px}

.received-highlight-toggle{display:inline-flex;align-items:center;gap:8px;font-size:14px;font-weight:600;color:#355266;cursor:pointer}
.received-highlight-toggle input{width:18px;height:18px;min-height:0;margin:0;accent-color:#146454}
.operator-order-attention{animation:received-attention 2s ease-in-out infinite;border-color:#ef9200}
@keyframes received-attention{0%,100%{background-color:#fff8dc;border-color:#ef9200;box-shadow:0 0 0 1px #f6ae3b66}50%{background-color:#ffe066;border-color:#e27700;box-shadow:0 0 0 3px #ffb30099,0 0 12px #ffb30055}}
@media(prefers-reduced-motion:reduce){.operator-order-attention{animation:none;background:#ffe066;border-color:#e27700;box-shadow:0 0 0 2px #ffb30099}}

.delivery-countdown{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:3px 8px;text-align:center;padding:6px 8px;margin:-2px -2px 9px;border-radius:6px;background:#edf3f7;color:#355266;font-size:13px;line-height:1.35;font-variant-numeric:tabular-nums}
.delivery-countdown strong{font-size:12px;letter-spacing:.2px}.delivery-countdown span{font-weight:600}
.delivery-countdown-today{background:#ffedba;color:#79500a;border:1px solid #e3bc5c}
.delivery-countdown-late{background:#ffe4df;color:#9b3225;border:1px solid #e7a49a}
.delivery-countdown-complete{background:#e3f3eb;color:#297252}
.delivery-countdown-unset{background:#f0f3f5;color:#617785}

.admin-delivery .delivery-countdown{margin:6px 0 0;padding:4px 6px;justify-content:flex-start;text-align:left;flex-direction:column;align-items:flex-start;gap:2px;font-size:12px;width:fit-content}.admin-delivery .delivery-countdown strong{font-size:10px}.admin-delivery .delivery-countdown span{white-space:nowrap}

.filters.column-filters{grid-template-columns:repeat(3,minmax(0,1fr))}.filters.column-filters>label:first-child{grid-column:auto}.column-filters input,.column-filters select{min-width:0}@media(max-width:900px){.filters.column-filters{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:500px){.filters.column-filters{grid-template-columns:1fr}}

.delivery-change{display:grid;gap:4px;background:#f0e8ff;color:#59368a;border:1px solid #b79ad9;border-radius:6px;padding:8px;margin-bottom:8px;font-size:12px}.delivery-change small{color:#59368a;font-size:11px}.delivery-pending{color:#946317;font-weight:600;margin:0 0 6px}.delivery-edit{display:grid;gap:10px;padding:14px;border:1px solid #d4e0e7;border-radius:8px}.delivery-edit button{justify-self:start}
.analysis{display:grid;gap:22px}.analysis-explanation{padding:16px 24px;color:#617785;font-size:13px;line-height:1.6}.analysis-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.analysis-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.analysis-chart{padding:24px}.analysis-chart>p{font-size:13px;line-height:1.6;color:#617785;margin:8px 0 20px}.analysis-bars{display:grid;gap:18px;margin-top:24px}.analysis-bar-row{display:grid;grid-template-columns:130px minmax(0,1fr) 32px;align-items:center;gap:12px;font-size:13px}.analysis-track{height:15px;background:#edf3f5;border-radius:5px;overflow:hidden}.analysis-track>div{height:100%;border-radius:5px}.analysis-legend{display:flex;gap:20px;font-size:12px;color:#367f73}.analysis-legend span+span{color:#7599c5}.analysis-trend{display:flex;gap:10px;overflow-x:auto;padding-top:32px;padding-bottom:10px}.analysis-day{flex:1;min-width:32px;text-align:center}.analysis-columns{height:125px;display:flex;align-items:flex-end;justify-content:center;gap:3px}.analysis-columns>div{width:14px;background:#367f73;position:relative;border-radius:3px 3px 0 0}.analysis-columns>div+div{background:#7599c5}.analysis-columns span{position:absolute;top:-18px;left:0;width:100%;font-size:10px}.analysis-day small{display:block;font-size:10px;margin-top:10px}.analysis-times{display:grid;gap:16px;margin:20px 0}.analysis-times>div{display:grid;grid-template-columns:1fr auto;gap:5px;font-size:13px;border-bottom:1px solid #edf1f4;padding-bottom:12px}.analysis-times strong{font-size:20px;color:#246d60}.analysis-times small{grid-column:1/-1}.analysis-red{color:#ab3e30}.analysis-insights{padding-left:20px;font-size:14px;line-height:1.7}.analysis-insights li{margin:12px 0}@media(max-width:1000px){.analysis-grid{grid-template-columns:1fr}.analysis-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:550px){.analysis-metrics{grid-template-columns:1fr}.analysis-chart{padding:18px}.analysis-bar-row{grid-template-columns:110px minmax(0,1fr) 24px}}

.operator-delivery-method{display:flex;align-items:center;gap:5px;font-size:12px;color:#526b7c;margin:6px 0}

.operator-order-representative{display:grid;gap:2px;margin:5px 0 6px;font-size:12px;overflow-wrap:anywhere}.operator-order-representative small{font-size:10px;color:#617785}.operator-order-representative strong{font-weight:600}

.transfer-notice{display:grid;gap:4px;padding:8px;margin-bottom:8px;border-radius:6px;background:#e6f2fb;color:#2a597d;font-size:12px;overflow-wrap:anywhere}.transfer-notice span{white-space:pre-wrap}

.status-4{background:#eee5fa;color:#7545a0}.metrics{grid-template-columns:repeat(5,minmax(0,1fr))}.operator-order-actions,.dialog-actions{flex-wrap:wrap}@media(max-width:1000px){.metrics{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:750px){.metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}

.operator-order-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;align-items:stretch}.operator-status-actions{display:grid;min-width:0;margin:0}.operator-status-choice{grid-column:1/-1;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.operator-order-actions button{width:100%;height:52px;min-height:52px;min-width:0;padding:6px 8px;white-space:normal;font-size:13px;line-height:1.3;justify-content:center;align-items:center}.operator-order-actions button svg{flex-shrink:0}

/* Equal card heights across the operator grid, with room for both action rows. */
.operator-orders{align-items:stretch;grid-auto-rows:1fr}.operator-order{height:100%;box-sizing:border-box}.operator-order .operator-order-actions{margin-top:auto;min-height:119px;align-content:end;flex-shrink:0}.operator-order>.delivery-countdown{min-height:48px;flex-shrink:0}

.operator-order-top{align-items:flex-start}.operator-status-details{display:flex;flex-direction:column;align-items:flex-end;gap:5px;flex-shrink:0}.operator-status-details .operator-details-button{font-size:11px;min-height:26px;height:26px;padding:3px 8px;border-radius:5px;font-weight:500}.operator-order .operator-order-actions{min-height:61px}.operator-status-actions:not(.operator-status-choice){grid-column:2}.operator-order-actions>button{grid-column:2}

.production-wait{grid-column:1/-1;color:#7545a0;font-size:12px;text-align:center}

.center-production-option{display:flex;align-items:center;gap:10px}.center-production-option input{width:18px;min-height:18px;height:18px;flex-shrink:0}.center-card .center-production-label{margin-top:10px;font-size:13px}

.production-origin{display:flex;align-items:center;gap:8px;padding:9px 10px;margin-bottom:9px;border:1px solid #a5c6e7;border-left:4px solid #3976b1;border-radius:6px;background:#e8f2fc;color:#234f78;overflow-wrap:anywhere}.production-origin small{display:block;font-size:10px;color:#476985}.production-origin strong{display:block;font-size:14px;margin-top:2px}

.brand.brand-official{display:flex;flex-direction:column;align-items:stretch;gap:12px;padding:0 0 28px;min-width:0}.brand-logo-surface{background:#fff;border-radius:8px;padding:10px 8px}.brand-logo{display:block;width:100%;height:auto}.brand-official>small{display:block;text-align:center;color:#bdd0d9;font-size:10px;letter-spacing:.6px;line-height:1.4}.login-brand-logo{display:block;width:min(100%,300px);height:auto;margin:0 auto 24px}@media(max-width:750px){.brand.brand-official{max-width:230px;padding-bottom:16px}.brand-official>small{display:none}}

/* Fixed operator card dimensions, independent of order count and viewport. */
.operator-orders{grid-template-columns:repeat(auto-fill,300px);grid-auto-rows:440px;justify-content:start;align-items:start;overflow-x:auto}.operator-order{width:300px;min-width:300px;max-width:300px;height:440px;min-height:440px;max-height:440px;overflow-y:auto;overflow-x:hidden;scrollbar-width:thin}.operator-order>*{flex-shrink:0}

.production-stage-0{background:#fff0c7;color:#805b10}.production-stage-1{background:#eee5fa;color:#7545a0}.production-stage-2{background:#e3f3eb;color:#297252}

.production-return{display:grid;gap:4px;padding:9px;margin-bottom:8px;border:1px solid #81b8a0;border-radius:6px;background:#e2f5ec;color:#205c47;font-size:12px;flex-shrink:0}



/* Dark green sidebar for production only. */
.production-shell .sidebar{background:#173f32;color:#e0eee6}.production-shell .sidebar .nav button{color:#d0e5d8}.production-shell .sidebar .nav button.active{background:#2b5944;color:#fff;box-shadow:inset 3px 0 #a9e6cd}.production-shell .sidebar .nav-label,.production-shell .sidebar .brand-official>small{color:#b4cdbd}.production-shell .sidebar .sidebar-footer{border-color:#3e6250}.production-shell .sidebar .sidebar-footer small{color:#bfd5c7}

.analysis-suggestions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.analysis-suggestion{padding:20px;border:1px solid #dce5eb;border-radius:9px;background:#fafcfb}.analysis-suggestion h3{font-size:16px;line-height:1.4;margin:12px 0 8px}.analysis-suggestion p,.analysis-suggestion dd{font-size:13px;line-height:1.65;color:#526b7c}.analysis-suggestion dl{margin:14px 0 0}.analysis-suggestion dt{font-size:12px;font-weight:700;color:#355266;margin:12px 0 4px}.analysis-suggestion dd{margin:0}.suggestion-priority{display:inline-block;background:#edf2f6;color:#526b7c;font-size:11px;padding:4px 8px;border-radius:5px}.suggestion-priority-high{background:#e0f0e8;color:#27634e}@media(max-width:900px){.analysis-suggestions{grid-template-columns:1fr}}

.metrics.metrics-with-daily{grid-template-columns:repeat(6,minmax(0,1fr))}@media(max-width:1200px){.metrics.metrics-with-daily{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:750px){.metrics.metrics-with-daily{grid-template-columns:repeat(2,minmax(0,1fr))}}

.metrics.metrics-production-summary{grid-template-columns:repeat(4,minmax(0,1fr))}@media(max-width:1000px){.metrics.metrics-production-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}
.sidebar-chats{display:flex;flex-direction:column;min-height:100px;flex:1;margin:24px 0 18px;border-top:1px solid #ffffff25;padding-top:14px;overflow:hidden}.sidebar-chats-heading{display:flex;align-items:center;justify-content:space-between;gap:6px;margin-bottom:10px}.sidebar-chats-heading>span{display:flex;align-items:center;gap:7px;font-size:13px;font-weight:600}.sidebar-chats-heading>button{min-height:30px;padding:5px;background:#ffffff12;border-color:#ffffff30;color:#e4f2f5}.sidebar-chat-list{overflow-y:auto;min-height:0;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#7697a5 transparent;padding:2px 5px 2px 0}.sidebar-chat-card{display:flex;flex-direction:column;align-items:stretch;text-align:left;width:100%;padding:10px;margin-bottom:8px;gap:5px;background:#ffffff0d;border:1px solid #ffffff26;color:#edf7fa;border-radius:8px;min-height:92px}.sidebar-chat-card:hover{background:#ffffff1c}.sidebar-chat-card strong{font-size:13px;overflow-wrap:anywhere}.sidebar-chat-card>span{font-size:12px;font-weight:400;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}.sidebar-chat-card small{font-size:11px;color:#bdd4df;font-weight:400}.chat-empty,.chat-list-error{font-size:12px;line-height:1.6;color:#c4d7df;margin:4px 0 10px}.chat-load-more{font-size:12px;width:100%;padding:6px}.sidebar .sidebar-footer{flex-shrink:0}.chat-window{color:#20394a;max-width:660px;text-align:left}.chat-window::backdrop{background:#152f4380}.chat-search,.chat-new-form{display:grid;gap:14px}.chat-search{grid-template-columns:1fr auto;align-items:end}.chat-conversation{padding:20px;display:grid;gap:14px;min-width:0}.chat-context{display:grid;gap:5px}.chat-context strong{font-size:15px}.chat-messages{max-height:42vh;min-height:100px;overflow:auto;overscroll-behavior:contain;display:flex;flex-direction:column;gap:12px;padding:12px;background:#f1f5f7;border-radius:8px}.chat-message{border:1px solid #d8e4e9;border-radius:9px;padding:12px;background:white;max-width:96%;align-self:flex-start;overflow-wrap:anywhere}.chat-message-admin{background:#e5f3ee;align-self:flex-end;border-color:#bcddd0}.chat-message strong{font-size:13px}.chat-message strong span{font-weight:400;font-size:11px}.chat-message p{white-space:pre-wrap;font-size:14px;line-height:1.5;margin:8px 0}.chat-message small{font-size:11px}.chat-compose{display:grid;gap:10px}.chat-compose textarea{min-height:75px;max-height:180px}.chat-compose button{justify-self:end}.chat-closed{font-size:12px;color:#396758;display:flex;gap:7px;align-items:center;line-height:1.5}.chat-history{display:grid;gap:12px}.chat-history-entry{border:1px solid #dce5eb;border-radius:8px;overflow:hidden}.chat-history-entry>button{width:100%;justify-content:flex-start;text-align:left;border:0;border-radius:0;padding:12px}.chat-history-entry>button span{min-width:0}.chat-history-entry>button small{display:block;font-weight:400;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:360px;margin-top:5px}.chat-history .chat-conversation{padding:12px}.chat-history .chat-messages{max-height:320px}@media(max-width:750px){.sidebar-chats{flex:none;height:240px;margin:16px 0 0}.chat-search{grid-template-columns:1fr}.chat-history-entry>button small{max-width:220px}.chat-conversation{padding:14px}}
.chat-finish-confirm{display:grid;gap:12px;margin:0}.chat-finish-confirm p{font-size:14px;line-height:1.5}.chat-finish-confirm .inline-actions{flex-wrap:wrap}
.chat-recipient-picker{border:1px solid #d4e0e7;border-radius:8px;padding:14px;display:grid;gap:12px;min-width:0}.chat-recipient-picker legend{font-weight:600;font-size:14px}.chat-recipient-picker legend svg{vertical-align:middle;margin-right:6px}.chat-recipient-list{max-height:220px;overflow-y:auto;display:grid;gap:6px}.chat-recipient-list label{display:flex;align-items:center;gap:10px;padding:8px;border:1px solid #e1e9ec;border-radius:6px;cursor:pointer}.chat-recipient-list input{width:18px;min-height:18px;flex-shrink:0}.chat-recipient-list span{min-width:0}.chat-recipient-list small{display:block;font-weight:400;font-size:12px;overflow-wrap:anywhere}.chat-participants{display:grid;gap:8px;font-size:13px}.chat-participants>div{display:flex;flex-wrap:wrap;gap:5px}.chat-participants span{padding:5px 8px;background:#edf4f6;border-radius:5px}.chat-participants>button{justify-self:start}.chat-invite{display:grid;gap:12px}.chat-history-toggle{font-size:11px;min-height:28px;margin-bottom:8px;color:#dce8ed;background:transparent;border-color:#ffffff30;padding:4px 8px}
/* Distinct chat area in every sidebar. */
.sidebar-chats{background:#e8f2f4;color:#193b4d;border:1px solid #b9d5dd;border-radius:12px;padding:12px 9px;box-shadow:0 3px 12px #071d2926}
.sidebar-chats-heading>span{font-size:12px;gap:5px}.sidebar-chats-heading>button{background:#fff;color:#146454;border-color:#b7cfd6;flex-shrink:0}
.sidebar-chats .sidebar-chat-card{background:#fff;color:#193b4d;border-color:#c1d8de;box-shadow:0 1px 3px #193b4d0c}
.sidebar-chats .sidebar-chat-card:hover{background:#f6fcfd;border-color:#6babb8}
.sidebar-chats .sidebar-chat-card small{color:#526e7c}
.sidebar-chats .chat-history-toggle{background:#d5e7ec;color:#254e60;border-color:#b7d1d9}
.sidebar-chats .chat-history-toggle:hover{background:#c5dfe6}
.sidebar-chats .chat-empty,.sidebar-chats .chat-list-error{color:#466675}
.sidebar-chats .sidebar-chat-list{scrollbar-color:#80a7b3 #e8f2f4}
.sidebar-chats .sidebar-chat-card.chat-unread{border:2px solid #e99a00;background:#fff0b3;animation:chat-unread-pulse 2s ease-in-out infinite}
.sidebar-chats .chat-unread-badge{display:block;background:#985400;color:#fff;padding:4px 6px;border-radius:5px;font-size:11px;font-weight:700;white-space:normal}
@keyframes chat-unread-pulse{0%,100%{background:#fff0b3;border-color:#e99a00;box-shadow:0 0 0 0 #f5a70000}50%{background:#ffd34f;border-color:#c97800;box-shadow:0 0 0 3px #f5a70045}}
@media(prefers-reduced-motion:reduce){.sidebar-chats .sidebar-chat-card.chat-unread{animation:none;background:#ffd34f;border-color:#c97800}}

.chat-existing{display:grid;gap:10px;padding:14px;background:#edf5f7;border:1px solid #bdd6df;border-radius:10px}.chat-existing h3,.chat-existing p{margin:0}.chat-existing-card{display:flex;flex-direction:column;align-items:stretch;text-align:left;gap:6px;background:#fff;padding:12px}.chat-existing-card span{font-weight:400;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.chat-existing-card small{font-weight:400}

/* Separate the order details into clearly labeled, softly colored sections. */
.order-detail-section{--section-accent:#32775f;--section-border:#bfded0;--section-bg:#f0f8f3;--section-heading:#deeee4;display:grid;gap:14px;padding:16px;background:var(--section-bg);border:1px solid var(--section-border);border-left:4px solid var(--section-accent);border-radius:10px;min-width:0}
.order-detail-section>h3{margin:-16px -16px 0;padding:12px 16px;background:var(--section-heading);border-bottom:1px solid var(--section-border);border-radius:0 9px 0 0;color:var(--section-accent);font-size:16px;font-weight:700}
.detail-observation{--section-accent:#805a12;--section-border:#e8d5a4;--section-bg:#fffaf0;--section-heading:#faedca}
.detail-chats{--section-accent:#245d83;--section-border:#bfd8e9;--section-bg:#f1f7fc;--section-heading:#dfedf9}
.detail-observation>.observation{margin:0;background:#fffef9;border-color:#eadfbe;line-height:1.6}
.detail-chats .chat-history-entry{background:#fff;border-color:#bfd8e9}
.detail-chats .chat-history-entry>button{background:#fff}
.detail-chats .chat-history-entry>button:hover{background:#eaf3fb}
.detail-history>.timeline{padding:4px 0}
.detail-history .timeline li{border-left-color:#a5cfbb}
.detail-history .timeline strong{color:#23513f}
.detail-history .timeline small{color:#4d685d}
.detail-transfer{--section-accent:#a54c3b;--section-border:#edc0b5;--section-bg:#fff5f1;--section-heading:#fbe1d8}
.detail-transfer>small{color:#81594f;line-height:1.6}
.detail-transfer>button{background:#a54c3b;border-color:#a54c3b;color:#fff}
.detail-transfer>button:hover:not(:disabled){background:#863c2d;border-color:#863c2d}
.operator-order{scroll-margin:24px}
.operator-order.operator-order-relocated{outline:4px solid #136ed1;outline-offset:3px;animation:order-relocated-glow 1.5s ease-in-out 4;box-shadow:0 0 0 7px #318cea30}
@keyframes order-relocated-glow{0%,100%{outline-color:#136ed1;box-shadow:0 0 0 7px #318cea30}50%{outline-color:#074994;box-shadow:0 0 0 10px #318cea55}}
@media(prefers-reduced-motion:reduce){.operator-order.operator-order-relocated{animation:none;outline:4px solid #136ed1;box-shadow:0 0 0 7px #318cea30}}
tr[id^="order-card-"]{scroll-margin:24px}
.admin-order-relocated>td{background:#e2efff;animation:admin-order-relocated-glow 1.5s ease-in-out 4;box-shadow:inset 0 3px #136ed1,inset 0 -3px #136ed1}
.admin-order-relocated>td:first-child{border-left:4px solid #136ed1}
.admin-order-relocated>td:last-child{border-right:4px solid #136ed1}
@keyframes admin-order-relocated-glow{0%,100%{background:#e2efff}50%{background:#bedbff}}
@media(prefers-reduced-motion:reduce){.admin-order-relocated>td{animation:none}}
.detail-header-actions{flex-shrink:0;align-items:center}.detail-header-actions .primary{white-space:nowrap}
@media(max-width:480px){.dialog-head:has(.detail-header-actions){flex-wrap:wrap}.detail-header-actions{margin-left:auto}}
.rollback-button{background:#fff0dc;border-color:#c48938;color:#714714}.rollback-button:hover:not(:disabled){background:#ffe2b8}.dialog-actions:has(.rollback-confirm){flex-wrap:wrap}.rollback-confirm{flex-basis:100%;display:grid;gap:14px;border:1px solid #d6b47e;background:#fff8ed;border-radius:10px;padding:16px}.rollback-confirm h3{font-size:16px;color:#714714}.rollback-confirm p{font-size:14px;line-height:1.6}.rollback-confirm .inline-actions{flex-wrap:wrap}
.operation-menu-toggle{flex-shrink:0;width:100%;justify-content:space-between;text-align:left;background:#ffffff12;border-color:#ffffff30;color:#edf7fa;padding:12px;margin:0}
.operation-menu-toggle:hover{background:#ffffff20}
.operation-menu-toggle>span{display:grid;gap:5px;min-width:0}
.operation-menu-toggle strong{font-size:13px;letter-spacing:1px;text-transform:uppercase}
.operation-menu-toggle small{font-size:12px;color:#c4dce6;font-weight:400;overflow-wrap:anywhere}
.operation-menu-toggle svg{transition:transform .18s ease}
.operation-menu-toggle svg.expanded{transform:rotate(180deg)}
.sidebar .operation-menu[hidden]{display:none}
.sidebar .operation-menu:not([hidden]){display:grid;flex:0 1 auto;min-height:0;max-height:35vh;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;margin-top:8px;padding:2px}
.sidebar .operation-menu button{white-space:normal;flex-shrink:0}
.sidebar .sidebar-chats{margin-top:14px}
.sidebar-chats-heading,.sidebar-chats>.chat-history-toggle{flex-shrink:0}
.production-shell .operation-menu-toggle small{color:#c4dfcf}
@media(prefers-reduced-motion:reduce){.operation-menu-toggle svg{transition:none}}
@media(max-width:750px){.sidebar .operation-menu:not([hidden]){max-height:260px}.sidebar .sidebar-chats{height:320px}}
/* The operation menu floats beside the sidebar without shrinking the chats. */
.sidebar{z-index:20}
.operation-menu-flyout{position:relative;flex-shrink:0}
.sidebar .operation-menu-flyout .operation-menu:not([hidden]){position:absolute;left:100%;top:0;width:250px;max-height:min(440px,70vh);margin:0;padding:10px;background:#193b4d;border:1px solid #476779;border-radius:0 12px 12px 12px;box-shadow:8px 10px 28px #102c3d40;z-index:30}
.operation-menu-flyout .operation-menu-toggle svg{transform:rotate(-90deg)}
.operation-menu-flyout .operation-menu-toggle svg.expanded{transform:rotate(90deg)}
.production-shell .operation-menu-flyout .operation-menu:not([hidden]){background:#173f32;border-color:#4c7460}
@media(max-width:750px){.sidebar .operation-menu-flyout .operation-menu:not([hidden]){left:0;top:100%;width:100%;max-height:55vh;border-radius:0 0 12px 12px}.operation-menu-flyout .operation-menu-toggle svg{transform:none}.operation-menu-flyout .operation-menu-toggle svg.expanded{transform:rotate(180deg)}}
.analysis-production-totals{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:18px 0}.analysis-production-totals .metric:first-child{background:#f4effb;border-color:#d6c5eb}.analysis-production-totals .metric:last-child{background:#edf7f2;border-color:#b9dacb}@media(max-width:600px){.analysis-production-totals{grid-template-columns:1fr}}
.production-monthly{border-top:1px solid #dbe5ec;margin-top:20px;padding-top:20px;display:grid;gap:18px}.production-monthly-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px}.production-monthly-heading p{font-size:13px;line-height:1.6;color:#617785;margin-top:8px}.production-monthly-heading label{min-width:100px}.production-monthly-legend{display:flex;flex-wrap:wrap;gap:16px;font-size:13px}.production-monthly-legend span{display:flex;gap:7px;align-items:center}.production-monthly-legend i{width:12px;height:12px;background:#8054af;border-radius:3px}.production-monthly-legend span+span i{background:#25826a}.production-monthly-scroll{overflow-x:auto;padding:24px 4px 10px}.production-monthly-plot{display:grid;grid-template-columns:repeat(12,minmax(58px,1fr));gap:12px;min-width:828px}.production-monthly-month{text-align:center;font-size:12px}.production-monthly-bars{height:185px;display:flex;align-items:flex-end;justify-content:center;gap:6px;border-bottom:1px solid #adbfcb;margin-bottom:10px;background:repeating-linear-gradient(to top,transparent 0,transparent 45px,#edf1f5 45px,#edf1f5 46px)}.production-monthly-bar{width:24px;position:relative;background:#8054af;border-radius:4px 4px 0 0}.production-monthly-bar.direct{background:#25826a}.production-monthly-bar strong{position:absolute;bottom:100%;padding-bottom:5px;left:50%;transform:translateX(-50%);color:#20394a;font-size:12px}.production-monthly-data summary{cursor:pointer;color:#245d83;font-size:13px;font-weight:600}.production-monthly-data .table-wrap{margin-top:12px}@media(max-width:550px){.production-monthly-heading{flex-wrap:wrap}}
.station-create{display:flex;gap:12px;align-items:end;flex-wrap:wrap}.station-create label{flex:1;min-width:200px}.station-options{display:grid;gap:8px}.station-options label{display:flex;align-items:center;gap:10px;padding:10px;background:#fff;border:1px solid #c5dae8;border-radius:8px}.station-options input{width:18px;min-height:18px}.station-task-list{display:grid;gap:10px}.station-task-list>div{display:grid;gap:6px;padding:12px;background:#fff;border:1px solid #c5dae8;border-radius:8px}.station-task-list button{justify-self:start}.station-cancel{display:grid;gap:10px}.station-sidebar-name{color:white;font-weight:600;margin-bottom:10px}.station-task-list small{overflow-wrap:anywhere}
.station-pending-warning{display:block;color:#805414;background:#fff2d6;border:1px solid #e4c989;border-radius:6px;padding:8px;font-size:12px;line-height:1.5;width:100%}
.station-progress-group{border:1px solid;border-radius:8px;padding:12px;margin:14px 0}
.station-progress-pending{background:#fff7e2;border-color:#e9bd59;color:#774900}
.station-progress-done{background:#eaf7ef;border-color:#93c9a7;color:#19613a}
.station-progress-group h3{font-size:14px;margin:0 0 10px}
.station-progress-group ul{list-style:none;margin:0;padding:0}
.station-progress-group li{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 0;border-top:1px solid #00000012}
.station-progress-group li span{font-size:12px;text-align:right}
.station-progress-group p{margin:0;font-size:12px}
.station-assignment-groups{display:grid;gap:12px}
.station-assignment-groups .station-progress-group{margin:0}
.station-progress-group h4{font-size:14px;margin:0 0 10px}
.station-progress-pending .station-task-list>div{background:#fff9eb;border-color:#e9bd59}
.station-progress-done .station-task-list>div{background:#f0fbf4;border-color:#93c9a7}
.station-progress-cancelled{background:#f1f3f5;border-color:#c8d0d7;color:#52616d}
.station-board{margin-top:24px;min-width:0}
.station-board-columns{display:flex;gap:16px;overflow-x:auto;padding:16px;align-items:stretch}
.station-board-column{flex:0 0 270px;background:#edf3f6;border:1px solid #cbdce5;border-radius:10px;overflow:hidden}
.station-board-column>header{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:14px;background:#deebf0;border-bottom:1px solid #cbdce5}
.station-board-column h3{margin:0;font-size:15px;overflow-wrap:anywhere}
.station-board-column>header span{font-size:11px;white-space:nowrap}
.station-board-cards{display:grid;align-content:start;gap:10px;padding:10px;max-height:480px;overflow-y:auto}
.station-board-card{padding:12px;border:1px solid #e9bd59;border-left:4px solid #d49a22;border-radius:8px;background:#fff7e2;overflow-wrap:anywhere}
.station-board-card.working{background:#eaf3ff;border-color:#94b9e6;border-left-color:#387fc9}
.station-board-card>div{display:grid;gap:6px}.station-board-card>div span{font-size:11px}
.station-board-card p{margin:10px 0 6px;font-size:13px}.station-board-card small{display:block;font-size:11px;margin-top:5px}
.station-board-empty{font-size:12px;color:#546d7b;text-align:center;padding:18px 0}
/* Compact production cards; full information remains in order details. */
.production-shell .operator-orders{grid-auto-rows:360px}
.production-shell .operator-order{height:360px;min-height:360px;max-height:360px;padding:10px}
.production-shell .operator-order .operator-order-representative,.production-shell .operator-order .operator-delivery-method,.production-shell .operator-order>.observation{display:none}
.production-shell .operator-order .production-origin{padding:5px 8px;margin-bottom:6px}
.production-shell .operator-order .production-origin small{display:none}
.production-shell .operator-order>.delivery-countdown{min-height:36px;padding:6px;margin-bottom:6px}
.production-shell .operator-order .operator-order-client{margin:6px 0;font-size:13px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.production-shell .operator-order .operator-delivery{padding:6px 8px;margin-bottom:6px}
.production-shell .operator-order .operator-order-actions{gap:5px;padding-top:6px}
.production-shell .operator-order-actions button{height:38px;min-height:38px;font-size:12px}
.production-shell .operator-order-actions>.production-station-summary{grid-column:1/-1;background:#e8f2fc;border-color:#a5c6e7;color:#234f78;height:32px;min-height:32px}
.production-shell .operator-orders{grid-auto-rows:480px}
.production-shell .operator-order{height:480px;min-height:480px;max-height:480px}
.card-station-progress{display:grid;gap:7px;margin:4px 0 9px;max-height:180px;overflow-y:auto;flex-shrink:1;min-height:90px;scrollbar-width:thin}
.card-station-progress .station-progress-group{margin:0;padding:7px}
.card-station-progress h4{font-size:11px;margin:0 0 4px}
.card-station-progress li{gap:6px;padding:5px 0;align-items:flex-start;font-size:11px}
.card-station-progress li strong{overflow-wrap:anywhere;min-width:0}
.card-station-progress li span{font-size:10px;flex-shrink:0;max-width:110px}
.card-station-progress p,.card-station-state{font-size:11px}
.card-station-state{margin:5px 0 10px}
.production-shell .production-origin>div{flex:1;min-width:0}
.production-shell .production-origin>.operator-details-button{flex-shrink:0;margin-left:auto;min-height:26px;height:26px;padding:3px 8px;font-size:11px;font-weight:500;border-radius:5px;background:#fff}
@keyframes urgent-pulse{0%,100%{background:#fff0f0;box-shadow:0 0 0 2px #df2525}50%{background:#ffc4c4;box-shadow:0 0 12px 3px #e32b2b88}}
.operator-order.order-urgent,.station-board-card.order-urgent{border:2px solid #d82020;animation:urgent-pulse 1.8s ease-in-out infinite}
.urgent-label{display:block;color:#b00020;font-weight:800;font-size:11px;margin-top:4px}
.production-shell .operator-order-actions>.urgent-toggle{grid-column:1/-1;color:#b00020;border-color:#df7777;background:#fff0f0;height:30px;min-height:30px}
@media(prefers-reduced-motion:reduce){.operator-order.order-urgent,.station-board-card.order-urgent{animation:none;background:#ffd6d6;box-shadow:0 0 0 2px #df2525}}
.page-refresh-bar{display:flex;justify-content:flex-end;margin:0 0 16px;min-height:36px}
@keyframes stations-ready-pulse{0%,100%{background:#edfff3;box-shadow:0 0 0 2px #20a45a}50%{background:#9af0bb;box-shadow:0 0 12px 3px #19b96088}}
.operator-order.order-stations-ready{border:2px solid #139549;animation:stations-ready-pulse 1.8s ease-in-out infinite}
.stations-ready-label{display:block;color:#09612e;background:#d1f7df;border:1px solid #65c98e;border-radius:5px;padding:5px 7px;font-size:11px;font-weight:700;margin-bottom:6px}
@media(prefers-reduced-motion:reduce){.operator-order.order-stations-ready{animation:none;background:#bdf3d1;box-shadow:0 0 0 2px #20a45a}}
/* Station cards have a compact layout independent of the production overview. */
.workstation-shell .operator-orders{grid-template-columns:repeat(auto-fill,minmax(min(100%,300px),1fr));grid-auto-rows:auto;align-items:stretch;overflow:visible}
.workstation-shell .operator-order{width:100%;min-width:0;max-width:none;height:auto;min-height:300px;max-height:none;overflow:visible;padding:10px;gap:4px}
.workstation-shell .operator-order .production-origin{margin-bottom:2px;padding:5px 7px;font-size:12px}
.workstation-shell .operator-order .operator-order-top h3{font-size:16px;margin:0}
.workstation-shell .operator-order>strong{font-size:13px;overflow-wrap:anywhere}
.workstation-shell .operator-order>small{font-size:11px;overflow-wrap:anywhere}
.workstation-shell .operator-order .operator-delivery{margin:2px 0 5px;font-size:12px;padding:6px 7px}
.workstation-shell .operator-order .operator-order-actions{min-height:40px;margin-top:auto;padding-top:6px;align-content:start}
.workstation-shell .operator-order-actions>button{grid-column:auto;min-height:36px;height:36px;font-size:12px}
.metrics.metrics-with-daily{grid-template-columns:repeat(7,minmax(0,1fr))}
.metrics.metrics-production-summary{grid-template-columns:repeat(5,minmax(0,1fr))}
@media(max-width:1200px){.metrics.metrics-with-daily{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:1000px){.metrics.metrics-production-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:750px){.metrics.metrics-with-daily{grid-template-columns:repeat(2,minmax(0,1fr))}}
.metrics.metrics-production-ready{grid-template-columns:repeat(6,minmax(0,1fr))}
@media(max-width:1200px){.metrics.metrics-production-ready{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:750px){.metrics.metrics-production-ready{grid-template-columns:repeat(2,minmax(0,1fr))}}
.metric.metric-stations-ready{border-color:#139549;animation:stations-ready-pulse 1.8s ease-in-out infinite}
@media(prefers-reduced-motion:reduce){.metric.metric-stations-ready{animation:none;background:#bdf3d1;box-shadow:0 0 0 2px #20a45a}}
.production-shell .operator-order[tabindex="0"]{cursor:pointer}
.operator-order.order-station-selected,.station-board-card.station-card-selected{outline:3px solid #1677e8;outline-offset:2px}
.station-board-card.station-card-selected{border-color:#1677e8}
.station-selection-hint{margin:12px 16px 0;padding:8px 10px;background:#e8f2ff;color:#175da5;border-radius:6px;font-size:12px}
.metrics.metrics-production-ready{grid-template-columns:repeat(7,minmax(0,1fr))}
.metric.metric-urgent{border-color:#d82020;animation:urgent-pulse 1.8s ease-in-out infinite}
@media(max-width:1200px){.metrics.metrics-production-ready{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:750px){.metrics.metrics-production-ready{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(prefers-reduced-motion:reduce){.metric.metric-urgent{animation:none;background:#ffd6d6;box-shadow:0 0 0 2px #df2525}}
.metrics.metrics-production-ready{grid-template-columns:repeat(6,minmax(0,1fr))}
@media(max-width:1200px){.metrics.metrics-production-ready{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:750px){.metrics.metrics-production-ready{grid-template-columns:repeat(2,minmax(0,1fr))}}
.production-shell .operator-order-actions>button.station-distribution-needed{background:#fce8e8;border-color:#e6abab;color:#963e3e}
.production-shell .operator-order-actions>button.station-distribution-needed:hover{background:#f8dada;border-color:#d98f8f}
/* Compact new-order form, without affecting order details or other forms. */
.dialog.new-order-dialog{width:min(680px,calc(100vw - 24px));max-width:680px}
.new-order-dialog .dialog-head{padding:14px 18px}
.new-order-dialog>form>.dialog-body{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 14px;padding:16px 18px}
.new-order-dialog .dialog-body>label{min-width:0;gap:5px;font-size:13px}
.new-order-dialog .dialog-body>label:has([name="customer_name"]),.new-order-dialog .dialog-body>label:has([name="observation"]),.new-order-dialog .dialog-body>p,.new-order-dialog .dialog-body>.notice{grid-column:1/-1}
.new-order-dialog input,.new-order-dialog select{min-height:36px;padding:7px 9px;font-size:13px}
.new-order-dialog textarea{min-height:64px;height:64px;padding:8px 9px;font-size:13px}
.new-order-dialog small,.new-order-dialog .hint{font-size:11px;line-height:1.4}
.new-order-dialog .dialog-actions{padding:10px 18px;gap:8px}
.new-order-dialog .dialog-actions button{min-height:36px;padding:7px 12px}
@media(max-width:520px){.new-order-dialog>form>.dialog-body{grid-template-columns:1fr;gap:10px;padding:12px}.new-order-dialog .dialog-head,.new-order-dialog .dialog-actions{padding:12px}}
/* Compact administrator order filters. */
.panel:has(>.column-filters)>.panel-head{padding:12px 16px;gap:10px}
.panel:has(>.column-filters)>.panel-head h2{font-size:17px}
.panel:has(>.column-filters)>.panel-head small{font-size:11px}
.filters.column-filters{grid-template-columns:repeat(7,minmax(0,1fr)) auto;padding:12px 16px;gap:10px;align-items:end}
.filters.column-filters>label{font-size:12px;gap:4px;min-width:0}
.filters.column-filters input,.filters.column-filters select{min-height:36px;height:36px;padding:7px 8px;font-size:12px}
.filters.column-filters .search input{padding-left:30px}
.filters.column-filters>.ghost{height:36px;min-height:36px;padding:7px 10px;font-size:12px;justify-self:end}
@media(max-width:1200px){.filters.column-filters{grid-template-columns:repeat(3,minmax(0,1fr))}.filters.column-filters>.ghost{grid-column:1/-1}}
@media(max-width:750px){.filters.column-filters{grid-template-columns:repeat(2,minmax(0,1fr));padding:12px}}
@media(max-width:500px){.filters.column-filters{grid-template-columns:1fr}}
.admin-urgent-toggle{background:#fce8e8;color:#a62626;border-color:#dd9595}
.admin-urgent-toggle:hover,.admin-urgent-toggle[aria-pressed="true"]{background:#f9cccc;border-color:#d95353}
@keyframes admin-urgent-pulse{0%,100%{background-color:#fff0f0}50%{background-color:#ffc4c4}}
tr.admin-order-urgent>td{animation:admin-urgent-pulse 1.8s ease-in-out infinite;border-bottom-color:#e9aaaa}
tr.admin-order-urgent>td:first-child{box-shadow:inset 3px 0 #d82020}
@media(prefers-reduced-motion:reduce){tr.admin-order-urgent>td{animation:none;background:#ffd6d6}}
/* Compact center order header and filters. */
.panel:has(>.filters:not(.column-filters)):has(>.finalized-filter)>.panel-head{padding:10px 16px;gap:8px}
.panel:has(>.filters:not(.column-filters)):has(>.finalized-filter)>.panel-head h2{font-size:17px}
.panel:has(>.filters:not(.column-filters)):has(>.finalized-filter)>.panel-head small{font-size:11px}
.panel:has(>.finalized-filter)>.filters:not(.column-filters){padding:10px 16px;gap:10px;align-items:end}
.panel:has(>.finalized-filter)>.filters:not(.column-filters)>label{font-size:12px;gap:4px;min-width:0}
.panel:has(>.finalized-filter)>.filters:not(.column-filters) input,.panel:has(>.finalized-filter)>.filters:not(.column-filters) select{height:36px;min-height:36px;padding:7px 9px;font-size:12px}
.panel:has(>.finalized-filter)>.filters:not(.column-filters) .search input{padding-left:30px}
.panel:has(>.finalized-filter)>.filters:not(.column-filters)>.ghost{min-height:36px;height:36px;padding:7px 10px;font-size:12px}
.panel:has(>.filters:not(.column-filters))>.finalized-filter{padding:6px 16px;gap:8px;font-size:11px}
.panel:has(>.filters:not(.column-filters))>.finalized-filter button{min-height:30px;padding:5px 9px;font-size:11px}
.commercial-toggle{background:#fff4db;border-color:#dbb76a;color:#805400}
.commercial-toggle[aria-pressed="true"]{background:#ffe1a0;border-color:#c18c21}
.commercial-label{display:block;width:fit-content;margin-top:5px;padding:3px 6px;border-radius:4px;background:#fff0ca;color:#805400;font-size:11px;font-weight:600}
.detail-header-actions{flex-wrap:wrap}

/* Diagonal commercial ribbon overlays the order information. */
td.order-commercial-cell{position:relative}
.commercial-ribbon-slot{position:absolute;inset:0;overflow:hidden;pointer-events:none;z-index:1;border-radius:inherit}
.commercial-ribbon{position:absolute;top:24px;left:-50px;width:230px;padding:5px 0;background:#942187;color:#fff;transform:rotate(-30deg);font-size:10px;font-weight:700;line-height:1.3;text-align:center;white-space:nowrap;box-shadow:0 1px 3px #0002}
.operator-order:has(>.commercial-card-ribbon){position:relative}
.operator-order>.commercial-card-ribbon{flex-shrink:0}
.commercial-toggle{background:#942187;border-color:#942187;color:#fff}
.commercial-toggle:hover{background:#7c1b71;border-color:#7c1b71;color:#fff}
.commercial-toggle[aria-pressed="true"]{background:#942187;border-color:#942187;color:#fff;box-shadow:inset 0 0 0 2px #ffffff65}
.representative-commercial{padding:7px 9px;border:1px solid #d9a7d4;border-radius:6px;background:#f8eafa;color:#79206f;margin:4px 0;min-height:44px;max-height:100px;overflow-y:auto}
.representative-commercial strong{font-size:11px}.representative-commercial p{font-size:12px;margin:4px 0 0;white-space:pre-wrap;overflow-wrap:anywhere}
.dialog-body>.representative-commercial{max-height:none}
.commercial-description-dialog{width:min(540px,calc(100vw - 24px))}
.commercial-description-dialog .dialog-head{display:flex;align-items:center;gap:12px;padding:14px 16px}
.commercial-description-dialog .dialog-head h2{flex:1;min-width:0;font-size:18px;text-align:left}
.commercial-description-dialog .dialog-head button[aria-label="Fechar"]{flex:0 0 26px;width:26px;min-width:26px;max-width:26px;height:26px;min-height:26px;margin-left:auto;padding:0;border-radius:5px;font-size:16px;line-height:1}
.financial-pending-area{margin-bottom:18px}
.financial-pending-toolbar{display:flex;justify-content:flex-end;margin-bottom:10px}
.station-board-card.financial-pending-card{background:#f8eafa;border-color:#d7a4d1;border-left-color:#942187}
.financial-pending-description{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px;line-height:1.5;margin:10px 0;max-height:140px;overflow-y:auto}

.order-heading-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap}
.dialog-head:has(.detail-header-actions){display:grid;grid-template-columns:minmax(0,1fr);gap:10px;padding:16px 18px}
.dialog-head:has(.detail-header-actions)>h2{overflow-wrap:anywhere}
.detail-header-actions{display:flex;align-items:center;flex-wrap:wrap;justify-content:flex-start;gap:8px;min-width:0;width:100%;margin-left:0}
.detail-header-actions>button{min-height:34px;padding:7px 10px;font-size:12px;white-space:nowrap}
.detail-header-actions>.ghost:last-child{position:static;flex:0 0 26px;width:26px;height:26px;min-height:26px;margin-left:auto;padding:0;border:1px solid #cbd8df;border-radius:5px;background:#fff}
.detail-header-actions>.ghost:last-child svg{width:14px;height:14px}
.detail-header-actions>.ghost:last-child:hover:not(:disabled){background:#eef8f5}
.commercial-return-notice{padding:8px;border:1px solid #be7bb5;border-radius:6px;background:#f6e6f5;color:#75216b;font-size:12px}
.commercial-completed-history ol{list-style:none;display:grid;gap:10px;padding:0;margin:12px 0 0}
.commercial-completed-history li{display:grid;gap:9px;border:1px solid #d6c4e7;border-left:3px solid #68408b;border-radius:6px;padding:12px;background:#fbf8fd}
.commercial-completed-history strong{font-size:12px;color:#68408b}
.commercial-completed-history p{font-size:13px;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere;margin-top:4px}
.commercial-completed-history small{font-size:11px;line-height:1.5}
.history-pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:10px;border:1px solid #dce5eb;border-radius:6px;background:#f8fafb}
.history-pagination small{flex:1;min-width:160px;line-height:1.5}
.history-pagination button{font-size:12px}
.cancel-order-button{background:#c93434;border-color:#c93434;color:#fff}
.cancel-order-button:hover:not(:disabled){background:#a52525;color:#fff}
.status-5{background:#fce1e1;color:#9a2020}
.cancellation-details{padding:12px;border:1px solid #e9aaaa;border-left:3px solid #c93434;border-radius:6px;background:#fff4f4}
.cancellation-details p{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.5;margin:8px 0}
.cancellation-details h3{color:#9a2020;margin-bottom:10px}
.sequence-management{margin-top:18px;border-top:1px solid #dce5eb}
.sequence-management .panel-head{padding:14px 0;flex-wrap:wrap}
.sequence-form{display:grid;gap:12px;padding:14px;border:1px solid #dce5eb;border-radius:8px;background:#f8fafb}
.sequence-form>.inline-actions{align-items:end;flex-wrap:wrap}
.sequence-form>.inline-actions>label{flex:1;min-width:180px}
.sequence-steps{list-style:none;padding:0;margin:0;display:grid;gap:8px}
.sequence-steps li{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px;background:white;border:1px solid #dce5eb;border-radius:6px;flex-wrap:wrap}
.sequence-list{display:grid;gap:12px;padding-top:14px}.sequence-list article{padding:12px;border:1px solid #dce5eb;border-radius:8px}.sequence-list p{margin:8px 0;font-size:13px;line-height:1.5}
.sequence-preview{margin:8px 0;padding-left:24px;font-size:13px;line-height:1.8}
@keyframes sequence-awaiting-pulse{0%,100%{box-shadow:0 0 0 1px #dca642}50%{box-shadow:0 0 0 2px #dca642,0 0 10px #e5b85488}}
.operator-order.sequence-awaiting{border-color:#dca642;animation:sequence-awaiting-pulse 2s ease-in-out infinite}
@media(prefers-reduced-motion:reduce){.operator-order.sequence-awaiting{animation:none;box-shadow:0 0 0 2px #dca642}}
.representative-shell .operator-orders{grid-template-columns:repeat(auto-fill,minmax(min(100%,300px),1fr));grid-auto-rows:auto;align-items:stretch;overflow:visible}
.representative-shell .operator-order{width:100%;min-width:0;max-width:none;height:auto;min-height:300px;max-height:none;overflow:visible;padding:12px;gap:6px}
.representative-shell .operator-order>.representative-commercial{max-height:none;overflow:visible}
.representative-shell .operator-order .operator-order-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;min-height:0;padding-top:8px}
.representative-shell .operator-order-actions>button.commercial-toggle{grid-column:1/-1}
.representative-shell .operator-order-actions>button{height:auto;min-height:36px;white-space:normal}
.representative-shell .operator-order.representative-pending-attention{position:relative;border-color:#942187;background:#f6e6f5;animation:commercial-return-pulse 2s ease-in-out infinite}
.representative-shell .representative-pending-attention>.commercial-ribbon-slot{border-radius:inherit}
@media(prefers-reduced-motion:reduce){.representative-shell .operator-order.representative-pending-attention{animation:none;background:#ecc5e8;box-shadow:0 0 0 2px #942187}}
.commercial-return-notice p{white-space:pre-wrap;overflow-wrap:anywhere;margin:6px 0;max-height:90px;overflow:auto}
@keyframes commercial-return-pulse{0%,100%{background:#fcf5fc;box-shadow:0 0 0 1px #c575bb}50%{background:#ecc5e8;box-shadow:0 0 0 2px #942187,0 0 12px #94218755}}
.operator-order.commercial-return-attention{border-color:#942187;animation:commercial-return-pulse 2s ease-in-out infinite}
:root{--highlight-yellow-bg:#fff4cc;--highlight-yellow-active:#ffe08a;--highlight-yellow-border:#d7a12e;--highlight-yellow-text:#79520b;--highlight-yellow-shadow:#d7a12e55}
.panel>.finalized-filter{padding:6px 12px;gap:8px;font-size:11px}
.panel>.finalized-filter>button{margin-left:auto;width:auto;flex:0 0 auto;min-height:26px;height:26px;padding:3px 8px;font-size:10px;font-weight:500;gap:5px;border-radius:5px;background:#e3f1ed;color:#205e50;border-color:#bfd9d0}
.panel>.finalized-filter>button:hover{background:#d1e7df}
.panel>.finalized-filter>button[aria-pressed=true]{background:#c6e2d7;color:#174e40;border-color:#8fbfac}
.panel>.finalized-filter>button svg{width:13px;height:13px}
.delivery-range-filter{display:grid;gap:4px;min-width:0;font-size:12px;font-weight:600;color:inherit}
.filters.column-filters>.delivery-range-filter>button{width:100%;min-width:0;min-height:36px;height:36px;padding:7px 8px;font-size:12px;justify-content:space-between;font-weight:400;border:1px solid #cbd8df;border-radius:8px;background:white;color:#20394a;white-space:nowrap;overflow:hidden}
.period-dialog{width:min(660px,calc(100% - 24px));border:1px solid #dbe7e2;border-radius:16px}
.period-header{display:flex;justify-content:space-between;align-items:center;padding:22px 24px 14px;gap:12px}.period-header h2{font-size:18px}.period-header p{font-size:12px;color:#708595;margin-top:5px}.period-header>button{min-height:28px;width:28px;padding:4px;border:0;background:#f1f6f4}
.period-presets{display:flex;flex-wrap:wrap;gap:7px;padding:0 24px 16px;border-bottom:1px solid #edf1ef}.period-presets button{min-height:29px;padding:5px 10px;border-radius:20px;background:#f5f8f7;border-color:#e1ebe6;font-size:11px;font-weight:500}.period-presets button:hover{background:#e3f1eb;color:#146454}
.period-navigation{display:flex;align-items:center;justify-content:space-between;padding:12px 22px 0}.period-navigation>span{font-size:11px;color:#708595}.period-navigation button{min-height:28px;padding:4px;border:0}
.period-calendars{display:grid;grid-template-columns:1fr 1fr;padding:8px 24px 22px;gap:28px}.period-calendars h3{text-align:center;text-transform:capitalize;font-size:14px;margin:0 0 16px}.period-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px 0;text-align:center}.period-days small{font-size:11px;margin-bottom:7px;color:#8a9a94}.period-days button{min-width:0;min-height:34px;height:34px;padding:0;border:0;border-radius:7px;font-size:12px;font-weight:500;background:transparent}.period-days button.in-period{background:#e3f1eb;border-radius:0;color:#205e50}.period-days button.period-edge{background:#146454;color:white;border-radius:7px}.period-days button:hover:not(.period-edge){background:#d1e7df}.period-days button[aria-current=date]{text-decoration:underline;text-underline-offset:4px}
.period-footer{display:flex;align-items:center;gap:10px;padding:16px 24px;background:#f6f9f7;border-top:1px solid #e5ede8}.period-footer>div{margin-right:auto}.period-footer small{display:block;font-size:10px;margin-bottom:4px}.period-footer strong{font-size:12px}.period-footer button{font-size:12px;min-height:34px;padding:7px 12px}.delivery-range-filter>button>span{overflow:hidden;text-overflow:ellipsis}.delivery-range-filter>button>svg{flex-shrink:0}
@media(max-width:520px){.period-calendars{grid-template-columns:1fr;gap:24px}.period-footer{flex-wrap:wrap}.period-footer>div{width:100%}}
.range-calendars{display:grid;grid-template-columns:1fr 1fr;gap:24px}
.range-calendars h3{font-size:15px;margin-bottom:8px}
.range-month{display:flex;align-items:center;justify-content:space-between;gap:5px;margin-bottom:10px}
.range-month strong{font-size:12px;text-transform:capitalize}
.range-month button{padding:3px;min-height:26px;width:26px}
.range-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px;margin-bottom:12px;text-align:center}
.range-days button{min-height:30px;padding:3px;border:0;font-size:12px}
.range-days button[aria-pressed=true]{background:#146454;color:white}
.range-days small{font-size:11px}
@media(max-width:520px){.range-calendars{grid-template-columns:1fr;gap:18px}.delivery-range-dialog{max-height:90vh}}
.content>.metrics,.content>.metrics.metrics-with-daily,.content>.metrics.metrics-production-summary,.content>.metrics.metrics-production-ready{display:flex;flex-wrap:nowrap;gap:10px;overflow-x:auto;padding:4px 3px 8px;margin-bottom:16px;scrollbar-width:thin}
.content>.metrics>.metric{flex:1 0 125px;min-width:125px;padding:12px 11px;border-radius:8px}
.content>.metrics>.metric .metric-label{font-size:11px;line-height:1.3;align-items:flex-start;gap:5px;min-height:29px}
.content>.metrics>.metric .metric-label svg{width:14px;height:14px;flex-shrink:0}
.content>.metrics>.metric strong{display:block;width:100%;text-align:center;font-size:36px;line-height:1.1;margin:7px 0;font-variant-numeric:tabular-nums}
.content>.metrics>.metric small{display:block;font-size:10px;line-height:1.4}
@keyframes received-attention{0%,100%{background-color:var(--highlight-yellow-bg);border-color:var(--highlight-yellow-border);box-shadow:0 0 0 1px var(--highlight-yellow-shadow)}50%{background-color:var(--highlight-yellow-active);border-color:var(--highlight-yellow-border);box-shadow:0 0 10px 2px var(--highlight-yellow-shadow)}}
@keyframes sequence-awaiting-pulse{0%,100%{background-color:var(--highlight-yellow-bg);border-color:var(--highlight-yellow-border);box-shadow:0 0 0 1px var(--highlight-yellow-shadow)}50%{background-color:var(--highlight-yellow-active);border-color:var(--highlight-yellow-border);box-shadow:0 0 10px 2px var(--highlight-yellow-shadow)}}
@keyframes chat-unread-pulse{0%,100%{background-color:var(--highlight-yellow-bg);border-color:var(--highlight-yellow-border);box-shadow:0 0 0 1px var(--highlight-yellow-shadow)}50%{background-color:var(--highlight-yellow-active);border-color:var(--highlight-yellow-border);box-shadow:0 0 10px 2px var(--highlight-yellow-shadow)}}
.station-progress-pending,.station-progress-pending .station-task-list>div,.station-board-card.awaiting:not(.order-urgent):not(.station-card-selected),.station-pending-warning,.badge.status-1{background:var(--highlight-yellow-bg);border-color:var(--highlight-yellow-border);color:var(--highlight-yellow-text)}
@media(prefers-reduced-motion:reduce){.operator-order-attention:not(.order-urgent):not(.commercial-return-attention):not(.representative-pending-attention),.operator-order.sequence-awaiting:not(.order-urgent),.sidebar-chats .sidebar-chat-card.chat-unread{background:var(--highlight-yellow-active);border-color:var(--highlight-yellow-border);box-shadow:0 0 0 2px var(--highlight-yellow-shadow)}}
@media(prefers-reduced-motion:reduce){.operator-order.commercial-return-attention{animation:none;background:#ecc5e8;box-shadow:0 0 0 2px #942187}}
.pending-choices{display:grid;gap:12px}.finance-button{background:#2563eb!important;color:#fff!important;border-color:#2563eb!important}.finance-ribbon{display:block;background:#dbeafe;color:#174a91;border:1px solid #93c5fd;border-left:4px solid #2563eb;border-radius:5px;padding:7px 10px;font-size:12px;font-weight:700;margin-bottom:8px}.finance-pending-attention{border-color:#60a5fa!important;box-shadow:0 0 0 2px #dbeafe}.finance-columns{display:flex;gap:16px;overflow-x:auto;padding:16px;align-items:flex-start}.finance-column{flex:0 0 280px;min-width:0;background:#f1f5f9;border:1px solid #d7e2ed;border-radius:10px;padding:12px}.finance-column>h3{margin:0 0 12px;font-size:15px}.finance-column>h3 small{display:block;font-size:11px;font-weight:400;margin-top:4px}.finance-column-cards{display:grid;gap:12px}.finance-column .operator-order{width:100%;height:auto;min-height:260px;overflow:visible}.finance-column .operator-order-actions{margin-top:12px}
.finish-finance-button{background:#153e75!important;color:#fff!important;border-color:#153e75!important}.finish-finance-button:hover{background:#102f59!important}.operator-order-actions>.finish-finance-button{grid-column:1/-1;width:100%}
.finance-return-attention{border:2px solid #2563eb!important;animation:finance-return-pulse 1.6s ease-in-out infinite}.finance-return-attention .finance-ribbon{background:#dbeafe;color:#153e75}@keyframes finance-return-pulse{0%,100%{background:#fff;box-shadow:0 0 0 1px #93c5fd}50%{background:#dbeafe;box-shadow:0 0 0 4px #93c5fd}}@media(prefers-reduced-motion:reduce){.finance-return-attention{animation:none;background:#dbeafe}}
.commercial-ribbon.finance-diagonal-ribbon{background:#2563eb;color:#fff}
.representative-shell .operator-order{position:relative}
button.chat-button-unread{background:var(--highlight-yellow-bg);color:var(--highlight-yellow-text);border-color:var(--highlight-yellow-border);animation:chat-unread-pulse 1.6s ease-in-out infinite}button.chat-button-unread:hover{background:var(--highlight-yellow-active);color:var(--highlight-yellow-text)}@media(prefers-reduced-motion:reduce){button.chat-button-unread{animation:none;background:var(--highlight-yellow-active);box-shadow:0 0 0 2px var(--highlight-yellow-shadow)}}
.pix-confirm-dialog .dialog-head{padding:18px 22px}.pix-confirm-dialog .dialog-body{display:grid;gap:22px;padding:22px}.pix-payment-warning{display:grid;justify-items:center;gap:10px;padding:22px 18px;background:#fff8e6;border:1px solid #edcb7e;border-top:4px solid #d89c21;border-radius:10px;text-align:center}.pix-warning-caption{font-size:10px;font-weight:700;letter-spacing:1.2px;color:#7c5512}.pix-payment-warning .pix-payment-word{display:block;font-size:44px;font-weight:800;letter-spacing:4px;line-height:1.1;color:#114b40}.pix-order-number{font-size:14px;color:#526471;overflow-wrap:anywhere;max-width:100%}.pix-warning-copy{display:block;font-size:14px;line-height:1.6;color:#394e5c}.pix-confirm-field{display:grid;gap:10px;font-size:13px;line-height:1.5}.pix-confirm-field>span>strong{color:#114b40;background:#e1f0eb;padding:2px 5px;border-radius:4px}.pix-confirm-dialog .pix-confirm-field input{height:44px;font-size:18px;font-weight:700;letter-spacing:2px;text-align:center}.pix-confirm-dialog .dialog-actions{display:grid;grid-template-columns:1fr 1.35fr;gap:10px;padding:16px 22px}.pix-confirm-dialog .dialog-actions button{width:100%;min-height:42px;margin:0;font-size:12px;line-height:1.4;white-space:normal}@media(max-width:440px){.pix-confirm-dialog .dialog-actions{grid-template-columns:1fr}.pix-confirm-dialog .dialog-body{padding:16px}.pix-confirm-dialog .dialog-head,.pix-confirm-dialog .dialog-actions{padding:16px}}
.production-ocs{display:grid;gap:12px;margin:16px 0;min-width:0}
.production-ocs h4{margin:0;font-size:14px;color:#163f50}
.oc-editor,.oc-selection fieldset{margin:0;padding:14px;border:1px solid #ccdae4;border-radius:9px;background:#f7fafc;min-width:0}
.oc-editor legend,.oc-selection legend{padding:0 6px;font-weight:700;color:#195e54}
.oc-editor-head{display:flex;align-items:end;gap:12px;margin-bottom:12px}
.oc-editor-head label{flex:1}
.oc-product-fields{display:grid;grid-template-columns:1fr 1fr 90px 30px;gap:8px;align-items:end;margin:10px 0}
.oc-product-fields input{min-width:0;width:100%}
.oc-summary{padding:12px;border:1px solid #d1dee8;border-radius:8px;background:#f7fafc;min-width:0}
.oc-summary-head{display:flex;justify-content:space-between;gap:8px;align-items:center;flex-wrap:wrap}
.oc-summary ul{list-style:none;margin:10px 0;padding:0;display:grid;gap:10px}
.oc-summary li{display:grid;gap:4px;padding-bottom:10px;border-bottom:1px solid #dce5eb;font-size:12px;overflow-wrap:anywhere}
.oc-summary small{font-size:10px;line-height:1.5;overflow-wrap:anywhere}
.oc-completed{background:#edf7f1;border-color:#acd3ba}
.oc-summary button{white-space:normal;font-size:11px;width:100%;margin-top:5px}
.oc-selection label{display:flex;align-items:center;gap:8px;padding:6px 0}
.oc-selection input[type=checkbox]{width:16px;height:16px;flex-shrink:0}
.oc-selection small{display:block;color:#60758b}
@media(max-width:600px){.oc-product-fields{grid-template-columns:1fr 1fr}.oc-editor-head{align-items:stretch;flex-direction:column}}
.station-distribution-dialog{width:min(860px,calc(100vw - 32px));max-width:860px}
.distribution-order-summary{display:grid;gap:5px;padding:14px 16px;background:#edf6f3;border:1px solid #c4ded5;border-radius:9px;margin-bottom:20px}
.distribution-order-summary strong{font-size:17px;color:#145b4e}
.distribution-order-summary small{color:#60758b}
.station-distribution-dialog .detail-chats{margin-top:0;padding-top:0;border-top:0}
.station-distribution-dialog .detail-chats>h3{display:none}

/* Dedicated production distribution workspace. */
.dialog.station-distribution-dialog{width:min(1080px,calc(100vw - 32px));max-width:1080px}
.station-distribution-dialog>.dialog-body{background:#f5f8fa;padding:20px 24px}
.station-distribution-dialog .distribution-order-summary{display:flex;align-items:center;flex-wrap:wrap;gap:8px 18px;margin-bottom:18px;background:#fff;border-color:#dbe5eb;padding:12px 16px}
.distribution-tabs{display:flex;gap:6px;border-bottom:1px solid #d5e1e8;margin-bottom:20px;padding-bottom:10px}
.distribution-tabs button{border:0;background:transparent;padding:10px 18px;color:#527084;font-weight:600}
.distribution-tabs button[aria-pressed=true]{background:#155e50;color:#fff;border-radius:7px}
.distribution-tabs button span{margin-left:8px;font-size:11px;opacity:.8}
.distribution-layout{display:grid;grid-template-columns:minmax(0,1fr) 240px;gap:20px;align-items:start}
.distribution-fields{display:grid;gap:16px;min-width:0}
.distribution-step{padding:20px;border:1px solid #dbe5eb;border-radius:12px;background:#fff;min-width:0}
.distribution-step-heading{display:flex;gap:12px;align-items:flex-start;margin-bottom:18px}
.distribution-step-heading>span{display:grid;place-items:center;flex:0 0 28px;height:28px;background:#e7f2ee;color:#155e50;border-radius:50%;font-weight:700;font-size:13px}
.distribution-step-heading h3,.distribution-review h3,.distribution-tracking h3{font-size:15px;margin:0 0 5px;color:#203f50}
.distribution-step-heading p,.distribution-tracking-head p{font-size:12px;color:#668094;line-height:1.5;margin:0}
.distribution-mode{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:16px}
.distribution-mode button{display:grid;gap:5px;text-align:left;padding:13px;white-space:normal;background:#fff;border:1px solid #d2dfe8;border-radius:8px}
.distribution-mode button small{font-size:10px;font-weight:400;line-height:1.4;color:#668094}
.distribution-mode button[aria-pressed=true]{border-color:#1d7966;background:#eff8f4;box-shadow:inset 0 0 0 1px #1d7966}
.distribution-step .station-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:10px}
.distribution-step .station-options label{display:flex;align-items:center;gap:9px;padding:11px;border:1px solid #dbe5eb;border-radius:7px;background:#f9fbfc;margin:0;min-width:0}
.distribution-step .station-options label:has(input:checked){background:#edf7f2;border-color:#65a692}
.distribution-step input[type=checkbox]{width:16px;height:16px;accent-color:#176b59;flex-shrink:0}
.distribution-step .sequence-preview{display:flex;flex-wrap:wrap;gap:8px;padding:0;list-style:none;counter-reset:station}
.distribution-step .sequence-preview li{counter-increment:station;background:#edf5f1;border:1px solid #c6dfd4;padding:8px 10px;border-radius:6px;font-size:12px}
.distribution-step .sequence-preview li:before{content:counter(station) ' · ';font-weight:700}
.distribution-step .production-ocs{margin:0}
.distribution-step .production-ocs>h4{display:none}
.distribution-step .oc-editor{background:#f8fafc;padding:14px;border-color:#d8e3eb}
.distribution-step .oc-editor-head{align-items:end}
.distribution-step .oc-editor-head>button{font-size:10px;color:#9a4545;background:transparent;border-color:transparent}
.distribution-step .oc-product-fields{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 80px 28px}
.distribution-step input:not([type=checkbox]),.distribution-step select{min-height:38px;border-radius:6px}
.distribution-step .oc-editor>button{font-size:11px;background:#fff;color:#176b59}
.distribution-review{position:sticky;top:0;display:grid;gap:9px;background:#fff;border:1px solid #c9dcd4;border-top:3px solid #176b59;border-radius:10px;padding:12px;min-width:0}
.distribution-review>div>small{display:block;font-size:11px;color:#6a8292;margin-bottom:2px}
.distribution-review>div>strong{display:block;font-size:13px;overflow-wrap:anywhere;line-height:1.5}
.distribution-review-counts{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:6px 0;border-top:1px solid #e4ebef;border-bottom:1px solid #e4ebef;text-align:center}
.distribution-review-counts strong{display:block;font-size:21px;color:#155e50}
.distribution-review-counts small,.distribution-review p,.distribution-review-help{font-size:11px;color:#668094;line-height:1.6;margin:0}
.distribution-review>button{width:100%;min-height:34px;padding:7px 10px;white-space:normal}
.distribution-review-help{text-align:center}
.distribution-instructions,.distribution-partial,.distribution-saved-ocs{border:1px solid #dbe5eb;border-radius:9px;background:#fff;padding:14px}
.distribution-partial{margin-top:16px;background:#f5f9fb}
.distribution-instructions summary,.distribution-partial summary,.distribution-saved-ocs summary{cursor:pointer;font-size:12px;font-weight:600;color:#31566d}
.distribution-instructions summary span,.distribution-partial summary span,.distribution-saved-ocs summary span{font-size:10px;color:#738a99;margin-left:8px;font-weight:400}
.distribution-instructions label,.distribution-partial .oc-selection{margin-top:14px}
.distribution-tracking{display:grid;gap:18px}
.distribution-tracking-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.distribution-empty{padding:24px;text-align:center;background:#fff;border:1px dashed #c8d9e3;border-radius:10px;color:#668094;font-size:13px;line-height:1.7}
.distribution-tracking .station-assignment-groups{margin:0}
.distribution-workspace .notice{margin-bottom:16px}
@media(max-width:800px){.distribution-layout{grid-template-columns:1fr}.distribution-review{position:static;grid-template-columns:1fr 1fr}.distribution-review>h3,.distribution-review>button,.distribution-review-help{grid-column:1/-1}.station-distribution-dialog>.dialog-body{padding:14px}.distribution-step{padding:14px}}
@media(max-width:480px){.distribution-mode,.distribution-step .station-options{grid-template-columns:1fr}.distribution-step .oc-product-fields{grid-template-columns:1fr 1fr}.distribution-review{grid-template-columns:1fr}.distribution-tabs button{padding:10px 12px}}

.dialog.station-oc-dialog{width:min(720px,calc(100vw - 28px));max-width:720px}.station-oc-dialog .dialog-body{background:#f7fafc}.station-oc-dialog .production-ocs{gap:14px}.station-oc-dialog .oc-summary{background:white;padding:16px}.station-oc-instructions{padding:12px 14px;background:#fff7df;border:1px solid #eed389;border-radius:8px;font-size:13px;line-height:1.6}.operator-order-actions .station-accept-button{grid-column:1/-1}
.oc-summary .oc-product-line{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 8px;line-height:1.6;min-width:0}.oc-product-line>span{overflow-wrap:anywhere}.oc-product-line .oc-product-divider{color:#8194a1;font-weight:400}
.production-ocs>.oc-summary.oc-tone-blue{background:#edf5ff;border-color:#b7d1ed;border-left:4px solid #5c95cf}.production-ocs>.oc-summary.oc-tone-green{background:#edf8f2;border-color:#b7dac7;border-left:4px solid #55a47d}.oc-summary.oc-tone-blue .oc-summary-head>strong{color:#245780}.oc-summary.oc-tone-green .oc-summary-head>strong{color:#276347}
.oc-summary li{font-size:15px}.oc-summary small{font-size:12px}.oc-summary-head>strong{font-size:16px}.oc-summary li.oc-item-awaiting-accept{grid-template-columns:minmax(0,1fr) auto;column-gap:16px;align-items:center}.oc-item-awaiting-accept>.oc-product-line,.oc-item-awaiting-accept>small{grid-column:1}.oc-summary button.oc-accept-pending{grid-column:2;grid-row:1 / span 2;justify-self:end;align-self:center;width:auto;min-height:36px;padding:8px 14px;margin:0;font-size:13px;white-space:nowrap}@media(max-width:520px){.oc-summary li.oc-item-awaiting-accept{grid-template-columns:minmax(0,1fr)}.oc-summary button.oc-accept-pending{grid-column:1;grid-row:auto;justify-self:end}}
/* Compact OC review: clear group headers and dense, readable item rows. */
.station-oc-dialog .dialog-head{padding:14px 18px;gap:12px}
.station-oc-dialog .dialog-head h2{font-size:18px;line-height:1.35}
.station-oc-dialog .dialog-body{display:grid;gap:12px;padding:16px 18px}
.station-oc-dialog .distribution-order-summary{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:4px 12px;margin:0;padding:10px 12px;font-size:13px;border-radius:8px}
.station-oc-dialog .distribution-order-summary>span{font-size:12px;color:#526c7b}
.station-oc-dialog .station-oc-instructions{margin:0;padding:8px 11px;font-size:12px;line-height:1.4;border-radius:6px}
.station-oc-dialog .production-ocs{gap:10px;margin:0}
.station-oc-dialog .production-ocs>h4{font-size:13px;color:#526c7b}
.station-oc-dialog .oc-summary{padding:0;overflow:hidden;border-radius:9px}
.station-oc-dialog .oc-summary-head{padding:8px 12px;border-bottom:1px solid #29475b14;background:#ffffff55}
.station-oc-dialog .oc-summary-head>strong{font-size:15px;line-height:1.4}
.station-oc-dialog .oc-summary ul{margin:0;padding:0 12px;gap:0}
.station-oc-dialog .oc-summary li{padding:9px 0;gap:2px;column-gap:12px;font-size:15px}
.station-oc-dialog .oc-summary li:last-child{border-bottom:0}
.station-oc-dialog .oc-product-line{gap:2px 6px;line-height:1.45}
.station-oc-dialog .oc-summary small{font-size:11px;line-height:1.4;color:#587180}
.station-oc-dialog .oc-summary button.oc-accept-pending{min-height:34px;padding:6px 12px;font-size:12px;border-radius:7px;box-shadow:none}
.station-oc-dialog .oc-summary>button{width:calc(100% - 24px);margin:0 12px 10px}
.station-oc-dialog .dialog-actions{padding:10px 18px;gap:8px}
.station-oc-dialog .dialog-actions button{min-height:34px;padding:7px 14px}
@media(max-width:520px){.station-oc-dialog .dialog-head,.station-oc-dialog .dialog-body{padding:12px}.station-oc-dialog .dialog-head h2{font-size:16px}.station-oc-dialog .oc-summary li{font-size:14px}.station-oc-dialog .dialog-actions{padding:10px 12px}}
.oc-summary li.oc-item-with-action{grid-template-columns:minmax(0,1fr) auto;column-gap:12px;align-items:center}
.oc-item-with-action>.oc-product-line,.oc-item-with-action>small{grid-column:1}
.oc-summary button.oc-finish-button,.oc-summary .oc-item-finished{grid-column:2;grid-row:1 / span 3;justify-self:end;align-self:center;width:auto;min-height:34px;margin:0;padding:7px 12px;border:1px solid #b91c1c;border-radius:7px;background:#b91c1c;color:#fff;font-size:12px;font-weight:600;line-height:1.4;text-align:center}
.oc-summary button.oc-finish-button:hover:not(:disabled){background:#991b1b;border-color:#991b1b}
.oc-summary button.oc-finish-button:disabled{opacity:.55;cursor:wait}
.oc-summary .oc-item-finished{display:inline-flex;align-items:center;background:#dcfce7;border-color:#86cba1;color:#166534}
.oc-summary button.oc-finish-all{display:block;width:fit-content;max-width:calc(100% - 24px);margin:0 12px 10px auto}
.oc-summary.oc-completed .oc-summary-head>.badge{background:#dcfce7;color:#166534;border:1px solid #86cba1}
@media(max-width:520px){.oc-summary li.oc-item-with-action{grid-template-columns:minmax(0,1fr)}.oc-summary button.oc-finish-button,.oc-summary .oc-item-finished{grid-column:1;grid-row:auto;justify-self:end}}
.oc-summary li.oc-item-with-controls{grid-template-columns:minmax(0,1fr) auto;align-items:center;column-gap:14px}.oc-item-information{min-width:0;display:grid;gap:3px}.oc-item-controls{display:grid;gap:6px;justify-items:end;max-width:175px}.oc-summary .oc-item-controls>button,.oc-summary .oc-item-controls>.oc-item-finished{grid-column:auto;grid-row:auto;margin:0}.oc-quantity-progress{display:flex;flex-wrap:wrap;gap:3px 12px;font-size:12px;line-height:1.5;color:#526c7b}.oc-quantity-progress .oc-previous-pending{flex-basis:100%;color:#8a5a09}.oc-partial-completion{padding:12px 14px;background:#f0f5fa;border:1px solid #cfdeeb;border-radius:8px;display:grid;gap:8px}.oc-partial-completion label{display:grid;grid-template-columns:1fr 100px;gap:12px;align-items:center}.oc-partial-completion input{text-align:center;font-size:18px;font-weight:700}.oc-partial-completion p{margin:0}@media(max-width:520px){.oc-summary li.oc-item-with-controls{grid-template-columns:1fr}.oc-item-controls{justify-self:end}.oc-partial-completion label{grid-template-columns:1fr}}
.station-card-oc-progress{display:grid;gap:7px;margin:5px 0 8px}.station-card-oc-progress>div{padding:8px 9px;border:1px solid #c6d9ec;border-radius:7px;background:#eff6ff}.station-card-oc-progress .station-oc-progress-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:11px;color:#245780}.station-oc-progress-heading>strong{overflow-wrap:anywhere;min-width:0}.station-oc-progress-heading>span{white-space:nowrap;font-weight:700}.station-card-oc-progress small{display:block;font-size:10px;line-height:1.5;color:#536b7b}.station-card-oc-progress progress{display:block;width:100%;height:5px;appearance:none;border:0;border-radius:6px;overflow:hidden;background:#dbe6f1;margin:6px 0;accent-color:#287bc4}.station-card-oc-progress progress::-webkit-progress-bar{background:#dbe6f1;border-radius:6px}.station-card-oc-progress progress::-webkit-progress-value{background:#287bc4;border-radius:6px}.station-card-oc-progress progress::-moz-progress-bar{background:#287bc4;border-radius:6px}.station-card-oc-progress .station-oc-progress-waiting{color:#8a5a09}.station-card-oc-progress .station-oc-progress-done{background:#edf8f2;border-color:#b7dac7}.station-oc-progress-done progress::-webkit-progress-value{background:#258454}.station-oc-progress-done progress::-moz-progress-bar{background:#258454}
.station-oc-compact{display:flex;flex-wrap:wrap;gap:4px;margin:4px 0 7px}.station-oc-compact>div{max-width:100%;padding:4px 7px;border:1px solid #c6d9ec;border-radius:5px;background:#eff6ff;color:#245780}.station-oc-compact .station-oc-progress-heading{display:flex;align-items:center;gap:8px;font-size:10px;line-height:1.3}.station-oc-compact .station-oc-progress-done{color:#166534;border-color:#b7dac7;background:#edf8f2}.station-oc-dialog-progress{grid-template-columns:repeat(2,minmax(0,1fr));margin:0;gap:8px}.station-oc-dialog-progress>h3{grid-column:1/-1;margin:0;font-size:13px;color:#526c7b}.station-oc-dialog-progress .station-oc-progress-heading{font-size:13px}.station-oc-dialog-progress small{font-size:12px}.station-oc-progress-counts{display:flex;flex-wrap:wrap;gap:2px 12px}.station-oc-dialog-progress>div{padding:10px 12px}.station-oc-dialog-progress progress{margin:8px 0}@media(max-width:520px){.station-oc-dialog-progress{grid-template-columns:1fr}}
.workstation-shell .operator-order .station-oc-compact{display:grid;gap:5px;margin:0 0 6px;width:100%}.workstation-shell .station-oc-compact>div{padding:7px 9px;border:1px solid #a5c6e7;border-left:3px solid #3976b1;border-radius:6px;background:#e8f2fc;color:#234f78}.workstation-shell .station-oc-compact .station-oc-progress-heading{justify-content:space-between;gap:10px;font-size:14px;line-height:1.35}.workstation-shell .station-oc-compact .station-oc-progress-heading>span{font-size:16px;font-weight:800}.workstation-shell .station-oc-compact .station-oc-progress-done{border-color:#b7dac7;border-left-color:#258454;background:#edf8f2;color:#166534}.workstation-shell .operator-order .production-origin{padding:3px 6px;margin:0 0 4px;border:1px solid #d7e2e9;background:#f3f6f8;border-radius:4px;color:#587080}.workstation-shell .operator-order .production-origin>strong{margin:0;font-size:10px;font-weight:500;line-height:1.4}
.workstation-shell .operator-order .station-oc-compact{grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}.workstation-shell .station-oc-compact>div{min-width:0;padding:6px 7px}.workstation-shell .station-oc-compact .station-oc-progress-heading{gap:5px;font-size:12px}.workstation-shell .station-oc-compact .station-oc-progress-heading>span{font-size:14px}.workstation-shell .station-oc-compact>div:only-child{grid-column:1/-1}
.workstation-shell .station-oc-compact>div{padding:7px 8px;border:1px solid #bdd6ef;background:#eff6ff;border-radius:5px}.workstation-shell .station-oc-compact .station-oc-progress-heading{gap:4px;flex-wrap:wrap;font-size:11px;line-height:1.4}.workstation-shell .station-oc-compact .station-oc-progress-heading>span{font-size:10px;font-weight:700;margin-left:auto}.workstation-shell .station-oc-compact progress{height:4px;margin:5px 0 6px}.workstation-shell .station-oc-compact .station-oc-progress-counts{gap:2px 8px}.workstation-shell .station-oc-compact small{font-size:10px;line-height:1.4;overflow-wrap:anywhere}.station-oc-progress-counts>small:last-child{flex-basis:100%}
.order-piece-totals{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin:0 0 7px}.order-piece-totals>div{display:grid;gap:4px;padding:8px;border:1px solid #bdd6ef;border-radius:6px;background:#eff6ff;color:#245780;min-width:0}.order-piece-totals>div>span{font-size:11px;font-weight:600}.order-piece-totals>div>strong{font-size:20px;line-height:1.2;overflow-wrap:anywhere}.order-piece-totals>div>strong>small{font-size:12px;font-weight:500}.order-piece-totals>div>small{font-size:10px;line-height:1.4;color:#536b7b}.order-piece-totals progress{display:block;width:100%;height:4px;appearance:none;border:0;border-radius:5px;overflow:hidden;background:#dbe6f1;accent-color:#287bc4}.order-piece-totals progress::-webkit-progress-bar{background:#dbe6f1}.order-piece-totals progress::-webkit-progress-value{background:#287bc4}.order-piece-totals progress::-moz-progress-bar{background:#287bc4}.order-piece-totals .pieces-complete{background:#edf8f2;border-color:#b7dac7;color:#166534}.order-piece-totals .pieces-complete progress::-webkit-progress-value{background:#258454}.order-piece-totals .pieces-complete progress::-moz-progress-bar{background:#258454}.station-oc-dialog .order-piece-totals{margin:0}.station-oc-dialog .order-piece-totals>div{padding:10px 12px}.station-oc-dialog .order-piece-totals>div>span{font-size:13px}
.workstation-shell button.station-details-button{background:#e8f2fc;border-color:#a5c6e7;color:#234f78;font-weight:600}.workstation-shell button.station-details-button:hover:not(:disabled){background:#d5e7f8;border-color:#7faad2}.workstation-shell button.station-view-oc-button{background:#174a78;border-color:#174a78;color:#fff;font-weight:600}.workstation-shell button.station-view-oc-button:hover:not(:disabled){background:#103a61;border-color:#103a61}
.order-piece-totals>div{position:relative}.order-piece-totals button.piece-totals-open{position:absolute;inset:0;width:100%;height:100%;min-height:0;margin:0;padding:0;border:0;border-radius:6px;background:transparent;cursor:pointer}.order-piece-totals button.piece-totals-open:hover:not(:disabled){background:rgba(40,123,196,.07);box-shadow:inset 0 0 0 1px #287bc4}.order-piece-totals button.piece-totals-open:focus-visible{outline:2px solid #174a78;outline-offset:2px}.order-piece-totals button.piece-totals-open:disabled{cursor:wait}
.station-oc-dialog .station-missing-items-button{justify-self:end;background:#fff4d6;color:#80520b;border-color:#dfbd6d;font-weight:600;padding:8px 12px}.station-oc-dialog .station-missing-items-button:hover{background:#ffebba}.dialog.station-missing-dialog{width:min(680px,calc(100vw - 28px));max-width:680px}.station-missing-dialog .dialog-body{display:grid;gap:12px;padding:16px 18px;background:#f7fafc}.station-missing-dialog .dialog-body>.hint{margin:0}.missing-oc-item{padding:12px;border:1px solid #ccdae7;border-radius:8px;background:white}.missing-oc-item header,.missing-oc-item li>div{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap}.missing-oc-item header{color:#245780;font-size:14px}.missing-oc-item header>span{color:#8a5a09;font-weight:600}.missing-oc-item>p{margin:8px 0 4px;font-size:14px;overflow-wrap:anywhere}.missing-oc-item small{font-size:12px;color:#587180}.missing-oc-item ul{list-style:none;padding:0;margin:10px 0 0;display:grid;gap:6px}.missing-oc-item li{padding:9px 10px;background:#eff6ff;border-radius:6px;font-size:13px;overflow-wrap:anywhere}.missing-oc-item li>small{display:block;margin-top:3px}.missing-oc-item li .hint{margin:5px 0 0}
.order-piece-totals .pieces-received-pending{background:#fee2e2;border-color:#f2a6a6;color:#991b1b}.order-piece-totals .pieces-received-pending>small{color:#933434}.order-piece-totals .pieces-received-pending progress{background:#f5bcbc;accent-color:#dc2626}.order-piece-totals .pieces-received-pending progress::-webkit-progress-bar{background:#f5bcbc}.order-piece-totals .pieces-received-pending progress::-webkit-progress-value{background:#dc2626}.order-piece-totals .pieces-received-pending progress::-moz-progress-bar{background:#dc2626}.order-piece-totals .pieces-received-pending button.piece-totals-open:hover:not(:disabled){background:rgba(185,28,28,.06);box-shadow:inset 0 0 0 1px #b91c1c}
.station-applied-sequence{display:grid;gap:4px;padding:10px 12px;border:1px solid #c6d9ec;border-left:3px solid #3976b1;border-radius:7px;background:#eff6ff;color:#245780;overflow-wrap:anywhere}.station-applied-sequence>small{font-size:11px;color:#587180}.station-applied-sequence>strong{font-size:15px}.station-applied-sequence>div{display:flex;flex-wrap:wrap;gap:4px 18px}.station-applied-sequence span{font-size:12px;line-height:1.5}
.station-oc-dialog .dialog-head{display:grid;grid-template-columns:minmax(0,1fr);gap:10px}.station-oc-dialog .dialog-head h2{min-width:0;width:100%;margin:0;overflow-wrap:anywhere}.station-oc-header-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:8px;width:100%;min-width:0;margin-left:0}.station-oc-header-actions>button{max-width:100%;height:auto;white-space:normal;overflow-wrap:break-word}.station-oc-dialog .station-oc-header-actions .station-missing-items-button{width:auto;height:auto;min-height:32px;padding:7px 10px;font-size:12px;line-height:1.3;white-space:normal}.station-oc-header-actions>button[aria-label="Fechar OCs"]{flex-shrink:0}@media(max-width:520px){.station-oc-dialog .dialog-head h2{flex-basis:100%}.station-oc-header-actions{max-width:100%}}
.production-shell:not(.workstation-shell) .operator-orders{grid-auto-rows:auto;align-items:stretch}.production-shell:not(.workstation-shell) .operator-order{height:auto;min-height:480px;max-height:none;overflow:visible}.production-shell:not(.workstation-shell) .operator-order .operator-order-actions{margin-top:auto;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;align-content:end;padding-top:10px}.production-shell:not(.workstation-shell) .operator-order-actions>button,.production-shell:not(.workstation-shell) .operator-order-actions>.operator-status-actions{grid-column:auto}.production-shell:not(.workstation-shell) .operator-order-actions>.urgent-toggle,.production-shell:not(.workstation-shell) .operator-order-actions>.operator-status-choice{grid-column:1/-1}.production-shell:not(.workstation-shell) .operator-order-actions button{height:auto;min-height:36px;white-space:normal}.production-shell button.production-oc-action{background:#174a78;border-color:#174a78;color:#fff;font-weight:600}.production-shell button.production-oc-action:hover{background:#103a61}.production-shell button.production-details-action{background:#e8f2fc;border-color:#a5c6e7;color:#234f78}.production-oc-review-total{display:flex;justify-content:space-between;gap:12px;padding:10px 12px;background:#e8f2fc;border-radius:7px;color:#245780}.production-oc-review>.production-ocs{margin-top:12px}.production-oc-stations{display:grid;gap:8px;margin-top:16px}.production-oc-stations>h3{font-size:14px;margin:0 0 4px}.production-oc-stations>details{border:1px solid #ccdae7;border-radius:7px;background:#fff;overflow:hidden}.production-oc-stations summary{padding:11px 12px;cursor:pointer;font-size:13px}.production-oc-stations summary>span{margin-left:12px;color:#587180}.production-oc-station-body{padding:0 12px 12px}.production-oc-station-counts{font-size:13px}
.oc-summary .oc-item-waiting{display:inline-flex;align-items:center;justify-content:center;min-height:34px;padding:7px 12px;border:1px solid #e0b649;border-radius:7px;background:#fff0b8;color:#80520b;font-size:12px;font-weight:600;line-height:1.4;text-align:center}
.production-origin>.production-origin-urgent{flex-shrink:0;margin-left:auto;min-height:25px;height:auto;padding:3px 6px;border:1px solid #e3a1a1;border-radius:5px;background:#fff1f1;color:#a11c27;font-size:10px;font-weight:600;line-height:1.3;white-space:nowrap}.production-origin>.production-origin-urgent:hover:not(:disabled){background:#ffe0e0;border-color:#c85e66}.production-origin>.production-origin-urgent[aria-pressed="true"]{background:#b91c1c;border-color:#b91c1c;color:white}
.production-stage-percentages{margin:12px 0}.production-stage-percentages>h3{margin:0 0 8px;font-size:13px;color:#526c7b}.production-stage-percentages>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.production-stage-percentages article{padding:10px 12px;border:1px solid #bdd6ef;border-radius:7px;background:#eff6ff;color:#245780;min-width:0}.production-stage-percentages header{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:13px}.production-stage-percentages header>strong{overflow-wrap:anywhere}.production-stage-percentages header>span{font-size:18px;font-weight:700;white-space:nowrap}.production-stage-percentages small{display:block;font-size:12px;line-height:1.5}.production-stage-percentages progress{display:block;width:100%;height:5px;margin:7px 0;appearance:none;border:0;border-radius:5px;overflow:hidden;background:#dbe6f1;accent-color:#287bc4}.production-stage-percentages progress::-webkit-progress-bar{background:#dbe6f1}.production-stage-percentages progress::-webkit-progress-value{background:#287bc4}.production-stage-percentages progress::-moz-progress-bar{background:#287bc4}.production-stage-percentages .stage-percentage-complete{background:#dcfce7;border-color:#86cba1;color:#166534}.production-stage-percentages .stage-percentage-complete progress::-webkit-progress-value{background:#258454}.production-stage-percentages .stage-percentage-complete progress::-moz-progress-bar{background:#258454}@media(max-width:480px){.production-stage-percentages>div{grid-template-columns:1fr}}
.oc-summary .oc-item-pending{display:grid;justify-items:center;gap:2px;min-width:92px;min-height:34px;padding:7px 12px;border:1px solid #f2a6a6;border-radius:7px;background:#fee2e2;color:#991b1b;font-size:12px;line-height:1.4;text-align:center}.oc-item-pending>span{font-size:11px}
.station-oc-dialog .dialog-head{align-items:flex-start}.station-oc-dialog .station-oc-header-actions{flex-wrap:wrap;justify-content:flex-end;flex-shrink:1;max-width:100%}.station-oc-dialog .station-oc-header-actions .station-missing-items-button,.station-oc-dialog .station-oc-header-actions .station-produce-items-button{max-width:190px;min-height:34px;height:auto;width:auto;padding:6px 9px;font-size:11px;line-height:1.4;white-space:normal}.station-oc-dialog .station-produce-items-button{background:#e8f2fc;border-color:#a5c6e7;color:#234f78;font-weight:600}.station-oc-dialog .station-produce-items-button:hover{background:#d5e7f8}
.station-oc-summary-link{position:relative}.station-oc-dialog-progress button.station-oc-jump{position:absolute;inset:0;width:100%;height:100%;margin:0;padding:0;border:0;border-radius:7px;background:transparent;cursor:pointer}.station-oc-dialog-progress button.station-oc-jump:hover{background:#287bc40d;box-shadow:inset 0 0 0 1px #287bc4}.station-oc-dialog-progress button.station-oc-jump:focus-visible{outline:2px solid #2563eb;outline-offset:2px}.station-oc-dialog .production-ocs>.oc-summary.oc-summary-selected{background:#dbeafe;border-color:#2563eb;border-left-color:#2563eb;box-shadow:0 0 0 2px #93c5fd;outline:none;scroll-margin:16px}.oc-summary-selected .oc-summary-head{background:#bfdbfe;color:#174a78}
.production-stage-percentages article{position:relative}.production-stage-percentages button.stage-review-open{position:absolute;inset:0;width:100%;height:100%;margin:0;padding:0;border:0;border-radius:7px;background:transparent;cursor:pointer}.production-stage-percentages button.stage-review-open:hover{background:#287bc40d;box-shadow:inset 0 0 0 1px #287bc4}.production-stage-percentages button.stage-review-open:focus-visible{outline:2px solid #2563eb;outline-offset:2px}.dialog.production-stage-items-dialog{width:min(740px,calc(100vw - 28px));max-width:740px}.production-stage-items-dialog .dialog-body{display:grid;gap:14px;background:#f7fafc;padding:16px 18px}.production-stage-items-dialog p.hint{margin:0}.stage-item-group{border:1px solid #f2a6a6;border-radius:8px;padding:12px;background:#fff1f1}.stage-item-group>h3{margin:0 0 9px;font-size:14px;color:#991b1b}.stage-item-group-produced{background:#edf8f2;border-color:#b7dac7}.stage-item-group-produced>h3{color:#166534}.stage-item-group ul{list-style:none;display:grid;gap:8px;padding:0;margin:0}.stage-item-group li{padding:10px;border:1px solid #dce5eb;border-radius:6px;background:white;font-size:13px;overflow-wrap:anywhere}.stage-item-group li>div{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap}.stage-item-group li>p{margin:5px 0}.stage-item-group li>small{display:block;font-size:12px;line-height:1.5;color:#587180}
.stage-oc-groups{display:grid;gap:9px}.stage-oc-group{border:1px solid #d0dfe8;border-radius:7px;background:#fff;overflow:hidden}.stage-oc-group>h4{margin:0;padding:8px 10px;border-bottom:1px solid #dce5eb;background:#f2f6fa;font-size:13px;color:#245780}.stage-item-group .stage-oc-group>ul{gap:0;padding:0 10px}.stage-item-group .stage-oc-group li{border:0;border-bottom:1px solid #e1e8ef;border-radius:0;padding:10px 0;background:transparent}.stage-item-group .stage-oc-group li:last-child{border-bottom:0}.stage-oc-product-row{align-items:baseline;line-height:1.5}.stage-oc-product-row>span{min-width:0;overflow-wrap:anywhere}
/* Shared order details layout across admin, CD, production, stations, representatives and finance. */
.dialog.order-details-dialog{width:min(800px,calc(100vw - 28px));max-width:800px;max-height:90dvh}.order-details-dialog[open]{display:flex;flex-direction:column}.order-details-dialog>.dialog-head{padding:13px 16px;gap:10px;flex-wrap:wrap;flex-shrink:0}.order-details-dialog>.dialog-head h2{font-size:18px;line-height:1.35;overflow-wrap:anywhere}.order-details-dialog .detail-header-actions{flex-wrap:wrap;gap:6px;margin-left:auto}.order-details-dialog .detail-header-actions button{min-height:30px;padding:5px 8px;font-size:11px}.order-details-dialog>.dialog-body{display:grid;gap:10px;padding:14px 16px;background:#f6f8fb;overflow-y:auto;min-height:0}.order-details-dialog>.dialog-actions{padding:10px 16px;gap:8px;flex-shrink:0}.order-details-dialog>.dialog-actions button{min-height:34px;height:auto;padding:6px 11px;font-size:12px}.order-details-dialog .detail-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.order-details-dialog .detail-grid>div{--field-bg:#edf4fc;--field-border:#c1d7ee;--field-accent:#326d9e;padding:9px 10px;border:1px solid var(--field-border);border-left:3px solid var(--field-accent);background:var(--field-bg);border-radius:7px;font-size:13px;line-height:1.45;min-width:0;overflow-wrap:anywhere}.order-details-dialog .detail-grid small{margin:0 0 3px;font-size:11px;color:#526777}.order-details-dialog .detail-grid strong{font-size:13px}.order-details-dialog .detail-grid>.detail-field-center{--field-bg:#eef8f7;--field-border:#b9dfd9;--field-accent:#26877c}.order-details-dialog .detail-grid>.detail-field-delivery{--field-bg:#f4f1fc;--field-border:#d7cdf0;--field-accent:#8061aa}.order-details-dialog .detail-grid>.detail-field-representative{--field-bg:#fcf0f6;--field-border:#edc9db;--field-accent:#a54f7d}.order-details-dialog .detail-grid>.detail-field-status{--field-bg:#eef8ee;--field-border:#c6e0c3;--field-accent:#5a8e49}.order-details-dialog .detail-grid>.detail-field-deadline{--field-bg:#fff5e8;--field-border:#efd3a8;--field-accent:#b97a28}.order-details-dialog .detail-grid>.detail-field-author{--field-bg:#f2f3f7;--field-border:#d3d7e2;--field-accent:#64748b}.order-details-dialog .detail-grid>.detail-field-received{--field-bg:#eaf7fb;--field-border:#bcdfea;--field-accent:#3688a3}.order-details-dialog .detail-grid>.detail-field-station{--field-bg:#f2effc;--field-border:#d1c9ec;--field-accent:#7460ae}
.order-details-dialog .order-detail-section{gap:8px;padding:10px 12px;border-left-width:3px;border-radius:7px;font-size:13px;line-height:1.5}.order-details-dialog .order-detail-section>h3{margin:-10px -12px 0;padding:8px 12px;font-size:13px;border-radius:0 6px 0 0}.order-details-dialog .order-detail-section>p{margin:0}.order-details-dialog .detail-payment{--section-accent:#267558;--section-border:#bcdcca;--section-bg:#eff9f3;--section-heading:#e1f1e7}.order-details-dialog .detail-history{--section-accent:#626786;--section-border:#d2d5e6;--section-bg:#f5f5fb;--section-heading:#e9eaf5}.order-details-dialog .detail-instructions,.order-details-dialog .detail-production{--section-accent:#6d4aa0;--section-border:#d5c7e9;--section-bg:#f7f2fc;--section-heading:#ece2f6}.commercial-completed-history,.order-details-dialog .commercial-completed-history{--section-accent:#68408b;--section-border:#d6c4e7;--section-bg:#f8f3fc;--section-heading:#eee1f7}.order-details-dialog .observation{padding:8px 10px;margin:0;font-size:13px;line-height:1.5}.order-details-dialog .timeline li{padding:0 0 12px 12px;font-size:12px}.order-details-dialog .timeline small{margin-top:4px;font-size:11px;line-height:1.4}.order-details-dialog .timeline .observation{margin:5px 0}.order-details-dialog .delivery-edit{margin:0;padding:10px 12px;gap:8px;border-radius:7px;background:#f8f3fc;border:1px solid #d6c4e7}.order-details-dialog label{font-size:12px;gap:4px}.order-details-dialog .representative-commercial{margin:0;padding:10px 12px;border-radius:7px;font-size:13px}.order-details-dialog .chat-history-entry>button{padding:8px 10px;font-size:12px}.order-details-dialog .notice,.order-details-dialog .finance-ribbon{margin:0;padding:9px 11px;font-size:12px}@media(max-width:620px){.order-details-dialog .detail-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.order-details-dialog>.dialog-body{padding:12px}.order-details-dialog>.dialog-head,.order-details-dialog>.dialog-actions{padding:10px 12px}}@media(max-width:380px){.order-details-dialog .detail-grid{grid-template-columns:1fr}}
.stage-oc-groups>.stage-oc-group:nth-child(odd){background:#edf5ff;border-color:#b7d1ed;border-left:3px solid #5c95cf}.stage-oc-groups>.stage-oc-group:nth-child(odd)>h4{background:#dfeeff;color:#245780;border-bottom-color:#bfd6ed}.stage-oc-groups>.stage-oc-group:nth-child(even){background:#f5f0fc;border-color:#d6c8ea;border-left:3px solid #9875c0}.stage-oc-groups>.stage-oc-group:nth-child(even)>h4{background:#ebe1f7;color:#68468b;border-bottom-color:#d6c8ea}.stage-item-group .stage-oc-group:nth-child(even) li{border-bottom-color:#e1d7ee}
.order-details-dialog .detail-grid{gap:0;border:1px solid #dce3e9;border-radius:7px;overflow:hidden;background:#fff}.order-details-dialog .detail-grid>div{padding:7px 10px;border:0;border-bottom:1px solid #e8edf1;border-radius:0;background:transparent;font-size:12px;line-height:1.35}.order-details-dialog .detail-grid small{margin-bottom:2px;font-size:10px;color:#647685}.order-details-dialog .detail-grid strong{font-size:12px;font-weight:600}.order-details-dialog .detail-grid .badge{font-size:10px;padding:3px 6px}.order-details-dialog .detail-grid .customer-name{font-size:12px}
.order-details-dialog .delivery-edit.detail-transfer{background:var(--section-bg);border-color:var(--section-border);border-left:3px solid var(--section-accent)}
.order-details-dialog .detail-header-actions .transfer-open-button{background:#fff0e9;border-color:#edc0b5;color:#a54c3b;font-weight:600}.order-details-dialog .detail-header-actions .transfer-open-button:hover{background:#fbe1d8}.dialog.transfer-order-dialog{width:min(580px,calc(100vw - 28px));max-width:580px;background:#fff}.transfer-order-dialog>.dialog-head{padding:14px 16px;background:#fff5f1;border-bottom:1px solid #edc0b5;gap:12px}.transfer-order-dialog>.dialog-head h2{font-size:16px;color:#a54c3b;line-height:1.4;overflow-wrap:anywhere}.transfer-order-dialog .dialog-body{display:grid;gap:12px;padding:16px;background:#fffaf7}.transfer-order-dialog label{font-size:13px;gap:5px}.transfer-order-dialog textarea{min-height:90px}.transfer-order-dialog .dialog-body>small{font-size:12px;line-height:1.5;color:#81594f}.transfer-order-dialog .dialog-actions{padding:12px 16px}.transfer-order-dialog .transfer-confirm-button{background:#a54c3b;border-color:#a54c3b;color:white}.transfer-order-dialog .transfer-confirm-button:hover:not(:disabled){background:#863c2d}

.station-final-pieces-incomplete{background:#eef5ff;border-color:#aecdf2;color:#205583}
.station-final-pieces p strong{font-size:14px}
/* Keep order information at its natural height when the history overflows. */
.order-details-dialog>.dialog-body{grid-auto-rows:max-content;align-content:start}
.order-details-dialog .detail-grid{min-height:min-content}

.station-stage-status{background:#f4f7fb;border-color:#c9d7e6;color:#294760}.station-stage-status .stage-state{font-weight:600}.station-stage-status .stage-state-done{color:#187548}.station-stage-status .stage-state-working{color:#246398}.station-stage-status .stage-state-pending,.station-stage-status .stage-state-waiting{color:#996300}
/* Larger, clearly separated order details across all panels. */
.order-details-dialog .detail-grid{border-color:#b8cbdc;box-shadow:0 1px 4px #193b4d0a}
.order-details-dialog .detail-grid>div{padding:11px 13px;font-size:15px;font-weight:600;line-height:1.45;border-bottom-color:#dce5ed}
.order-details-dialog .detail-grid small{font-size:12px;font-weight:500;color:#526b7d;margin-bottom:4px;line-height:1.35}
.order-details-dialog .detail-grid strong,.order-details-dialog .detail-grid .customer-name{font-size:15px;font-weight:700;color:#193b4d}
.order-details-dialog .detail-grid .badge{font-size:12px;padding:4px 8px}

.order-details-dialog .delivery-open-button{background:#f3effb;border-color:#d5c7e9;color:#68408b}.dialog.delivery-date-dialog{width:min(520px,calc(100vw - 28px))}.delivery-date-dialog>.dialog-head{padding:14px 16px;background:#f3effb;gap:12px}.delivery-date-dialog h2{font-size:17px}.delivery-date-dialog .dialog-body{padding:16px;gap:12px}.delivery-date-dialog .dialog-actions{padding:12px 16px}

.new-order-dialog input[name="number"],.new-order-dialog input[name="customer_name"],.new-order-dialog textarea[name="observation"],.new-order-dialog select,.new-order-dialog option{text-transform:uppercase}
.new-order-dialog input::placeholder,.new-order-dialog textarea::placeholder{text-transform:none}

.order-details-dialog .detail-header-actions{flex:1;justify-content:flex-end}.order-details-dialog .detail-header-actions .detail-chat-button{order:98;margin-left:auto}.order-details-dialog .detail-header-actions>button[aria-label="Fechar"]{order:99}
.station-stage-status{background:#fff5cf;border-color:#edba4b;color:#855500}

.oc-product-fields,.distribution-step .oc-product-fields{grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(85px,.6fr) 80px 28px}
@media(max-width:600px){.oc-product-fields,.distribution-step .oc-product-fields{grid-template-columns:repeat(2,minmax(0,1fr))}}
.station-faction-option{display:flex;align-items:center;gap:8px}.station-faction-option input{width:18px;min-height:18px}.faction-management{border:1px solid #d9e2eb;border-radius:10px;padding:14px}.faction-management .panel-head{padding:0 0 14px}.faction-register-list{display:grid;gap:8px;margin-top:14px}.faction-register-list>div{display:flex;align-items:center;flex-wrap:wrap;gap:10px;padding:8px;border-bottom:1px solid #e2e8f0}.faction-register-list strong{margin-right:auto}.faction-board{display:grid;gap:20px;margin-top:22px}.faction-columns{display:flex;gap:14px;overflow-x:auto;padding:16px;align-items:flex-start}.faction-column{flex:0 0 285px;border:1px solid #bfd2e5;background:#f3f7fc;border-radius:9px;overflow:hidden}.faction-internal .faction-column{flex:1}.faction-column>header{display:flex;justify-content:space-between;gap:10px;background:#e4eef9;padding:12px;font-size:13px}.faction-column h3{font-size:15px}.faction-column>div{display:grid;gap:10px;padding:10px}.faction-internal .faction-column>div{grid-template-columns:repeat(auto-fill,minmax(240px,1fr))}.faction-column article{display:grid;gap:7px;border:1px solid #ccdae7;border-radius:7px;background:white;padding:12px;font-size:13px}.faction-column article.faction-oc-done{background:#eaf8ef;border-color:#93c9a7}.faction-empty{padding:12px;font-size:13px;color:#62788a}.route-oc-dialog{width:min(650px,calc(100vw - 28px))}.route-oc-dialog .dialog-body{gap:14px}.route-oc-dialog p{font-size:13px;line-height:1.5}.route-oc-row{padding:12px;background:#f1f6fc;border:1px solid #c6d9ed;border-radius:7px}

.distribution-oc-mini{border-top:1px solid #cbdbe4;padding-top:14px;display:grid;gap:10px}.distribution-oc-mini>div:first-child{display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:space-between}.distribution-oc-mini h4{font-size:14px;margin:0}.oc-mini-list{display:grid;gap:8px}.oc-mini-list>button{display:grid;text-align:left;justify-content:stretch;gap:5px;background:#edf5ff;border:1px solid #b9d2ef;padding:10px}.oc-mini-list>button[aria-pressed="true"]{border-color:#277fce;box-shadow:0 0 0 2px #b8dbff}.oc-mini-list span,.oc-mini-list small{font-size:11px}.distribution-review{max-height:calc(90dvh - 120px);overflow-y:auto}

.allocation-row{display:grid;grid-template-columns:minmax(0,1fr) 100px 32px;gap:8px;align-items:end;margin:8px 0}.route-oc-row{display:grid;gap:8px}.oc-allocation-summary{display:flex;flex-wrap:wrap;gap:6px 14px;margin:5px 0}.oc-allocation-summary small{background:#e8eff8;padding:4px 7px;border-radius:4px}@media(max-width:440px){.allocation-row{grid-template-columns:minmax(0,1fr) 72px 28px}}

button.distribution-complete{background:#dcfce7;color:#166534;border:1px solid #86d5a2;font-weight:700;}
button.distribution-complete:hover{background:#bbf7d0;border-color:#22a85a;}

.oc-mini-list>button{background:#dbeafe;border:2px solid #3b82f6;border-left-width:5px;color:#153e75;box-shadow:0 2px 5px #1d4ed81a}.oc-mini-list>button strong{font-size:14px}.oc-mini-list>button:hover{background:#bfdbfe}.oc-mini-list>button[aria-pressed="true"]{background:#bfdbfe;border-color:#1d4ed8}.oc-mini-list>button.oc-mini-new{animation:oc-added-pulse 1.2s ease-in-out 3}@keyframes oc-added-pulse{0%,100%{background:#dbeafe;box-shadow:0 0 0 0 #3b82f600}50%{background:#93c5fd;border-color:#1d4ed8;box-shadow:0 0 0 3px #3b82f64d}}@media(prefers-reduced-motion:reduce){.oc-mini-list>button.oc-mini-new{animation:none;background:#bfdbfe;border-color:#1d4ed8}}

button.distribution-pending{animation:distribution-pending-pulse 1.8s ease-in-out infinite}@keyframes distribution-pending-pulse{0%,100%{background:#105c50;color:#fff;border-color:#105c50;box-shadow:0 0 0 0 #eab30800}50%{background:#facc15;color:#422006;border-color:#eab308;box-shadow:0 0 0 3px #eab30855}}@media(prefers-reduced-motion:reduce){button.distribution-pending{animation:none;outline:2px solid #2aa88a;outline-offset:2px}}

[data-station-order]{cursor:pointer}.workstation-shell .station-order-focused{outline:3px solid #287cda;outline-offset:2px}.workstation-shell [data-station-order]:focus-visible{outline:3px solid #287cda;outline-offset:2px}.workstation-shell .pagination[hidden]{display:none}

.faction-column article.faction-oc-urgent{border:2px solid #d82020;animation:urgent-pulse 1.8s ease-in-out infinite}@media(prefers-reduced-motion:reduce){.faction-column article.faction-oc-urgent{animation:none;background:#ffd6d6;box-shadow:0 0 0 2px #df2525}}

.order-piece-totals>div>strong{text-align:center;width:100%}

.oc-summary .oc-allocation-summary{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0}.oc-summary .oc-allocation-summary .oc-allocation-row>small{display:grid;gap:4px;min-width:150px;padding:9px 12px;background:#e1edff;border:1px solid #86afe3;border-left:4px solid #3479c5;border-radius:6px;color:#183e6a;font-size:13px;line-height:1.4}.oc-allocation-summary .oc-allocation-row>small>strong{font-size:14px}.oc-allocation-summary .oc-allocation-row>small b{font-size:16px}.oc-summary .oc-allocation-summary .oc-allocation-row>small.allocation-total-done{background:#e1f5e8;border-color:#85c79e;color:#166534}

.dialog.finish-oc-dialog{width:min(540px,calc(100vw - 28px))}.finish-oc-dialog .dialog-head,.finish-oc-dialog .dialog-actions{padding:12px 16px}.finish-oc-dialog .dialog-head h2{font-size:17px}.finish-oc-dialog .dialog-body{padding:12px 16px;gap:12px}.finish-oc-dialog .dialog-body>p{margin:0;font-size:13px;line-height:1.4}.finish-product-summary{display:grid;gap:6px;padding:10px 12px;background:#eef5ff;border:1px solid #bbd3ef;border-radius:7px}.finish-product-summary>div{display:grid;gap:4px;font-size:13px;overflow-wrap:anywhere}.finish-product-summary span{font-size:12px;color:#476379}.finish-oc-dialog .oc-partial-completion{padding:10px 12px;grid-template-columns:minmax(0,1fr) 135px;gap:10px}.finish-oc-dialog .oc-partial-completion label{display:flex;flex-direction:column;align-items:stretch;gap:5px;font-size:12px}.finish-oc-dialog .oc-partial-completion label:only-of-type{grid-column:1/-1}.finish-oc-dialog .oc-partial-completion select,.finish-oc-dialog .oc-partial-completion input{width:100%;min-width:0;min-height:36px;margin:0}.finish-oc-dialog .oc-partial-completion p{grid-column:1/-1;font-size:12px;line-height:1.4}@media(max-width:420px){.finish-oc-dialog .oc-partial-completion{grid-template-columns:minmax(0,1fr)}}

.finish-oc-dialog .oc-partial-completion input[type="number"]{width:90px;max-width:100%;min-height:32px;padding:5px 8px}

@keyframes urgent-ready-pulse{0%,100%{background:#ffd1d1;border-color:#d82020;box-shadow:0 0 0 2px #d8202066}50%{background:#bbefcb;border-color:#169447;box-shadow:0 0 0 2px #16944766}}.operator-order.order-urgent-ready{animation:urgent-ready-pulse 2s ease-in-out infinite;border:2px solid #d82020}@media(prefers-reduced-motion:reduce){.operator-order.order-urgent-ready{animation:none;background:#d9f5e2;border-color:#d82020;box-shadow:0 0 0 2px #d8202066}}

button.accept-attention:not(:disabled){animation:distribution-pending-pulse 1.8s ease-in-out infinite}@media(prefers-reduced-motion:reduce){button.accept-attention:not(:disabled){animation:none;background:#facc15;color:#422006;border-color:#eab308}}

.production-complete-label{display:flex;align-items:center;justify-content:center;padding:8px 10px;border:1px solid #86cfa0;border-radius:7px;background:#dcfce7;color:#166534;font-size:12px;font-weight:700;text-align:center}

.production-origin>.production-origin-urgent[hidden]{display:none}

.oc-quantity-progress .oc-pending-quantity{color:#b91c1c;background:#fee2e2;border:1px solid #f3aaaa;border-radius:4px;padding:2px 6px;font-weight:700}

.oc-quantity-progress{align-items:center;gap:5px 6px}.oc-quantity-progress>span{display:inline-flex;align-items:center;justify-content:center;gap:4px;box-sizing:border-box;flex:0 0 112px;max-width:100%;min-height:26px;padding:3px 6px;border:1px solid #d4e0ec;border-radius:4px;background:#f4f8fc;font-size:12px;line-height:18px;font-weight:500;white-space:nowrap}.oc-quantity-progress>span b{font-size:inherit;line-height:inherit;font-weight:700}.oc-quantity-progress>span.oc-pending-quantity{padding:3px 6px;font-weight:500}

.oc-quantity-progress>span{flex-basis:auto;min-width:112px;white-space:normal}.oc-quantity-progress>span.oc-awaiting-quantity{min-width:155px;background:#fff4d6;border-color:#e5c470;color:#80520b}.oc-quantity-progress>span b{white-space:nowrap}

.station-awaiting-pieces{margin:6px 0;padding:7px 9px;background:#fff4d6;border:1px solid #e5c470;border-radius:6px;color:#80520b;font-size:12px}

.finish-oc-dialog .oc-partial-completion{grid-template-columns:minmax(0,1fr);gap:8px}.finish-oc-dialog .oc-partial-completion label{display:grid;grid-template-columns:minmax(0,1fr) 90px;align-items:center;gap:12px;font-size:13px;font-weight:600}.finish-oc-dialog .oc-partial-completion input[type="number"]{justify-self:end;height:34px}.finish-oc-dialog .dialog-actions{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:8px}.finish-oc-dialog .dialog-actions>button{min-height:34px;padding:7px 12px}.finish-product-summary>div{gap:3px}.finish-oc-dialog .dialog-body{gap:10px}@media(max-width:360px){.finish-oc-dialog .oc-partial-completion label{grid-template-columns:minmax(0,1fr) 72px;gap:8px}.finish-oc-dialog .oc-partial-completion input[type="number"]{width:72px}}

.oc-summary .oc-allocation-summary{display:grid;grid-template-columns:minmax(0,1fr);justify-items:start;gap:6px}.oc-summary .oc-allocation-summary .oc-allocation-row>small{box-sizing:border-box;width:190px;max-width:100%;min-width:0}.oc-summary .oc-item-controls{width:175px;max-width:100%;align-content:start;gap:6px}.oc-summary .oc-item-controls>button.oc-finish-button{width:100%;min-height:40px;white-space:normal}

.oc-summary .oc-allocation-summary{justify-items:stretch}.oc-allocation-row{display:grid;grid-template-columns:minmax(0,190px) minmax(0,175px);justify-content:center;align-items:stretch;gap:12px}.oc-summary .oc-allocation-row>small{text-align:center;justify-items:center;width:100%}.oc-summary .oc-allocation-row>button.oc-finish-button{grid-column:2;grid-row:1;align-self:stretch;justify-self:stretch;width:100%;margin:0;white-space:normal}.oc-summary li.oc-item-allocated{grid-template-columns:minmax(0,1fr)}.oc-item-allocated>.oc-item-controls{justify-self:end}.oc-item-controls:empty{display:none}

.oc-summary .oc-allocation-row>button.oc-allocation-complete{grid-column:2;grid-row:1;align-self:stretch;justify-self:stretch;width:100%;min-height:40px;margin:0;padding:7px 12px;border:1px solid #86cfa0;border-radius:7px;background:#dcfce7;color:#166534;font-size:12px;font-weight:700;line-height:1.4;text-align:center;white-space:normal;opacity:1;cursor:default}

button.station-finalize-ready:not(:disabled){animation:distribution-pending-pulse 1.8s ease-in-out infinite}@media(prefers-reduced-motion:reduce){button.station-finalize-ready:not(:disabled){animation:none;background:#facc15;color:#422006;border-color:#eab308}}

.production-shell:not(.workstation-shell) .operator-order-actions>.operator-status-actions:has(.production-conclude-button){grid-column:2}.dialog-actions>.production-conclude-button{margin-left:auto}

.cd-panel .operator-orders{grid-auto-rows:auto;align-items:stretch;gap:10px}.cd-panel .operator-order{height:auto;min-height:0;max-height:none;padding:10px;overflow:visible}.cd-panel .operator-order .production-origin{padding:5px 7px;margin-bottom:6px;gap:6px}.cd-panel .production-origin strong{font-size:12px;margin:0}.cd-panel .production-origin small{display:none}.cd-panel .operator-order .production-return{padding:6px 8px;gap:2px;margin-bottom:6px}.cd-panel .operator-order>.delivery-countdown{min-height:34px;padding:6px 8px;margin-bottom:6px}.cd-panel .operator-order-top{gap:8px}.cd-panel .operator-order-top h3{font-size:17px;margin:0}.cd-panel .operator-order-client{margin:5px 0;gap:1px;font-size:13px}.cd-panel .operator-order-representative{margin:3px 0;gap:1px}.cd-panel .operator-delivery-method{margin:3px 0}.cd-panel .operator-delivery{padding:6px 8px;margin:4px 0;gap:6px}.cd-panel .operator-order>.observation{padding:4px 0;margin:3px 0 6px;font-size:12px}.cd-panel .operator-received{margin:4px 0;font-size:11px}.cd-panel .operator-order .operator-order-actions{min-height:0;padding-top:7px;gap:6px;margin-top:auto}.cd-panel .operator-order-actions button{height:auto;min-height:36px;padding:6px 8px;font-size:12px}.cd-panel .operator-order .badge{padding:3px 6px}

.new-order-dialog{border-radius:14px;border:1px solid #d4e2de}.new-order-dialog>.dialog-head{padding:16px 20px;background:#f2f8f6}.new-order-dialog .dialog-body{gap:14px;padding:18px 20px}.new-order-dialog .dialog-body>label,.delivery-date-field{font-size:12px;font-weight:600;gap:6px}.new-order-dialog input,.new-order-dialog select{min-height:40px;border-radius:7px}.new-order-dialog textarea{min-height:72px;border-radius:7px}.delivery-date-field{display:grid;position:relative;align-content:start}.delivery-date-trigger{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;min-height:40px;padding:9px 11px;border:1px solid #b7ccc4;border-radius:7px;background:#f5faf7;color:#205e50;text-align:left;font-size:13px}.delivery-date-field>small{font-size:11px;font-weight:400;color:#647d76}.delivery-date-field .date-validation{position:absolute;width:1px;height:1px;min-height:0;padding:0;border:0;opacity:0;pointer-events:none}.dialog.delivery-picker-dialog{width:min(420px,calc(100vw - 24px));padding:0}.delivery-picker-dialog .period-calendars{grid-template-columns:1fr;padding:8px 22px 16px}.delivery-picker-dialog .period-navigation strong{text-transform:capitalize;font-size:14px}.delivery-picker-dialog .period-days button{height:38px;font-size:13px}.delivery-picker-time{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 22px;background:#f4f8f6;border-top:1px solid #dce8e2}.delivery-picker-time label{display:flex;align-items:center;gap:8px;font-size:13px}.delivery-picker-time input{width:112px;min-height:36px}.delivery-picker-dialog .period-footer{padding:14px 22px;gap:12px}.delivery-picker-dialog .period-footer>div{flex:1}.delivery-picker-dialog .period-header p{font-size:12px}

.cd-panel .operator-order-actions>button.stock-complete-label,.operator-order-actions>button.stock-complete-label{grid-column:1;background:#dcfce7;color:#166534;border:1px solid #86cfa0;border-radius:7px;opacity:1;cursor:default;font-weight:700}

.new-order-dialog .dialog-body>label,.new-order-dialog .dialog-body>.delivery-date-field{align-self:start;align-content:start;line-height:18px;gap:6px}.new-order-dialog .dialog-body>label>select,.new-order-dialog .dialog-body>label>input:not([type="hidden"]),.new-order-dialog .delivery-date-trigger{box-sizing:border-box;height:40px;min-height:40px;margin:0;padding:9px 11px}.new-order-dialog .delivery-date-field>span{line-height:18px}

.dialog.new-order-dialog{border:1px solid #d6e3de;border-radius:18px;box-shadow:0 24px 70px #123d3030;background:#fff}.new-order-dialog>.dialog-head{padding:18px 22px;background:linear-gradient(120deg,#f0f8f4,#fff);border-bottom:1px solid #dfebe5}.new-order-title{display:flex;align-items:center;gap:12px;font-size:20px;font-weight:700;letter-spacing:-.3px}.new-order-title>span{display:grid;place-items:center;width:40px;height:40px;background:#e0f0e7;border:1px solid #c5dfd1;border-radius:12px;color:#17634f}.new-order-dialog>.dialog-head>button{width:32px;height:32px;min-height:32px;padding:0;border-radius:9px;background:#fff}.new-order-dialog>form>.dialog-body{padding:20px 22px;gap:16px 18px;align-items:start}.new-order-dialog .dialog-body>label,.new-order-dialog .dialog-body>.delivery-date-field{gap:7px;line-height:18px;font-size:12px;font-weight:600;color:#38564a}.new-order-dialog .dialog-body>label>select,.new-order-dialog .dialog-body>label>input:not([type="hidden"]),.new-order-dialog .delivery-date-trigger{height:42px;min-height:42px;padding:10px 12px;border:1px solid #ceded6;border-radius:9px;background:#fbfdfc;color:#203e33;font-size:13px;font-weight:500;box-shadow:0 1px 2px #143d2605}.new-order-dialog .dialog-body>label>textarea{min-height:82px;padding:11px 12px;border:1px solid #ceded6;border-radius:9px;background:#fbfdfc;font-size:13px;line-height:1.5}.new-order-dialog .dialog-body>label>input:focus,.new-order-dialog .dialog-body>label>select:focus,.new-order-dialog .dialog-body>label>textarea:focus,.new-order-dialog .delivery-date-trigger:focus-visible{outline:2px solid #2b8b6a;outline-offset:2px;border-color:#65a88d;background:#fff}.new-order-dialog input::placeholder,.new-order-dialog textarea::placeholder{color:#86968e;font-weight:400}.new-order-dialog .dialog-body>.hint{margin:0;padding:10px 12px;background:#f3f7f5;border:1px solid #e5eee9;border-radius:8px;color:#718579;font-size:11px;line-height:1.5}.new-order-dialog>form>.dialog-actions{padding:14px 22px;gap:10px;background:#f7faf8;border-top:1px solid #e0eae4}.new-order-dialog>form>.dialog-actions>button{min-height:40px;padding:9px 16px;border-radius:9px;font-size:13px}.new-order-dialog>form>.dialog-actions>.primary{background:#17634f;border-color:#17634f;box-shadow:0 3px 8px #17634f20}.new-order-dialog>form>.dialog-actions>.primary:hover{background:#114d3d}@media(max-width:520px){.new-order-dialog>form>.dialog-body{padding:16px;gap:13px}.new-order-dialog>.dialog-head,.new-order-dialog>form>.dialog-actions{padding:14px 16px}.new-order-title{font-size:18px}}

.new-order-dialog>.dialog-head{display:flex;flex-wrap:nowrap;align-items:center;padding:10px 16px;gap:12px}.new-order-dialog>.dialog-head h2{flex:1;min-width:0;margin:0}.new-order-dialog>.dialog-head>button{flex:none;margin:0;width:28px;height:28px;min-height:28px}.new-order-title{font-size:17px;gap:9px}.new-order-title>span{width:32px;height:32px;border-radius:9px}.new-order-dialog>form>.dialog-body{padding:13px 16px;gap:10px 14px}.new-order-dialog .dialog-body>label,.new-order-dialog .dialog-body>.delivery-date-field{gap:4px;line-height:16px}.new-order-dialog .dialog-body>label>select,.new-order-dialog .dialog-body>label>input:not([type="hidden"]),.new-order-dialog .delivery-date-trigger{height:36px;min-height:36px;padding:7px 10px}.new-order-dialog .dialog-body>label>textarea{height:60px;min-height:60px;padding:8px 10px}.new-order-dialog .dialog-body>.hint{padding:7px 10px;font-size:10px;line-height:1.4}.new-order-dialog>form>.dialog-actions{padding:10px 16px;gap:8px}.new-order-dialog>form>.dialog-actions>button{min-height:34px;padding:7px 12px}.new-order-dialog .delivery-date-field>small{font-size:10px;line-height:14px}

.new-order-dialog>.dialog-head{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px}.new-order-dialog>.dialog-head>h2{width:auto;min-width:0;overflow-wrap:normal;word-break:normal}.new-order-dialog .new-order-title{white-space:nowrap;min-width:0}.new-order-dialog .new-order-title>span{flex:0 0 32px}.new-order-dialog>.dialog-head>.detail-header-actions{width:auto;min-width:28px;flex-wrap:nowrap;margin:0;justify-content:flex-end}.new-order-dialog>.dialog-head>.detail-header-actions>.ghost:last-child{margin:0;width:28px;height:28px;min-height:28px}
.geo-import-dialog{width:min(1080px,96vw);max-width:1080px;max-height:92vh;padding:0;border:1px solid #cbded9;border-radius:14px;color:#193747;background:#fff;box-shadow:0 24px 70px #163b4330}
.geo-import-content{padding:16px;overflow:auto;max-height:80vh}.geo-import-tools{display:flex;flex-wrap:wrap;gap:10px;align-items:end;padding:12px;background:#f2f8f6;border:1px solid #dbe8e3;border-radius:10px;margin:12px 0}.geo-import-tools label{display:grid;gap:5px;font-size:12px}.geo-import-tools input,.geo-import-tools select{min-height:34px}
.geo-import-grid{display:grid;grid-template-columns:260px minmax(0,1fr);gap:18px;margin-top:16px}.geo-import-grid aside{display:grid;align-content:start;gap:8px;max-height:56vh;overflow:auto}.geo-draft{display:grid!important;gap:5px;text-align:left!important;width:100%;padding:12px!important;border:1px solid #dbe5eb!important;border-radius:9px;background:white}.geo-draft.selected{background:#eaf7f2!important;border-color:#16816d!important}.geo-draft span{font-size:12px;white-space:normal}.geo-draft small{font-size:11px;color:#597381}.geo-review-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:12px 0}.geo-review-fields label{display:grid;gap:5px;font-size:12px;align-content:start}.geo-review-fields input,.geo-review-fields select,.geo-review-fields textarea{width:100%;min-width:0;min-height:35px;border:1px solid #c9dbd8;border-radius:6px;padding:8px;background:white}.geo-review-fields small{font-size:10px;color:#5e7781}.geo-observation{grid-column:1/-1}.geo-products{overflow:auto;margin:14px 0}.geo-products table{width:100%;border-collapse:collapse;font-size:12px}.geo-products th,.geo-products td{padding:9px;text-align:left;border-bottom:1px solid #dfebe7}.geo-products th{background:#eff6f3}.geo-products small{display:block;color:#66808c;max-width:240px;margin-top:3px}.geo-import-dialog .dialog-head{display:flex;align-items:center;justify-content:space-between;padding:15px;background:#f4f9f7}.geo-import-dialog h2{white-space:nowrap;font-size:17px;margin:0}
@media(max-width:700px){.geo-import-grid{grid-template-columns:1fr}.geo-import-grid aside{max-height:180px}.geo-review-fields{grid-template-columns:1fr}.geo-import-tools{align-items:stretch}.geo-import-dialog h2{white-space:normal}.geo-import-content{padding:10px}}
.geo-import-dialog .geo-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:14px 0}.geo-import-dialog .geo-summary>span{display:flex;align-items:center;gap:10px;padding:12px;border:1px solid #d8e7e2;background:#f5faf8;border-radius:9px;font-size:12px}.geo-import-dialog .geo-summary strong{font-size:22px;color:#146454;font-variant-numeric:tabular-nums}.geo-import-dialog .geo-list-filters{display:grid;grid-template-columns:minmax(0,1fr) 180px;gap:12px;margin-bottom:14px}.geo-import-dialog .geo-list-filters label{font-size:12px;gap:5px}.geo-import-dialog .geo-list-filters input,.geo-import-dialog .geo-list-filters select{min-height:36px;padding:8px 10px}.geo-import-dialog aside>h3{font-size:13px;margin-bottom:10px}.geo-import-dialog .geo-empty{padding:20px 12px;text-align:center;background:#f6f9fb;border:1px dashed #cfdee5;border-radius:9px;line-height:1.5;font-size:12px}.geo-import-dialog .geo-empty p{margin-top:6px;color:#617785}.geo-import-dialog .geo-status{width:fit-content;border-radius:5px;padding:3px 7px;font-size:10px;background:#fff4d5;color:#805a13}.geo-import-dialog .geo-status.imported{background:#e2f5eb;color:#146454}.geo-import-dialog .geo-status.duplicate{background:#eaf0f5;color:#506778}.geo-import-dialog .geo-draft{width:100%;overflow-wrap:anywhere}.geo-import-dialog .geo-draft.selected{box-shadow:inset 3px 0 #146454}.geo-import-dialog .geo-summary,.geo-import-dialog .geo-list-filters{flex-shrink:0}@media(max-width:600px){.geo-import-dialog .geo-summary{gap:5px}.geo-import-dialog .geo-summary>span{flex-direction:column;align-items:flex-start;gap:4px;padding:9px}.geo-import-dialog .geo-list-filters{grid-template-columns:1fr}}
.geo-pending-panel{margin-bottom:20px}.geo-pending-panel .panel-head{gap:12px}.geo-pending-count{display:inline-flex;align-items:center;justify-content:center;min-width:24px;padding:3px 7px;margin-left:6px;border-radius:6px;background:#e2f3ed;color:#146454;font-size:12px}.geo-pending-empty{padding:22px 24px;color:#425f70;font-size:13px}.geo-pending-empty p{margin-top:6px;color:#728592;font-size:12px}.geo-pending-panel td{vertical-align:middle}.geo-pending-panel .geo-status{display:inline-block;padding:5px 8px;border-radius:5px;background:#fff4d5;color:#805a13;font-size:11px;white-space:nowrap}.geo-pending-panel td:last-child{white-space:nowrap}.geo-pending-panel .table-scroll{overflow-x:auto}
.source-oc-items .table-scroll{overflow-x:auto}.source-oc-items table{width:100%;font-size:12px}.source-oc-items td,.source-oc-items th{padding:10px 8px;vertical-align:middle}.source-oc-items td:first-child small{display:block;margin-top:4px;font-size:10px}.source-oc-items input{min-width:95px;min-height:34px;padding:7px 8px}.source-oc-items button{white-space:nowrap;min-height:34px;font-size:11px;padding:7px 9px}.source-oc-items .hint{margin-top:10px}
.distribution-step-locked{background:#f4f7f8;border-style:dashed;box-shadow:none}.distribution-step-locked .distribution-step-heading{margin-bottom:0}.distribution-step-locked .distribution-step-heading>span{background:#e1e8ec;color:#718391}.distribution-step-locked h3{color:#657c8b}.source-oc-items .notice{margin:0;background:#e8f7ee;border-color:#b9dfca;color:#21644b}.distribution-fields{min-width:0}.distribution-step:has(.source-oc-items){border-top:3px solid #27856e}
.oc-confirmation-card{border:1px solid #d3e0e6;border-radius:8px;padding:7px;background:#fff;display:grid;gap:7px}.oc-confirmation-card.confirmed{background:#def5e6;border-color:#63bb88;box-shadow:inset 3px 0 #27965b}.distribution-review .oc-confirmation-card>button{width:100%;margin:0}.oc-confirmation-card.confirmed>button:first-child{background:transparent;border-color:#a2d9b7}.oc-confirmation-status{padding:0 4px;font-size:10px;line-height:1.4}.oc-confirmation-card.confirmed .oc-confirmation-status{color:#166b3d;font-weight:700}.distribution-review .oc-confirmation-card .oc-confirm-sequence{font-size:10px;line-height:1.35;background:#edf5f9;color:#205873;padding:7px;min-height:34px}.distribution-review .oc-confirmation-card.confirmed .oc-confirm-sequence{background:#c6ebd5;color:#166b3d;opacity:1}
.original-order-items{background:#f4f8fc;border:1px solid #caddec}.original-order-items .table-scroll{overflow-x:auto}.original-order-items table{width:100%;font-size:12px}.original-order-items td,.original-order-items th{padding:9px 10px;vertical-align:middle}.original-order-items td small{display:block;margin-top:4px;font-size:10px;line-height:1.4}.original-item-status{display:inline-block;padding:4px 7px;border-radius:5px;font-size:11px;background:#fff2ce;color:#825c17}.original-item-status.production{background:#e9e4fb;color:#66509b}.original-item-status.done{background:#dff5e8;color:#1a7845}.original-item-status.stock{background:#e0f0f7;color:#235b72}.source-item-actions{display:grid;gap:5px}.source-item-actions .source-stock-button{white-space:normal;background:#e8f5ef;color:#21634a;max-width:170px}.source-stock-list{padding:12px;border:1px solid #b7dac9;border-radius:8px;background:#edf8f2;margin:12px 0}.source-stock-list h4{margin:0 0 8px;font-size:12px;color:#21634a}.source-stock-list>div{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 0;border-top:1px solid #d3e8dc;font-size:12px}.source-stock-list small{display:block;margin-top:3px;font-size:10px}.source-stock-list button{font-size:10px;min-height:30px;padding:6px 9px}.order-details-dialog .detail-field-received{grid-column:auto!important}.order-details-dialog .detail-field-origin{grid-column:auto;font-size:12px}
.dialog.delivery-picker-dialog .delivery-picker-time{align-items:flex-end;gap:16px}.dialog.delivery-picker-dialog .delivery-picker-time label{display:grid;grid-template-columns:18px 1fr;gap:7px;font-size:13px;flex:1;min-width:0}.dialog.delivery-picker-dialog .delivery-picker-time input[type="time"]{grid-column:1/-1;width:100%;min-width:150px;max-width:220px;height:48px;min-height:48px;padding:10px 12px;font-size:18px;font-weight:600;letter-spacing:.5px}.dialog.delivery-picker-dialog .delivery-picker-time input[type="time"]::-webkit-calendar-picker-indicator{width:22px;height:22px;padding:3px}.dialog.delivery-picker-dialog .delivery-picker-time>button{min-height:44px}
.order-details-dialog .order-information-group{display:grid;gap:0;border:1px solid #b9d2c6;border-radius:9px;overflow:hidden;background:#f0f7f3}.order-details-dialog .order-information-group .detail-grid{margin:0;border:0;border-radius:0;background:#f0f7f3}.order-details-dialog .order-information-group .detail-field{background:transparent}.order-details-dialog .order-information-group>.order-detail-section{--section-accent:#397660;--section-border:#b9d2c6;--section-bg:#f0f7f3;--section-heading:#dcece3;margin:0;border:0;border-top:1px solid #b9d2c6;border-radius:0;background:#f0f7f3}.order-details-dialog .order-information-group>.order-detail-section>h3{background:#dcece3;color:#245541;border-radius:0}.order-details-dialog .order-information-group .original-order-items table,.order-details-dialog .order-information-group .original-order-items td{background:transparent}.order-details-dialog .order-information-group .detail-observation p{background:transparent;border:0;color:#245541;padding:8px 0}.order-details-dialog .order-information-group .detail-observation textarea{background:#fff}

.order-details-dialog .order-information-group{box-shadow:0 3px 12px #204c3810}.order-details-dialog .order-information-group .detail-field,.order-details-dialog .order-information-group td,.order-details-dialog .order-information-group th{border-color:#d4e4da}.order-details-dialog .order-information-group .detail-field>small,.order-details-dialog .order-information-group th{color:#4c7060}.order-details-dialog .order-information-group .detail-field>strong,.order-details-dialog .order-information-group td>strong{color:#204f3c}.order-details-dialog .order-information-group thead{background:#e8f2ec}

.source-item-actions>button:first-child{background:#146454;border-color:#146454;color:#fff}.source-item-actions>button:first-child:hover:not(:disabled){background:#104e43;border-color:#104e43}.source-item-actions .source-stock-button{background:#bd242b;border-color:#bd242b;color:#fff}.source-item-actions .source-stock-button:hover:not(:disabled){background:#9f1d23;border-color:#9f1d23}
.destination-confirmation-footer{display:flex;align-items:flex-end;justify-content:space-between;gap:14px;margin-top:18px;padding-top:14px;border-top:1px solid #d4e4dc}.destination-confirmation-footer>label{font-size:12px;gap:6px;min-width:140px;max-width:220px;flex:1}.destination-confirmation-footer>label>strong{color:#245541}.destination-confirmation-footer>button{margin-left:auto;min-height:40px;max-width:250px;font-size:12px;padding:10px 14px}.destination-confirmation-footer select{min-height:36px;padding:8px 10px}@media(max-width:520px){.destination-confirmation-footer{flex-wrap:wrap}.destination-confirmation-footer>label{max-width:none;flex-basis:100%}.destination-confirmation-footer>button{max-width:100%}}
.distribution-review .oc-confirmation-card.selected{border-color:#146454;background:#e7f3ee;box-shadow:0 0 0 2px #146454,inset 4px 0 #146454}.distribution-review .oc-confirmation-card.selected>button:first-child{background:#d8ece2;border-color:#89bca5;color:#164f3c}.distribution-review .oc-confirmation-card.selected.confirmed{background:#d5efdf}
.distribution-review .oc-confirmation-card:not(.confirmed){background:#edf5ff;border-color:#aac9ed}.distribution-review .oc-confirmation-card:not(.confirmed)>button:first-child{background:#e1edff;border-color:#9bbfee;color:#174c7d}.distribution-review .oc-confirmation-card.selected:not(.confirmed){background:#d9eaff;border-color:#2674cc;box-shadow:0 0 0 2px #2674cc,inset 4px 0 #2674cc}.distribution-review .oc-confirmation-card.selected:not(.confirmed)>button:first-child{background:#c9e0ff;border-color:#619fe8;color:#123f70}

.distribution-review .oc-confirmation-card.selected:not(.confirmed){background:#edf5ff}.distribution-review .oc-confirmation-card.selected:not(.confirmed)>button:first-child{background:#e1edff;border-color:#9bbfee;color:#174c7d}.distribution-review .oc-confirmation-card.selected.confirmed{background:#def5e6}.distribution-review .oc-confirmation-card.selected.confirmed>button:first-child{background:transparent;border-color:#a2d9b7}

.distribution-destination{scroll-margin-top:16px}.distribution-destination:focus{outline:none}
.distribution-review .oc-confirmation-card{border-radius:10px;padding:0;gap:0;overflow:hidden;box-shadow:0 2px 6px #204b7610}.distribution-review .oc-confirmation-card>button:first-child{display:grid;grid-template-columns:minmax(0,1fr);justify-content:stretch;align-content:center;gap:7px;text-align:left;padding:13px 14px;border:0;border-radius:0;min-height:72px;background:transparent!important}.distribution-review .oc-confirmation-card .oc-card-number{font-size:16px;font-weight:700;line-height:1.25;letter-spacing:.1px;overflow-wrap:anywhere}.distribution-review .oc-confirmation-card .oc-card-summary{display:flex;flex-wrap:wrap;align-items:center;gap:4px;font-size:11px;line-height:1.5;font-weight:400;color:#496b8b}.distribution-review .oc-confirmation-status{padding:9px 14px;border-top:1px solid #bed2e833;background:#ffffff40;font-size:10px;line-height:1.4}.distribution-review .oc-confirmation-card.confirmed .oc-card-summary{color:#42735a}.distribution-review .oc-confirmation-card.selected:not(.confirmed){box-shadow:inset 0 0 0 2px #2674cc}.distribution-review .oc-confirmation-card.selected.confirmed{box-shadow:inset 0 0 0 2px #146454}.distribution-review .oc-confirmation-card>button:first-child:hover:not(:disabled){background:#ffffff40!important}
.distribution-review .oc-confirmation-card>button:first-child{grid-template-columns:auto minmax(0,1fr);align-items:center;column-gap:12px;min-height:64px;padding:12px}.distribution-review .oc-confirmation-card .oc-card-number{font-size:16px;white-space:nowrap}.distribution-review .oc-confirmation-card .oc-card-summary{font-size:14px;font-weight:600;line-height:1.35;justify-content:flex-end;text-align:right;gap:4px}.distribution-review .oc-confirmation-card .oc-card-summary>span{font-size:14px}.distribution-review .oc-confirmation-card>button:first-child>small{grid-column:1/-1}
.original-order-items .original-item-status{padding:6px 9px;border:1px solid #c58b19;background:#f6df9b;color:#604000;font-weight:700;font-size:11px;line-height:1.4}.original-order-items .original-item-status.production{background:#6543a5;border-color:#583791;color:#fff}.original-order-items .original-item-status.done{background:#207447;border-color:#195f39;color:#fff}.original-order-items .original-item-status.stock{background:#20677d;border-color:#185468;color:#fff}

/* Keep preload cards readable and their status inside the card. */
.geo-import-dialog .geo-import-grid aside{grid-auto-rows:max-content;align-items:start;padding:3px 6px 6px 3px;scrollbar-gutter:stable}
.geo-import-dialog .geo-draft{grid-template-columns:minmax(0,1fr);justify-content:stretch;justify-items:start;align-content:start;align-items:start;height:auto!important;min-height:112px;max-height:none;gap:6px;padding:14px!important;line-height:1.4;white-space:normal;box-shadow:0 2px 5px #173f3210;transition:border-color .15s,background .15s}
.geo-import-dialog .geo-draft>strong{font-size:15px;line-height:1.2;color:#214b5d;font-variant-numeric:tabular-nums}
.geo-import-dialog .geo-draft>span:not(.geo-status){font-size:12px;font-weight:600;line-height:1.4;overflow-wrap:anywhere}
.geo-import-dialog .geo-draft>small{font-size:11px;font-weight:400;line-height:1.4;color:#617785}
.geo-import-dialog .geo-draft>.geo-status{position:static;display:inline-flex;align-items:center;justify-self:start;margin:3px 0 0;transform:none;font-size:10px;line-height:1.4;padding:3px 8px;border:1px solid #ecd69c;border-radius:5px}
.geo-import-dialog .geo-draft:hover{border-color:#92b8ab!important;background:#f5faf8}
.geo-import-dialog .geo-draft.selected{box-shadow:inset 3px 0 #146454,0 2px 6px #173f3212}

/* Blue palette for GEOvendas preload cards. */
.geo-import-dialog .geo-draft{background:#f3f8ff;border-color:#cbdff3!important;box-shadow:0 2px 5px #174a7810}
.geo-import-dialog .geo-draft>strong{color:#174c7b}
.geo-import-dialog .geo-draft>span:not(.geo-status){color:#355c80}
.geo-import-dialog .geo-draft:hover{background:#eaf3ff;border-color:#8fb9e3!important}
.geo-import-dialog .geo-draft.selected{background:#e2efff!important;border-color:#397fbd!important;box-shadow:inset 3px 0 #246da9,0 2px 6px #174a7812}
.geo-import-dialog .geo-draft:focus-visible{outline-color:#397fbd}
.geo-cloud-settings{display:grid;gap:12px;border:1px solid #cbdff3;background:#f3f8ff;border-radius:10px;padding:16px;margin:14px 0}.geo-cloud-heading{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;font-size:13px}.geo-cloud-settings summary{cursor:pointer;font-size:12px}.geo-cloud-settings form{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:12px}.geo-cloud-settings form label{font-size:12px}.geo-cloud-settings .geo-auto{grid-column:1/-1;display:flex;align-items:center}.geo-auto input{width:16px;min-height:16px}.geo-cloud-settings form .hint{grid-column:1/-1}.geo-cloud-settings button{justify-self:start}.geo-cloud-settings .notice{margin:0}.geo-cloud-settings .notice small{display:block}@media(max-width:600px){.geo-cloud-settings form{grid-template-columns:1fr}}
.geo-review-toolbar{display:flex;justify-content:flex-end;align-items:center;gap:16px;padding:8px 0 14px;border-bottom:1px solid #dce7f0;margin-bottom:14px}.geo-review-toolbar button{display:inline-flex;gap:7px}.geo-settings-page{max-width:1000px}.geo-settings-page .geo-cloud-settings{margin-top:18px}.geo-settings-page .geo-import-tools{margin-top:16px}@media(max-width:500px){.geo-review-toolbar{gap:10px;justify-content:space-between}}
.geo-pending-actions{display:flex;align-items:center;justify-content:flex-end;gap:14px;flex-wrap:wrap}.geo-sync-controls{display:flex;align-items:center;gap:12px}.geo-sync-info{display:grid;gap:5px;font-size:11px;color:#617785}.geo-sync-info>span{display:flex;align-items:center;gap:6px}.geo-sync-info strong{color:#235c80;font-variant-numeric:tabular-nums}.geo-sync-controls button{gap:6px}.geo-pending-panel>.panel-head{gap:18px;flex-wrap:wrap}@media(max-width:650px){.geo-pending-actions{justify-content:flex-start;width:100%}.geo-sync-controls{flex-wrap:wrap}.geo-review-toolbar{justify-content:flex-start}}
/* Align update labels and time values in consistent columns. */
.geo-sync-info{min-width:225px;gap:6px}.geo-sync-info>span{display:grid;grid-template-columns:14px minmax(0,1fr) 58px;align-items:center;gap:6px;line-height:1.35}.geo-sync-info>span:first-child::before{content:'';width:14px}.geo-sync-info>span>svg{width:14px;height:14px}.geo-sync-info strong{justify-self:end;text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums;font-weight:600}.geo-sync-controls{align-items:center}
/* Compact spacing between update labels and their counters. */
.geo-sync-info{min-width:0;width:max-content}.geo-sync-info>span{grid-template-columns:14px 116px 58px;gap:5px}
.geo-pending-panel .geo-pending-count{display:inline-flex;align-items:center;justify-content:center;min-width:34px;min-height:30px;padding:4px 10px;margin-left:8px;border-radius:9px;background:#146454;color:#fff;border:1px solid #0f594b;font-size:18px;font-weight:700;line-height:1.2;vertical-align:middle;box-shadow:0 2px 5px #14645420;font-variant-numeric:tabular-nums}
/* Draw attention only to orders still waiting for review. */
@keyframes geo-review-attention{0%,100%{background-color:#fff8df;border-color:#e9c66b;box-shadow:0 0 0 0 #e7b62f00}50%{background-color:#ffe69a;border-color:#d9a51c;box-shadow:0 0 0 3px #e7b62f20}}
.geo-pending-panel tbody .geo-status.pending{display:inline-flex;padding:5px 9px;border:1px solid #e9c66b;border-radius:6px;color:#704c00;font-weight:600;animation:geo-review-attention 2.4s ease-in-out infinite}
.geo-pending-panel tbody td:last-child button{color:#704c00;animation:geo-review-attention 2.4s ease-in-out infinite}
@media(prefers-reduced-motion:reduce){.geo-pending-panel tbody .geo-status.pending,.geo-pending-panel tbody td:last-child button{animation:none;background:#ffe69a;border-color:#d9a51c}}
.pdf-panel{max-width:1440px;margin:auto;padding:36px 32px 70px;color:#183c50}.pdf-page-head{display:flex;justify-content:space-between;align-items:center;gap:24px;margin-bottom:24px}.pdf-page-head h1{font-size:30px;margin:6px 0}.pdf-page-head p{color:#59758b;margin:8px 0}.pdf-page-head small{letter-spacing:.12em;color:#286780;font-weight:700}.pdf-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-bottom:24px}.pdf-metrics>div{display:flex;align-items:center;gap:16px;background:#edf5ff;border:1px solid #cedfef;border-radius:12px;padding:20px}.pdf-metrics strong{font-size:30px;color:#174d7a}.pdf-metrics span{font-size:14px}.pdf-panel>.panel{margin-bottom:24px}.pdf-upload{display:flex;align-items:center;gap:20px;padding:28px}.pdf-upload>div:nth-child(2){flex:1}.pdf-upload p{margin:6px 0;color:#526d82}.pdf-upload small{color:#526d82}.pdf-upload-icon{display:grid;place-items:center;width:64px;height:64px;background:#e6f0ff;border-radius:16px;color:#205a93;flex-shrink:0}.pdf-upload input[type=file]{display:none}.pdf-review{scroll-margin-top:20px}.pdf-review fieldset{border:0;padding:0;margin:0;min-width:0}.pdf-review-body{padding:24px}.pdf-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.pdf-fields label:nth-child(2){grid-column:span 2}.pdf-panel label{display:flex;flex-direction:column;gap:7px;font-size:13px;font-weight:600}.pdf-panel input,.pdf-panel select,.pdf-panel textarea{font-size:14px;min-height:39px}.pdf-review-warning{background:#fff7df;border:1px solid #efd999;border-radius:8px;padding:12px 16px;margin-bottom:24px;color:#805819}.pdf-review-warning p{margin:4px 0}.pdf-items-heading{display:flex;justify-content:space-between;align-items:center;margin-top:26px;padding:14px 0;border-bottom:1px solid #dbe5ed}.pdf-items-heading h3{font-size:16px}.pdf-items-heading strong{color:#245b82}.pdf-items-table{min-width:840px}.pdf-items-table td{padding:10px 6px}.pdf-items-table input{width:100%;min-width:60px}.pdf-items-table th:nth-child(1){width:13%}.pdf-items-table th:nth-child(2){width:36%}.pdf-items-table th:nth-child(3){width:20%}.pdf-total{display:flex;gap:20px;align-items:center;justify-content:space-between;margin:18px 0 24px}.pdf-total input{width:140px}.pdf-total-ok{color:#166854;font-weight:700}.pdf-total-error{color:#af392b;font-weight:700}.pdf-review-footer{padding:22px 24px;background:#f3f8fd;border-top:1px solid #d5e3ee;display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:18px}.pdf-confirm{flex-direction:row!important;align-items:center;max-width:560px;font-weight:500!important}.pdf-confirm input{min-height:auto;flex-shrink:0}.pdf-review-footer>small{width:100%;color:#875915}.pdf-list-filters{display:flex;gap:14px;padding:18px 24px;border-bottom:1px solid #e2eaf1}.pdf-list-filters input{max-width:380px;flex:1}.pdf-list-filters select{width:210px}.pdf-status{display:inline-block;border:1px solid #dec887;background:#fff6d7;color:#775012;border-radius:6px;font-size:12px;font-weight:600;padding:6px 9px}.pdf-status.done{background:#e1f2e9;color:#176345;border-color:#99c8b2}.pdf-empty{padding:36px;text-align:center;color:#587084}.pdf-login{max-width:560px;margin:80px auto;padding:36px;text-align:center}.pdf-login a{display:inline-block;padding:12px 20px;border-radius:8px}.pdf-panel button.primary{white-space:nowrap}.pdf-panel fieldset:disabled input,.pdf-panel fieldset:disabled textarea{opacity:1;color:#35536b;background:#f4f7fa}.pdf-panel .table-wrap{overflow-x:auto}
@media(max-width:800px){.pdf-panel{padding:20px 12px}.pdf-page-head,.pdf-upload{align-items:flex-start;flex-wrap:wrap}.pdf-metrics{gap:8px}.pdf-metrics>div{padding:12px;gap:6px;flex-direction:column;align-items:flex-start}.pdf-metrics strong{font-size:24px}.pdf-metrics span{font-size:12px}.pdf-fields{grid-template-columns:1fr}.pdf-fields label:nth-child(2){grid-column:auto}.pdf-total,.pdf-review-footer{align-items:flex-start;flex-direction:column}.pdf-review-body{padding:16px}.pdf-list-filters{padding:16px}.pdf-upload{padding:20px}.pdf-items-heading{gap:12px}}
.geo-review-fields>.delivery-date-field{font-size:12px;font-weight:400;gap:5px;align-self:start;line-height:normal}.geo-review-fields>.delivery-date-field>.delivery-date-trigger{height:35px;min-height:35px;padding:8px;font-size:12px;border-radius:6px}.geo-review-fields>.delivery-date-field>.date-validation{height:1px;min-height:0;padding:0;border:0;width:1px}.geo-review-fields>.delivery-date-field>small{margin:0;font-size:10px}.geo-review-fields .geo-personalized{grid-column:1/-1;grid-template-columns:1fr auto;align-items:center;padding:13px 15px;border:1px solid #c6d9e8;background:#f2f7fc;border-radius:8px}.geo-personalized select{grid-column:1/-1;max-width:280px}.geo-required{font-size:10px;color:#627b8f;font-weight:400}
.pdf-panel .pdf-confirm{flex:1;min-width:260px;max-width:560px;line-height:1.5}.pdf-panel .pdf-confirm input[type="checkbox"]{width:18px;height:18px;min-height:18px;margin:0 6px 0 0;flex:0 0 18px}.pdf-review-body>.hint{margin-top:12px}

.pdf-upload-progress ul{list-style:none;padding:0 24px;margin:0}.pdf-upload-progress li{display:flex;justify-content:space-between;gap:18px;padding:14px 0;border-bottom:1px solid #e2eaf1;font-size:13px}.pdf-upload-progress li strong{overflow-wrap:anywhere;min-width:0}.pdf-upload-progress li span{text-align:right}.pdf-upload-progress>.hint{padding:14px 24px}@media(max-width:600px){.pdf-upload-progress li{flex-direction:column;gap:6px}.pdf-upload-progress li span{text-align:left}}
.pdf-panel .pdf-review-footer{flex-direction:column;align-items:flex-end;gap:12px}.pdf-panel .pdf-review-footer .pdf-confirm{flex:none;min-width:0;max-width:560px;width:fit-content}.pdf-panel .pdf-review-footer>.inline-actions{justify-content:flex-end}.pdf-panel .pdf-review-footer>small{text-align:right}@media(max-width:600px){.pdf-panel .pdf-review-footer .pdf-confirm{width:100%}.pdf-panel .pdf-review-footer>.inline-actions{width:100%;flex-wrap:wrap}}

.order-flags{display:inline-flex;align-items:center;flex-wrap:wrap;gap:6px;vertical-align:middle;margin:4px 0}.order-flags>.urgent-label{display:inline-block;margin:0}.order-flags>.personalized-label{display:inline-block;background:#ff7037;color:#fff;border:1px solid #ff7037;border-radius:4px;padding:4px 7px;font-size:11px;font-weight:800;line-height:1.2;white-space:nowrap;cursor:default}.operator-order-top .order-flags,.dialog-head h2 .order-flags{margin-left:8px}

.dialog.admin-pdf-upload-dialog{width:min(1180px,calc(100vw - 28px));max-height:94vh;padding:0}.admin-pdf-upload-dialog>.dialog-head{background:#f2f7fc}.admin-pdf-upload-body{overflow:auto;max-height:calc(94vh - 72px)}.admin-pdf-upload-body .pdf-panel{padding:20px}.geo-review-toolbar:has(>button){justify-content:space-between;gap:16px;flex-wrap:wrap}.new-order-dialog .new-order-personalized{padding:12px;border:1px solid #cbddeb;border-radius:8px;background:#f2f7fc;grid-column:1/-1}

/* Compact order flags and readable observations on order cards. */
.order-flags>.urgent-label,.order-flags>.personalized-label{padding:3px 6px;min-height:25px;box-sizing:border-box;font-size:10px;font-weight:600;line-height:1.3;border-radius:5px;display:inline-flex;align-items:center;white-space:nowrap}
.order-flags>.urgent-label{border:1px solid #e3a1a1;background:#fff1f1;color:#a11c27}
.production-origin>.order-flags{margin:0;flex-shrink:0;gap:4px}
.production-origin>div{min-width:0}
.operator-order>.observation,.production-shell .operator-order>.observation,.cd-panel .operator-order>.observation{display:block;-webkit-line-clamp:unset;min-height:5.6em;max-height:5.6em;line-height:1.4;overflow-y:auto;white-space:pre-wrap;overflow-wrap:anywhere;flex-shrink:0;margin:6px 0 9px;padding:0 3px 0 0;scrollbar-width:thin}

.operation-analysis{gap:18px}.operation-eyebrow{font-size:10px;font-weight:800;letter-spacing:1.4px;color:#2972a4}.operation-analysis-intro .panel-head h2{font-size:23px;margin:6px 0}.operation-panel-count{background:#eaf3ff;color:#1e5b8f;padding:12px 18px;border:1px solid #c6dcf0;border-radius:10px;font-size:20px;font-weight:800;white-space:nowrap}.operation-panel-count small{display:block;font-size:11px;font-weight:500;margin-top:3px}.operation-analysis .analysis-explanation{margin:0;padding-top:0}.operation-analysis-navigation{display:flex;gap:16px;flex-wrap:wrap;align-items:end}.operation-analysis-navigation nav{display:flex;flex-wrap:wrap;gap:6px;flex:1}.operation-analysis-navigation nav button{display:flex;align-items:center;gap:8px;background:white;padding:9px 12px;border:1px solid #d4e2ee;border-radius:8px;font-size:12px}.operation-analysis-navigation nav button[aria-pressed=true]{background:#164e7b;color:white;border-color:#164e7b}.operation-analysis-navigation nav span{font-size:10px;opacity:.75}.operation-analysis-navigation label{display:grid;gap:5px;font-size:11px;min-width:250px}.operation-analysis-navigation input{border:1px solid #cadce9;border-radius:8px;padding:10px;font-size:12px;background:white}.operation-analysis-result{margin:0;color:#617785;font-size:12px}.operation-analysis-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:stretch}.operation-analysis-card{min-width:0;display:flex;flex-direction:column;padding:20px;border-top:3px solid #4284b8}.operation-analysis-card>header{display:flex;justify-content:space-between;align-items:start;gap:12px}.operation-analysis-card>header small{font-size:9px;font-weight:700;letter-spacing:.8px;color:#597e9a}.operation-analysis-card h3{font-size:17px;line-height:1.35;margin:7px 0 0;color:#193f60}.operation-analysis-card>p{font-size:12px;line-height:1.5;color:#617785;margin:10px 0 16px;min-height:36px}.operation-analysis-card button{font-size:11px;min-height:30px;padding:5px 9px}.operation-chart-switch{display:flex;gap:5px;align-items:center;margin-bottom:16px}.operation-chart-switch button[aria-pressed=true]{background:#e8f2fc;color:#1e5e92;border-color:#96bedf}.operation-chart-switch>span{margin-left:auto;font-size:10px;color:#617785}.operation-bars{display:grid;gap:14px;flex:1;align-content:start}.operation-bar{display:grid;grid-template-columns:minmax(90px,35%) minmax(0,1fr);gap:12px;align-items:center}.operation-bar>strong{font-size:11px;line-height:1.4;font-weight:500;overflow-wrap:anywhere}.operation-bar-series{display:flex;align-items:center;gap:8px;margin:3px 0}.operation-bar-track{flex:1;height:12px;border-radius:3px;background:#edf3f8;overflow:hidden}.operation-bar-track>span{height:100%;display:block;border-radius:3px}.operation-bar-series b{font-size:11px;min-width:34px;text-align:right;font-variant-numeric:tabular-nums}.operation-legend{display:flex;gap:12px;flex-wrap:wrap;font-size:10px}.operation-legend span{display:flex;gap:4px;align-items:center}.operation-legend i{width:8px;height:8px;border-radius:2px}.operation-analysis-card>footer{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-top:20px;padding-top:12px;border-top:1px solid #e3edf3}.operation-analysis-card>footer small{font-size:10px;color:#617785}.operation-analysis-card>footer>div{display:flex;gap:7px;align-items:center;font-size:11px}.operation-report{max-height:400px;overflow:auto;flex:1}.operation-report td,.operation-report th{padding:9px 8px!important;font-size:11px!important;white-space:normal;min-width:85px;overflow-wrap:anywhere}.operation-report th{position:sticky;top:0;background:#f0f5fa}.operation-no-data{padding:32px 12px;text-align:center;background:#f7fafc;color:#6d8495;font-size:12px;border-radius:6px}.operation-analysis-guide{padding:20px}.operation-analysis-guide h3{margin:0 0 10px}.operation-analysis-guide p{font-size:13px;line-height:1.7;color:#536f81}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@media(max-width:1000px){.operation-analysis-grid{grid-template-columns:1fr}}@media(max-width:600px){.operation-analysis-intro .panel-head{align-items:start;gap:12px;flex-direction:column}.operation-analysis-navigation label{width:100%;min-width:0}.operation-analysis-card{padding:14px}.operation-analysis .analysis-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}

.operation-analysis-intro .filters{display:flex;flex-wrap:wrap;align-items:end;gap:10px}.operation-analysis-intro .filters>label{flex:1 1 180px;min-width:0}.operation-analysis-intro .filters>label:first-child{flex:2 1 240px}.operation-analysis-intro .filters>button{width:auto;min-height:36px;flex:0 0 auto}.operation-analysis .analysis-metrics .metric{--tone:#4284b8}

.pdf-upload-actions{display:flex;flex-direction:column;align-items:flex-end;gap:12px;max-width:430px}.pdf-format-notice{display:flex;align-items:flex-start;gap:10px;border:1px solid #eab54d;border-left:4px solid #df940c;border-radius:8px;background:#fff5d6;padding:12px 14px;color:#754600;font-size:13px;line-height:1.5}.pdf-format-notice>svg{flex-shrink:0;margin-top:2px}.pdf-format-notice strong{font-size:14px}.pdf-format-notice p{margin:4px 0 0;color:#754600}@media(max-width:800px){.pdf-upload-actions{max-width:none;width:100%;align-items:stretch}.pdf-upload-actions>button{align-self:flex-end}}

.pdf-status.cancelled{background:#f0f2f5;border-color:#c9d1da;color:#586675}

.pdf-format-notice .pdf-print-choice{color:#b91c1c;font-weight:800}

.pdf-panel button.pdf-review-pending{color:#713f12;font-weight:700;border-color:#dca512;background:#fde68a;animation:pdf-review-attention 1.8s ease-in-out infinite}@keyframes pdf-review-attention{0%,100%{background:#fff3c4;border-color:#e4b63b;box-shadow:0 0 0 0 #facc1500}50%{background:#facc15;border-color:#c58a09;box-shadow:0 0 0 3px #facc1540}}@media(prefers-reduced-motion:reduce){.pdf-panel button.pdf-review-pending{animation:none;background:#fde047}}
.supervisor-permissions{grid-column:1/-1;border:1px solid #c9dbea;border-radius:10px;padding:16px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.supervisor-permissions label{display:flex!important;flex-direction:row!important;align-items:center;gap:8px}.supervisor-permissions input{width:16px;min-height:16px}.supervisor-permissions small{grid-column:1/-1}.supervisor-nav{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:24px}.supervisor-nav button[aria-pressed=true]{background:#dbeafe;border-color:#2563eb;color:#164e8e}.supervisor-panel dl div{margin:12px 0}.supervisor-panel dt{font-weight:700}.supervisor-panel dd{margin:4px 0;white-space:pre-wrap}@media(max-width:600px){.supervisor-permissions{grid-template-columns:1fr}}

.supervisor-native{padding:24px;background:#f2f6f9;min-height:100vh}.supervisor-native>.pdf-page-head{margin-bottom:16px}.supervisor-view-toolbar{display:flex;gap:20px;align-items:center;margin-bottom:12px}.supervisor-view-toolbar label{display:flex;gap:10px;align-items:center}.supervisor-frame{width:100%;height:calc(100vh - 250px);min-height:650px;border:1px solid #ccdae8;border-radius:12px;background:white}@media(max-width:700px){.supervisor-native{padding:12px}.supervisor-view-toolbar{flex-wrap:wrap}}

.geo-review-urgency{grid-column:1/-1;display:flex;align-items:center;gap:10px;flex-wrap:wrap}.geo-review-urgency>button{font-weight:700}.geo-review-urgency>button[aria-pressed="true"]{background:#b91c1c;border-color:#b91c1c;color:#fff}.geo-review-urgency>small{color:#627b8f;font-size:11px}

.geo-review-fields .geo-personalized{grid-column:auto;display:flex;flex-wrap:wrap;gap:6px;align-content:start}.geo-review-fields .geo-personalized .geo-required{margin-left:auto}.geo-review-fields .geo-personalized select{flex-basis:100%;max-width:none}.geo-review-fields .geo-review-urgency{grid-column:auto;align-self:stretch;display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:12px;padding:12px;border:1px solid #efd5d5;border-radius:8px;background:#fffafa}.geo-review-fields .geo-review-urgency>button{min-height:36px;padding:8px 12px;white-space:nowrap;border-radius:6px}.geo-review-fields .geo-review-urgency>small{font-size:12px;line-height:1.5;color:#705b60}.geo-review-fields .geo-review-urgency:has(button[aria-pressed="true"]){border-color:#dc8585;background:#fff1f1}@media(max-width:600px){.geo-review-fields .geo-personalized,.geo-review-fields .geo-review-urgency{grid-column:1/-1}}

.tutorial-footer{margin-top:16px}.tutorial-link{display:flex;align-items:center;gap:10px;width:100%;text-align:left;padding:12px;border-radius:8px;background:#e8f2f6;color:#173f51;border:1px solid #c4dbe5}.tutorial-link span{display:grid;gap:4px}.tutorial-link small{font-size:11px;font-weight:400}.sidebar .tutorial-link{background:#244b5d;color:white;border-color:#537482}.sidebar .tutorial-link small{color:#d4e7ef}.tutorial-dialog{width:min(960px,94vw);max-width:960px;padding:0}.tutorial-dialog iframe{display:block;width:100%;height:65vh;border:0;background:#edf2f5}.tutorial-intro{display:flex;gap:16px;align-items:center;justify-content:space-between;padding:12px 20px;color:#173f51}.tutorial-intro a{display:inline-flex;align-items:center;gap:8px;padding:10px 14px;border-radius:6px;white-space:nowrap}.tutorial-fallback{padding:10px 20px;font-size:11px;color:#536e7d;line-height:1.5}.pdf-panel>.tutorial-footer,.supervisor-native>.tutorial-footer{max-width:340px;margin:24px auto}.tutorial-footer .dialog-head{color:#173f51}@media(max-width:600px){.tutorial-intro{align-items:stretch;flex-direction:column}.tutorial-dialog iframe{height:55vh}}

button.finance-resolved-button{background:#153e75;color:#fff;border:1px solid #153e75;white-space:normal;height:auto;min-height:44px;line-height:1.45;padding:9px 12px;font-weight:700;animation:finance-resolved-pulse 2s ease-in-out infinite}.operator-order-actions>button.finance-resolved-button{grid-column:1/-1;width:100%}@keyframes finance-resolved-pulse{0%,100%{background:#153e75;color:#fff;border-color:#153e75}50%{background:#facc15;color:#173654;border-color:#eab308}}@media(prefers-reduced-motion:reduce){button.finance-resolved-button{animation:none;background:#153e75;color:#fff;border:2px solid #facc15}}

/* Shared tutorial entry in every panel footer. */
.tutorial-footer .tutorial-link{display:grid;grid-template-columns:20px minmax(0,1fr);justify-content:start;align-items:center;column-gap:10px;width:100%;min-height:62px;height:auto;padding:12px;text-align:left;line-height:1.35}.tutorial-footer .tutorial-link>svg{width:20px;height:20px;margin:0;align-self:center}.tutorial-footer .tutorial-link>span{display:grid;min-width:0;gap:4px;align-content:center}.tutorial-footer .tutorial-link strong{display:block;font-size:13px;font-weight:700;line-height:1.3}.tutorial-footer .tutorial-link small{display:block;font-size:11px;line-height:1.4;font-weight:400;margin:0;white-space:normal}.sidebar-footer>.tutorial-footer{margin:0 0 18px}.sidebar-footer>.tutorial-footer+p{margin-top:0;margin-bottom:5px;line-height:1.4}.sidebar-footer>small{display:block;line-height:1.5}.tutorial-footer .tutorial-link:hover{border-color:#8daebd;background:#dfedf3}.sidebar .tutorial-footer .tutorial-link:hover{background:#2c5666;border-color:#8daebd}
.master-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:24px}.master-metrics .metric{display:grid;gap:12px}.master-module{display:flex;align-items:flex-start;gap:24px;padding:28px;margin-bottom:24px}.master-module h2{margin:12px 0}.master-module p,.master-description p,.master-shell .panel-head p{line-height:1.65;color:#617785}.master-module-icon{padding:20px;border-radius:16px;background:#e6f4ef;color:#176b59}.master-status{display:inline-block;border:1px solid #b8dccb;background:#eaf7f0;color:#176b59;padding:5px 10px;border-radius:20px;font-size:12px}.master-tags{display:flex;flex-wrap:wrap;gap:8px;margin:20px 0}.master-tags span{padding:7px 10px;background:#f0f5f8;border-radius:6px;font-size:12px}.master-action{display:inline-flex;align-items:center;gap:10px;background:#176b59;color:white;text-decoration:none;border-radius:7px;padding:12px 16px;font-size:13px;font-weight:600}.master-action:hover{background:#105442}.master-description{padding:24px}.master-search{padding:20px 24px;max-width:480px}.master-table{overflow:auto}.master-table table{width:100%}.master-table small{display:block;margin-top:6px;color:#617785}.master-flow{display:flex;align-items:center;gap:24px;margin:26px 0}.master-flow>div{display:grid;gap:12px;padding:24px;background:#edf5fa;border:1px solid #c7dce9;border-radius:10px;flex:1}.master-flow small{color:#617785}.master-connections{display:grid;grid-template-columns:1fr 1fr;gap:18px}.master-connections article{border:1px solid #d9e5eb;border-radius:8px;padding:20px}.master-connections h3{font-size:15px}.master-back{display:block;color:#fff;margin-bottom:16px}.master-shell .sidebar-footer p{display:flex;align-items:center;gap:8px}@media(max-width:850px){.master-metrics{grid-template-columns:1fr 1fr}.master-connections{grid-template-columns:1fr}}@media(max-width:550px){.master-module{padding:20px;gap:14px}.master-module-icon{padding:12px}.master-flow{flex-direction:column;align-items:stretch}.master-flow>svg{transform:rotate(90deg);align-self:center}.master-shell .account>span{display:none}}

.master-module-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin-bottom:24px}.master-module-grid .master-module{margin:0;flex-direction:column}.master-module-grid .master-module>div:last-child{display:flex;flex-direction:column;align-items:flex-start;flex:1}.master-module-grid .master-action{margin-top:auto}.master-status-setup{background:#fff5db;border-color:#eccd7a;color:#795000}.module-intro-title{margin:20px 0 12px}.master-flow{flex-wrap:wrap}@media(max-width:1200px){.master-module-grid{grid-template-columns:1fr}.master-module-grid .master-module{flex-direction:row}}

.master-tags a{padding:7px 10px;background:#edf5fa;border:1px solid #c7dce9;border-radius:6px;font-size:12px;color:#153e75;text-decoration:none}.master-tags a:hover{background:#dcecf7;border-color:#7599c5}.master-tags a:focus-visible{outline:2px solid #176b59;outline-offset:3px}

.master-metrics{grid-template-columns:repeat(5,minmax(0,1fr))}@media(max-width:1100px){.master-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:650px){.master-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}

@media(min-width:1201px){.master-module-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

.master-access-bar{position:relative;z-index:40;display:flex;align-items:center;flex-wrap:wrap;gap:20px;padding:12px 24px;background:#e6f4ef;border-bottom:1px solid #b8dccb;color:#154f42;font-size:13px}.master-access-bar a{color:#154f42;font-weight:600}.master-access-bar label{display:flex;align-items:center;gap:12px;margin-left:auto}.master-access-bar select{max-width:360px}@media(max-width:650px){.master-access-bar label{margin-left:0;flex-wrap:wrap}.master-access-bar select{max-width:100%}}

.user-modules{padding:14px;border:1px solid #bdd6dd;border-radius:9px;background:#f1f7fa;color:#173f55;margin:14px 0}.user-modules h3{font-size:14px;margin:0 0 14px}.user-modules section{display:grid;gap:6px;margin:12px 0}.user-modules section>strong{font-size:12px;color:#496c7f}.user-modules a{display:block;padding:8px 10px;border-radius:5px;color:#173f55;text-decoration:none;font-size:13px}.user-modules a:hover,.user-modules a[aria-current=page]{background:#d4e8f3}.user-modules select{width:100%;min-width:0}.module-access-fields{padding:15px;border:1px solid #bfd4e2;border-radius:8px;display:grid;gap:12px;grid-column:1/-1}.module-access-fields label{display:flex;align-items:center;gap:8px;margin:10px 0}.module-access-fields input{width:auto}.module-access-fields small{color:#617785;line-height:1.5}

.quality-content{max-width:none}.quality-frame{width:100%;height:calc(100vh - 300px);min-height:650px;border:1px solid #cadce7;border-radius:10px;background:white}.quality-shell .content{padding-top:20px}
.productivity-content{max-width:1600px;margin:auto}.productivity-content .heading{display:flex;align-items:center;justify-content:space-between;gap:16px}.task-toolbar{display:flex;align-items:end;gap:20px;flex-wrap:wrap;margin:24px 0}.task-toolbar label{display:grid;gap:6px;min-width:200px}.task-toolbar input,.task-toolbar select,.task-modal input,.task-modal select,.task-modal textarea{width:100%;padding:10px;border:1px solid #bfd3df;border-radius:7px;background:#fff;color:#173e52;font:inherit}.task-metrics{display:flex;gap:24px;margin-left:auto}.task-metrics span{display:grid;gap:4px;color:#567286}.task-metrics b{font-size:25px;color:#17495e}.task-section{margin-bottom:26px}.task-section h2{font-size:18px}.task-count{display:inline-block;border-radius:20px;padding:2px 9px;background:#e1eff8;font-size:14px}.task-request{display:flex;gap:20px;align-items:center;justify-content:space-between;padding:17px 20px;border-bottom:1px solid #e3ebf0}.task-request strong,.task-request small{display:block;margin-top:5px}.task-request small{color:#597486}.task-request>div:last-child{display:flex;gap:8px;flex-shrink:0}.task-request>div:first-child{display:block}.task-owned{padding:18px;display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:16px}.task-card{padding:16px;border:1px solid #d1e0e8;border-radius:10px;background:white;box-shadow:0 2px 5px #173e5208;min-width:0}.task-card h3{font-size:15px;line-height:1.45;margin:12px 0 8px;overflow-wrap:anywhere}.task-card p{font-size:12px;line-height:1.6;color:#587283;white-space:pre-wrap;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.task-card-top{display:flex;gap:8px;justify-content:space-between;align-items:center;flex-wrap:wrap}.task-card-top small{font-size:10px;color:#607d8b}.task-source{font-size:10px;display:inline-block;border-radius:5px;padding:4px 7px;background:#e7f0f7;color:#17495e}.source-quality{background:#ece6fb;color:#644596}.source-finance{background:#fff2d5;color:#81611b}.task-board{display:grid;grid-template-columns:repeat(4,minmax(230px,1fr));gap:14px;overflow-x:auto;padding-bottom:10px}.task-column{background:#edf2f6;border:1px solid #d9e4eb;border-top:4px solid #8daaba;border-radius:10px;padding:12px;min-height:200px}.task-column>h3{display:flex;justify-content:space-between;font-size:14px;margin:2px 0 15px}.task-column>h3 span{border-radius:12px;background:#fff;padding:1px 7px}.task-column .task-card{margin-bottom:12px}.column-doing{border-top-color:#3186c1}.column-waiting{border-top-color:#e6b64d}.column-done{border-top-color:#2d987c}.task-empty{color:#69818f;font-size:13px;padding:20px;text-align:center}.task-board-heading{margin-bottom:16px}.task-team>summary{padding:18px;cursor:pointer;font-weight:600}.task-modal-backdrop{position:fixed;inset:0;background:#102b3cb0;z-index:1200;display:flex;align-items:center;justify-content:center;padding:20px}.task-modal{background:white;border-radius:12px;max-width:630px;width:100%;max-height:90vh;overflow:auto;box-shadow:0 20px 80px #0003}.task-modal .panel-head{display:flex;justify-content:space-between;gap:15px;align-items:center}.task-modal h2{font-size:19px}.task-modal form,.task-detail{padding:22px}.task-modal label{display:grid;gap:7px;margin-bottom:16px;font-size:13px;font-weight:600}.task-modal p{font-size:13px;line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere}.task-modal button{cursor:pointer}.task-actions{display:flex;gap:10px;flex-wrap:wrap;margin:16px 0}.task-history{padding-left:20px}.task-history li{font-size:12px;margin:12px 0;line-height:1.6;overflow-wrap:anywhere}.task-history small{display:block;color:#647e8e}.productivity-content button:disabled{opacity:.5;cursor:default}@media(max-width:700px){.task-request{align-items:start;flex-direction:column}.task-metrics{margin:0}.productivity-content .heading{align-items:start;flex-direction:column}.task-modal-backdrop{padding:10px}.task-owned{grid-template-columns:1fr}}
.task-queue{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:16px;padding:18px}.task-request-card{display:flex;flex-direction:column;justify-content:space-between;gap:18px;border-top:3px solid #247969}.task-request-card strong{display:block;font-size:15px;line-height:1.45;margin:10px 0 6px;overflow-wrap:anywhere}.task-request-card small{display:block;color:#587283;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere}.task-request-card>div:last-child{display:flex;justify-content:space-between;gap:10px}.task-queue>.task-empty{grid-column:1/-1}@media(max-width:650px){.task-queue{grid-template-columns:1fr}}
.task-card[draggable=true]{cursor:grab}.task-card[draggable=true]:active{cursor:grabbing}.task-dragging{opacity:.5}.task-drop-active{outline:3px solid #218d79!important;outline-offset:-3px;background:#e2f5ef!important}.task-drop-zone{min-height:110px}.task-routing{border:1px dashed #9bbbc8;border-radius:10px;padding:16px;margin:0 0 22px;background:#f5f9fb}.task-routing>strong,.task-routing>small{display:block;margin-bottom:7px}.task-routing>small{color:#567286;font-size:12px}.task-routing>div{display:flex;gap:12px;flex-wrap:wrap;margin-top:12px}.task-sector-target{padding:14px 24px;border:1px dashed #88afbe;border-radius:8px;background:white;font-weight:600;min-width:160px;text-align:center}.task-routing.is-dragging{border-color:#218d79;background:#edf8f4}.task-drop-unavailable{opacity:.45}.task-sector-form{padding:16px 0;border-top:1px solid #dce6ec;margin-top:18px}@media(prefers-reduced-motion:no-preference){.task-card{transition:opacity .12s,box-shadow .12s}.task-card[draggable=true]:hover{box-shadow:0 4px 12px #173e5218}}
.quality-origin-dialog{width:calc(100vw - 48px);max-width:1250px;height:90vh;max-height:94vh;padding:0;border:1px solid #c5dbe6;border-radius:12px;color:#173e52;background:#f3f7f9}.quality-origin-dialog::backdrop{background:#102b3cb5}.quality-origin-dialog>header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 22px;background:white;border-bottom:1px solid #d7e5ec}.quality-origin-dialog h2{font-size:19px;margin:5px 0}.quality-origin-dialog small{font-size:11px;color:#587483}.quality-origin-dialog>p{margin:24px}.quality-origin-dialog>iframe{display:block;width:100%;height:calc(100% - 88px);border:0}@media(max-width:650px){.quality-origin-dialog{width:96vw;height:94vh}.quality-origin-dialog>header{padding:12px}.quality-origin-dialog h2{font-size:16px}}
.master-user-dialog{width:min(680px,94vw);max-height:90vh;border:1px solid #c8dce5;border-radius:12px;padding:0;color:#173e52}.master-user-dialog::backdrop{background:#102b3cb0}.master-user-dialog .panel-head{display:flex;align-items:center;justify-content:space-between}.master-user-dialog h2{font-size:20px}.master-user-dialog .dialog-body{display:grid;gap:14px}.master-user-dialog label{display:grid;gap:6px}.master-user-dialog input:not([type=checkbox]),.master-user-dialog select{width:100%;padding:10px;border:1px solid #bed3dd;border-radius:7px}.master-user-dialog label:has(input[type=checkbox]){display:flex;align-items:center;gap:7px}.master-user-dialog small{font-size:12px;color:#5c7687}
/* Quality keeps vertical scrolling inside the embedded panel. */
.quality-shell{height:100dvh;min-height:0;overflow:hidden}
.quality-shell>.workspace{display:flex;flex-direction:column;min-height:0;height:100%;overflow:hidden}
.quality-shell>.workspace>.topbar{flex-shrink:0}
.quality-shell .quality-content{display:flex;flex-direction:column;flex:1;min-height:0;width:100%;overflow:hidden;padding-bottom:16px}
.quality-content>.page-refresh-bar,.quality-content>.heading,.quality-content>.notice{flex-shrink:0}
.quality-shell .quality-frame{display:block;flex:1;min-height:0;height:0}
.quality-origin-dialog[open]{display:flex;flex-direction:column;overflow:hidden}
.quality-origin-dialog>header{flex-shrink:0}
.quality-origin-dialog>iframe{flex:1;min-height:0;height:0}
@media(max-width:760px){.quality-shell{display:flex;flex-direction:column}.quality-shell>.sidebar{flex-shrink:0;max-height:28dvh;overflow:auto}.quality-shell>.workspace{flex:1;height:auto}.quality-shell .quality-content>.heading h1{font-size:22px}.quality-shell .quality-content>.heading{margin-bottom:10px}}

.quality-shell .quality-content{padding:0;margin:0;max-width:none}.quality-shell .quality-frame{border:0;border-radius:0}.quality-shell>.workspace>.topbar{min-height:56px;padding:10px 18px}.quality-shell .topbar .account{flex-wrap:wrap}.quality-content>.notice{margin:10px 16px}

.sidebar .module-guides{background:transparent;border:0;padding:0;color:#fff;margin:16px 0}.module-guides h3{font-size:11px;text-transform:uppercase;letter-spacing:.08em;opacity:.7}.module-guides details{border-bottom:1px solid #ffffff20;padding:5px 0}.module-guides summary{cursor:pointer;padding:12px 8px;font-weight:600;font-size:13px;border-radius:6px}.module-guides summary:hover{background:#ffffff12}.module-guides .module-pages{display:grid;gap:4px;padding:4px 0 9px 12px}.sidebar .module-guides .module-pages a,.sidebar .module-guides .module-pages button{display:block;width:100%;margin:0;padding:10px 12px;border:0;border-radius:6px;background:transparent;color:inherit;font:inherit;font-size:12px;text-align:left;cursor:pointer;text-decoration:none}.sidebar .module-guides .module-pages [aria-current=page]{background:#ffffff19;box-shadow:inset 3px 0 #9ddacf;font-weight:700}.sidebar .module-guides .module-pages a:hover,.sidebar .module-guides .module-pages button:hover{background:#ffffff12}.quality-shell>.sidebar{overflow-y:auto;min-height:0}

.module-home{display:block;padding:12px;border:1px solid #ffffff38;border-radius:7px;font-weight:700;text-decoration:none;color:inherit;margin-bottom:12px}.sidebar .module-guides .operation-menu{position:static;display:grid;box-shadow:none;max-height:none;width:auto;padding:0;background:transparent}.shell>.pdf-panel,.shell>.supervisor-native{width:100%;min-width:0;margin:0;padding:24px}.sidebar>.brand small{display:block;margin-top:10px}

.master-breadcrumb-home{display:flex;align-items:center;gap:10px}.header-home-icon{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;flex-shrink:0;border:1px solid #cadce7;border-radius:7px;color:#173f55;background:white;text-decoration:none}.header-home-icon:hover{background:#edf5fa}.header-home-icon:focus-visible{outline:2px solid #176b59;outline-offset:2px}

.header-page-title{display:flex;align-items:center;gap:10px;min-width:0}.header-page-title>div{min-width:0}.header-page-title .header-home-icon{flex:0 0 36px}

.task-board-two{grid-template-columns:repeat(2,minmax(0,1fr));overflow-x:visible}.task-board-controls{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}.task-finished-list{margin-top:18px}.task-finished-list .task-request>div{min-width:0}.task-finished-list p{white-space:pre-wrap;overflow-wrap:anywhere;margin:8px 0;font-size:13px}@media(max-width:600px){.task-board-two{grid-template-columns:1fr}}

/* Compact productivity workspace. */
.productivity-shell .productivity-content{width:100%;padding:18px 24px 26px;margin:0 auto}
.productivity-content>.page-refresh-bar{margin-bottom:10px}
.productivity-content .heading{margin-bottom:14px;gap:12px}
.productivity-content .heading .eyebrow{font-size:10px;letter-spacing:.12em;margin-bottom:5px;color:#64818c}
.productivity-content .heading h1{font-size:25px;letter-spacing:-.6px;margin:0 0 5px;line-height:1.2}
.productivity-content .heading p{font-size:12px;margin:0;color:#607987}
.productivity-content .heading>.primary{box-shadow:0 3px 8px #176b591a;border-radius:8px}
.productivity-content .task-toolbar{margin:0 0 16px;padding:12px 14px;border:1px solid #dce7ed;border-radius:12px;background:#fff;gap:14px;box-shadow:0 3px 12px #173e5205}
.productivity-content .task-toolbar label{min-width:160px;gap:5px;font-size:11px}
.productivity-content .task-toolbar label:nth-child(2){flex:1;max-width:360px}
.productivity-content .task-toolbar input,.productivity-content .task-toolbar select{padding:8px 10px;font-size:12px;min-height:35px;border-color:#d3e0e7;background:#fbfdfe}
.productivity-content .task-metrics{gap:8px;align-self:stretch;align-items:center}
.productivity-content .task-metrics span{min-width:72px;gap:2px;padding:8px 12px;background:#f3f7fa;border-radius:8px;font-size:10px}
.productivity-content .task-metrics span:last-child{background:#edf7f3;color:#276957}
.productivity-content .task-metrics b{font-size:21px;line-height:1.15;font-variant-numeric:tabular-nums}
.task-overview-grid{display:grid;grid-template-columns:1fr;gap:14px;margin-bottom:18px;align-items:start}
.productivity-content .task-section{margin-bottom:16px}
.task-overview-grid>.task-section{margin:0;border-radius:12px;box-shadow:0 3px 14px #173e5205;overflow:hidden;border-color:#dce7ed}
.productivity-content .task-section .panel-head{padding:13px 15px;background:#fff}
.productivity-content .task-section h2{font-size:14px;letter-spacing:-.15px;margin:0}
.productivity-content .panel-head p,.productivity-content .task-board-heading p{font-size:11px;line-height:1.45;color:#657e8b;margin:4px 0 0}
.productivity-content .task-count{font-size:10px;padding:2px 7px;vertical-align:middle}
.productivity-content .task-queue,.productivity-content .task-owned{padding:12px;gap:10px;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));min-height:76px}
.productivity-content .task-empty{grid-column:1/-1;padding:14px 10px;margin:0;align-self:center;font-size:12px;line-height:1.5}
.productivity-content .task-card{padding:12px;border-radius:9px;box-shadow:none;border-color:#dde7ec}
.productivity-content .task-card h3,.productivity-content .task-request-card strong{font-size:13px;line-height:1.4;margin:8px 0 5px}
.productivity-content .task-card p,.productivity-content .task-request-card small{font-size:11px;line-height:1.5;margin:5px 0}
.productivity-content .task-request-card{gap:10px;border-top:2px solid #247969}
.productivity-content .task-card button{font-size:11px;padding:7px 10px;min-height:30px}
.productivity-content .task-board-heading{margin-bottom:10px}
.productivity-content .task-board{gap:14px;padding-bottom:0}
.productivity-content .task-column{min-height:140px;padding:12px;border-top-width:3px;border-radius:11px;background:#eff4f7}
.productivity-content .column-doing{background:#f0f6fa}
.productivity-content .task-column>h3{font-size:12px;margin:0 0 10px}
.productivity-content .task-team>summary{padding:12px 15px;font-size:12px}
@media(max-width:1000px){.task-overview-grid{grid-template-columns:1fr}.productivity-content .task-metrics{margin-left:0}.productivity-content .task-toolbar label:nth-child(2){max-width:none}}
@media(max-width:600px){.productivity-shell .productivity-content{padding:14px 12px 20px}.productivity-content .heading h1{font-size:22px}.productivity-content .task-toolbar label{min-width:0;flex:1 1 130px}.productivity-content .task-metrics{width:100%}.productivity-content .task-metrics span{flex:1;min-width:0}.productivity-content .heading{align-items:stretch}.productivity-content .task-column{min-height:120px}}

.productivity-content .task-owned,.productivity-content .task-queue{grid-template-columns:repeat(auto-fill,minmax(235px,290px));justify-content:start}.productivity-content .task-card{display:flex;flex-direction:column;align-items:stretch;gap:7px;background:#fff;box-shadow:0 2px 8px #173e5209}.productivity-content .task-card>.ghost{align-self:flex-start}.productivity-content .task-awaiting-accept{border:1px solid #e4b33b;background:#fff8d8;box-shadow:inset 3px 0 #e5b52f}.task-accept-label{color:#805600;font-size:11px;font-weight:700}.productivity-content .task-awaiting-accept>.primary{background:#ffda69;color:#584000;border:1px solid #d3a123}@keyframes task-accept-pulse{0%,100%{background-color:#fff9df;box-shadow:inset 3px 0 #e5b52f}50%{background-color:#ffedaa;box-shadow:inset 3px 0 #d19a10,0 0 0 2px #f7d36350}}@media(prefers-reduced-motion:no-preference){.task-awaiting-accept{animation:task-accept-pulse 2s ease-in-out infinite}}@media(max-width:600px){.productivity-content .task-owned,.productivity-content .task-queue{grid-template-columns:1fr}}

.chat-launcher{margin:18px 0;flex-shrink:0}.chat-launcher-card{display:flex;align-items:center;gap:10px;width:100%;padding:13px 12px;border:1px solid #b9d5dd;border-radius:10px;background:#e8f2f4;color:#193b4d;text-align:left;cursor:pointer;box-shadow:0 3px 12px #071d2912}.chat-launcher-card>span{flex:1;min-width:0}.chat-launcher-card strong{display:block;font-size:14px}.chat-launcher-card small{display:block;font-size:11px;font-weight:400;line-height:1.4;margin-top:3px}.chat-launcher-count{border-radius:20px;padding:3px 7px;background:#176b59;color:white;font-size:11px}.chat-launcher-card:focus-visible{outline:2px solid #9ddacf;outline-offset:3px}.chat-launcher-card.has-unread{border-color:#e5b52f;background:#fff2ba;color:#624c16}
.chat-drawer.sidebar-chats{position:fixed;inset:0 auto 0 0;width:min(390px,100vw);max-width:100vw;height:100dvh;max-height:100dvh;min-height:0;margin:0;padding:20px;border:0;border-right:1px solid #cbdde5;border-radius:0 14px 14px 0;background:#f3f8fa;box-shadow:12px 0 40px #102b3c24;overflow:hidden;color:#193b4d}.chat-drawer:not([open]){display:none}.chat-drawer[open]{display:flex;flex-direction:column}.chat-drawer::backdrop{background:#102b3c50}.chat-drawer-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}.chat-drawer-title h2{margin:0;font-size:22px}.chat-drawer .sidebar-chat-list{flex:1;min-height:0;padding-top:12px}.chat-drawer .chat-empty,.chat-drawer .chat-list-error{color:#567286}.chat-drawer .sidebar-chats-heading{margin-bottom:12px}.chat-drawer .chat-history-toggle{flex-shrink:0}.chat-drawer .sidebar-chat-card small{color:#567286}@keyframes chat-notification-pulse{0%,100%{background:#fff6d6;box-shadow:0 0 0 0 #e9bd3540}50%{background:#ffe694;box-shadow:0 0 0 3px #e9bd3525}}@media(prefers-reduced-motion:no-preference){.chat-launcher-card.has-unread{animation:chat-notification-pulse 2s ease-in-out infinite}}

.productivity-content .task-column-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,190px),1fr));gap:10px;align-items:start}.productivity-content .task-column-cards>.task-card{margin:0;padding:10px;gap:5px}.productivity-content .task-column-cards .task-card h3{font-size:12px;margin:5px 0 3px}.productivity-content .task-column-cards .task-card p{font-size:11px;margin:3px 0;-webkit-line-clamp:2}.productivity-content .task-column-cards .task-card button{padding:6px 8px;font-size:11px}.productivity-content .task-column-cards>.task-empty{grid-column:1/-1}

.module-permission-group{padding:12px 0;border-bottom:1px solid #e3ebef}.module-permission-group>strong{display:block;margin-bottom:9px;font-size:13px}.module-page-permissions{margin:8px 0 0;padding:12px;border:1px solid #d5e2eb;border-radius:8px;background:#f9fbfd}.module-page-permissions legend{font-size:12px;font-weight:600;padding:0 5px;color:#24536a}.module-page-permissions label{margin:7px 0}.module-page-permissions:disabled{opacity:.55}.module-page-permissions small{display:block;margin-top:8px}

.productivity-content .task-card.task-request-card{padding:12px;gap:10px;border-top:2px solid #247969;border-radius:9px;min-height:136px;justify-content:space-between;align-self:stretch}.productivity-content .task-card.task-request-card strong{display:block;font-size:13px;line-height:1.4;margin:8px 0 5px}.productivity-content .task-card-description{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;white-space:pre-wrap;overflow-wrap:anywhere}.productivity-content .task-card-actions{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:auto}.productivity-content .task-card.task-request-card button{font-size:11px;padding:7px 10px;min-height:30px}.productivity-content .task-card.task-awaiting-accept{border-color:#e4b33b}.productivity-content .task-awaiting-accept .task-card-actions>.primary{background:#ffda69;color:#584000;border:1px solid #d3a123}.productivity-content .task-card .task-accept-label{color:#805600;font-weight:700}

/* Distribuição do setor: uma coluna por integrante, mesmo sem tarefas. */
.task-team-columns{display:flex;gap:12px;overflow-x:auto;padding:0 14px 14px;align-items:stretch}
.task-team-person{flex:0 0 260px;min-width:0;border:1px solid #d9e4eb;border-radius:10px;background:#f3f7f9}
.task-team-person>header{display:flex;justify-content:space-between;align-items:start;gap:8px;padding:12px;border-bottom:1px solid #d9e4eb}
.task-team-person h3{margin:0;font-size:13px;overflow-wrap:anywhere}
.task-team-person header small{display:block;margin-top:4px;font-size:10px;color:#69818f;overflow-wrap:anywhere}
.task-team-cards{display:grid;gap:10px;padding:10px;align-content:start}
.task-team-stage{font-size:11px;color:#587283}
.task-team-cards .task-empty{margin:0;padding:20px 5px}
@media(max-width:480px){.task-team-person{flex-basis:240px}}

.task-commercial-info{display:grid;gap:4px;margin:8px 0;font-size:11px;color:#587283}.task-commercial-info b{color:#173e52;font-size:12px}.task-commercial-status{display:block;margin-top:8px;color:#855f13;font-weight:600}.task-commercial-quick{display:flex;flex-wrap:wrap;gap:6px;border-top:1px solid #dce8ee;padding-top:9px}.task-commercial-quick>button{flex:1 1 100px;padding:7px 8px;font-size:11px;border-radius:6px;white-space:normal}.task-commercial-card .task-card-description{-webkit-line-clamp:3}.task-commercial-quick .notice{width:100%}

/* Card comercial preserva o modelo da central do representante. */
.productivity-content .productivity-representative-card{position:relative;width:100%;min-width:0;max-width:none;height:auto;min-height:300px;max-height:none;overflow:visible;padding:12px;gap:6px;box-sizing:border-box}
.productivity-representative-card>.representative-commercial{max-height:none;overflow:visible}
.productivity-representative-card .operator-order-top{gap:6px;flex-wrap:wrap}
.productivity-representative-card .operator-order-top h3{font-size:16px;overflow-wrap:anywhere;min-width:0}
.productivity-representative-card .operator-delivery{font-size:11px;padding:6px 7px;margin:2px 0 5px}
.productivity-content .productivity-representative-card .operator-order-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));min-height:0;gap:6px;margin-top:auto;padding-top:9px}
.productivity-content .productivity-representative-card .operator-order-actions>button{grid-column:auto;min-height:34px;height:auto;white-space:normal;font-size:11px;padding:7px}
.productivity-content .productivity-representative-card .operator-order-actions>.finance-resolved-button,.productivity-content .productivity-representative-card .operator-order-actions>.commercial-toggle,.productivity-content .productivity-representative-card .operator-order-actions>.commercial-main-action,.productivity-content .productivity-representative-card .operator-order-actions>.commercial-highlight-action{grid-column:1/-1}
.productivity-representative-card.representative-pending-attention{border-color:#942187;background:#f6e6f5;animation:commercial-return-pulse 2s ease-in-out infinite}
@media(prefers-reduced-motion:reduce){.productivity-representative-card.representative-pending-attention{animation:none;background:#ecc5e8;box-shadow:0 0 0 2px #942187}}

/* A fazer: todos os tipos de card compartilham a mesma dimensão. */
.productivity-content .column-todo .task-column-cards{grid-auto-rows:1fr;align-items:stretch}
.productivity-content .column-todo .task-column-cards>article{width:100%;min-width:0;max-width:none;height:100%;min-height:300px;max-height:none;box-sizing:border-box;align-self:stretch;margin:0;display:flex;flex-direction:column}
.productivity-content .column-todo .task-column-cards>article>.task-card-actions,.productivity-content .column-todo .task-column-cards>article>.operator-order-actions{margin-top:auto}

.productivity-content .productivity-representative-card .operator-order-actions>.finish-finance-button{grid-column:1/-1}

/* Identidade dos módulos, compartilhada pelo Master, menu e cards. */
[data-module="production"]{--module-color:#c2410c;--module-soft:#fff0e5}
[data-module="finance"]{--module-color:#047857;--module-soft:#dcfce7}
[data-module="commercial"]{--module-color:#a21caf;--module-soft:#fae8ff}
[data-module="quality"]{--module-color:#1d4ed8;--module-soft:#dbeafe}
[data-module="productivity"]{--module-color:#b91c1c;--module-soft:#fee2e2}
.module-identity{display:inline-flex!important;align-items:center;border-radius:5px;padding:4px 7px;background:var(--module-color)!important;color:#fff!important;font-size:10px!important;font-weight:700;line-height:1.3!important;white-space:normal;vertical-align:middle}
.task-module-labels{display:flex;gap:5px;flex-wrap:wrap;margin:2px 0 7px}
.master-module[data-module]{border-top:4px solid var(--module-color)}
.master-module[data-module] .master-module-icon{background:var(--module-soft);color:var(--module-color)}
.master-module[data-module] .master-action{color:var(--module-color)}
.master-flow>[data-module]{border-top:3px solid var(--module-color)}
.module-guides details[data-module]>summary{border:1px solid color-mix(in srgb,var(--module-color) 65%,transparent);border-radius:8px;padding-left:10px;box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--module-color) 8%,transparent)}

.productivity-representative-card>.task-module-labels{position:relative;z-index:2;align-self:flex-end;max-width:72%;justify-content:flex-end}

.representative-shell .operator-order>.task-module-labels{position:relative;z-index:2;align-self:flex-end;max-width:72%;justify-content:flex-end}

.task-module-labels>.module-identity{font-size:11px!important;padding:5px 9px;box-shadow:0 2px 5px #173e5226;letter-spacing:.15px}

.task-timing{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin-top:9px}.task-timing>div{padding:7px;background:#edf4f8;border:1px solid #d6e3ea;border-radius:6px}.task-timing>div:last-child{grid-column:1/-1}.productivity-content .task-timing strong{font-size:11px!important;margin:3px 0!important}.task-description-box{padding:8px;background:#f5f8fa;border:1px solid #d6e3ea;border-radius:6px;margin-top:9px}.task-description-box p{display:block!important;max-height:110px;overflow:auto!important;white-space:pre-wrap}.task-quick-buttons{display:flex;flex-wrap:wrap;gap:6px}.task-quick-buttons button{flex:1}.task-chat-messages{max-height:300px;overflow:auto}.task-chat-messages article{padding:10px;border-bottom:1px solid #d6e3ea}.task-chat-messages small{display:block}.task-chat-messages p{display:block!important;white-space:pre-wrap;overflow-wrap:anywhere}

.task-card-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:8px}.task-card-heading .task-module-labels{margin:0}.task-elapsed{text-align:right;margin-left:auto;max-width:60%;padding:5px 7px;background:#edf4f8;border:1px solid #d6e3ea;border-radius:6px}.productivity-content .task-elapsed small{font-size:9px;margin:0;line-height:1.3}.productivity-content .task-elapsed strong{font-size:11px;margin:3px 0 0;line-height:1.3}.task-timing>div:last-child{grid-column:auto}

.productivity-content .task-card.task-request-card>.task-card-footer{display:flex;flex-direction:column;gap:7px;margin-top:auto;justify-content:flex-end}.task-card-footer .task-card-actions{margin-top:0}.task-card-footer .task-quick-buttons{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.task-card-footer .task-quick-buttons>button{min-width:0;white-space:normal}.task-card-footer .task-card-actions>.ghost{padding-left:0}

.quality-origin-dialog{width:calc(100vw - 16px);max-width:none;height:calc(100dvh - 16px);max-height:calc(100dvh - 16px);margin:auto}.quality-origin-dialog>header{padding:10px 16px}.quality-origin-dialog h2{font-size:17px}

.task-chat-picker{padding:12px;border-bottom:1px solid #ccdae4}.task-chat-picker form{display:flex;gap:6px;align-items:end}.task-chat-picker label{display:grid;gap:4px;min-width:0}.task-chat-picker input{width:100%;min-width:0}.task-chat-picker-list{max-height:180px;overflow:auto;display:grid;gap:6px;margin-top:8px}.task-chat-picker-list button{text-align:left;white-space:normal}.task-chat-picker-list small{display:block;overflow-wrap:anywhere;font-size:10px}

/* Master: menu completo acessível mesmo com todos os módulos expandidos. */
.master-shell>.sidebar{height:100dvh;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior-y:contain;scrollbar-width:thin;scrollbar-color:#82a8b9 #193b4d}
.master-shell>.sidebar>*{flex-shrink:0}
.master-shell>.sidebar>.sidebar-footer{padding-bottom:16px}

/* Acesso aos módulos: contraste consistente com a identidade de cada módulo. */
.master-module[data-module] .master-action{background:var(--module-soft);color:var(--module-color);border:1px solid var(--module-color);font-weight:700}
.master-module[data-module] .master-action:hover{background:var(--module-color);color:#fff}
.master-module[data-module] .master-action:focus-visible{outline:3px solid var(--module-color);outline-offset:3px}

/* Todos os painéis: rolagem independente do menu lateral. */
.shell>.sidebar{max-height:100dvh;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior-y:contain;scrollbar-width:thin;scrollbar-color:#82a8b9 #193b4d}
.shell>.sidebar>*{flex-shrink:0}
.shell>.sidebar>.sidebar-footer{padding-bottom:16px}

.module-guides details[data-module]>summary:hover{border-color:var(--module-color);background:color-mix(in srgb,var(--module-color) 12%,transparent)}

.module-guides details[data-module]>summary{border-left:4px solid var(--module-color);padding-left:8px}

/* Subpáginas seguem a identificação lateral do módulo expandido. */
.sidebar .module-guides details[data-module][open] .module-pages :is(a,button){border-left:3px solid var(--module-color);border-radius:6px}
.sidebar .module-guides details[data-module][open] .module-pages [aria-current=page]{box-shadow:none;border-left-color:var(--module-color)}

.productivity-content .task-card-footer .task-card-actions>.ghost{border:1px solid #b8cfdc;background:#fff;border-radius:6px;padding:7px 10px;color:#244c63}
.productivity-content .task-card-footer .task-card-actions>.ghost:hover{background:#edf4f8;border-color:#789fb5}

.productivity-content .task-elapsed{text-align:center}

.productivity-content .task-description-box{background:#e6f1ff;border-color:#aac9ed}.productivity-content .task-description-box small{color:#355d85}.productivity-content .task-description-box p{color:#21466b}

/* Detalhes da tarefa: formulário compacto e hierarquia visual. */
.task-detail-modal{max-width:700px;border:1px solid #ccdde6;border-radius:16px;box-shadow:0 24px 80px #102b3c40}
.task-detail-modal>.panel-head{padding:14px 18px;background:#f6f9fb;position:sticky;top:0;z-index:2}
.task-detail-modal .panel-head h2{font-size:17px;letter-spacing:-.3px;overflow-wrap:anywhere}
.task-detail-modal .panel-head>.ghost{min-height:30px;width:30px;padding:3px;border:1px solid #d7e2e9;background:#fff;border-radius:8px}
.task-detail-modal .task-detail{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:16px 18px}
.task-detail-modal .task-detail>*{grid-column:1/-1;min-width:0}
.task-detail-modal .task-detail>.task-detail-meta,.task-detail-modal .task-detail>label:not(:has(textarea)){grid-column:auto}
.task-detail-summary{padding:10px 12px;background:#edf4fa;border:1px solid #d8e6f0;border-radius:9px}
.task-detail-summary>span,.task-detail-meta>span{display:block;font-size:10px;font-weight:700;letter-spacing:.4px;color:#68818f;margin-bottom:4px}
.task-detail-modal .task-detail-summary p{font-size:12px;line-height:1.5}
.task-detail-meta{background:#f8fafb;border:1px solid #e0e8ed;border-radius:8px;padding:9px 11px}
.task-detail-meta strong{font-size:12px;overflow-wrap:anywhere}
.task-detail-status{justify-self:start;padding:4px 9px;border-radius:20px;background:#e4f2ec;color:#176b59;font-size:11px;font-weight:700}
.task-detail-modal label{font-size:12px;gap:5px;margin:0}
.task-detail-modal :is(input,select){min-height:36px;padding:7px 10px;border-radius:8px;font-size:12px}
.task-detail-modal textarea{min-height:76px;padding:9px 10px;font-size:12px;border-radius:8px}
.task-detail-modal button{min-height:34px;padding:7px 11px;font-size:12px;border-radius:8px}
.task-detail-modal .task-actions{margin:0;gap:8px}
.task-detail-modal .task-detail>button{justify-self:start}
.task-detail-modal .task-sector-form{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:10px;padding:12px;background:#f7f9fb;border:1px solid #e0e8ed;border-radius:9px;margin:0}
.task-detail-history{border-top:1px solid #e0e8ed;padding-top:12px}
.task-detail-history>summary{cursor:pointer;font-size:12px;font-weight:600;color:#587283}
.task-detail-modal .task-history{margin-bottom:0}
@media(max-width:480px){.task-detail-modal .task-detail{grid-template-columns:1fr;padding:14px}.task-detail-modal .task-sector-form{grid-template-columns:1fr}}

.task-detail-quick .task-quick-buttons{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.task-detail-quick{padding-bottom:10px;border-bottom:1px solid #e0e8ed}

.task-priority{display:inline-flex;align-items:center;align-self:flex-start;gap:5px;padding:4px 7px;border:1px solid;border-radius:5px;font-size:10px;font-weight:700;margin:5px 0}.task-priority svg{fill:currentColor;flex-shrink:0}.priority-low{background:#eef4f8;border-color:#b7cbd7;color:#496477}.priority-normal{background:#e9f6ef;border-color:#a6d6bb;color:#21633d}.priority-high{background:#fff3d6;border-color:#ebcb78;color:#855500}.priority-urgent{background:#ffe7e7;border-color:#efa3a3;color:#b91c1c}

/* Cabeçalho compacto compartilhado entre tarefas e pendências. */
.productivity-content .task-card-heading{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px;align-items:start}
.task-card-identifiers{display:flex;align-items:flex-start;flex-wrap:wrap;gap:4px;min-width:0}
.task-card-identifiers .module-identity{padding:4px 6px;font-size:9px!important}
.task-card-identifiers .task-priority{margin:0;padding:3px 5px;font-size:9px;gap:3px}
.productivity-content .task-elapsed{margin:0;max-width:none;padding:5px 6px;min-width:78px}
.productivity-content .task-elapsed small{font-size:8px;line-height:1.2}
.productivity-content .task-elapsed strong{font-size:11px;margin-top:3px}
.productivity-content .task-timing{gap:5px;margin-top:6px}
.productivity-content .task-timing>div{padding:6px 7px}
.productivity-content .task-timing small{font-size:9px;margin:0}
.productivity-content .task-timing strong{font-size:10px!important;line-height:1.35;margin:3px 0 0!important}
.productivity-content .task-description-box{padding:7px 8px;margin-top:6px}
.productivity-content .task-description-box small{font-size:9px;margin:0}
.productivity-content .task-description-box p{margin:4px 0 0;font-size:11px;line-height:1.4}
.productivity-content .productivity-representative-card{padding:10px;gap:5px}
.productivity-representative-card:has(>.commercial-ribbon-slot)>.task-card-heading{padding-top:30px}
.productivity-representative-card .production-origin{padding:5px 7px;margin:0}
.productivity-representative-card .production-origin strong{font-size:11px}
.productivity-content .productivity-representative-card .operator-order-top h3{font-size:13px}
.productivity-representative-card>strong{font-size:12px;line-height:1.35}
.productivity-representative-card .order-flags{margin:1px 0}
.productivity-representative-card .representative-commercial{margin:2px 0;padding:6px 8px;min-height:0}
.productivity-representative-card .representative-commercial p{font-size:11px;margin-top:3px}
.productivity-content .productivity-representative-card .operator-order-actions{gap:5px;padding-top:7px}
.productivity-content .productivity-representative-card .operator-order-actions>button{min-height:30px;padding:5px 7px;font-size:10px}

.productivity-content .task-elapsed{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;text-align:center}
.productivity-content .task-elapsed>small,.productivity-content .task-elapsed>strong{display:block;margin:0!important;width:100%;text-align:center}
.productivity-content .task-elapsed>small{line-height:1.3;white-space:normal}
.productivity-content .task-elapsed>strong{line-height:1.3;white-space:nowrap}


/* Visão densa: mais cards por linha, sem esticar os menores. */
.productivity-content .task-owned,.productivity-content .task-queue{grid-template-columns:repeat(auto-fill,minmax(min(100%,210px),1fr));gap:8px;padding:10px;align-items:start}
.productivity-content :is(.task-owned,.task-queue)>article{align-self:start;height:auto;min-height:0;max-height:none}
.productivity-content :is(.task-owned,.task-queue)>.task-card.task-request-card{padding:9px;gap:7px;justify-content:flex-start}
.productivity-content :is(.task-owned,.task-queue)>.productivity-representative-card{padding:9px;gap:4px}
.productivity-content :is(.task-owned,.task-queue) .task-card-footer{margin-top:3px;gap:5px}
.productivity-content :is(.task-owned,.task-queue) .task-card-heading{gap:5px}
.productivity-content :is(.task-owned,.task-queue) .task-card-identifiers{gap:3px}
.productivity-content :is(.task-owned,.task-queue) .task-timing{margin-top:5px;gap:4px}
.productivity-content :is(.task-owned,.task-queue) .task-timing>div{padding:5px 6px}
.productivity-content :is(.task-owned,.task-queue) .task-description-box{padding:6px 7px;margin-top:5px}
.productivity-content :is(.task-owned,.task-queue) .task-description-box p{max-height:64px}
.productivity-content :is(.task-owned,.task-queue) .task-card.task-request-card button{padding:5px 7px;min-height:29px;font-size:10px}
@media(max-width:480px){.productivity-content .task-owned,.productivity-content .task-queue{grid-template-columns:1fr}}

.productivity-content .task-metrics .task-queue-alert{background:#fff2bd;border:1px solid #dfb33e;color:#755000}.productivity-content .task-metrics .task-queue-alert b{color:#755000}@keyframes task-queue-alert-pulse{0%,100%{background:#fff6d8;box-shadow:0 0 0 0 #e5b52f00}50%{background:#ffe078;box-shadow:0 0 0 3px #e5b52f40}}@media(prefers-reduced-motion:no-preference){.task-metrics .task-queue-alert{animation:task-queue-alert-pulse 2s ease-in-out infinite}}

.productivity-content .task-card-identifiers{flex-direction:column;align-items:flex-start;flex-wrap:nowrap;gap:4px}

.task-priority-picker{border:0;padding:0;margin:0;min-width:0}.task-priority-picker legend{font-size:12px;font-weight:600;margin-bottom:7px}.task-priority-picker>div{display:flex;flex-wrap:wrap;gap:7px}.task-priority-picker button.task-priority{margin:0;opacity:.65;border:1px solid;min-height:34px}.task-priority-picker button[aria-pressed=true]{opacity:1;box-shadow:0 0 0 2px currentColor;font-weight:700}.task-priority-picker button:hover:not(:disabled){opacity:1}.task-modal .task-priority-choice{display:flex;align-items:center;gap:5px;padding:7px 9px;border:1px solid;border-radius:6px;margin:0;font-size:11px;cursor:pointer}.task-priority-choice:has(input:checked){box-shadow:0 0 0 2px currentColor}.task-priority-choice svg{fill:currentColor}.task-modal .task-priority-choice input{width:13px;min-height:13px;height:13px;margin:0;padding:0;accent-color:currentColor}

.task-inline-priority{min-width:0}.productivity-content .task-inline-priority button.task-priority{min-height:23px;padding:3px 5px;font-size:9px;border-radius:5px;margin:0}.task-inline-priority-options{display:flex;flex-wrap:wrap;gap:4px;padding:6px 0 2px}.task-inline-priority-options button[aria-pressed=true]{outline:1px solid currentColor;outline-offset:1px}.task-inline-priority>button:hover{filter:brightness(.95)}

@keyframes urgent-priority-flag-pulse{0%,100%{background:#ffe5e5;border-color:#e44b4b;color:#b91c1c}50%{background:#fff0ad;border-color:#e2b536;color:#855500}}
@media(prefers-reduced-motion:no-preference){.productivity-content article .task-card-identifiers>.task-priority.priority-urgent,.productivity-content article .task-inline-priority>button.priority-urgent{animation:urgent-priority-flag-pulse 2s ease-in-out infinite}}

.productivity-content .task-metrics>span{text-align:center;justify-items:center;align-content:center}.productivity-content .task-metrics>span>b{width:100%;text-align:center}

.productivity-content article[data-priority-spotlight="true"]{background:#e1efff!important;border-color:#287be0!important;outline:2px solid #287be0;outline-offset:2px;box-shadow:0 0 0 5px #287be026!important;animation:none!important;scroll-margin:24px}

.task-priority-popover{position:fixed;z-index:1600;width:140px;display:grid;gap:5px;padding:10px;background:#fff;border:1px solid #c7d9e5;border-radius:10px;box-shadow:0 8px 28px #173e5230}.task-priority-popover>small{font-size:10px;font-weight:700;margin-bottom:2px}.task-priority-popover button.task-priority{margin:0;min-height:28px;justify-content:flex-start;padding:5px 8px;font-size:11px}.task-priority-popover button[aria-pressed=true]{box-shadow:inset 0 0 0 1px currentColor}

.task-routing-form{display:grid;gap:12px;padding:13px;border:1px solid #d3e1eb;border-radius:10px;background:#f5f8fb}.task-routing-form h3{font-size:13px}.task-routing-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:9px;align-items:end}.task-return-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:12px;border-top:1px solid #dbe5ec}.task-return-row small{font-size:11px;line-height:1.4}.task-detail-modal .task-return-queue{background:#ffdf80;color:#674700;border:1px solid #d4a52b;white-space:nowrap;font-weight:700;box-shadow:0 2px 4px #a5791515}.task-detail-modal .task-return-queue:hover:not(:disabled){background:#ffd35b}@media(max-width:480px){.task-return-row{align-items:stretch;flex-direction:column}}

/* Ações do card alinhadas em duas colunas iguais. */
.productivity-content .task-card-footer .task-card-actions,.productivity-content .task-card-footer .task-quick-buttons{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;width:100%;align-items:stretch}
.productivity-content .task-card-footer .task-card-actions>button,.productivity-content .task-card-footer .task-quick-buttons>button{width:100%;min-width:0;min-height:32px;padding:6px 7px;justify-content:center;text-align:center;white-space:normal;line-height:1.25;border-radius:6px;margin:0}
.productivity-content .task-card.task-request-card>.task-card-footer{gap:7px}

.productivity-content .task-card strong.task-title-with-number{display:flex;align-items:center;flex-wrap:wrap;gap:6px}.task-number-badge{display:inline-block;padding:4px 7px;border-radius:5px;background:#174a78;color:#fff;border:1px solid #123e65;font-size:11px;font-weight:800;letter-spacing:.3px;white-space:nowrap}

/* Janela independente dos grids e formulários dos cards. */
.task-conversation-dialog{width:min(600px,calc(100vw - 24px));max-width:600px;max-height:calc(100dvh - 32px);padding:0;border:1px solid #cbdce6;border-radius:14px;background:#fff;color:#173e52;box-shadow:0 24px 80px #102b3c40;overflow:auto}
.task-conversation-dialog::backdrop{background:#102b3c99}
.task-conversation-dialog>form{display:flex;flex-direction:column;gap:0;padding:0;margin:0;min-width:0}
.task-conversation-dialog .dialog-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:15px 18px;border-bottom:1px solid #dce6ec;background:#f6f9fb}
.task-conversation-dialog .dialog-head h2{font-size:17px;line-height:1.4;overflow-wrap:anywhere;min-width:0;margin:0}
.task-conversation-dialog .dialog-head button{flex-shrink:0;min-height:30px;padding:4px 10px}
.task-conversation-dialog .dialog-body{display:grid;grid-template-columns:minmax(0,1fr);gap:14px;padding:16px 18px}
.task-conversation-dialog .dialog-body>p{font-size:12px;line-height:1.5;color:#607b8b}
.task-conversation-dialog .task-chat-messages{display:grid;gap:8px;max-height:36dvh;min-height:100px;overflow:auto;padding:10px;background:#f1f6fa;border:1px solid #dbe6ee;border-radius:9px}
.task-conversation-dialog .task-chat-messages article{background:#fff;border:1px solid #dbe6ee;border-radius:8px;padding:10px 12px}
.task-conversation-dialog .task-chat-messages strong{font-size:12px;overflow-wrap:anywhere}
.task-conversation-dialog .task-chat-messages small{font-size:10px;color:#78909e;margin-top:3px}
.task-conversation-dialog .task-chat-messages p{font-size:13px;line-height:1.5;margin-top:6px}
.task-conversation-dialog label{display:grid;gap:6px;font-size:12px}
.task-conversation-dialog textarea{width:100%;min-height:88px;font-size:13px;resize:vertical}
.task-conversation-dialog .dialog-actions{display:flex;justify-content:flex-end;gap:8px;padding:12px 18px;background:#f8fafc;border-top:1px solid #dce6ec}
.task-conversation-dialog .dialog-actions button{min-width:88px;min-height:36px;font-size:12px}

/* Padrão visual único para as conversas de pedidos e tarefas. */
.chat-window{width:min(660px,calc(100vw - 24px));border:1px solid #cbdce6;border-radius:12px;background:#fff;color:#20394a}
.chat-window .dialog-head{display:flex;align-items:center;justify-content:space-between;gap:16px;background:#fff;padding:15px 18px;border-bottom:1px solid #dce6ec}
.chat-window .dialog-head h2{font-size:18px;line-height:1.35;margin:0;overflow-wrap:anywhere}
.chat-window .dialog-head>button{width:38px;min-height:38px;flex-shrink:0;border:1px solid #168572;border-radius:10px;background:#fff;color:#355266}
.task-conversation-dialog.chat-window{max-width:660px}
.task-conversation-dialog.chat-window .dialog-body{padding:18px;gap:14px}
.task-conversation-dialog.chat-window .task-chat-messages{display:flex;flex-direction:column;gap:12px;border:0;background:#f1f5f7;padding:12px}
.task-conversation-dialog.chat-window .chat-message{align-self:flex-start;max-width:96%;border:1px solid #d8e4e9;border-radius:9px;padding:12px;background:#fff}
.task-conversation-dialog.chat-window .chat-message-admin{align-self:flex-end;background:#e5f3ee;border-color:#bcddd0}
.task-conversation-dialog.chat-window .chat-message p{margin:8px 0;line-height:1.5;font-size:14px}
.task-conversation-dialog.chat-window .chat-message small{font-size:11px}
.task-conversation-dialog.chat-window .chat-context strong{font-size:14px}
.task-conversation-dialog.chat-window .chat-context small{font-size:11px}
.task-conversation-dialog.chat-window .dialog-actions{background:#fff}

.task-sender{padding:5px 7px;margin-top:5px;background:#f1f6fa;border:1px solid #d6e3ea;border-radius:6px}.productivity-content .task-sender small{display:block;font-size:9px;margin:0;color:#607b8b}.productivity-content .task-sender strong{display:block;font-size:11px;margin:2px 0 0;line-height:1.3;overflow-wrap:anywhere}

.task-chat-picker-list .task-chat-unread{background:#fff1b5;border:1px solid #d8ac36;color:#674700}

.unified-chat-search{display:grid;gap:5px;font-size:12px;margin:0 0 12px}.unified-chat-search input{min-height:36px;font-size:12px}.chat-drawer>.sidebar-chat-list{flex:1;min-height:0;overflow-y:auto}

/* Compact module overview, preserving each module's identity. */
.master-module-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr));gap:14px;margin-bottom:18px}
.master-module-grid .master-module{display:flex;flex-direction:column;align-items:stretch;gap:12px;padding:18px;border-radius:12px;border-top-width:3px;box-shadow:0 3px 12px #193b4d06}
.master-module-grid .master-module .master-module-header{display:flex;flex-direction:row;align-items:center;gap:10px;flex:none}
.master-module-grid .master-module-icon{display:grid;place-items:center;padding:10px;border-radius:10px;flex-shrink:0}
.master-module-grid .master-module h2{margin:0;flex:1;font-size:16px;line-height:1.3}
.master-module-grid .master-status{padding:3px 7px;font-size:10px;white-space:nowrap}
.master-module-grid .master-module p{margin:0;font-size:12px;line-height:1.5}
.master-module-grid .master-module .master-tags{display:flex;flex-direction:row;align-items:center;flex:none;gap:5px;margin:0}
.master-module-grid .master-tags a,.master-module-grid .master-tags span{padding:4px 7px;border-radius:5px;font-size:10px}
.master-module-grid .master-action{align-self:flex-start;margin-top:auto;padding:8px 11px;font-size:11px;gap:8px}
.master-metrics{gap:12px;margin-bottom:16px}
.master-metrics .metric{padding:14px;gap:6px}
@media(max-width:450px){.master-module-grid .master-module-header{flex-wrap:wrap}.master-module-grid .master-status{margin-left:52px}}

.sidebar-chat-card .chat-origin-tag{display:inline-flex;align-self:flex-start;align-items:center;padding:2px 7px;border:1px solid;border-radius:5px;font-size:10px;font-weight:700;line-height:1.4;white-space:nowrap}
.sidebar-chat-card .chat-origin-order{background:#fff1e6;border-color:#fdba8c;color:#9a3412}
.sidebar-chat-card .chat-origin-task{background:#e8f0ff;border-color:#a9c7fb;color:#1e40af}

/* Compact cards for the unified chat inbox. */
.chat-drawer .sidebar-chat-card{min-height:0;padding:10px 11px;gap:6px;margin-bottom:7px;border-radius:9px;box-shadow:0 2px 5px #193b4d08}
.chat-drawer .sidebar-chat-card.chat-unread{border-width:1px;border-left-width:3px}
.chat-drawer .sidebar-chat-card>.chat-card-heading{display:flex;align-items:center;gap:7px;min-width:0}
.chat-card-heading .chat-origin-tag{flex-shrink:0;padding:1px 5px;font-size:9px;border-radius:4px}
.chat-drawer .chat-card-heading strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;line-height:1.4}
.chat-drawer .sidebar-chat-card>.chat-card-preview{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;line-height:1.35;color:#526e7c}
.chat-drawer .sidebar-chat-card>.chat-card-footer{display:flex;align-items:center;justify-content:space-between;gap:8px}
.chat-card-footer small{min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:10px}
.chat-drawer .chat-card-footer .chat-unread-badge{flex-shrink:0;padding:2px 6px;border-radius:5px;font-size:10px;line-height:1.3;background:#985400;color:#fff}

/* Equal-height conversation cards, including cards without a preview. */
.chat-drawer .sidebar-chat-card{height:88px;min-height:88px;max-height:88px;box-sizing:border-box;flex-shrink:0;overflow:hidden}
.chat-drawer .sidebar-chat-card>.chat-card-heading{flex-shrink:0}
.chat-drawer .sidebar-chat-card>.chat-card-footer{margin-top:auto;flex-shrink:0}

/* Shared conversation palette for order and task chats. */
.chat-window{border:1px solid #c6dce3;border-radius:16px;box-shadow:0 24px 70px #102f4933;background:#fff}
.chat-window .dialog-head{background:linear-gradient(115deg,#123f50,#176c66);border-bottom:1px solid #257c78;padding:17px 20px;color:#fff}
.chat-window .dialog-head h2{color:#fff;font-weight:650}
.chat-window .dialog-head>button{background:#ffffff14;border-color:#ffffff60;color:#fff;border-radius:10px}
.chat-window .dialog-head>button:hover{background:#ffffff28}
.chat-window .chat-context{padding:11px 13px;border:1px solid #cfdee9;border-left:3px solid #377b9e;border-radius:9px;background:#f0f6fc;gap:4px}
.chat-window .chat-context strong{color:#17445d}
.chat-window .chat-context small{color:#557083}
.chat-window .chat-participants>strong{color:#315769;font-size:12px}
.chat-window .chat-participants>div>span{background:#eaf3f5;border:1px solid #cddfe5;color:#245365;border-radius:6px;padding:4px 7px}
.chat-window .chat-messages,.task-conversation-dialog.chat-window .task-chat-messages{background:linear-gradient(145deg,#edf4f9,#f0f7f5);border:1px solid #d8e5eb;border-radius:12px;padding:14px;gap:10px;scrollbar-width:thin;scrollbar-color:#9abbbf transparent}
.chat-window .chat-message,.task-conversation-dialog.chat-window .chat-message{background:#f5f9ff;border:1px solid #c6dbee;border-radius:12px 12px 12px 4px;box-shadow:0 2px 5px #1c455909;padding:11px 13px;color:#203e55;max-width:88%}
.chat-window .chat-message-admin,.task-conversation-dialog.chat-window .chat-message-admin{background:#daf0e8;border-color:#a8d6c6;border-radius:12px 12px 4px 12px;color:#174c41}
.chat-window .chat-message strong{color:#255d84;font-size:12px}
.chat-window .chat-message-admin strong{color:#176b57}
.chat-window .chat-message small{color:#547284}
.chat-window textarea{background:#f8fbfd;border:1px solid #bfd5df;border-radius:10px;padding:11px 12px;color:#203e55;transition:border-color .15s,box-shadow .15s}
.chat-window textarea:focus{outline:none;border-color:#258779;box-shadow:0 0 0 3px #2587791c;background:#fff}
.chat-window .dialog-body>label,.chat-window .chat-compose>label{font-size:12px;font-weight:600;color:#315769}
.chat-window .dialog-actions,.task-conversation-dialog.chat-window .dialog-actions{background:#f4f8fa;border-top:1px solid #dce7ec;padding:14px 18px}
.chat-window .primary{background:#176b59;border-color:#176b59;border-radius:8px;box-shadow:0 2px 4px #176b5915}
.chat-window .primary:hover:not(:disabled){background:#105442;border-color:#105442}
.chat-window .primary:disabled{background:#8bb2a8;border-color:#8bb2a8;box-shadow:none}

.task-saved-chat-body{display:grid;gap:10px;padding-top:10px}.task-saved-chat .chat-messages{max-height:300px}.task-detail>.detail-chats{grid-column:1/-1}

.chat-messages .chat-message.chat-author-color,.chat-window .chat-messages .chat-message.chat-author-color{background:var(--chat-author-bg);border-color:var(--chat-author-border);border-left-width:3px;color:#173247;box-shadow:0 3px 8px #17324710}
.chat-messages .chat-message.chat-author-color strong,.chat-window .chat-messages .chat-message.chat-author-color strong{color:var(--chat-author-ink);font-weight:700}
.chat-messages .chat-message.chat-author-color small{color:#3d5968}
.chat-participants>div>span.chat-author-color,.chat-window .chat-participants>div>span.chat-author-color{background:var(--chat-author-bg);border:1px solid var(--chat-author-border);color:var(--chat-author-ink);font-weight:600}

.task-delegated-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:10px;align-items:start}.task-delegated-recipient{display:grid;gap:3px;padding:8px 10px;background:#edf4fc;border:1px solid #cbddeb;border-radius:8px 8px 0 0;font-size:12px}.task-delegated-recipient small{color:#567286}.task-delegated-item{min-width:0}.task-delegated-grid>.task-empty{grid-column:1/-1}

.header-logout{display:flex;align-items:center;gap:8px;flex-shrink:0}.header-logout>button{display:inline-flex;align-items:center;gap:6px;padding:8px 12px;border:1px solid #c8dce3;border-radius:8px;background:#fff;color:#264b5d;font-weight:600}.header-logout>button:hover:not(:disabled){background:#fff1f1;border-color:#edb9b9;color:#a52a2a}.header-logout>small{color:#a52a2a;max-width:180px}

.task-intake-row{display:grid;grid-template-columns:minmax(0,1fr);gap:14px;align-items:stretch;min-width:0}
.task-intake-row.has-personal-requests{grid-template-columns:repeat(2,minmax(0,1fr))}
.task-intake-row>.task-section{min-width:0;margin-bottom:0}
.task-intake-row .task-personal-requests{background:#fff2c7;border:1px solid #e9ba48;border-top:3px solid #dda20c;box-shadow:0 3px 12px #bb8a1312}
.task-personal-requests>.panel-head{background:#ffe9a3;border-bottom:1px solid #ebca78;border-radius:8px 8px 0 0}
.task-personal-requests .panel-head h2{color:#79500c}
.task-personal-requests .panel-head p{color:#886427}
.task-personal-requests .task-count{background:#996600;color:#fff}
@media(max-width:850px){.task-intake-row.has-personal-requests{grid-template-columns:minmax(0,1fr)}}

.task-quality-origin-notice{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:15px 16px;border:1px solid #93b4f5;border-left:4px solid #1d4ed8;border-radius:10px;background:#e6efff;box-shadow:0 3px 10px #1d4ed810}
.task-quality-origin-notice>div{min-width:0}
.task-quality-origin-notice strong{display:block;color:#1e40af;font-size:14px;font-weight:750;margin-bottom:5px}
.task-quality-origin-notice p{margin:0;color:#29496f;font-size:12px;line-height:1.5}
.task-quality-origin-notice>button{flex-shrink:0;background:#1d4ed8;border:1px solid #1d4ed8;color:#fff;font-size:12px;font-weight:700;padding:10px 13px;border-radius:8px}
.task-quality-origin-notice>button:hover{background:#1e40af}
.task-quality-origin-notice>button:focus-visible{outline:3px solid #60a5fa;outline-offset:3px}
@media(max-width:550px){.task-quality-origin-notice{align-items:stretch;flex-direction:column;gap:12px}.task-quality-origin-notice>button{width:100%}}

.task-delegated-recipient{display:flex;align-items:center;gap:9px;padding:12px;border:1px solid #9ccfbd;border-left:4px solid #16805e;background:#dcf3e8;color:#164e3c}
.task-delegated-recipient>div{display:grid;gap:4px;min-width:0}
.task-delegated-recipient strong{font-size:14px;font-weight:750;overflow-wrap:anywhere;color:#124f3b}
.task-delegated-recipient .task-assignee-label{font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.04em;color:#287359}
.task-delegated-recipient small{font-size:10px;line-height:1.4;color:#416b5d}
.task-assignee-avatar{display:grid;place-items:center;flex-shrink:0;width:32px;height:32px;border-radius:9px;background:#17795c;color:white;font-size:15px;font-weight:700}
.task-delegated-recipient.is-pending{background:#fff3d5;border-color:#e3c478;border-left-color:#d49a16}
.task-delegated-recipient.is-pending strong,.task-delegated-recipient.is-pending .task-assignee-label{color:#81570e}
.task-delegated-recipient.is-pending .task-assignee-avatar{background:#a87313}

.task-finished-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:12px;padding:14px;align-items:stretch}
.task-finished-card{display:flex;flex-direction:column;gap:10px;min-width:0;padding:13px;border:1px solid #cfdfdf;border-top:3px solid #29836c;border-radius:10px;background:#fff;box-shadow:0 3px 9px #193b4d08}
.task-finished-card>header{display:flex;align-items:center;justify-content:space-between;gap:6px}
.task-finished-status{padding:3px 7px;border-radius:5px;background:#def3e8;color:#16664b;font-size:10px;font-weight:700;white-space:nowrap}
.task-finished-title{display:flex;align-items:baseline;flex-wrap:wrap;gap:6px;color:#183e54;font-size:13px;overflow-wrap:anywhere}
.task-finished-card>.task-priority{align-self:flex-start;animation:none}
.task-finished-meta{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin:0}
.task-finished-meta>div{min-width:0;padding:7px;background:#f1f6fa;border-radius:6px}
.task-finished-meta dt,.task-finished-card section>small{color:#607b8b;font-size:10px;margin-bottom:4px;display:block}
.task-finished-meta dd{margin:0;color:#28495d;font-size:11px;font-weight:600;overflow-wrap:anywhere;line-height:1.4}
.task-finished-card section{padding:8px 9px;border-radius:7px}
.task-finished-description{background:#edf4ff;border:1px solid #c9ddf5}
.task-finished-resolution{background:#eaf6ef;border:1px solid #c4e4d2}
.task-finished-card section p{margin:0;font-size:11px;line-height:1.5;color:#294f48;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.task-finished-card>button{margin-top:auto;width:100%;min-height:32px;border:1px solid #b8cfd9;border-radius:7px;font-size:11px;background:#f8fbfd;color:#245366}
@media(max-width:480px){.task-finished-grid{grid-template-columns:1fr;padding:10px}}

/* Completed tasks shown as full-width rows with all existing information. */
.task-finished-grid{grid-template-columns:minmax(0,1fr);gap:10px}
.task-finished-card{display:grid;grid-template-columns:minmax(160px,1.1fr) minmax(240px,1.4fr) minmax(150px,1fr) minmax(150px,1fr) 145px;grid-template-rows:auto auto auto;column-gap:14px;row-gap:7px;align-items:start;border-top-width:1px;border-left:3px solid #29836c;padding:13px 15px}
.task-finished-card>header{grid-column:1;grid-row:1;flex-wrap:wrap}
.task-finished-card>.task-finished-title{grid-column:1;grid-row:2}
.task-finished-card>.task-priority{grid-column:1;grid-row:3;justify-self:start}
.task-finished-card>.task-finished-meta{grid-column:2;grid-row:1/4;align-self:center}
.task-finished-card>.task-finished-description{grid-column:3;grid-row:1/4;align-self:stretch}
.task-finished-card>.task-finished-resolution{grid-column:4;grid-row:1/4;align-self:stretch}
.task-finished-card>button{grid-column:5;grid-row:1/4;align-self:center;margin-top:0}
.task-finished-card section p{display:block;overflow:visible;white-space:pre-wrap}
@media(max-width:1250px){.task-finished-card{grid-template-columns:minmax(160px,1fr) minmax(240px,1.4fr) minmax(180px,1fr)}.task-finished-card>.task-finished-description{grid-column:3;grid-row:1/3}.task-finished-card>.task-finished-resolution{grid-column:3;grid-row:3/5}.task-finished-card>button{grid-column:1/3;grid-row:4;justify-self:start;width:auto}}
@media(max-width:700px){.task-finished-card{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.task-finished-card>header{grid-column:1/-1;grid-row:1}.task-finished-card>.task-finished-title{grid-column:1/-1;grid-row:2}.task-finished-card>.task-priority{grid-column:1/-1;grid-row:3}.task-finished-card>.task-finished-meta{grid-column:1/-1;grid-row:4}.task-finished-card>.task-finished-description{grid-column:1;grid-row:5}.task-finished-card>.task-finished-resolution{grid-column:2;grid-row:5}.task-finished-card>button{grid-column:1/-1;grid-row:6;width:100%}}

.task-finished-filters{display:flex;align-items:flex-end;flex-wrap:wrap;gap:10px;padding:12px 14px;background:#f1f6fa;border-bottom:1px solid #dae5ec}
.task-finished-filters label{display:grid;gap:5px;font-size:11px;color:#486578;min-width:140px;flex:1}
.task-finished-filters label:first-child{flex:2;min-width:230px}
.task-finished-filters input,.task-finished-filters select{width:100%;min-height:34px;font-size:12px;padding:7px 9px;border:1px solid #c6d9e4;border-radius:7px;background:white}
.task-finished-filters>button{min-height:34px;font-size:11px}.task-finished-filters>small{flex-basis:100%;font-size:11px;color:#597386}
@media(max-width:480px){.task-finished-filters label,.task-finished-filters label:first-child{min-width:0;flex-basis:100%}}

.task-detail-modal .task-return-row{grid-column:1/-1;display:flex;align-items:center;justify-content:flex-start;gap:12px;padding:10px 12px;border:1px solid #ebd296;border-radius:8px;background:#fff8e6}
.task-detail-modal .task-return-row small{flex:0 1 auto;max-width:300px;color:#7a6230;line-height:1.5}
.task-detail-modal .task-return-row .task-return-queue{flex-shrink:0;margin:0}
@media(max-width:550px){.task-detail-modal .task-return-row{flex-direction:column;align-items:stretch;gap:8px}.task-detail-modal .task-return-row small{max-width:none}.task-detail-modal .task-return-row .task-return-queue{align-self:flex-start}}

.quality-header-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap}
.quality-header-actions .refresh-controls>button{background:#176b59;color:#fff;border:1px solid #176b59;font-weight:700;border-radius:8px;box-shadow:0 2px 5px #176b5920}
.quality-header-actions .refresh-controls>button:hover:not(:disabled){background:#105442;border-color:#105442}
.quality-header-actions .refresh-controls>button:disabled{opacity:.6}

.quality-header-actions .refresh-controls>button{display:inline-flex;align-items:center;gap:6px;background:#fff;color:#294f67;border:1px solid #c7dce8;border-radius:7px;box-shadow:none;font-size:12px;font-weight:400;padding:7px 11px;min-height:32px}
.quality-header-actions .refresh-controls>button svg{width:15px;height:15px}
.quality-header-actions .refresh-controls>button:hover:not(:disabled){background:#f2f7fb;border-color:#8fb3ca;color:#244d67}

[data-module="marketing"]{--module-color:#be185d;--module-soft:#fce7f3}
[data-module="knowledge"]{--module-color:#6d28d9;--module-soft:#ede9fe}

.sidebar .brand img[src="/logo-integraskin.png"]{display:block;width:100%;height:auto;object-fit:contain;background:#fff;border-radius:7px}.login-brand-logo{object-fit:contain;height:auto}

.finance-customers{border-top:3px solid #047857}.finance-customer-search{display:grid;gap:6px;padding:14px;max-width:520px;font-size:12px}.finance-customers .master-table{padding:0 14px 14px}.finance-customer-form{display:grid;gap:12px}.finance-customer-form label{display:grid;gap:5px}.finance-customer-form .finance-customer-active{display:flex;align-items:center;gap:8px}.finance-customer-active input{width:auto}.module-pages .module-category{margin:5px 0;padding:0;border:0}.module-category summary{font-size:12px;padding:7px;cursor:pointer}.module-category a{margin-left:8px}

[data-module="purchasing"]{--module-color:#0e7490;--module-soft:#cffafe}

/* Compact permissions workspace: keep the actions visible while browsing modules. */
.master-user-dialog.permissions-dialog{width:min(920px,calc(100vw - 32px));max-height:90dvh;overflow:hidden;border:1px solid #d9e4eb;border-radius:16px;box-shadow:0 24px 80px #102d4938;background:#fff}
.permissions-dialog>form{display:flex;flex-direction:column;max-height:90dvh;min-height:0}
.permissions-dialog .panel-head{flex:none;flex-wrap:nowrap;padding:16px 20px;gap:14px;border-bottom:1px solid #e4ebf0;background:linear-gradient(120deg,#f8fcfc,#fff)}
.permissions-dialog .master-user-heading{min-width:0}
.permissions-dialog h2{font-size:18px;letter-spacing:-.3px;margin:0 0 4px}
.permissions-dialog .master-user-heading small{display:block;font-size:12px;overflow-wrap:anywhere;color:#61798b}
.permissions-dialog .panel-head>button{min-height:30px;width:30px;padding:0;border-radius:8px;background:#eef4f6;font-size:20px;flex-shrink:0}
.permissions-dialog .dialog-body{min-height:0;overflow-y:auto;padding:14px 20px;gap:12px;scrollbar-width:thin;background:#f7f9fc}
.permissions-dialog .dialog-body>.notice{margin:0;padding:9px 12px;border:1px solid #d9e9e5;border-radius:8px;background:#edf6f3;font-size:12px;line-height:1.5}
.permissions-dialog .module-access-fields{min-width:0;margin:0;padding:0;border:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;align-items:start}
.permissions-dialog .module-access-fields>legend{font-size:13px;font-weight:700;padding:0;margin-bottom:4px}
.permissions-dialog .module-access-fields>p,.permissions-dialog .module-access-fields>small{grid-column:1/-1;font-size:11px;line-height:1.5;color:#667f90}
.permissions-dialog .module-permission-group{padding:11px 12px;margin:0;min-width:0;border:1px solid #dce5ed;border-radius:10px;background:#fff;box-shadow:0 2px 5px #163b5404}
.permissions-dialog .module-permission-group>strong{display:flex;align-items:center;gap:7px;margin-bottom:7px;font-size:12px;color:#173f55}
.permissions-dialog .module-permission-group>strong:before{content:'';width:6px;height:6px;border-radius:50%;background:#198875}
.permissions-dialog .module-page-permissions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 6px;border:0;border-top:1px solid #edf1f5;border-radius:0;background:transparent;margin:0;padding:7px 0 0;min-width:0}
.permissions-dialog .module-page-permissions>legend{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.permissions-dialog .module-access-fields label{font-size:12px;font-weight:500;line-height:1.35;min-height:30px;gap:7px;margin:0;padding:5px 6px;border-radius:6px;cursor:pointer;min-width:0}
.permissions-dialog .module-access-fields label:has(input:checked){background:#edf7f3;color:#155e50}
.permissions-dialog .module-access-fields label:hover{background:#f0f5f9}
.permissions-dialog .module-access-fields label:has(input:disabled){cursor:default;color:#657887}
.permissions-dialog input[type=checkbox]{width:14px;height:14px;min-height:14px;margin:0;flex:0 0 14px;padding:0;accent-color:#167d69}
.permissions-dialog .module-page-permissions>small{grid-column:1/-1;margin:3px 0 0;font-size:10px;line-height:1.4}
.permissions-dialog .module-permission-group[data-module=productivity] .module-page-permissions{grid-template-columns:1fr}
.permissions-dialog .dialog-body>.hint{font-size:11px;line-height:1.5;margin:0;color:#738594}
.permissions-dialog .dialog-actions{flex:none;padding:12px 20px;gap:8px;border-top:1px solid #dfe7ed;background:#fff;margin:0}
.permissions-dialog .dialog-actions button{min-height:34px;padding:7px 14px;font-size:12px;border-radius:8px}
.permissions-dialog .dialog-actions .primary{box-shadow:0 3px 8px #14645420}
@media(max-width:600px){.master-user-dialog.permissions-dialog{width:calc(100vw - 16px);border-radius:12px}.permissions-dialog .dialog-body{padding:12px}.permissions-dialog .module-access-fields{grid-template-columns:1fr}.permissions-dialog .panel-head,.permissions-dialog .dialog-actions{padding:12px}.permissions-dialog h2{font-size:16px}}

.module-access-fields .permission-category{display:block;font-size:10px;font-weight:600;color:#698293;margin:0 0 2px}
/* Reuse the module palette in access permissions. */
.permissions-dialog .module-permission-group[data-module]{border-color:color-mix(in srgb,var(--module-color) 22%,#e0e7ee);border-top:3px solid var(--module-color);background:linear-gradient(135deg,color-mix(in srgb,var(--module-soft) 25%,white),white 70%)}
.permissions-dialog .module-permission-group[data-module]>strong{color:var(--module-color)}
.permissions-dialog .module-permission-group[data-module]>strong:before{background:var(--module-color);box-shadow:0 0 0 3px var(--module-soft)}
.permissions-dialog .module-permission-group[data-module] label:has(input:checked){background:var(--module-soft);color:var(--module-color)}
.permissions-dialog .module-permission-group[data-module] label:hover{background:color-mix(in srgb,var(--module-soft) 60%,white)}
.permissions-dialog .module-permission-group[data-module] input[type=checkbox]{accent-color:var(--module-color)}
.permissions-dialog .module-permission-group[data-module] label:has(input:focus-visible){outline:2px solid var(--module-color);outline-offset:2px}
.permissions-dialog .module-permission-group[data-module] .permission-category{color:var(--module-color)}

/* Sidebar hierarchy: module > category > page. */
.sidebar .module-guides>details[data-module]{padding:5px 0 7px;border-bottom:0}
.sidebar .module-guides>details[data-module]>summary{padding-top:10px;padding-bottom:10px;font-size:12px;letter-spacing:.1px}
.sidebar .module-guides>details[data-module]>.module-pages{padding:6px 0 2px 8px;gap:3px}
.sidebar .module-guides .module-category{margin:0;padding:0;border:0}
.sidebar .module-guides .module-category>summary{display:flex;align-items:center;gap:7px;list-style:none;padding:8px 9px;border:0;border-radius:7px;background:#ffffff08;color:#d8e7ee;font-size:11px;font-weight:700;min-height:34px}
.sidebar .module-guides .module-category>summary::-webkit-details-marker{display:none}
.sidebar .module-guides .module-category>summary:hover{background:#ffffff12}
.sidebar .module-guides .module-category>summary>svg{width:14px;height:14px;flex:none;color:var(--module-soft)}
.sidebar .module-guides .module-category>summary .category-chevron{margin-left:auto;width:12px;height:12px;color:#a5bfcb;transition:transform .15s}
.sidebar .module-guides .module-category[open]>summary .category-chevron{transform:rotate(90deg)}
.sidebar .module-guides .category-pages{display:grid;gap:3px;margin:4px 0 3px 15px;padding:3px 0 3px 8px;border-left:1px solid #ffffff25}
.sidebar .module-guides details[data-module][open] .category-pages>:is(a,button){display:flex;align-items:center;gap:7px;position:relative;border:0;border-radius:6px;margin:0;padding:8px 7px;min-height:34px;font-size:11px;line-height:1.4;color:#c4d6e1;font-weight:400}
.sidebar .module-guides .category-pages>:is(a,button):before{content:'';position:absolute;left:-9px;width:6px;height:1px;background:#ffffff25}
.sidebar .module-guides .category-pages>:is(a,button)>svg{width:13px;height:13px;flex:none;opacity:.7}
.sidebar .module-guides details[data-module][open] .category-pages>:is(a,button)[aria-current=page]{background:var(--module-soft);color:var(--module-color);font-weight:700;box-shadow:none}
.sidebar .module-guides .category-pages>:is(a,button):hover{color:#fff;background:#ffffff10}
.sidebar .module-guides .module-category>summary:focus-visible,.sidebar .module-guides .category-pages>:is(a,button):focus-visible{outline:2px solid var(--module-soft);outline-offset:2px}
@media(prefers-reduced-motion:reduce){.sidebar .module-guides .module-category>summary .category-chevron{transition:none}}
/* Compact navigation with readable module accents on the dark sidebar. */
.sidebar .module-guides>details[data-module]{padding:3px 0 4px}
.sidebar .module-guides>details[data-module]>summary{padding:7px 8px;font-size:12px;line-height:1.35;color:color-mix(in srgb,var(--module-soft) 85%,white);background:color-mix(in srgb,var(--module-color) 14%,#193b4d);border-color:color-mix(in srgb,var(--module-color) 75%,white);border-left-color:var(--module-color);font-weight:700}
.sidebar .module-guides>details[data-module]>.module-pages{padding:3px 0 0 6px;gap:2px}
.sidebar .module-guides .module-category>summary{min-height:28px;padding:5px 7px;gap:6px;font-size:11px;color:var(--module-soft);background:#ffffff0c}
.sidebar .module-guides .module-category>summary>svg{width:13px;height:13px;color:var(--module-soft)}
.sidebar .module-guides .module-category>summary .category-chevron{color:var(--module-soft)}
.sidebar .module-guides .category-pages{margin:2px 0 1px 12px;padding:1px 0 1px 6px;gap:1px;border-left-color:color-mix(in srgb,var(--module-soft) 45%,transparent)}
.sidebar .module-guides details[data-module][open] .category-pages>:is(a,button){min-height:27px;padding:5px 6px;gap:6px;font-size:11px;line-height:1.35;font-weight:600;color:color-mix(in srgb,var(--module-soft) 70%,white)}
.sidebar .module-guides .category-pages>:is(a,button):before{left:-7px;width:5px;background:color-mix(in srgb,var(--module-soft) 45%,transparent)}
.sidebar .module-guides .category-pages>:is(a,button)>svg{width:12px;height:12px;opacity:1;color:var(--module-soft)}
.sidebar .module-guides details[data-module][open] .category-pages>:is(a,button)[aria-current=page]{color:var(--module-color);background:var(--module-soft);font-weight:700}
.sidebar .module-guides .category-pages>:is(a,button)[aria-current=page]>svg{color:var(--module-color)}
.sidebar .module-guides details[data-module][open] .category-pages>:is(a,button):hover{color:#fff;background:#ffffff20}
.sidebar .module-guides details[data-module][open] .category-pages>:is(a,button)[aria-current=page]:hover{color:var(--module-color);background:var(--module-soft)}

/* Shared navigation standard for every module and page. */
.sidebar .module-guides .module-pages :is(a,button),.sidebar .nav :is(a,button){display:flex;align-items:center;justify-content:flex-start;column-gap:6px}
.sidebar .module-guides .module-pages :is(a,button)>svg,.sidebar .nav :is(a,button)>svg{flex-shrink:0}
.sidebar{--module-color:#198875;--module-soft:#d5f5eb}
.sidebar .module-guides{margin:10px 0}
.sidebar .module-guides h3{margin-bottom:7px;color:#c5dbe5;opacity:1;font-size:10px}
.sidebar .module-guides details[data-module][open] .module-pages :is(a,button){min-height:28px;padding:5px 8px;font-size:11px;line-height:1.4;font-weight:600;color:color-mix(in srgb,var(--module-soft) 70%,white);border-left:2px solid color-mix(in srgb,var(--module-color) 65%,white)}
.sidebar .module-guides details[data-module][open] .module-pages :is(a,button):hover{background:#ffffff18;color:#fff}
.sidebar .module-guides details[data-module][open] .module-pages :is([aria-current=page],button.active){color:var(--module-color);background:var(--module-soft);border-left-color:var(--module-color);font-weight:700;box-shadow:none}
.sidebar .module-guides details[data-module][open] .category-pages>:is(a,button){border-left:0;min-height:27px;padding:5px 6px}
.sidebar .nav{gap:3px}
.sidebar .nav button,.sidebar .module-home,.sidebar .user-modules>a{min-height:30px;padding:6px 9px;font-size:12px;line-height:1.4;border-radius:6px;color:#e2edf3}
.sidebar .nav button:hover,.sidebar .user-modules>a:hover{background:#ffffff15;color:#fff}
.sidebar .nav button.active{background:#d5f5eb;color:#146454;box-shadow:inset 3px 0 #198875;font-weight:700}
.sidebar .nav button svg{width:15px;height:15px}
.sidebar :is(a,button,summary):focus-visible{outline:2px solid var(--module-soft);outline-offset:2px}
@media(pointer:coarse){.sidebar .module-guides summary,.sidebar .module-guides details[data-module][open] .module-pages :is(a,button),.sidebar .nav button{min-height:40px}}

.customer-registration-dialog{width:min(880px,calc(100vw - 24px));max-width:880px;max-height:92dvh;padding:0;border:1px solid #d4e2e8;border-radius:14px;overflow:hidden}
.customer-registration-dialog>form{display:flex;flex-direction:column;max-height:92dvh;min-height:0}
.customer-registration-dialog .dialog-head,.customer-registration-dialog .dialog-actions{flex:none;padding:12px 18px;background:#fff}
.customer-registration-dialog .dialog-body{overflow-y:auto;min-height:0;padding:14px 18px;background:#f6f9fb;gap:12px}
.customer-registration-dialog .customer-field-group{margin:0;padding:10px 12px 12px;border:1px solid #dce6eb;border-radius:9px;background:#fff;min-width:0}
.customer-field-group legend{padding:0 5px;font-size:12px;font-weight:700;color:#047857}
.customer-field-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.customer-field-grid label{font-size:12px;min-width:0;gap:5px}
.customer-field-grid input,.customer-field-grid select{min-height:34px;padding:7px 9px;font-size:13px;border-radius:6px}
.customer-field-grid .customer-wide{grid-column:span 2}
.customer-registration-dialog .customer-notes{font-size:12px;gap:5px}
.customer-registration-dialog .customer-notes textarea{min-height:72px;font-size:13px;padding:9px}
.customer-registration-dialog .customer-notes small{font-size:10px;text-align:right}
@media(max-width:600px){.customer-field-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.customer-registration-dialog .dialog-body{padding:10px}.customer-field-grid .customer-wide{grid-column:1/-1}}
@media(max-width:380px){.customer-field-grid{grid-template-columns:1fr}}

/* User creation and editing share the permissions dialog layout. */
.master-user-dialog .user-account-fields:not([hidden]){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:13px;border:1px solid #dce5ed;border-radius:10px;background:#fff}
.master-user-dialog .user-account-fields[hidden]{display:none}
.master-user-dialog .user-account-fields label,.master-user-dialog.permissions-dialog .dialog-body>label{font-size:12px;gap:5px;min-width:0}
.master-user-dialog.permissions-dialog input:not([type=checkbox]),.master-user-dialog.permissions-dialog select{min-height:35px;padding:7px 9px;font-size:13px;border-radius:7px}
.master-user-dialog .user-account-fields small{font-size:11px;line-height:1.4}
.master-user-dialog.permissions-dialog .supervisor-permissions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px 12px;margin:0;padding:12px;border:1px solid #dce5ed;border-radius:10px;background:#fff}
.master-user-dialog.permissions-dialog .supervisor-permissions legend{font-size:12px;font-weight:700;padding:0 5px}
.master-user-dialog.permissions-dialog .supervisor-permissions label{font-size:12px;line-height:1.4;min-height:30px;margin:0;padding:5px;border-radius:6px}
.master-user-dialog.permissions-dialog .supervisor-permissions label:has(input:checked){background:#edf7f3;color:#155e50}
@media(max-width:600px){.master-user-dialog .user-account-fields:not([hidden]),.master-user-dialog.permissions-dialog .supervisor-permissions{grid-template-columns:1fr}}

.master-metrics .online-metric{display:block;text-align:left;font:inherit;color:inherit;width:100%;cursor:pointer}
.master-metrics .online-metric:hover{border-color:#168572;background:#f1faf7;box-shadow:0 3px 12px #143e5210}
.online-users-dialog{width:min(580px,calc(100vw - 24px));max-height:85dvh;padding:0;border:1px solid #d7e4eb;border-radius:14px;color:#173e52;box-shadow:0 24px 80px #102d4938}
.online-users-dialog::backdrop{background:#102b3cb0}
.online-users-dialog header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 18px;border-bottom:1px solid #e2ebef}
.online-users-dialog h2{font-size:18px}.online-users-dialog h2 span{font-size:12px;padding:3px 7px;border-radius:12px;background:#e1f4ec;color:#047857}
.online-users-dialog header p{font-size:12px;color:#688194;margin-top:5px}
.online-users-dialog header>button{min-height:30px;width:30px;padding:0;font-size:20px}
.online-users-list{max-height:55dvh;overflow:auto;padding:5px 18px}
.online-users-list article{display:flex;align-items:center;gap:10px;padding:12px 0;border-bottom:1px solid #edf1f4}
.online-users-list article>div{min-width:0;flex:1;display:grid;gap:4px}.online-users-list strong{font-size:13px}.online-users-list article>div>span{font-size:12px;overflow-wrap:anywhere}.online-users-list small{font-size:11px}
.online-user-avatar{display:grid;place-items:center;flex:0 0 32px;height:32px;border-radius:10px;background:#edf4f8;font-size:14px;font-weight:700}
.online-user-status{font-size:10px;font-weight:700;color:#047857;background:#dcfce7;border-radius:12px;padding:4px 7px}
.online-users-dialog footer{display:flex;justify-content:flex-end;padding:12px 18px;border-top:1px solid #e2ebef}.online-users-dialog footer button{min-height:32px;padding:6px 14px;font-size:12px}

/* Keep address controls aligned when the CEP lookup adds a status message. */
.customer-field-grid{align-items:start}
.customer-field-grid>label{align-content:start}
.customer-field-grid>label>small[role=status]{font-size:11px;font-weight:400;line-height:1.35;margin:0}

.customer-cnpj-lookup{display:inline-flex;align-items:center;justify-content:center;justify-self:start;padding:5px 8px;border:1px solid #a6cfc2;border-radius:6px;color:#146454;background:#edf7f3;font-size:11px;line-height:1.4;text-decoration:none;font-weight:600}
.customer-cnpj-lookup:hover{background:#def0e8}.customer-cnpj-lookup[aria-disabled=true]{opacity:.6}
.customer-field-grid>label>small[role=status]{overflow-wrap:anywhere}

.customer-cnpj-lookup{min-height:28px}
.customer-cnpj-dialog{width:min(1050px,calc(100vw - 24px));height:90dvh;max-height:90dvh;padding:0;border:1px solid #cfdee5;border-radius:12px;color:#173e52;overflow:auto}
.customer-cnpj-dialog::backdrop{background:#102b3c99}
.customer-cnpj-dialog>header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 18px;border-bottom:1px solid #e0e8ed}
.customer-cnpj-dialog h2{font-size:17px}.customer-cnpj-dialog header p{font-size:12px;color:#657d8b;margin-top:4px}
.cnpj-lookup-toolbar{display:flex;align-items:end;gap:10px;flex-wrap:wrap;padding:12px 18px 4px}.cnpj-lookup-toolbar label{font-size:12px;gap:4px}.cnpj-lookup-toolbar input{min-height:34px;padding:6px 9px;font-size:13px}.cnpj-lookup-toolbar button{min-height:34px;padding:6px 10px;font-size:12px}.cnpj-lookup-toolbar a{font-size:12px;padding:8px 0}
.cnpj-lookup-help{font-size:12px;padding:4px 18px 10px;color:#146454}
.customer-cnpj-dialog>iframe{display:block;width:100%;height:55dvh;min-height:280px;border:0;border-top:1px solid #e0e8ed;background:white}
.customer-cnpj-dialog>footer{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 18px;border-top:1px solid #e0e8ed}.customer-cnpj-dialog footer p{font-size:11px;color:#657d8b;line-height:1.5}.customer-cnpj-dialog footer button{flex-shrink:0;font-size:12px}
@media(max-width:600px){.customer-cnpj-dialog>footer{flex-wrap:wrap}.customer-cnpj-dialog header{padding:12px}}

.cnpj-import-dialog{width:min(820px,calc(100vw - 24px));max-height:90dvh;padding:0;border:1px solid #d5e3e9;border-radius:14px;color:#173e52;overflow:hidden}.cnpj-import-dialog::backdrop{background:#102b3caa}
.cnpj-import-dialog>form{display:flex;flex-direction:column;max-height:90dvh}
.cnpj-import-dialog header,.cnpj-import-dialog footer{display:flex;align-items:center;gap:12px;padding:14px 18px;flex:none}.cnpj-import-dialog header{justify-content:space-between;border-bottom:1px solid #dfe8ed}.cnpj-import-dialog h2{font-size:17px}.cnpj-import-dialog header p{font-size:12px;color:#647d8c;margin-top:5px}.cnpj-import-dialog footer{justify-content:flex-end;border-top:1px solid #dfe8ed;flex-wrap:wrap}
.cnpj-import-body{overflow:auto;padding:14px 18px;display:grid;gap:12px;min-height:0;background:#f7fafb}.cnpj-import-body textarea{min-height:260px;font-size:13px;line-height:1.5}.cnpj-import-body .notice{padding:10px;font-size:12px;margin:0}.cnpj-import-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.cnpj-import-field{min-width:0;padding:10px;border:1px solid #dce6eb;border-radius:8px;background:#fff;display:grid;gap:6px}.cnpj-import-field .cnpj-import-choice{display:flex;align-items:center;gap:7px;font-size:12px}.cnpj-import-choice input{width:14px;min-height:14px;height:14px;margin:0;accent-color:#047857}.cnpj-import-field>input{min-height:34px;padding:7px;font-size:12px}.cnpj-import-field small{font-size:11px;overflow-wrap:anywhere}.cnpj-import-dialog .hint{font-size:12px}.cnpj-import-dialog button{min-height:32px;font-size:12px;padding:7px 10px}
@media(max-width:600px){.cnpj-import-grid{grid-template-columns:1fr}}

.customer-import-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.customer-import-actions>a{font-size:12px}.cnpj-text-alternative summary{cursor:pointer;font-size:12px;color:#527081;padding:6px 0}.cnpj-text-alternative label{margin-top:8px}

/* PDF import: compact drop target and clear upload states. */
.cnpj-import-dialog{box-shadow:0 24px 80px #102b3c38;border-color:#dae7e5}
.cnpj-import-dialog header{background:linear-gradient(115deg,#fff,#f0f8f5);padding:18px 22px}
.cnpj-import-dialog header h2{margin:0;color:#143f36;font-size:18px;letter-spacing:-.3px}
.cnpj-import-body{padding:20px 22px;background:#f8faf9}
.cnpj-import-dialog .cnpj-file-input{display:none}
.cnpj-drop-zone{border:1.5px dashed #99bfb2;border-radius:14px;background:#fff;transition:background .15s,border-color .15s,box-shadow .15s;overflow:hidden}
.cnpj-drop-zone:hover,.cnpj-drop-zone.is-dragging{border-color:#138469;background:#edf8f3;box-shadow:0 0 0 3px #16876612}
.cnpj-import-dialog .cnpj-drop-trigger{display:flex;flex-direction:column;align-items:center;gap:9px;width:100%;padding:26px 16px 18px;border:0;border-radius:0;background:transparent;color:#547065;box-shadow:none;cursor:pointer}
.cnpj-drop-trigger:focus-visible{outline:2px solid #138469;outline-offset:-4px}
.cnpj-drop-trigger strong{font-size:16px;color:#173f35}.cnpj-drop-trigger>span{font-size:12px}
.cnpj-upload-icon{display:grid;place-items:center;width:48px;height:48px;border-radius:14px;background:#e3f2eb;color:#14785e;margin-bottom:3px}
.cnpj-drop-trigger .cnpj-file-cta{background:#146e57;color:#fff;padding:8px 18px;border-radius:7px;font-weight:600;margin-top:5px}
.cnpj-file-specs{display:flex;justify-content:center;gap:7px;padding:0 12px 20px}.cnpj-file-specs span{border:1px solid #e1e9e5;border-radius:5px;padding:3px 7px;font-size:10px;color:#62796f;background:#f7faf8}
.cnpj-upload-note,.cnpj-file-name{font-size:12px;line-height:1.5;color:#61786e;margin:0;overflow-wrap:anywhere}.cnpj-file-name{color:#176c54;font-weight:600}
.cnpj-drop-zone.is-reading{background:#f0f6f3}.cnpj-drop-trigger:disabled{cursor:progress;opacity:1}
.cnpj-import-field>textarea{min-height:96px;resize:vertical}
@media(max-width:600px){.cnpj-import-body{padding:14px}.cnpj-import-dialog header{padding:14px}.cnpj-drop-trigger strong{font-size:14px}}

/* Customer registration: compact financial form. */
.customer-registration-dialog{width:min(1020px,calc(100vw - 32px));max-width:1020px;border:1px solid #d4e3dd;border-radius:16px;box-shadow:0 24px 80px #102b3c38;color:#213f38}
.customer-registration-dialog::backdrop{background:#102d3b99;backdrop-filter:blur(3px)}
.customer-registration-dialog .dialog-head{padding:15px 20px;background:linear-gradient(110deg,#fff,#eef7f2);border-bottom:1px solid #dce9e2}
.customer-form-eyebrow{font-size:9px;font-weight:700;letter-spacing:1.2px;color:#537d6d}.customer-registration-dialog .dialog-head h2{margin:4px 0 0;font-size:20px;letter-spacing:-.4px;color:#173f33}
.customer-registration-dialog .dialog-body{padding:14px 20px;gap:10px;background:#f3f7f5}
.customer-registration-dialog .customer-import-actions{gap:8px;padding-bottom:2px}.customer-registration-dialog .customer-cnpj-lookup{padding:7px 12px;background:#fff;border-color:#b7d5c7;color:#146449;font-size:11px}.customer-registration-dialog .customer-import-actions button{background:#e5f3ec;border-color:#a1cdb8;min-width:160px;min-height:34px}
.customer-registration-dialog .customer-field-group{padding:9px 12px 12px;border-color:#dbe6df;border-radius:10px;box-shadow:0 2px 5px #1d453503}
.customer-registration-dialog .customer-field-group legend{font-size:11px;letter-spacing:.1px;color:#176e50}
.customer-registration-dialog .customer-field-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:9px 12px;align-items:start}
.customer-registration-dialog .customer-field-grid label{font-size:11px;font-weight:600;color:#345549;gap:4px}
.customer-registration-dialog .customer-field-grid input,.customer-registration-dialog .customer-field-grid select,.customer-registration-dialog .customer-field-grid textarea{width:100%;min-height:32px;padding:6px 9px;font-size:12px;line-height:1.4;border:1px solid #ccddd3;border-radius:6px;background:#fff;color:#213e32;box-sizing:border-box}
.customer-registration-dialog .customer-field-grid textarea{min-height:66px;resize:vertical}
.customer-registration-dialog input:focus,.customer-registration-dialog select:focus,.customer-registration-dialog textarea:focus{outline:2px solid #17845955;outline-offset:1px;border-color:#178459}
.customer-registration-dialog .customer-field-grid .customer-wide{grid-column:span 2}
.customer-company-details summary{cursor:pointer;display:list-item;list-style-position:inside;color:#176e50;font-size:11px;font-weight:700;padding:2px 0}
.customer-company-details summary small{font-size:10px;font-weight:400;color:#6c8177;margin-left:12px}.customer-company-details[open] summary{padding-bottom:8px;border-bottom:1px solid #e6ede8;margin-bottom:8px}.customer-company-details>.hint{font-size:11px;margin:0 0 8px;color:#61796c}
.customer-registration-dialog .customer-notes textarea{min-height:52px;padding:8px;font-size:12px;border-color:#ccddd3;border-radius:7px;resize:vertical}.customer-registration-dialog .customer-notes{gap:3px;font-size:11px;color:#345549}
.customer-registration-dialog .finance-customer-active{font-size:11px;font-weight:600;color:#176e50}.customer-registration-dialog .finance-customer-active input{accent-color:#137956;min-height:14px;width:14px;height:14px}
.customer-registration-dialog .dialog-actions{gap:8px;padding:12px 20px;border-top:1px solid #dce6df;box-shadow:0 -3px 12px #1c463506}.customer-required-note{margin-right:auto;font-size:10px;color:#718578}.customer-registration-dialog .dialog-actions button{min-height:34px;font-size:12px;padding:8px 16px;border-radius:7px}.customer-registration-dialog .dialog-actions .primary{background:#146c50;border-color:#146c50;box-shadow:0 3px 8px #146c5020}
@media(max-width:720px){.customer-registration-dialog .customer-field-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.customer-registration-dialog .dialog-body{padding:12px}.customer-company-details summary small{display:block;margin:5px 0 0 15px}.customer-required-note{display:none}}
@media(max-width:400px){.customer-registration-dialog .customer-field-grid{grid-template-columns:1fr}.customer-registration-dialog .customer-field-grid .customer-wide{grid-column:1}.customer-registration-dialog .dialog-head{padding:12px}}

/* Highlight the CNPJ section using the Finance module palette. */
.customer-registration-dialog .customer-company-details{background:#edf7f1;border:1px solid #a5ceba;border-left:4px solid #17845b;box-shadow:0 2px 6px #146c5008}
.customer-registration-dialog .customer-company-details summary{color:#115c40;padding:5px 0;font-weight:700}
.customer-registration-dialog .customer-company-details summary small{color:#426d58}
.customer-registration-dialog .customer-company-details summary::marker{color:#17845b}
.customer-registration-dialog .customer-company-details summary:hover{color:#083e2a}
.customer-registration-dialog .customer-company-details summary:focus-visible{outline:2px solid #17845b;outline-offset:3px;border-radius:3px}
.customer-registration-dialog .customer-company-details[open] summary{border-bottom-color:#bedccb;padding-bottom:10px}

/* Empty values are visual hints, independent of required-field validation. */
[data-registration-form="true"] input[data-empty-field=true],[data-registration-form="true"] textarea[data-empty-field=true],[data-registration-form="true"] select[data-empty-field=true]{background-color:#fff0f0!important;border-color:#e9aaaa!important}
[data-registration-form="true"] input[data-empty-field=true]::placeholder,[data-registration-form="true"] textarea[data-empty-field=true]::placeholder{color:#986565;opacity:1}
[data-registration-form="true"] input[data-empty-field=true]:focus,[data-registration-form="true"] textarea[data-empty-field=true]:focus,[data-registration-form="true"] select[data-empty-field=true]:focus{border-color:#cf7878!important}

.customer-created-by{display:flex;align-items:center;flex-wrap:wrap;gap:6px 12px;padding:9px 12px;border:1px solid #d4e4dc;border-radius:8px;background:#edf5f0;font-size:11px;color:#426352}.customer-created-by strong{color:#1b513b;overflow-wrap:anywhere}.customer-created-by small{margin-left:auto;color:#647d6e;font-size:10px}

.customer-status-warning{display:block;margin:0;padding:9px 12px;border:1px solid #efc174;border-left:4px solid #d38b12;border-radius:7px;background:#fff6e5;color:#784b09;font-size:12px;line-height:1.5;font-weight:600}.customer-field-grid .customer-status-warning{font-size:10px;padding:6px 8px}

.customer-registration-dialog .customer-import-actions .finance-customer-active{margin-left:auto;padding:7px 10px;border:1px solid #bed8ca;border-radius:7px;background:#edf6f0;white-space:nowrap}
@media(max-width:600px){.customer-registration-dialog .customer-import-actions .finance-customer-active{margin-left:0}}

.customer-registration-dialog .customer-import-actions .customer-block-action{background:#fff0f0;border:1px solid #e9adad;color:#a12e2e;min-width:100px}
.customer-registration-dialog .customer-import-actions .customer-block-action:hover{background:#fce0e0}
.customer-registration-dialog .customer-import-actions .customer-analysis-action{background:#fff6e5;border:1px solid #e7c78c;color:#845715}
.customer-registration-dialog .customer-import-actions .customer-analysis-action:hover{background:#fff0ce}
.customer-registration-dialog .customer-import-actions button:disabled{cursor:default;opacity:.65}
.customer-analysis-badge{color:#845715;font-size:10px;margin-top:4px}

.module-permission-title{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:8px}.module-permission-title>strong{margin:0!important}.module-permission-title .module-level-select{display:flex;align-items:center;gap:6px;font-size:10px;margin:0;color:#506678}.module-level-select select{width:112px;min-height:28px!important;padding:4px 7px!important;font-size:11px!important;background:white;color:#21465a;border:1px solid #b8cfdc;border-radius:6px}
.productivity-content article[data-action-pending="true"]{border-color:#e2b548!important;background:#fffbeb!important;box-shadow:0 0 0 1px #e8c96955}
@keyframes pending-action-glow{0%,100%{box-shadow:0 0 0 1px #e8c96955}50%{box-shadow:0 0 0 3px #f2c94c99,0 0 14px #f2c94c44}}
@media(prefers-reduced-motion:no-preference){.productivity-content article[data-action-pending="true"]{animation:pending-action-glow 2.4s ease-in-out infinite!important}}
@media(prefers-reduced-motion:reduce){.productivity-content article[data-action-pending="true"]{animation:none!important}}

.geo-recovery-notice{display:flex;align-items:center;justify-content:space-between;gap:12px}.geo-recovery-notice>span{flex:1;min-width:0}.geo-recovery-notice>button{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:30px;height:30px;padding:0;color:inherit;background:transparent;border:1px solid currentColor;border-radius:6px}.geo-recovery-notice>button:hover{background:rgba(0,0,0,.06)}

/* Uniform sidebar list typography and icons across every module. */
.sidebar .module-guides .module-pages :is(a,button),
.sidebar .module-guides details[data-module][open] .module-pages :is(a,button),
.sidebar .module-guides .module-category>summary{
 display:flex;align-items:center;justify-content:flex-start;column-gap:6px;
 font-family:Arial,Helvetica,sans-serif;font-size:11px;font-weight:600;line-height:1.4;
}
.sidebar .module-guides .module-pages :is(a,button)>svg,
.sidebar .module-guides .module-category>summary>svg{
 width:14px;height:14px;flex:0 0 14px;stroke-width:2;opacity:1;color:inherit;
}
.sidebar .module-guides .module-pages :is(a,button)>span{min-width:0}
.sidebar .module-guides .category-pages{border-left:0;margin:2px 0 1px 6px;padding:1px 0;gap:2px}
.sidebar .module-guides .category-pages>:is(a,button):before{content:none}
.sidebar .module-guides details[data-module][open] .category-pages>:is(a,button){border-left:2px solid color-mix(in srgb,var(--module-color) 65%,white);border-radius:6px;margin:0;padding:5px 8px;min-height:28px}
.sidebar .module-guides details[data-module][open] .category-pages>:is(a,button)[aria-current=page]{border-left-color:var(--module-color)}
@media(pointer:coarse){.sidebar .module-guides details[data-module][open] .category-pages>:is(a,button){min-height:40px}}

.permissions-dialog .module-access-fields.center-access-fields,.module-access-fields.center-access-fields{display:block}
.center-access-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:8px 0}
.module-access-fields .center-access-options>label{display:flex;align-items:center;gap:8px;margin:0;min-height:34px;padding:6px 8px}
.module-access-fields .center-access-options input[type=checkbox]{width:14px;height:14px;min-height:0;flex:0 0 14px;margin:0}
.center-access-options>label>span{min-width:0;line-height:1.4;overflow-wrap:anywhere}
@media(max-width:420px){.center-access-options{grid-template-columns:1fr}}
/* Personal Home, shared agenda and deadline ranking */
.home-content{max-width:1500px;margin:auto}.home-welcome,.home-card-heading,.home-section-title,.home-module-title,.home-calendar-toolbar,.home-calendar-toolbar>div,.home-event-controls{display:flex;align-items:center;justify-content:space-between;gap:12px}.home-welcome{margin:12px 0 24px}.home-welcome h1{font-size:28px;margin:5px 0}.home-welcome p,.home-card-heading p{color:#60788a;margin:5px 0}.home-today{display:flex;align-items:center;gap:8px;font-size:12px;color:#547080}.home-overview-grid{display:grid;grid-template-columns:280px minmax(300px,1fr) 260px;gap:16px}.home-overview-grid>.panel{padding:18px;margin:0;border-radius:16px}.home-card-heading{margin-bottom:16px}.home-card-heading h2,.home-section-title h2{font-size:16px;margin:0}.home-section-title{justify-content:flex-start}.home-card-heading small{color:#6b8291}.home-icon{display:grid;place-items:center;background:#e5f3ef;color:#18715e;padding:10px;border-radius:12px}.home-mini-calendar{display:block;width:100%;border:0;background:transparent;color:inherit;padding:0;text-align:center}.home-mini-calendar>strong{display:block;text-transform:capitalize;margin:6px 0 12px}.home-calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px}.home-weekday{font-size:11px;color:#78909e;text-align:center;padding:8px 0}.home-mini-day{position:relative;padding:8px 0;border-radius:8px;font-size:12px}.home-mini-day.is-today{background:#19705e;color:white}.home-mini-day i{position:absolute;bottom:2px;left:calc(50% - 2px);width:4px;height:4px;border-radius:50%;background:#df961e}.home-calendar-hint{display:block;font-size:10px;color:#718693;margin-top:13px}.home-upcoming-list{display:grid;gap:8px;max-height:310px;overflow:auto}.home-upcoming-item{width:100%;display:flex;align-items:center;gap:12px;text-align:left;background:#f7fafb;border:1px solid #e2ebef;border-radius:10px;padding:12px}.home-event-date{min-width:48px;text-align:center;color:#17705f}.home-event-date b{display:block;font-size:22px}.home-event-info{flex:1;min-width:0}.home-event-info strong,.home-event-info small{display:block}.home-event-info small{margin-top:5px;color:#71828d}.home-tasks-card{background:linear-gradient(145deg,#153e4d,#1b685e);color:white;border-radius:16px;padding:22px;display:flex;flex-direction:column;gap:16px}.home-tasks-card h2{margin:7px 0;font-size:22px}.home-tasks-card p{font-size:12px;line-height:1.7;color:#d3e8e5}.home-tasks-card>.home-icon{align-self:flex-start}.home-tasks-card a{display:flex;align-items:center;justify-content:space-between;gap:7px;color:white;padding:12px;border:1px solid #ffffff40;border-radius:8px;font-size:12px}.home-tasks-card .home-master-shortcut{font-size:10px;border:0;padding:0}.home-notes,.home-modules{margin-top:24px}.home-module-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.home-module-card{border:1px solid #dce7ed;border-top:3px solid var(--module-color,#18715e);border-radius:12px;background:white;overflow:hidden}.home-module-title{padding:15px}.home-module-title h3{flex:1;font-size:14px;margin:0}.home-module-title small{font-size:10px;color:#758995}.home-module-links{display:grid;gap:3px;padding:0 10px 10px}.home-module-links a{display:flex;align-items:center;justify-content:space-between;padding:9px;border-radius:6px;font-size:12px;color:#244958}.home-module-links a:hover{background:#edf5f4}.home-calendar-dialog{width:min(1100px,95vw);max-width:1100px;padding:0;border:1px solid #d9e6eb;border-radius:16px;max-height:92vh;overflow:auto}.home-calendar-dialog::backdrop,.home-note-dialog::backdrop{background:#102f4266;backdrop-filter:blur(3px)}.home-calendar-dialog .dialog-head,.home-note-dialog .dialog-head{padding:18px 22px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #e2ebef}.home-calendar-dialog h2,.home-note-dialog h2{font-size:18px;margin:0 0 4px}.home-calendar-toolbar{padding:14px 20px;border-bottom:1px solid #e6edef}.home-calendar-toolbar h3{font-size:16px;text-transform:capitalize;min-width:160px;text-align:center}.home-calendar-body{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(300px,1fr)}.home-month-view{padding:15px}.home-month-day,.home-month-empty{min-height:90px}.home-month-day{display:block;text-align:left;padding:7px;border:1px solid #e7edef;background:white;border-radius:8px;overflow:hidden}.home-month-day>span{font-size:12px}.home-month-day[aria-pressed=true]{border-color:#18806b;background:#f0faf6}.home-month-day.is-today>span{background:#18745e;color:white;border-radius:50%;padding:3px 6px}.home-month-day small{display:block;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;font-size:9px;padding:3px;margin-top:3px;background:#e6f3ef;color:#226553;border-radius:4px}.home-month-day small.meeting{background:#edf0ff;color:#445ab3}.home-month-day small.task{background:#fff1d4;color:#80550e}.home-day-panel{padding:20px;border-left:1px solid #e0eaee;background:#f8fbfc}.home-day-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.home-day-title h3{font-size:15px;margin:0}.home-event-form{display:grid;gap:12px}.home-event-form label,.home-note-dialog label{display:grid;gap:6px;font-size:12px}.home-event-dates{display:grid;grid-template-columns:1fr 1fr;gap:10px}.home-event-form input,.home-event-form select,.home-event-form textarea{width:100%;min-width:0}.home-attendee-picker{border:1px solid #dce7eb;border-radius:8px;padding:10px}.home-attendee-picker>div{max-height:170px;overflow:auto;margin:10px 0}.home-attendee-picker label{display:flex;align-items:center;padding:7px}.home-attendee-picker input[type=checkbox]{width:auto}.home-attendee-picker label small{display:block}.home-day-events{display:grid;gap:10px}.home-day-event{display:grid;gap:6px;text-align:left;padding:13px;background:white;border:1px solid #dce8eb;border-radius:8px;color:#214959}.home-day-event small,.home-day-event span{font-size:11px;color:#68828e}.home-day-event.is-cancelled{opacity:.6;text-decoration:line-through}.home-event-detail h3{font-size:19px}.home-event-detail p{display:flex;gap:8px;font-size:12px;overflow-wrap:anywhere}.home-event-notes{white-space:pre-wrap}.home-participants{list-style:none;padding:0;display:grid;gap:8px}.home-participants li{display:flex;justify-content:space-between;gap:8px;font-size:11px}.home-event-controls{flex-wrap:wrap;margin:18px 0}.home-empty{padding:28px 10px;text-align:center;color:#78909b;font-size:12px}.home-notes-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.home-note{position:relative;display:flex;flex-direction:column;align-items:stretch;gap:12px;min-height:145px;text-align:left;padding:23px 17px 15px;border:1px solid #0000000c;border-radius:4px 4px 16px 4px;box-shadow:0 4px 10px #233d4d08;color:#374c54}.note-yellow{background:#fff3ba}.note-green{background:#ddf3dc}.note-blue{background:#dfefff}.note-pink{background:#ffe4ed}.home-note-content{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6;font-size:13px;display:-webkit-box;-webkit-line-clamp:7;-webkit-box-orient:vertical;overflow:hidden;flex:1}.home-note-pin{position:absolute;top:9px;left:calc(50% - 3px);height:6px;width:6px;background:#0002;border-radius:50%}.home-note small{display:flex;gap:6px;align-items:center;font-size:10px}.is-overdue{color:#b24332!important}.home-note-empty{grid-column:1/-1;display:flex;align-items:center;justify-content:center;gap:12px;padding:30px;border:1px dashed #cbdce3;background:#fafcfd;color:#718691;border-radius:12px;font-size:12px}.home-note-dialog{width:min(520px,94vw);padding:0;border:1px solid #dce7eb;border-radius:14px}.home-note-dialog .dialog-body{display:grid;gap:16px;padding:20px}.home-note-dialog textarea{min-height:150px}.home-note-colors{display:flex;gap:8px;flex-wrap:wrap;border:0;padding:0}.home-note-colors label{display:flex;align-items:center;padding:8px;border-radius:6px}.home-note-dialog .dialog-actions{display:flex;justify-content:flex-end;gap:8px;padding:15px 20px;border-top:1px solid #e3ebef}.task-deadline-ranking{margin:20px 0;padding:18px;border-radius:12px}.task-deadline-ranking h2{font-size:16px;margin:0}.task-deadline-ranking p{font-size:12px;color:#78909b}.task-deadline-ranking>a,.task-deadline-ranking>button{width:100%;display:flex;gap:12px;align-items:center;text-align:left;padding:10px;border:0;border-bottom:1px solid #e7eef1;background:transparent;color:#244857;font-size:12px}.task-deadline-ranking b{background:#edf3f5;border-radius:6px;padding:5px 9px}.task-deadline-ranking span{flex:1}.task-deadline-ranking strong{font-size:11px}.task-deadline{color:#946513;font-size:11px}.task-deadline-editor{display:flex;gap:10px;align-items:end;margin-bottom:16px}.task-deadline-editor label{flex:1}.home-content button:focus-visible,.home-content a:focus-visible,.home-calendar-dialog button:focus-visible{outline:2px solid #167e6a;outline-offset:3px}
@media(max-width:1150px){.home-overview-grid{grid-template-columns:260px 1fr}.home-tasks-card{grid-column:1/-1;flex-direction:row;align-items:center}.home-tasks-card>div{flex:1}.home-notes-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:760px){.home-welcome{align-items:flex-start;flex-direction:column}.home-overview-grid,.home-module-grid{grid-template-columns:1fr}.home-tasks-card{flex-direction:column;align-items:stretch}.home-calendar-body{grid-template-columns:1fr}.home-day-panel{border-left:0;border-top:1px solid #dce7ed}.home-calendar-toolbar{flex-wrap:wrap}.home-calendar-toolbar h3{min-width:0}.home-month-day,.home-month-empty{min-height:62px}.home-notes-grid{grid-template-columns:repeat(2,1fr)}.home-note-empty{flex-direction:column}.home-event-dates{grid-template-columns:1fr}.task-deadline-ranking>a,.task-deadline-ranking>button{flex-wrap:wrap}.home-calendar-dialog{width:96vw}.home-month-view{padding:8px}}
@media(pointer:coarse){.home-content button,.home-content a,.home-calendar-dialog button{min-height:40px}}
.home-event-row{width:100%;display:flex;align-items:center;gap:12px;text-align:left;background:#f7fafb;border:1px solid #e2ebef;border-radius:10px;padding:12px}.home-event-date strong{display:block;font-size:22px}.home-event-date small{font-size:10px}.home-event-copy{flex:1;min-width:0}.home-event-copy strong,.home-event-copy small{display:block}.home-event-copy strong{font-size:13px}.home-event-copy small{margin-top:5px;font-size:11px;color:#71828d}.home-event-copy em{display:inline-block;font-style:normal;font-size:10px;background:#fff0c5;color:#886216;padding:3px 6px;border-radius:4px;margin-top:6px}
.user-modules .home-navigation{display:flex;align-items:center;gap:6px}.user-modules .home-navigation.active{color:#173e50!important}.home-notes .home-card-heading h2{display:flex;align-items:center;gap:7px}.home-tasks-card>div>small{color:#cce5e0}.home-module-links a,.home-tasks-card a{text-decoration:none}.home-empty>svg{display:block;margin:0 auto 10px}.home-empty>strong{display:block}
.sidebar .user-modules a.home-navigation[aria-current="page"],.sidebar .user-modules a.home-navigation[aria-current="page"] span,.sidebar .user-modules a.home-navigation[aria-current="page"] svg{color:#173e50!important}
/* Compact Home heading: refresh and date share the greeting row. */
.home-content{padding-top:14px}
.home-welcome{margin:0 0 14px;gap:16px}
.home-welcome h1{font-size:24px;line-height:1.2;margin:3px 0}
.home-welcome p{margin:3px 0 0;font-size:12px}
.home-welcome-actions{display:flex;flex-direction:column;align-items:flex-end;gap:4px;flex-shrink:0}
.home-welcome-actions .page-refresh-bar{margin:0;min-height:30px}
.home-welcome-actions .home-today{font-size:11px;gap:6px}
@media(max-width:760px){.home-welcome{gap:10px}.home-welcome-actions{width:100%;flex-direction:row;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:6px 12px}}
/* Folded paper corner and pin, decorative and non-interactive. */
.home-note{border-radius:3px;padding-top:30px;padding-bottom:18px;clip-path:none;box-shadow:0 2px 5px #233d4d1f,0 7px 16px #233d4d17;border-color:#243d4b12}
.home-note::after{content:"";position:absolute;left:0;top:0;width:22px;height:22px;background:linear-gradient(135deg,#f3f7f9 0 48%,#ffffffb3 50%,#ffffff50 100%);border-radius:0 0 4px 0;box-shadow:2px 2px 3px #243d4b24;pointer-events:none}
.home-note-pin{top:9px;left:calc(50% - 5px);width:11px;height:11px;z-index:1;background:radial-gradient(circle at 32% 28%,#ffb3a2 0 12%,#d15c4e 25%,#a63831 75%);box-shadow:2px 3px 3px #463c393b}
.home-note-pin::after{content:"";position:absolute;top:9px;left:6px;width:2px;height:7px;background:#7b8588;transform:rotate(-20deg);transform-origin:top;box-shadow:1px 1px 1px #0002}



/* Compact expandable module tiles chosen for the Home. */
.home-module-grid.home-module-tiles{grid-template-columns:repeat(4,minmax(0,1fr));align-items:start;gap:12px}
.home-module-card.home-module-tile{border:1px solid #dce7ed;border-left:3px solid var(--module-color,#18715e);border-radius:11px;overflow:hidden}
.home-module-tile>summary{position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:9px;list-style:none;cursor:pointer;padding:16px 36px 16px 16px}
.home-module-tile>summary::-webkit-details-marker{display:none}
.home-module-tile>summary:hover{background:#f5f9fa}
.home-module-tile>summary:focus-visible{outline:2px solid #167e6a;outline-offset:-3px}
.home-module-tile-icon{display:grid;place-items:center;width:35px;height:35px;border-radius:9px;color:var(--module-color,#18715e);background:color-mix(in srgb,var(--module-color,#18715e) 10%,white)}
.home-module-tile-name{font-size:14px;font-weight:700;color:#244958}
.home-module-tile-meta{font-size:11px;color:#68818f}
.home-module-tile-chevron{position:absolute;right:14px;top:25px;color:#68818f;transition:transform .15s ease}
.home-module-tile[open]{grid-column:span 2}
.home-module-tile[open] .home-module-tile-chevron{transform:rotate(90deg)}
.home-module-tile .home-module-links{grid-template-columns:repeat(2,minmax(0,1fr));padding:0 12px 12px;gap:4px 8px}
.home-module-tile .home-module-links a{min-width:0;border-top:1px solid #edf2f5;gap:8px}
.home-module-tile .home-module-links a span{overflow-wrap:anywhere}
@media(max-width:1050px){.home-module-grid.home-module-tiles{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){.home-module-grid.home-module-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:420px){.home-module-grid.home-module-tiles{grid-template-columns:1fr}.home-module-tile[open]{grid-column:auto}.home-module-tile .home-module-links{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){.home-module-tile-chevron{transition:none}}
.home-month-day small.client_visit{background:#fff0dc;color:#85531a}
/* Narrower notes, with more notes per row on larger screens. */
.home-notes-grid{grid-template-columns:repeat(auto-fill,minmax(180px,210px));gap:14px}
@media(max-width:480px){.home-notes-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.home-note{padding-left:12px;padding-right:12px}}
@media(max-width:360px){.home-notes-grid{grid-template-columns:minmax(0,210px)}}
/* Personal quick checklist alongside the agenda. */
.home-overview-grid{grid-template-columns:250px minmax(230px,1fr) minmax(250px,1fr) 200px}
.home-reminder-add{display:flex;gap:6px}.home-reminder-add input{min-width:0;flex:1;font-size:12px}.home-reminder-add button{padding:8px}
.home-reminder-list{list-style:none;margin:10px 0 0;padding:0;max-height:220px;overflow-y:auto}
.home-reminder-list li{display:flex;align-items:flex-start;gap:5px;padding:8px 0;border-bottom:1px solid #e8eef1}
.home-reminder-list label{display:flex;align-items:flex-start;gap:8px;flex:1;min-width:0;cursor:pointer;font-size:12px;line-height:1.5}
.home-reminder-list input[type=checkbox]{flex-shrink:0;margin-top:3px;width:14px;height:14px;accent-color:#18745e}
.home-reminder-list label span{overflow-wrap:anywhere}.home-reminder-list li.is-done label span{text-decoration:line-through;color:#78909b}
.home-reminder-list li>button{padding:3px 5px;color:#78909b}.home-reminder-empty{font-size:12px;color:#6d8592;padding:12px 0;line-height:1.6}.home-reminder-completed{font-size:11px;margin-top:10px}
.home-reminders .home-card-heading h2{font-size:15px}.home-overview-grid .home-upcoming .home-card-heading{flex-wrap:wrap}
@media(max-width:1280px){.home-overview-grid{grid-template-columns:250px minmax(0,1fr)}.home-overview-grid>.home-tasks-card{grid-column:auto;flex-direction:column;align-items:stretch}}
@media(max-width:760px){.home-overview-grid{grid-template-columns:minmax(0,1fr)}}
.home-deliveries.task-deadline-ranking{padding:0;margin:16px 0}
.home-deliveries>summary{display:flex;align-items:center;gap:11px;list-style:none;cursor:pointer;padding:12px 16px}
.home-deliveries>summary::-webkit-details-marker{display:none}
.home-deliveries-heading{display:grid;gap:3px;flex:1}.home-deliveries-heading strong{font-size:14px;color:#244958}.home-deliveries-heading small{font-size:11px;color:#68818f}
.home-deliveries>summary:focus-visible{outline:2px solid #167e6a;outline-offset:-3px;border-radius:12px}
.home-deliveries-chevron{color:#68818f;transition:transform .15s ease}.home-deliveries[open] .home-deliveries-chevron{transform:rotate(90deg)}
.home-deliveries-body{padding:0 16px 14px;border-top:1px solid #e7eef1}
.home-deliveries-body>a{display:flex;gap:12px;align-items:center;text-align:left;padding:10px 0;border-bottom:1px solid #e7eef1;color:#244857;font-size:12px;text-decoration:none}
.home-deliveries-body>a:hover{background:#f5f9fa}.home-deliveries-body>a span{flex:1;overflow-wrap:anywhere}.home-deliveries-body>a strong{font-size:11px}
@media(max-width:480px){.home-deliveries-body>a{flex-wrap:wrap}}
@media(prefers-reduced-motion:reduce){.home-deliveries-chevron{transition:none}}
.home-task-pending{display:grid;gap:5px;padding:10px;border:1px solid #f3cc6255;border-radius:8px;background:#f9cf591a;color:#ffe49a;font-size:11px;line-height:1.5}
.home-task-pending strong{font-size:12px;color:#ffdf80}.home-task-pending span{display:block}
.home-tasks-card a.home-task-attention{background:#ffe293;color:#4a3507;border-color:#e6b946;font-weight:700;animation:home-task-yellow 2s ease-in-out infinite}
@keyframes home-task-yellow{0%,100%{background:#ffe293;box-shadow:0 0 0 0 #ffd35600}50%{background:#ffca45;box-shadow:0 0 0 4px #ffd35633}}
@media(prefers-reduced-motion:reduce){.home-tasks-card a.home-task-attention{animation:none}}
/* Personal checklist with alternating soft row colors. */
.home-overview-grid>.home-reminders{background:linear-gradient(160deg,#ffffff 65%,#f5faf9);border-color:#dce9e7;box-shadow:0 3px 12px #214d4910}
.home-reminders .home-card-heading{margin-bottom:14px}.home-reminders .home-icon{background:#e3f3ec;color:#237560;border-radius:11px}
.home-reminders .home-reminder-add{padding:4px;border:1px solid #d7e5e5;border-radius:10px;background:#fff;gap:4px}
.home-reminders .home-reminder-add:focus-within{border-color:#74ae9e;box-shadow:0 0 0 3px #1e816113}
.home-reminders .home-reminder-add input{border:0;box-shadow:none;background:transparent;padding:7px 8px}
.home-reminders .home-reminder-add button{border:0;border-radius:7px;background:#e4f2ec;color:#21735a;min-width:32px;display:grid;place-items:center}
.home-reminders .home-reminder-add button:disabled{background:#eff4f3;color:#94aaa4}
.home-reminders .home-reminder-list{display:grid;gap:7px;margin-top:12px;padding:2px;max-height:230px}
.home-reminders .home-reminder-list li{border:1px solid #dcebe4;border-left:3px solid #97c5b2;background:#edf7f1;border-radius:9px;padding:10px 8px;gap:8px;align-items:center;min-height:44px}
.home-reminders .home-reminder-list li:nth-child(3n+2){background:#eef4fc;border-color:#dce6f3;border-left-color:#9ebcdd}
.home-reminders .home-reminder-list li:nth-child(3n){background:#fff7e7;border-color:#f0e6ce;border-left-color:#dec68b}
.home-reminders .home-reminder-list label{align-items:center;gap:9px;font-size:12px;font-weight:500;color:#274b58}
.home-reminders .home-reminder-list input[type=checkbox]{margin:0;width:15px;height:15px}
.home-reminders .home-reminder-list li>button{display:grid;place-items:center;flex-shrink:0;width:27px;height:27px;border:0;border-radius:7px;background:#ffffff80;color:#6b8a95}
.home-reminders .home-reminder-list li>button:hover{background:#fce5e4;color:#ab4c47}
.home-reminders .home-reminder-list li.is-done{background:#f2f5f6;border-color:#e5ebed;border-left-color:#c4d1d5}
.home-reminders .home-reminder-completed{border:1px solid #dce7e7;border-radius:7px;padding:6px 10px;background:#fff;color:#496a76}
@media(pointer:coarse){.home-reminders .home-reminder-list li>button{width:40px;height:40px}.home-reminders .home-reminder-list label{min-height:40px}}
/* Keep the task acceptance notice compact inside the shortcut card. */
.home-tasks-card .home-task-pending{display:block;max-height:64px;overflow-y:auto;overflow-x:hidden;flex-shrink:0;padding:7px 9px;font-size:10px;line-height:1.4;scrollbar-width:thin;scrollbar-color:#dfbb61 #ffffff12;overscroll-behavior:contain}
.home-tasks-card .home-task-pending strong{display:block;font-size:11px;line-height:1.4;margin-bottom:4px}
.home-tasks-card .home-task-pending span+span{margin-top:4px}
.home-task-pending::-webkit-scrollbar{width:5px}.home-task-pending::-webkit-scrollbar-thumb{background:#dfbb61;border-radius:4px}.home-task-pending::-webkit-scrollbar-track{background:#ffffff12;border-radius:4px}
.home-reminders .home-card-heading{align-items:center;gap:8px}.home-reminders .home-section-title{min-width:0;gap:8px}
.home-reminders .home-reminder-toggle{display:grid;place-items:center;flex-shrink:0;width:30px;height:30px;min-height:30px;padding:5px;border:1px solid #d7e7e1;border-radius:8px;background:#edf7f1;color:#24755e}
.home-reminders .home-reminder-toggle:hover{background:#def0e6}.home-reminders .home-reminder-toggle:focus-visible{outline:2px solid #167e6a;outline-offset:2px}
@media(pointer:coarse){.home-reminders .home-reminder-toggle{width:40px;height:40px}}
/* Dense agenda and reminder rows. */
.home-upcoming-list{gap:5px}
.home-event-row{padding:7px 9px;gap:8px;border-radius:7px}
.home-event-date{min-width:32px}.home-event-date strong{font-size:17px;line-height:1.1}.home-event-date small{font-size:9px}
.home-event-copy strong{font-size:12px;line-height:1.3}.home-event-copy small{font-size:10px;margin-top:2px;line-height:1.3}.home-event-copy em{font-size:9px;padding:2px 4px;margin-top:3px}
.home-reminders .home-reminder-list{gap:4px;margin-top:8px}
.home-reminders .home-reminder-list li{min-height:32px;padding:4px 6px;gap:6px;border-radius:6px}
.home-reminders .home-reminder-list label{font-size:11px;line-height:1.35;gap:7px}
.home-reminders .home-reminder-list input[type=checkbox]{width:13px;height:13px}
.home-reminders .home-reminder-list li>button{width:23px;height:23px;min-height:23px;padding:4px;border-radius:5px}
.home-reminders .home-reminder-completed{margin-top:7px;padding:4px 8px;font-size:10px}
@media(pointer:coarse){.home-reminders .home-reminder-list li{min-height:44px}.home-reminders .home-reminder-list li>button{width:36px;height:36px}.home-event-row{min-height:44px}}
/* Compact entries in the expanded calendar's daily list. */
.home-day-events{gap:5px}
.home-day-events .home-day-event{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-start;gap:3px 9px;padding:7px 9px;min-height:0;border-radius:6px;text-align:left}
.home-day-events .home-day-event strong{flex-basis:100%;font-size:12px;line-height:1.25;font-weight:600}
.home-day-events .home-day-event small,.home-day-events .home-day-event span{font-size:10px;line-height:1.3}
.home-day-events>button:not(.home-day-event){padding:6px 9px;font-size:11px;min-height:30px}
.home-day-title{margin-bottom:10px}
@media(pointer:coarse){.home-day-events .home-day-event,.home-day-events>button:not(.home-day-event){min-height:44px}}
/* Swap the calendar and daily agenda widths. */
.home-overview-grid{grid-template-columns:minmax(230px,1fr) 250px minmax(250px,1fr) 200px}
@media(max-width:1280px){.home-overview-grid{grid-template-columns:minmax(0,1fr) 250px}}
@media(max-width:760px){.home-overview-grid{grid-template-columns:minmax(0,1fr)}}
/* Short, spaced shake only while there are tasks waiting for acceptance. */
.home-tasks-card a.home-task-attention{animation:home-task-yellow 2s ease-in-out infinite,home-task-shake 4s ease-in-out infinite;transform-origin:center}
@keyframes home-task-shake{0%,72%,100%{transform:translateX(0) rotate(0)}76%{transform:translateX(-2px) rotate(-1deg)}80%{transform:translateX(2px) rotate(1deg)}84%{transform:translateX(-2px) rotate(-1deg)}88%{transform:translateX(2px) rotate(1deg)}92%{transform:translateX(0) rotate(0)}}
@media(prefers-reduced-motion:reduce){.home-tasks-card a.home-task-attention{animation:none;transform:none}}
/* Compact task shortcut card. */
.home-overview-grid>.home-tasks-card{padding:14px;gap:10px;justify-content:flex-start}
.home-tasks-card>.home-icon{padding:7px;border-radius:9px}.home-tasks-card>.home-icon svg{width:18px;height:18px}
.home-tasks-card>div>small{font-size:9px;letter-spacing:.04em}
.home-tasks-card h2{font-size:18px;line-height:1.2;margin:3px 0 5px}
.home-tasks-card p{font-size:11px;line-height:1.45;margin:0}
.home-tasks-card .home-task-pending{max-height:54px;padding:6px 7px;font-size:9px;line-height:1.35;border-radius:6px}
.home-tasks-card .home-task-pending strong{font-size:10px;line-height:1.3;margin-bottom:3px}
.home-tasks-card a{padding:8px 9px;font-size:11px;line-height:1.3;border-radius:7px}
.home-tasks-card .home-master-shortcut{padding:0;font-size:9px;line-height:1.35;gap:6px}
@media(pointer:coarse){.home-tasks-card a{min-height:40px}}
/* Compact daily agenda card and its controls. */
.home-overview-grid>.home-upcoming{padding:12px}
.home-upcoming .home-card-heading{gap:6px;margin-bottom:9px;align-items:center}
.home-upcoming .home-section-title{gap:7px;min-width:0}
.home-upcoming .home-icon{padding:6px;border-radius:8px;background:#e6f4ee;color:#247761}.home-upcoming .home-icon svg{width:16px;height:16px}
.home-upcoming .home-card-heading h2{font-size:13px;line-height:1.25}
.home-upcoming .home-card-heading small{font-size:10px;line-height:1.3;display:block;margin-top:2px}
.home-upcoming .home-card-heading>button{padding:5px 7px;font-size:10px;min-height:28px;gap:4px;border-radius:6px}
.home-upcoming .home-upcoming-list{gap:4px}
.home-upcoming .home-event-row{padding:5px 7px;gap:7px;border-radius:6px}
.home-upcoming .home-event-date{min-width:27px}.home-upcoming .home-event-date strong{font-size:15px}.home-upcoming .home-event-date small{font-size:9px}
.home-upcoming .home-event-copy strong{font-size:11px;line-height:1.25}.home-upcoming .home-event-copy small{font-size:10px;margin-top:1px}
.home-upcoming .home-event-row>svg{width:13px;height:13px;flex-shrink:0}
.home-upcoming .home-empty{padding:15px 5px;font-size:11px}.home-upcoming .home-empty>svg{width:22px;height:22px;margin-bottom:7px}.home-upcoming .home-empty p{margin:5px 0 8px}.home-upcoming .home-empty button{font-size:11px;padding:6px 8px}
@media(pointer:coarse){.home-upcoming .home-card-heading>button,.home-upcoming .home-event-row{min-height:40px}}
/* Refined compact calendar preview. */
.home-overview-grid>.home-agenda-preview{padding:15px 17px;border:1px solid #dce9e7;border-radius:15px;background:linear-gradient(155deg,#fff 65%,#f4faf7);box-shadow:0 3px 12px #214d490b}
.home-agenda-preview .home-card-heading{margin-bottom:12px;gap:8px}
.home-agenda-preview .home-section-title{gap:9px}.home-agenda-preview .home-icon{background:#e6f4ee;color:#247761;padding:8px;border-radius:10px}
.home-agenda-preview .home-card-heading h2{font-size:14px;line-height:1.3}.home-agenda-preview .home-card-heading small{font-size:10px;color:#708992}
.home-agenda-preview .home-card-heading>button{display:grid;place-items:center;width:29px;height:29px;min-height:29px;padding:6px;border:1px solid #e0ebe7;border-radius:8px;background:#fff;color:#3c7365}
.home-agenda-preview .home-mini-calendar{border-radius:10px;padding:0;text-align:center;background:transparent;box-shadow:none}
.home-agenda-preview .home-mini-calendar>strong{margin:0 0 10px;padding:8px 10px;background:#edf6f2;border:1px solid #e0eee7;border-radius:8px;font-size:12px;font-weight:600;color:#245e50;text-transform:none}
.home-agenda-preview .home-calendar-grid{gap:4px}
.home-agenda-preview .home-weekday{padding:3px 0 5px;font-size:9px;font-weight:600;color:#77918b}
.home-agenda-preview .home-mini-day{display:flex;align-items:center;justify-content:center;min-height:28px;padding:5px 0;border-radius:7px;font-size:11px;line-height:1.3;color:#365b59;transition:background .15s ease}
.home-agenda-preview .home-mini-day:not(:empty){background:#ffffffa6}
.home-agenda-preview .home-mini-day.has-activity{background:#fff3d7;color:#815d17;font-weight:600}
.home-agenda-preview .home-mini-day.is-today{background:linear-gradient(135deg,#258675,#176653);color:white;font-weight:700;box-shadow:0 2px 5px #17665328}
.home-agenda-preview .home-mini-day i{bottom:2px;width:3px;height:3px;left:calc(50% - 1.5px);background:#cc8a18}
.home-agenda-preview .home-mini-day.is-today i{background:#ffdf83}
.home-agenda-preview .home-calendar-hint{margin-top:10px;padding-top:9px;border-top:1px solid #e2ece8;font-size:9px;color:#718c85;line-height:1.4}
.home-agenda-preview .home-mini-calendar:hover .home-mini-day:not(:empty):not(.is-today):not(.has-activity){background:#eaf3ef}
@media(prefers-reduced-motion:reduce){.home-agenda-preview .home-mini-day{transition:none}}
/* Compact task details, grouped settings and clear action hierarchy. */
.task-detail-modal{max-width:760px;border-radius:14px;border:1px solid #d6e4e8;box-shadow:0 20px 65px #102b3c40;background:#fbfdfd}
.task-detail-modal>.panel-head{padding:11px 15px;background:linear-gradient(120deg,#edf6f3,#f7fafb);border-bottom:1px solid #dce9e6}
.task-detail-modal .panel-head h2{font-size:16px;line-height:1.3;margin:0;font-weight:600}
.task-detail-modal .task-detail{padding:12px 15px;gap:9px}
.task-detail-settings{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px;align-items:end;background:#fff;border:1px solid #e0e9ed;border-radius:9px;padding:10px 11px}
.task-detail-modal .task-deadline-editor{padding:0;margin:0;gap:7px;align-items:end}
.task-detail-modal .task-deadline-editor label{min-width:0}.task-detail-modal .task-deadline-editor button{flex-shrink:0}
.task-detail-modal .task-priority-picker{padding:0;margin:0;border:0;min-width:0}
.task-detail-modal .task-priority-picker legend{font-size:11px;font-weight:600;padding:0;margin:0 0 5px;color:#355968}
.task-detail-modal .task-priority-picker>div{display:flex;gap:5px;flex-wrap:wrap}
.task-detail-modal .task-priority-picker button{padding:5px 7px;min-height:29px;font-size:10px;gap:4px;border-radius:6px}
.task-detail-modal .task-priority-picker button svg{width:11px;height:11px}
.task-detail-modal label{font-size:11px;gap:4px}
.task-detail-modal :is(input,select){min-height:30px;padding:5px 8px;border-radius:6px;font-size:11px}
.task-detail-modal button{min-height:30px;padding:5px 9px;font-size:11px;border-radius:6px}
.task-detail-modal .task-detail-summary{padding:9px 11px;background:#f0f6f9;border-color:#dfeaf0;border-radius:8px}
.task-detail-modal .task-detail-summary p{margin:0;font-size:12px;line-height:1.45}
.task-detail-modal .task-detail-meta-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.task-detail-modal .task-detail-meta{padding:7px 10px;background:white;border-color:#e1e9ed;border-radius:7px}
.task-detail-modal .task-detail-meta>span,.task-detail-modal .task-detail-summary>span{font-size:9px;margin-bottom:3px;letter-spacing:.25px}
.task-detail-modal .task-detail-meta strong{font-size:11px;font-weight:600}
.task-detail-modal .task-detail>.notice{margin:0;padding:9px 11px;border-radius:8px}
.task-detail-modal .task-awaiting-accept{display:flex;align-items:center;justify-content:space-between;gap:10px}
.task-detail-modal .task-awaiting-accept p{margin:0;font-size:11px;line-height:1.4}
.task-detail-modal .task-awaiting-accept button{flex-shrink:0}
.task-detail-modal .task-return-row{margin:0;padding:7px 9px;gap:9px;display:flex;align-items:center;justify-content:space-between;border-radius:7px}
.task-detail-modal .task-return-row small{font-size:10px;line-height:1.35}
.task-detail-modal .task-return-row button{flex-shrink:0}
.task-detail-modal .task-detail-status{padding:3px 8px;font-size:10px}
.task-detail-modal .task-detail-quick{margin:0;padding:0}
.task-detail-modal .task-routing-form{margin:0;padding:10px;border-radius:8px}
.task-detail-modal .task-routing-form h3{font-size:12px;margin:0 0 8px}
.task-detail-modal .task-detail-history{padding-top:9px}.task-detail-modal .task-history li{margin:7px 0;font-size:11px;line-height:1.4}
@media(max-width:620px){.task-detail-settings{grid-template-columns:1fr;gap:10px}.task-detail-modal .task-awaiting-accept,.task-detail-modal .task-return-row{flex-wrap:wrap}.task-detail-modal .task-detail{padding:10px;gap:8px}}
@media(max-width:380px){.task-detail-modal .task-detail-meta-grid{grid-template-columns:1fr}}
@media(pointer:coarse){.task-detail-modal button,.task-detail-modal .task-priority-picker button{min-height:40px}}
/* Alternating daily entries, matching the personal reminder palette. */
.home-day-events .home-day-event:nth-child(3n+1){background:#edf7f1;border-color:#dcebe4;border-left:3px solid #97c5b2}
.home-day-events .home-day-event:nth-child(3n+2){background:#eef4fc;border-color:#dce6f3;border-left:3px solid #9ebcdd}
.home-day-events .home-day-event:nth-child(3n){background:#fff7e7;border-color:#f0e6ce;border-left:3px solid #dec68b}
.home-day-events .home-day-event:hover{filter:brightness(.98)}
/* Soft green is the default day background, independent of hover. */
.home-agenda-preview .home-mini-calendar .home-mini-day:not(:empty):not(.is-today):not(.has-activity){background:#eaf3ef}
.home-agenda-preview .home-mini-calendar:hover .home-mini-day:not(:empty):not(.is-today):not(.has-activity){background:#eaf3ef}
/* The calendar defines the row height; long content scrolls inside its card. */
.home-overview-grid{align-items:start}
.home-overview-grid>.home-agenda-preview{height:auto;min-height:0;align-self:start;padding-bottom:12px}
.home-overview-grid>:is(.home-upcoming,.home-reminders,.home-tasks-card){box-sizing:border-box;height:var(--home-calendar-height,320px);min-height:0;max-height:var(--home-calendar-height,320px);overflow:hidden}
.home-overview-grid>:is(.home-upcoming,.home-reminders){display:flex;flex-direction:column}
.home-overview-grid>:is(.home-upcoming,.home-reminders)>.home-card-heading{flex-shrink:0}
.home-overview-grid .home-upcoming-list{flex:1;min-height:0;max-height:none;overflow-y:auto;align-content:start;scrollbar-width:thin;scrollbar-color:#b6ccc5 transparent;padding-right:3px}
.home-overview-grid .home-reminders .home-reminder-list{flex:1;min-height:0;max-height:none;overflow-y:auto;align-content:start;scrollbar-width:thin;scrollbar-color:#b6ccc5 transparent}
.home-overview-grid .home-reminder-add{flex-shrink:0}
.home-overview-grid>.home-tasks-card{overflow-y:auto;scrollbar-width:thin;scrollbar-color:#84b5a8 transparent}
.home-overview-grid>.home-tasks-card>*{flex-shrink:0}
.home-deliveries>summary>.home-icon{flex:0 0 auto;width:36px;height:36px;padding:9px}
.home-mini-month-nav{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:10px;padding:4px 5px;background:#edf6f2;border:1px solid #e0eee7;border-radius:8px;color:#245e50}
.home-mini-month-nav strong{font-size:12px;font-weight:600;text-align:center}.home-mini-month-nav button{display:grid;place-items:center;padding:4px;width:25px;height:25px;min-height:25px;background:#fff;border:1px solid #dfeae4;border-radius:6px;color:#316d5d}
.home-calendar-toolbar{flex-wrap:wrap;gap:8px}.home-calendar-toolbar>div{flex-wrap:wrap}.home-calendar-toolbar h3{font-size:14px;min-width:0;margin:4px 0}
.home-calendar-views{gap:4px!important}.home-calendar-views button{font-size:11px;padding:6px 9px}.home-calendar-views button[aria-pressed=true]{background:#18745e;color:#fff;border-color:#18745e}
.home-calendar-body[hidden]{display:none}
.home-year-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;padding:18px;background:#f6faf9}
.home-year-month{padding:12px;background:#fff;border:1px solid #dce9e4;border-radius:10px}
.home-year-month-title{display:block;width:100%;border:0;border-radius:6px;background:#edf6f2;color:#245e50;font-size:12px;font-weight:600;padding:7px;margin-bottom:6px;text-align:center}
.home-year-day{position:relative;border:0;background:#eaf3ef;color:#345b51;border-radius:5px;min-height:26px;padding:4px 0;font-size:11px}
.home-year-day.has-activity{background:#fff0cb;color:#805c18}.home-year-day.is-today{background:#18745e;color:#fff}
.home-year-day i{position:absolute;bottom:2px;left:calc(50% - 1.5px);width:3px;height:3px;background:currentColor;border-radius:50%}
@media(max-width:760px){.home-year-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:12px}}
@media(max-width:480px){.home-year-grid{grid-template-columns:1fr}}
@media(pointer:coarse){.home-mini-month-nav button,.home-year-day{min-height:40px}}
/* Owned tasks displayed as compact deadline cards. */
.home-delivery-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,270px));gap:10px;align-items:stretch}
.home-delivery-cards>a{display:grid;grid-template-columns:26px minmax(0,1fr);gap:7px 9px;padding:11px 12px;background:#f5faf8;border:1px solid #dceae4;border-left:3px solid #8fb9a9;border-radius:8px;color:#244857;text-decoration:none;min-width:0;align-content:start}
.home-delivery-cards>a:nth-child(3n+2){background:#f2f6fc;border-color:#dce6f2;border-left-color:#9cb7d9}
.home-delivery-cards>a:nth-child(3n){background:#fff9ed;border-color:#eee5d1;border-left-color:#d9c491}
.home-delivery-cards>a:hover{box-shadow:0 3px 9px #204b4214;border-color:#79ad9a}
.home-delivery-cards>a>b{display:grid;place-items:center;align-self:start;width:26px;height:26px;padding:3px;border-radius:6px;background:#ffffffc7;font-size:11px}
.home-delivery-cards>a>span{font-size:12px;font-weight:600;line-height:1.4;overflow-wrap:anywhere;align-self:center}
.home-delivery-cards>a>strong{grid-column:2;font-size:10px;font-weight:500;color:#68818f}
@media(max-width:480px){.home-delivery-cards{grid-template-columns:minmax(0,1fr)}}
/* Carry task urgency and pending ribbons into the Home cards. */
.home-delivery-cards>a>.home-delivery-flags{grid-column:1/-1;display:flex;flex-wrap:wrap;align-items:center;gap:4px;margin-bottom:2px}
.home-delivery-flags em{font-style:normal;font-size:10px;line-height:1.25;font-weight:600;padding:3px 6px;border-radius:4px}
.home-delivery-flags .delivery-urgent{background:#ffe3e3;color:#b42328;border:1px solid #f3a1a3}
.home-delivery-flags .delivery-pending{background:#e5eefb;color:#315f9c;border:1px solid #c7d8ef}
.home-delivery-flags .source-finance{background:#fff0cb;color:#866015;border-color:#e9ce86}
.home-delivery-flags .source-commercial{background:#f5e7f6;color:#8d3e92;border-color:#dec2e1}
.home-delivery-flags .source-quality{background:#eaeafa;color:#585397;border-color:#d1cff0}
.home-delivery-flags .delivery-accept{background:#fff1bf;color:#7d5b0d;border:1px solid #edd285}
.home-delivery-cards>a.needs-attention{border-color:#e6c46c;border-left-color:#d5a638;background:#fff9e8;box-shadow:inset 0 0 0 1px #f1d88d}
.home-delivery-cards>a.is-urgent{border-left:3px solid #d34c50}
@keyframes home-delivery-attention{0%,100%{background-color:#fff9e8}50%{background-color:#fff0c6}}
@media(prefers-reduced-motion:no-preference){.home-delivery-cards>a.needs-attention{animation:home-delivery-attention 2.4s ease-in-out infinite}}

/* Pending invitations lead the daily agenda without stretching its card. */
.home-invitations{display:grid;gap:6px;margin-bottom:7px;padding:8px;background:#fff7d8;border:1px solid #ebc75f;border-radius:9px;box-shadow:0 2px 7px #a8761214}
.home-invitations-heading{display:flex;align-items:center;gap:5px;font-size:10px;line-height:1.4;color:#805810}
.home-invitations-heading svg{flex-shrink:0}
.home-invitation{display:grid;gap:3px;padding:7px;background:#fffdf2;border:1px solid #f1df9e;border-left:3px solid #e3ab20;border-radius:6px;min-width:0}
.home-invitation>strong{font-size:11px;color:#60420e;overflow-wrap:anywhere}
.home-invitation>small{font-size:9px;line-height:1.4;color:#80652e;overflow-wrap:anywhere}
.home-invitation>div{display:flex;flex-wrap:wrap;gap:5px;margin-top:4px}
.home-invitation button{min-height:28px;padding:5px 7px;font-size:10px;border-color:#e4ca7e}
.home-invitation .home-invitation-confirm{background:#ffdb68;border-color:#e0b542;color:#513800;font-weight:700}
.home-invitation .home-invitation-confirm:hover{background:#ffd24a}
.home-invitation-error{font-size:11px;color:#a32929}
@media(pointer:coarse){.home-invitation button{min-height:44px}}

.home-event-controls button.home-invitation-attention,.home-invitation button.home-invitation-confirm{background:#ffdb68;border:1px solid #d5a522;color:#513800;font-weight:700;box-shadow:0 2px 6px #c4932630}
.home-event-controls button.home-invitation-attention:hover,.home-invitation button.home-invitation-confirm:hover{background:#ffd24a;color:#513800}
@media(prefers-reduced-motion:no-preference){.home-event-controls button.home-invitation-attention:not(:disabled),.home-invitation button.home-invitation-confirm:not(:disabled){animation:home-task-yellow 2s ease-in-out infinite}}

.home-event-location,.home-event-notes{overflow-wrap:anywhere;min-width:0;white-space:pre-wrap}
.home-event-detail :is(.home-event-location,.home-event-notes) a{color:#116aa0;text-decoration:underline;text-underline-offset:2px}

/* Compact appointment details and participant response indicators. */
.home-event-detail{padding:12px;background:#fff;border:1px solid #dce8ec;border-radius:12px;box-shadow:0 3px 12px #173e5208}
.home-event-detail .home-event-kind{display:inline-block;padding:3px 7px;border-radius:5px;background:#e8f3f0;color:#206c5c;font-size:10px;font-weight:700}
.home-event-detail h3{margin:7px 0 10px;font-size:16px;line-height:1.3;overflow-wrap:anywhere}
.home-event-detail>p{display:flex;align-items:flex-start;gap:6px;margin:7px 0;font-size:11px;line-height:1.5}
.home-event-detail>p>svg{flex-shrink:0;margin-top:1px;color:#61838c}
.home-event-detail>p.home-event-notes{display:block;background:#f5f8fa;padding:8px;border-radius:7px;margin:9px 0}
.home-event-detail .home-event-organizer{display:block;font-size:10px;line-height:1.5;color:#708591;overflow-wrap:anywhere}
.home-participant-section{margin:13px 0}
.home-participant-heading{display:flex;align-items:center;justify-content:space-between;gap:6px;margin-bottom:7px}
.home-participant-heading>strong{display:flex;align-items:center;gap:5px;font-size:11px}
.home-participant-heading>small{font-size:9px;color:#658279}
.home-event-detail .home-participants{display:grid;gap:5px;list-style:none;margin:0;padding:0}
.home-event-detail .home-participants li{display:flex;align-items:center;gap:6px;padding:7px;border:1px solid #dfe8ee;border-radius:7px;background:#f4f7fa;min-width:0}
.home-participant-avatar{display:grid;place-items:center;flex:0 0 23px;width:23px;height:23px;border-radius:7px;background:#e1eaf1;color:#476478;font-size:10px;font-weight:700}
.home-participant-name{flex:1;min-width:0;overflow-wrap:anywhere;font-size:10px;line-height:1.4}
.home-participants .home-participant-status{flex-shrink:0;padding:3px 5px;border-radius:5px;background:#e1eaf1;color:#476478;font-size:9px;font-weight:600}
.home-event-detail .home-participants li[data-response="accepted"]{background:#edf8f1;border-color:#b8dfc6;border-left:3px solid #299c62}
.home-participants [data-response="accepted"] :is(.home-participant-avatar,.home-participant-status){background:#d2efdc;color:#16653c}
.home-event-detail .home-participants li[data-response="invited"]{background:#fffaed;border-color:#eedca6;border-left:3px solid #d9a625}
.home-participants [data-response="invited"] :is(.home-participant-avatar,.home-participant-status){background:#fff0bf;color:#805b0c}
.home-event-detail .home-participants li[data-response="declined"]{background:#fff2f2;border-color:#efcccc;border-left:3px solid #cf6464}
.home-participants [data-response="declined"] :is(.home-participant-avatar,.home-participant-status){background:#f9dede;color:#9b3434}
.home-event-detail .home-event-controls{padding-top:10px;margin-top:10px;border-top:1px solid #e5edf0;gap:7px;flex-wrap:wrap}
.home-event-detail .home-event-controls button{font-size:11px;padding:7px 10px}
.home-event-detail>.ghost{margin-top:8px;font-size:11px}

/* Keep the main tasks shortcut prominent even without pending acceptance. */
.home-tasks-card a.home-task-launch{min-height:40px;box-sizing:border-box;padding:10px 11px;border-radius:8px;font-size:12px;font-weight:750;line-height:1.3;flex-shrink:0;box-shadow:0 3px 9px #062e3b40}
.home-tasks-card a.home-task-launch:not(.home-task-attention){background:linear-gradient(135deg,#ecfff7,#b8eedb);color:#124d42;border:1px solid #d5fff0}
.home-tasks-card a.home-task-launch:not(.home-task-attention):hover{background:#fff;box-shadow:0 4px 12px #062e3b55}
.home-tasks-card a.home-task-launch svg{flex-shrink:0;width:20px;height:20px;stroke-width:2.5}
.home-tasks-card a.home-task-launch:focus-visible{outline:3px solid #ffdc73;outline-offset:3px}
@media(pointer:coarse){.home-tasks-card a.home-task-launch{min-height:44px}}

/* A distinct, compact entry point for the user's upcoming deliveries. */
.home-deliveries.task-deadline-ranking{border:1px solid #aed4c9;border-left:4px solid #20816d;border-radius:12px;box-shadow:0 3px 10px #185c4d12;overflow:hidden}
.home-deliveries>summary{padding:12px 15px;background:linear-gradient(105deg,#e3f3ed,#f3f9f7);gap:12px}
.home-deliveries>summary:hover{background:linear-gradient(105deg,#d5ece3,#edf7f2)}
.home-deliveries>summary>.home-icon{width:38px;height:38px;background:#1c7663;color:#fff;border-radius:10px;box-shadow:0 2px 5px #1c766326}
.home-deliveries .home-deliveries-heading strong{font-size:16px;font-weight:750;color:#174f44;line-height:1.3}
.home-deliveries .home-deliveries-heading small{font-size:11px;color:#476c63;line-height:1.4}
.home-deliveries-chevron{box-sizing:content-box;flex-shrink:0;width:18px;height:18px;padding:7px;border:1px solid #b8d9ce;border-radius:8px;background:#ffffffbf;color:#176d5a}
.home-deliveries[open]>summary{border-bottom:1px solid #cce4db}
.home-deliveries .home-deliveries-body{border-top:0}

/* Continue the summary's soft background through the expanded deliveries. */
.home-deliveries .home-deliveries-body{background:linear-gradient(105deg,#e3f3ed,#f3f9f7);padding-top:1px}
.home-delivery-cards>a:not(.needs-attention){background:linear-gradient(120deg,#dcefe6,#f1f8f4);box-shadow:0 2px 6px #185c4d0d}
.home-delivery-cards>a:nth-child(3n+2):not(.needs-attention){background:linear-gradient(120deg,#e3edf9,#f3f7fd)}
.home-delivery-cards>a:nth-child(3n):not(.needs-attention){background:linear-gradient(120deg,#fff0ce,#fff9ed)}

.home-note-add{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;min-height:145px;padding:18px 12px;border:2px dashed #aacdbf;border-radius:7px;background:#eaf4ee80;color:#3b7766;text-align:center}
.home-note-add:hover{background:#e0f0e7;border-color:#36866b}
.home-note-add strong{font-size:12px}.home-note-add span{font-size:10px;color:#648779}
.home-note[draggable="true"]{cursor:grab}.home-note[draggable="true"]:active{cursor:grabbing}
.home-note.is-dragging{opacity:.45}.home-note.is-drop-target{outline:3px solid #238468;outline-offset:3px}

.home-deliveries-heading>strong{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.home-deliveries .home-deliveries-count{display:inline-flex;flex:0 0 auto;align-items:center;justify-content:center;min-width:24px;height:24px;padding:0 7px;box-sizing:border-box;border-radius:999px;background:#16715c;color:#fff;font-size:12px;font-weight:750;box-shadow:0 2px 4px #176b5926}

.logo-home-link{display:block;border-radius:8px;line-height:0;cursor:pointer}
.logo-home-link:focus-visible{outline:3px solid #35bda8;outline-offset:3px}
.logo-home-link img{transition:filter .15s ease}
.logo-home-link:hover img{filter:brightness(.96)}

.home-overview-grid .home-upcoming>.home-card-heading{display:flex;align-items:center;flex-wrap:nowrap;gap:8px}
.home-upcoming>.home-card-heading>.home-section-title{min-width:0;flex:1}
.home-upcoming button.home-agenda-add{display:grid;place-items:center;flex:0 0 34px;width:34px;height:34px;min-height:34px;margin-left:auto;padding:0;background:#ffda68;color:#624600;border:1px solid #ddb039;border-radius:9px;box-shadow:0 2px 6px #b884252b}
.home-upcoming button.home-agenda-add:hover{background:#ffce3e;border-color:#c89819;box-shadow:0 3px 8px #b884253d}
.home-upcoming button.home-agenda-add svg{stroke-width:2.5}
@media(pointer:coarse){.home-upcoming button.home-agenda-add{flex-basis:44px;width:44px;height:44px}}

.home-overview-grid :is(.home-agenda-preview,.home-upcoming) .home-card-heading>button.home-agenda-add{display:grid;place-items:center;flex:0 0 26px;width:26px;height:26px;min-height:26px;padding:0;margin-left:auto;border:1px solid #d2e7df;border-radius:6px;background:#edf6f1;color:#25816b;box-shadow:none}
.home-overview-grid :is(.home-agenda-preview,.home-upcoming) .home-card-heading>button.home-agenda-add:hover{background:#dfefe6;border-color:#a7cebd;box-shadow:none}
.home-overview-grid button.home-agenda-add svg{width:16px;height:16px;stroke-width:1.7}
@media(pointer:coarse){.home-overview-grid :is(.home-agenda-preview,.home-upcoming) .home-card-heading>button.home-agenda-add{flex-basis:44px;width:44px;height:44px}}

/* Shared top bar: navigation on the left, Brasília date and account on the right. */
.topbar{display:flex;align-items:center;gap:16px;background:#fff;border-bottom:1px solid #dce6ec}
.topbar>.header-page-title,.topbar>.master-breadcrumb-home{min-width:0;flex:1}
.topbar-date{display:flex;align-items:center;gap:6px;flex-shrink:0;margin-left:auto;color:#547181;font-size:11px;line-height:1.4;white-space:nowrap}
.topbar-date svg{color:#3e8474;flex-shrink:0}
.pdf-page-head>.topbar-date{align-self:center}
@media(max-width:900px){.topbar,.pdf-page-head{flex-wrap:wrap;gap:10px}.topbar-date{font-size:10px}.topbar>.header-page-title{flex:1 1 45%}}
@media(max-width:520px){.topbar-date{white-space:normal;margin-left:0}.topbar>.header-page-title{flex-basis:100%}}

/* All authenticated pages use the same compact header component. */
header.app-topbar{box-sizing:border-box;display:flex;align-items:center;min-height:64px;padding:10px 20px;gap:18px;background:#fff;border:0;border-bottom:1px solid #dce6ec;border-radius:0;box-shadow:none;margin:0}
.app-topbar .header-page-title{display:flex;align-items:center;gap:10px;flex:1;min-width:0;font-size:12px}
.app-topbar .breadcrumb{font-size:12px;line-height:1.4;color:#466579}
.app-topbar .account{display:flex;align-items:center;gap:10px;flex-shrink:0;font-size:12px}
.app-topbar .avatar{display:grid;place-items:center;width:32px;height:32px;flex:0 0 32px;border-radius:50%;background:#e4f2ee;color:#176c5b;font-size:12px}
.app-topbar .app-topbar-user{display:grid;gap:1px;max-width:230px;line-height:1.3}
.app-topbar-user strong{font-size:11px;font-weight:500;overflow-wrap:anywhere;color:#244e65}
.app-topbar .app-topbar-user small{display:block;font-size:10px;color:#617e8e}
.app-topbar .account>button,.app-topbar .account>a{display:inline-flex;align-items:center;gap:5px;min-height:30px;padding:5px 8px;border:0;border-radius:5px;background:transparent;color:#234f66;font-size:11px;text-decoration:none}
.app-topbar .account>button:hover,.app-topbar .account>a:hover{background:#eef5f3}
.app-topbar .account>button svg,.app-topbar .account>a svg{width:14px;height:14px}
.app-topbar-tools{display:flex;align-items:center;justify-content:flex-end;padding:8px 20px;gap:10px}
.pdf-panel>header.app-topbar,.supervisor-native>header.app-topbar{margin-bottom:16px;border:1px solid #dce6ec;border-radius:8px}
@media(max-width:900px){header.app-topbar{flex-wrap:wrap;gap:10px;padding:10px 12px}.app-topbar .header-page-title{flex:1 1 40%}.app-topbar .account{margin-left:auto}}
@media(max-width:520px){.app-topbar .header-page-title{flex-basis:100%}.app-topbar .account{gap:6px}.app-topbar .app-topbar-user{max-width:150px}.app-topbar .topbar-date{max-width:125px}}

@keyframes home-count-pulse{0%,100%{background:#16715c;color:#fff;box-shadow:0 0 0 0 #e9bd3500}50%{background:#ffda68;color:#594000;box-shadow:0 0 0 3px #e9bd3540}}
@keyframes home-count-turn{0%,65%{transform:perspective(160px) rotateY(0)}90%,100%{transform:perspective(160px) rotateY(360deg)}}
@media(prefers-reduced-motion:no-preference){.home-deliveries-count.has-pending{animation:home-count-pulse 2s ease-in-out infinite,home-count-turn 4s ease-in-out infinite;transform-origin:center}}
@media(prefers-reduced-motion:reduce){.home-deliveries-count.has-pending{background:#ffda68;color:#594000;outline:2px solid #deb23f;outline-offset:2px}}

.topbar-chat-slot{flex-shrink:0}.topbar-chat-slot:empty{display:none}
.topbar-chat-slot .chat-launcher{margin:0}
.topbar-chat-slot .chat-launcher-card{width:178px;min-height:42px;padding:6px 9px;gap:7px;border-radius:8px;box-shadow:0 2px 5px #173e520d}
.topbar-chat-slot .chat-launcher-card strong{font-size:12px}
.topbar-chat-slot .chat-launcher-card small{font-size:9px;line-height:1.3;margin-top:1px}
.topbar-chat-slot .chat-launcher-card>svg{width:17px;height:17px;flex-shrink:0}
.topbar-chat-slot .chat-launcher-count{font-size:10px;padding:3px 6px}
@keyframes topbar-chat-vibrate{0%,72%,100%{transform:translateX(0)}76%,84%{transform:translateX(-2px) rotate(-1deg)}80%,88%{transform:translateX(2px) rotate(1deg)}92%{transform:translateX(0)}}
@media(prefers-reduced-motion:no-preference){.topbar-chat-slot .chat-launcher-card.has-unread{animation:chat-notification-pulse 2s ease-in-out infinite,topbar-chat-vibrate 4s ease-in-out infinite}}
@media(prefers-reduced-motion:reduce){.topbar-chat-slot .chat-launcher-card.has-unread{animation:none;background:#ffe694;border-color:#d6a420}}
@media(max-width:600px){.topbar-chat-slot .chat-launcher-card{width:145px}}

/* Subtle module-colored surfaces make sidebar actions easier to distinguish. */
.sidebar .module-guides details[data-module]>summary{background:color-mix(in srgb,var(--module-color) 24%,#193e50);color:#fff}
.sidebar .module-guides details[data-module][open] .module-pages :is(a,button){background:color-mix(in srgb,var(--module-color) 17%,#254a5b);color:#f3fafc;border-radius:6px;box-shadow:inset 0 0 0 1px #ffffff0a}
.sidebar .module-guides details[data-module][open] .module-pages :is(a,button):hover{background:color-mix(in srgb,var(--module-color) 30%,#355c6d);color:#fff}
.sidebar .module-guides details[data-module][open] .module-pages :is([aria-current=page],button.active){background:var(--module-soft);color:#153e50;border-left-color:var(--module-color);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--module-color) 30%,transparent)}
.sidebar .module-guides details[data-module] .module-category>summary{background:color-mix(in srgb,var(--module-color) 15%,#365969);color:#f3fafc}
.sidebar .module-guides>a{background:#ffffff10;border-radius:6px}
.sidebar .module-guides>a:hover{background:#ffffff20}
.sidebar .module-guides>a[aria-current=page]{background:#d9edf4;color:#173e50}
.scpc-dialog{width:min(940px,96vw)}
.scpc-dialog[open]{display:flex;flex-direction:column;max-height:90dvh}
.scpc-dialog>.cnpj-import-body{display:block;flex:1;min-height:0;overflow:auto}
.scpc-dialog .cnpj-import-field textarea{min-height:54px}
.scpc-dialog .scpc-step>label textarea{min-height:130px}
.scpc-step{border:1px solid #cfe3df;border-radius:12px;background:linear-gradient(135deg,#f1f8f5,#fff);padding:16px;margin-bottom:14px}
.scpc-step h3{font-size:15px;color:#155b51;margin:0 0 8px}.scpc-step p{font-size:13px;line-height:1.5}
.scpc-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px}.scpc-actions output{font-variant-numeric:tabular-nums;font-weight:600;padding:8px}
.scpc-access-help{margin:12px 0}.scpc-access-help summary{cursor:pointer;color:#386575;font-size:13px}.scpc-access-help a{display:inline-block;padding:9px;background:#e2f1eb;border-radius:7px;color:#155b51}
.scpc-step>label{display:grid;gap:6px;margin:12px 0}.scpc-step textarea{width:100%;resize:vertical}.scpc-step input[type=file]{max-width:100%}
.scpc-saved{grid-column:1/-1;border:1px solid #c9ded9;border-radius:10px;padding:12px;background:#f5faf8;margin:10px 0}.scpc-saved summary{cursor:pointer;display:flex;flex-wrap:wrap;gap:8px;justify-content:space-between;color:#155b51}.scpc-saved summary span{font-size:12px}.scpc-saved p{font-size:12px}.scpc-saved pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:420px;overflow:auto;font:12px/1.6 system-ui;background:white;padding:12px;border-radius:6px}

.acp-score-card{display:grid;grid-template-columns:minmax(160px,1fr) 210px;align-items:center;gap:12px 22px;background:linear-gradient(125deg,#f0f8f4,#fff);border:1px solid #c9ded6;border-radius:12px;padding:16px;margin-bottom:14px}.acp-score-card h3{margin:5px 0 12px;font-size:17px;color:#174c43}.acp-score-copy label{display:grid;gap:5px;font-size:12px}.acp-score-copy input{max-width:170px}.acp-score-copy p,.acp-score-card>small{font-size:11px;color:#5a7572}.acp-score-card>small{grid-column:1/-1}.acp-score-visual{text-align:center}.acp-score-visual svg{width:100%;max-height:135px}.acp-score-visual text{font:11px system-ui;fill:#57746e}.acp-score-visual>strong{display:block;font-size:27px;color:#174c43;font-variant-numeric:tabular-nums}.acp-score-visual>strong:last-child{margin-top:0}@media(max-width:520px){.acp-score-card{grid-template-columns:1fr}.acp-score-visual{max-width:210px;justify-self:center}}
.customer-request-inbox{margin:18px 0 24px;padding:18px;border:1px solid #d8e7e4;border-radius:14px;background:linear-gradient(120deg,#f1f8f6,#fff)}
.customer-request-heading h3{display:flex;align-items:center;gap:9px;margin:0 0 5px}.customer-request-heading p{margin:0;color:#537084;font-size:12px}
.customer-request-count{display:inline-grid;place-items:center;min-width:25px;height:25px;padding:0 6px;background:#176f62;color:white;border-radius:20px;font-size:12px}
.customer-request-filters{display:flex;gap:12px;flex-wrap:wrap;margin:16px 0}.customer-request-filters label{display:grid;gap:5px;font-size:12px;flex:1;min-width:180px}
.customer-request-list{list-style:none;padding:0;margin:0;display:grid;gap:9px}.customer-request-row{display:flex;gap:14px;align-items:center;padding:14px;background:#fff;border:1px solid #dbe6eb;border-left:4px solid #8ba6b8;border-radius:9px}.customer-request-row>div{flex:1;min-width:0}.customer-request-row small{display:block;margin-top:5px;color:#547185}.customer-request-row p{margin:7px 0 0;white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px}.customer-request-row.pending{border-left-color:#dfac36;background:#fffcf2}.customer-request-row.returned{border-left-color:#df8438;background:#fff7f0}.customer-request-row.approved{border-left-color:#27917c}.customer-request-row.rejected{border-left-color:#c95760}
.customer-request-status{font-size:11px;font-weight:700;padding:5px 8px;border-radius:6px;background:#edf2f6;color:#40566c;display:inline-block}.customer-request-status.pending{background:#fff0bb;color:#765209}.customer-request-status.returned{background:#ffe7d2;color:#843a13}.customer-request-status.approved{background:#dbf3e9;color:#166452}.customer-request-status.rejected{background:#ffe2e4;color:#9c3446}
.customer-edit-fields{border:0;margin:0;padding:0;min-width:0;display:grid;gap:14px}.customer-request-history{padding:12px;border:1px solid #dae6ed;border-radius:9px;background:#f6f9fb}.customer-request-history details{margin-top:10px;font-size:12px}.customer-request-history small{display:block;color:#5c7385;margin-top:4px}.customer-request-history li{padding:5px 0}.customer-request-history p{white-space:pre-wrap;overflow-wrap:anywhere}.customer-review-decision{border-top:1px solid #dce5ec;padding-top:14px}.customer-review-decision label{display:grid;gap:6px}.customer-review-decision>div{display:flex;gap:8px;margin-top:10px;flex-wrap:wrap}
@media(max-width:700px){.customer-request-row{align-items:flex-start;flex-wrap:wrap}.customer-request-row>div{flex-basis:100%}.customer-request-inbox{padding:12px}}

/* Customer form and its permanent activity sidebar. */
.customer-registration-dialog{width:min(1440px,calc(100vw - 32px));max-width:1440px}
.customer-dialog-columns{display:grid;grid-template-columns:minmax(0,1fr) 340px;min-height:0;flex:1;overflow:hidden}
.customer-dialog-columns>.finance-customer-form{overflow-y:auto;min-width:0;display:block}
.customer-dialog-columns .customer-review-decision{margin-top:14px}
.customer-context{border-left:1px solid #9cbcac;background:linear-gradient(180deg,#edf5f1,#f7faf8);padding:18px 16px;overflow-y:auto;min-width:0;overscroll-behavior:contain}
.customer-context>header{margin-bottom:16px}.customer-context h3{font-size:17px;margin:4px 0 7px}.customer-context header p{font-size:12px;color:#617c6d;line-height:1.5;margin:0}.customer-context-card{border:1px solid #d4e3da;border-radius:10px;padding:13px;background:#fff;margin-bottom:12px}.customer-context h4{font-size:13px;margin:0 0 12px;color:#19533b}.customer-context dl{margin:0;display:grid;gap:10px}.customer-context dt{font-size:10px;color:#6c8176;margin-bottom:3px}.customer-context dd{font-size:12px;margin:0;overflow-wrap:anywhere;white-space:pre-wrap}.customer-context-empty{font-size:12px;line-height:1.6;color:#6c8176;margin:8px 0 0}.customer-context-role{margin:0 0 10px;font-size:12px;overflow-wrap:anywhere}.customer-context-role>span{display:block;font-size:10px;color:#6c8176;margin-bottom:4px}.customer-context-users{margin:12px 0 0;padding:10px 0 0;border-top:1px solid #edf2ee;list-style:none;display:grid;gap:10px}.customer-context-users li{display:flex;gap:8px;align-items:center;min-width:0}.customer-context-users li>span{border-radius:50%;background:#e5f2eb;color:#186448;display:grid;place-items:center;flex:none;width:28px;height:28px;font-size:12px}.customer-context-users strong{font-size:11px;overflow-wrap:anywhere}.customer-context-users small{display:block;font-size:10px;color:#6c8176;overflow-wrap:anywhere}.customer-comment-label{display:grid;gap:6px;font-size:11px}.customer-context textarea{min-height:90px;resize:vertical;padding:9px;font-size:12px;line-height:1.5}.customer-comment-actions{display:flex;align-items:center;justify-content:space-between;margin:8px 0;gap:8px}.customer-comment-actions button{font-size:11px;padding:7px 10px}.customer-context-card>small,.customer-comment-actions small{font-size:10px;color:#6c8176}.customer-comment,.customer-change{border-top:1px solid #e6eee8;padding-top:12px;margin-top:12px}.customer-comment>strong,.customer-change>strong{font-size:12px}.customer-comment time,.customer-change>small{display:block;font-size:10px;color:#6c8176;margin-top:4px}.customer-comment p{font-size:12px;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6;margin-bottom:0}.customer-change summary{font-size:11px;color:#176e50;margin:9px 0;cursor:pointer}.customer-change dd{font-size:11px;max-height:150px;overflow:auto}.customer-old-value{color:#846963;text-decoration:line-through}.customer-context .customer-request-history{margin-bottom:12px}
@media(max-width:1050px){.customer-dialog-columns{grid-template-columns:minmax(0,1fr) 300px}.customer-dialog-columns .customer-field-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:780px){.customer-dialog-columns{display:block;overflow-y:auto}.customer-dialog-columns>.finance-customer-form{overflow:visible}.customer-context{border-left:0;border-top:1px solid #9cbcac;overflow:visible}.customer-registration-dialog{width:calc(100vw - 16px)}}

.customer-registration-dialog [data-registration-form="true"] [data-empty-field=true]{background-color:#fffafa!important;border-color:#e7d5d5!important}
.customer-registration-dialog [data-registration-form="true"] [data-empty-field=true]:focus{border-color:#cfa9a9!important}
.customer-registration-dialog [data-registration-form="true"] [data-empty-field=true]::placeholder{color:#958282}
.customer-registration-dialog .customer-required-star{color:#ad6262;font-weight:700}

/* Customer workspace: the home palette, with clearer card hierarchy. */
.customer-registration-dialog{border:1px solid #cee2de;border-radius:20px;box-shadow:0 30px 100px #102f4650,0 2px 8px #102f4612;color:#193f49}
.customer-registration-dialog .dialog-head{background:linear-gradient(110deg,#fff 25%,#eef8f4);padding:18px 22px;border-bottom:1px solid #dcebe5}
.customer-dialog-title{display:flex;align-items:center;gap:13px;min-width:0}.customer-title-icon{display:grid;place-items:center;flex:none;width:46px;height:46px;border-radius:14px;background:linear-gradient(140deg,#e2f3ed,#f2faf7);color:#197d6b;border:1px solid #cde7de}.customer-dialog-title p{margin:5px 0 0;font-size:11px;color:#68838b;line-height:1.5}.customer-registration-dialog .dialog-head h2{font-size:22px;color:#173e49;font-weight:700;letter-spacing:-.5px}.customer-form-eyebrow{font-size:9px;color:#5b8079;letter-spacing:1.5px}
.customer-registration-dialog .dialog-head>button{width:34px;height:34px;min-width:34px;padding:0;border-radius:10px;background:#fff;color:#517c77;border-color:#d3e7e0}
.customer-registration-dialog .dialog-body{background:#f3f7f7;padding:18px 22px}.customer-edit-fields{gap:18px}
.customer-registration-dialog .customer-field-group{background:linear-gradient(120deg,#fff,#fbfdfc);border:1px solid #d7e5e4;border-radius:14px;padding:12px 15px 15px;box-shadow:0 3px 10px #173d4e04}
.customer-registration-dialog .customer-field-group legend{display:flex;align-items:center;gap:8px;padding:0 7px;font-size:12px;font-weight:700;color:#224c55}
.customer-section-icon{display:inline-grid;place-items:center;width:27px;height:27px;vertical-align:middle;border-radius:8px;background:#e5f3ee;color:#218474;flex:none}.customer-company-details summary .customer-section-icon{margin-right:8px}
.customer-registration-dialog .customer-field-grid{gap:12px 14px}.customer-registration-dialog .customer-field-grid label{font-size:11px;font-weight:500;color:#4f6d74;gap:6px}
.customer-registration-dialog .customer-field-grid :is(input,select,textarea){border-radius:8px;min-height:36px;padding:8px 10px;border-color:#d9e5e3;background:#fff;transition:border-color .15s,box-shadow .15s}.customer-registration-dialog .customer-field-grid :is(input,select,textarea):hover:not(:disabled){border-color:#abcfc3}
.customer-registration-dialog :is(input,select,textarea):focus-visible{outline:2px solid #2b8d7638;outline-offset:1px;box-shadow:0 0 0 3px #2b8d760b}
.customer-registration-dialog .customer-company-details{background:linear-gradient(110deg,#eaf5f0,#f9fcfa);border-left:3px solid #258772;box-shadow:none}.customer-registration-dialog .customer-company-details summary{font-size:12px;color:#255d56}.customer-registration-dialog .customer-company-details summary small{font-size:10px;color:#74908b;font-weight:400}
.customer-registration-dialog .customer-import-actions{padding:10px;background:#fff;border:1px solid #d7e7e3;border-radius:12px;gap:7px;box-shadow:0 2px 6px #173d4e03}.customer-registration-dialog .customer-import-actions button{border-radius:8px;min-width:0;padding:8px 12px;min-height:34px;font-size:11px;background:#edf7f2;border-color:#d2e6dc;color:#246959}.customer-registration-dialog .customer-import-actions .customer-analysis-action{background:#fffaec;border-color:#eaddb6;color:#7b6029}.customer-registration-dialog .customer-import-actions .customer-block-action{background:#fff8f7;border-color:#eddbd7;color:#a16660}
.customer-registration-dialog .acp-score-card{border-color:#d7e7e0;border-radius:12px;background:linear-gradient(120deg,#eef7f2,#fff);box-shadow:none}.customer-registration-dialog .acp-score-card h3{font-size:15px;color:#20534d}.customer-registration-dialog .acp-score-visual>strong{font-size:23px}
.customer-context{border-left:1px solid #bbd6cd;background:#edf4f2;padding:20px 18px;scrollbar-width:thin;scrollbar-color:#b4d2c6 transparent}.customer-context>header{padding:0 2px 4px}.customer-context h3{font-size:18px;color:#214b51}.customer-context header p{font-size:11px;color:#69838b}.customer-context-card{border-color:#d8e7e1;border-radius:14px;padding:15px;box-shadow:0 3px 10px #153f4204;margin-bottom:14px}.customer-context h4{display:flex;align-items:center;gap:8px;font-size:12px;color:#244f56;margin-bottom:14px}.customer-context h4 svg{color:#278573;flex:none}.customer-context-card:nth-of-type(1){background:linear-gradient(145deg,#173f4e,#1e665b);border-color:#245b60;box-shadow:0 7px 17px #153f4214}.customer-context-card:nth-of-type(1) h4{color:#f1fff9}.customer-context-card:nth-of-type(1) h4 svg{color:#b9e6d8}.customer-context-card:nth-of-type(1) dt{color:#b3d2d0}.customer-context-card:nth-of-type(1) dd{color:#f2faf7;font-weight:500}.customer-context-card:nth-of-type(1) .customer-context-empty{color:#c4ddd6}.customer-context-card:nth-of-type(1) dl{grid-template-columns:1fr 1fr;gap:15px 12px}
.customer-context-card:nth-of-type(2){background:linear-gradient(135deg,#fff,#f4f8fc)}.customer-context textarea{border:1px solid #d9e5e0;border-radius:9px;background:#fcfefd}.customer-comment{background:#f2f8f5;border:1px solid #e0ece5;border-radius:9px;padding:10px}.customer-change{border-top:0;border-left:2px solid #c4dfd3;padding:0 0 0 12px;margin:15px 0 4px}.customer-change>strong{color:#245b51}.customer-created-by{background:#edf5f2;border-color:#d8e8df;border-radius:9px}.customer-registration-dialog .customer-notes textarea{min-height:62px;border-radius:10px}
.customer-registration-dialog .dialog-actions{padding:14px 22px;background:#fff;border-top:1px solid #d8e7df;box-shadow:0 -4px 16px #173d4e04}.customer-registration-dialog .dialog-actions button{border-radius:9px;min-height:38px}.customer-registration-dialog .dialog-actions .primary{background:linear-gradient(120deg,#fbe18e,#f3cf62);border-color:#d7b652;color:#493f20;font-weight:700;box-shadow:0 3px 8px #b0933820}.customer-registration-dialog .dialog-actions .primary:hover:not(:disabled){background:#f3d26e;border-color:#c5a145}.customer-registration-dialog .dialog-actions .primary:disabled{opacity:.55;box-shadow:none}
@media(max-width:780px){.customer-registration-dialog{border-radius:14px}.customer-registration-dialog .dialog-head{padding:13px}.customer-dialog-title{gap:9px}.customer-title-icon{width:36px;height:36px;border-radius:10px}.customer-registration-dialog .dialog-head h2{font-size:18px}.customer-dialog-title p{font-size:10px}.customer-registration-dialog .dialog-body{padding:13px}.customer-context{padding:16px;border-left:0;border-top:1px solid #bbd6cd}.customer-registration-dialog .dialog-actions{padding:12px}.customer-registration-dialog .customer-field-group{padding:10px}.customer-registration-dialog .customer-import-actions button{flex:1}.customer-context-card:nth-of-type(1) dl{gap:12px}}

.customer-summary-credit{margin-top:16px;border-top:1px solid #ffffff24;padding-top:14px}.customer-summary-scores{display:grid;grid-template-columns:1fr 1fr;gap:10px}.customer-summary-scores>div{border:1px solid #ffffff28;border-radius:10px;padding:9px 6px;background:#ffffff0a;min-width:0;text-align:center}.customer-summary-scores .acp-score-card.score-compact{display:block;padding:0;margin:0;background:none;border:0;box-shadow:none;color:#fff}.customer-summary-scores .score-compact .acp-score-copy :is(.customer-form-eyebrow,p,strong),.customer-summary-scores .score-compact>small{display:none}.customer-summary-scores .score-compact .acp-score-copy h3{font-size:11px;color:#edfaf5;margin:0 0 9px;min-height:28px;line-height:1.3;letter-spacing:0}.customer-summary-scores .acp-score-visual svg{width:100%;max-height:82px}.customer-summary-scores .acp-score-visual text{fill:#c8ddd6}.customer-summary-scores .acp-score-visual>strong{font-size:18px;color:#fff;margin:3px 0 9px}.customer-summary-scores>div>small{display:block;font-size:9px;color:#b8d8cd}.customer-summary-scores time{display:block;font-size:10px;line-height:1.5;color:#e1efe9;margin-top:3px}.customer-credit-limit{display:grid;gap:5px;margin-top:12px;border-radius:9px;background:#ffffff0d;padding:12px}.customer-credit-limit>span{font-size:11px;color:#bfdcd1}.customer-credit-limit>strong{font-size:20px;color:#f7e4a0;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.customer-credit-limit>small{font-size:9px;color:#bdd7cf}

.customer-registration-dialog .customer-data-subheading{grid-column:1/-1;font-size:11px;font-weight:700;letter-spacing:.25px;color:#467c72;border-top:1px solid #e4eeea;padding-top:13px;margin:2px 0 0}.customer-registration-dialog .customer-data-subheading:first-child{border-top:0;padding-top:0;margin-top:0}.customer-history-authors{border-bottom:1px solid #e1ebe5;margin-bottom:14px}

.customer-completeness{padding:12px;border:1px solid #cfdfd7;background:#fafffc;border-radius:11px;margin-bottom:12px}.customer-completeness>div{display:flex;align-items:center;justify-content:space-between;gap:8px}.customer-completeness strong{font-size:11px;color:#285b50}.customer-completeness b{font-size:20px;color:#15775c}.customer-completeness progress{display:block;width:100%;height:7px;margin:10px 0 7px;accent-color:#238771;border:0;border-radius:10px;overflow:hidden}.customer-completeness progress::-webkit-progress-bar{background:#e3ede7}.customer-completeness progress::-webkit-progress-value{background:#238771;border-radius:10px}.customer-completeness small,.customer-completeness summary{font-size:10px;color:#52776b}.customer-completeness details{margin-top:8px}.customer-completeness details p,.customer-completeness li{font-size:11px;line-height:1.5}.customer-completeness ul{padding-left:18px;max-height:150px;overflow:auto}
.customer-registration-dialog .dialog-head{padding:11px 16px}.customer-registration-dialog .dialog-head h2{font-size:19px}.customer-dialog-title p{display:none}.customer-title-icon{width:36px;height:36px;border-radius:10px}.customer-registration-dialog .dialog-body{padding:12px 15px}.customer-edit-fields{gap:12px}.customer-registration-dialog .customer-field-group{padding:8px 11px 11px;border-radius:11px}.customer-registration-dialog .customer-field-grid{gap:8px 11px}.customer-registration-dialog .customer-field-grid label{gap:4px}.customer-registration-dialog .customer-field-grid :is(input,select,textarea){min-height:31px;padding:5px 8px;font-size:11px}.customer-registration-dialog .customer-data-subheading{padding-top:8px;margin-top:0;font-size:10px}.customer-registration-dialog .customer-import-actions{padding:7px}.customer-registration-dialog .customer-import-actions button{min-height:30px;padding:6px 9px}.customer-registration-dialog .acp-score-card:not(.score-compact){grid-template-columns:minmax(150px,1fr) 165px;padding:11px;margin-bottom:9px;gap:8px 14px}.customer-registration-dialog .acp-score-visual svg{max-height:105px}.customer-registration-dialog .acp-score-card h3{margin:3px 0 8px}.customer-context{padding:13px}.customer-context>header{margin-bottom:10px}.customer-context-card{padding:12px;margin-bottom:10px;border-radius:11px}.customer-context dl{gap:8px}.customer-context-card:nth-of-type(1) dl{gap:10px}.customer-registration-dialog .dialog-actions{padding:10px 15px}.customer-registration-dialog .dialog-actions button{min-height:33px;padding:7px 12px}.customer-section-icon{width:23px;height:23px}.customer-registration-dialog .customer-notes textarea{min-height:45px}.customer-registration-dialog .scpc-saved{padding:9px;margin:8px 0}
@media(max-width:520px){.customer-registration-dialog .acp-score-card:not(.score-compact){grid-template-columns:1fr}.customer-registration-dialog .dialog-actions{flex-wrap:wrap}.customer-registration-dialog .dialog-actions button{flex:1}}
/* Shared consultation and import presentation. */
.receita-unified-dialog{display:flex;flex-direction:column}
.receita-unified-dialog:not([open]){display:none}
.receita-unified-body{overflow:auto;min-height:0;padding:16px 18px;background:#f7fafb;display:grid;gap:14px}
.receita-unified-body iframe{width:100%;height:45dvh;min-height:280px;border:1px solid #dce7e2;border-radius:8px;margin-top:12px;background:white}
.receita-import-step>h3{font-size:14px;color:#174d40;margin:0 0 10px}
.receita-import-step>.cnpj-import-dialog{width:100%;max-height:none;border:0;border-radius:0;box-shadow:none;overflow:visible}
.receita-import-step>.cnpj-import-dialog>form{max-height:none}
.receita-import-step .cnpj-import-body{padding:0;overflow:visible}
.receita-import-step footer{padding:12px 0 0;margin-top:12px}
.customer-import-actions .customer-cnpj-lookup,.customer-import-actions>button:first-child.customer-analysis-action{background:#edf7f2;border:1px solid #9bcbbb;color:#17634e}
.customer-origin-badge{display:inline-block!important;padding:3px 7px;border:1px solid #b9d8ca;border-radius:6px;background:#edf7f1;color:#175744;font-size:11px;margin:4px 4px 0 0}
.customer-sync-warning{display:block;color:#945613;max-width:320px;font-size:11px;line-height:1.4;margin-top:5px}
.customer-completeness{--completion-color:#c15a60;--completion-bg:#fff2f2}
.customer-completeness[data-rank=orange]{--completion-color:#ba7625;--completion-bg:#fff7eb}
.customer-completeness[data-rank=yellow]{--completion-color:#967b13;--completion-bg:#fffbea}
.customer-completeness[data-rank=green]{--completion-color:#16794d;--completion-bg:#edf9f1}
.customer-completeness{background:var(--completion-bg)}
.customer-completeness b{color:var(--completion-color)}
.customer-completeness progress{accent-color:var(--completion-color)}
.customer-completeness progress::-webkit-progress-value{background:var(--completion-color)}
.customer-completeness progress::-moz-progress-bar{background:var(--completion-color)}
.customer-complete-button{width:100%;margin:10px 0 4px;border:1px solid currentColor!important;color:var(--completion-color)!important;background:#fff!important;font-weight:600}
.customer-completion-dialog{width:min(880px,calc(100vw - 24px))!important}
.customer-completion-dialog .customer-dialog-columns{grid-template-columns:minmax(0,1fr)}
.customer-completion-dialog .customer-required-note>button{margin-right:10px}
.topbar-productivity-notifications{display:flex;align-items:center;gap:8px;flex-shrink:0;min-height:42px;padding:6px 10px;border:1px solid #c8ddd5;border-radius:8px;background:#f0f7f4;color:#205648;text-decoration:none;box-sizing:border-box}
.topbar-productivity-notifications strong{display:block;font-size:12px;line-height:1.3}
.topbar-productivity-notifications small{display:block;font-size:10px;margin-top:2px}
.topbar-productivity-notifications b{border-radius:20px;min-width:21px;padding:3px 6px;text-align:center;background:#176c59;color:white;font-size:11px}
.topbar-productivity-notifications.has-pending{background:#fff0b8;border-color:#d4aa38;color:#654907;box-shadow:0 2px 7px #b68b1826}
.topbar-productivity-notifications:focus-visible{outline:3px solid #167960;outline-offset:3px}
@keyframes productivity-notification-glow{0%,100%{box-shadow:0 0 0 0 #d5a73110}50%{box-shadow:0 0 0 4px #d5a73124}}
@keyframes productivity-notification-bell{0%,70%,100%{transform:rotate(0)}76%{transform:rotate(-14deg)}82%{transform:rotate(14deg)}88%{transform:rotate(-8deg)}94%{transform:rotate(8deg)}}
@media(prefers-reduced-motion:no-preference){.topbar-productivity-notifications.has-pending{animation:productivity-notification-glow 3s ease-in-out infinite}.topbar-productivity-notifications.has-pending>svg{animation:productivity-notification-bell 4s ease-in-out infinite;transform-origin:top center}}
@media(max-width:1200px){header.app-topbar{flex-wrap:wrap;gap:10px}}
@media(max-width:600px){.topbar-productivity-notifications{padding:6px 8px;gap:6px}.topbar-productivity-notifications small{font-size:9px}}
.reminder-delete-dialog{width:min(430px,calc(100vw - 24px));border-radius:14px}
.reminder-delete-dialog blockquote{margin:12px 0 0;padding:12px;border-left:3px solid #c97a74;background:#fff5f3;border-radius:6px;overflow-wrap:anywhere;font-weight:600}
#convites-pendentes{scroll-margin-top:24px}
.home-invitation,.has-pending-invitation{border-color:#d3a33c!important;background:#fff1b8}
@keyframes invitation-attention{0%,100%{background-color:#fff5d0;box-shadow:inset 3px 0 0 #dfa313,0 0 0 0 #d9a32c00}50%{background-color:#ffe17a;box-shadow:inset 3px 0 0 #b47b00,0 0 0 3px #d9a32c38}}
@media(prefers-reduced-motion:no-preference){.home-invitation,.has-pending-invitation{animation:invitation-attention 2.6s ease-in-out infinite}}

.ml-site-label,.ml-site-toggle{background:#ffdf00;color:#123568;border:1px solid #e5be00;font-weight:800;border-radius:6px;padding:4px 9px;white-space:nowrap}.ml-site-toggle[aria-pressed="true"]{box-shadow:0 0 0 2px #123568 inset}.ml-site-toggle:hover:not(:disabled){background:#ffe735}.ml-site-toggle:focus-visible{outline:3px solid #123568;outline-offset:2px}.new-order-ml-site{padding:9px;border:1px solid #eadb80;border-radius:8px;background:#fffceb}

.commercial-block-notice{max-width:480px;width:calc(100vw - 32px)}.commercial-block-notice .dialog-head{border-top:4px solid #aa2785}.commercial-block-notice .dialog-body{line-height:1.6}

/* Keep order tags together without squeezing the CD name into a narrow column. */
.production-origin{flex-wrap:wrap}
.production-origin>svg{flex-shrink:0}
.production-origin>div{flex:1 1 100px;overflow-wrap:normal}
.order-card-flags{display:inline-flex;flex:0 0 auto;align-items:center;gap:4px;margin-left:auto;white-space:nowrap}
.order-card-flags .order-flags{margin:0;gap:4px;flex-wrap:nowrap}
.order-flags>.ml-site-label,.order-card-flags>.production-origin-urgent{box-sizing:border-box;height:25px;min-height:25px;padding:3px 6px;font-size:10px;font-weight:600;line-height:1.3;border-radius:5px;display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;margin:0}
.order-card-flags>.production-origin-urgent{border:1px solid #e3a1a1;background:#fff1f1;color:#a11c27}
.order-card-flags>.production-origin-urgent[aria-pressed="true"]{background:#b91c1c;border-color:#b91c1c;color:#fff;opacity:1}
.order-card-flags>.production-origin-urgent[hidden]{display:none}

.production-origin.production-origin-three-flags{flex-wrap:nowrap;gap:4px;padding-left:5px;padding-right:5px}
.production-origin-three-flags>svg{width:12px;height:12px}
.production-origin.production-origin-three-flags>div{flex:1 1 auto;min-width:0;overflow:hidden}
.production-origin.production-origin-three-flags strong{font-size:10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin:0}
.production-origin-three-flags .order-card-flags,.production-origin-three-flags .order-flags{gap:3px}
.production-origin-three-flags .order-card-flags>.production-origin-urgent,.production-origin-three-flags .order-flags>span{height:21px;min-height:21px;padding:2px 4px;font-size:9px;line-height:1.2;border-radius:4px}
.knowledge-hero{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:24px;border:1px solid #dbd4ed;border-radius:14px;background:linear-gradient(115deg,#f1edfc,#f8fafc);margin-bottom:16px}.knowledge-hero h2{display:flex;gap:10px;align-items:center;color:#453367;margin:8px 0}.knowledge-hero p{margin:0;color:#627080}.knowledge-eyebrow{color:#705493;letter-spacing:.14em;font-size:10px;font-weight:700}.knowledge-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:20px}.knowledge-metrics>div{display:flex;gap:12px;align-items:center;padding:16px;background:#fff;border:1px solid #e1ddec;border-radius:10px}.knowledge-metrics strong{font-size:26px;color:#694898}.knowledge-metrics span{font-size:12px;color:#607083}.knowledge-filters{display:grid;grid-template-columns:2fr 1fr;gap:12px;margin-bottom:16px}.knowledge-filters label,.knowledge-editor>label,.knowledge-lesson>label{display:flex;flex-direction:column;gap:6px}.knowledge-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,280px),1fr));gap:16px}.knowledge-course{padding:20px;display:flex;flex-direction:column;gap:10px}.knowledge-course h3,.knowledge-course p{margin:0}.knowledge-course p{color:#627080;line-height:1.5;flex:1;white-space:pre-wrap}.knowledge-course-top{display:flex;align-items:center;gap:8px;color:#7452a0;font-size:11px}.knowledge-course-top b{margin-left:auto;background:#fff0c5;color:#795412;padding:3px 7px;border-radius:6px}.knowledge-progress-label{display:flex;justify-content:space-between;margin-top:10px;font-size:12px}.knowledge-area progress{width:100%;height:8px;accent-color:#7954b2}.knowledge-course .inline-actions{margin-top:10px}.knowledge-empty{text-align:center;padding:40px;color:#69788a}.knowledge-dialog{width:min(820px,calc(100vw - 24px));max-width:820px}.knowledge-lesson{padding:16px;background:#f8f9fc;border:1px solid #e2ddee;border-radius:10px;margin:14px 0}.knowledge-lesson h3{display:flex;align-items:center;color:#493965;margin:0 0 12px}.knowledge-lesson-content{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.65}.knowledge-material{display:inline-flex;align-items:center;gap:7px;margin:8px 0}.knowledge-lesson>label.knowledge-complete,.knowledge-editor>label.knowledge-complete{display:flex;flex-direction:row;align-items:center;gap:8px;margin:14px 0 4px}.knowledge-complete input{width:auto}.knowledge-editor{border:0;margin:0;min-width:0}.knowledge-lesson>label{margin:12px 0}.knowledge-welcome{padding:24px}.knowledge-welcome a{display:inline-flex;margin-top:12px}@media(max-width:600px){.knowledge-hero{align-items:flex-start;flex-direction:column}.knowledge-metrics{gap:6px}.knowledge-metrics>div{padding:10px;flex-direction:column;align-items:flex-start}.knowledge-filters{grid-template-columns:1fr}}
.finance-analysis-table-wrap{overflow-x:auto;border:1px solid #dce6e9;border-radius:9px;background:#fff}.finance-analysis-table{width:100%;border-collapse:collapse;text-align:left;font-size:12px;min-width:720px}.finance-analysis-table th{background:#edf4f3;color:#365c61;padding:11px 12px;font-size:11px;white-space:nowrap}.finance-analysis-table td{padding:12px;border-top:1px solid #e3e9e9;vertical-align:middle}.finance-analysis-table td:first-child{border-left:3px solid transparent}.finance-analysis-table td:first-child strong{display:block;max-width:320px;overflow-wrap:anywhere}.finance-analysis-table small{display:block;margin-top:4px;color:#597184;font-size:11px}.finance-analysis-table .finance-analysis-reason{max-width:260px;white-space:pre-wrap;overflow-wrap:anywhere}.finance-analysis-table .finance-analysis-pending{background:#fff7da;animation:finance-analysis-highlight 2.6s ease-in-out infinite}.finance-analysis-table .finance-analysis-pending td:first-child{border-left-color:#dfa817}.finance-analysis-table .customer-request-status{white-space:nowrap}.finance-analysis-dot{display:inline-block;width:7px;height:7px;margin-right:6px;background:#cb8505;border-radius:50%;vertical-align:middle;animation:finance-analysis-dot 2.6s ease-in-out infinite}.finance-analysis-count-pending{box-shadow:0 0 0 3px #fbe6a0}.finance-analysis-table td:last-child button{white-space:nowrap}.finance-analysis-table tr:focus-within{outline:2px solid #24796b;outline-offset:-2px}@keyframes finance-analysis-highlight{0%,100%{background:#fff9e8}50%{background:#ffecb0}}@keyframes finance-analysis-dot{0%,100%{opacity:1}50%{opacity:.4}}@media(prefers-reduced-motion:reduce){.finance-analysis-table .finance-analysis-pending,.finance-analysis-dot{animation:none}}
.task-care-list-button{display:inline-flex;align-items:center;gap:7px;background:#e8f5ef;border:1px solid #a5d5c5;color:#145d50;white-space:nowrap}.task-care-list-button span{background:#177762;color:#fff;min-width:22px;border-radius:15px;padding:2px 6px;font-size:11px}.task-care-dialog{width:min(1080px,calc(100vw - 24px));max-width:1080px}.task-care-table-wrap{overflow-x:auto}.task-care-table{width:100%;min-width:760px;border-collapse:collapse;font-size:12px;text-align:left}.task-care-table th{padding:12px;background:#eef5f3;color:#375e64;white-space:nowrap}.task-care-table td{padding:12px;border-bottom:1px solid #e3eae8;vertical-align:middle}.task-care-table td:first-child{max-width:320px;overflow-wrap:anywhere}.task-care-table small{display:block;color:#6d7f88;margin-top:4px}.task-care-time{display:inline-block;background:#eaf5ef;color:#176e54;padding:5px 8px;border-radius:6px;white-space:nowrap}.task-care-overdue{background:#fff6f4}.task-care-time.overdue{color:#ad3630;background:#ffe3dd;font-weight:700}.task-care-dialog .dialog-head small{display:block;margin-top:5px;color:#647c83}@media(max-width:700px){.task-section>.panel-head{flex-wrap:wrap;gap:10px}}
/* Product development: shared module identity and responsive costing workspace. */
[data-module="development"]{--module-color:#d48c34;--module-soft:#fff1dd}
.development-area{max-width:1500px;margin:auto;color:#234855}.development-area label{display:grid;gap:6px;font-size:12px;font-weight:600}.development-area :is(input,select,textarea){width:100%;min-width:0;border:1px solid #cbdddd;border-radius:7px;padding:9px;background:#fff;color:#244955}.development-area input[type=checkbox]{width:auto}.development-area button,.development-cost-link{display:inline-flex;align-items:center;justify-content:center;gap:6px;border-radius:7px;padding:9px 12px;font-size:12px}.development-area button:disabled{opacity:.5;cursor:not-allowed}.development-area small{font-size:11px;color:#6b828b;font-weight:400}.development-area .panel{border:1px solid #d9e7e7;border-radius:13px;background:#fff;box-shadow:0 3px 12px #234d5705}.development-hero{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:22px;background:linear-gradient(120deg,#edf7f3,#fff9ef);border:1px solid #d6e6df;border-radius:15px;margin-bottom:14px}.development-hero small{letter-spacing:1.7px;font-size:10px;color:#78804c}.development-hero h2{display:flex;gap:10px;align-items:center;margin:8px 0;font-size:23px}.development-hero p{font-size:12px;margin:5px 0;color:#678087}.development-hero .inline-actions{flex-wrap:wrap;justify-content:flex-end}.development-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:14px;margin:12px 0}.development-fields label>span{display:flex;gap:5px;align-items:center}.development-kpis{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:20px 0}.development-kpis>div{display:grid;gap:6px;padding:18px;border:1px solid #d7e5e5;border-radius:12px;background:#fff}.development-kpis strong{font-size:26px;color:#157360}.development-kpis span{font-size:12px;color:#647e87}.development-table-wrap{overflow:auto}.development-table{width:100%;border-collapse:collapse;min-width:720px}.development-table th{text-align:left;font-size:11px;background:#eff6f5;padding:13px}.development-table td{padding:14px;border-bottom:1px solid #e6eeee;font-size:12px}.development-table td small{display:block;margin-top:5px}.development-table td:first-child{max-width:330px;overflow-wrap:anywhere}.development-origin{display:inline-block;padding:4px 8px;background:#eaf4f0;color:#20705f;border-radius:20px;font-size:10px}.development-cost-link{border:1px solid #bad9ce;color:#126653;background:#f0faf5;text-decoration:none;white-space:nowrap}.development-check{display:flex!important;align-items:center;gap:9px!important;margin:16px 0;padding:12px;background:#eff7f3;border-radius:8px;line-height:1.5}.development-check input{flex:none}.development-variant{display:grid;grid-template-columns:1fr 1fr auto;gap:10px;align-items:end;margin:12px 0}.development-product-dialog{width:min(1050px,95vw);max-width:1050px;max-height:92vh;overflow:auto;padding:0;border:1px solid #cbdedb;border-radius:15px}.development-product-dialog::backdrop{background:#102e4266;backdrop-filter:blur(3px)}.development-product-dialog :is(.dialog-head,.dialog-actions){display:flex;align-items:center;justify-content:space-between;padding:18px 22px;border-bottom:1px solid #dce8e5}.development-product-dialog .dialog-actions{justify-content:flex-end;gap:10px;border-top:1px solid #dce8e5}.development-product-dialog h2{font-size:19px;margin:0}.development-product-columns{display:grid;grid-template-columns:minmax(0,2fr) minmax(230px,1fr);gap:22px;padding:22px}.development-product-columns fieldset{border:0;padding:0;min-width:0}.development-product-columns aside{border-left:1px solid #d7e5df;padding-left:20px;font-size:12px}.development-product-columns aside article{padding:12px 0;border-bottom:1px solid #e2ece8}.development-product-columns aside small{display:block;margin-top:6px;overflow-wrap:anywhere}.development-product-columns h3{font-size:14px}.cost-selector{padding:18px;margin:16px 0}.cost-product-summary{display:grid;gap:6px;padding-top:12px;border-top:1px solid #e1ebe8;font-size:12px}.cost-toolbar{display:flex;gap:12px;align-items:end;flex-wrap:wrap}.cost-toolbar>label{flex:1;min-width:190px}.cost-toolbar .inline-actions{flex-wrap:wrap}.cost-state-line{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:12px 0;font-size:11px}.cost-unsaved{color:#936516;background:#fff3d9;padding:5px 9px;border-radius:6px}.cost-saved{color:#16755e;background:#e8f5ee;padding:5px 9px;border-radius:6px}.cost-tabs{display:flex;gap:5px;flex-wrap:wrap;padding:7px;background:#eaf2f1;border-radius:11px;margin:18px 0}.cost-tabs button{border:0;background:transparent;color:#547379}.cost-tabs button[aria-current]{background:#fff;color:#146d5b;box-shadow:0 2px 6px #294d4e12;font-weight:700}.cost-workspace{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:20px;align-items:start}.cost-inputs{min-width:0}.cost-section{padding:20px;margin:0 0 16px}.cost-section header{display:flex;justify-content:space-between;gap:10px;align-items:center;flex-wrap:wrap}.cost-section h3{font-size:15px;margin:4px 0 12px}.cost-section p{font-size:12px;line-height:1.65;color:#6d8287}.cost-edit-table{width:100%;min-width:610px;border-collapse:collapse}.cost-edit-table th{font-size:10px;text-align:left;padding:10px 5px;background:#f1f7f5}.cost-edit-table td{padding:8px 4px;font-size:11px}.cost-edit-table td:first-child{min-width:140px}.cost-edit-table td:nth-child(2){min-width:55px;max-width:65px}.cost-edit-table input{padding:8px 5px;font-size:12px}.cost-line-card{border:1px solid #deebe6;padding:14px;border-radius:9px;margin-top:12px;background:#fbfdfc}.cost-line-total{display:flex;align-items:center;justify-content:space-between;font-size:12px;gap:10px}.cost-results{position:sticky;top:16px;display:grid;gap:14px}.cost-results>.panel{padding:18px;margin:0}.cost-results h3{font-size:14px;margin:0 0 12px}.cost-result-main{background:linear-gradient(145deg,#173f48,#186a58)!important;color:#fff}.cost-result-main :is(small,p){color:#c0ded6}.cost-margin{font-size:40px;line-height:1.2;font-weight:750;letter-spacing:-1.5px}.cost-result-main .negative{color:#ffc2b9}.cost-result-pair{display:flex;justify-content:space-between;gap:8px;font-size:12px;margin:12px 0}.cost-target{border-top:1px solid #ffffff35;padding-top:14px;margin-top:14px;display:grid;gap:7px}.cost-target strong{font-size:23px}.cost-target button{color:#125e4e;background:#e7f7e6;border:0}.cost-warnings{padding:13px 16px;background:#fff8e8;border:1px solid #f2dfb7;border-radius:10px;color:#8c6423;font-size:11px;line-height:1.6}.cost-warnings p{margin:5px 0}.cost-breakdown{font-size:12px}.cost-breakdown>div{display:flex;justify-content:space-between;gap:10px;padding:8px 0;border-bottom:1px solid #e6efeb}.cost-breakdown dt{color:#688087}.cost-breakdown dd{margin:0;text-align:right;font-weight:600}.cost-waterfall{display:flex;height:12px;overflow:hidden;border-radius:6px;margin:14px 0;background:#e7eeeb}.cost-waterfall span{height:100%}.cost-tax-heading{display:flex;gap:10px;align-items:center;justify-content:space-between}.cost-reviewed,.cost-unreviewed{font-size:10px;padding:5px 8px;border-radius:20px;background:#e9f6ec;color:#217157}.cost-unreviewed{background:#fff1d6;color:#906615}.cost-tax-note{padding:12px;border-left:3px solid #dbb362;background:#fff9ec;font-size:11px;line-height:1.65;margin:12px 0}.cost-comparison{width:100%;min-width:620px;border-collapse:collapse;font-size:12px}.cost-comparison th,.cost-comparison td{text-align:right;padding:12px 8px;border-bottom:1px solid #e2ebe8}.cost-comparison th:first-child,.cost-comparison td:first-child{text-align:left}.cost-comparison th{background:#eff7f2;font-size:11px}.cost-comparison small{display:block}.cost-price-cases{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:16px}.cost-price-cases>div{display:grid;gap:8px;border:1px solid #d9e8e0;background:#f6fbf8;border-radius:10px;padding:14px;font-size:12px}.cost-guide{line-height:1.8;font-size:12px}.cost-guide h4{color:#1a705b}.cost-guide li{margin:8px 0}.cost-guide a{color:#17715e;text-decoration:underline}.development-area .negative{color:#b23e40}.development-area .positive{color:#147456}.development-area :is(button,a,input,select,textarea):focus-visible{outline:2px solid #198975;outline-offset:2px}
@media(max-width:1200px){.cost-workspace{grid-template-columns:minmax(0,1fr) 280px}.cost-section{padding:15px}.development-hero{align-items:start;flex-direction:column}}
@media(max-width:960px){.cost-workspace{grid-template-columns:1fr}.cost-results{position:static;grid-template-columns:repeat(2,minmax(0,1fr))}.cost-results>div:first-child{grid-column:1/-1}.development-product-columns{grid-template-columns:1fr}.development-product-columns aside{border-left:0;border-top:1px solid #d7e5df;padding:14px 0}}
@media(max-width:600px){.cost-results,.development-kpis,.cost-price-cases{grid-template-columns:1fr}.development-hero{padding:16px}.cost-toolbar{display:grid}.development-fields{grid-template-columns:1fr}.cost-tabs button{flex:1 0 40%}.development-variant{grid-template-columns:1fr 1fr auto}.development-product-columns{padding:15px}}
.development-area .cost-result-main .positive{color:#b6edb2}.cost-result-main .cost-margin{display:block;margin:12px 0 7px}.cost-result-main>span{display:block;font-size:12px;line-height:1.5;color:#dfefea}.cost-result-pair>div{display:grid;gap:6px}.cost-result-pair>div:last-child{text-align:right}.cost-warnings{margin-top:14px}.cost-warnings ul{margin:4px 0;padding-left:17px}.cost-results .cost-result-main .negative{color:#ffc2b9}
.cost-form-controls{display:contents;border:0;padding:0;margin:0;min-width:0}
.minutes-entry-card{display:flex;align-items:center;gap:14px;padding:17px 20px;margin:0 0 16px;border:1px solid #cbdde8;border-left:4px solid #357eb5;border-radius:12px;background:linear-gradient(110deg,#edf5fd,#f7fcfb);color:#224d68;text-decoration:none}.minutes-entry-card>div{flex:1;display:grid;gap:5px}.minutes-entry-card span{font-size:12px;color:#668293}.minutes-area{max-width:1450px;margin:auto}.minutes-hero{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:22px;border:1px solid #d2e2ec;border-radius:14px;background:linear-gradient(120deg,#edf5ff,#f1faf5)}.minutes-hero h2{display:flex;align-items:center;gap:10px;font-size:23px;margin:8px 0}.minutes-hero small,.minutes-dialog small{font-size:10px;letter-spacing:.6px;color:#688292}.minutes-hero p{font-size:12px;color:#69818e}.minutes-area button,.minutes-dialog button,.minutes-discard button{display:inline-flex;gap:7px;align-items:center;justify-content:center;border-radius:7px;padding:9px 12px;font-size:12px}.minutes-kpis{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:18px 0}.minutes-kpis>div{display:grid;gap:6px;padding:18px;border:1px solid #d8e5ed;background:#fff;border-radius:11px;font-size:12px;color:#607d8f}.minutes-kpis strong{font-size:27px;color:#286184}.minutes-list{padding:20px;border-radius:12px}.minutes-list h3{font-size:16px;margin:0 0 12px}.minutes-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:12px 0}.minutes-area label,.minutes-dialog label{display:grid;gap:6px;font-size:12px;color:#355b6a}.minutes-area :is(input,select,textarea),.minutes-dialog :is(input,select,textarea){width:100%;min-width:0;padding:9px;border:1px solid #cbdce2;border-radius:7px;background:#fff;color:#254b5c}.minutes-table-wrap{overflow:auto}.minutes-list table{width:100%;border-collapse:collapse;min-width:650px}.minutes-list th{text-align:left;font-size:11px;padding:12px;background:#f0f6fa}.minutes-list td{padding:14px 12px;font-size:12px;border-bottom:1px solid #e3edf1}.minutes-list td small{display:block;color:#78909d;margin-top:5px}.minutes-status{display:inline-block;padding:5px 9px;border-radius:20px;background:#fff1d9;color:#8a681f;font-size:11px}.minutes-status.completed{background:#e7f5ed;color:#217252}.minutes-empty{padding:22px;text-align:center;font-size:12px;color:#7b929d}.minutes-dialog{padding:0;width:min(1100px,95vw);max-width:1100px;max-height:92vh;overflow:auto;border:1px solid #cbdde3;border-radius:15px;color:#234c60}.minutes-dialog::backdrop,.minutes-discard::backdrop{background:#14384788;backdrop-filter:blur(3px)}.minutes-dialog .dialog-head{position:sticky;top:0;z-index:2;background:#f4fafc;display:flex;justify-content:space-between;align-items:center;gap:15px;padding:18px 24px;border-bottom:1px solid #dce8ed}.minutes-dialog h2{font-size:20px;margin:5px 0}.minutes-dialog-body{padding:22px 24px}.minutes-dialog fieldset{border:0;padding:0;min-width:0}.minutes-dialog fieldset:disabled :is(input,select,textarea){background:#f5f8fa;color:#476577;opacity:1}.minutes-dialog .dialog-actions{position:sticky;bottom:0;background:#fff;border-top:1px solid #dfebef;display:flex;gap:10px;justify-content:flex-end;padding:15px 24px;flex-wrap:wrap}.minutes-action-section{margin-top:22px;border-top:1px solid #dbe8ed;padding-top:16px}.minutes-action-section>header,.minutes-action>header{display:flex;align-items:center;justify-content:space-between;gap:12px}.minutes-action-section h3{font-size:16px;margin:0}.minutes-action-section p{font-size:12px;color:#6e8591}.minutes-action{margin:14px 0;padding:18px;border:1px solid #d4e5e6;border-radius:11px;background:#f6fbfa}.minutes-action>header{margin-bottom:12px;font-size:13px}.minutes-task-state{padding:10px;background:#e5f1fa;border-radius:7px;line-height:1.6}.minutes-history{margin-top:18px;font-size:12px}.minutes-history p{padding:10px;border-bottom:1px solid #e5edf0}.minutes-history small{display:block;margin-top:4px}.minutes-discard{border:1px solid #ccdde5;border-radius:13px;padding:22px;color:#305265;max-width:450px}.minutes-discard .dialog-actions{display:flex;gap:10px;justify-content:flex-end}.minutes-area :focus-visible,.minutes-dialog :focus-visible{outline:2px solid #2e80b3;outline-offset:2px}@media(max-width:650px){.minutes-hero{align-items:start;flex-direction:column}.minutes-fields,.minutes-kpis{grid-template-columns:1fr}.minutes-dialog-body{padding:15px}.minutes-action{padding:12px}.minutes-entry-card{flex-wrap:wrap}.minutes-action-section>header{flex-wrap:wrap}}
.minutes-status.open{background:#e8f2ff;color:#2b6094}.minutes-area progress,.minutes-dialog progress{display:block;width:150px;max-width:100%;height:8px;margin:7px 0;accent-color:#258363}.minutes-progress-summary{padding:16px;background:#edf6fb;border:1px solid #cbdfea;border-radius:10px;margin-bottom:20px;font-size:12px}.minutes-progress-summary>strong{font-size:18px;color:#286582}.minutes-progress-summary>div{display:flex;gap:12px;align-items:center;flex-wrap:wrap;border-top:1px solid #d6e5ed;padding:12px 0}.minutes-progress-summary>div>strong{flex:1}.minutes-progress-summary a{color:#1a6c8f;text-decoration:underline}
/* Equal label and input tracks keep numeric cost fields aligned despite helper text. */
.development-area label.cost-numeric-field{display:grid;grid-template-rows:42px 38px auto;align-content:start;align-items:start;gap:6px}.development-area .cost-numeric-field>span{display:flex;align-items:flex-start;line-height:14px;font-size:12px}.development-area .cost-numeric-field>input{height:38px;margin:0;box-sizing:border-box}.development-area .cost-numeric-field>small{line-height:1.4;margin:0}.development-fields:has(>.cost-numeric-field){align-items:start}@media(max-width:600px){.development-area label.cost-numeric-field{grid-template-rows:auto 38px auto}.development-area .cost-numeric-field>span{min-height:0}}
.quality-content>.minutes-entry-card{flex-shrink:0}
[data-module="hr"]{--module-color:#c16eaa;--module-soft:#fceaf7}.hr-area{max-width:1550px;margin:auto;color:#284c59}.hr-hero{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:22px;background:linear-gradient(110deg,#f9f0f7,#edf8f4);border:1px solid #e2dce7;border-radius:14px}.hr-hero small{font-size:10px;letter-spacing:1.3px;color:#886c85}.hr-hero h2{display:flex;align-items:center;gap:10px;margin:8px 0;font-size:23px}.hr-hero p{font-size:12px;color:#768a90}.hr-area label,.hr-employee-dialog label{display:grid;gap:6px;font-size:12px;font-weight:600}.hr-area :is(input,select,textarea),.hr-employee-dialog :is(input,select,textarea){width:100%;min-width:0;border:1px solid #cbdcde;border-radius:7px;padding:9px;background:#fff;color:#294b58}.hr-area button,.hr-employee-dialog button,.hr-discard button{display:inline-flex;gap:6px;align-items:center;justify-content:center;padding:9px 12px;border-radius:7px;font-size:12px}.hr-area button:disabled,.hr-employee-dialog button:disabled{opacity:.5;cursor:not-allowed}.hr-kpis{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:18px 0}.hr-kpis>div{display:grid;gap:7px;padding:18px;border:1px solid #dee5e9;background:#fff;border-radius:11px;font-size:12px;color:#738590}.hr-kpis strong{font-size:25px;color:#236b62}.hr-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:13px;margin:14px 0}.hr-check{display:flex!important;align-items:center;gap:9px!important;font-size:12px;margin:12px 0}.hr-check input{width:auto!important}.hr-table-wrap{overflow:auto;border-radius:11px}.hr-table{width:100%;border-collapse:collapse;min-width:680px}.hr-table th{background:#eff6f5;font-size:11px;text-align:left;padding:13px}.hr-table td{font-size:12px;padding:13px;border-bottom:1px solid #e3eded}.hr-table small{display:block;color:#7b8c95;font-size:11px;margin-top:5px}.hr-empty{padding:22px;text-align:center;font-size:12px;color:#7b9098}.hr-employee-dialog{width:min(1320px,96vw);max-width:1320px;max-height:94vh;overflow:auto;padding:0;border:1px solid #cbdcdd;border-radius:15px;color:#2d5260}.hr-employee-dialog::backdrop,.hr-discard::backdrop{background:#183b4988;backdrop-filter:blur(3px)}.hr-employee-dialog .dialog-head{position:sticky;top:0;z-index:3;background:#f5faf9;display:flex;align-items:center;justify-content:space-between;padding:17px 22px;border-bottom:1px solid #dce7e5}.hr-employee-dialog h2{margin:5px 0;font-size:20px}.hr-employee-dialog small{font-size:11px;color:#7c8e96}.hr-employee-columns{display:grid;grid-template-columns:minmax(0,1fr) 325px;gap:20px;padding:20px;background:#f7faf9}.hr-employee-main,.hr-employee-main fieldset{min-width:0;border:0;margin:0;padding:0}.hr-employee-side{border-left:1px solid #dce6e2;padding-left:18px;min-width:0}.hr-section{padding:17px;margin-bottom:15px;background:#fff;border:1px solid #dce8e5;border-radius:11px}.hr-section h3{display:flex;gap:7px;align-items:center;font-size:15px;margin:0 0 13px}.hr-section>header,.hr-leave>header{display:flex;justify-content:space-between;align-items:center;gap:12px}.hr-section label{margin-bottom:10px}.hr-hint{font-size:11px;line-height:1.6;color:#7c8d95}.hr-leave{background:#f6fbf9;border:1px solid #d5e7df;border-radius:9px;padding:14px;margin:12px 0;font-size:12px}.hr-leave-counts{display:flex;gap:15px;flex-wrap:wrap;margin:12px 0;font-size:12px}.hr-overdue,.hr-negative,.hr-negative strong{color:#b34845!important}.hr-comment,.hr-history{border-bottom:1px solid #e0eae6;padding:12px 0;overflow-wrap:anywhere;font-size:12px}.hr-comment p{white-space:pre-wrap;line-height:1.5;margin:0 0 5px}.hr-history p{margin:0 0 5px}.hr-doc-checks{margin:14px 0}.hr-doc-checks>div{display:flex;align-items:center;gap:9px;border:1px solid #efe2c5;background:#fff9ed;border-radius:7px;padding:10px;margin:8px 0;font-size:12px}.hr-doc-checks>div>span{font-size:18px;color:#ad8735}.hr-doc-checks .complete{background:#ecf7ef;border-color:#cee6d8}.hr-doc-checks .complete>span{color:#21775c}.hr-doc-checks small{display:block;margin-top:3px}.hr-document{padding:11px 0;border-bottom:1px solid #e1ebe7;font-size:12px;overflow-wrap:anywhere}.hr-document small{display:block;margin:5px 0}.hr-document>div{display:flex;gap:7px}.hr-document button{font-size:10px;padding:6px 9px}.hr-employee-dialog .dialog-actions{position:sticky;bottom:0;background:white;border-top:1px solid #d9e5df;display:flex;justify-content:flex-end;align-items:center;gap:10px;padding:15px 22px}.hr-employee-dialog .dialog-actions>span{flex:1;color:#956b26;font-size:12px}.hr-discard{max-width:500px;border:1px solid #cbdedc;border-radius:13px;padding:23px;color:#355766}.hr-discard .dialog-actions{display:flex;gap:10px;justify-content:flex-end}.hr-pay-toolbar{display:flex;align-items:end;gap:10px;flex-wrap:wrap;margin:18px 0}.hr-pay-toolbar>label{flex:1;min-width:180px}.hr-pill{background:#e9f1f6;border-radius:20px;padding:8px 12px;font-size:11px}.payroll-kpis{grid-template-columns:repeat(4,1fr)}.payroll-kpis strong{font-size:23px}.hr-formula{font-size:12px;color:#6a818b;padding:14px;border-left:3px solid #b281a4;background:#fbf5f9;line-height:1.7}.hr-pay-section{padding:18px;margin:18px 0;border-radius:12px}.hr-pay-section h3{font-size:16px;margin:0 0 12px}.hr-pay-table{min-width:1550px}.hr-pay-table td:first-child{min-width:180px;position:sticky;left:0;background:#f8fbfa;z-index:1}.hr-pay-table input[type=number]{width:100px}.hr-pay-table td:last-child input{min-width:200px}.hr-pay-table td.hr-net{background:#edf8f0;color:#236e56}.hr-pay-history{padding:16px;margin-top:18px;border-radius:10px;font-size:12px}.hr-pay-history small{display:block;color:#7b8e96;margin:5px 0}.hr-area :focus-visible,.hr-employee-dialog :focus-visible{outline:2px solid #2b8b7a;outline-offset:2px}@media(max-width:1050px){.hr-employee-columns{grid-template-columns:minmax(0,1fr) 290px}.payroll-kpis{grid-template-columns:repeat(2,1fr)}}@media(max-width:760px){.hr-employee-columns{grid-template-columns:1fr;padding:12px}.hr-employee-side{border-left:0;border-top:1px solid #dce6e2;padding:15px 0 0}.hr-hero{align-items:start;flex-direction:column}.hr-fields{grid-template-columns:1fr}.hr-kpis{grid-template-columns:1fr}.hr-employee-dialog .dialog-actions{flex-wrap:wrap}.hr-section>header{flex-wrap:wrap}}

.geo-schedule-form{display:flex;flex-wrap:wrap;align-items:end;gap:14px;margin:16px 0}.geo-schedule-form label{display:grid;gap:6px;min-width:150px}.geo-schedule-form input{min-height:38px}.geo-schedule-form button{min-height:38px}

/* Compact integration and maintenance settings; scoped to this screen. */
.production-geo-settings>.panel-head{padding:14px 18px}
.production-geo-settings .geo-settings-page{max-width:none;padding:12px 18px 14px}
.geo-settings-page>.hint{margin:0 0 10px}
.geo-settings-page .geo-schedule-card{grid-template-columns:minmax(0,1fr) auto;gap:8px 20px;margin:0;padding:12px 14px}
.geo-schedule-card>h3{font-size:14px;margin:0}
.geo-schedule-card>.hint{grid-column:1/-1;margin:0;line-height:1.4}
.geo-settings-page .geo-schedule-card form.geo-schedule-form{display:flex;flex-wrap:wrap;align-items:end;gap:10px;margin:2px 0 0;grid-column:1;grid-row:3}
.geo-schedule-card .geo-schedule-form label{min-width:125px;max-width:160px;flex:1;font-size:11px;gap:4px}
.geo-schedule-card .geo-schedule-form input,.geo-schedule-card .geo-schedule-form button{min-height:34px;height:34px}
.geo-schedule-card>.geo-sync-controls{grid-column:2;grid-row:3;align-self:end;padding-bottom:1px;gap:10px}
.geo-schedule-card .geo-sync-info{min-width:175px;font-size:10px}
.geo-settings-page .geo-import-tools{margin:10px 0 0;padding:10px 12px;gap:8px}
.geo-settings-page .geo-import-tools label{font-size:11px;gap:4px}
.geo-settings-page .geo-import-tools .hint{margin:0;align-self:center}
.maintenance-settings{grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:12px;margin-top:12px;align-items:start}
.maintenance-settings>.notice,.maintenance-settings>.maintenance-history{grid-column:1/-1}
.maintenance-settings .analysis-chart{padding:14px 18px;min-width:0;margin:0}
.maintenance-settings h2{font-size:16px}
.maintenance-settings .analysis-chart>p{font-size:12px;line-height:1.5;margin:6px 0 10px}
.maintenance-settings .analysis-chart>.hint{font-size:11px;margin:8px 0}
.maintenance-settings .table-wrap{margin-top:10px;max-height:190px;overflow:auto}
.maintenance-settings th,.maintenance-settings td{padding:9px 10px;font-size:11px}
.maintenance-settings .timeline{margin:8px 0 0;max-height:180px;overflow:auto}
.maintenance-settings .timeline li{padding-bottom:8px}
@media(max-width:850px){.geo-settings-page .geo-schedule-card{grid-template-columns:1fr}.geo-schedule-card>.geo-sync-controls{grid-column:1;grid-row:auto;justify-content:space-between}.maintenance-settings{grid-template-columns:1fr}}
@media(max-width:480px){.production-geo-settings .geo-settings-page{padding:10px}.geo-settings-page .geo-schedule-card{padding:10px}.geo-schedule-card .geo-schedule-form label{min-width:100px;max-width:none}.geo-schedule-form button{flex-basis:100%}.maintenance-settings .analysis-chart{padding:12px}}
/* Equal-sized notification cards in every top bar. */
.topbar-chat-slot .chat-launcher-card,.topbar-productivity-notifications{box-sizing:border-box;width:178px;min-width:178px;max-width:178px;height:52px;min-height:52px;padding:6px 9px;gap:7px;display:flex;align-items:center;border-radius:8px;flex-shrink:0}
.topbar-chat-slot .chat-launcher-card>span,.topbar-productivity-notifications>span{flex:1;min-width:0}
.topbar-chat-slot .chat-launcher-card strong,.topbar-productivity-notifications strong{font-size:12px;line-height:15px;font-weight:600}
.topbar-chat-slot .chat-launcher-card small,.topbar-productivity-notifications small{font-size:9px;line-height:12px;margin-top:1px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;white-space:normal}
.topbar-chat-slot .chat-launcher-card>svg,.topbar-productivity-notifications>svg{width:17px;height:17px;flex-shrink:0}
.topbar-chat-slot .chat-launcher-count,.topbar-productivity-notifications>b{box-sizing:border-box;min-width:22px;height:20px;padding:2px 5px;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;font-size:10px;line-height:16px;border-radius:20px}
@media(max-width:600px){.topbar-chat-slot .chat-launcher-card,.topbar-productivity-notifications{width:145px;min-width:145px;max-width:145px}}

.geo-sync-info .geo-pause-guidance{display:grid;gap:3px;margin:4px 0 0;padding:7px 9px;max-width:290px;border:1px solid #e9ce83;border-radius:6px;background:#fff8e3;color:#775716;font-size:10px;line-height:1.4}
.geo-sync-info .geo-pause-guidance strong{justify-self:start;text-align:left;white-space:normal;color:#76510b;font-size:10px}
.geo-pause-guidance>span{display:block}

.task-quality-origin-notice>a.primary{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;white-space:nowrap;text-decoration:none;min-height:36px;padding:9px 13px;border-radius:8px;font-size:12px;font-weight:600;line-height:1.3;background:#176b59;border:1px solid #176b59;color:#fff}
.task-quality-origin-notice>a.primary:hover{background:#115746}
.task-quality-origin-notice>a.primary:focus-visible{outline:3px solid #60a5fa;outline-offset:3px}
.task-release-dialog{max-width:460px}.task-release-dialog .dialog-body{display:grid;gap:12px;padding:18px}.task-release-dialog .dialog-body>strong{overflow-wrap:anywhere}.task-release-dialog .dialog-body p{margin:0;line-height:1.5}
@media(max-width:550px){.task-quality-origin-notice>a.primary{width:100%;box-sizing:border-box}}

.customer-analysis-return-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.customer-analysis-return-actions button{background:#fff7d9;color:#765611;border:1px solid #e2c76c;border-radius:7px;padding:8px 12px;font-size:12px}.customer-analysis-return-actions small{width:100%;color:#607789}
.customer-analysis-return-dialog{max-width:560px}.customer-analysis-return-dialog .dialog-body{display:grid;gap:12px;padding:18px}.customer-analysis-return-dialog label{display:grid;gap:6px}.customer-analysis-return-dialog select,.customer-analysis-return-dialog textarea{width:100%;border:1px solid #bfd3df;border-radius:7px;padding:9px;font:inherit}.customer-analysis-return-dialog p{margin:0;line-height:1.5}
.customer-reanalysis-flag{display:inline-flex;align-items:center;gap:5px;margin-top:5px;padding:4px 7px;border:1px solid #e8bf41;border-radius:6px;background:#fff2ad;color:#725207;font-size:10px;font-weight:600;white-space:nowrap}.customer-reanalysis-flag>span{color:#b88300;font-size:14px}.customer-correction-link{display:inline-flex;justify-self:start;padding:9px 12px;border:1px solid #9cbfb8;border-radius:7px;color:#176b59;background:#eef8f4;text-decoration:none}

.customer-list-completion{display:grid;gap:4px;max-width:230px;margin-top:6px;font-size:10px;color:#3e6065;--completion-tone:#b74742}.customer-list-completion>span:first-child{display:flex;align-items:center;justify-content:space-between;gap:12px}.customer-list-completion strong{font-size:11px;color:var(--completion-tone)}.customer-list-completion-track{display:block;height:4px;border-radius:4px;background:#e8eeed;overflow:hidden}.customer-list-completion-track>span{display:block;height:100%;background:var(--completion-tone)}.customer-list-completion.orange{--completion-tone:#b97518}.customer-list-completion.yellow{--completion-tone:#aa8a0d}.customer-list-completion.green{--completion-tone:#18816b}

.home-event-row.has-pending-invitation,.home-day-event.has-pending-invitation{border-left:3px solid #dca11c;color:#63460b}.home-event-row.has-pending-invitation .home-event-copy em{background:#ffd64e;color:#543500;font-weight:700;padding:2px 5px;border-radius:4px}
@media(prefers-reduced-motion:reduce){.home-invitation,.has-pending-invitation{animation:none!important;background:#ffe99c!important;box-shadow:inset 3px 0 0 #d49a12}}

.finance-customers .customer-analysis-badge{display:inline-flex;align-items:center;gap:7px;margin-top:6px;padding:7px 10px;border:1px solid #e6ad20;border-left:4px solid #d39400;border-radius:6px;background:#fff0b3;color:#694500;font-size:12px;font-weight:700;line-height:1.35;box-shadow:0 1px 3px #c8941720;white-space:nowrap}
.finance-customers .customer-analysis-badge>span:first-child{font-size:18px}

.geo-pending-panel .geo-pending-date{white-space:nowrap;font-variant-numeric:tabular-nums}.geo-pending-panel .geo-pending-date small{white-space:nowrap}

/* Daily CRM overview uses the shared Commercial module palette. */
.home-crm-summary{margin-block:24px 0;padding:16px;border:1px solid #e7d5ed;border-radius:14px;background:linear-gradient(125deg,#fff 55%,#fdf7ff);box-shadow:0 4px 18px #55316808;overflow:hidden}
.home-crm-summary .home-card-heading{gap:16px;flex-wrap:wrap;margin-bottom:12px}.home-crm-heading{display:flex;align-items:center;gap:12px}.home-crm-emblem{display:grid;place-items:center;width:38px;height:38px;border-radius:12px;flex-shrink:0;color:var(--module-color);background:var(--module-soft);border:1px solid #ebcff3}.home-crm-eyebrow{display:block;font-size:9px;letter-spacing:1.1px;font-weight:700;color:var(--module-color);margin-bottom:4px}.home-crm-summary h2{margin:0 0 4px;font-size:18px;color:#4b2557}.home-crm-heading small{font-size:11px;color:#7b6983}
.home-crm-open{display:inline-flex;align-items:center;gap:7px;padding:9px 13px;min-height:36px;border-radius:8px;background:var(--module-color);color:#fff;text-decoration:none;font-size:12px;font-weight:600;box-shadow:0 3px 8px #a21caf18}.home-crm-open:hover{filter:brightness(.93)}
.home-crm-counts{display:flex;flex-wrap:wrap;gap:8px;margin:0}.home-crm-summary>.home-crm-counts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin:0 0 12px;gap:8px;max-width:560px}.home-crm-counts>span{display:inline-flex;align-items:center;gap:6px;background:#f8f0fc;border:1px solid #eadcf2;border-radius:8px;padding:6px 9px;font-size:11px;color:#704383}.home-crm-summary>.home-crm-counts>span{padding:8px 10px;gap:7px}.home-crm-summary>.home-crm-counts b{font-size:19px;line-height:1;font-variant-numeric:tabular-nums}.home-crm-counts .overdue{color:#a05b26;background:#fff8f0;border-color:#f3e3cc}.home-crm-counts .completed{color:#237858;background:#f1faf5;border-color:#d7ecdf}
.home-crm-group{border-top:1px solid #eee4f2;margin-top:10px;padding-top:8px}.home-crm-group>summary{cursor:pointer;display:flex;align-items:center;gap:12px;flex-wrap:wrap;list-style:none}.home-crm-group>summary::-webkit-details-marker{display:none}.home-crm-group>summary>strong{display:flex;align-items:center;gap:8px;color:#62406e;font-size:13px}.home-crm-group>summary>.home-crm-counts{margin-left:auto}.home-crm-chevron{color:var(--module-color);transition:transform .15s}.home-crm-group:not([open]) .home-crm-chevron{transform:rotate(-90deg)}
.home-crm-items{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,250px),1fr));align-items:start;gap:7px;margin-top:8px}.home-crm-item{display:flex;justify-content:space-between;align-items:flex-start;gap:8px;padding:8px 10px;background:#fff;border:1px solid #e8deee;border-left:3px solid var(--module-color);border-radius:9px;text-decoration:none;color:#493754;transition:border-color .15s,box-shadow .15s}.home-crm-item:hover{border-color:#cba2d6;box-shadow:0 3px 10px #6b3da010}.home-crm-item span{min-width:0}.home-crm-item strong{display:block;overflow-wrap:anywhere;font-size:12px;line-height:1.3}.home-crm-item small{display:block;color:#7c7287;font-size:10px;line-height:1.3;margin-top:3px}.home-crm-item-meta{flex-shrink:0;text-align:right}.home-crm-item time{display:flex;align-items:center;justify-content:flex-end;gap:4px;font-size:11px;color:#755b86;white-space:nowrap}.home-crm-item-meta small{padding:2px 5px;border-radius:5px;background:#f7effb;color:#814b96}.home-crm-item.overdue{border-left-color:#db923d}.home-crm-item.overdue .home-crm-item-meta small{color:#995f26;background:#fff5e7}.home-crm-item.completed{border-left-color:#419973}.home-crm-item.completed .home-crm-item-meta small{color:#277657;background:#edf8f1}.home-crm-summary :is(a,summary):focus-visible{outline:2px solid var(--module-color);outline-offset:3px}
@media(max-width:600px){.home-crm-summary{padding:15px}.home-crm-summary>.home-crm-counts{gap:6px}.home-crm-summary>.home-crm-counts>span{flex-direction:column;align-items:flex-start;font-size:10px;padding:10px}.home-crm-group>summary>.home-crm-counts{order:3;width:100%;margin-left:0}.home-crm-chevron{margin-left:auto}.home-crm-eyebrow{font-size:8px}}

/* Shared module accents. Existing semantic status, danger and CRM styles stay independent. */
body[data-module-theme]{--theme-color:var(--module-color,#6350a5);--theme-soft:var(--module-soft,#f2eefb);--theme-border:color-mix(in srgb,var(--theme-color) 19%,#e3e8ee);--theme-ink:color-mix(in srgb,var(--theme-color) 62%,#243746);--theme-button:color-mix(in srgb,var(--theme-color) 78%,#172331)}
body[data-module-theme] :is(main,dialog) :is(.heading,.module-hero,.hr-hero){background:linear-gradient(110deg,#fff,color-mix(in srgb,var(--theme-soft) 45%,#fff));border:1px solid var(--theme-border);border-radius:12px;padding:18px 20px}
body[data-module-theme] :is(main,dialog) :is(.heading,.module-hero,.hr-hero) :is(h1,h2){color:var(--theme-ink)}
body[data-module-theme] :is(main,dialog) :is(.panel-head,.dialog-head){background:linear-gradient(110deg,#fff,color-mix(in srgb,var(--theme-soft) 28%,#fff));border-bottom-color:var(--theme-border)}
body[data-module-theme] :is(main,dialog) :is(.panel-head,.dialog-head)>:is(h2,h3){color:var(--theme-ink)}
body[data-module-theme] :is(main,dialog) :is(button,a).primary:not(.danger,.urgent,.is-urgent,.success,.warning):not(.crm-area *):not(.crm-dialog *){background:var(--theme-button);border-color:var(--theme-button);color:#fff;box-shadow:0 2px 6px color-mix(in srgb,var(--theme-color) 12%,transparent)}
body[data-module-theme] :is(main,dialog) :is(button,a).primary:not(:disabled):not(.danger,.urgent,.is-urgent,.success,.warning):not(.crm-area *):not(.crm-dialog *):hover{filter:brightness(.94)}
body[data-module-theme] :is(main,dialog) :is(input,select,textarea,button,a):focus-visible{outline:2px solid var(--theme-color);outline-offset:3px}
body[data-module-theme] :is(main,dialog) :is(input[type=checkbox],input[type=radio]){accent-color:var(--theme-button)}
body[data-module-theme] main :is(.module-tabs,.tabs,.hr-tabs,.development-tabs,.quality-tabs) :is(button,a):is(.active,[aria-selected=true],[aria-current=page]){background:var(--theme-soft);border-color:var(--theme-border);color:var(--theme-ink);box-shadow:inset 0 -2px 0 var(--theme-color)}
body[data-module-theme] main :is(.module-kpi,.hr-kpis>div){border-color:var(--theme-border);border-top:3px solid color-mix(in srgb,var(--theme-color) 55%,#fff)}
body[data-module-theme] main :is(.module-kpi,.hr-kpis>div)>strong{color:var(--theme-ink)}
@media(max-width:600px){body[data-module-theme] :is(main,dialog) :is(.heading,.module-hero,.hr-hero){padding:14px}}

.customer-credit-consumed{margin-top:12px;gap:6px}.customer-credit-consumed dl{width:100%;margin:4px 0}.customer-credit-consumed small{line-height:1.45}

.customer-field-grid input[readonly]{background:#f1f5f9;color:#52677c;cursor:default}

/* One shared blue sidebar across every module and future pages. */
.shell .sidebar.system-sidebar{background:#163c65;color:#e5effa;display:flex;flex-direction:column;overflow:hidden}
.system-sidebar-content{flex:1;min-height:0;overflow-y:auto;display:flex;flex-direction:column;scrollbar-width:thin;scrollbar-color:#7198bd transparent}
.system-sidebar-version{flex-shrink:0;display:flex;align-items:center;justify-content:space-between;gap:8px;border-top:1px solid #ffffff26;margin-top:12px;padding:12px 6px 2px;color:#c5d9ee;font-size:11px}
.system-sidebar-version strong{color:#fff;font-size:11px;font-weight:600;font-variant-numeric:tabular-nums;white-space:nowrap}
@media(max-width:750px){.shell .sidebar.system-sidebar{height:auto}.system-sidebar-content{overflow:visible}.system-sidebar-version{display:flex;margin-top:10px;padding-top:8px}}

.shell .sidebar.system-sidebar>.system-sidebar-content{flex:1 1 auto}.system-sidebar-content>*{flex-shrink:0}.system-sidebar-content>.brand small{display:block;margin-top:10px}.system-sidebar-content>.sidebar-footer{padding-bottom:16px}

.home-event-detail .home-crm-open-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:36px;padding:8px 12px;border:1px solid var(--module-color,#a21caf);border-radius:8px;background:var(--module-color,#a21caf);color:#fff;font-size:12px;font-weight:600;line-height:1.3;text-decoration:none;white-space:nowrap;box-shadow:0 2px 5px #a21caf18}
.home-event-detail .home-crm-open-button:hover{filter:brightness(.92)}
.home-event-detail .home-crm-open-button:focus-visible{outline:2px solid #a21caf;outline-offset:3px}
.home-upcoming .home-upcoming-list{grid-auto-rows:max-content}
.home-upcoming .home-event-row{height:auto;min-height:58px;align-items:center;overflow:hidden;padding:8px;flex-shrink:0}
.home-upcoming .home-event-copy{min-width:0;flex:1;overflow:hidden}
.home-upcoming .home-event-copy strong{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;overflow-wrap:anywhere;white-space:normal;line-height:1.35;max-height:2.7em}
.home-upcoming .home-event-copy small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:1.4;margin-top:3px}
.home-upcoming .home-event-copy em{display:block;line-height:1.4;margin-top:3px}
.home-upcoming .home-event-date{flex:0 0 27px}

/* Marketing workspace */
.mkt-panel{display:grid;gap:16px;min-width:0}.mkt-hero{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:22px;border:1px solid #f2c8dd;border-radius:14px;background:linear-gradient(120deg,#fff,#fff7fb)}.mkt-title{display:flex;align-items:center;gap:13px}.mkt-title h2{font-size:23px;margin:4px 0}.mkt-title small{font-size:9px;letter-spacing:1.2px;color:#9d174d}.mkt-title p,.mkt-section>p,.mkt-section-head p{font-size:12px;color:#667b8a;margin-top:5px;line-height:1.5}.mkt-icon{padding:12px;background:var(--module-soft);color:var(--module-color);border-radius:12px;display:flex}.mkt-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.mkt-panel button{font-size:12px}.mkt-panel .primary{background:var(--module-color);border-color:var(--module-color);color:#fff}.mkt-tabs{display:flex;flex-wrap:wrap;padding:5px;background:#fff;border:1px solid #e1d9e0;border-radius:10px;gap:3px}.mkt-tabs button{flex:1;white-space:nowrap;background:transparent;border:0;min-height:36px;padding:8px}.mkt-tabs button[aria-current=page]{background:var(--module-soft);color:#9d174d;box-shadow:inset 0 -2px var(--module-color)}.mkt-tabs b{font-size:10px;border-radius:10px;padding:2px 6px;background:#fff}.mkt-filters{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:10px;padding:14px;background:#fff;border:1px solid #e1e8ee;border-radius:12px}.mkt-panel label{font-size:11px;gap:6px}.mkt-panel :is(input,select,textarea){font-size:12px;padding:8px;min-height:36px}.mkt-search{position:relative}.mkt-search svg{position:absolute;left:9px;top:11px;color:#75879a}.mkt-search input{padding-left:30px}.mkt-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.mkt-kpis .module-kpi{padding:16px;background:#fff;border:1px solid #edd5e1;border-radius:12px}.mkt-kpis span{display:flex;align-items:center;gap:8px;font-size:12px;color:#6e5c68}.mkt-kpis strong{display:block;font-size:25px;color:#9d174d;margin-top:9px}.mkt-two{display:grid;grid-template-columns:1fr 1fr;gap:16px}.mkt-section{padding:18px}.mkt-section h3{font-size:15px}.mkt-section-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:15px}.mkt-list{display:grid;gap:9px;margin-top:14px}.mkt-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:12px;margin-top:14px}.mkt-card{display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;text-align:left;width:100%;min-width:0;padding:12px;border:1px solid #e5dbe2;border-left:3px solid var(--module-color);border-radius:9px;background:#fff;gap:8px;color:#29435a}.mkt-card:hover{background:#fff7fb;border-color:#dca9c1}.mkt-card>strong{font-size:13px;line-height:1.4;overflow-wrap:anywhere}.mkt-card small{font-size:10px}.mkt-card-meta{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:9px;color:#8b5770}.mkt-status{border-radius:5px;padding:3px 5px;background:#f4eef2;color:#675565;font-size:9px;white-space:nowrap}.mkt-status.state-review,.mkt-status.state-changes{background:#fff2d9;color:#8b5d13}.mkt-status.state-approved,.mkt-status.state-published,.mkt-status.state-done{background:#e4f4ec;color:#26714f}.mkt-status.state-cancelled{background:#f5eaea;color:#a44343}.mkt-card-bottom{display:flex;justify-content:space-between;flex-wrap:wrap;gap:6px;font-size:10px;color:#687d8c}.mkt-card-bottom>span{display:flex;align-items:center;gap:4px;overflow-wrap:anywhere}.mkt-card.is-late{border-left-color:#d97706}.mkt-card .mkt-late{color:#ac5307}.mkt-empty{padding:30px;text-align:center;color:#7a8895}.mkt-tip{display:flex;gap:10px;background:#faf3f7;border:1px solid #f0d9e5;border-radius:9px;padding:12px;margin-top:14px;font-size:12px;line-height:1.6;color:#795169}.mkt-tip svg{flex-shrink:0}.mkt-board{display:grid;grid-template-columns:repeat(6,minmax(210px,1fr));gap:12px;overflow-x:auto;padding-bottom:12px}.mkt-column{background:#edf1f5;padding:10px;border-radius:10px;display:flex;flex-direction:column;gap:10px;align-self:start;min-height:220px}.mkt-column h3{font-size:12px;display:flex;justify-content:space-between;align-items:center;padding:3px}.mkt-column h3 b{background:#fff;padding:3px 7px;border-radius:8px}.mkt-calendar{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:7px;margin-bottom:18px}.mkt-calendar>section{border:1px solid #e4e8ed;border-radius:8px;padding:8px;min-height:100px;background:#fafbfc;min-width:0}.mkt-calendar>section.is-today{border-color:var(--module-color);background:#fff5fa}.mkt-calendar h4{margin:0 0 7px;font-size:13px}.mkt-calendar h4 small{font-size:9px;font-weight:400}.mkt-calendar button{display:grid;gap:4px;width:100%;padding:6px;margin:5px 0;min-width:0;text-align:left;font-size:10px;background:#fff;border-left:2px solid var(--module-color)}.mkt-calendar button strong{overflow-wrap:anywhere}.mkt-calendar button :is(span,small){font-size:9px}.mkt-campaign-progress{padding:8px 4px;font-size:10px;color:#786478;display:grid;gap:5px}.mkt-campaign-progress progress{width:100%;height:5px;accent-color:var(--module-color)}.mkt-dialog{width:min(900px,calc(100% - 28px))}.mkt-dialog .dialog-body{padding:20px}.mkt-detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.mkt-detail-grid>span{display:grid;gap:5px;font-size:11px;color:#778697}.mkt-detail-grid strong{font-size:12px;color:#324b61}.mkt-brief{white-space:pre-wrap;background:#f6f8fb;padding:12px;border-radius:8px;font-size:12px;line-height:1.7;overflow-wrap:anywhere}.mkt-assets{display:flex;gap:8px;flex-wrap:wrap}.mkt-assets a{display:inline-flex;align-items:center;gap:6px;padding:9px;border:1px solid #ead7e0;border-radius:7px;font-size:12px;color:var(--module-color);text-decoration:none}.mkt-approved{color:#26714f;font-size:12px;padding:10px;background:#edf8f2;border-radius:8px}.mkt-checklist{list-style:none;padding:0;display:grid;gap:7px;font-size:12px}.mkt-history{display:grid;gap:9px;margin-top:15px;max-height:350px;overflow:auto}.mkt-history article{padding:10px;border-left:2px solid #e8ccda;background:#faf7f9;font-size:11px}.mkt-history time{display:block;color:#7a8793;margin:4px 0}.mkt-history p{white-space:pre-wrap;overflow-wrap:anywhere}.mkt-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;border:0;padding:0;min-width:0}.mkt-wide{grid-column:1/-1}.mkt-asset-edit{display:grid;grid-template-columns:1fr 2fr 60px 35px;gap:6px;margin-top:9px;align-items:center}.mkt-asset-edit input{min-width:0}.mkt-check-edit{display:grid;grid-template-columns:20px 1fr 35px;gap:7px;align-items:center;margin-top:8px}.mkt-check-edit input[type=checkbox]{width:17px;min-height:17px}.mkt-panel .dialog::backdrop{background:#14283888}.mkt-loading{padding:25px;display:grid;gap:12px}@media(max-width:1100px){.mkt-filters{grid-template-columns:1fr 1fr}.mkt-calendar{grid-template-columns:repeat(4,minmax(0,1fr))}}@media(max-width:650px){.mkt-hero,.mkt-section-head{align-items:flex-start;flex-wrap:wrap}.mkt-kpis{grid-template-columns:1fr 1fr}.mkt-two,.mkt-form,.mkt-filters{grid-template-columns:1fr}.mkt-calendar{grid-template-columns:repeat(2,minmax(0,1fr))}.mkt-grid{grid-template-columns:1fr}.mkt-asset-edit{grid-template-columns:1fr 60px 35px}.mkt-asset-edit input:nth-child(2){grid-column:1/-1;grid-row:2}.mkt-detail-grid{grid-template-columns:1fr}.mkt-wide{grid-column:auto}}

/* Novo chat: formulário compacto e fechamento visível durante a rolagem. */
.chat-new-window{width:min(560px,calc(100vw - 24px));max-height:90dvh;overflow:auto}
.chat-window>.dialog-head{position:sticky;top:0;z-index:3}
body .chat-window .dialog-head>.chat-close-button{display:inline-flex;align-items:center;justify-content:center;gap:5px;width:auto;min-width:78px;min-height:32px;padding:6px 10px;background:#fff;color:#244b62;border:1px solid #a8c2d1;border-radius:7px;font-size:12px;flex-shrink:0}
body .chat-window .dialog-head>.chat-close-button:hover{background:#eaf2f7;color:#15384e}
.chat-new-window>.dialog-head{padding:10px 14px;gap:10px}
.chat-new-window>.dialog-head h2{font-size:16px}
.chat-new-window>.dialog-body{padding:12px 14px;gap:10px;font-size:12px}
.chat-new-window .dialog-body>p{margin:0;line-height:1.4}
.chat-new-window :is(.chat-search,.chat-new-form){gap:9px}
.chat-new-window label{font-size:12px;gap:4px;min-width:0}
.chat-new-window :is(input:not([type=checkbox]),select){min-height:32px;padding:6px 9px;font-size:12px}
.chat-new-window button{min-height:32px;font-size:12px;padding:6px 10px}
.chat-new-window h3{margin:0;font-size:13px}
.chat-new-window .chat-existing{padding:9px 10px;gap:6px}
.chat-new-window .hint{font-size:11px;line-height:1.4;margin:0}
.chat-new-window .chat-existing-card{padding:8px;gap:4px}
.chat-new-window .chat-recipient-picker{padding:9px 10px;gap:8px}
.chat-new-window .chat-recipient-picker legend{font-size:12px}
.chat-new-window .chat-recipient-list{max-height:140px;gap:4px}
.chat-new-window .chat-recipient-list label{padding:6px;gap:7px}
.chat-new-window .chat-recipient-list small{font-size:11px}
.chat-new-window textarea{min-height:64px;max-height:140px;font-size:12px;padding:8px}
@media(max-width:750px){.chat-new-window .chat-search{grid-template-columns:minmax(0,1fr) auto}}
@media(pointer:coarse){body .chat-window .dialog-head>.chat-close-button{min-height:44px}}

/* Separação e contraste do status de revisão no resultado da simulação. */
.cost-result-main .cost-target>button{width:100%;min-height:36px;padding:8px 12px;line-height:1.4;white-space:normal;border-radius:7px}
.cost-result-main p.cost-reviewed{display:flex;align-items:center;gap:6px;margin:12px 0 0;padding:8px 10px;border:1px solid #b8dac5;border-radius:8px;background:#e9f6ec;color:#205b43;font-size:11px;line-height:1.45}
.cost-result-main p.cost-reviewed svg{flex:0 0 14px;color:inherit}

/* Navegação móvel: menu independente, painel com rolagem natural. */
.mobile-navigation{display:none}
@media(max-width:1024px){
 html{min-height:100%;scroll-padding-top:66px}
 body{min-height:100dvh;overflow-x:clip}
 .shell,.shell.quality-shell{display:block;min-height:100dvh;height:auto;overflow:visible}
 .shell>.workspace{width:100%;min-width:0;height:auto;overflow:visible}
 .shell .sidebar.system-sidebar{position:sticky;top:0;z-index:90;width:100%;height:auto;min-height:0;max-height:none;padding:env(safe-area-inset-top,0px) 12px 0;overflow:visible}
 .mobile-navigation{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:56px}
 .mobile-navigation :is(a,button){display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px;padding:8px 12px;color:#fff;background:transparent;border:1px solid #ffffff30;border-radius:9px;text-decoration:none;font-size:13px}
 .shell .sidebar.system-sidebar:not(.mobile-menu-open)>.system-sidebar-content,.shell .sidebar.system-sidebar:not(.mobile-menu-open)>.system-sidebar-version{display:none}
 .shell .sidebar.system-sidebar.mobile-menu-open{position:fixed;inset:0;height:100dvh;max-height:100dvh;display:flex;flex-direction:column;padding-bottom:max(12px,env(safe-area-inset-bottom,0px))}
 .shell .sidebar.system-sidebar.mobile-menu-open>.system-sidebar-content{display:flex;min-height:0;flex:1;overflow-y:auto;overscroll-behavior-y:contain;padding:12px 4px}
 .shell .sidebar.system-sidebar.mobile-menu-open>.system-sidebar-version{display:flex;flex-shrink:0}
 .mobile-menu-open .module-guides a,.mobile-menu-open .module-guides button,.mobile-menu-open .module-guides summary,.mobile-menu-open nav a,.mobile-menu-open nav button{min-height:44px}
 .shell .content{padding:18px 12px max(28px,env(safe-area-inset-bottom,0px));max-width:100%}
 .shell .topbar{padding:10px 12px;gap:10px;flex-wrap:wrap}
 .shell .topbar .account{flex-wrap:wrap;min-width:0}
 .shell .heading{flex-wrap:wrap;gap:12px}
 .shell .table-wrap{max-width:100%;overflow:auto;overscroll-behavior-x:contain;overscroll-behavior-y:auto}
 .shell .quality-content{height:auto;overflow:visible}
 .shell .quality-frame{height:calc(100dvh - 130px);min-height:440px}
 dialog{max-height:calc(100dvh - 24px);max-width:calc(100vw - 16px);overscroll-behavior-y:contain}
}
@media(max-width:600px){
 .shell .topbar .breadcrumb{font-size:12px;overflow-wrap:anywhere}
 .shell .topbar .app-topbar-user{max-width:145px;overflow-wrap:anywhere}
 .shell .metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .shell .metric{padding:12px}
 .shell .filters{grid-template-columns:repeat(2,minmax(0,1fr));padding:12px;gap:10px}
 .shell :is(input,select,textarea){font-size:16px}
 .shell .panel-head{padding:12px;flex-wrap:wrap}
 .shell .table-footer{padding:12px;flex-wrap:wrap}
}

.commercial-orders{display:grid;gap:16px}.commercial-orders .module-hero{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px;border:1px solid var(--theme-border,#ddd1eb);border-radius:12px;background:var(--theme-soft,#f8f3fc)}.commercial-orders h2{display:flex;align-items:center;gap:8px}.commercial-orders .module-hero p{margin-top:7px;font-size:13px;line-height:1.5}.commercial-orders .module-hero>.badge{flex-shrink:0}.commercial-order-dialog .detail-grid>div{min-width:0;overflow-wrap:anywhere}.commercial-order-dialog .dialog-head{position:sticky;top:0;z-index:2;background:white}@media(max-width:600px){.commercial-orders .module-hero{flex-wrap:wrap;padding:14px}.commercial-order-dialog .detail-grid{grid-template-columns:1fr}}

/* Atalhos gerais separados do cabeçalho dos módulos. */
.sidebar .user-modules.module-guides>a{display:flex;align-items:center;gap:6px;min-height:34px;margin:0 0 6px;padding:8px 10px;line-height:1.4}
.sidebar .user-modules.module-guides>h3{margin:14px 4px 9px;line-height:1.4;padding:0}
.commercial-orders .finalized-filter{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 16px;flex-wrap:wrap;font-size:12px;color:#617785}
@media(pointer:coarse){.sidebar .user-modules.module-guides>a{min-height:44px}}

[data-module="shipping"]{--module-color:#087e91;--module-soft:#e6f6f8}
.shipping-routes{display:grid;gap:18px}.shipping-routes h2{display:flex;align-items:center;gap:8px}.shipping-layout{display:grid;grid-template-columns:260px minmax(0,1fr);gap:18px;align-items:start}.shipping-list,.shipping-detail{padding:18px}.shipping-list{display:grid;gap:9px}.shipping-list button{display:grid;gap:6px;text-align:left;padding:12px;white-space:normal;overflow-wrap:anywhere}.shipping-list .shipping-selected{border-color:var(--module-color);background:var(--module-soft)}.shipping-list small,.shipping-detail small{color:#50697f}.shipping-detail{min-width:0}.shipping-detail .panel-head{flex-wrap:wrap;gap:12px}.shipping-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.shipping-actions a.primary{display:inline-flex;text-decoration:none;padding:9px 12px;border-radius:8px;align-items:center}.shipping-kpis{display:flex;gap:12px;flex-wrap:wrap;margin:18px 0}.shipping-kpis span{padding:12px;background:var(--module-soft);border-radius:9px}.shipping-kpis strong{color:var(--module-color);font-size:20px;margin-right:5px}.shipping-location{display:grid;gap:8px;border:1px solid #d3e4e8;border-radius:10px;background:#f6fafb;padding:14px;margin:16px 0}.shipping-location strong{display:flex;align-items:center;gap:6px}.shipping-location p{margin:0;line-height:1.5;font-size:13px}.shipping-location button{justify-self:start}.shipping-stops{list-style:none;padding:0;margin:0;display:grid;gap:14px}.shipping-stops li{padding:16px;border:1px solid #d4e3e9;border-left:3px solid var(--module-color);border-radius:10px;overflow-wrap:anywhere}.shipping-stop-head{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap}.shipping-stops .shipping-actions{margin-top:12px}.shipping-form{display:grid;gap:14px}.shipping-form label{display:grid;gap:6px}.shipping-form input,.shipping-form select,.shipping-form textarea{width:100%;min-height:42px}.shipping-dialog{width:min(620px,calc(100vw - 24px));max-height:90dvh;overflow:auto}.shipping-signature{background:white;border:1px dashed #7998aa;border-radius:10px;touch-action:none;aspect-ratio:3/1;min-height:130px;width:100%;overflow:hidden}.shipping-signature svg{width:100%;height:100%;display:block;pointer-events:none}.shipping-form .primary{min-height:44px}@media(max-width:760px){.shipping-layout{grid-template-columns:1fr}.shipping-list{max-height:240px;overflow:auto}.shipping-detail{padding:12px}.shipping-stops li{padding:12px}.shipping-routes .module-hero{flex-wrap:wrap;gap:12px}.shipping-actions button,.shipping-actions a{min-height:44px}}

.shipping-tags{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0;font-size:12px}.shipping-tags span,.shipping-tags strong{padding:5px 8px;border-radius:6px;background:#f0f6f8}.shipping-tags .shipping-late{color:#9e300e;background:#fff0e6}.shipping-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.shipping-form input[type=checkbox]{width:auto;min-height:0;justify-self:start}.shipping-photos{display:flex;gap:12px;flex-wrap:wrap}.shipping-photos img{max-width:100%;width:220px;max-height:180px;object-fit:contain;border-radius:8px}.shipping-photos>div{display:grid;gap:5px}.shipping-notice{border:1px solid #d4e3e9;border-radius:8px;padding:12px;display:grid;gap:8px;overflow-wrap:anywhere}.shipping-public{max-width:650px;margin:24px auto;padding:16px}.shipping-public .panel{padding:20px}.shipping-routes .shipping-kpis{margin:0}.shipping-dialog::backdrop{background:#10273880}@media(max-width:560px){.shipping-form-grid{grid-template-columns:1fr}.shipping-kpis span{flex:1 1 130px}.shipping-dialog .dialog-body{padding:14px}}

.shipping-list>label,.shipping-form label:has(>input[type=checkbox]){display:flex;align-items:center;gap:8px;min-height:44px}.shipping-list input[type=checkbox],.shipping-form input[type=checkbox]{width:18px;height:18px;min-height:18px;flex:none;margin:0}.shipping-routes .module-hero{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px}.shipping-routes .module-hero p{margin:5px 0 0;line-height:1.5}.shipping-routes .module-hero .shipping-actions{margin-top:8px}

.shipping-management{padding:18px;display:grid;gap:15px}.shipping-board{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.shipping-board>section{background:#f3f7f9;border-radius:10px;padding:12px;display:grid;gap:9px;align-content:start}.shipping-board h4{margin:0 0 6px}.shipping-board button{display:grid;gap:6px;text-align:left;white-space:normal;overflow-wrap:anywhere;width:100%;padding:12px;background:white;border-left:3px solid var(--module-color)}.shipping-board small{font-size:11px;line-height:1.5}.shipping-board-list{grid-template-columns:1fr}.shipping-board-list button{grid-template-columns:1fr 1fr 1fr;align-items:center}.shipping-report-table{overflow:auto}.shipping-report-table table{width:100%;border-collapse:collapse}.shipping-report-table th,.shipping-report-table td{padding:10px;text-align:left;border-bottom:1px solid #d8e4ea}@media(max-width:900px){.shipping-board{grid-template-columns:1fr 1fr}.shipping-board-list{grid-template-columns:1fr}}@media(max-width:560px){.shipping-board,.shipping-board-list button{grid-template-columns:1fr}}

/* Compact expedition workspace */
.shipping-routes{gap:12px}.shipping-routes .module-hero{padding:16px 20px;border:1px solid #c5e4e8;background:linear-gradient(120deg,#fff,#e6f6f8);border-radius:16px}.shipping-management{padding:14px}.shipping-board{gap:9px;margin-top:10px}.shipping-board section{padding:9px;border-radius:12px}.shipping-board button{padding:9px;gap:3px;border-radius:9px}.shipping-board h4{font-size:12px}.shipping-kpis{gap:8px;margin:10px 0;flex-wrap:wrap}.shipping-kpis span{padding:8px 11px;border-radius:10px;font-size:12px}.shipping-layout{grid-template-columns:230px minmax(0,1fr);gap:12px}.shipping-list,.shipping-detail{padding:14px;border-radius:15px}.shipping-list{gap:6px}.shipping-list button{padding:9px;gap:3px}.shipping-stops{gap:8px}.shipping-stops li{padding:11px 13px;border-radius:12px}.shipping-stops p{margin:5px 0}.shipping-actions{gap:6px}.shipping-actions button,.shipping-actions a{font-size:12px;padding:7px 10px}.shipping-location{padding:10px;gap:5px;margin:10px 0;background:#eef8f9}.shipping-location p{margin:0}.shipping-danger{color:#ae332c!important;border-color:#edc6c1!important}.shipping-cancelled{color:#9b4239;font-size:12px}
.shipping-fleet{width:min(1250px,96vw);max-width:96vw}.shipping-fleet-layout{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(280px,1fr);gap:16px;padding:16px}.shipping-live-map{height:420px;border-radius:14px;isolation:isolate}.shipping-driver-pin{background:#087e91;border:3px solid white;border-radius:50%;box-shadow:0 2px 7px #0005;color:white;text-align:center;line-height:24px}.shipping-driver-pin.stale{background:#a76724}.shipping-driver-list{display:flex;flex-wrap:wrap;gap:7px;margin-top:10px}.shipping-driver-list button{display:grid;gap:3px;padding:9px;text-align:left}.shipping-driver-list button[aria-pressed=true]{border-color:var(--module-color);background:var(--module-soft)}.shipping-fleet-detail{max-height:65vh;overflow:auto}.shipping-fleet-detail ol{padding-left:22px}.shipping-fleet-detail li{padding:10px 0;border-bottom:1px solid #dbe7ed}.shipping-fleet-detail small{display:block}.shipping-fleet-detail p{margin:5px 0}.shipping-fleet-detail .badge{margin-left:7px}
@media(max-width:760px){.shipping-layout,.shipping-fleet-layout{grid-template-columns:1fr}.shipping-live-map{height:300px}.shipping-fleet-detail{max-height:none}.shipping-fleet-layout{padding:10px}.shipping-kpis span{flex:1 1 125px}}@media(pointer:coarse){.shipping-actions button,.shipping-actions a,.shipping-driver-list button{min-height:44px}}

.shipping-base-returns{padding:13px 16px;border:1px solid #eed7b9;background:#fffdf8;border-radius:14px}.shipping-base-returns h3{margin:0}.shipping-base-returns>p{margin:5px 0;font-size:12px}.shipping-base-returns article{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:9px 0;border-top:1px solid #eddfc9}.shipping-base-returns small{display:block}.shipping-base-returns article p{margin:4px 0;font-size:12px}@media(max-width:650px){.shipping-base-returns article{align-items:stretch;flex-direction:column}}

/* Denser desktop hierarchy for the expedition management page. */
.shipping-content-compact{padding-top:14px!important}
.shipping-content-compact>.heading{padding:10px 14px;margin-bottom:10px;min-height:0;border-radius:10px}
.shipping-content-compact>.heading>div{display:flex;align-items:baseline;flex-wrap:wrap;gap:5px 14px}
.shipping-content-compact>.heading h1{font-size:19px;line-height:1.25;margin:0}
.shipping-content-compact>.heading p{font-size:11px;line-height:1.4;margin:0}
.shipping-content-compact .shipping-routes{gap:9px}
.shipping-content-compact .shipping-routes>.module-hero{padding:10px 14px;gap:10px;border-radius:10px}
.shipping-content-compact .shipping-routes>.module-hero h2{font-size:15px;line-height:1.3;margin:0}
.shipping-content-compact .shipping-routes>.module-hero h2 svg{width:17px;height:17px}
.shipping-content-compact .shipping-routes>.module-hero p{font-size:12px;line-height:1.3;margin:3px 0 0}
.shipping-content-compact .shipping-routes>.module-hero .shipping-actions{margin-top:0;gap:5px}
.shipping-content-compact .shipping-management{padding:10px 12px;border-radius:12px}
.shipping-content-compact .shipping-management>.panel-head{padding:0 0 8px;margin:0 0 8px;min-height:0;gap:8px;flex-wrap:wrap}
.shipping-content-compact .shipping-management>.panel-head h3{font-size:14px;line-height:1.3;margin:0}
.shipping-content-compact .shipping-management>.shipping-actions{gap:5px;align-items:center}
.shipping-content-compact .shipping-management>.shipping-actions>label{display:flex;align-items:center;gap:7px;font-size:11px;margin:0}
.shipping-content-compact .shipping-management>.shipping-actions select{min-height:30px;padding:5px 25px 5px 8px;width:130px}
.shipping-content-compact .shipping-actions>button,.shipping-content-compact .shipping-actions>a{min-height:30px;padding:6px 9px;font-size:11px}
.shipping-content-compact .shipping-board{gap:7px;margin-top:9px}
.shipping-content-compact .shipping-board section{padding:8px;gap:6px;align-content:start}
.shipping-content-compact .shipping-board h4{margin:0 0 3px;font-size:11px}
.shipping-content-compact .shipping-board button{padding:7px 9px;gap:2px}
.shipping-content-compact .shipping-board small{font-size:10px;line-height:1.35}
@media(max-width:760px){.shipping-content-compact>.heading>div{gap:4px}.shipping-content-compact>.heading p{flex-basis:100%}.shipping-content-compact .shipping-routes>.module-hero{align-items:flex-start}.shipping-content-compact .shipping-management>.panel-head{align-items:flex-start}}
@media(pointer:coarse){.shipping-content-compact .shipping-actions>button,.shipping-content-compact .shipping-actions>a,.shipping-content-compact .shipping-management>.shipping-actions select{min-height:44px}}

/* Customer delivery tracking — native app palette, scoped to the public link. */
.shipping-public.tracking-premium{max-width:none;margin:0;min-height:100dvh;padding:28px 18px 36px;background:radial-gradient(ellipse at top right,#0c4654 0,transparent 48%),#0d1824;color:#e8f4f8;font-family:Arial,sans-serif}
.tracking-container{max-width:780px;margin:auto}.tracking-brand{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:22px}.tracking-brand img{width:132px;height:88px;object-fit:contain;background:#fff;border-radius:14px;padding:5px}.tracking-brand>span{display:flex;gap:7px;align-items:center;color:#b1d6dc;font-size:12px}
.tracking-hero{padding:26px;border-radius:22px;background:linear-gradient(125deg,#132d3b,#087e91);border:1px solid #3a9aa366;box-shadow:0 18px 45px #0002}.tracking-eyebrow{font-size:10px;letter-spacing:1.8px;color:#a4e5de;font-weight:700;margin-bottom:18px}.tracking-hero-title{display:flex;gap:16px;align-items:center}.tracking-status-icon{display:grid;place-items:center;flex-shrink:0;width:58px;height:58px;border-radius:18px;background:#ffffff12;color:#80efea;border:1px solid #ffffff29}.tracking-hero-title p{font-size:12px;color:#c9e8eb;margin:0 0 6px}.tracking-hero h1{font-size:26px;line-height:1.22;letter-spacing:-.5px;color:#fff;margin:0}.tracking-description{color:#d1edf2;font-size:13px;line-height:1.6;margin:18px 0 0;max-width:580px}.tracking-issue .tracking-status-icon{color:#ffd397}
.tracking-card{margin-top:16px;border:1px solid #294451;background:#132530;border-radius:20px;padding:22px;box-shadow:0 12px 32px #0002}.tracking-card-head{display:flex;flex-wrap:wrap;gap:12px;justify-content:space-between;align-items:center}.tracking-card-head h2{display:flex;align-items:center;gap:9px;font-size:14px;color:#ecf6f8;margin:0}.tracking-card-head h2 svg{color:#65d9df}.tracking-premium .refresh-controls{gap:10px;flex-wrap:wrap}.tracking-premium .refresh-countdown{color:#b1c3ce}.tracking-premium .refresh-countdown strong{color:#65d9df}.tracking-premium button.ghost{color:#d7f8f7;background:#1d414b;border:1px solid #3b6872;border-radius:9px;min-height:40px;padding:8px 11px}.tracking-premium button:focus-visible{outline:3px solid #65d9df;outline-offset:3px}.tracking-premium button:hover{background:#275966}
.tracking-timeline{display:flex;list-style:none;padding:0;margin:30px 0;gap:0}.tracking-timeline li{position:relative;flex:1;display:flex;flex-direction:column;align-items:center;text-align:center;gap:7px;color:#9bb0bf}.tracking-timeline li:not(:last-child):after{content:'';position:absolute;top:17px;left:calc(50% + 22px);right:calc(-50% + 22px);height:2px;background:#2a414f}.tracking-timeline li.is-complete:after{background:#348c98}.tracking-timeline li>span{display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:#1b3543;border:1px solid #35505c}.tracking-timeline strong{font-size:12px}.tracking-timeline small{font-size:10px}.tracking-timeline .is-current{color:#8aeeee}.tracking-timeline .is-current>span{background:#087e91;border-color:#65d9df;box-shadow:0 0 0 5px #65d9df10;color:white}.tracking-timeline .is-complete>span{color:#65d9df;border-color:#348c98}
.tracking-info{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:20px}.tracking-info article{display:flex;gap:12px;align-items:flex-start;background:#192f3d;border:1px solid #2b4857;border-radius:13px;padding:16px}.tracking-info article>svg{color:#65d9df;flex-shrink:0}.tracking-info small{display:block;color:#a5bdca;font-size:11px;margin-bottom:7px}.tracking-info strong{color:#e6f3f6;font-size:13px;line-height:1.6;font-weight:500}.tracking-updated{display:flex;flex-wrap:wrap;gap:8px;justify-content:space-between;color:#a6c1cd;border-top:1px solid #294451;padding-top:16px;margin-top:20px;font-size:11px}.tracking-updated>span{display:flex;gap:6px;align-items:center}.tracking-updated svg{color:#65d9df}.tracking-updated small{font-size:10px}.tracking-footer{text-align:center;color:#92b2c0;margin-top:24px;font-size:11px}.tracking-footer>span{display:flex;align-items:center;justify-content:center;gap:7px}.tracking-footer p{display:flex;align-items:center;justify-content:center;gap:4px;margin-top:8px;font-size:10px}.tracking-loading,.tracking-error{display:flex;align-items:center;gap:12px;padding:26px 0;font-size:13px;line-height:1.6}.tracking-error{color:#ffd4ba}.tracking-loading{color:#b1c3ce}
@media(max-width:520px){.shipping-public.tracking-premium{padding:18px 12px 28px}.tracking-brand{margin-bottom:16px}.tracking-brand img{width:108px;height:72px}.tracking-brand>span{font-size:11px}.tracking-hero{padding:20px 17px;border-radius:18px}.tracking-hero h1{font-size:22px}.tracking-status-icon{width:46px;height:46px;border-radius:14px}.tracking-hero-title{gap:12px}.tracking-card{padding:17px 14px}.tracking-card-head{gap:16px}.tracking-info{grid-template-columns:1fr}.tracking-info article{padding:13px}.tracking-premium .refresh-controls{width:100%;justify-content:space-between}.tracking-premium button.ghost{min-height:44px}.tracking-timeline{margin:26px 0}}

.shipping-tags .shipping-priority-urgent{background:#ffe9e7;color:#ab251b}.shipping-tags .shipping-priority-high{background:#fff1da;color:#8d4d00}.shipping-tags .shipping-priority-normal{background:#e6f3f5;color:#146176}.shipping-optimization-result{display:grid;gap:12px;padding:14px;border:1px solid #c4dce1;border-radius:12px}.shipping-optimization-result li{padding:5px 0}

.shipping-settings-dialog .dialog-head{display:flex;align-items:center;gap:12px;padding:16px 20px}.shipping-settings-dialog .dialog-head h2{flex:1;margin:0;min-width:0;text-align:left;font-size:18px;line-height:1.3}.shipping-settings-dialog .dialog-head>button{display:grid;place-items:center;flex:none;width:36px;height:36px;padding:0}.shipping-settings-dialog .dialog-body{padding:18px 20px}.shipping-settings-dialog .shipping-settings-menu>button{width:100%;justify-content:flex-start;min-height:74px;white-space:normal}.shipping-settings-dialog .shipping-settings-menu>button>span{flex:1;text-align:left;min-width:0}.shipping-settings-dialog .shipping-settings-menu>button>svg{width:24px;height:24px;flex:0 0 24px}.shipping-settings-dialog .shipping-settings-menu strong{font-size:14px}.shipping-settings-dialog .shipping-settings-menu small{line-height:1.45}
.shipping-registry-row{display:flex;align-items:center;flex-wrap:wrap;gap:12px;padding:13px;border:1px solid #d1e3e8;border-radius:12px;background:#f8fcfd}.shipping-registry-info{flex:1;min-width:160px;display:grid;gap:5px;overflow-wrap:anywhere}.shipping-registry-info small{line-height:1.5;color:#537184}.shipping-registry-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.shipping-registry-actions button{display:inline-flex;align-items:center;gap:6px}.shipping-registry-confirm{flex-basis:100%;border-top:1px solid #d1e3e8;padding-top:10px}.shipping-registry-confirm p{margin:0 0 10px}.shipping-registry-confirm button{margin-right:8px}@media(max-width:560px){.shipping-settings-dialog .dialog-head{padding:14px;gap:8px}.shipping-settings-dialog .dialog-head h2{font-size:17px}.shipping-settings-dialog .dialog-body{padding:14px}.shipping-settings-dialog .dialog-head>button,.shipping-registry-actions button,.shipping-registry-confirm button{min-height:44px}.shipping-registry-actions{width:100%}}

.shipping-routes button.shipping-danger,.shipping-dialog button.shipping-danger{background:#b42318!important;border-color:#b42318!important;color:#fff!important}.shipping-routes button.shipping-danger:hover,.shipping-dialog button.shipping-danger:hover{background:#912018!important}

.shipping-board:not(.shipping-board-list){grid-template-columns:repeat(3,minmax(0,1fr))}.shipping-route-modal{width:min(1040px,calc(100% - 24px));max-height:90dvh;overflow-y:auto;padding:16px}.shipping-route-close{display:flex;justify-content:flex-end;position:sticky;top:0;z-index:2;background:#fff;padding-bottom:8px}.shipping-finished-list{border-top:1px solid #d8e4ea;padding-top:12px}.shipping-finished-list h4{margin:0 0 6px}@media(max-width:900px){.shipping-board:not(.shipping-board-list){grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:560px){.shipping-board:not(.shipping-board-list){grid-template-columns:1fr}.shipping-route-modal{padding:10px}}

.shipping-cancellation-alert{padding:16px;border:2px solid #dc6257;background:#fff2ef}.shipping-cancellation-alert article{padding:12px 0;border-top:1px solid #edc6c1}.shipping-cancellation-alert p{white-space:pre-wrap}

.shipping-list{background:linear-gradient(155deg,#edf9fa,#f8fcfd);border:1px solid #b8dfe3;border-top:3px solid #0e7488;align-self:start}.shipping-team-title{display:flex;align-items:center;gap:10px;padding:3px 0 9px}.shipping-team-title>span{display:grid;place-items:center;width:36px;height:36px;border-radius:10px;background:#d2eef1;color:#0e6f80}.shipping-team-title h3{margin:0;color:#0b6173;font-size:15px}.shipping-team-title small{font-size:11px;color:#54727d}.shipping-list>button{background:#fff;border:1px solid #c9e3e6;border-left:3px solid #138b94;border-radius:12px;padding:12px;gap:6px;box-shadow:0 2px 5px #0c617308;transition:border-color .15s,background .15s}.shipping-list>button:hover{background:#f0fbfc;border-color:#39a7b2}.shipping-list>button.shipping-selected{background:#dff4f5;border-color:#0e8190;box-shadow:0 0 0 1px #0e8190}.shipping-list>button strong{font-size:14px;color:#114d5a;overflow-wrap:anywhere}.shipping-list>button small{overflow-wrap:anywhere}.shipping-team-state{justify-self:start;font-size:10px;font-weight:700;color:#0b6776;background:#e0f3f5;border-radius:20px;padding:3px 8px}.shipping-list progress{width:100%;height:6px;border:0;border-radius:8px;overflow:hidden;accent-color:#0c8994;background:#e1ecef;margin:4px 0}.shipping-list progress::-webkit-progress-bar{background:#e1ecef}.shipping-list progress::-webkit-progress-value{background:#0c8994;border-radius:8px}.shipping-list progress::-moz-progress-bar{background:#0c8994}.shipping-team-count{display:flex;justify-content:space-between;align-items:center;gap:6px;font-size:11px;color:#426b75}.shipping-list>p{font-size:12px;line-height:1.5;padding:12px;background:#fff;border-radius:10px;color:#54727d}

.shipping-reports-premium{width:min(1080px,calc(100% - 24px));background:#f7fbfc}.shipping-reports-premium>.dialog-head{background:linear-gradient(120deg,#e6f5f7,#fff);border-bottom:1px solid #c8e4e8;padding:18px 22px}.shipping-report-title{display:flex;gap:12px;align-items:center}.shipping-report-title>span{display:grid;place-items:center;background:#d0edf1;color:#0c7184;border:1px solid #b3dce3;width:44px;height:44px;border-radius:13px}.shipping-report-title small{font-size:9px;letter-spacing:1px;color:#247786}.shipping-report-title h2{font-size:20px;margin:3px 0 0;color:#104f61}.shipping-reports-premium>.dialog-body{padding:20px}.shipping-report-intro{margin:0;color:#557581;font-size:13px}.shipping-report-filters{display:grid;grid-template-columns:1fr 1fr;gap:16px;background:#fff;padding:16px;border:1px solid #d6e7eb;border-radius:14px;align-items:end}.shipping-report-filters>.delivery-range-filter>button{width:100%;min-height:40px}.shipping-reports-premium .shipping-kpis{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin:0}.shipping-reports-premium .shipping-kpis>span{display:grid;gap:7px;background:#fff;border:1px solid #d4e8eb;border-top:3px solid #198596;padding:13px;border-radius:12px}.shipping-reports-premium .shipping-kpis small{font-size:11px;color:#557581}.shipping-reports-premium .shipping-kpis strong{font-size:21px;color:#105d70}.shipping-reports-premium .shipping-report-table{background:white;border:1px solid #d6e7eb;border-radius:14px}.shipping-reports-premium th{background:#eef7f9;color:#346675;font-size:10px}.shipping-reports-premium td{font-size:12px}.shipping-report-status{display:inline-block;padding:5px 8px;border-radius:7px;background:#edf4f6;color:#426674;font-size:11px}.shipping-report-status.status-active{background:#daf3ee;color:#116a56}.shipping-report-status.status-finished{background:#e2f0ff;color:#255b82}.shipping-report-status.status-cancelled,.shipping-report-status.status-driver_cancelled{background:#ffebe7;color:#a53529}.shipping-report-empty{padding:25px;text-align:center;color:#557581}@media(max-width:700px){.shipping-report-filters{grid-template-columns:1fr}.shipping-reports-premium .shipping-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.shipping-reports-premium>.dialog-body{padding:12px}.shipping-report-title h2{font-size:17px}}

.shipping-returns-button{display:inline-flex;align-items:center;gap:8px}.shipping-returns-button strong{border-radius:20px;padding:2px 7px;background:#ffffffb3;color:#6b3620}.shipping-returns-button.has-pending{background:#ffdf76;border:1px solid #d38715;color:#553800;font-weight:700;animation:shipping-returns-attention 2.4s ease-in-out infinite}.shipping-returns-dialog{width:min(860px,calc(100% - 24px))}.shipping-returns-dialog>.dialog-head{background:#fff7dc}.shipping-returns-dialog .shipping-base-returns{margin:0}.shipping-returns-dialog article{border:1px solid #e7d8b8;border-radius:12px;padding:12px;background:#fffdf5}@keyframes shipping-returns-attention{0%,100%{background:#ffdf76;border-color:#d38715;color:#553800}50%{background:#b42318;border-color:#b42318;color:white}}@media(prefers-reduced-motion:reduce){.shipping-returns-button.has-pending{animation:none;background:#ffdf76;border:2px solid #b42318;color:#553800}}

/* Expedição: detalhes da rota e ação principal de parada. */
.shipping-route-modal{background:#f5fafb;border:1px solid #c2e2e7;box-shadow:0 24px 80px #073d5040}.shipping-route-modal .shipping-route-close{background:#f5fafb}.shipping-detail>.panel-head{padding:16px;border:1px solid #c7e4e9;border-radius:14px;background:linear-gradient(120deg,#e3f3f6,#fff);align-items:center;margin-bottom:14px}.shipping-detail-title>small{font-size:9px;letter-spacing:1px;color:#287d8d;font-weight:700}.shipping-detail-title h2{font-size:21px;color:#105e70;margin:7px 0}.shipping-detail-title p{margin:0;color:#547580;font-size:12px}.shipping-detail .shipping-add-stop{background:#087a8f!important;border-color:#087a8f!important;color:white!important;box-shadow:0 3px 8px #087a8f26;font-weight:700;min-height:36px}.shipping-detail .shipping-add-stop:hover{background:#075c70!important}.shipping-detail>.shipping-kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:12px 0}.shipping-detail>.shipping-kpis>span{background:white;border:1px solid #d1e6ea;border-left:3px solid #168f9e;border-radius:10px;padding:12px;color:#195d6c;font-weight:600}.shipping-base-summary{display:flex;align-items:center;gap:8px 14px;flex-wrap:wrap;padding:13px 15px;background:#e7f4f3;border:1px solid #c3e2df;border-radius:12px;margin:12px 0;color:#285e5e;font-size:12px}.shipping-base-summary strong{color:#176d67}.shipping-base-summary a{margin-left:auto;color:#086b69;font-weight:600}.shipping-cost-summary{padding:12px 15px;background:white;border:1px solid #d7e7ed;border-radius:12px;line-height:1.7;font-size:12px;color:#536d7c}.shipping-detail>.shipping-location{background:#eaf3fc;border:1px solid #c5dced;border-left:3px solid #4b89b2;padding:13px 15px;border-radius:12px}.shipping-detail>.shipping-location strong{color:#285f86}.shipping-detail .shipping-stops>li{background:#fff;box-shadow:0 2px 6px #17485906}.shipping-empty-stops{background:white;border:1px dashed #a6cfd7;border-radius:12px;padding:22px 16px;text-align:center;color:#557682;line-height:1.7}.shipping-empty-stops strong{color:#087a8f}@media(max-width:560px){.shipping-detail>.panel-head{padding:12px}.shipping-detail-title h2{font-size:18px}.shipping-detail>.shipping-kpis{gap:5px}.shipping-detail>.shipping-kpis>span{padding:9px 6px;font-size:11px}.shipping-base-summary a{margin-left:0}}

.shipping-stop-editor{width:min(820px,calc(100% - 24px));background:#f6fafb}.shipping-stop-editor>.dialog-head{padding:15px 20px;background:linear-gradient(120deg,#ddf2f5,#fff);border-bottom:1px solid #c5e2e7}.shipping-stop-editor>.dialog-head h2{color:#0c6a7b;font-size:20px}.shipping-stop-editor>.dialog-body{padding:14px 18px}.shipping-stop-editor .shipping-form{gap:12px}.shipping-stop-group{min-width:0;margin:0;padding:12px;border:1px solid #d0e5e9;border-radius:12px;background:#fff}.shipping-stop-group legend{padding:0 7px;color:#0c7282;font-weight:700;font-size:12px}.shipping-stop-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 14px}.shipping-stop-editor .shipping-form label{font-size:12px;gap:5px;color:#355e6e}.shipping-stop-editor .shipping-form input,.shipping-stop-editor .shipping-form select{min-height:36px;padding:8px 10px;font-size:13px;border-radius:8px}.shipping-stop-editor .shipping-form textarea{min-height:62px;padding:9px 10px;font-size:13px;resize:vertical;border-radius:8px}.shipping-stop-editor .shipping-field-wide{grid-column:1/-1}.shipping-stop-editor .notice{margin:0;padding:9px 11px;font-size:11px}.shipping-stop-editor .shipping-form>.primary{justify-self:end;min-width:150px}@media(max-width:560px){.shipping-stop-fields{grid-template-columns:1fr}.shipping-stop-editor>.dialog-body{padding:12px}.shipping-stop-editor .shipping-form input,.shipping-stop-editor .shipping-form select{min-height:44px}}

/* Cards compactos das paradas, mantendo ações e estados legíveis. */
.shipping-detail .shipping-stops{gap:9px;margin-top:10px}.shipping-detail .shipping-stops>li{padding:11px 13px;border:1px solid #cce3e8;border-left:3px solid #108a9b;border-radius:13px;background:linear-gradient(115deg,#fff 60%,#f2f9fa);box-shadow:0 2px 6px #124b6008}.shipping-detail .shipping-stop-head{align-items:center;gap:8px;margin-bottom:4px}.shipping-detail .shipping-stop-head>strong{font-size:13px;color:#155a6c}.shipping-detail .shipping-stop-head .badge{font-size:10px;padding:4px 8px;border-radius:20px;background:#e5f1f5;color:#476d7e}.shipping-detail .shipping-stops p{font-size:12px;line-height:1.4;margin:3px 0;color:#3e6471}.shipping-detail .shipping-stops li>small{font-size:10px}.shipping-detail .shipping-tags{display:flex;flex-wrap:wrap;gap:5px;margin:6px 0}.shipping-detail .shipping-tags>span,.shipping-detail .shipping-tags>strong{padding:3px 7px;border-radius:6px;font-size:10px;background:#eaf4f6;color:#356777}.shipping-detail .shipping-tags>.shipping-priority-urgent{background:#ffe4df;color:#a6251b}.shipping-detail .shipping-tags>.shipping-priority-high{background:#fff0cc;color:#865400}.shipping-detail .shipping-stops .shipping-actions{gap:5px;margin-top:8px;padding-top:8px;border-top:1px solid #dcecef;align-items:center}.shipping-detail .shipping-stops .shipping-actions button,.shipping-detail .shipping-stops .shipping-actions a{font-size:11px;padding:6px 9px;min-height:32px;border-radius:8px}.shipping-detail .shipping-stop-priority{display:flex;flex-direction:row;align-items:center;gap:6px;font-size:10px;color:#58727c;background:#edf5f7;border:1px solid #d3e5ea;border-radius:8px;padding:3px 6px}.shipping-detail .shipping-stop-priority select{width:auto;min-width:76px;min-height:28px;padding:3px 20px 3px 6px;font-size:11px;border:0;background-color:#fff;border-radius:6px}.shipping-detail .shipping-stops .shipping-actions button:focus-visible,.shipping-detail .shipping-stop-priority select:focus-visible{outline:2px solid #138b9d;outline-offset:2px}@media(pointer:coarse){.shipping-detail .shipping-stops .shipping-actions button,.shipping-detail .shipping-stops .shipping-actions a,.shipping-detail .shipping-stop-priority select{min-height:44px}}

.shipping-organize-bar{display:flex;justify-content:flex-end;margin:12px 0 8px}.shipping-detail .shipping-organize-button{background:#e0f2f5;border:1px solid #83bfcb;color:#096b80;font-weight:700;border-radius:9px;padding:8px 13px}.shipping-detail .shipping-organize-button:hover{background:#cae9ef}.shipping-detail .shipping-dispatch:not(:disabled){background:#138344;border-color:#138344;color:white;font-weight:700;box-shadow:0 2px 7px #13834424}.shipping-detail .shipping-dispatch:disabled{background:#edf1f3;border-color:#d4dfe4;color:#788b96;box-shadow:none}

.order-timeline{padding:14px;margin-bottom:14px;border:1px solid color-mix(in srgb,var(--module-color,#0c7889) 25%,#fff);border-radius:12px;background:linear-gradient(130deg,var(--module-soft,#edf8f9),#fff)}
.order-timeline header{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}.order-timeline header strong{color:var(--module-color,#0c7889)}.order-timeline header small{color:#60788a;font-size:11px}
.order-timeline ol{display:flex;list-style:none;padding:16px 0 8px;margin:0;overflow-x:auto;gap:0}.order-timeline li{position:relative;flex:1 0 140px;max-width:210px;padding:0 12px;text-align:center;display:flex;flex-direction:column;align-items:center;gap:5px;color:#708291;font-size:12px}.order-timeline li:before{content:'';position:absolute;top:14px;left:0;right:0;height:2px;background:#d4e0e5}.order-timeline li:first-child:before{left:50%}.order-timeline li:last-child:before{right:50%}.timeline-dot{z-index:1;display:grid;place-items:center;width:29px;height:29px;border-radius:50%;background:#edf2f5;border:2px solid #c8d6dd;font-weight:800;font-size:17px}.order-timeline li small,.order-timeline time{font-size:10px;line-height:1.4}.order-timeline .timeline-current{color:var(--module-color,#0c7889)}.timeline-current .timeline-dot{background:var(--module-color,#0c7889);color:white;border-color:var(--module-color,#0c7889);box-shadow:0 0 0 4px var(--module-soft,#ddf2f5)}.timeline-done .timeline-dot{background:#ddf5e8;border-color:#208756;color:#17663f}.timeline-cancelled .timeline-dot{background:#ffe7e7;border-color:#b52b2b;color:#b52b2b}.order-timeline .timeline-alert{margin:12px 0 0;padding:9px;border-radius:7px;background:#fff2d5;color:#805919;font-size:12px}

.center-switcher{border:1px solid #bedbe4;border-radius:12px;padding:12px 14px;margin-bottom:12px;background:linear-gradient(120deg,#e9f5f7,#fff)}.center-switcher header{display:flex;gap:8px;align-items:center;flex-wrap:wrap;color:#116879}.center-switcher header small{font-size:11px;color:#527489}.center-switcher-options{display:flex;gap:10px;flex-wrap:wrap;margin-top:10px}.center-switcher-options button{display:flex;gap:8px;align-items:center;flex-wrap:wrap;border:1px solid #c5d9e1;border-radius:9px;background:#fff;padding:10px 12px;color:#24556c}.center-switcher-options button.selected{border:2px solid #0b798b;box-shadow:0 0 0 2px #d2edf0;font-weight:700}.center-switcher-options small{font-size:10px}.center-pending{display:inline-flex;align-items:center;gap:4px;background:#fff0bf;color:#83500d;border-radius:20px;padding:4px 7px;font-size:10px}.center-switcher-options .has-pending{animation:center-attention 2s ease-in-out infinite}@keyframes center-attention{50%{background:#fff1cc;border-color:#e7a62d;box-shadow:0 0 0 3px #f5bc4533}}@media(prefers-reduced-motion:reduce){.center-switcher-options .has-pending{animation:none;background:#fff1cc}}@media(max-width:560px){.center-switcher-options button{width:100%;min-height:44px}}

.order-timeline{min-width:0;width:100%;box-sizing:border-box}.order-timeline ol{max-width:100%;box-sizing:border-box}
/* Route planning: compact steps, address list and geographic preview. */
.shipping-optimizer-dialog{width:min(900px,96vw);max-width:900px}
.shipping-optimizer-dialog .dialog-head{background:linear-gradient(120deg,#e3f5f5,#f6fbff);padding:16px 20px}
.shipping-optimizer-dialog h2{display:flex;align-items:center;gap:8px;margin:4px 0}
.optimizer-eyebrow{font-size:9px;letter-spacing:.13em;color:#087e91;font-weight:700}
.optimizer-step{border:1px solid #d5e7eb;border-radius:12px;padding:12px;background:#fff;margin-bottom:12px}
.optimizer-step>header{display:flex;align-items:center;gap:8px;margin-bottom:10px}
.optimizer-step>header>span,.optimizer-point{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:25px;height:25px;border-radius:8px;background:#e0f2f3;color:#08778a;font-weight:700}
.optimizer-step h3{margin:0;font-size:13px}.optimizer-progress{margin-left:auto;color:#547588;font-size:10px}
.optimizer-modes{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.optimizer-manual ol{padding:0;margin:8px 0;list-style:none;display:grid;gap:6px}.optimizer-manual li{display:flex;align-items:center;gap:8px;padding:10px;border:1px solid #bcdde3;border-radius:9px;background:#f4fbfc;cursor:grab}.optimizer-manual li.dragging{opacity:.45;border-style:dashed}.optimizer-manual li:active{cursor:grabbing}.optimizer-manual li>div:not(.optimizer-manual-actions){flex:1;min-width:0}.optimizer-manual small,.optimizer-base-locked small{display:block;font-size:10px;line-height:1.5;color:#577386;margin-top:3px}.optimizer-manual-actions{display:flex;gap:4px}.optimizer-manual-actions button{padding:6px!important}.optimizer-base-locked{display:flex;align-items:center;gap:9px;padding:10px;border-radius:9px;background:#e3f1ee;border:1px solid #b9dbd1;color:#1d6254}.optimizer-base-locked em{margin-left:auto;font-size:10px;font-style:normal;font-weight:600}
.optimizer-modes button{display:grid;grid-template-columns:24px 1fr;text-align:left;gap:4px 8px;border-radius:10px;padding:12px;background:#f7fafc;border:1px solid #d7e5ed;color:#294a60}
.optimizer-modes button small{grid-column:2;font-weight:400;line-height:1.5}.optimizer-modes button.selected{background:#e0f5f3;border-color:#078094;box-shadow:inset 0 0 0 1px #078094}
.optimizer-help,.optimizer-disclaimer{font-size:11px;line-height:1.5;color:#587386;margin:8px 0}
.optimizer-map-section{margin-top:10px;border:1px solid #d9e7ed;border-radius:10px;overflow:hidden}
.optimizer-map-section>summary{display:flex;align-items:center;gap:7px;padding:10px;background:#edf6f8;cursor:pointer;font-weight:600;color:#076d80}.optimizer-map-section>summary span{margin-left:auto;font-size:10px}
.optimizer-map-layout{display:grid;grid-template-columns:230px minmax(0,1fr)}
.optimizer-locations{padding:8px;background:#f6fafc;max-height:420px;overflow:auto;display:flex;flex-direction:column;gap:6px}
.optimizer-locations button{display:flex;gap:8px;text-align:left;align-items:flex-start;padding:9px;border:1px solid transparent;background:transparent;border-radius:8px;color:#254b60}.optimizer-locations button.selected{border-color:#0b8a9d;background:#e4f5f7}.optimizer-locations small{display:block;margin-top:3px;font-size:10px;line-height:1.45;color:#547588}.optimizer-point.confirmed{background:#daf3e6;color:#178454}
.optimizer-map-content{padding:10px;min-width:0}.optimizer-selected{display:flex;flex-direction:column;gap:3px;font-size:11px;margin-bottom:8px}.optimizer-selected small{color:#587386}.optimizer-map{height:280px;border-radius:9px;z-index:0;background:#e2edf0}
.optimizer-map-pin span{display:flex;align-items:center;justify-content:center;width:28px;height:28px;background:#087e91;color:white;border:2px solid white;border-radius:50%;font-weight:bold;box-shadow:0 2px 8px #163e6055}
.optimizer-point-confirmed{display:flex;align-items:center;gap:5px;color:#187b59;font-size:10px;margin:8px 0}.optimizer-point-confirmed button{margin-left:auto}.optimizer-coordinates summary{font-size:10px;color:#587386;cursor:pointer}.optimizer-return{display:flex;align-items:center;gap:7px;margin-top:12px!important;font-size:11px}.optimizer-return input{width:auto}
.optimizer-pending-note{padding:9px;border-radius:7px;background:#fff4dd;color:#8b6017;font-size:11px}.optimizer-calculate{width:100%;justify-content:center;padding:12px!important;border-radius:9px!important}
.shipping-optimization-result{padding:14px;background:#f0faf5;border:1px solid #c9e9d7;border-radius:12px}.optimizer-ready{display:flex;align-items:center;gap:5px;color:#18834d;font-size:11px}.optimizer-distance{display:flex;align-items:center;gap:10px}.shipping-optimization-result ol{padding:0;list-style:none}.shipping-optimization-result li{display:flex;align-items:center;gap:10px;padding:9px 0;border-bottom:1px solid #d9ece1}.shipping-optimization-result li small{display:block;font-size:10px;color:#547588}.optimizer-priority{margin-left:auto;font-size:9px;border-radius:5px;padding:4px 6px;background:#e1edf2}.optimizer-priority.urgent{background:#ffe0de;color:#a6221b}.optimizer-priority.high{background:#ffedc5;color:#906117}
@media(max-width:650px){.optimizer-map-layout{grid-template-columns:1fr}.optimizer-locations{max-height:150px}.optimizer-modes{grid-template-columns:1fr}.optimizer-map{height:240px}.optimizer-step>header{flex-wrap:wrap}.optimizer-progress{margin-left:0}}

.shipping-optimizer-dialog .optimizer-footer{position:sticky;bottom:0;z-index:2;display:flex;justify-content:flex-end;gap:8px;padding:12px 18px;background:#f4fafb;border-top:1px solid #cfe3e8}.optimizer-footer .primary{min-width:140px;display:inline-flex;align-items:center;justify-content:center;gap:6px}

.shipping-optimizer-dialog .dialog-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.optimizer-header-actions{display:flex;align-items:center;gap:8px;flex-shrink:0}.optimizer-header-actions .primary{display:inline-flex;align-items:center;justify-content:center;gap:6px;white-space:nowrap}@media(max-width:480px){.shipping-optimizer-dialog .dialog-head{padding:10px;gap:6px}.shipping-optimizer-dialog .optimizer-eyebrow{display:none}.shipping-optimizer-dialog h2{font-size:14px}.optimizer-header-actions{gap:4px}.optimizer-header-actions .primary{padding:7px!important;font-size:11px}}

.shipping-board .shipping-stage{border-top:3px solid var(--stage-color,#0b8092);background:var(--stage-bg,#f3f7f9)}
.shipping-stage-draft{--stage-color:#4785bd;--stage-bg:#eef5fc}.shipping-stage-waiting{--stage-color:#d59a19;--stage-bg:#fff8e8}.shipping-stage-active{--stage-color:#178565;--stage-bg:#edf8f3}
.shipping-stage-heading h4{display:flex;align-items:center;justify-content:space-between;gap:8px;color:#24445b}.shipping-stage-heading h4 span{display:inline-flex;align-items:center;justify-content:center;min-width:22px;padding:2px 6px;border-radius:12px;background:var(--stage-color,#0b8092);color:white}.shipping-stage-heading>small{display:block;color:#577083;margin:3px 0 6px}.shipping-board .shipping-stage button{border-left-color:var(--stage-color,#0b8092)}

/* Painel de parada: seções compactas, cores suaves e controles acessíveis. */
.shipping-stop-editor{width:min(880px,calc(100% - 24px));background:#f4f7fb;border:1px solid #cbdce7;box-shadow:0 24px 80px #173d6033}
.shipping-stop-editor>.dialog-head{padding:12px 16px;background:linear-gradient(120deg,#e2f3f4,#f0f3ff);border-bottom:1px solid #c9dfe8}
.shipping-stop-editor>.dialog-head h2{font-size:17px;letter-spacing:-.3px}
.shipping-stop-editor>.dialog-body{padding:12px 14px}
.shipping-stop-editor .shipping-form{gap:10px}
.shipping-stop-editor .shipping-stop-group{padding:10px 12px;border-radius:12px;border-color:#c5e2e4;background:linear-gradient(125deg,#edf9f8,#fff 75%);box-shadow:0 2px 5px #16395106;border-left:3px solid #159187}
.shipping-stop-editor .shipping-stop-group:nth-of-type(2){border-color:#d7d9ee;border-left-color:#7a6bb7;background:linear-gradient(125deg,#f3f0fc,#fff 75%)}
.shipping-stop-editor .shipping-stop-group:nth-of-type(3){border-color:#ebddc7;border-left-color:#c58c35;background:linear-gradient(125deg,#fff8e9,#fff 75%)}
.shipping-stop-editor .shipping-stop-group legend{font-size:11px;letter-spacing:.15px;color:#126c67;background:#e4f3ef;border-radius:6px;padding:4px 8px}
.shipping-stop-editor .shipping-stop-group:nth-of-type(2) legend{color:#615092;background:#eee9fa}
.shipping-stop-editor .shipping-stop-group:nth-of-type(3) legend{color:#805914;background:#fff0d4}
.shipping-stop-editor .shipping-stop-fields{gap:7px 12px}
.shipping-stop-editor .shipping-form label{font-size:11px;gap:4px;font-weight:600}
.shipping-stop-editor .shipping-form input,.shipping-stop-editor .shipping-form select{min-height:32px;padding:6px 9px;font-size:12px;background-color:#fff;border-color:#ccdae5}
.shipping-stop-editor .shipping-form textarea{min-height:46px;padding:7px 9px;font-size:12px;background:#fff}
.shipping-stop-editor .shipping-form>.primary{position:sticky;bottom:0;box-shadow:0 3px 12px #18546622}
.shipping-receiver-form{padding:14px;border:1px solid #c5e2e4;border-radius:12px;background:#f1f9f8}
.shipping-receiver-row{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 12px;border:1px solid #dbe5ef;border-radius:10px;background:#fff}.shipping-receiver-row span{display:grid;gap:3px}.shipping-receiver-row small{color:#526879}
@media(pointer:coarse){.shipping-stop-editor .shipping-form input,.shipping-stop-editor .shipping-form select,.shipping-stop-editor button{min-height:44px}}

@media(min-width:701px){.shipping-stop-editor .shipping-stop-fields{grid-template-columns:repeat(4,minmax(0,1fr))}.shipping-stop-editor .shipping-stop-fields>label{grid-column:span 2}.shipping-stop-editor .shipping-stop-fields>.shipping-address-postalCode,.shipping-stop-editor .shipping-stop-fields>.shipping-address-number,.shipping-stop-editor .shipping-stop-fields>.shipping-address-city,.shipping-stop-editor .shipping-stop-fields>.shipping-address-state{grid-column:span 1}.shipping-stop-editor .shipping-stop-fields>.shipping-address-street,.shipping-stop-editor .shipping-stop-fields>.shipping-address-complement{grid-column:span 3}.shipping-stop-editor .shipping-stop-fields>.shipping-field-wide:not(.shipping-address-street){grid-column:1/-1}}

@media(min-width:701px){.shipping-stop-editor .shipping-stop-fields>.delivery-date-field{grid-column:span 2}}
.shipping-stop-editor .delivery-date-trigger{min-height:32px;padding:6px 9px;font-size:12px}.shipping-stop-editor .delivery-date-field>span{font-size:11px}.shipping-stop-editor .shipping-stop-fields{align-items:start}
@media(pointer:coarse){.shipping-stop-editor .delivery-date-trigger{min-height:44px}}

/* Route overview: compact summary and semantic counters. */
.shipping-detail .shipping-summary-toolbar{display:flex;align-items:center;gap:10px;margin:10px 0}
.shipping-detail .shipping-summary-toolbar .shipping-cost-summary{flex:1;min-width:0;margin:0}
.shipping-detail .shipping-summary-toolbar .shipping-organize-bar{margin:0;flex:0 0 auto}
.shipping-detail .shipping-summary-toolbar .shipping-organize-button{white-space:nowrap}
.shipping-detail .shipping-kpis>span:nth-child(1){background:#e8f1ff;color:#245a94;border-color:#b8d2ef;border-left-color:#377ec2}
.shipping-detail .shipping-kpis>span:nth-child(2){background:#f0e9fb;color:#71459c;border-color:#d5c2eb;border-left-color:#8b60bd}
.shipping-detail .shipping-kpis>span:nth-child(3){background:#fff3d8;color:#865b0b;border-color:#ecd29a;border-left-color:#d39829}
@media(max-width:520px){.shipping-detail .shipping-summary-toolbar{flex-wrap:wrap}.shipping-detail .shipping-summary-toolbar .shipping-organize-bar{margin-left:auto}}
.geo-communication-control{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:13px 15px;margin:12px 0;border:1px solid #bad8d0;border-radius:10px;background:linear-gradient(110deg,#edf8f3,#f7fbfa);color:#27594f}
.geo-communication-control.is-paused{background:linear-gradient(110deg,#fff1d6,#fffbf3);border-color:#e4bf76;color:#785019}
.geo-communication-control strong{font-size:13px}.geo-communication-control p{font-size:12px;line-height:1.5;margin:4px 0 0}.geo-communication-control small{display:block;margin-top:6px}
.geo-communication-control button{flex-shrink:0;display:inline-flex;align-items:center;gap:6px;padding:9px 12px;border-radius:8px;font-size:12px;font-weight:600}
.geo-communication-control .geo-pause-button{background:#996119;border:1px solid #996119;color:#fff}.geo-communication-control .geo-resume-button{background:#186a54;border:1px solid #186a54;color:#fff}
.geo-communication-control button:disabled{opacity:.55;cursor:wait}.geo-communication-control button:focus-visible{outline:2px solid #285c9c;outline-offset:3px}
@media(max-width:640px){.geo-communication-control{align-items:stretch;flex-direction:column}.geo-communication-control button{justify-content:center;min-height:40px}}

.crm-area{--crm-accent:#6b3da0;--crm-soft:#f3edf9;--crm-border:#dce4ec;--crm-muted:#647587;display:grid;gap:16px;min-width:0;font-size:13px;color:#233c50}.crm-area button,.crm-dialog button{font-size:12px;min-height:34px;padding:7px 11px;border-radius:7px;gap:6px}.crm-area button.primary,.crm-dialog button.primary{background:#684099;border-color:#684099;color:#fff}.crm-area button.primary:hover,.crm-dialog button.primary:hover{background:#55307f}.crm-area button:focus-visible,.crm-dialog button:focus-visible{outline:3px solid #b590de;outline-offset:3px}.crm-area h2{font-size:23px;line-height:1.2;color:#493063}.crm-area h3,.crm-dialog h3{font-size:14px;color:#293e52;line-height:1.4}.crm-area p,.crm-dialog p{line-height:1.55}.crm-area small,.crm-dialog small{font-size:11px;line-height:1.45;color:#65758a}.crm-area label,.crm-dialog label{font-size:12px;line-height:1.35;gap:5px;color:#43566c}.crm-area input,.crm-area select,.crm-area textarea,.crm-dialog input,.crm-dialog select,.crm-dialog textarea{min-height:37px;padding:8px 10px;font-size:12px;line-height:1.4;border:1px solid #cbd7e2;border-radius:7px;background:#fff;min-width:0}.crm-area textarea,.crm-dialog textarea{min-height:85px}.crm-area input:focus,.crm-area select:focus,.crm-area textarea:focus,.crm-dialog input:focus,.crm-dialog select:focus,.crm-dialog textarea:focus{border-color:#9671bb;outline-color:#ad91c9}.crm-area .crm-muted,.crm-dialog .crm-muted{font-size:12px;color:#65758a;line-height:1.55}.crm-hero{display:flex;align-items:center;justify-content:space-between;gap:16px;background:linear-gradient(110deg,#fff 0%,#fbf8ff 100%);border:1px solid #e3d8ee;border-radius:13px;padding:20px 22px}.crm-hero-title{display:flex;align-items:center;gap:15px;min-width:0}.crm-hero-title small{display:block;font-size:9px;letter-spacing:1.2px;font-weight:700;color:#86679f;margin-bottom:5px}.crm-hero-title p{font-size:12px;color:#738098;margin-top:6px}.crm-hero-icon{display:grid;place-items:center;width:48px;height:48px;flex-shrink:0;color:#684099;border-radius:13px;background:#f0e7fa;border:1px solid #e5d7f2}.crm-hero-icon svg{width:24px;height:24px}.crm-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap;flex-shrink:0}.crm-scope{font-size:12px;color:#6e5983;display:flex;align-items:center;gap:7px;padding:0 4px}.crm-feedback{display:flex;align-items:center;gap:9px;padding:10px 13px;border:1px solid #afd2c6;border-radius:8px;background:#eff9f3;color:#267552;font-size:12px}.crm-feedback button{margin-left:auto;min-height:26px;padding:3px}.crm-error{border:1px solid #f0b6a7;background:#fff4ef;color:#a4432e;border-radius:8px;padding:11px 13px;font-size:12px;line-height:1.5;overflow-wrap:anywhere}.crm-tabs{display:flex;gap:3px;padding:4px;border:1px solid #dce3ec;border-radius:10px;background:#fff;overflow:auto;scrollbar-width:thin}.crm-tabs>button{flex:1;white-space:nowrap;border:0;background:transparent;color:#61758b;padding:10px 11px;font-size:12px;min-height:39px}.crm-tabs>button.active{background:#f0e7fa;color:#61368e;box-shadow:inset 0 -2px 0 #8b5db5}.crm-nav-count{font-size:10px;padding:2px 5px;border-radius:5px;background:#b65420;color:white;margin-left:2px}.crm-toolbar{display:flex;align-items:end;gap:12px;min-width:0}.crm-toolbar>label{width:225px;max-width:100%}.crm-toolbar>.crm-search{flex:1;max-width:600px}.crm-search>span{position:relative;display:block}.crm-search svg{position:absolute;top:11px;left:10px;color:#8b95a7}.crm-search input{padding-left:33px}.crm-toolbar>small{margin-left:auto;padding-bottom:10px;white-space:nowrap}.crm-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.crm-stat{display:grid;align-content:start;gap:11px;border:1px solid #dee4ed;border-radius:10px;padding:16px;background:white;position:relative;overflow:hidden}.crm-stat:before{content:'';width:3px;position:absolute;inset:0 auto 0 0;background:#9972bc}.crm-stat.blue:before{background:#649bc9}.crm-stat.orange:before{background:#e79a50}.crm-stat.green:before{background:#65a88b}.crm-stat>span{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:12px;color:#65758a}.crm-stat>span svg{color:#8a6da8;flex-shrink:0}.crm-stat.blue>span svg{color:#4582b4}.crm-stat.orange>span svg{color:#b86a2e}.crm-stat.green>span svg{color:#2b8a61}.crm-stat>strong{font-size:25px;line-height:1.15;font-weight:700;color:#293d54;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.crm-stat>small{font-size:10px;min-height:28px}.crm-overview-grid{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(0,1fr);gap:14px}.crm-card{padding:17px 18px;background:#fff;border:1px solid #dce4ec;border-radius:11px;min-width:0}.crm-card-flush{padding:0;overflow:hidden}.crm-card-flush>.crm-section-head{padding:17px 18px}.crm-section-head{display:flex;align-items:center;justify-content:space-between;gap:13px;margin-bottom:15px;min-width:0}.crm-section-head p{color:#738299;font-size:11px;margin-top:4px}.crm-section-head>.ghost{color:#704c96;white-space:nowrap;font-size:11px;padding:6px}.crm-section-head>svg{color:#9676b3}.crm-funnel-summary{display:grid;gap:16px;padding:3px 0 17px}.crm-funnel-summary>div>div:first-child{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:7px}.crm-funnel-summary>div>div>span{display:flex;align-items:center;gap:7px;font-size:12px;color:#51647b}.crm-funnel-summary>div>div>span small{background:#f2f4f7;padding:1px 5px;border-radius:4px;font-size:10px}.crm-funnel-summary strong{font-size:12px;color:#344861}.crm-stage-dot{display:inline-block;width:7px;height:7px;min-width:7px;border-radius:50%;background:#8d7ca6}.crm-stage-dot.qualification,.crm-bar .qualification{background:#598bad}.crm-stage-dot.proposal,.crm-bar .proposal{background:#ae8a46}.crm-stage-dot.negotiation,.crm-bar .negotiation{background:#8367ae}.crm-stage-dot.won,.crm-bar .won{background:#418b70}.crm-stage-dot.lost{background:#ae7780}.crm-bar{width:100%;height:7px;background:#f1f3f7;border-radius:5px;overflow:hidden}.crm-bar>span{display:block;height:100%;min-width:0;border-radius:5px;background:#9c84b9;transition:width .3s ease}.crm-card-note{border-top:1px solid #e9edf3;padding-top:12px;display:flex;justify-content:space-between;flex-wrap:wrap;gap:9px;font-size:11px;color:#64748b}.crm-card-note>small{width:100%;font-size:10px}.crm-card-note strong{color:#3d536b}.crm-attention{display:grid;gap:8px}.crm-attention>button{display:flex;align-items:center;gap:11px;width:100%;text-align:left;justify-content:flex-start;background:#fafbfe;border:1px solid #e6eaf1;min-height:70px;padding:12px}.crm-attention>button:hover{background:#f7f3fb;border-color:#d9cce8}.crm-attention>button>div{display:grid;gap:4px;flex:1}.crm-attention>button strong{font-size:12px;color:#3f4d63}.crm-attention>button>svg{width:15px;color:#8d99ad}.crm-attention-icon{display:grid;place-items:center;width:35px;height:35px;background:#efe8f7;border-radius:9px;color:#8151a5;flex-shrink:0}.crm-attention-icon svg{width:17px;height:17px}.crm-attention-icon.orange{background:#fff0df;color:#b9762a}.crm-attention-icon.blue{background:#eaf3fd;color:#507da9}.crm-attention-icon.green{background:#e8f5ef;color:#41876b}.crm-agenda-list{display:grid}.crm-agenda-list>button{display:flex;align-items:center;justify-content:flex-start;gap:10px;text-align:left;padding:11px 0;background:none;border:0;border-radius:0;border-bottom:1px solid #edf0f5}.crm-agenda-list>button:last-child{border-bottom:0}.crm-agenda-list>button>div{display:grid;gap:4px;flex:1;min-width:0}.crm-agenda-list strong{font-size:12px;overflow-wrap:anywhere}.crm-agenda-list>button>span:last-child{font-size:10px;color:#79869a;white-space:nowrap}.crm-agenda-list>button>span.crm-late{color:#b65f2d}.crm-mini-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:17px 0}.crm-mini-stats>div{display:grid;gap:6px;padding:12px;background:#f7f9fc;border:1px solid #edf0f5;border-radius:8px;align-content:start}.crm-mini-stats strong{font-size:22px;color:#3f4861;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.crm-mini-stats span{font-size:10px;color:#758199;line-height:1.45}.crm-tip{display:flex;align-items:flex-start;gap:8px;font-size:11px;color:#667b92;background:#f1f6fc;padding:13px;border:1px solid #dfe9f5;border-radius:8px}.crm-tip>svg{flex-shrink:0;color:#728fba}.crm-empty{display:grid;justify-items:center;align-content:center;gap:10px;text-align:center;padding:32px 18px;min-height:170px}.crm-empty>svg{color:#a5b0c3}.crm-empty>strong{font-size:13px;color:#66758a}.crm-empty>p{max-width:460px;font-size:12px;color:#8591a3}.crm-badge{display:inline-flex;align-items:center;gap:4px;padding:3px 7px;border-radius:5px;background:#edf1f6;color:#5e7083;font-size:10px;font-weight:600;line-height:1.3;white-space:nowrap}.crm-badge.purple,.crm-badge.prospecting,.crm-badge.negotiation{background:#f1eafa;color:#7c55a2}.crm-badge.blue,.crm-badge.qualification{background:#eaf2fc;color:#467fa7}.crm-badge.orange,.crm-badge.proposal{background:#fff0dc;color:#ab6d21}.crm-badge.green,.crm-badge.won{background:#e5f4ec;color:#2a805b}.crm-badge.lost{background:#f8e9ed;color:#a45064}.crm-filter-chips{display:flex;gap:6px;flex-wrap:wrap;padding:0 18px 15px}.crm-filter-chips>button{border:1px solid #e1e6ee;border-radius:6px;background:#f9fafc;color:#6d7b90;font-size:11px;min-height:30px;padding:6px 10px}.crm-filter-chips>button.active{color:#724396;background:#f1e9f8;border-color:#d9c6e9}.crm-table-wrap{overflow:auto;max-width:100%}.crm-table{width:100%;font-size:12px;border-collapse:collapse;text-align:left}.crm-table th{padding:11px 15px;font-size:9px;letter-spacing:.5px;color:#718099;background:#f7f9fc;border-top:1px solid #edf0f5;white-space:nowrap}.crm-table td{padding:13px 15px;border-top:1px solid #edf0f5;color:#475e75;vertical-align:middle;line-height:1.45}.crm-table td small{font-size:10px;display:block;margin-top:4px;max-width:300px;overflow-wrap:anywhere}.crm-table td strong{color:#394e65;font-size:12px}.crm-table td>.crm-text-button{padding:0;border:0;background:none;min-height:0;text-align:left;justify-content:flex-start;color:#553d78;font-size:12px;font-weight:700;line-height:1.45;max-width:320px}.crm-table td>.crm-text-button:hover{text-decoration:underline}.crm-table td>button:not(.crm-text-button){font-size:11px;padding:6px 9px;min-height:31px;white-space:nowrap}.crm-table tr:hover{background:#fcfaff}.crm-table-footer{font-size:10px;color:#8a95a6;border-top:1px solid #edf0f5;padding:11px 17px}.crm-late{color:#ad592b!important}.crm-row-overdue{background:#fffcf7}.crm-row-overdue td:first-child{box-shadow:inset 3px 0 0 #eac181}.crm-pipeline{display:grid;gap:0;min-width:0}.crm-pipeline>.crm-section-head{background:white;padding:16px;border:1px solid #dce4ec;border-radius:10px;margin-bottom:12px}.crm-segmented{display:flex;padding:2px;background:#f0f3f7;border-radius:7px;border:1px solid #e1e6ec}.crm-segmented button{border:0;background:transparent;color:#7b889b;font-size:11px;min-height:28px;padding:5px 9px}.crm-segmented button.active{background:white;box-shadow:0 1px 3px #233c5012;color:#684099}.crm-board{display:grid;grid-template-columns:repeat(6,minmax(185px,1fr));gap:10px;overflow-x:auto;align-items:start;padding-bottom:12px;scrollbar-width:thin}.crm-column{background:#f0f3f8;border:1px solid #e0e6ef;border-radius:10px;min-height:250px}.crm-column>header{display:grid;gap:9px;padding:13px 12px;border-bottom:1px solid #e1e6ee;background:#f7f8fc;border-radius:10px 10px 0 0}.crm-column>header>span{display:flex;align-items:center;gap:6px;font-size:11px;font-weight:700;color:#56677e}.crm-column>header .crm-badge{margin-left:auto;font-size:9px;padding:2px 5px}.crm-column>header>strong{font-size:15px;color:#40526b}.crm-column.won>header{background:#f0f8f4}.crm-column.lost>header{background:#faf3f5}.crm-column-cards{display:grid;gap:9px;padding:9px}.crm-column-cards>.crm-opportunity{display:grid;align-items:start;justify-content:stretch;text-align:left;gap:8px;background:white;padding:12px;border:1px solid #dee4ee;border-radius:8px;box-shadow:0 2px 3px #30426905;width:100%;min-width:0}.crm-opportunity:hover{border-color:#c0a7d8!important;box-shadow:0 3px 10px #5b3d7710!important}.crm-opportunity>small{font-size:9px;font-weight:400;overflow-wrap:anywhere}.crm-opportunity>strong{font-size:12px;color:#3c4961;line-height:1.4;overflow-wrap:anywhere}.crm-opportunity>b{font-size:16px;font-weight:650;color:#634b82;margin:2px 0}.crm-opportunity-meta{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:5px;font-size:9px;color:#7c889d;font-weight:400}.crm-next-step{background:#f7f9fc;border:1px solid #edf0f6;border-radius:5px;padding:6px;font-size:10px;color:#697d96;font-weight:400;line-height:1.5;overflow-wrap:anywhere}.crm-next-step.missing{background:#fffaf0;border-color:#f4e8cd;color:#a18c61}.crm-column-empty{padding:24px 6px;color:#97a2b4;font-size:11px;text-align:center}.crm-dialog{width:min(640px,calc(100vw - 30px));max-width:640px;max-height:90vh;border:1px solid #d8cbe6;border-radius:12px;padding:0;color:#35495f;background:#fff;box-shadow:0 22px 70px #19273830;overflow:auto}.crm-dialog-wide{width:min(930px,calc(100vw - 30px));max-width:930px}.crm-dialog::backdrop{background:#15243477;backdrop-filter:blur(1px)}.crm-dialog-head{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:17px 20px;background:#f7f3fb;border-bottom:1px solid #e7dff0;position:sticky;top:0;z-index:2}.crm-dialog-head>div{min-width:0}.crm-dialog-head small{display:block;font-size:9px;letter-spacing:1px;color:#997cab;margin-bottom:5px}.crm-dialog-head h2{font-size:17px;color:#57406f;line-height:1.4;overflow-wrap:anywhere}.crm-dialog-head>button{min-height:28px;padding:5px;flex-shrink:0;background:#fff}.crm-dialog-body{padding:18px 20px;display:grid;gap:14px}.crm-dialog-footer{display:flex;align-items:center;justify-content:flex-end;gap:8px;padding:13px 20px;background:#fcfbfd;border-top:1px solid #e8e3ef;position:sticky;bottom:0;z-index:2;flex-wrap:wrap}.crm-dialog-footer>span{font-size:10px;color:#a07b52;margin-right:auto}.crm-dialog form{display:grid;gap:15px}.crm-dialog fieldset{padding:0;margin:0;border:0;min-width:0;display:grid;gap:16px}.crm-dialog fieldset:disabled input,.crm-dialog fieldset:disabled select,.crm-dialog fieldset:disabled textarea{background:#f5f7fa;color:#758398}.crm-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.crm-full{grid-column:1/-1}.crm-form-section{display:grid;gap:12px;padding-bottom:17px;border-bottom:1px solid #e9edf3}.crm-form-section:last-child{border-bottom:0;padding-bottom:0}.crm-form-section>.crm-section-head{margin-bottom:0}.crm-form-section .crm-info{font-size:11px}.crm-info{padding:11px 12px;background:#f1f6fc;border:1px solid #dbe5f2;border-radius:7px;color:#617b99;font-size:11px;line-height:1.55}.crm-check{display:flex!important;align-items:center;gap:8px!important;min-height:30px}.crm-check input{width:15px!important;height:15px;min-height:15px!important;margin:0;accent-color:#7b4fa1}.crm-forecast{display:flex;gap:11px;align-items:center;padding:13px;border:1px solid #e3d5ef;border-radius:8px;background:#f9f5fd;color:#8a63a8}.crm-forecast>div{display:grid;gap:4px}.crm-forecast strong{font-size:20px;color:#70518d}.crm-forecast small{font-size:10px}.crm-account-summary{display:grid;gap:12px}.crm-account-summary>div:first-child{display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-size:11px;color:#8390a1}.crm-account-summary>p{display:flex;gap:6px;align-items:center;font-size:12px;color:#6f8095}.crm-account-summary>.crm-mini-stats{margin:0}.crm-account-summary .crm-mini-stats strong{font-size:21px}.crm-contact-links{display:flex;flex-wrap:wrap;gap:10px}.crm-contact-links a{display:inline-flex;align-items:center;gap:5px;color:#6e4c96;font-size:11px;text-decoration:none;overflow-wrap:anywhere}.crm-contact-links a:hover{text-decoration:underline}.crm-detail-tabs{display:flex;gap:4px;border-bottom:1px solid #e4e7ef;padding-bottom:6px}.crm-detail-tabs button{border:0;background:none;color:#8190a2;font-size:12px;padding:8px 10px}.crm-detail-tabs button.active{background:#f1eaf8;color:#765397}.crm-data-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:0}.crm-data-grid dt{font-size:10px;color:#8a93a3;margin-bottom:5px}.crm-data-grid dd{margin:0;font-size:12px;color:#4c6079}.crm-preserve{white-space:pre-wrap;font-size:12px;color:#64748c;overflow-wrap:anywhere}.crm-detail-list{display:grid;gap:7px}.crm-detail-list>button{display:flex;align-items:center;justify-content:flex-start;text-align:left;padding:11px;background:#fafbfd;border:1px solid #e5eaf2;gap:10px}.crm-detail-list>button>div{display:grid;gap:4px;flex:1;min-width:0}.crm-detail-list strong{font-size:12px;overflow-wrap:anywhere}.crm-detail-list small{font-size:10px}.crm-detail-list b{font-size:12px;white-space:nowrap;color:#6c5988}.crm-visit-history{display:grid;gap:8px}.crm-visit-history article{padding:11px 13px;border:1px solid #e2e8f1;border-radius:8px;display:grid;gap:5px;background:#fcfdff}.crm-visit-history strong{font-size:12px}.crm-visit-history p{font-size:11px;color:#71849a}.crm-contacts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.crm-contacts>article{display:grid;align-content:start;justify-items:start;gap:11px;border:1px solid #e0e6ef;padding:13px;border-radius:9px}.crm-contacts header{display:flex;align-items:center;justify-content:space-between;width:100%;gap:8px}.crm-contacts header>div{display:grid;gap:4px}.crm-contacts header strong{font-size:13px}.crm-contacts header button{font-size:10px;padding:5px 8px;min-height:29px}.crm-contacts article>p{font-size:11px;color:#7d879a;white-space:pre-wrap}.crm-note-form{display:grid;gap:8px;padding:13px;background:#f7f4fc;border:1px solid #e7dff2;border-radius:9px}.crm-note-form>button{justify-self:end}.crm-timeline{margin:0;padding:7px 0;list-style:none;display:grid;gap:0}.crm-timeline>li{display:flex;gap:12px;padding:0 0 20px;position:relative}.crm-timeline>li:before{content:'';width:1px;background:#e3d9ee;position:absolute;left:12px;top:22px;bottom:0}.crm-timeline>li:last-child:before{display:none}.crm-timeline-dot{display:grid;place-items:center;flex-shrink:0;width:25px;height:25px;border-radius:50%;background:#f0e8f8;color:#9a78b3;border:1px solid #e5d9ee}.crm-timeline p{font-size:12px;white-space:pre-wrap;color:#5c6e86;overflow-wrap:anywhere}.crm-timeline small{display:block;margin-top:6px;font-size:10px;color:#91a0b1}.crm-dialog-body>.crm-error{margin-top:4px}
@media(min-width:1500px){.crm-board{grid-template-columns:repeat(6,minmax(0,1fr))}}@media(max-width:1080px){.crm-hero{align-items:flex-start}.crm-hero>.crm-actions{flex-direction:column;align-items:stretch}.crm-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.crm-overview-grid{grid-template-columns:1fr}.crm-tabs>button{flex:0 0 auto}.crm-toolbar>.crm-search{max-width:none}.crm-toolbar>small{display:none}.crm-section-head{flex-wrap:wrap}.crm-hero-title small{font-size:8px}.crm-stat>small{min-height:0}}@media(max-width:640px){.crm-area{gap:12px}.crm-hero{padding:14px;display:grid;gap:15px}.crm-hero>.crm-actions{flex-direction:row}.crm-hero-title{gap:10px}.crm-hero-icon{width:37px;height:37px;border-radius:10px}.crm-hero-icon svg{width:21px}.crm-area h2{font-size:20px}.crm-hero-title small{font-size:7px;letter-spacing:.65px}.crm-hero-title p{font-size:11px}.crm-toolbar{align-items:stretch;flex-wrap:wrap}.crm-toolbar>.crm-search{flex:auto;width:100%;}.crm-toolbar>label{width:100%}.crm-stat{padding:13px;gap:10px}.crm-stat>strong{font-size:21px}.crm-stat>span{font-size:10px}.crm-card{padding:14px}.crm-card-flush{padding:0}.crm-card-flush>.crm-section-head{padding:14px}.crm-filter-chips{padding:0 14px 12px}.crm-mini-stats{gap:7px}.crm-mini-stats>div{padding:9px}.crm-mini-stats strong{font-size:20px}.crm-mini-stats span{font-size:9px}.crm-agenda-list>button{flex-wrap:wrap}.crm-agenda-list>button>span:last-child{padding-left:45px;white-space:normal;width:100%}.crm-section-head .crm-actions{width:100%}.crm-dialog,.crm-dialog-wide{width:calc(100vw - 16px);max-height:94vh}.crm-dialog-head{padding:13px 14px}.crm-dialog-head h2{font-size:15px}.crm-dialog-body{padding:14px}.crm-dialog-footer{padding:11px 14px}.crm-form-grid,.crm-contacts{grid-template-columns:1fr}.crm-data-grid{gap:12px}.crm-account-summary .crm-mini-stats strong{font-size:17px}.crm-detail-list>button{flex-wrap:wrap}.crm-detail-list>button>div{min-width:65%}.crm-dialog-footer>span{flex-basis:100%}.crm-board{grid-template-columns:repeat(6,205px)}.crm-pipeline>.crm-section-head{padding:13px}.crm-detail-tabs{overflow:auto;white-space:nowrap}.crm-detail-tabs button{font-size:11px;padding:7px 8px}.crm-table th,.crm-table td{padding:11px}.crm-attention>button{padding:10px}.crm-attention>button strong{font-size:11px}.crm-attention>button small{font-size:10px}}@media(prefers-reduced-motion:reduce){.crm-bar>span{transition:none}}

.crm-table-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}.crm-table-footer>button{font-size:10px;min-height:28px;padding:5px 8px}

.crm-area button.crm-stat-action{display:grid;align-content:start;text-align:left;gap:11px;padding:16px;border:1px solid #dee4ed;border-radius:10px;background:#fff;cursor:pointer;color:inherit;min-width:0}.crm-area button.crm-stat-action:hover{background:#faf6ff;border-color:#b590de;box-shadow:0 3px 12px #6b3da012}.crm-area button.crm-stat-action:focus-visible{outline:3px solid #b590de;outline-offset:3px}.crm-portfolio-search{margin-bottom:12px}

.crm-vr{--crm-vr-accent:#176a59;--crm-vr-muted:#597386;--crm-vr-line:#d5e3e9;--crm-vr-ink:#17394c;color:var(--crm-vr-ink);min-width:0}
.crm-vr-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:4px 0 16px}.crm-vr-heading h2{display:flex;align-items:center;gap:8px;margin:0;font-size:18px}.crm-vr-heading p{font-size:12px;color:var(--crm-vr-muted);margin:5px 0 0}.crm-vr-actions,.crm-vr-row-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.crm-vr button,.crm-vr-row-actions a,.crm-vr-dialog button{display:inline-flex;justify-content:center;align-items:center;gap:6px;min-height:33px;font-size:12px;line-height:1.25}.crm-vr .primary,.crm-vr-dialog .primary{background:#176a59;color:#fff;border-color:#176a59}.crm-vr button:disabled,.crm-vr-dialog button:disabled{opacity:.55;cursor:not-allowed}.crm-vr-readonly{margin:8px 0 12px;padding:9px 12px;background:#eef4fa;border:1px solid #d5e3f1;border-radius:7px;color:#365871;font-size:12px}.crm-vr-filters{display:flex;align-items:end;flex-wrap:wrap;gap:9px;background:#f5f9fa;border:1px solid var(--crm-vr-line);padding:12px;border-radius:9px;margin-bottom:14px}.crm-vr-filters label{display:flex;flex:1 1 150px;flex-direction:column;gap:5px;font-size:11px;font-weight:600;min-width:130px}.crm-vr-filters label:first-child{flex-grow:2;min-width:180px}.crm-vr-filters input,.crm-vr-filters select{width:100%;min-width:0;min-height:35px;padding:7px 9px;background:#fff;border:1px solid #cbdde2;border-radius:6px;font-size:12px;color:var(--crm-vr-ink)}
.crm-vr-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:16px}.crm-vr-stats article{border:1px solid var(--crm-vr-line);border-radius:9px;padding:12px 14px;background:#fff}.crm-vr-stats article span{display:flex;align-items:center;gap:6px;font-size:11px;color:var(--crm-vr-muted)}.crm-vr-stats article>strong{display:block;margin-top:6px;font-size:25px;font-weight:700}.crm-vr-columns{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(270px,1fr);gap:14px;align-items:start}.crm-vr-panel{min-width:0;padding:14px;background:#fff;border:1px solid var(--crm-vr-line);border-radius:10px}.crm-vr-panel>header{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:12px}.crm-vr-panel h3{display:flex;align-items:center;gap:7px;margin:0;font-size:14px}.crm-vr-panel header>small{font-size:10px;color:var(--crm-vr-muted)}.crm-vr-counter{display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:22px;padding:0 5px;border-radius:20px;background:#e9f2ef;color:var(--crm-vr-accent);font-size:11px}.crm-vr-empty{display:flex;flex-direction:column;align-items:center;gap:8px;text-align:center;background:#f8fbfc;border:1px dashed #cbdde2;border-radius:9px;padding:25px 18px;margin:10px 0;color:var(--crm-vr-muted);font-size:12px}.crm-vr-empty strong{color:#254b5e}.crm-vr-empty p{margin:0;line-height:1.5;max-width:420px}.crm-vr-visit-list{display:grid;gap:10px}.crm-vr-visit{padding:12px;border:1px solid var(--crm-vr-line);border-left:3px solid #64a295;border-radius:8px;font-size:12px;overflow-wrap:anywhere}.crm-vr-visit-completed{border-left-color:#21744e;background:#fbfdfb}.crm-vr-visit-cancelled{border-left-color:#9eabb7;background:#f8fafb}.crm-vr-visit-top{display:flex;gap:8px;justify-content:space-between;align-items:start}.crm-vr-visit-top>div{min-width:0}.crm-vr-visit-top strong{font-size:13px}.crm-vr-visit p{margin:6px 0;line-height:1.45;white-space:pre-wrap}.crm-vr-visit-top p{color:var(--crm-vr-muted);margin:3px 0 0}.crm-vr-badge{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;padding:3px 7px;border-radius:4px;background:#edf3f6;color:#3c5869;font-size:10px;font-weight:600;line-height:1.35}.crm-vr-visit-completed .crm-vr-badge{background:#e8f5eb;color:#256440}.crm-vr-badge-late{background:#fff2d4;color:#915109}.crm-vr-meta{display:flex;flex-wrap:wrap;gap:6px 12px;color:var(--crm-vr-muted);font-size:11px;margin:9px 0}.crm-vr-meta>span,.crm-vr-address,.crm-vr-next{display:flex;align-items:flex-start;gap:5px}.crm-vr-meta svg,.crm-vr-address svg,.crm-vr-next svg{flex-shrink:0;margin-top:1px}.crm-vr-address{color:var(--crm-vr-muted);font-size:11px}.crm-vr-visit .crm-vr-next{background:#f1f6fc;padding:7px 8px;border-radius:5px}.crm-vr-row-actions{justify-content:flex-end;margin-top:10px}.crm-vr-row-actions a{border:1px solid #c9dce3;padding:6px 9px;border-radius:5px;color:#255971;text-decoration:none;background:#fff}.crm-vr a:focus-visible,.crm-vr button:focus-visible,.crm-vr summary:focus-visible,.crm-vr-dialog button:focus-visible{outline:3px solid #5699db;outline-offset:2px}.crm-vr-more{margin-top:12px;width:100%}.crm-vr-help{font-size:11px;color:var(--crm-vr-muted,#597386);line-height:1.5;margin:8px 0 12px}.crm-vr-route{border:1px solid #d5e3e9;border-radius:8px;margin:10px 0;overflow:hidden}.crm-vr-route>summary{display:flex;align-items:center;justify-content:space-between;gap:8px;cursor:pointer;padding:11px;background:#f5f9fa;list-style:none}.crm-vr-route>summary::-webkit-details-marker{display:none}.crm-vr-route>summary div{display:grid;gap:4px;min-width:0}.crm-vr-route>summary strong{font-size:12px;overflow-wrap:anywhere}.crm-vr-route>summary span,.crm-vr-route>summary small{font-size:10px;color:var(--crm-vr-muted)}.crm-vr-route[open]>summary>svg{transform:rotate(180deg)}.crm-vr-itinerary{margin:0;padding:14px 13px 6px 34px;list-style:decimal}.crm-vr-itinerary li{padding:0 0 12px 3px;font-size:12px}.crm-vr-itinerary li::marker{color:#176a59;font-weight:700}.crm-vr-itinerary li>div{display:grid;gap:4px;min-width:0;overflow-wrap:anywhere}.crm-vr-itinerary span,.crm-vr-itinerary small{font-size:10px;color:var(--crm-vr-muted)}.crm-vr-itinerary a{font-size:11px;color:#166756;justify-self:start}.crm-vr-route-notes{margin:0 12px 12px;font-size:11px;white-space:pre-wrap;color:#597386}.crm-vr .crm-vr-route-edit{margin:0 12px 12px;font-size:11px}.crm-vr-conflict{color:#a34320!important;font-size:11px}.crm-vr-rep-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr));gap:14px}.crm-vr-rep{border:1px solid var(--crm-vr-line);border-radius:10px;background:#fff;padding:15px;min-width:0}.crm-vr-rep>header{display:flex;justify-content:space-between;gap:10px;align-items:start;border-bottom:1px solid #e5edf0;padding-bottom:11px;margin-bottom:12px}.crm-vr-rep h3{display:flex;align-items:center;gap:7px;margin:0;font-size:14px;overflow-wrap:anywhere}.crm-vr-rep header p{font-size:11px;color:var(--crm-vr-muted);margin:4px 0 0;overflow-wrap:anywhere}.crm-vr-targets{display:grid;gap:12px}.crm-vr-progress>div{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:12px}.crm-vr-progress>div span{color:#456579}.crm-vr-progress>small{display:block;color:var(--crm-vr-muted);font-size:10px;margin-top:2px}.crm-vr-progress progress{width:100%;height:7px;border:0;border-radius:10px;overflow:hidden;accent-color:#228b70;background:#eaf0f2}.crm-vr-progress progress::-webkit-progress-bar{background:#eaf0f2;border-radius:10px}.crm-vr-progress progress::-webkit-progress-value{background:#228b70;border-radius:10px}.crm-vr-progress progress::-moz-progress-bar{background:#228b70;border-radius:10px}.crm-vr-rep-details{display:grid;gap:8px;border-top:1px solid #e5edf0;margin:14px 0 12px;padding-top:12px;font-size:11px}.crm-vr-rep-details>div{display:flex;justify-content:space-between;align-items:center;gap:10px}.crm-vr-rep-details dt{color:var(--crm-vr-muted)}.crm-vr-rep-details dd{margin:0;font-weight:600;text-align:right}.crm-vr-overdue{display:block;color:#a34320;font-size:10px;margin-top:2px}.crm-vr-target-notes{font-size:11px;line-height:1.5;color:#456579;white-space:pre-wrap;background:#f5f8fb;border-radius:6px;padding:9px}.crm-vr-rep>button{width:100%}
.crm-vr-dialog{color:#17394c;width:min(550px,calc(100vw - 28px));max-height:calc(100dvh - 32px);overflow:auto;padding:0;border:1px solid #cbdde2;border-radius:10px}.crm-vr-dialog-wide{width:min(780px,calc(100vw - 28px))}.crm-vr-dialog::backdrop{background:rgba(12,32,43,.46)}.crm-vr-dialog>.dialog-head{position:sticky;top:0;background:#f5faf9;z-index:1}.crm-vr-dialog .dialog-head h2{font-size:16px}.crm-vr-dialog .dialog-actions{display:flex;justify-content:flex-end;gap:8px;padding:12px 16px;background:#f7faf9;border-top:1px solid #d5e3e9}.crm-vr-form{padding:16px;margin:0;border:0;min-width:0}.crm-vr-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.crm-vr-form label,.crm-vr-block-label{display:flex;flex-direction:column;gap:5px;font-size:12px;font-weight:600;min-width:0}.crm-vr-form input,.crm-vr-form select,.crm-vr-form textarea{width:100%;box-sizing:border-box;min-width:0;font-size:12px;color:#17394c;border:1px solid #c8dce1;border-radius:6px;padding:8px 10px;background:#fff;line-height:1.4}.crm-vr-form input,.crm-vr-form select{min-height:36px}.crm-vr-form textarea{resize:vertical}.crm-vr-full{grid-column:1/-1}.crm-vr-form-note{display:flex;align-items:center;font-size:11px;color:#597386;line-height:1.5}.crm-vr-form-error{margin:0 16px 12px!important;font-size:12px;line-height:1.5}.crm-vr-route-editor{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:12px 0}.crm-vr-route-editor>section{border:1px solid #d5e3e9;padding:11px;border-radius:8px;min-width:0}.crm-vr-route-editor h3{font-size:12px;margin:0 0 9px}.crm-vr-pick-list{display:grid;gap:6px;max-height:320px;overflow:auto}.crm-vr-pick-list>label{display:flex;flex-direction:row;align-items:start;gap:7px;padding:8px;border:1px solid #e0e9ed;border-radius:6px;font-weight:400;cursor:pointer}.crm-vr-pick-list input[type=checkbox]{width:15px;height:15px;min-height:15px;margin:2px 0 0;flex-shrink:0}.crm-vr-pick-list>label>span{display:grid;gap:4px;min-width:0}.crm-vr-pick-list strong{font-size:11px;overflow-wrap:anywhere}.crm-vr-pick-list small{font-size:10px;color:#597386}.crm-vr-route-order{counter-reset:crm-stop;list-style:none;display:grid;gap:7px;margin:0;padding:0;max-height:320px;overflow:auto}.crm-vr-route-order li{counter-increment:crm-stop;display:flex;align-items:center;gap:7px;border:1px solid #dce7ec;border-radius:6px;padding:7px}.crm-vr-route-order li::before{content:counter(crm-stop);display:flex;align-items:center;justify-content:center;width:19px;flex-shrink:0;height:19px;border-radius:50%;background:#e5f0ec;color:#176a59;font-size:10px;font-weight:700}.crm-vr-route-order li>div:first-child{display:grid;gap:4px;min-width:0;flex:1;font-size:11px;overflow-wrap:anywhere}.crm-vr-route-order small{font-size:10px;color:#597386}.crm-vr-order-buttons{display:flex;gap:3px;flex-wrap:wrap;justify-content:flex-end;max-width:58px}.crm-vr-order-buttons button{min-width:25px;min-height:26px;padding:3px}.crm-vr-target-owner{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:10px 12px;background:#eef5f2;border-radius:7px;margin-bottom:14px;font-size:13px}.crm-vr-target-owner span{font-size:12px;color:#456579}
@media(max-width:1000px){.crm-vr-columns{grid-template-columns:1fr}.crm-vr-heading{align-items:flex-start}.crm-vr-actions{justify-content:flex-end}.crm-vr-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.crm-vr-heading{flex-direction:column}.crm-vr-heading h2{font-size:16px}.crm-vr-actions{justify-content:flex-start;width:100%}.crm-vr-actions button{flex:1}.crm-vr-filters{padding:10px;gap:8px}.crm-vr-filters label{min-width:120px}.crm-vr-filters label:first-child{flex-basis:100%}.crm-vr-stats{gap:7px}.crm-vr-stats article{padding:10px}.crm-vr-stats article span{align-items:flex-start;font-size:10px}.crm-vr-stats article svg{flex-shrink:0}.crm-vr-stats article>strong{font-size:22px}.crm-vr-panel{padding:10px}.crm-vr-visit-top{flex-wrap:wrap}.crm-vr-row-actions button,.crm-vr-row-actions a{flex:1}.crm-vr-form{padding:12px}.crm-vr-form-grid,.crm-vr-route-editor{grid-template-columns:1fr}.crm-vr-full{grid-column:auto}.crm-vr-dialog .dialog-actions{padding:12px}.crm-vr-rep-details>div{align-items:start}.crm-vr-rep-details dd{max-width:60%}}
@media(pointer:coarse){.crm-vr button,.crm-vr a,.crm-vr-dialog button{min-height:40px}.crm-vr-order-buttons{max-width:88px}.crm-vr-order-buttons button{min-width:39px;min-height:39px}}

/* Shared compact density for existing and future system modules. Colors remain module-owned. */
:root{--page-space:18px;--section-space:12px;--control-height:34px}
.shell .content{padding:var(--page-space) 24px 28px}
.shell .content>.heading{padding:10px 14px;margin-bottom:12px;gap:12px;min-height:0}
.shell .content>.heading h1{font-size:22px;line-height:1.25;margin:0}
.shell .content>.heading p{margin-top:4px;font-size:12px;line-height:1.45}
.shell .content .module-hero{padding:12px 14px;gap:12px;border-radius:12px}
.shell .content .module-hero h2{font-size:17px;line-height:1.3;margin:0}
.shell .content .module-hero p{font-size:12px;line-height:1.45;margin-top:4px}
.shell .content .panel-head{padding:12px 14px;gap:10px;flex-wrap:wrap}
.shell .content .panel-head h2{font-size:17px}.shell .content .panel-head h3{font-size:15px}
.shell .content .panel-head small{margin-top:3px;font-size:12px}
.shell .content .filters{padding:12px 14px;gap:10px}
.shell .content .filters label{gap:5px;font-size:12px}
.shell .content :is(.module-tabs,.crm-tabs){gap:5px;margin-block:8px}
.shell .content :is(.module-tabs,.crm-tabs)>button{padding:7px 10px}
.shell .content :is(.module-kpi,.crm-stat){padding:12px;gap:7px}
.shell .content :is(.metrics,.crm-stats,.crm-overview-grid,.crm-area){gap:12px}
.shell .content>.metrics{margin-bottom:12px}
.shell .content :is(.crm-hero,.crm-card:not(.crm-card-flush)){padding:12px 14px}
.shell .content .crm-section-head{gap:8px;margin-bottom:10px}
.shell .content .crm-hero-title p{margin-top:4px}
.shell .content :is(.task-toolbar,.task-actions){gap:10px;margin-block:12px}
.shell .content .task-owned{padding:12px;gap:10px}
.shell .content .task-card{padding:12px}
.shell .content .task-request{padding:11px 14px;gap:12px}
.shell .content :is(.table-wrap,.shipping-report-table) :is(th,td),.shell .content .crm-table :is(th,td){padding:8px 10px}
@media(min-width:761px) and (pointer:fine){
 .shell .content button{min-height:var(--control-height);padding:7px 10px}
 .shell .content :is(.filters,.task-toolbar,.crm-toolbar) :is(input:not([type=checkbox]):not([type=radio]),select){min-height:var(--control-height);padding-block:7px}
 .shell .content .search svg{top:9px}
}
@media(max-width:760px){
 .shell .content{padding:12px 12px 22px}
 .shell .content>.heading{padding:10px 12px;gap:8px;margin-bottom:10px;flex-wrap:wrap}
 .shell .content>.heading h1{font-size:20px}
 .shell .content .module-hero,.shell .content .panel-head{padding:11px 12px;gap:9px}
 .shell .content .filters{padding:10px 12px;gap:10px}
}
@media(pointer:coarse){
 .shell .content button,.shell .content :is(.filters,.task-toolbar,.crm-toolbar) :is(input:not([type=checkbox]):not([type=radio]),select){min-height:44px}
}

.shell .content>.heading>.refresh-controls{margin-left:auto;flex-shrink:0;align-self:center}
@media(max-width:560px){.shell .content>.heading>.refresh-controls{width:100%;justify-content:flex-end;flex-wrap:wrap}}
.shipping-settings-menu{display:grid;gap:10px}.shipping-settings-menu>button{display:flex;align-items:center;gap:12px;text-align:left;padding:14px;border-color:var(--module-soft)}.shipping-settings-menu>button>svg{color:var(--module-color);flex-shrink:0}.shipping-settings-menu span{display:grid;gap:4px}.shipping-settings-menu small{font-size:12px;font-weight:400}.shipping-actions>button:has(svg){display:inline-flex;align-items:center;gap:5px}

/* Expedição: indicadores no topo e listas de rotas em caixas. */
.shipping-overview-kpis{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}
.shipping-overview-kpis article{display:grid;justify-items:center;align-content:center;text-align:center;gap:5px;min-width:0;padding:12px 10px;border:1px solid var(--kpi-border);border-top:3px solid var(--kpi-ink);border-radius:9px;background:var(--kpi-bg);color:var(--kpi-ink)}
.shipping-overview-kpis [data-tone=red]{--kpi-bg:#fff0f2;--kpi-ink:#a52e46;--kpi-border:#ecc2cb}
.shipping-overview-kpis [data-tone=green]{--kpi-bg:#eaf8f1;--kpi-ink:#196c4c;--kpi-border:#b7ddc9}
.shipping-overview-kpis [data-tone=amber]{--kpi-bg:#fff6e5;--kpi-ink:#8e5a13;--kpi-border:#ecd3a5}
.shipping-overview-kpis [data-tone=blue]{--kpi-bg:#edf5ff;--kpi-ink:#265f9b;--kpi-border:#c0d7ef}
.shipping-overview-kpis [data-tone=purple]{--kpi-bg:#f3edfb;--kpi-ink:#70469a;--kpi-border:#d8c4ed}
.shipping-overview-kpis strong{font-size:24px;line-height:1.2;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.shipping-overview-kpis span{font-size:13px;line-height:1.4}
.shipping-layout.shipping-layout-admin{display:block}
.shipping-routes .shipping-finished-button{background:#eaf7ef;border-color:#b5d9c1;color:#286d47;display:inline-flex;gap:6px;align-items:center}
.shipping-routes .shipping-team-button{background:#e8f5fa;border-color:#b2d8e5;color:#1b667e;display:inline-flex;gap:6px;align-items:center}
.shipping-routes-list-modal{width:min(1050px,96vw);max-width:1050px;max-height:90dvh;padding:0}
.shipping-routes-list-modal[open]{display:flex;flex-direction:column;overflow:hidden}
.shipping-routes-list-modal>.dialog-head{flex-shrink:0;background:#edf6f8;gap:12px}
.shipping-routes-list-modal>.dialog-body{padding:12px;overflow:auto;min-height:0}
.shipping-routes-list-modal h2{font-size:18px}
.shipping-route-search{display:grid;gap:5px;font-size:13px;font-weight:600}
.shipping-route-search input{width:100%;min-height:36px;font-size:14px}
.shipping-list-count,.shipping-list-empty{font-size:13px;margin:10px 0;color:#456174}
.shipping-routes-list-modal .shipping-report-table{overflow:auto}
.shipping-routes-list-modal table{width:100%;font-size:13px;border-collapse:collapse}
.shipping-routes-list-modal :is(th,td){padding:9px 10px;text-align:left}
.shipping-routes-list-modal td{overflow-wrap:anywhere;max-width:260px}
.shipping-routes-list-modal td small{display:block;margin-top:3px}
.shipping-routes-list-modal tbody tr:nth-child(even){background:#f2f7fa}
@media(max-width:850px){.shipping-overview-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:520px){.shipping-overview-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.shipping-overview-kpis article:last-child{grid-column:1/-1}.shipping-routes-list-modal table{min-width:680px}}

.shipping-routes>.module-hero{flex-wrap:wrap}
.shipping-routes>.module-hero>.shipping-actions{flex-wrap:wrap;justify-content:flex-end;gap:6px}

/* Ações superiores com formato, tamanho e cores consistentes. */
.shipping-routes>.module-hero>.shipping-actions{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));grid-auto-rows:minmax(40px,auto);flex:1 1 100%;width:100%;gap:6px}
.shipping-routes>.module-hero>.shipping-actions>button{display:flex;justify-content:center;align-items:center;gap:5px;width:100%;height:100%;min-height:40px;min-width:0;padding:7px 9px;border:1px solid;border-radius:7px;font-size:12px;font-weight:600;line-height:1.3;text-align:center;white-space:normal;box-shadow:none}
.shipping-routes>.module-hero>.shipping-actions>button svg{width:15px;height:15px;flex-shrink:0}
.shipping-routes>.module-hero>.shipping-actions>button strong{display:inline-flex;align-items:center;justify-content:center;min-width:18px;padding:1px 4px;border-radius:4px;background:#ffffff99;color:inherit;font-size:12px;line-height:1.3}
.shipping-routes [data-shipping-action=couriers]{--action-bg:#eef2ff;--action-ink:#485c94;--action-border:#c7d1ec}
.shipping-routes [data-shipping-action=returns]{--action-bg:#fff4e4;--action-ink:#8a561a;--action-border:#e9cea5}
.shipping-routes [data-shipping-action=finished]{--action-bg:#eaf7ef;--action-ink:#286d47;--action-border:#b5d9c1}
.shipping-routes [data-shipping-action=team]{--action-bg:#e8f5fa;--action-ink:#1b667e;--action-border:#b2d8e5}
.shipping-routes [data-shipping-action=new]{--action-bg:#e5f6f3;--action-ink:#126d62;--action-border:#a7d8cf}
.shipping-routes [data-shipping-action=reports]{--action-bg:#f2ebfc;--action-ink:#71469a;--action-border:#d7c2eb}
.shipping-routes [data-shipping-action=notifications]{--action-bg:#fff0ec;--action-ink:#9a4b38;--action-border:#ebc5ba}
.shipping-routes [data-shipping-action=settings]{--action-bg:#eef2f6;--action-ink:#4b6076;--action-border:#cbd5df}
.shipping-routes>.module-hero>.shipping-actions>button:not(.has-pending){background:var(--action-bg);color:var(--action-ink);border-color:var(--action-border)}
.shipping-routes>.module-hero>.shipping-actions>button:not(.has-pending):hover{border-color:var(--action-ink);box-shadow:inset 0 -2px var(--action-ink)}
.shipping-routes>.module-hero>.shipping-actions>button:focus-visible{outline:2px solid var(--action-ink);outline-offset:2px}
@media(max-width:1280px){.shipping-routes>.module-hero>.shipping-actions{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:640px){.shipping-routes>.module-hero>.shipping-actions{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(pointer:coarse){.shipping-routes>.module-hero>.shipping-actions>button{min-height:44px}}

/* Rotas: atualização compartilhada 30/10/2026. */

.route-completion-summary{margin:12px;padding:14px;border:1px solid #b8d6d3;border-radius:10px;background:#f2faf8;color:#193e52;font-size:13px;line-height:1.5}
.route-completion-summary>header,.route-summary-events>li>header{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}.route-completion-summary h3{margin:2px 0;font-size:18px}.route-completion-summary small{font-size:11px;color:#4a6c78}.route-completion-summary p{margin:8px 0;overflow-wrap:anywhere}.route-summary-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:12px 0}.route-summary-kpis article{padding:10px;background:white;border:1px solid #c7dedb;border-top:3px solid #198575;border-radius:7px}.route-summary-kpis strong{display:block;font-size:20px;color:#155668}.route-summary-help{padding:10px;border-radius:7px;background:#e6f0fa;color:#385c75}.route-summary-events{list-style:none;display:grid;gap:10px;padding:0;margin:12px 0 0}.route-summary-events>li{padding:12px;background:white;border:1px solid #cadde4;border-radius:8px}.route-summary-events>li:nth-child(even){background:#f2f7fc}.route-event-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:10px}.route-event-grid small,.route-event-grid b{display:block}.route-event-grid b{font-size:12px}.route-summary-events button{background:#146c80;color:white;border:1px solid #146c80;padding:7px 12px;border-radius:6px}.route-summary-events button:disabled{opacity:.5}
@media(max-width:700px){.route-summary-kpis,.route-event-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.route-completion-summary{margin:8px;padding:10px}}@media(max-width:420px){.route-event-grid{grid-template-columns:1fr}}

/* Compact, readable route report. Keep semantic colours alongside text labels. */
.shipping-route-modal:has(.route-completion-summary){padding:10px;position:relative}
.shipping-route-modal:has(.route-completion-summary)>.shipping-route-close{position:sticky;right:auto;top:0;height:0;background:transparent;padding:0 12px;transform:translateY(10px);z-index:2}
.shipping-route-modal:has(.route-completion-summary)>.panel-head{padding:10px 14px;margin:0 0 10px;border-radius:9px;background:linear-gradient(110deg,#174c63,#126e68);color:#fff}
.shipping-route-modal:has(.route-completion-summary) .shipping-detail-title :is(h2,p,small){color:#fff!important}
.shipping-route-modal:has(.route-completion-summary) .shipping-detail-title h2{font-size:20px;margin:3px 0}.shipping-route-modal:has(.route-completion-summary) .shipping-detail-title p{font-size:13px}
.route-completion-summary{margin:0;padding:12px;background:#f4f8fb;border-color:#c5d9e2;font-size:14px;line-height:1.4}
.route-completion-summary h3{font-size:19px}.route-completion-summary small{font-size:12px;color:#3e5d6e}.route-completion-summary p{margin:5px 0}
.route-summary-state{font-size:12px;padding:5px 9px;border-radius:6px;border:1px solid}.route-summary-state.is-done{color:#126247;background:#def4e9;border-color:#96cdb4}.route-summary-state.is-cancelled{color:#9c2540;background:#ffedf1;border-color:#e6acb8}
.route-summary-kpis{gap:7px;margin:9px 0}.route-summary-kpis article{padding:8px 10px;background:#edf4ff;border-color:#bfd3e9;border-top-color:#337bc1}.route-summary-kpis article:nth-child(2){background:#eaf8ef;border-color:#bbddcb;border-top-color:#18815d}.route-summary-kpis article:nth-child(3){background:#fff6e4;border-color:#ecd3a6;border-top-color:#b47b1c}.route-summary-kpis article:nth-child(4){background:#f3edff;border-color:#d5c6e9;border-top-color:#8561b1}.route-summary-kpis strong{font-size:22px;line-height:1.2;margin-top:4px}
.route-summary-help{padding:6px 9px;font-size:12px;margin:8px 0;background:#eaf2fa;border:1px solid #cedeea}.route-summary-help summary{cursor:pointer;font-weight:600;color:#2b5c7c}.route-summary-help summary:focus-visible{outline:2px solid #257cb3;outline-offset:3px}
.route-summary-events{gap:8px;margin-top:8px}.route-summary-events>li{padding:10px;border-left:4px solid #7e95aa;background:#fff;box-shadow:0 2px 5px #193e5208}.route-summary-events>li[data-status=done]{border-left-color:#21865e;background:#f6fcf8}.route-summary-events>li[data-status=cancelled]{border-left-color:#c04c62;background:#fff7f8}.route-summary-events>li:is([data-status=partial],[data-status=failed]){border-left-color:#c68b21;background:#fffbf1}
.route-summary-events>li>header{padding-bottom:7px;border-bottom:1px solid #d5e2e8;font-size:14px}.route-summary-events .shipping-report-status{font-size:12px;font-weight:650}.route-summary-events .status-done{color:#116342;background:#def3e7}.route-summary-events .status-cancelled{color:#9d2440;background:#ffe5eb}.route-summary-events :is(.status-partial,.status-failed){color:#885a0a;background:#fff0cb}
.route-event-grid{gap:8px;margin:8px 0;padding:8px;border-radius:6px;background:#ffffffb8;border:1px solid #dde7ec}.route-event-grid>div+div{border-left:1px solid #d9e3e9;padding-left:8px}.route-event-grid small{font-size:12px;line-height:1.35}.route-event-grid b{font-size:13px;margin-top:3px;color:#183e55}
.route-event-receipt{display:flex;align-items:center;justify-content:space-between;gap:10px}.route-event-receipt>div{min-width:0}.route-event-receipt p{font-size:13px}.route-event-receipt button{flex-shrink:0;min-height:34px;font-size:13px;font-weight:650}.route-summary-events .notice{padding:7px 10px;font-size:13px;border-left:3px solid #c28a35;background:#fff3dc;color:#795016;border-radius:5px}.route-summary-events>li[data-status=cancelled] .notice{background:#ffeaf0;color:#942c43;border-color:#c55c71}
@media(max-width:700px){.route-completion-summary{padding:9px}.route-event-grid>div+div{border-left:0;padding-left:0}.route-event-receipt{flex-wrap:wrap}.route-event-receipt button{margin-left:auto}.shipping-route-modal:has(.route-completion-summary)>.panel-head{align-items:flex-start}.shipping-route-modal:has(.route-completion-summary) .shipping-actions{flex-wrap:wrap}}

/* Route sequence and stop actions: prominent numbering, actions on the right. */
.route-summary-events .route-event-title{display:flex;align-items:center;gap:9px;min-width:0}
.route-summary-events .route-event-title>span:last-child{min-width:0;overflow-wrap:anywhere}
.route-summary-events .route-event-number{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;min-width:36px;height:36px;padding:0 7px;border-radius:8px;background:#175b85;color:#fff!important;font-size:20px;font-weight:800;line-height:1;font-variant-numeric:tabular-nums;box-shadow:0 2px 4px #143c5626}
.shipping-route-modal .shipping-stops>li>.shipping-actions{display:flex;justify-content:flex-end;align-items:center;flex-wrap:wrap;gap:6px;width:100%}
.route-summary-map-action{display:flex;justify-content:flex-end;margin:6px 0}.route-summary-map-action button{padding:8px 12px;font-size:13px;font-weight:700}
.shipping-delivery-map-dialog{width:min(1180px,96vw);max-width:96vw;padding:0}.shipping-delivery-map-dialog .dialog-head{background:linear-gradient(110deg,#174c63,#126e68);color:white}.shipping-delivery-map-dialog .dialog-head h2,.shipping-delivery-map-dialog .dialog-head small{color:white!important}.shipping-delivery-map-dialog .dialog-body{padding:12px;overflow:auto}.delivery-map-note{margin:0 0 8px;font-size:13px}.delivery-map-legend{display:flex;gap:15px;flex-wrap:wrap;font-size:13px;margin:8px 0}.delivery-map-missing{display:flex;gap:10px;align-items:center;justify-content:space-between;background:#fff5de;padding:8px;border-radius:7px;font-size:13px;margin-bottom:8px}.delivery-map-missing button{flex-shrink:0}.delivery-map-layout{display:grid;grid-template-columns:minmax(0,1fr) 270px;gap:10px}.delivery-map-canvas{height:440px;min-width:0;border:1px solid #b9d0dc;border-radius:8px;isolation:isolate}.delivery-map-layout aside{max-height:440px;overflow:auto;display:flex;flex-direction:column;gap:6px}.delivery-map-layout aside>button{display:flex;align-items:center;gap:9px;text-align:left;padding:9px;border:1px solid #c4d9e5;background:#f3f8fc;border-radius:8px;flex-shrink:0}.delivery-map-layout aside>button[aria-pressed=true]{border-color:#126b91;background:#e0f0fb;box-shadow:inset 3px 0 #126b91}.delivery-map-layout aside>button span{min-width:0;overflow-wrap:anywhere}.delivery-map-layout aside small{display:block;font-size:12px;margin-top:4px}.delivery-map-layout .route-event-number{background:#175b85;color:#fff!important;font-size:20px;padding:5px;border-radius:7px;flex:0 0 36px;text-align:center}.delivery-map-detail{margin-top:10px;border:1px solid #bad6e0;border-left:4px solid #197893;padding:10px;border-radius:8px;background:#f0f8fb;font-size:14px}.delivery-map-detail p{margin:5px 0}@media(max-width:700px){.delivery-map-layout{grid-template-columns:1fr}.delivery-map-canvas{height:320px}.delivery-map-layout aside{max-height:170px}.delivery-map-missing{flex-wrap:wrap}}
.shipping-delivery-map-dialog>header.dialog-head{background:linear-gradient(110deg,#174c63,#126e68)!important;padding:12px 16px;color:#fff!important}.shipping-delivery-map-dialog>header.dialog-head h2{font-size:20px;line-height:1.3;margin:0 0 4px}.shipping-delivery-map-dialog>header.dialog-head small{font-size:13px}.shipping-delivery-map-dialog>.dialog-body{display:block}.delivery-map-layout aside>button strong{font-size:14px}.delivery-map-layout aside>button small{font-weight:400}

/* Keep route heading controls together instead of floating the close action. */
.shipping-route-modal>.panel-head{position:sticky;top:0;z-index:3;display:flex;align-items:center;gap:14px;flex-wrap:wrap}.shipping-route-modal>.panel-head>.shipping-detail-title{flex:1 1 300px;min-width:0}.shipping-route-modal>.panel-head>.shipping-actions{display:flex;align-items:center;justify-content:flex-end;gap:9px;flex-wrap:wrap;margin-left:auto}.shipping-route-modal>.panel-head>.shipping-actions>button{box-sizing:border-box;min-height:36px;padding:7px 12px;font-size:13px;font-weight:600;line-height:1.4;display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;border-radius:8px}.shipping-detail>.panel-head>.shipping-actions>button.shipping-map-action{background:#245ccd!important;border:1px solid #91b4ff!important;color:#fff!important;box-shadow:0 2px 5px #08285730}.shipping-detail>.panel-head>.shipping-actions>button.shipping-map-action:hover{background:#1946a4!important}.shipping-detail>.panel-head>.shipping-actions>button.shipping-map-action:focus-visible{outline:2px solid #fff;outline-offset:3px}@media(pointer:coarse){.shipping-route-modal>.panel-head>.shipping-actions>button{min-height:44px}}


.shipping-route-modal[data-stable-size],.shipping-delivery-map-dialog[data-stable-size]{height:min(860px,94dvh);max-height:94dvh;overflow:auto}
