/* 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;
		}
	}
html, body, #root { margin: 0; min-height: 100%; }
html, body { overflow-x: hidden; overflow-x: clip; } /* مانع عام: أي عنصر أوسع من الشاشة ما يزاحش الصفحة (مثل حاوية التنبيهات) */
body { background: #0d0b09; }

/* نفس متغيرات الثيم على مستوى الصفحة كلها، عشان صفحات العميل (تتبع/طلب) اللي برّه .tk-app */
:root {
    --ds-page: #171310;
    --ds-raised: #241d15;
    --ds-ink: #f4eddd;
    --ds-ink-2: #e2d6bd;
    --ds-ink-4: #b3a58b;
    --ds-hairline: #5c4d38;
    --ds-teal: #e9c25c;
    --ds-red: #ff9a9a;
}

/* ثيم TATAKI الغامق: اللوجو نيون على أسود هو أرضية النظام */
.tk-app {
    --ds-page: #171310;
    --ds-raised: #241d15;
    --ds-ink: #f4eddd;
    --ds-ink-2: #e2d6bd;
    --ds-ink-4: #b3a58b;
    --ds-hairline: #5c4d38;
    --ds-teal: #e9c25c;
    --ds-red: #ff9a9a;
    background-color: #0d0b09;
    background-repeat: repeat;
    background-size: 380px 380px;
    min-height: 100%;
}
.tk-app, .tk-app > *, .tk-app > * > * { background-color: transparent !important; }
.tk-app input, .tk-app select { color-scheme: dark; }

.file-nav { display: flex; flex-wrap: wrap; gap: 20px; border-bottom: 1px solid var(--ds-hairline); margin-bottom: 20px; }
.file-nav a { padding: 10px 0; color: var(--ds-ink-2); text-decoration: none; }
.file-nav a[aria-current="page"] { color: var(--ds-teal); box-shadow: inset 0 -1px 0 var(--ds-teal); }
@media (max-width: 600px) { .file-nav a { display: inline-flex; align-items: center; min-height: 44px; } }

/* هيدر النظام زي لوحات الـ ERP */
.tk-hero { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 16px; margin-bottom: 24px; background: rgba(20, 15, 10, 0.94); border: 1px solid #4a3d28; border-radius: 16px; }
.tk-hero-logo { width: 84px; height: 84px; border-radius: 14px; object-fit: cover; border: 1px solid #4a3d28; }
.tk-hero-txt { flex: 1; min-width: 180px; }
.tk-hero-brand { font-size: 26px; font-weight: 600; letter-spacing: 0.06em; color: #e9c25c; text-shadow: 0 0 14px rgba(233, 194, 92, 0.45); }
.tk-hero-brand span { font-size: 13px; letter-spacing: 0.2em; color: #bfb096; }
.tk-hero-sub { color: var(--ds-ink-2); margin-top: 2px; }
.tk-hero-greet { color: var(--ds-ink); margin-top: 6px; font-weight: 600; }
.tk-hero-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.tk-hero-clock { font-size: 24px; font-weight: 600; color: #e9c25c; font-variant-numeric: tabular-nums; }
.tk-hero-date { color: var(--ds-ink-2); font-size: 12px; }

/* البلاطات */
.tk-section { margin-bottom: 26px; }
.tk-sec-label { font-weight: 600; color: #e9c25c; margin-bottom: 10px; font-size: 15px; }
.tk-sec-note { color: var(--ds-ink-2); font-size: 12px; margin-top: 8px; }
.tk-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (min-width: 768px) { .tk-tiles { grid-template-columns: repeat(6, 1fr); } }
.tk-tile { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 88px; padding: 10px 6px; background: rgba(23, 18, 13, 0.93); border: 1px solid #3a3125; border-radius: 10px; color: var(--ds-ink); font: inherit; font-size: 13px; text-align: center; text-decoration: none; cursor: pointer; }
a.tk-tile:hover, button.tk-tile:hover { border-color: #e9c25c; box-shadow: 0 0 12px rgba(233, 194, 92, 0.25); }
.tk-tile-ic { font-size: 20px; }
.tk-tile-label { line-height: 1.4; }
.tk-tile.is-off { opacity: 0.45; cursor: default; }
.tk-tile-soon { position: absolute; top: 6px; inset-inline-start: 6px; font-size: 10px; color: #0d0b09; background: #e9c25c; border-radius: 4px; padding: 1px 6px; }

/* القيود */
.tk-jentry { border: 1px solid var(--ds-hairline); border-radius: 10px; background: rgba(23, 18, 13, 0.93); padding: 12px 14px; margin-bottom: 12px; }
.tk-jhead { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.tk-jmemo { font-weight: 600; }
.tk-jtag { font-size: 11px; color: #0d0b09; background: #e9c25c; border-radius: 4px; padding: 1px 8px; white-space: nowrap; }
.tk-jline { display: grid; grid-template-columns: 1fr 110px 110px; gap: 8px; padding: 3px 0; color: var(--ds-ink-2); }
.tk-jline .tk-num { text-align: end; color: var(--ds-ink); font-variant-numeric: tabular-nums; }
.tk-jtot { border-top: 1px solid var(--ds-hairline); margin-top: 6px; padding-top: 8px; font-weight: 600; color: var(--ds-ink); }
.tk-trial-tot { padding: 12px 0 0; }

/* الأصول والعقود */
.tk-asset { border: 1px solid var(--ds-hairline); border-radius: 10px; background: rgba(23, 18, 13, 0.93); padding: 14px; margin-bottom: 14px; }
.tk-asset-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 6px; }

/* باقي شاشات التشغيل */
.tk-label { display: block; margin: 0 0 6px; color: var(--ds-ink-2); }
.tk-select { width: 100%; box-sizing: border-box; min-height: 44px; padding: 8px 12px; border: 1px solid var(--ds-hairline); border-radius: 4px; background: #171310 !important; color: var(--ds-ink); font: inherit; margin-bottom: 16px; }
.tk-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tk-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; }
.tk-kpi { display: flex; flex-direction: column; gap: 6px; padding: 14px; border: 1px solid var(--ds-hairline); border-radius: 12px; min-width: 0; background: rgba(23, 18, 13, 0.93); }
.tk-kpi-label { color: var(--ds-ink-2); }
.tk-kpi-value { font-size: 20px; line-height: 28px; color: var(--ds-teal); font-weight: 600; overflow-wrap: anywhere; }
.tk-tables { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.tk-table { display: flex; flex-direction: column; gap: 4px; min-height: 76px; padding: 14px; border: 1px solid var(--ds-hairline); border-radius: 12px; background: rgba(23, 18, 13, 0.93); color: var(--ds-ink); font: inherit; text-align: start; text-decoration: none; cursor: pointer; }
.tk-table.is-free { border-color: rgba(46, 230, 168, 0.55); }
.tk-table.is-busy { border-color: #ff5470; background: rgba(92, 20, 34, 0.55) !important; box-shadow: 0 0 12px rgba(255, 84, 112, 0.25); }
.tk-table.is-res { border-color: #ffd166; background: rgba(96, 76, 20, 0.5) !important; box-shadow: 0 0 12px rgba(255, 209, 102, 0.22); }
.tk-table-wrap { display: flex; flex-direction: column; gap: 6px; }
.tk-res-btn { align-self: flex-start; font: inherit; font-size: 12px; padding: 3px 10px; border-radius: 8px; border: 1px solid var(--ds-hairline); background: rgba(30, 24, 18, 0.9); color: var(--ds-ink-2); cursor: pointer; }
.tk-legend { display: flex; gap: 18px; margin-bottom: 10px; color: var(--ds-ink-2); font-size: 13px; }
.tk-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-inline-end: 6px; }
.tk-dot-free { background: #2ee6a8; box-shadow: 0 0 6px #2ee6a8; }
.tk-dot-busy { background: #ff5470; box-shadow: 0 0 6px #ff5470; }
.tk-dot-res { background: #ffd166; box-shadow: 0 0 6px #ffd166; }
.tk-table-no { font-weight: 600; }
.tk-table-state { color: var(--ds-ink-2); }
.tk-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tk-chip { min-height: 44px; min-width: 44px; padding: 0 14px; border: 1px solid var(--ds-hairline); border-radius: 4px; background: #171310 !important; color: var(--ds-ink); font: inherit; cursor: pointer; }
.tk-chip.is-on { background: var(--ds-teal) !important; border-color: var(--ds-teal); color: #171310; font-weight: 600; }
.tk-chip.tk-saved-on { background: #e8c872 !important; border-color: #e8c872; color: #1a140c; font-weight: 600; }
.tk-offers { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tk-offer { display: flex; flex-direction: column; justify-content: space-between; gap: 6px; min-height: 76px; padding: 12px; border: 1px solid var(--ds-hairline); border-radius: 12px; background: rgba(23, 18, 13, 0.93) !important; color: var(--ds-ink); font: inherit; text-align: start; cursor: pointer; }
.tk-offer-name { font-weight: 600; }
.tk-offer-price { color: var(--ds-teal); font-weight: 600; }
.tk-total { display: flex; justify-content: space-between; align-items: baseline; margin: 16px 0; padding-top: 12px; border-top: 1px solid var(--ds-hairline); }
.tk-total strong { font-size: 20px; color: var(--ds-teal); }
.tk-pos { display: grid; grid-template-columns: 1fr minmax(320px, 34%); gap: 16px; align-items: start; }
@media (max-width: 720px) { .tk-pos { grid-template-columns: 1fr minmax(168px, 47%); gap: 8px; } }
.tk-pos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); gap: 8px; }
.tk-pos-item { display: flex; flex-direction: column; justify-content: center; gap: 4px; min-height: 58px; padding: 8px 10px; border: 1px solid var(--ds-hairline); border-radius: 10px; background: rgba(23, 18, 13, 0.93) !important; color: var(--ds-ink); font: inherit; text-align: start; cursor: pointer; }
.tk-pos-item:active { transform: scale(0.97); }
.tk-pos-item-name { font-weight: 600; font-size: 14px; }
.tk-pos-item-price { color: var(--ds-teal); font-weight: 600; font-size: 13px; }
.tk-pos-lines { margin-bottom: 8px; }
.tk-pos-line { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--ds-hairline); }
.tk-pos-line-name { flex: 1; font-weight: 600; }
.tk-pos-line-qty { display: inline-flex; align-items: center; gap: 8px; }
.tk-pos-qbtn { width: 34px; height: 34px; border: 1px solid var(--ds-hairline); border-radius: 8px; background: #171310 !important; color: var(--ds-ink); font-size: 18px; cursor: pointer; }
.tk-pos-line-price { min-width: 70px; text-align: end; color: var(--ds-teal); font-weight: 600; }
.tk-pos-details { margin: 8px 0; border: 1px dashed var(--ds-hairline); border-radius: 8px; padding: 8px 10px; }
.tk-pos-details summary { cursor: pointer; color: var(--ds-ink-2); font-weight: 600; }
.tk-pos-lineopt { display: grid; grid-template-columns: 1fr 1.2fr 0.8fr; gap: 8px; align-items: center; }
.tk-pos-lineopt .tk-select { margin-bottom: 8px; }
.tk-pos-sum { display: block; color: var(--ds-ink-2); font-size: 14px; margin-top: 8px; }
.tk-pos-total strong { font-size: 30px; }
.tk-pos-actions { display: grid; grid-template-columns: 1fr 1.2fr; gap: 10px; margin-top: 12px; }
.tk-pos-actions button, .tk-pos-actions a { min-height: 54px; font-size: 17px; font-weight: 700; }
.tk-selfies { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.tk-selfie { width: 84px; height: 84px; object-fit: cover; border-radius: 10px; border: 1px solid var(--ds-hairline); }
.tk-venue-code { display: flex; justify-content: space-between; align-items: baseline; margin: 12px 0; padding: 12px; border: 2px solid var(--ds-teal); border-radius: 10px; }
.tk-venue-code strong { font-size: 34px; letter-spacing: 6px; color: var(--ds-teal); }

/* ---------- تباين الأزرار: نص واضح على كل زر ---------- */
.tk-app .file-button {
    background: #241d15;
    color: #f4eddd;
    border: 1px solid #6b5b3e;
    font-weight: 600;
}
.tk-app .file-button:hover { background: #322818; }
.tk-app .file-button[data-variant="primary"],
.tk-app .file-button[aria-pressed="true"] {
    background: #e9c25c;
    color: #171310;
    border-color: #e9c25c;
}
.tk-app .file-button[data-variant="primary"]:hover,
.tk-app .file-button[aria-pressed="true"]:hover { background: #f2d078; }
.tk-app .file-button:disabled { opacity: 0.55; }

/* ---------- صفوف مدمجة: الاسم والمتاح والحد وزرار الطلب جنب بعض ---------- */
.tk-app .file-row { padding: 8px 10px; }
.tk-app .file-row-body {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    flex-wrap: nowrap;
}
.tk-app .file-row-main {
    display: flex;
    align-items: baseline;
    gap: 8px;
    min-width: 0;
    flex: 0 1 auto;
}
.tk-app .file-row-main .file-strong { font-size: 13.5px; }
.tk-app .file-row-detail { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tk-app .file-row-value { margin-inline-start: auto; font-size: 12.5px; white-space: nowrap; }

/* ---------- محرر الدفع بالتقسيم ---------- */
.tk-pay { display: flex; flex-direction: column; gap: 8px; margin: 10px 0; }
.tk-pay-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.tk-pay-name { font-size: 13px; color: #d8cdb8; flex: 1; }
.tk-pay-amt { max-width: 130px; text-align: center; }
.tk-pay-auto {
    min-width: 110px;
    text-align: center;
    font-weight: 700;
    color: #e9c25c;
    background: #241d15;
    border: 1px dashed #6b5b3e;
    border-radius: 8px;
    padding: 8px 10px;
}
.tk-pos-notes { display: flex; flex-direction: column; gap: 6px; margin: 8px 0; }

/* ---------- بوابة الصلاحيات ---------- */
.tk-permgate {
    border: 1px dashed #6b5b3e;
    border-radius: 10px;
    padding: 10px 12px;
    margin: 8px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: rgba(233, 194, 92, 0.06);
}
.tk-permgate-label { font-size: 13px; color: #e9c25c; }
.tk-permgate-row { display: flex; gap: 8px; align-items: center; }
.tk-permgate-pin { max-width: 140px; }

/* ---------- مصفوفة الصلاحيات ---------- */
.tk-perm-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 7px 0;
    border-bottom: 1px solid rgba(107, 91, 62, 0.35);
}
.tk-perm-name { font-size: 13px; color: #f4eddd; flex: 1; }
.tk-perm-btns { display: flex; gap: 6px; }
.tk-perm-btn {
    background: #241d15;
    color: #9a8f7c;
    border: 1px solid #6b5b3e;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
}
.tk-perm-btn.is-on { background: #e9c25c; color: #171310; border-color: #e9c25c; }

/* ---------- كاشير مدمج من غير سكرول + إيصال ---------- */
.tk-pos { align-items: start; }
.tk-pos > :last-child { position: sticky; top: 8px; }
.tk-pos-grid { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; }
.tk-pos-item { min-height: 44px; padding: 6px 8px; gap: 2px; }
.tk-pos-item-name { font-size: 13px; }
.tk-pos-item-price { font-size: 12px; }
.tk-pos-line { padding: 4px 0; font-size: 13px; }
.tk-pos-qbtn { width: 28px; height: 28px; font-size: 16px; }
.tk-pos-notes { gap: 4px; margin: 6px 0; }
.tk-pos-notes .tk-select { padding: 5px 8px; font-size: 12px; }
.tk-pos-details { padding: 6px 8px; font-size: 13px; }
.tk-pos-sum { font-size: 13px; }
.tk-pos-sum .tk-cp-r { display: flex; justify-content: space-between; padding: 2px 0; }
.tk-pos-total { margin: 6px 0; }
.tk-pos-total strong { font-size: 22px; }
.tk-pos-actions { display: flex; flex-direction: row; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.tk-pos-actions button, .tk-pos-actions a { flex: 1 1 40%; min-height: 42px !important; font-size: 14px !important; font-weight: 700; padding: 6px 8px; white-space: nowrap; }
.tk-pay { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; margin: 8px 0; }
.tk-pay > .tk-label { grid-column: 1 / -1; margin: 0; }
.tk-pay-row { margin: 0 !important; }
.tk-receipt { border: 1px dashed var(--ds-hairline); border-radius: 10px; padding: 8px 10px; background: rgba(12, 10, 8, 0.5); }
.tk-report-head { font-weight: 700; font-size: 14px; margin: 8px 0; }
.tk-range { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tk-range .tk-label { margin: 0; }

/* ---------- طباعة ---------- */
@media print {
    .tk-no-print { display: none !important; }
    html, body.tk-print-mode { background: #fff !important; }
    body.tk-print-mode * { visibility: hidden; }
    body.tk-print-mode .tk-print-area, body.tk-print-mode .tk-print-area * { color: #000 !important; background: transparent !important; border-color: #999 !important; }
    body.tk-print-mode .tk-check-print, body.tk-print-mode .tk-check-print * { visibility: visible; }
    body.tk-print-mode .tk-check-print { display: block; position: fixed; top: 0; right: 0; width: 300px; max-width: 300px; box-sizing: border-box; background: #fff; color: #000; padding: 8px; font-size: 13px; }
    body.tk-print-mode .tk-print-area, body.tk-print-mode .tk-print-area * { visibility: visible; }
    body.tk-print-mode .tk-print-area { position: absolute; top: 0; left: 0; right: 0; background: #fff; color: #000; padding: 8px; }
    body.tk-print-mode .tk-pos-qbtn { display: none; }
    body.tk-print-mode .tk-receipt { max-width: 300px; }
}

/* كاشير بلا سكرول: صف الكاشير مضغوط + هوامش أقل */
.tk-cashier-row { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.tk-cashier-row .tk-label { margin: 0; white-space: nowrap; }
.tk-cashier-row .tk-select { max-width: 180px; padding: 5px 8px; margin: 0; }
.tk-chip { padding: 5px 12px; min-height: 32px; }
.tk-app .tk-pos { margin-top: 4px; }
.tk-app .tk-pos .tk-pos-details { margin: 4px 0; }
.tk-app .tk-pos label.tk-label[for="tk-onote"] { display: none; }
@media (min-width: 721px) { .tk-pos-lines, .tk-pos-notes { max-height: 26vh; overflow-y: auto; } }

.tk-cloud { max-width: 1100px; margin: 0 auto; padding: 6px 12px; font-size: 13px; color: #d8cdb8; }
.tk-cloud-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; justify-content: flex-start; }
.tk-cloud-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.tk-cloud-st { opacity: .8; }
.tk-cloud-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 6px; }
.tk-cloud-form .tk-select { max-width: 220px; }
.tk-cloud-err { color: #ff8a80; }
.tk-cloud .tk-select { margin-bottom: 0; min-height: 34px; width: auto; }
.tk-cloud .tk-chip { background: #e8c25a !important; color: #1a1408 !important; border: 0; border-radius: 6px; padding: 4px 12px; min-height: 30px; font: inherit; font-weight: 600; cursor: pointer; }
.tk-cloud .tk-chip:disabled { opacity: .5; }

/* تباين عالي: نص فاتح على غامق في كل حتة */
.tk-app input::placeholder, .tk-cloud input::placeholder { color: #b3a58b; opacity: 1; }
.tk-app input, .tk-app select, .tk-app textarea { color: #f4eddd !important; }
.tk-cloud .tk-chip:disabled { opacity: 1; background: #8a7a4d !important; color: #fff !important; }
.tk-cloud .tk-chip.tk-md-off, .tk-cloud .tk-chip.tk-md-off:disabled { background: #2a251d !important; color: #8f8778 !important; border-style: dashed; opacity: 1; }
.tk-cloud, .tk-cloud span { color: #f4eddd; }
.tk-cloud-st { opacity: 1; color: #e2d6bd; }
.tk-cloud .tk-select, .tk-cloud input { background: #241d15 !important; border: 1px solid #b3a58b; color: #fff !important; }

.tk-login { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: #0a0907; padding: 20px; position: relative; overflow: hidden; }
.tk-login::before { content: ''; position: absolute; inset: 0; background: var(--tk-login-logo) center / cover no-repeat; opacity: .12; pointer-events: none; }
.tk-login-box { position: relative; }
.tk-login-logo { width: 104px; height: 104px; border-radius: 50%; object-fit: cover; align-self: center; border: 2px solid #e8c25a; }
.tk-login-row { display: flex; gap: 10px; }
.tk-login-ghost { flex: 1; min-height: 46px; background: transparent; color: #e8c25a; border: 1px solid #6b5a2c; border-radius: 8px; font: inherit; font-size: 15px; cursor: pointer; touch-action: manipulation; }
.tk-login-box .tk-chip { flex: 1; min-height: 46px; background: #e8c25a !important; color: #1a1408 !important; border: 0; border-radius: 8px; font-weight: 700; font-size: 15px; }
.tk-login-box .tk-cloud-st { color: #e2d6bd; opacity: 1; text-align: center; font-size: 14px; flex-basis: 100%; }
.tk-login-box .tk-login-row { flex-wrap: wrap; }
.tk-login-box { width: 100%; max-width: 360px; display: flex; flex-direction: column; gap: 14px; padding: 26px 22px; border: 1px solid #e8c25a; border-radius: 16px; background: rgba(20,16,11,.88); color: #fff; }
.tk-login-brand { font-size: 30px; font-weight: 700; color: #e8c25a; text-align: center; letter-spacing: .06em; }
.tk-login-brand span { font-size: 14px; color: #e2d6bd; }
.tk-login-sub { color: #f4eddd; text-align: center; margin-bottom: 6px; }
.tk-login .tk-select { width: 100%; min-height: 48px; margin: 0; background: #241d15 !important; border: 1px solid #b3a58b; color: #fff !important; font-size: 16px; border-radius: 8px; padding: 8px 12px; box-sizing: border-box; }
.tk-login-btn { min-height: 50px; border: 0; border-radius: 8px; background: #e8c25a; color: #1a1408; font: inherit; font-size: 17px; font-weight: 700; cursor: pointer; touch-action: manipulation; }
.tk-login-btn:disabled { background: #8a7a4d; color: #fff; }
.tk-login-msg { color: #ffe08a; text-align: center; font-size: 15px; line-height: 1.5; }
.tk-login .tk-chip { background: #e8c25a; color: #1a1408; border: 0; border-radius: 6px; padding: 6px 12px; }
.tk-staff { margin-top: 8px; padding: 10px; border: 1px solid #5c4d38; border-radius: 10px; background: #14100b; }
.tk-staff-h { color: #e8c25a; font-weight: 700; margin: 6px 0; }
.tk-staff-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 6px; }
.tk-staff-n { min-width: 200px; color: #fff; }
.tk-staff-n small { color: #e2d6bd; }
.tk-login-err { background: #2a1a05; color: #ffe08a; border: 2px solid #ffe08a; border-radius: 8px; padding: 10px; text-align: center; font-size: 15px; line-height: 1.5; }
.tk-login-btn { -webkit-tap-highlight-color: transparent; }
.tk-pay-wrap { display: flex; flex-direction: column; gap: 8px; margin: 10px 0; }
.tk-pay-officer { display: flex; flex-direction: column; gap: 8px; }
.tk-pos-line { flex-wrap: wrap; }
.tk-pos-mv { width: 100%; padding: 4px 0 6px; }
.tk-pos-tools { margin: 4px 0 8px; }
.tk-pos-qbtn.is-on { background: var(--ds-teal) !important; color: #171310; }

.tk-check-print { display: none; }
.tk-cp-h { text-align: center; font-weight: 700; font-size: 18px; }
.tk-cp-s { text-align: center; font-size: 12px; margin-bottom: 4px; }
.tk-cp-r { display: flex; justify-content: space-between; padding: 2px 0; }
.tk-cp-t { border-top: 1px dashed #000; margin-top: 4px; padding-top: 4px; font-weight: 700; font-size: 15px; }
.tk-pos-qbtn.tk-pos-note { width: auto; padding: 0 8px; font-size: 12px; }

.tk-pct-wrap { position: relative; display: block; }
.tk-pct-wrap .tk-select { margin: 0; width: 100%; padding: 0 34px 0 12px; box-sizing: border-box; }
.tk-pct-sign { position: absolute; right: 12px; top: 0; bottom: 0; display: flex; align-items: center; font-weight: 700; color: var(--ds-accent, #e8c15a); pointer-events: none; }

.tk-cp-pay { border-top: 1px dashed #000; margin-top: 6px; padding-top: 4px; font-size: 13px; }
.tk-kt-print { display: none; }
.tk-kt-t { text-align: center; font-weight: 700; font-size: 20px; margin: 4px 0; }
.tk-kt-w { display: flex; justify-content: space-between; font-size: 16px; padding: 2px 0; }
.tk-kt-l { padding: 4px 0; border-bottom: 1px dashed #000; }
.tk-kt-n { display: flex; justify-content: space-between; font-weight: 700; font-size: 18px; }
.tk-inv-n { font-size: 15px; }
.tk-inv-tot { font-weight: 800; font-size: 17px; border-top: 1px solid #000; margin-top: 4px; padding-top: 4px; }
.tk-kt-note { font-size: 14px; margin-top: 2px; }
@media print {
    body.tk-print-kt * { visibility: hidden; }
    body.tk-print-kt .tk-kt-print.tk-printing, body.tk-print-kt .tk-kt-print.tk-printing * { visibility: visible; color: #000 !important; background: transparent !important; }
    body.tk-print-kt .tk-kt-print.tk-printing { display: block; position: fixed; top: 0; right: 0; max-width: 300px; width: 300px; background: #fff !important; padding: 8px; }
    html, body.tk-print-kt { background: #fff !important; }
}
.tk-no { text-align: center; font-weight: 800; font-size: 20px; margin: 2px 0 4px; }

.tk-cancel-panel { border: 1px solid var(--ds-hairline); border-radius: 10px; padding: 10px; margin: 8px 0; }
.tk-cancel-t { font-weight: 700; margin-bottom: 6px; }
.tk-pos-cancel { width: auto; padding: 0 10px; color: #ff8a80; }
.tk-sync-msg { font-size: 12px; padding: 4px 8px; color: var(--ds-ink-2); }
.tk-sync-btn { font-weight: 700; }
.tk-sw { position: relative; overflow: hidden; }
.tk-sw-in { position: relative; background: #0d0b09; touch-action: pan-y; transition: transform .18s ease; }
.tk-sw-in.is-drag { transition: none; user-select: none; }
.tk-sw-btn { position: absolute; top: 0; bottom: 0; width: 96px; border: 0; background: #b3261e !important; color: #fff; font: inherit; font-weight: 700; font-size: 17px; cursor: pointer; }
.tk-sw-l { left: 0; }
.tk-sw-r { right: 0; }
.tk-sw-list { display: flex; flex-direction: column; border: 1px solid var(--ds-hairline); }
.tk-sw-row { display: flex; justify-content: space-between; align-items: center; min-height: 52px; padding: 0 14px; border-bottom: 1px solid var(--ds-hairline); }
.tk-sw-row.is-on { border-inline-start: 4px solid var(--ds-teal); }
/* touch pass */
.tk-app button, .tk-app a, .tk-app summary, .tk-app input, .tk-app select { touch-action: manipulation; -webkit-tap-highlight-color: rgba(233, 194, 92, 0.25); }
.tk-pos-qbtn { width: 48px; height: 48px; font-size: 20px; }
.tk-pos-qbtn.tk-pos-note, .tk-pos-qbtn.tk-pos-cancel { width: auto; min-width: 48px; padding: 0 12px; font-size: 14px; }
.tk-chip, .tk-res-btn { min-height: 48px; min-width: 48px; }
.tk-res-btn { padding: 0 14px; font-size: 14px; }
.tk-app .file-button, .tk-app button.file-button { min-height: 48px; }
.tk-select, .tk-app input { min-height: 48px; }
.tk-pos-line { flex-wrap: wrap; padding: 6px 0; }
.tk-tables { gap: 14px; }
.tk-table { min-height: 92px; }
@media (min-width: 768px) { .tk-tables { grid-template-columns: repeat(3, 1fr); } .tk-pos-qbtn { width: 56px; height: 56px; } .tk-sw-row { min-height: 60px; } }
.tk-pos-line-name { flex: 1 1 100%; }
.tk-pos-line-qty { flex: 1; }
.tk-sw-btn { top: 50%; bottom: auto; height: 44px; width: 76px; transform: translateY(-50%); border-radius: 8px; font-size: 15px; font-weight: 600; }
.tk-sw-l { left: 10px; }
.tk-sw-r { right: 10px; }
.tk-cp-h { display: flex; align-items: center; justify-content: center; gap: 8px; }
.tk-cp-logo { width: 64px; height: 64px; object-fit: contain; background: #fff; }
.tk-cp-foot { border-top: 1px dashed #000; margin-top: 8px; padding-top: 6px; text-align: center; font-size: 12px; line-height: 1.5; }
.tk-ret-it{display:flex;align-items:center;gap:12px;justify-content:space-between;padding:8px 0;border-bottom:1px solid rgba(255,255,255,.12)}
.tk-ret-q{display:flex;align-items:center;gap:10px}
.tk-ret-q button{min-width:48px;min-height:48px;font-size:22px;border-radius:12px;border:1px solid rgba(255,255,255,.3);background:transparent;color:inherit}
.tk-ret-q b{min-width:28px;text-align:center;font-size:18px}
.tk-sw-btn { height: 32px; width: 56px; font-size: 13px; font-weight: 600; border-radius: 7px; padding: 0; }
.tk-sw-btn::before { content: ''; position: absolute; inset: -10px -14px; }
.tk-pos-line .tk-pos-line-name { font-size: 17px; font-weight: 700; }
@media print {
    body.tk-print-mode .tk-check-print { right: 0; left: 0; width: 100%; max-width: 80mm; margin: 0 auto; padding: 2mm 3mm; font-size: 16px; line-height: 1.35; }
}
.tk-cp-h { flex-direction: column; gap: 2px; font-size: 30px; letter-spacing: 1px; line-height: 1.1; }
.tk-cp-logo { width: 100%; max-width: 100%; height: auto; aspect-ratio: 1; border-radius: 0; }
.tk-cp-s { font-size: 15px; margin-bottom: 4px; }
.tk-cp-r { font-size: 16px; padding: 3px 0; }
.tk-cp-t { font-size: 22px; }
.tk-cp-pay { font-size: 16px; }
.tk-cp-foot { font-size: 15px; font-weight: 600; }
.tk-backbar { display: flex; gap: 8px; margin: 6px 0 10px; position: sticky; top: 0; z-index: 20; padding: 6px 0; background: #0a0907; }
.tk-backbtn { flex: 1; min-height: 52px; font: inherit; font-size: 16px; font-weight: 700; border-radius: 12px; border: 1px solid rgba(232, 193, 90, .55); background: #17130d; color: #f1e7cf; cursor: pointer; }
.tk-backbtn.is-main { flex: 1.3; background: #e8c15a; color: #1a1408; border-color: #e8c15a; }

.tk-wipe { display: flex; flex-direction: column; gap: 10px; padding: 4px 0 24px; }
.tk-wipe-h { margin: 0; font-size: 1.15rem; }
.tk-wipe-box { border: 1px solid var(--tk-line, #3a3320); border-radius: 12px; padding: 8px 12px; }
.tk-wipe-t { font-weight: 700; padding: 4px 0 6px; }
.tk-wipe-del { color: #ff6b6b; }
.tk-wipe-keep { color: #5be38a; }
.tk-wipe-r { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; border-top: 1px solid rgba(255,255,255,.07); font-size: .92rem; }
.tk-wipe-btn { padding: 12px; border-radius: 12px; border: 1px solid #f5c542; background: transparent; color: #f5c542; font: inherit; font-weight: 700; }
.tk-wipe-go { background: #d93636; border-color: #d93636; color: #fff; }
.tk-wipe-go:disabled { opacity: .35; }
.tk-wipe-msg { color: #5be38a; font-weight: 700; }

.tk-pw { position: relative; display: block; flex: 0 1 220px; width: 220px; max-width: 100%; }
.tk-pw .tk-select { width: 100%; max-width: none; padding-left: 50px; padding-right: 10px; box-sizing: border-box; }
.tk-pw-eye { position: absolute; left: 2px; top: 50%; transform: translateY(-50%); min-width: 44px; min-height: 44px; border: 0; background: transparent; font-size: 1.25rem; color: #f5c542; cursor: pointer; padding: 0; line-height: 1; }
.tk-pw-row { flex-basis: 100%; display: flex; gap: 8px; align-items: center; }
.tk-pw-row .tk-pw { flex: 1; width: auto; }
.tk-cloud-form .tk-pw { flex: 0 1 220px; }
.tk-login-box .tk-pw, .tk-staff > .tk-pw { width: 100%; flex: 1 1 100%; }
.tk-rmenu { position: relative; display: inline-flex; align-items: center; }
.tk-rmenu-b { background: none; border: 0; padding: 10px 0; color: var(--ds-ink-2); font: inherit; cursor: pointer; min-height: 44px; }
.tk-rmenu-l { position: absolute; top: 100%; inset-inline-start: 0; z-index: 30; min-width: 220px; max-height: 70vh; overflow-y: auto; background: #15110a; border: 1px solid var(--tk-line, #3a3320); border-radius: 12px; padding: 6px 0; box-shadow: 0 10px 30px rgba(0,0,0,.6); }
.file-nav .tk-rmenu-l a { display: block; padding: 10px 16px; min-height: 0; color: #f3ead8; white-space: nowrap; }
.tk-addon-pick { border: 1px solid var(--tk-line, #3a3320); border-radius: 12px; padding: 10px 12px; margin: 8px 0; display: grid; gap: 8px; }
.tk-unsaved { position: fixed; inset: 0; background: rgba(0,0,0,.25); z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 16px; }
.tk-unsaved-b { background: #1a1612; border: 1px solid #5c4d38; border-radius: 14px; padding: 16px; display: grid; gap: 12px; max-width: 360px; width: 100%; }
.tk-notify { position: fixed; bottom: 8px; left: 8px; right: 8px; z-index: 100010; display: grid; gap: 6px; pointer-events: none; }
.tk-notify-i { pointer-events: auto; background: #241d15; color: #e8c872; border: 1px solid #c9a227; border-radius: 10px; padding: 8px 14px; font-size: 14px; font-weight: 600; text-align: center; box-shadow: 0 4px 14px rgba(0,0,0,.55); }
.tk-notify-i.k-info { background: #241d15; color: #e8c872; border: 1px solid #5c4d38; box-shadow: none; padding: 8px 14px; font-size: 14px; font-weight: 600; border-radius: 10px; justify-self: center; min-height: 0; }
.tk-focus-flash { outline: 3px solid #c9a227; border-radius: 12px; animation: tkflash 1s ease-in-out 4; }
@keyframes tkflash { 50% { outline-color: transparent; } }
/* وضع الكاشير المبسط: مفيش غير مزامنة ورجوع والرئيسية */
body.tk-simple .file-nav, body.tk-simple .tk-cloud-row > *:not(.tk-sync-btn), body.tk-simple .tk-sync-msg, body.tk-simple header, body.tk-simple .file-header { display: none !important; }
body.tk-simple .tk-cloud-row { justify-content: center; }
body.tk-simple .tk-sync-btn, body.tk-simple .tk-backbtn { min-height: 52px; font-size: 18px; }
body.tk-simple .tk-select, body.tk-simple button { min-height: 48px; font-size: 17px; }
body.tk-simple .fk-h1 { display: none !important; }
body.tk-simple .tk-pos-sum { display: none !important; }
body.tk-simple .tk-cashier-row { display: flex !important; align-items: center; gap: 8px; padding: 8px 12px; margin: 6px 0; background: #f1ece4; border-radius: 10px; font-size: 18px; font-weight: 700; }
body.tk-simple .tk-cashier-row, body.tk-simple .tk-cashier-row .tk-label { color: #2b2118 !important; }
body.tk-simple .tk-cashier-row .tk-select { flex: 1; border: 0 !important; background: transparent !important; color: #2b2118 !important; font-weight: 700; font-size: 18px; min-height: 36px; }
body.tk-simple .tk-pos-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
body.tk-simple .tk-pos-item { min-height: 84px; font-size: 19px; }
body.tk-simple .tk-pos-item-price { font-size: 18px; }
body.tk-simple .tk-chips .tk-chip { min-height: 54px; font-size: 18px; flex: 1 1 auto; justify-content: center; }
body.tk-simple .tk-pay-btns .tk-chip { min-height: 60px; font-size: 20px; }
body.tk-simple .tk-pos-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
body.tk-simple .tk-pos-actions button { min-height: 66px; font-size: 20px; font-weight: 700; }
body.tk-simple .tk-pos-total strong { font-size: 34px; }
body.tk-role-cashier .file-nav { display: none !important; }

/* أزرار الطباعة والتصدير + تخطيط A4 */
.tk-reportbar { display: flex; gap: 8px; margin: 0 0 10px; }
body.tk-print-th80 .tk-page-area { width: 76mm !important; max-width: 76mm !important; font-size: 10px !important; line-height: 1.4 !important; }
body.tk-print-th80 .tk-page-area table, body.tk-print-th80 .tk-page-area th, body.tk-print-th80 .tk-page-area td { font-size: 9px !important; padding: 1px 2px !important; }
.tk-reportbar { flex-wrap: wrap; }
.tk-rb-btn { flex: 1; min-height: 44px; font: inherit; font-size: 15px; font-weight: 700; border-radius: 10px; border: 1px solid rgba(232, 193, 90, .55); background: #17130d; color: #f1e7cf; cursor: pointer; }
@media print {
    html, body.tk-print-page { background: #fff !important; }
    body.tk-print-page * { visibility: hidden; }
    body.tk-print-page .tk-page-area, body.tk-print-page .tk-page-area * { visibility: visible; color: #000 !important; background: transparent !important; border-color: #999 !important; box-shadow: none !important; }
    body.tk-print-page .tk-page-area { position: absolute; top: 0; left: 0; right: 0; width: 100%; padding: 0; font-size: 12pt; }
    body.tk-print-page .tk-page-area table { width: 100%; border-collapse: collapse; }
    body.tk-print-page .tk-page-area th, body.tk-print-page .tk-page-area td { border: 1px solid #999; padding: 3px 5px; }
    body.tk-print-page .tk-page-area button, body.tk-print-page .tk-page-area select, body.tk-print-page .tk-page-area .tk-backbar { display: none !important; }
    body.tk-print-page .tk-page-area tr { break-inside: avoid; }
}
.tk-res-pick { grid-column: 1 / -1; }
.tk-chip.tk-st-free { border-color: rgba(46, 230, 168, 0.55); }
.tk-chip.tk-st-busy { border-color: #ff5470; background: rgba(92, 20, 34, 0.55) !important; color: #ffd9df; }
.tk-chip.tk-st-res { border-color: #ffd166; background: rgba(96, 76, 20, 0.5) !important; color: #ffeec2; }
.tk-chip.tk-st-free.is-on, .tk-chip.tk-st-busy.is-on, .tk-chip.tk-st-res.is-on { outline: 3px solid #fff; outline-offset: 2px; font-weight: 800; }
.tk-chip.tk-st-free.is-on { background: rgba(23, 18, 13, 0.93) !important; color: #2ee6a8; }

.tk-syncbig { flex: 1 1 100%; order: 9; display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 60px; padding: 8px 18px; border-radius: 16px; border: 2px solid #e8c25a; background: linear-gradient(180deg, #2a2110, #171310) !important; color: #e8c25a; font-size: 18px; box-shadow: 0 0 14px rgba(232,194,90,.25); }
.tk-syncbig .tk-syncmain { display: grid; text-align: start; line-height: 1.25; }
.tk-syncbig small { font-size: 12px; font-weight: 400; opacity: .8; }
.tk-syncbig .tk-syncbadge { min-width: 28px; height: 28px; border-radius: 14px; background: #e8c25a; color: #171310; font-weight: 800; font-size: 15px; display: inline-flex; align-items: center; justify-content: center; padding: 0 6px; }
.tk-syncbig.is-ok { border-color: #1fb26b; color: #7ee2ae; box-shadow: 0 0 14px rgba(31,178,107,.25); }
.tk-syncbig.is-err { border-color: #ff5470; color: #ffd9df; background: rgba(92,20,34,0.75) !important; }
.tk-syncbig.is-sync .tk-syncico { animation: tk-spin 1s linear infinite; }
.tk-syncbig:disabled { opacity: 1; }
@keyframes tk-spin { to { transform: rotate(360deg); } }
body.tk-simple .tk-syncbig { min-height: 64px; font-size: 20px; }

.tk-brbtn { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: 14px; border: 2px solid #e8c25a; background: linear-gradient(180deg, #2a2110, #171310) !important; color: #e8c25a; font: inherit; font-weight: 700; cursor: pointer; }
.tk-sheet-bg { position: fixed; inset: 0; z-index: 100002; background: rgba(0,0,0,.6); display: flex; align-items: flex-end; justify-content: center; }
.tk-sheet { width: 100%; max-width: 520px; max-height: 82vh; overflow-y: auto; background: #15110a; border: 1px solid #3a3320; border-radius: 20px 20px 0 0; padding: 14px 14px 22px; display: grid; gap: 10px; box-shadow: 0 -10px 30px rgba(0,0,0,.6); }
.tk-sheet-h { display: flex; justify-content: space-between; align-items: center; font-size: 20px; color: #e8c25a; }
.tk-sheet-x { width: 44px; height: 44px; border-radius: 50%; border: 1px solid #3a3320; background: #171310; color: #e8c25a; font: inherit; font-size: 18px; cursor: pointer; }
.tk-br-card { border: 1px solid #3a3320; border-radius: 14px; padding: 12px; display: grid; gap: 8px; background: #1b160d; }
.tk-br-card.is-cur { border-color: #1fb26b; background: rgba(20,70,45,.35); }
.tk-br-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.tk-br-n { font-size: 18px; font-weight: 700; }
.tk-br-cur { color: #7ee2ae; font-weight: 700; margin-left: 16px; }
.tk-x-arrow { background: none; border: 0; cursor: pointer; color: #e9c25c; padding: 4px; min-width: 36px; min-height: 36px; }
.tk-br-link { justify-self: start; background: none; border: 0; color: #e8c25a; text-decoration: underline; font: inherit; min-height: 36px; cursor: pointer; padding: 0; }
.tk-br-new { display: grid; gap: 8px; border-top: 1px solid #3a3320; padding-top: 10px; }
.tk-cloud .tk-chip.tk-syncbig, .tk-cloud .tk-chip.tk-syncbig:disabled { background: linear-gradient(180deg, #2a2110, #171310) !important; color: #e8c25a !important; border: 2px solid #e8c25a; border-radius: 16px; min-height: 60px; padding: 8px 18px; font-size: 18px; opacity: 1; }
.tk-cloud .tk-chip.tk-syncbig.is-ok, .tk-cloud .tk-chip.tk-syncbig.is-ok:disabled { border-color: #1fb26b; color: #7ee2ae !important; }
.tk-cloud .tk-chip.tk-syncbig.is-err, .tk-cloud .tk-chip.tk-syncbig.is-err:disabled { border-color: #ff5470; color: #ffd9df !important; background: rgba(92,20,34,0.75) !important; }
.tk-cloud .tk-chip.tk-syncbig .tk-syncbadge { background: #e8c25a; color: #171310; }
.tk-cloud .tk-brbtn { background: linear-gradient(180deg, #2a2110, #171310) !important; color: #e8c25a !important; }
.tk-cloud .tk-brbtn { margin-inline-start: auto; }
.tk-sheet-bg { align-items: flex-start; justify-content: flex-start; background: rgba(0,0,0,.45); }
.tk-sheet { margin: 56px 8px 0; width: min(92vw, 420px); max-width: none; border-radius: 16px; max-height: 78vh; box-shadow: 0 10px 30px rgba(0,0,0,.6); }

/* الشاشات الداخلية: رجوع والرئيسية بس، من غير شريط التنقل */
body.tk-inner .file-nav { display: none; }

body.tk-inner .tk-cloud-row > *:not(.tk-sync-btn) { display: none !important; }

.tk-pos-menu { display: grid; grid-template-columns: 84px 1fr; gap: 8px; direction: ltr; }
.tk-pos-menu > * { direction: rtl; }
.tk-pos-cats { display: grid; gap: 6px; align-content: start; }
.tk-pos-cat { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 4px; border-radius: 12px; border: 1px solid var(--ds-hairline); background: rgba(23, 18, 13, 0.93) !important; color: var(--ds-ink); font: inherit; font-size: 13px; cursor: pointer; }
.tk-pos-cat small { opacity: .7; font-size: 11px; }
.tk-pos-cat.is-on { background: #e8c25a !important; color: #1a1306; border-color: #e8c25a; font-weight: 700; }
.tk-pos-search { margin-bottom: 8px; width: 100%; }
.tk-pos-menu .tk-pos-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
.tk-pos-item { position: relative; align-items: flex-start; text-align: start; min-height: 92px; }
.tk-pos-item-cat { font-size: 11px; opacity: .65; }
.tk-pos-plus { align-self: flex-end; width: 28px; height: 28px; border-radius: 50%; background: #e8c25a; color: #1a1306; font-weight: 800; font-size: 20px; line-height: 27px; text-align: center; }
@media (min-width: 721px) { .tk-pos { direction: ltr; } .tk-pos > * { direction: rtl; } .tk-pos-menu .tk-pos-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) { .tk-pos-menu .tk-pos-grid { grid-template-columns: 1fr 1fr; } }

.tk-pos-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 4px 0 10px; border: 1px solid var(--ds-hairline); border-radius: 12px; overflow: hidden; }
.tk-pos-tabs button { min-height: 44px; border: 0; background: #171717; color: var(--ds-ink-2); font-weight: 700; font-size: 15px; }
.tk-pos-tabs button.is-on { background: var(--ds-gold, #e8c15a); color: #111; }
.tk-pos-waiter { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 8px 0; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--ds-hairline); background: #171717; }
.tk-pos-waiter b { font-size: 16px; }
.tk-pos-waiter.is-set b { color: #2ee6a8; }
.tk-pos-waiter.is-none b { color: #ffd166; }
.tk-pos-waiter { flex-direction: column; align-items: stretch; }
.tk-pos-waiter label { color: var(--ds-ink-2); font-size: 13px; }
.tk-pos-wsel { width: 100%; min-height: 46px; font-size: 16px; font-weight: 700; appearance: auto; }
.tk-pos-waiter.is-set .tk-pos-wsel { color: #2ee6a8; border-color: rgba(46,230,168,.55); }
.tk-pos-waiter.is-none .tk-pos-wsel { color: #ffd166; border-color: #ffd166; }
.tk-pc-card { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 8px 0; padding: 14px; border: 1px solid var(--ds-hairline); border-radius: 12px; background: #171717; }
.tk-pc-n { font-weight: 700; font-size: 16px; }
.tk-pc-p { color: var(--ds-teal); font-size: 26px; }
@media print {
    body[data-paper="58"].tk-print-mode .tk-check-print { max-width: 58mm; padding: 1mm 2mm; font-size: 13px; }
    body[data-paper="58"].tk-print-kt .tk-kt-print.tk-printing { max-width: 58mm; width: 58mm; padding: 1mm 2mm; }
    body[data-paper="58"].tk-print-mode .tk-receipt { max-width: 58mm; }
}

.tk-qbtn-l { font-size: 10px; margin-inline-start: 3px; white-space: nowrap; }
.tk-pos-qbtn.tk-qbtn-w { width: auto; padding: 0 5px; display: inline-flex; align-items: center; }
@media (max-width: 480px) { .tk-pos-line-qty { gap: 4px; } .tk-pos-line-price { min-width: 48px; } .tk-pos-line { gap: 4px; } }
.tk-pw.tk-pw-full { width: 100%; flex: 1 1 100%; } .tk-permgate-pin-wrap .tk-pw { width: 100%; }
.tk-permgate-row .tk-pw { flex: 1 1 120px; width: auto; }
.tk-unsaved { background: rgba(0,0,0,.55); }
.tk-unsaved-b { background: #1a1612 !important; color: #f4e9d4; }
.tk-unsaved-b .tk-wipe-t { color: #f4e9d4 !important; font-weight: 700; }
.tk-unsaved-b .tk-chip { color: #f4e9d4; background: #2a231b; border: 1px solid #5c4d38; min-height: 44px; }
.tk-unsaved-b .tk-chip.is-on { background: #e8c46a !important; color: #1a1612 !important; border-color: #e8c46a; font-weight: 700; }
.tk-kt-print .tk-cp-logo { width: 120px; max-width: 120px; margin: 0 auto; display: block; }

.tk-brand-print { display: none; }
@media print {
    body.tk-print-page .tk-page-area > .tk-brand-print, body.tk-print-mode .tk-print-area > .tk-brand-print { display: block; text-align: center; margin: 0 0 8px; padding-bottom: 6px; border-bottom: 1px solid #000; }
    .tk-brand-logo { width: 90px; height: auto; display: block; margin: 0 auto; }
    .tk-brand-n { font-weight: 800; font-size: 16pt; letter-spacing: 1px; }
    .tk-brand-o { font-size: 9pt; }
}

.tk-kt-sep { border-top: 2px solid #000; margin: 6px 0; }

.tk-wm { display: none; }
.tk-wm-kt { display: none; }
@media print {
    body.tk-print-page .tk-page-area > .tk-brand-print .tk-wm, body.tk-print-mode .tk-print-area > .tk-brand-print .tk-wm { display: block; position: fixed; top: 50%; left: 50%; width: 75%; max-width: 160mm; height: auto; transform: translate(-50%, -50%); z-index: -1; }
    body.tk-print-kt .tk-kt-print.tk-printing .tk-wm-kt { display: block; position: absolute; top: 50%; left: 50%; width: 95%; height: auto; transform: translate(-50%, -50%); z-index: -1; }
    body.tk-print-mode .tk-check-print .tk-wm-kt { display: block; position: absolute; top: 50%; left: 50%; width: 95%; height: auto; transform: translate(-50%, -50%); z-index: -1; }
}

.tk-inv-h { text-align: center; font-weight: 800; font-size: 17px; letter-spacing: 1px; margin: 2px 0 2px; }
.tk-inv-hl { border-top: 1px dashed #000; margin-top: 4px; padding-top: 4px; }

/* الدعم وصفوف الكوبونات والمناطق */
.tk-page-area { padding-bottom: 96px; }
.tk-support-fab { position: fixed; bottom: 30px; left: 10px; z-index: 9000; width: 44px; height: 44px; border-radius: 50%; border: 1px solid #e8c25a; background: #1a1407; color: #e8c25a; font-size: 22px; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.5); }
.tk-lang-fab { position: fixed; bottom: 30px; left: 122px; z-index: 9000; width: 44px; height: 44px; border-radius: 50%; border: 1px solid #e8c25a; background: #1a1407; color: #e8c25a; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.5); display: flex; align-items: center; justify-content: center; }
.tk-lang-lb { position: absolute; top: 40px; left: 50%; transform: translateX(-50%); width: 68px; text-align: center; font-size: 9px; line-height: 11px; color: #cdb878; font-weight: 400; pointer-events: none; }
.tk-ai-fab { position: fixed; bottom: 30px; left: 66px; z-index: 9000; width: 44px; height: 44px; border-radius: 50%; border: 1px solid #e8c25a; background: #1a1407; color: #e8c25a; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.5); display: flex; align-items: center; justify-content: center; }
.tk-ai-lb { position: absolute; top: 40px; left: 50%; transform: translateX(-50%); width: 44px; text-align: center; font-size: 9px; line-height: 11px; color: #cdb878; white-space: normal; font-weight: 400; pointer-events: none; }
.tk-br-fab { position: fixed; bottom: 30px; left: 122px; z-index: 9000; width: 44px; height: 44px; border-radius: 50%; border: 1px solid #e8c25a; background: #1a1407 !important; color: #e8c25a !important; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.5); display: flex; align-items: center; justify-content: center; padding: 0; font: inherit; }
.tk-br-lb { position: absolute; top: 46px; left: 50%; transform: translateX(-50%); font-size: 9px; line-height: 11px; color: #cdb878; white-space: nowrap; font-weight: 400; pointer-events: none; }
@media print { .tk-br-fab { display: none !important; } }
.tk-support-sheet { background: #120f0a; border: 1px solid #3b3220; border-radius: 16px 16px 0 0; padding: 16px; width: 100%; max-width: 480px; box-sizing: border-box; text-align: center; max-height: 85vh; overflow-y: auto; }
.tk-support-num { font-size: 22px; letter-spacing: 1px; margin: 8px 0; }
.tk-cpn-row { border-bottom: 1px solid #3b3220; padding: 8px 0; }
@media print { .tk-support-fab, .tk-support-sheet, .tk-ai-fab, .tk-lang-fab { display: none !important; } }
.tk-pay-proof { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.tk-proof-img { max-width: 120px; max-height: 120px; border-radius: 8px; border: 1px solid var(--tk-line, #444); }
.tk-si-line { display: grid; grid-template-columns: 2fr 1fr 1fr auto; gap: 6px; align-items: center; }
.tk-chart svg { color: var(--tk-accent, #e0b33c); display: block; }
.tk-chart-row { display: grid; grid-template-columns: 70px 1fr 44px; gap: 8px; align-items: center; margin: 6px 0; }
.tk-chart-bar { height: 14px; background: rgba(255,255,255,.08); border-radius: 7px; overflow: hidden; }
.tk-chart-bar i { display: block; height: 100%; background: var(--tk-accent, #e0b33c); }
.tk-si-print table { width: 100%; border-collapse: collapse; } .tk-si-print th, .tk-si-print td { border: 1px solid #999; padding: 4px; text-align: right; }

.tk-pf-bad{color:#ff9d92;font-weight:700}.tk-pf-ok{color:#8fe3a1;font-weight:700}

.tk-support-bg { align-items: flex-end; justify-content: center; direction: rtl; }
.tk-support-sheet { color: #f4eddd; font-family: system-ui, sans-serif; }
.tk-support-sheet h3 { color: #e8c25a; }
.tk-support-sheet .tk-chip { color: #e8c25a; background: #1a1407; border: 1px solid #5c4d38; padding: 10px 16px; border-radius: 10px; text-decoration: none; font: inherit; cursor: pointer; }

@media print { .tk-support-badge { display: none !important; } }

.tk-owner-section { margin-bottom: 8px; border: 1px solid #3a3125; border-radius: 10px; padding: 0 12px; }
.tk-owner-section > summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 48px; cursor: pointer; list-style: none; margin-bottom: 0; }
.tk-owner-section > summary::-webkit-details-marker { display: none; }
.tk-owner-section > summary:focus-visible { outline: 2px solid #e9c25c; outline-offset: 2px; }
.tk-sec-arrow { display: inline-block; font-size: 24px; transition: transform .15s; }
.tk-owner-section[open] > summary .tk-sec-arrow { transform: rotate(-90deg); }
.tk-owner-section[open] { padding-bottom: 12px; }
@media print { .tk-owner-section > .tk-tiles { display: grid !important; } }

.tk-qr-print-grid { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px; }
.tk-qr-print-card { background:white!important;color:#221b15;padding:12px;border:1px solid #aa9557;border-radius:8px;text-align:center;break-inside:avoid; }
.tk-qr-print-card .tk-qr-logo { display:block;width:64px;height:64px;object-fit:contain;margin:0 auto 8px; }
.tk-qr-print-card .tk-qr-code { display:block;width:100%;height:auto;max-width:240px;margin:auto;image-rendering:pixelated; }
.tk-qr-print-card h2 { margin:8px 0;color:#221b15; }
.tk-qr-print-card p { font-size:12px;margin:4px 0; }
@media print { body:has(.tk-qr-print-grid) * { visibility:hidden; } body:has(.tk-qr-print-grid) .tk-qr-print-grid, body:has(.tk-qr-print-grid) .tk-qr-print-grid * { visibility:visible; } .tk-qr-print-grid { position:absolute;top:0;left:0;width:100%;gap:8mm; } .tk-qr-print-card { height:115mm;box-sizing:border-box; } .tk-qr-print-card .tk-qr-code { width:65mm;max-width:65mm; } .tk-qr-print-card .tk-qr-logo { width:20mm;height:20mm; } }
@media print {
 body:has(.tk-qr-print-grid),body:has(.tk-qr-print-grid) #root,body:has(.tk-qr-print-grid) .tk-app { background:#fff!important;background-image:none!important; }
 .tk-qr-print-card { height:124mm!important;padding:4mm!important;overflow:hidden; }
 .tk-qr-print-card .tk-qr-code { width:60mm!important;max-width:60mm!important; }
 .tk-qr-print-card .tk-qr-logo { width:18mm!important;height:18mm!important; }
 .tk-qr-print-card h2 { margin:2mm 0!important;font-size:18pt!important; }
 .tk-qr-print-card p { margin:1mm 0!important;font-size:9pt!important; }
 .tk-qr-print-card small { font-size:8pt!important; }
}
.tk-chat-fab { display: flex; align-items: center; justify-content: center; padding: 0; position: fixed; bottom: 30px; right: 10px; z-index: 9000; width: 44px; height: 44px; border-radius: 50%; border: 1px solid #e8c25a; background: #1a1407; color: #e8c25a; font-size: 22px; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.5); }
.tk-chat-badge { position: fixed; bottom: 40px; right: 64px; z-index: 9000; background: #1a1407; color: #e8c25a; border: 1px solid #5a4a1e; border-radius: 16px; padding: 6px 12px; font-size: 12px; direction: rtl; pointer-events: none; }
@media print { .tk-chat-fab, .tk-chat-badge, .tk-ch { display: none !important; } }
.tk-ch { position: fixed; inset: 0; z-index: 100001; background: #0e0b07; display: flex; flex-direction: column; color: #f1e8d4; }
.tk-ch-top { display: flex; align-items: center; justify-content: space-between; padding: 10px; border-bottom: 1px solid #3b3220; gap: 8px; }
.tk-ch-body { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; }
.tk-ch-home { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 14px; }
.tk-ch-card { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 22px 8px; border: 1px solid #3b3220; border-radius: 14px; background: #171310; color: inherit; font: inherit; cursor: pointer; }
.tk-ch-av { border-radius: 50%; border: 1px solid #5a4a1e; background: #241b0c; color: #e8c25a; padding: 0; overflow: hidden; flex: none; cursor: pointer; font: inherit; }
.tk-ch-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tk-ch-room { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.tk-ch-msgs { flex: 1; min-height: 0; overflow-y: auto; padding: 10px; display: flex; flex-direction: column; gap: 10px; }
.tk-ch-msg { display: flex; gap: 8px; align-items: flex-end; }
.tk-ch-msg.me { flex-direction: row-reverse; }
.tk-ch-bub { max-width: 78%; background: #1d1810; border: 1px solid #3b3220; border-radius: 14px; padding: 8px 10px; position: relative; }
.tk-ch-msg.me .tk-ch-bub { background: #2a2210; border-color: #6b5720; }
.tk-ch-msg.rep .tk-ch-bub { border-color: #8a3a2a; }
.tk-ch-who { font-size: 12px; margin-bottom: 3px; } .tk-ch-who small { opacity: .7; }
.tk-ch-txt { white-space: pre-wrap; overflow-wrap: anywhere; }
.tk-ch-img { max-width: 100%; max-height: 220px; border-radius: 10px; margin-top: 4px; display: block; }
.tk-ch-hid { opacity: .6; font-size: 13px; } .tk-ch-flag { font-size: 12px; color: #ff9d8a; }
.tk-ch-meta { display: flex; gap: 6px; align-items: center; margin-top: 4px; flex-wrap: wrap; } .tk-ch-meta small { opacity: .6; }
.tk-ch-mini { border: 1px solid #3b3220; background: #171310; color: #e8c25a; border-radius: 10px; padding: 2px 8px; font: inherit; font-size: 12px; cursor: pointer; }
.tk-ch-pick { display: flex; gap: 4px; margin-top: 6px; background: #0e0b07; border: 1px solid #3b3220; border-radius: 18px; padding: 4px 8px; width: fit-content; }
.tk-ch-pick button { border: 0; background: none; font-size: 22px; cursor: pointer; padding: 2px 4px; }
.tk-ch-rx { display: flex; gap: 4px; margin-top: 4px; flex-wrap: wrap; }
.tk-ch-rx button { border: 1px solid #3b3220; background: #171310; color: inherit; border-radius: 12px; padding: 1px 8px; font: inherit; font-size: 13px; cursor: pointer; } .tk-ch-rx button.on { border-color: #e8c25a; }
.tk-ch-comp { display: flex; gap: 6px; align-items: flex-end; padding: 8px; border-top: 1px solid #3b3220; padding-bottom: 64px; }
.tk-ch-comp textarea { margin: 0; flex: 1; resize: none; min-height: 44px; max-height: 110px; }
.tk-ch-att { display: inline-flex; align-items: center; justify-content: center; }
.tk-ch-emobtn { font-size: 20px; min-width: 44px; }
.tk-ch-emobtn.on { outline: 2px solid #e8c25a; }
.tk-ch-emopick { display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px; max-height: 200px; overflow-y: auto; padding: 8px; margin: 0 8px 6px; background: #15110a; border: 1px solid #3a3320; border-radius: 12px; }
.tk-ch-emopick button { background: none; border: 0; font-size: 22px; min-height: 38px; cursor: pointer; border-radius: 8px; padding: 0; }
.tk-ch-emopick button:active { background: #2a2110; }
.tk-ch-prev { display: flex; gap: 8px; align-items: center; padding: 6px 10px; } .tk-ch-prev img { height: 56px; border-radius: 8px; }
.tk-ch-err { background: #3a1610; color: #ffb4a4; padding: 8px 12px; font-size: 13px; }
.tk-ch-empty { text-align: center; opacity: .6; padding: 30px; }
.tk-ch-form { padding: 14px; display: grid; gap: 12px; } .tk-ch-form label { display: grid; gap: 4px; font-size: 13px; } .tk-ch-form .tk-select { margin: 0; }
.tk-ch-ph { display: flex; align-items: center; gap: 12px; } .tk-ch-ph img, .tk-ch-ph span { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; background: #241b0c; display: flex; align-items: center; justify-content: center; font-size: 34px; color: #e8c25a; }
.tk-ch-ro { display: grid; } .tk-ch-ro small { opacity: .7; }
.tk-ch-list { padding: 10px; display: grid; gap: 8px; align-content: start; }
.tk-ch-row { display: flex; gap: 10px; align-items: center; width: 100%; text-align: right; border: 1px solid #3b3220; background: #171310; color: inherit; border-radius: 12px; padding: 8px; font: inherit; cursor: pointer; }
.tk-ch-row span { display: grid; } .tk-ch-row small { opacity: .7; }
.tk-ch-mod { display: grid; gap: 4px; } .tk-ch-tg { display: flex; gap: 6px; flex-wrap: wrap; }
.tk-ch-t { border: 1px solid #3b3220; background: #171310; color: #888; border-radius: 12px; padding: 4px 10px; font: inherit; font-size: 12px; cursor: pointer; } .tk-ch-t.on { color: #e8c25a; border-color: #e8c25a; }
.tk-ch-sheet-bg { position: fixed; inset: 0; z-index: 100003; background: rgba(0,0,0,.6); display: flex; align-items: flex-end; justify-content: center; }
.tk-ch-sheet { background: #120f0a; border: 1px solid #3b3220; border-radius: 16px 16px 0 0; padding: 16px; width: 100%; max-width: 480px; box-sizing: border-box; text-align: center; display: grid; justify-items: center; gap: 6px; max-height: 85vh; overflow-y: auto; }

.tk-ch-rx button, .tk-ch-pick button { color: #f1e8d4 !important; background: #171310 !important; opacity: 1 !important; text-indent: 0 !important; }
.tk-ch-pick button { background: none !important; }

.tk-ch-em { width: 22px; height: 22px; display: block; } .tk-ch-rx .tk-ch-em { width: 16px; height: 16px; display: inline-block; vertical-align: middle; }
.tk-ch-rx button { display: inline-flex; align-items: center; gap: 4px; }

.tk-ch-rep { border: 1px solid #8a3a2a; border-radius: 14px; background: #1d1810; padding: 10px; display: grid; gap: 8px; }
.tk-ch-rep-h { display: flex; gap: 10px; align-items: center; } .tk-ch-rep-h span, .tk-ch-rep-p span { display: grid; } .tk-ch-rep small { opacity: .7; }
.tk-ch-rep-n { color: #ff9d8a; font-size: 13px; }
.tk-ch-rep-r { border-top: 1px solid #3b3220; padding-top: 8px; display: grid; gap: 6px; font-size: 13px; }
.tk-ch-rep-p { display: flex; gap: 8px; align-items: center; }

.tk-ch-tabs { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; } .tk-ch-tabs button { display: inline-flex; align-items: center; gap: 4px; border: 1px solid #3b3220; background: #171310; color: #f1e8d4; border-radius: 14px; padding: 4px 10px; font: inherit; } .tk-ch-tabs button.on { border-color: #e8c25a; }
.tk-ch-who-list { width: 100%; display: grid; gap: 8px; max-height: 40vh; overflow-y: auto; text-align: right; }

.tk-ch-who-r { justify-content: space-between; flex-direction: row; } .tk-ch-who-r span { flex: 1; text-align: right; }

.tk-ch-quote { border-inline-start: 3px solid #e8c25a; background: rgba(255,255,255,.06); border-radius: 6px; padding: 3px 8px; margin-bottom: 4px; display: grid; font-size: 12px; } .tk-ch-quote span { opacity: .75; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.tk-ch-replybar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 10px; border-top: 1px solid #3b3220; background: #171310; } .tk-ch-replybar div { display: grid; font-size: 12px; min-width: 0; } .tk-ch-replybar span { opacity: .75; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-ch-menu .tk-ch-pick { margin: 0 auto; } .tk-ch-acts { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }
.tk-ch-bub { transition: transform .12s; }
.tk-sd { display: grid; gap: 8px; width: 100%; }
.tk-sd-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.tk-sd-slot { display: grid; gap: 4px; justify-items: center; }
.tk-sd-pic { width: 100%; aspect-ratio: 3/4; border: 1px dashed #5a4a2a; border-radius: 10px; overflow: hidden; display: flex; align-items: center; justify-content: center; background: #1a150d; color: #c9b78c; font-size: 12px; text-align: center; }
.tk-sd-pic img { width: 100%; height: 100%; object-fit: cover; }
.tk-sd-err { color: #ff8a80; font-size: 12px; text-align: center; }
.tk-sd-panel { display: grid; gap: 8px; width: 100%; }
.tk-sd-ph { text-align: center; font-weight: 700; letter-spacing: 1px; }
.tk-sd-rules { margin: 0; padding: 0 18px 0 0; font-size: 12.5px; line-height: 1.7; color: #e2d6bd; text-align: right; }
.tk-jn { max-width: 460px; margin: 0 auto; padding: 16px; display: grid; gap: 10px; color: #e2d6bd; background: #0b0905; min-height: 100vh; box-sizing: border-box; align-content: start; }
.tk-jn-h { text-align: center; font-size: 20px; padding: 8px 0; }
.tk-jn-st { display: grid; gap: 10px; justify-items: center; text-align: center; padding: 24px 0; }
.tk-jn-code { font-size: 26px; letter-spacing: 3px; font-weight: 800; color: #e8c872; }
.tk-jn-pill { padding: 8px 14px; border-radius: 20px; background: #2a2314; border: 1px solid #5a4a2a; }
.tk-jn-pill.hr_ok { border-color: #c9a64a; } .tk-jn-pill.approved { border-color: #4caf50; } .tk-jn-pill.rejected { border-color: #ff8a80; }
.tk-ap { position: fixed; inset: 0; z-index: 100002; background: #0b0905; overflow-y: auto; padding: 12px; display: grid; gap: 10px; align-content: start; color: #e2d6bd; overscroll-behavior: contain; }
.tk-ch, .tk-ch-sheet-bg, .tk-sheet-bg { overscroll-behavior: contain; }
.tk-ap-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.tk-ap-row { box-sizing: border-box; min-width: 0; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px; border: 1px solid #3b3220; border-radius: 10px; background: #120f0a; text-align: right; color: inherit; width: 100%; }
.tk-ap-row small { display: block; opacity: .75; }
.tk-ap-link { word-break: break-all; font-size: 11px; direction: ltr; padding: 8px; background: #120f0a; border-radius: 8px; border: 1px solid #3b3220; }
.tk-ap-fab { position: fixed; top: 8px; left: 8px; z-index: 100001; }
.tk-ib { position: fixed; z-index: 100001; width: 38px; height: 38px; border-radius: 50%; border: 1px solid #5a4a2a; background: #1a150d; color: #e8c872; display: flex; align-items: center; justify-content: center; }

.tk-ib i { position: absolute; top: -4px; left: -4px; min-width: 18px; height: 18px; border-radius: 9px; background: #e53935; color: #fff; font-size: 11px; font-style: normal; display: flex; align-items: center; justify-content: center; padding: 0 4px; }
.tk-nt.unread { border-color: #c9a64a; background: #1d170c; }
.tk-nt-dot { width: 10px; height: 10px; border-radius: 50%; background: #e53935; flex: none; }
.tk-mail-body { white-space: pre-wrap; text-align: right; padding: 10px; background: #120f0a; border-radius: 10px; border: 1px solid #3b3220; }
.tk-sd-bd { display: grid; gap: 4px; font-size: 13px; text-align: right; }
.tk-hd-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.tk-hd-cell { display: grid; gap: 4px; justify-items: center; }
.tk-hd-cell img { width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: 8px; border: 1px solid #3b3220; background: #fff; }
.tk-ap-fab2 { top: 52px; }
.tk-chat-badge { display: none !important; }

/* شريط علوي ثابت للأيقونات */
body { padding-top: 72px; }
body::before { content: ''; position: fixed; top: 0; left: 0; right: 0; height: 70px; background: #0a0907f2; border-bottom: 1px solid #3a2f18; z-index: 9990; pointer-events: none; }
.tk-ib, .tk-chat-fab, .tk-support-fab, .tk-ai-fab, .tk-br-fab, .tk-lang-fab { top: 6px !important; bottom: auto !important; width: 38px !important; height: 38px !important; z-index: 9995 !important; box-shadow: none !important; font-size: 18px !important; }
.tk-chat-fab { right: 6px !important; left: auto !important; }
.tk-ib-mail { right: 56px !important; } .tk-ib-bell { right: 106px !important; } .tk-ib-req { right: 156px !important; } .tk-ib-upd { right: 206px !important; }
.tk-support-fab { left: 6px !important; right: auto !important; }
.tk-ai-fab { left: 56px !important; right: auto !important; }
.tk-br-fab { left: 106px !important; right: auto !important; }
.tk-lang-fab { left: 106px !important; right: auto !important; }
.tk-support-fab::before { content: ''; position: absolute; top: 25px; right: 1px; width: 9px; height: 9px; border-radius: 50%; background: #3ddc84; }
.tk-ai-fab::before { content: ''; position: absolute; top: 25px; right: 1px; width: 9px; height: 9px; border-radius: 50%; background: #3ddc84; }
.tk-support-badge { display: none !important; }
body.tk-pos-route .tk-ib, body.tk-pos-route .tk-chat-fab, body.tk-pos-route .tk-ai-fab, body.tk-pos-route .tk-br-fab, body.tk-pos-route .tk-sub-fab { display: none !important; }
.tk-pin { background: none; border: 0; font-size: 26px; text-align: center; line-height: 34px; filter: drop-shadow(0 1px 3px #000); }
.tk-pin-stale { opacity: .5; }
.tk-map { background: #1a1a1a; z-index: 1; }
.tk-trk-hd { font-size: 20px; font-weight: 700; margin: 6px 0 10px; }
.tk-trk-steps { display: grid; gap: 8px; margin: 8px 0 12px; }
.tk-trk-step { display: flex; align-items: center; gap: 10px; opacity: .5; font-size: 16px; }
.tk-trk-step i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #e8c25a; flex: none; }
.tk-trk-step.done { opacity: .85; } .tk-trk-step.done i { background: #3ddc84; border-color: #3ddc84; }
.tk-trk-step.now { opacity: 1; font-weight: 700; color: #e8c25a; } .tk-trk-step.now i { background: #e8c25a; box-shadow: 0 0 8px #e8c25a; }
.tk-trk-courier { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 10px; border: 1px solid #3b3220; border-radius: 12px; background: #120f0a; flex-wrap: wrap; }
.tk-trk-courier img, .tk-trk-ph { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; display: flex; align-items: center; justify-content: center; font-size: 26px; background: #1a1407; }
.tk-dlv-btn, .tk-ap .tk-dlv-btn { background: #e8c25a !important; color: #1a1407 !important; font-weight: 700 !important; font-size: 18px !important; padding: 12px 28px !important; flex: 1; border: 0 !important; border-radius: 12px !important; }
.tk-dlv-btn:disabled { opacity: .6; }

/* عناوين صغيرة تحت أيقونات الشريط */
.tk-br-fab .tk-br-lb { top: 40px; }
.tk-ib::after, .tk-chat-fab::after, .tk-support-fab::after { position: absolute; top: 40px; left: 50%; transform: translateX(-50%); width: 46px; text-align: center; font-size: 10px; line-height: 12px; color: #cdb878; white-space: normal; font-weight: 400; pointer-events: none; }
.tk-ib-lang::after { content: 'اللغة'; width: 64px; font-size: 9px; line-height: 11px; }
.tk-ib-upd::after { content: 'تحديث البرنامج'; width: 62px; font-size: 9px; line-height: 11px; }
.tk-upd-ov { position: fixed; inset: 0; z-index: 100010; background: rgba(0,0,0,.6); display: flex; align-items: center; justify-content: center; padding: 20px; }
.tk-upd-box { background: #241d15; border: 1.5px solid #c9a227; border-radius: 18px; padding: 26px 22px 18px; width: 100%; max-width: 330px; text-align: center; color: #f3e9d2; display: grid; gap: 10px; justify-items: center; }
.tk-upd-sub { opacity: .85; font-size: 13.5px; line-height: 1.9; }
.tk-upd-row { display: flex; gap: 12px; margin-top: 8px; }
.tk-upd-main { background: #e9c25c; color: #241d15; border: 0; border-radius: 12px; padding: 10px 26px; font: inherit; font-weight: 700; cursor: pointer; }
.tk-upd-ghost { background: transparent; color: #e9c25c; border: 1.5px solid #c9a227; border-radius: 12px; padding: 10px 26px; font: inherit; cursor: pointer; }
.tk-chat-fab::after { content: 'محادثات'; } .tk-ib-mail::after { content: 'ميل'; } .tk-ib-bell::after { content: 'إشعارات'; } .tk-ib-lb { position: absolute; top: 40px; left: 50%; transform: translateX(-50%); width: 40px; text-align: center; font-size: 9px; line-height: 11px; color: #cdb878; white-space: normal; font-weight: 400; pointer-events: none; } .tk-ib-req::after { content: 'طلبات'; } .tk-support-fab::after { content: 'دعم'; }
.tk-moto { background: none; border: 0; }
.tk-moto-disc { position: absolute; inset: 6px; border-radius: 50%; background: #e8c25a; border: 2px solid #1a1407; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 6px rgba(0,0,0,.6); }
.tk-moto-wedge { position: absolute; inset: 0; transition: transform .6s linear; }
.tk-moto-wedge::before { content: ''; position: absolute; top: -2px; left: 50%; margin-left: -6px; border-left: 6px solid transparent; border-right: 6px solid transparent; border-bottom: 10px solid #e8c25a; filter: drop-shadow(0 0 1px #1a1407); }
.tk-moto-stale { opacity: .55; }
.tk-chat-cust { position: fixed; top: 6px; right: 10px; z-index: 9995; display: flex; flex-direction: column; align-items: center; gap: 2px; background: #1a150d; color: #e8c872; border: 1px solid #5a4a2a; border-radius: 14px; padding: 6px 12px; font-size: 11px; }
.tk-chat-sheet { position: fixed; inset: 0; z-index: 100002; background: rgba(0,0,0,.6); display: flex; align-items: flex-end; }
.tk-chat-sheet-in { width: 100%; max-height: 85vh; overflow-y: auto; background: #15110a; border-top: 1px solid #3a3320; border-radius: 16px 16px 0 0; padding: 12px; box-sizing: border-box; color: #f4ead2; }
.tk-push-fab { position: fixed; bottom: 8px; left: 8px; z-index: 100001; font-size: 12px; }
.tk-push-box { position: fixed; inset: 0; z-index: 100003; background: #0b0905; color: #e2d6bd; padding: 12px; overflow-y: auto; }
.tk-push-fab { background: #c9a64a !important; color: #0b0905 !important; font-weight: 700; }
.tk-push-box .tk-chip.is-on { background: #c9a64a !important; color: #0b0905 !important; font-weight: 700; padding: 12px; font-size: 16px; }
.tk-push-box .tk-chip { opacity: 1 !important; }
.tk-appr { position: fixed; inset: 0; z-index: 100005; background: rgba(0,0,0,.7); display: flex; align-items: center; justify-content: center; padding: 16px; }
.tk-appr-box { background: #1a150d; border: 1px solid #c9a64a; border-radius: 14px; padding: 18px; color: #e2d6bd; display: grid; gap: 10px; text-align: center; width: min(360px, 100%); font-size: 16px; }
.tk-appr-btns { display: flex; gap: 10px; justify-content: center; }
.tk-appr-btns .tk-chip { flex: 1; padding: 12px; font-size: 16px; }
.tk-appr-btns .is-on { background: #c9a64a !important; color: #0b0905 !important; font-weight: 700; }
.tk-rate { display: grid; gap: 8px; justify-items: center; margin: 10px 0; padding: 12px; border: 1px solid #3b3220; border-radius: 12px; background: #120f0a; color: #e2d6bd; }
.tk-rate-st { display: flex; gap: 6px; direction: ltr; }
.tk-rate-st button { font-size: 34px; background: none; border: 0; color: #5a4a2a; padding: 0 2px; }
.tk-rate-st button.on { color: #e8c872; }
.tk-ap input[type="date"] { background: #14100a; color: #f3e7c9; border: 1px solid #5a4a2a; border-radius: 8px; padding: 7px 2px; font: 400 12px system-ui; color-scheme: dark; width: 100%; }
.tk-kbd-hint { font-size: 11px; opacity: .55; padding: 2px 10px 0; text-align: start; }

/* محادثة مساعدك AI */
.tk-ai-sheet { display: flex; flex-direction: column; max-height: 74vh; text-align: right; }
.tk-ai-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.tk-ai-head b { color: #e8c25a; font-size: 18px; }
.tk-ai-x { background: none; border: 1px solid #3b3220; border-radius: 50%; width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; color: #e8c25a; cursor: pointer; }
.tk-ai-who { display: flex; align-items: center; gap: 8px; background: #14100a; border: 1px solid #3b3220; border-radius: 12px; padding: 6px 8px; margin-bottom: 8px; }
.tk-ai-av { width: 34px; height: 34px; border-radius: 50%; background: #2a2210; border: 1px solid #5a4a2a; color: #e8c25a; display: inline-flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 700; flex: none; }
.tk-ai-who-t { display: flex; flex-direction: column; line-height: 1.35; min-width: 0; }
.tk-ai-who-t b { color: #f3e7c9; font-size: 14px; }
.tk-ai-who-t small { color: #a8905f; font-size: 12px; }
.tk-ai-msgs { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; min-height: 180px; max-height: 48vh; padding: 4px 2px; }
.tk-ai-line { display: flex; align-items: flex-start; gap: 6px; }
.tk-ai-line-me { flex-direction: row-reverse; }
.tk-ai-line .tk-ai-av { width: 28px; height: 28px; font-size: 13px; margin-top: 2px; }
.tk-ai-av-bot { color: #e8c25a; background: #1a150d; }
.tk-ai-col { display: flex; flex-direction: column; max-width: 88%; min-width: 0; }
.tk-ai-line-me .tk-ai-col { align-items: flex-end; }
.tk-ai-nm { color: #a8905f; font-size: 11px; margin-bottom: 2px; }
.tk-ai-m { background: #1a150d; border: 1px solid #3b3220; border-radius: 12px; padding: 8px 10px; font-size: 14px; line-height: 1.7; align-self: flex-start; max-width: 88%; white-space: pre-wrap; }
.tk-ai-me { align-self: flex-end; background: #2a2210; border-color: #5a4a2a; color: #e8c872; }
.tk-ai-empty { color: #8a7a55; text-align: center; font-size: 13px; margin: auto; }
.tk-ai-row { display: flex; gap: 6px; margin-top: 8px; align-items: flex-end; }
.tk-ai-row textarea { flex: 1; resize: none; }
.tk-ai-send { font-size: 18px; padding: 8px 14px; }
@media print { .tk-ai-sheet { display: none !important; } }

/* TATAKI-themed AI moderation intervention: dark + gold, compact bottom bar */
.tk-notify-i.k-mod { position: fixed; bottom: 12px; left: 12px; right: 12px; top: auto; background: #241d15; color: #e8c872; border: 1px solid #c9a227; box-shadow: 0 4px 14px rgba(0,0,0,.55); padding: 9px 14px; font-size: 14px; font-weight: 600; border-radius: 10px; text-align: center; z-index: 100012; min-height: 0; }
.tk-ch-err.mod { position: fixed; bottom: 150px; left: 16px; right: 16px; background: #241d15; color: #e8c872; border: 1px solid #c9a227; border-radius: 10px; padding: 7px 12px; font-size: 12px; font-weight: 600; text-align: center; z-index: 60; box-shadow: 0 4px 14px rgba(0,0,0,.55); }

.tk-staff-card { border: 1px solid #5a4a2a; border-radius: 14px; padding: 10px; margin-bottom: 10px; background: #14100a; }
.tk-staff-card-h { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.tk-staff-ava { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; border: 1px solid #5a4a2a; flex: none; }
.tk-staff-ava-i { display: inline-flex; align-items: center; justify-content: center; background: #2a2216; color: #e8c872; font-weight: 700; font-size: 20px; }
/* owner home search */
.tk-search { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; background: #241d15; border: 1.5px solid #c9a227; border-radius: 14px; padding: 2px 12px; }
.tk-search-ic { font-size: 16px; }
.tk-search-in { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: #f3e9d2; font-size: 15px; min-height: 40px; font-family: inherit; text-align: right; }
.tk-search-in::placeholder { color: #9a8c6f; }
.tk-search-x { background: transparent; border: 0; color: #c9a227; font-size: 15px; cursor: pointer; padding: 4px 6px; }
.tk-search-res { display: grid; gap: 6px; margin: -4px 0 14px; }
.tk-search-row { display: flex; align-items: center; gap: 10px; background: #241d15; border: 1px solid #5c4d38; border-radius: 12px; padding: 10px 12px; color: #f3e9d2; text-decoration: none; font: inherit; cursor: pointer; text-align: right; width: 100%; }
.tk-search-row small { margin-inline-start: auto; color: #b3a58b; font-size: 12px; white-space: nowrap; }
.tk-search-none { color: #b3a58b; text-align: center; padding: 10px; border: 1px dashed #5c4d38; border-radius: 12px; }
.tk-search-group { padding: 8px 4px 2px; font-size: 11px; font-weight: 700; color: #c9a227; }
.tk-search-kind { background: #241d15; border: 1px solid #5c4d38; color: #e9c25c; border-radius: 999px; padding: 1px 8px; font-size: 11px; flex: none; }
.tk-emp-acc { padding: 0 10px; }
.tk-emp-acc > summary { display: flex; align-items: center; gap: 8px; cursor: pointer; list-style: none; padding: 8px 0; }
.tk-emp-acc > summary::-webkit-details-marker { display: none; }
.tk-emp-acc > summary .tk-staff-card-h { flex: 1; min-width: 0; margin: 0; }
.tk-emp-acc > summary .tk-sec-arrow { font-size: 20px; color: #e9c25c; flex: none; }
.tk-emp-acc[open] > summary .tk-sec-arrow { transform: rotate(-90deg); }
.tk-ap .tk-owner-section { margin-bottom: 10px; }
.file-nav { align-items: center; }
.file-nav .tk-search { flex: 1; margin: 0 0 8px; min-width: 0; }

/* ---------- POS: عمود الفاتورة الجانبي + الأقسام (التصميم النهائي المعتمد) ---------- */
.tk-pos-orderbar { display: flex; align-items: center; gap: 8px; margin: 4px 0 2px; }
.tk-pos-cashier { flex: 1; display: flex; justify-content: space-between; align-items: center; gap: 8px; background: #241d15; border: 1px solid var(--ds-hairline); border-radius: 12px; padding: 9px 12px; font-size: 13px; color: var(--ds-ink-2); }
.tk-pos-cashier b { color: var(--ds-ink); }
.tk-pos-sicon { width: 42px; height: 42px; min-width: 42px; min-height: 42px; flex: none; border-radius: 50%; background: #241d15; border: 1px solid #c9a227; color: #e8c25a; font-size: 16px; cursor: pointer; }
.tk-pos-sicon.is-on { background: #e8c25a; color: #241d15; }
.tk-pos-shop { min-width: 0; }
.tk-pos-cats2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.tk-pos-ctile { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 62px; padding: 0 14px; background: #181209; border: 1.5px solid #4a3d28; border-radius: 14px; color: inherit; font: inherit; cursor: pointer; }
.tk-pos-ctile:active { transform: scale(0.98); }
.tk-pos-ctile-n { font-size: 15px; font-weight: 800; }
.tk-pos-ctile-c { font-size: 11px; color: var(--ds-ink-2); }
.tk-pos-cathdr { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.tk-pos-cathdr-t { flex: 1; text-align: center; font-weight: 800; color: #e8c25a; }
.tk-pos-cathdr-t small { color: var(--ds-ink-2); font-weight: 400; }
.tk-pos-item { position: relative; }
.tk-pos-item.is-incart { border-color: #e8c25a; }
.tk-pos-item-qty { position: absolute; top: 5px; inset-inline-start: 5px; background: #e8c25a; color: #241d15; font-size: 10px; font-weight: 900; border-radius: 999px; padding: 0 6px; line-height: 16px; }
.tk-pos-item.is-incart .tk-pos-item-name { padding-inline-start: 30px; }
.tk-pos-item.is-incart .tk-pos-item-cat { padding-inline-start: 30px; }
.tk-pos-phead { padding: 2px 2px 8px; border-bottom: 1px solid var(--ds-hairline); margin-bottom: 6px; }
.tk-pos-phead-r1 { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-weight: 800; font-size: 14px; }
.tk-pos-phead-num { color: #e8c25a; font-weight: 900; }
.tk-pos-phead-meta { display: flex; justify-content: space-between; gap: 8px; color: var(--ds-ink-2); font-size: 11px; margin-top: 2px; }
.tk-pos-mv-step { margin-bottom: 6px; }
.tk-pos-tools { display: grid !important; grid-template-columns: 1fr 1fr; gap: 4px; }
.tk-pos-tools .tk-chip { min-width: 0; min-height: 40px; padding: 4px 6px; font-size: 11.5px; }
@media (max-width: 720px) {
    .tk-pos-cats2 { grid-template-columns: 1fr; }
    .tk-pos-ctile { min-height: 52px; }
    .tk-pos-phead-meta { flex-direction: column; gap: 2px; }
}

/* POS line: كل أدوات السطر ظاهرة جوه العمود من غير سكرول أفقي */
.tk-pos .tk-pos-line { gap: 4px; }
.tk-pos .tk-pos-line-qty { flex-wrap: wrap; gap: 4px; }
.tk-pos .tk-pos-qbtn { width: 32px; height: 32px; min-width: 32px; min-height: 32px; font-size: 16px; }
.tk-pos .tk-pos-qbtn.tk-pos-note, .tk-pos .tk-pos-qbtn.tk-qbtn-w { width: auto; min-width: 0; padding: 0 7px; font-size: 11px; }
.tk-pos .tk-pos-line-price { min-width: 0; font-size: 12px; }
.tk-pos .tk-qbtn-l { font-size: 10px; }
/* billing gate (72) */
.tk-bill { position: fixed; inset: 0; z-index: 2147483000; background: #17120c; color: #f1e6cc; overflow-y: auto; display: flex; justify-content: center; padding: 18px 14px 40px; }
.tk-bill-box { width: 100%; max-width: 420px; }
.tk-bill-logo { text-align: center; color: #c9a227; font-weight: 800; letter-spacing: 3px; font-size: 20px; margin-top: 8px; }
.tk-bill-lock { margin: 14px auto 4px; width: 56px; height: 56px; line-height: 52px; text-align: center; border: 2px solid #c9a227; border-radius: 50%; font-size: 15px; color: #c9a227; font-weight: 800; }
.tk-bill-h { text-align: center; font-size: 18px; font-weight: 800; color: #f6ecd2; margin: 10px 0 2px; }
.tk-bill-m { color: #b9aa83; font-size: 13px; text-align: center; margin: 3px 0; }
.tk-bill-card { background: #241d15; border: 1px solid #3a2f1f; border-radius: 14px; padding: 11px; margin: 10px 0; font-size: 13.5px; }
.tk-bill-card .tk-bill-m { text-align: right; }
.tk-bill-big { font-size: 30px; color: #c9a227; font-weight: 800; text-align: center; }
.tk-bill-card.ok, .tk-bill-card .ok { color: #7fd48a; font-weight: 700; } .tk-bill-card.bad, .tk-bill-card .bad { color: #ff8f8f; font-weight: 700; } .tk-bill-card.warn { color: #e9c46a; font-weight: 700; }
.tk-bill-btn { box-sizing: border-box; display: block; width: 100%; text-align: center; background: #c9a227; color: #241d15; font-weight: 800; border-radius: 12px; padding: 12px; font-size: 15px; margin: 10px 0; border: 0; cursor: pointer; }
.tk-bill-btn.o { background: transparent; border: 1.5px solid #c9a227; color: #c9a227; }
.tk-bill-link { display: block; margin: 12px auto; background: none; border: 0; color: #b9aa83; font-size: 14px; }
.tk-bill-img { width: 100%; max-height: 220px; object-fit: contain; border-radius: 10px; background: #fff; margin: 6px 0; }
.tk-bill-bar { position: fixed; z-index: 9980; bottom: 14px; left: 12px; right: 12px; background: #241d15; border: 1.5px solid #c9a227; color: #f1e6cc; border-radius: 12px; padding: 10px 12px; display: flex; justify-content: space-between; gap: 10px; align-items: center; font-size: 13px; }
.tk-bill-bar b { color: #c9a227; white-space: nowrap; }
.tk-bill-vchip { position: fixed; z-index: 9970; bottom: 14px; left: 12px; background: #241d15; border: 1.5px solid #c9a227; color: #c9a227; border-radius: 20px; padding: 6px 12px; font-size: 12px; font-weight: 700; }

.tk-sub-fab { position: fixed; z-index: 9995; top: 6px; left: 156px; width: 38px; height: 38px; border-radius: 50%; border: 1px solid #e8c25a; background: #1a1407; color: #e8c25a; font-size: 18px; cursor: pointer; padding: 0; }
.tk-sub-lb { position: absolute; top: 40px; left: 50%; transform: translateX(-50%); font-size: 9px; line-height: 11px; color: #cdb878; white-space: nowrap; font-weight: 400; pointer-events: none; }
@media print { .tk-sub-fab { display: none !important; } }

@media (max-width: 460px) {
 .tk-ib, .tk-chat-fab, .tk-support-fab, .tk-ai-fab, .tk-br-fab, .tk-sub-fab { width: 35px !important; height: 35px !important; }
 .tk-chat-fab { right: 3px !important; } .tk-ib-mail { right: 42px !important; } .tk-ib-bell { right: 81px !important; } .tk-ib-req { right: 120px !important; } .tk-ib-upd { right: 159px !important; }
 .tk-support-fab { left: 3px !important; } .tk-ai-fab { left: 42px !important; } .tk-br-fab { left: 81px !important; }
 .tk-sub-fab { left: 120px; top: 6px; bottom: auto; }
 .tk-sub-lb { white-space: normal; width: 40px; text-align: center; font-size: 8px; line-height: 10px; }
 .tk-ib-lb { width: 40px; font-size: 8px; }
}
/* فحص الاتصال: نقطة ملونة جنب الحالة */
.tk-probe { display: flex; align-items: center; justify-content: center; gap: 8px; direction: rtl; white-space: pre-wrap; font-size: 14px; }
.tk-probe-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.tk-probe-pulse { animation: tk-probe-pulse 1.1s ease-in-out infinite; }
@keyframes tk-probe-pulse { 0%, 100% { opacity: .35; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.15); } }
/* بطاقة الموظف للطباعة */
.tk-pcard { width: 340px; max-width: 100%; background: #f8f4e8; color: #241d15; border: 2px solid #c9a227; border-radius: 16px; padding: 18px; display: grid; gap: 8px; justify-items: center; text-align: center; }
.tk-pcard-photo { width: 120px; height: 120px; border-radius: 12px; object-fit: cover; border: 2px solid #c9a227; }
.tk-pcard-name { font-size: 19px; font-weight: 800; }
.tk-pcard-row { font-size: 15px; font-weight: 700; }
.tk-pcard-sub { font-size: 14px; font-weight: 700; color: #6a5a35; }
.tk-pcard-lines { width: 100%; display: grid; gap: 5px; border-top: 1px solid #c9a22766; padding-top: 9px; }
.tk-pcard-line { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 13px; text-align: right; }
.tk-pcard-line > span { color: #6a5a35; flex: none; }
.tk-pcard-line > b { font-weight: 700; }
.tk-pcard-docs { width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; border-top: 1px solid #c9a22766; padding-top: 9px; }
.tk-pcard-doc { display: grid; gap: 4px; justify-items: center; font-size: 11px; font-weight: 700; color: #6a5a35; }
.tk-pcard-doc img { width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: 8px; border: 1px solid #c9a227; }
/* عارض الصور ملء الشاشة */
.tk-fv { position: fixed; inset: 0; z-index: 100010; background: #000; display: flex; align-items: center; justify-content: center; touch-action: none; overflow: hidden; user-select: none; -webkit-user-select: none; }
.tk-fv img { max-width: 100vw; max-height: 100vh; object-fit: contain; pointer-events: none; }
.tk-fv-top { position: absolute; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 12px; color: #e2d6bd; background: linear-gradient(#000c, transparent); z-index: 2; touch-action: auto; }
.tk-fv-note { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; color: #e2d6bd; font-size: 12px; opacity: .8; pointer-events: none; }

/* أيقونة اللغة في الشريط العلوي */
.tk-ib-lang { right: 256px !important; }
body.tk-pos-route .tk-ib-lang { display: none !important; }
@media (max-width: 460px) {
 .tk-ib-lang { right: 198px !important; width: 35px !important; height: 35px !important; }
}

/* زرار الترجمة جنب نصوص الناس */
.tk-tr { display: block; margin-top: 2px; }
.tk-tr-btn { background: none; border: none; color: #9db4d0; font-size: 11px; cursor: pointer; padding: 0 2px; text-decoration: underline; font-family: inherit; }
.tk-tr-txt { display: block; font-size: 13px; opacity: .85; border-inline-start: 2px solid #5a4a2a; padding-inline-start: 8px; margin-top: 2px; white-space: pre-wrap; }
.tk-tr-err { color: #d97706; cursor: pointer; display: block; }
.tk-ch-trbar { padding: 2px 8px 0; }

/* ليبلز الأيقونات بالإنجليزي مع واجهة English */
html[lang="en"] .tk-chat-fab::after { content: 'Chat'; }
html[lang="en"] .tk-ib-mail::after { content: 'Mail'; }
html[lang="en"] .tk-ib-bell::after { content: 'Alerts'; }
html[lang="en"] .tk-ib-req::after { content: 'Requests'; }
html[lang="en"] .tk-support-fab::after { content: 'Support'; }
html[lang="en"] .tk-ib-lang::after { content: 'Language'; }

/* أيقونات الشريط العلوي بالألوان الحقيقية */
.tk-emo { font-size: 20px; line-height: 1; filter: none; color: initial; font-family: "Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif; }
.tk-br-fab .tk-emo, .tk-sub-fab .tk-emo { font-size: 18px; }
.tk-support-fab { font-family: "Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif; }
.tk-ib, .tk-chat-fab, .tk-support-fab, .tk-ai-fab, .tk-br-fab, .tk-sub-fab { background: #2a2216 !important; }

/* شريط الأيقونات: مسافات ومقاسات بتتظبط على عرض الشاشة (حتى 6 يمين + 4 شمال من غير تداخل) */
body { padding-top: 80px; }
body::before { height: 78px; }
@media (max-width: 460px) {
 body { --p: min(41px, calc((100vw - 10px) / 10)); --s: calc(var(--p) - 4px); }
 .tk-ib, .tk-chat-fab, .tk-support-fab, .tk-ai-fab, .tk-br-fab, .tk-sub-fab { width: var(--s) !important; height: var(--s) !important; top: 5px !important; }
 .tk-chat-fab { right: 3px !important; left: auto !important; }
 .tk-ib-mail { right: calc(3px + var(--p)) !important; }
 .tk-ib-bell { right: calc(3px + 2 * var(--p)) !important; }
 .tk-ib-req { right: calc(3px + 3 * var(--p)) !important; }
 .tk-ib-upd { right: calc(3px + 4 * var(--p)) !important; }
 .tk-ib-lang { right: calc(3px + 5 * var(--p)) !important; }
 .tk-support-fab { left: 3px !important; right: auto !important; }
 .tk-ai-fab { left: calc(3px + var(--p)) !important; right: auto !important; }
 .tk-br-fab { left: calc(3px + 2 * var(--p)) !important; right: auto !important; }
 .tk-sub-fab { left: calc(3px + 3 * var(--p)) !important; top: 5px !important; bottom: auto !important; }
 .tk-ib::after, .tk-chat-fab::after, .tk-support-fab::after { width: var(--p) !important; top: calc(var(--s) + 2px) !important; font-size: 9px !important; line-height: 11px !important; }
 .tk-ib-lang::after { width: calc(var(--p) + 6px) !important; font-size: 8.5px !important; line-height: 10px !important; }
 .tk-ib-lb, .tk-ai-lb, .tk-br-lb, .tk-sub-lb { width: var(--p) !important; font-size: 8.5px !important; line-height: 10px !important; white-space: normal !important; text-align: center; top: calc(var(--s) + 2px) !important; }
 .tk-emo { font-size: calc(var(--s) * .55) !important; }
}

/* عارض الصورة: الصورة تملا الشاشة حتى لو النسخة المحفوظة صغيرة */
.tk-fv img { width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh; object-fit: contain; }

/* كمبيوتر / ويندوز: أيقونات وكتابة أكبر ومساحة أوسع */
@media (min-width: 900px) {
 .tk-ib, .tk-chat-fab, .tk-support-fab, .tk-ai-fab, .tk-br-fab, .tk-sub-fab { zoom: 1.4; }
 body::before { height: 104px; }
 body { padding-top: 108px; }
 .tk-page-area { max-width: 1240px !important; }
 .tk-app { font-size: 17px; }
}
@media (min-width: 900px) { .tk-app .fk-card, .fk-card { max-width: 1240px !important; } }

/* ديسكتوب: الأيقونات جنب المحتوى والخط أكبر */
@media (min-width: 900px) {
 :root { --cw: min(1240px, 100vw - 48px); --mg: calc((100vw - var(--cw)) / 2); }
 .tk-chat-fab, .tk-ib, .tk-ib-mail, .tk-ib-bell, .tk-ib-req, .tk-ib-upd, .tk-ib-lang, .tk-support-fab, .tk-ai-fab, .tk-br-fab, .tk-sub-fab { zoom: 1.28; }
 .tk-chat-fab { right: var(--mg) !important; }
 .tk-ib-mail { right: calc(var(--mg) + 50px) !important; }
 .tk-ib-bell { right: calc(var(--mg) + 100px) !important; }
 .tk-ib-req { right: calc(var(--mg) + 150px) !important; }
 .tk-ib-upd { right: calc(var(--mg) + 200px) !important; }
 .tk-ib-lang { right: calc(var(--mg) + 250px) !important; }
 .tk-support-fab { left: var(--mg) !important; }
 .tk-ai-fab { left: calc(var(--mg) + 50px) !important; }
 .tk-br-fab { left: calc(var(--mg) + 100px) !important; }
 .tk-sub-fab { left: calc(var(--mg) + 150px) !important; }
 .tk-app { font-size: 17px; }
}
@media (min-width: 900px) { body { padding-top: 116px; } }

/* هواء حول عناوين أيقونات الشريط: فصل العنوان عن الأيقونة وفصل الأسطر عن بعض */
body { padding-top: 86px; }
body::before { height: 82px; }
.tk-ib::after, .tk-chat-fab::after, .tk-support-fab::after { top: 47px !important; line-height: 13px !important; }
.tk-ib-lb, .tk-ai-lb, .tk-br-lb, .tk-sub-lb, .tk-br-fab .tk-br-lb { top: 47px !important; line-height: 12px !important; }
@media (max-width: 460px) {
 .tk-ib::after, .tk-chat-fab::after, .tk-support-fab::after { top: calc(var(--s) + 8px) !important; line-height: 12px !important; }
 .tk-ib-lb, .tk-ai-lb, .tk-br-lb, .tk-sub-lb { top: calc(var(--s) + 8px) !important; line-height: 11px !important; }
}
@media (min-width: 900px) { body { padding-top: 120px; } body::before { height: 112px; } }

/* ديسكتوب: أيقونات أكبر بوضوح + تكبير شامل لمحتوى الشاشات */
@media screen and (min-width: 900px) {
 .tk-chat-fab, .tk-ib, .tk-ib-mail, .tk-ib-bell, .tk-ib-req, .tk-ib-upd, .tk-ib-lang, .tk-support-fab, .tk-ai-fab, .tk-br-fab, .tk-sub-fab { zoom: 1.45; }
 body { padding-top: 128px; }
 body::before { height: 118px; }
 .tk-page-area { zoom: 1.15; }
}
@media print { .tk-page-area { zoom: 1 !important; } }

/* ديسكتوب: المحتوى يملا الشاشة */
@media screen and (min-width: 900px) {
 :root { --cw: calc(100vw - 64px); }
 .tk-page-area { max-width: none !important; }
 .tk-app .fk-card, .fk-card { max-width: none !important; }
}
@media screen and (min-width: 1600px) { .tk-page-area { zoom: 1.22; } }
.tk-pos-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.tk-pos-actions > button, .tk-pos-actions > a { flex: 1 1 44%; min-width: 0; white-space: normal; line-height: 1.2; padding-inline: 8px; }

/* تقارير حرارية 80مم + تقرير قفل الوردية */
.tk-shift-print { display: none; }
@media print {
    body.tk-print-mode.tk-print-thermal .tk-print-area { width: 76mm !important; max-width: 76mm !important; margin: 0 auto; padding: 2mm 3mm; font-size: 12px; left: 0; right: 0; }
    body.tk-print-mode.tk-print-thermal .tk-print-area table { font-size: 11px; }
    body.tk-print-shift * { visibility: hidden; }
    body.tk-print-shift .tk-shift-print, body.tk-print-shift .tk-shift-print * { visibility: visible; color: #000 !important; background: transparent !important; }
    body.tk-print-shift .tk-shift-print { display: block; position: fixed; top: 0; right: 0; width: 76mm; max-width: 76mm; background: #fff !important; padding: 2mm 3mm; font-size: 13px; line-height: 1.4; }
    body.tk-print-shift .tk-shift-print .pg { page-break-after: always; }
    body.tk-print-shift .tk-shift-print .pg:last-child { page-break-after: auto; }
    html, body.tk-print-shift { background: #fff !important; }
}

/* طباعة مضمّنة (تطبيق الأندرويد) */
.tk-embed-print { display: none; }
@media print {
    body.tk-print-embed * { visibility: hidden; }
    body.tk-print-embed .tk-embed-print, body.tk-print-embed .tk-embed-print * { visibility: visible; }
    body.tk-print-embed .tk-embed-print { display: block; position: absolute; top: 0; left: 0; right: 0; background: #fff; }
}

/* العلامة المائية للبراند ورا كل ورقة من تقرير قفل الوردية (قرار المالك: أي حاجة بتتطبع يكون وراها اللوجو) */
.tk-wm-sh { display: none; }
@media print {
    body.tk-print-shift .tk-shift-print .pg { position: relative; }
    body.tk-print-shift .tk-shift-print .tk-wm-sh { display: block; position: absolute; top: 50%; left: 50%; width: 88%; height: auto; transform: translate(-50%, -50%); z-index: -1; }
}

/* v111b: أيقونة التقويم 📅 لكل حقول التاريخ بدل أيقونة المتصفح (تعميم نمط الأيقونات) */
input[type="date"]::-webkit-calendar-picker-indicator {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22'%3E%3Ctext x='1' y='17' font-size='17'%3E%F0%9F%93%85%3C/text%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  width: 22px;
  height: 22px;
  cursor: pointer;
}

/* v112c: الأيقونات المعممة بدون إطار — شكل واتساب، الأيقونة لوحدها من غير بوكس (قرار مارو) */
.tk-icobtn { background: none !important; background-color: transparent !important; border: none !important; box-shadow: none !important; outline: none; padding: 8px !important; margin: 0 !important; min-width: 0 !important; min-height: 0 !important; width: auto !important; font-size: 22px !important; font-weight: 400 !important; line-height: 1 !important; cursor: pointer; color: inherit !important; }
.tk-icobtn:disabled { opacity: .35; cursor: default; }
.tk-icobtn:active { transform: scale(.9); }

/* v112d: كل أيقونة وليها كابشن صغير تحتها زي أيقونات الشريط العلوي (قرار مارو) */
.tk-icobtn { position: relative; text-align: center; vertical-align: top; display: inline-flex !important; flex-direction: column; align-items: center; justify-content: center; gap: 1px; }
.tk-icobtn[data-tklbl]::after { content: attr(data-tklbl); display: block; font-size: 10px; font-weight: 400; line-height: 1.3; margin-top: 2px; opacity: .85; white-space: nowrap; }

/* v112e: أيقونة التقويم الديناميكية (معاينة خلف فلاج tk-calbadge — مش معممة لحد موافقة مارو) */
input[type=date].tk-calhide::-webkit-calendar-picker-indicator { opacity: 0; }
.tk-calbadge { position: fixed; z-index: 1000; width: 24px; height: 26px; background: #fff; border-radius: 5px; box-shadow: 0 1px 3px rgba(0,0,0,.5); pointer-events: none; overflow: hidden; text-align: center; }
.tk-calbadge i { display: block; height: 6px; background: #e0b33c; }
.tk-calbadge b { display: block; font-size: 13px; line-height: 18px; color: #1a1712; font-weight: 800; }

/* icon nav tabs (approved design) */
.file-nav { gap: 4px; }
.file-nav a.tk-nl, .file-nav button.tk-nl { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; padding: 8px 7px; min-width: 52px; background: none; border: 0; cursor: pointer; font: inherit; color: var(--ds-ink-2); }
.file-nav .tk-nic { font-size: 21px; line-height: 1; }
.file-nav .tk-nlb { font-size: 10px; opacity: .85; margin-top: 2px; white-space: nowrap; }
.file-nav a.tk-nl[aria-current="page"] { color: var(--ds-teal); box-shadow: inset 0 -1px 0 var(--ds-teal); }
.file-nav .tk-rmenu-l a.tk-nl, .file-nav .tk-rmenu-l a { display: block; padding: 10px 16px; min-height: 0; white-space: nowrap; }

/* v114: جوه قسم في الكاشير الزرار السياقي بس هو اللي يظهر — الشريط العام يتخفي */
body.tk-cat-open .tk-backbar { display: none !important; }

/* v114: وجود ملاحظة على صنف = نقطة صغيرة على الأيقونة مش بوكس ملون (قرار مارو) */
.tk-pos-note.has-note::before { content: ''; position: absolute; top: 3px; inset-inline-end: 3px; width: 8px; height: 8px; border-radius: 50%; background: #e8c25a; border: 1px solid #241d15; }

.tk-pos-line-name { min-width: 0; overflow-wrap: break-word; }
.tk-login-clock { text-align: center; margin: 2px 0 10px; }
.tk-login-clock-time { font-size: 44px; font-weight: 800; color: #d4af37; line-height: 1.1; font-variant-numeric: tabular-nums; text-shadow: 0 2px 12px rgba(212,175,55,.25); }
.tk-login-clock-date { font-size: 15px; font-weight: 600; opacity: .85; margin-top: 2px; }
/* دخول سريع بالـ PIN (شاشة الدخول) */
.tk-quick { display: flex; flex-direction: column; gap: 12px; margin-top: 4px; }
.tk-quick-div { display: flex; align-items: center; gap: 10px; color: #b9a06a; font-size: 13px; }
.tk-quick-div::before, .tk-quick-div::after { content: ''; flex: 1; height: 1px; background: #3a3128; }
.tk-quick-title { text-align: center; font-size: 22px; font-weight: 800; color: #e8c25a; }
.tk-quick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tk-quick-card { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 6px; background: #17130d; border: 1px solid #2e2718; border-radius: 14px; cursor: pointer; color: inherit; font: inherit; }
.tk-quick-card:active { transform: scale(.97); }
.tk-quick-card b { font-size: 13px; }
.tk-quick-card i, .tk-quick-who i { display: block; font-style: normal; font-size: 11px; color: #b9a06a; }
.tk-quick-av { width: 56px; height: 56px; border-radius: 50%; background: #241d12; display: flex; align-items: center; justify-content: center; font-size: 26px; overflow: hidden; flex-shrink: 0; }
.tk-quick-av img { width: 100%; height: 100%; object-fit: cover; }
.tk-quick-who { display: flex; align-items: center; gap: 10px; background: #17130d; border: 1px solid #2e2718; border-radius: 14px; padding: 10px 12px; }
.tk-quick-who .tk-quick-av { width: 44px; height: 44px; font-size: 20px; }
.tk-quick-back { background: none; border: none; color: #e8c25a; font: inherit; font-size: 13px; cursor: pointer; }
.tk-quick-dots { display: flex; justify-content: center; gap: 12px; }
.tk-quick-dots span { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #e8c25a; }
.tk-quick-dots span.on { background: #e8c25a; }
.tk-quick-pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; direction: rtl; }
.tk-quick-pad button { padding: 14px 0; font-size: 20px; font-weight: 700; background: #17130d; border: 1px solid #2e2718; border-radius: 14px; color: #f3ead3; cursor: pointer; font-family: inherit; }
.tk-quick-pad button:active { transform: scale(.96); background: #241d12; }
.tk-quick-pad button:disabled { opacity: .5; }
.tk-quick-note { text-align: center; font-size: 11px; color: #8f8368; line-height: 1.7; }
/* اللوجو مكان كلمة TATAKI ERP بنفس حجم ومكان النص (طلب مارو) */
.tk-login-brandlogo { height: 40px; width: auto; align-self: center; border-radius: 50%; }
/* اللوجو جنب كلمة TATAKI ERP في نفس السطر (طلب مارو 2:39) */
.tk-login-brandrow { display: flex; align-items: center; justify-content: center; gap: 12px; }
.tk-login-brandrow .tk-login-brand { text-align: start; }

/* v206: مقاس واحد متجاوب لكل الشاشات — الموبايل زي ما هو، واللابتوب والديسكتوب بيكبّروا الأيقونات والأزرار والنص بالتناسب (قرار مارو 4 ديسمبر).
   zoom على الصفحة كلها بيكبّر كل حاجة مع بعض (الأيقونة وكابشنها والزرار والنص) من غير ما نلمس أي شاشة لوحدها. */
@media (min-width: 900px)  { html { zoom: 1.2; } }
@media (min-width: 1200px) { html { zoom: 1.35; } }
@media (min-width: 1600px) { html { zoom: 1.6; } }
@media (min-width: 2200px) { html { zoom: 2; } }
@media print { html { zoom: 1 !important; } }

/* v207: شريط الأيقونات على اللابتوب/الديسكتوب: كل الأيقونات نفس المقاس (38) ونفس المسافة (50)، والتكبير من zoom الصفحة بس (مفيش zoom تاني على الأيقونة) */
@media screen and (min-width: 900px) {
 .tk-chat-fab, .tk-ib, .tk-ib-mail, .tk-ib-bell, .tk-ib-req, .tk-ib-upd, .tk-ib-lang, .tk-support-fab, .tk-ai-fab, .tk-br-fab, .tk-sub-fab, .tk-lang-fab { zoom: 1 !important; width: 38px !important; height: 38px !important; top: 6px !important; bottom: auto !important; }
 .tk-support-fab { left: var(--mg) !important; }
 .tk-ai-fab { left: calc(var(--mg) + 50px) !important; }
 .tk-lang-fab { left: calc(var(--mg) + 100px) !important; right: auto !important; }
 .tk-br-fab { left: calc(var(--mg) + 100px) !important; }
 .tk-sub-fab { left: calc(var(--mg) + 150px) !important; }
}
/* v207: كابشن الأيقونات على اللابتوب: 9px عربي على شاشة عادية (مش ريتينا) الحروف بتتفكك وتبان مبعترة، فنكبّر الخط ونثبّت الرسم */
@media screen and (min-width: 900px) {
 .tk-ib::after, .tk-chat-fab::after, .tk-support-fab::after, .tk-ai-fab::after, .tk-br-fab::after, .tk-sub-fab::after, .tk-lang-fab .tk-lang-lb, .tk-ib-lb, .tk-ai-lb, .tk-br-lb, .tk-sub-lb { white-space: normal !important; top: 44px !important; font-size: 12px !important; line-height: 14px !important; width: 58px !important; font-weight: 500 !important; letter-spacing: 0 !important; word-spacing: 0 !important; text-rendering: geometricPrecision; -webkit-font-smoothing: antialiased; font-family: "Segoe UI","Tahoma","Noto Sans Arabic",system-ui,sans-serif !important; text-shadow: none !important; }
}
/* v212: كابشن الأيقونة دايماً فاتح (كان بيورث لون غامق في شاشة الويتر) */
.tk-icobtn[data-tklbl]::after { color: #e6dcc3; }

/* customer update notice */
.tk-upd { position: fixed; inset: 0; z-index: 2147482000; background: transparent; pointer-events: none; display: flex; align-items: flex-start; justify-content: center; padding: 76px 18px 18px; }
.tk-upd-box { pointer-events: auto; box-shadow: 0 8px 30px rgba(0,0,0,.6); width: 100%; max-width: 360px; background: #241d15; border: 1.5px solid #c9a227; border-radius: 16px; padding: 16px; color: #f1e6cc; text-align: center; }
.tk-upd-h { font-size: 18px; font-weight: 800; color: #f6ecd2; margin-bottom: 8px; }
.tk-upd-m { font-size: 14px; color: #cdbf9a; margin-bottom: 12px; }
.tk-upd-r { display: flex; justify-content: center; gap: 18px; }
/* update dialog, required mode: dimmed and centered, only ever shown on the idle home screen */
.tk-upd.tk-upd-req { pointer-events: auto; background: rgba(0,0,0,.72); align-items: center; padding: 18px; }

/* v238: كابشن أزرار الأيقونات جوه .tk-cloud (خلفية صفرا) غامق ومقروء */
.tk-cloud .tk-icobtn[data-tklbl]::after { color: #1a1408; opacity: 1; font-weight: 600; font-size: 11px; }
.tk-cloud .tk-chip.tk-icobtn:disabled[data-tklbl]::after { color: #fff; }
/* v239: أزرار الأيقونات جوه شاشة الدخول/الحضور: خلفية شفافة وكابشن فاتح (كان أصفر على أصفر) */
.tk-login-box .tk-chip.tk-icobtn, .tk-login .tk-chip.tk-icobtn { background: transparent !important; color: #f1e6cc !important; flex: 0 0 auto; min-height: 0 !important; padding: 8px !important; }
.tk-login-box .tk-icobtn[data-tklbl]::after, .tk-login .tk-icobtn[data-tklbl]::after { color: #e6dcc3; opacity: .95; }
.fk-card { max-width: 980px; margin: 0 auto; padding: 16px 14px 60px; color: var(--ds-ink); font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Naskh Arabic", sans-serif; font-size: 16px; line-height: 1.5; }
.fk-h1 { font-size: 22px; margin: 6px 0 12px; color: #e9c25c; }
.fk-h2 { font-size: 20px; margin: 18px 0 10px; color: var(--ds-ink); }
.fk-h3 { font-size: 17px; margin: 14px 0 8px; color: var(--ds-ink); }
.fk-group { margin-bottom: 18px; }
.fk-rows { display: flex; flex-direction: column; border: 1px solid var(--ds-hairline); border-radius: 12px; background: rgba(20,15,10,.7); margin: 8px 0; }
.fk-row { display: flex; align-items: baseline; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--ds-hairline); }
.fk-row:last-child { border-bottom: 0; }
.fk-num { color: var(--ds-ink-4); min-width: 22px; }
.fk-rname { flex: 1; color: var(--ds-ink); }
.fk-detail { display: block; color: var(--ds-ink-4); font-size: 13px; }
.fk-val { font-weight: 600; color: var(--ds-ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.fk-tablewrap { overflow-x: auto; margin: 8px 0; }
.fk-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.fk-table caption { text-align: start; color: var(--ds-ink-4); padding: 4px 0; }
.fk-table th, .fk-table td { padding: 8px 10px; border-bottom: 1px solid var(--ds-hairline); text-align: start; font-variant-numeric: tabular-nums; }
.fk-table thead th { color: var(--ds-ink-4); font-weight: 500; }
.fk-callout { border: 1px solid var(--ds-hairline); border-radius: 12px; padding: 10px 12px; margin: 10px 0; background: rgba(36,29,21,.9); }
.fk-callout strong { display: block; color: #e9c25c; margin-bottom: 2px; }
.fk-warn, .fk-warning, .fk-error, .fk-danger { border-color: #ff9a9a; } .fk-warn strong, .fk-warning strong, .fk-error strong, .fk-danger strong { color: #ff9a9a; }
.fk-ok, .fk-success, .fk-good { border-color: #7fd1a8; } .fk-ok strong, .fk-success strong, .fk-good strong { color: #7fd1a8; }
.fk-caption { color: var(--ds-ink-4); font-size: 13px; margin: 6px 0; }
.fk-p { margin: 8px 0; } .fk-list { padding-inline-start: 22px; margin: 8px 0; }
.fk-btn { font: inherit; min-height: 44px; padding: 8px 16px; border-radius: 10px; border: 1px solid var(--ds-hairline); background: #241d15; color: var(--ds-ink); cursor: pointer; }
.fk-primary { background: #e9c25c; color: #1a1408; border-color: #e9c25c; font-weight: 700; }
.fk-btn:disabled { opacity: .45; cursor: not-allowed; }
.fk-choice { margin: 8px 0; } .fk-clabel { color: var(--ds-ink-2); margin-bottom: 6px; }
.fk-copts { display: flex; flex-wrap: wrap; gap: 8px; }
.fk-chip { font: inherit; min-height: 40px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--ds-hairline); background: #241d15; color: var(--ds-ink); cursor: pointer; }
.fk-chip.fk-on { background: #e9c25c; color: #1a1408; border-color: #e9c25c; font-weight: 700; }
.fk-chart { margin: 10px 0; padding: 10px 12px; border: 1px solid var(--ds-hairline); border-radius: 12px; background: rgba(20,15,10,.7); }
.fk-bar { display: flex; align-items: center; gap: 8px; margin: 6px 0; font-size: 14px; } .fk-bar > span { min-width: 90px; }
.fk-track { flex: 1; height: 10px; background: #3a2f20; border-radius: 6px; overflow: hidden; } .fk-track > div { height: 100%; background: #e9c25c; }
.fk-svg { width: 100%; height: 110px; } .fk-xs { display: flex; flex-wrap: wrap; gap: 10px; font-size: 12px; color: var(--ds-ink-2); } .fk-xs b { margin-inline-start: 4px; } .fk-xs i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-inline-end: 4px; }
.fk-stack { display: flex; height: 16px; border-radius: 8px; overflow: hidden; margin: 6px 0; }
.fk-card input, .fk-card select, .fk-card textarea { font: inherit; }
