/* themar-ui.css — 2026 unified design language (Azure Operational).
   Tokens ONLY from themar-design-system.css. No forks, no new palette.
   Used by x-ui::* components + themar-ui.js. Old pages untouched. */
:root{
  --tu-ease:cubic-bezier(.2,.7,.3,1);
  --tu-shadow:0 1px 2px rgba(20,26,46,.05);
  --tu-shadow-lg:0 10px 24px -8px rgba(20,26,46,.14);
}
/* Border-box is load-bearing: every 100%-width control has padding+border. */
.tu-body *,.tu-body *::before,.tu-body *::after{box-sizing:border-box}
body.tu-body{font-family:'themar sans','IBM Plex Sans Arabic','Tajawal',sans-serif;background:var(--themar-surface);color:var(--themar-text);line-height:1.5;letter-spacing:0}
.tu-num{font-family:'Manrope','IBM Plex Sans Arabic',sans-serif;direction:ltr;unicode-bidi:embed;font-feature-settings:'tnum';font-variant-numeric:tabular-nums}
.tu-main{padding:28px clamp(16px,3vw,40px) 60px;max-width:1440px;width:100%;margin-inline:auto;min-width:0}
/* page head */
.tu-pg-row{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-block-end:12px;flex-wrap:nowrap}
.tu-pg-row> :first-child{min-inline-size:0}
.tu-pg-title{font-size:clamp(22px,2.4vw,26px);font-weight:800;letter-spacing:-.02em;margin:0;line-height:1.2;text-wrap:balance}
.tu-pg-sub{color:var(--themar-text-secondary);font-size:13px;margin:2px 0 0;line-height:1.4}
.tu-pg-sub a{color:var(--themar-primary);text-decoration:none}
.tu-pg-tools{display:flex;gap:8px;flex-wrap:nowrap;align-items:center;margin-inline-start:auto}
@media(max-width:720px){.tu-pg-row{flex-wrap:wrap}.tu-pg-tools{inline-size:100%;flex-wrap:wrap}}
/* buttons */
.tu-btn{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:10px 20px;border-radius:8px;font-weight:700;font-size:14px;font-family:inherit;cursor:pointer;border:1px solid transparent;text-decoration:none;transition:background-color .16s var(--tu-ease),border-color .16s var(--tu-ease),color .16s var(--tu-ease),box-shadow .16s var(--tu-ease),transform .16s var(--tu-ease),filter .16s var(--tu-ease);background:none;color:inherit}
.tu-btn-primary{background:var(--themar-primary);color:var(--themar-on-primary)}
.tu-btn-primary:hover{background:var(--themar-primary-strong);transform:translateY(-1px);box-shadow:var(--tu-shadow-lg)}
.tu-btn-ghost{background:var(--themar-surface-raised);border-color:var(--themar-border);color:var(--themar-text)}
.tu-btn-ghost:hover{border-color:var(--themar-primary);color:var(--themar-primary)}
.tu-btn-success{background:var(--themar-success);color:#fff}
.tu-btn-success:hover{filter:brightness(.93)}
.tu-btn-sm{min-height:38px;padding:7px 14px;font-size:13px}
.tu-btn:disabled{opacity:.55;cursor:not-allowed;transform:none}
.tu-btn .material-symbols-outlined{font-size:19px}
/* pills */
.tu-pill{display:inline-flex;align-items:center;gap:7px;padding:5px 13px;border-radius:999px;font-size:12px;font-weight:700;white-space:nowrap}
.tu-pill .d{width:7px;height:7px;border-radius:50%;background:currentColor}
.tu-pill--info{background:rgba(var(--themar-primary-rgb),.12);color:var(--themar-primary)}
.tu-pill--success{background:rgba(17,135,95,.12);color:var(--themar-success)}
.tu-pill--warning{background:rgba(180,85,8,.13);color:var(--themar-warning)}
.tu-pill--danger{background:rgba(218,42,33,.11);color:var(--themar-danger)}
/* wizard */
.tu-wiz{display:flex;gap:8px;margin-bottom:18px;overflow-x:auto;padding-bottom:4px}
.tu-wstep{flex:1;min-width:190px;display:flex;align-items:center;gap:10px;padding:11px 14px;border:1.5px solid var(--themar-border);background:var(--themar-surface-raised);border-radius:8px;cursor:pointer;font-size:13.5px;font-family:inherit;color:var(--themar-text);text-align:right;transition:border-color .15s var(--tu-ease),box-shadow .15s var(--tu-ease)}
.tu-wstep .n{width:28px;height:28px;border-radius:50%;background:var(--themar-surface-subtle);color:var(--themar-text-secondary);display:grid;place-items:center;font-weight:800;font-size:13px;flex-shrink:0}
.tu-wstep b{display:block;font-size:13.5px}.tu-wstep small{display:block;font-size:11.5px;color:var(--themar-text-muted);font-weight:400}
.tu-wstep.on{border-color:var(--themar-primary);box-shadow:0 0 0 3px rgba(var(--themar-primary-rgb),.12)}
.tu-wstep.on .n{background:var(--themar-primary);color:#fff}
.tu-wstep.done .n{background:var(--themar-success);color:#fff}
.tu-psteps{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:8px;margin-bottom:16px}
.tu-pstep{display:flex;align-items:center;gap:9px;padding:9px 12px;border:1.5px solid var(--themar-border);background:var(--themar-surface-raised);border-radius:8px;cursor:pointer;font-size:12.5px;font-weight:700;color:var(--themar-text-secondary);min-height:48px;font-family:inherit;text-align:right}
.tu-pstep .n{width:24px;height:24px;border-radius:50%;background:var(--themar-surface-subtle);display:grid;place-items:center;font-size:12px;font-weight:800;flex-shrink:0}
.tu-pstep.on{border-color:var(--themar-primary);color:var(--themar-primary)}
.tu-pstep.on .n{background:var(--themar-primary);color:#fff}
.tu-pstep.done .n{background:var(--themar-success);color:#fff}
.tu-errbox{display:none;background:rgba(218,42,33,.07);border:1px solid var(--themar-danger);color:var(--themar-danger);border-radius:8px;padding:12px 16px;margin-bottom:14px;font-size:13.5px;font-weight:600}
.tu-errbox.show{display:block}.tu-errbox ul{margin:6px 20px 0 0;padding:0;font-weight:400}
/* form cards */
.tu-card{background:var(--themar-surface-raised);border:1px solid var(--themar-border);border-radius:12px;box-shadow:var(--tu-shadow);margin-bottom:16px;overflow:hidden}
.tu-card-head{display:flex;gap:12px;align-items:flex-start;padding:18px 20px;border-bottom:1px solid var(--themar-border)}
.tu-card-icon{width:42px;height:42px;border-radius:12px;background:rgba(var(--themar-primary-rgb),.1);color:var(--themar-primary);display:grid;place-items:center;flex-shrink:0}
.tu-card-title{font-size:16px;font-weight:800;letter-spacing:-.01em}
.tu-card-sub{font-size:13px;color:var(--themar-text-secondary)}
.tu-card-body{padding:20px;min-width:0}
.tu-fsec+.tu-fsec{margin-top:22px;padding-top:22px;border-top:1px dashed var(--themar-border)}
.tu-fsec-body{display:grid;gap:14px;grid-template-columns:repeat(2,1fr)}
.tu-fsec-body.cols-3{grid-template-columns:repeat(3,1fr)}
.tu-ff-label{display:block;font-size:13px;font-weight:700;margin-bottom:6px}
.tu-req{color:var(--themar-danger);margin-inline-end:2px}
.tu-ff-control input,.tu-ff-control select,.tu-ff-control textarea{width:100%;min-height:44px;border:1px solid var(--themar-border);border-radius:8px;background:var(--themar-surface);color:var(--themar-text);font-family:inherit;font-size:14px;padding:8px 12px;outline:none;transition:border .15s,box-shadow .15s}
.tu-ff-control textarea{min-height:88px;resize:vertical}
.tu-ff-control input[type="file"]{padding:6px 10px;font-size:13px;cursor:pointer}
.tu-ff-control input[type="file"]::file-selector-button{margin-inline-end:10px;padding:6px 12px;border:1px solid var(--themar-border);border-radius:8px;background:var(--themar-surface-subtle);color:var(--themar-text);font:inherit;font-size:13px;cursor:pointer}
.tu-ff-control input:focus,.tu-ff-control select:focus,.tu-ff-control textarea:focus{border-color:var(--themar-primary);box-shadow:0 0 0 3px rgba(var(--themar-primary-rgb),.12)}
.tu-span-full{grid-column:1/-1}
.tu-hint{display:block;font-size:12px;color:var(--themar-text-muted);margin-top:5px}
.tu-ferr{display:none;align-items:center;gap:6px;font-size:12.5px;font-weight:600;color:var(--themar-danger);margin-top:5px}
.is-invalid input,.is-invalid select,.is-invalid textarea{border-color:var(--themar-danger)}
.is-invalid .tu-ferr{display:flex}
/* switch */
.tu-switch-row{display:flex;gap:22px;flex-wrap:wrap;padding:4px 0}
.tu-switch{display:inline-flex;align-items:center;gap:10px;cursor:pointer;font-size:13.5px;font-weight:600;min-height:44px}
.tu-switch input{appearance:none;width:46px;height:26px;border-radius:999px;background:var(--themar-border-strong);position:relative;cursor:pointer;transition:background .15s;flex-shrink:0;margin:0}
/* A switch inside .tu-ff-control inherits the generic input box (min-height and
   padding), which turns the 46x26 pill into a 46x44 blob. Put it back. */
.tu-ff-control .tu-switch input{width:46px;height:26px;min-height:26px;padding:0}
.tu-switch input:checked{background:var(--themar-primary)}
.tu-switch input::after{content:'';position:absolute;top:3px;inset-inline-start:3px;width:20px;height:20px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.3);transition:transform .15s var(--tu-ease)}
.tu-switch input:checked::after{transform:translateX(-20px)}
.tu-switch input:focus-visible{outline:2px solid var(--themar-primary);outline-offset:2px}
/* photo */
.tu-dropzone{display:flex;align-items:center;gap:14px;border:1.5px dashed var(--themar-border-strong);border-radius:8px;background:var(--themar-surface);padding:16px;cursor:pointer;transition:border .15s;flex-wrap:wrap}
.tu-dropzone:hover{border-color:var(--themar-primary)}
.tu-dz-ic{width:52px;height:52px;border-radius:12px;background:var(--themar-surface-subtle);color:var(--themar-text-muted);display:grid;place-items:center;flex-shrink:0;overflow:hidden}
.tu-dz-ic img{width:100%;height:100%;object-fit:contain;display:none}
.tu-photo-uploader{display:grid;gap:12px;min-width:0;grid-column:1/-1}
.tu-photo-toolbar,.tu-photo-controls,.tu-photo-use-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.tu-photo-filename{font-size:12px;color:var(--themar-text-secondary)}
.tu-photo-use-row{justify-content:space-between;padding:10px 12px;background:var(--themar-surface-subtle);border-radius:8px}
.tu-photo-use-row b,.tu-photo-use-row span{display:block}
.tu-photo-use-row b{font-size:13px}
.tu-photo-use-row div>span{font-size:12px;color:var(--themar-text-secondary);margin-top:3px}
.tu-photo-stage{position:relative;width:min(100%,520px);max-height:340px;margin-inline:auto;display:grid;place-items:center;overflow:hidden;border:1px solid var(--themar-border);border-radius:10px;background:var(--themar-surface-subtle);touch-action:none;cursor:grab}
.tu-photo-stage.dragging{cursor:grabbing}
.tu-photo-stage img{position:absolute;left:50%;top:50%;display:none;max-width:none;max-height:none;object-fit:initial;transform-origin:center;user-select:none;pointer-events:none}
.tu-photo-placeholder{font-size:32px;color:var(--themar-text-muted)}
.tu-photo-stage-label{position:absolute;inset-inline-start:8px;bottom:8px;padding:3px 8px;border-radius:999px;background:rgba(15,22,38,.72);color:#fff;font-size:11px;pointer-events:none}
.tu-photo-fit{display:flex;gap:3px;padding:3px;border-radius:8px;background:var(--themar-surface-subtle)}
.tu-photo-fit button{border:0;border-radius:6px;padding:7px 10px;background:transparent;color:var(--themar-text-secondary);font:inherit;font-size:12px;cursor:pointer}
.tu-photo-fit button.active{background:var(--themar-surface-raised);box-shadow:var(--tu-shadow);color:var(--themar-primary);font-weight:700}
.tu-photo-zoom{display:flex;align-items:center;gap:8px;min-width:190px;font-size:12px;color:var(--themar-text-secondary)}
.tu-photo-zoom input{min-width:70px;flex:1;accent-color:var(--themar-primary)}
.tu-photo-zoom output{min-width:42px;font-weight:700;color:var(--themar-text)}
.tu-photo-help{font-size:12px;color:var(--themar-text-secondary)}
@media(min-width:721px){
  .tu-photo-uploader{grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:start}
  .tu-photo-toolbar,.tu-photo-use-row{grid-column:1/-1}
  .tu-photo-stage{width:100%;max-width:340px;margin-inline:0;justify-self:start}
  .tu-photo-controls{margin-inline:0}
}
@media(max-width:620px){.tu-photo-controls{align-items:stretch}.tu-photo-fit{width:100%}.tu-photo-fit button{flex:1}.tu-photo-zoom{width:100%}.tu-photo-stage{max-height:280px}}
/* save bar */
.tu-savebar{display:flex;align-items:center;gap:12px;background:var(--themar-surface-raised);border:1px solid var(--themar-border);border-radius:12px;padding:12px 18px;margin-top:4px;flex-wrap:wrap}
.tu-savebar--sticky{position:sticky;bottom:16px;box-shadow:var(--tu-shadow-lg);z-index:120}
.tu-savebar-actions{margin-inline-start:auto;display:flex;gap:10px;flex-wrap:wrap}
/* mini tables */
.tu-minicard{border:1px solid var(--themar-border);border-radius:8px;overflow:hidden;min-width:0}
.tu-minicard .tu-scrollx{max-height:340px;overflow:auto}
table.tu-mini{width:100%;border-collapse:collapse;min-width:560px;font-size:13px}
table.tu-mini th{background:var(--themar-surface-subtle);padding:10px 12px;text-align:right;font-size:12px;color:var(--themar-text-secondary);border-bottom:1px solid var(--themar-border);white-space:nowrap;position:sticky;top:0}
table.tu-mini td{padding:8px 12px;border-bottom:1px solid var(--themar-border);vertical-align:middle}
table.tu-mini tr:last-child td{border-bottom:none}
.tu-item-editor table.tu-mini td input[type="number"],
.tu-item-editor table.tu-mini td select{box-sizing:border-box;width:100%;min-width:0;min-height:44px;padding:8px 10px;border:1px solid var(--themar-border-strong);border-radius:8px;background:var(--themar-surface-raised);color:var(--themar-text);font:inherit;transition:border-color .15s var(--tu-ease),background-color .15s var(--tu-ease)}
.tu-item-editor table.tu-mini td input[type="number"]{direction:ltr;text-align:center;font-variant-numeric:tabular-nums}
.tu-item-editor table.tu-mini td input[readonly]{background:var(--themar-surface-subtle);color:var(--themar-text-secondary);cursor:default}
.tu-item-editor table.tu-mini.tu-component-table td:first-child{min-width:132px;font-weight:700;color:var(--themar-text)}
.tu-item-editor table.tu-mini.tu-component-table td:last-child{width:56px;text-align:center}
.tu-item-editor table.tu-mini td .tu-switch{min-height:44px;justify-content:center}
.tu-item-editor table.tu-mini td .mdel{width:44px;height:44px}
.tu-minibar{display:flex;align-items:center;gap:10px;padding:10px 12px;border-bottom:1px solid var(--themar-border);background:var(--themar-surface-subtle);font-weight:800;font-size:13px}
.tu-minibar .sp{margin-inline-start:auto}
.tu-selbar{display:flex;gap:8px;margin-bottom:12px;flex-wrap:wrap}
/* toast (self-contained, no toastr dep) */
.tu-toast{position:fixed;bottom:24px;inset-inline:0;margin-inline:auto;width:fit-content;max-width:min(92vw,480px);background:#141a2e;color:#fff;padding:12px 22px;border-radius:12px;font-weight:600;font-size:14px;opacity:0;transform:translateY(12px);transition:opacity .25s var(--tu-ease),transform .25s var(--tu-ease);z-index:1200;pointer-events:none;text-align:center}
.tu-toast.show{opacity:1;transform:none}
.tu-toast.err{background:#7a1a15}
.tu-spin{width:17px;height:17px;border:2.5px solid rgba(255,255,255,.4);border-top-color:#fff;border-radius:50%;display:none;animation:tu-rot .7s linear infinite}
.loading .tu-spin{display:inline-block}
@keyframes tu-rot{to{transform:rotate(360deg)}}
:focus-visible{outline:2px solid var(--themar-primary);outline-offset:2px}
/* responsive */
@media(max-width:720px){
  .tu-main{padding:18px 14px 60px}
  .tu-fsec-body,.tu-fsec-body.cols-3{grid-template-columns:1fr}
  .tu-card-body{padding:16px}
  .tu-wiz{flex-direction:column;overflow:visible}
  .tu-wstep{min-width:0}
  .tu-savebar-actions{width:100%}
  .tu-savebar-actions .tu-btn{flex:1;justify-content:center}
  .tu-pg-tools{width:100%}
  table.tu-mini{min-width:520px;font-size:12.5px}
}
@media(prefers-reduced-motion:reduce){
  .tu-body *{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}
  .tu-body .tu-spin{animation:none!important}
  .tu-body .tu-toast,.tu-body .tu-toast.show{transform:none;transition:opacity .12s linear!important}
  .tu-body .tu-drop,.tu-body .tu-drop.open{transform:none;transition:opacity .12s linear,visibility 0s linear .12s}
  .tu-body .tu-drop.open{transition:opacity .12s linear,visibility 0s}
  .tu-body .tu-movl,.tu-body .tu-movl.open{transition:opacity .14s linear,visibility 0s linear .14s}
  .tu-body .tu-movl.open{transition:opacity .14s linear,visibility 0s}
  .tu-body .tu-modal,.tu-body .tu-movl.open .tu-modal{transform:none;transition:opacity .14s linear}
}
.tu-shell{display:grid;grid-template-columns:264px 1fr;min-height:100vh}
.tu-col{display:flex;flex-direction:column;min-width:0;min-height:100vh}
/* topbar */
.tu-topbar{position:sticky;top:0;z-index:200;background:var(--themar-surface-raised);border-bottom:1px solid var(--themar-border);padding:10px 24px;display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.tu-iconbtn{width:44px;height:44px;border-radius:8px;border:1px solid var(--themar-border);background:var(--themar-surface-raised);color:var(--themar-text-secondary);display:grid;place-items:center;cursor:pointer;position:relative;transition:background-color .15s,border-color .15s,color .15s,transform .15s;flex-shrink:0}
.tu-iconbtn:hover{border-color:var(--themar-primary);color:var(--themar-primary)}
.tu-btn:active:not(:disabled),.tu-iconbtn:active:not(:disabled),.tu-userbtn:active{transform:scale(.98);transition:transform .1s ease-out}
.tu-crumb{display:flex;align-items:center;gap:6px;color:var(--themar-text-secondary);font-size:13.5px}
.tu-crumb .cur{color:var(--themar-text);font-weight:700}
.tu-search{flex:1;min-width:180px;display:flex;align-items:center;gap:10px;background:var(--themar-surface);border:1px solid var(--themar-border);border-radius:8px;padding:0 14px;min-height:44px;color:var(--themar-text-muted)}
.tu-search input{flex:1;border:none;background:none;color:var(--themar-text);font-family:inherit;font-size:14px;outline:none;min-height:42px;min-width:0}
.tu-search:focus-within{border-color:var(--themar-primary);box-shadow:0 0 0 3px rgba(var(--themar-primary-rgb),.14)}
.tu-userchip{position:relative}
.tu-userbtn{display:flex;align-items:center;gap:10px;background:var(--themar-surface-raised);border:1px solid var(--themar-border);border-radius:999px;padding:5px 5px 5px 14px;cursor:pointer;font-family:inherit}
.tu-userbtn .face{width:34px;height:34px;border-radius:50%;background:linear-gradient(135deg,#0a6cff,#7aa8ff);color:#fff;display:grid;place-items:center;font-weight:800;font-size:13px}
.tu-drop{position:absolute;top:calc(100% + 8px);inset-inline-end:0;min-width:230px;background:var(--themar-surface-raised);border:1px solid var(--themar-border);border-radius:12px;box-shadow:var(--tu-shadow-lg);padding:6px;visibility:hidden;opacity:0;transform:translateY(-5px) scale(.985);transform-origin:top left;pointer-events:none;transition:opacity .14s ease-out,transform .18s cubic-bezier(.22,1,.36,1),visibility 0s linear .18s;z-index:300}
.tu-drop.open{visibility:visible;opacity:1;transform:none;pointer-events:auto;transition:opacity .14s ease-out,transform .18s cubic-bezier(.22,1,.36,1),visibility 0s}
[dir="ltr"] .tu-drop{transform-origin:top right}
/* Keep RTL menus inside the mobile viewport even while closed. */
@media(max-width:720px){
  .tu-topbar #tu-langdrop,.tu-pg-tools .tu-drop{
    inset-inline-start:0;inset-inline-end:auto;
    max-inline-size:calc(100vw - 28px);
  }
}
.tu-drop a,.tu-drop button.mi{display:flex;align-items:center;gap:10px;width:100%;text-align:right;padding:10px 12px;border-radius:8px;color:var(--themar-text-secondary);text-decoration:none;font-size:13.5px;font-weight:600;background:none;border:none;cursor:pointer;font-family:inherit}
.tu-drop a:hover,.tu-drop button.mi:hover{background:var(--themar-surface-subtle);color:var(--themar-text)}
.tu-drop a.danger{color:var(--themar-danger)}
.tu-notifdot{position:absolute;top:10px;inset-inline-start:11px;width:9px;height:9px;border-radius:50%;background:var(--themar-danger);border:2px solid var(--themar-surface-raised)}
/* chips (radio/checkbox pills) */
.chip-row{display:flex;gap:8px;flex-wrap:wrap}
.chip{display:inline-flex;align-items:center;gap:6px;min-height:42px;padding:0 16px;border-radius:999px;border:1.5px solid var(--themar-border);background:var(--themar-surface);color:var(--themar-text-secondary);font-size:13px;font-weight:600;cursor:pointer;transition:background-color .14s var(--tu-ease),border-color .14s var(--tu-ease),color .14s var(--tu-ease)}
.chip input{position:absolute;opacity:0;width:1px;height:1px}
.chip:has(input:checked){border-color:var(--themar-primary);background:rgba(var(--themar-primary-rgb),.09);color:var(--themar-primary)}
.chip:has(input:focus-visible){outline:2px solid var(--themar-primary);outline-offset:2px}
/* mini delete button */
.mdel{width:32px;height:32px;border-radius:8px;border:none;background:none;color:var(--themar-text-muted);display:grid;place-items:center;cursor:pointer}
.mdel:hover,.mdel:focus-visible{background:var(--themar-surface-subtle);color:var(--themar-text)}
/* flat tabs (all unfolded) */
.flattabs,.tu-flattabs{display:flex;gap:8px;flex-wrap:wrap;margin-top:18px;padding-top:18px;border-top:1px dashed var(--themar-border)}
.flattabs button,.tu-flattabs button{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:8px 16px;border-radius:999px;border:1.5px solid var(--themar-border);background:var(--themar-surface);color:var(--themar-text-secondary);font-weight:700;font-size:13px;font-family:inherit;cursor:pointer;transition:background-color .15s var(--tu-ease),border-color .15s var(--tu-ease),color .15s var(--tu-ease)}
.flattabs button:hover,.tu-flattabs button:hover{border-color:var(--themar-primary);color:var(--themar-primary)}
.flattabs button.on,.tu-flattabs button.on{background:var(--themar-primary);border-color:var(--themar-primary);color:#fff}
.tabpane,.tu-tabpane{display:none}
.tabpane.on,.tu-tabpane.on{display:block}
/* list shells: metrics row, table wrapper, row actions, danger action */
/* The admin-lists shells ship these primitives; without them the metric cards
   stack full width and the table wrapper stops scrolling sideways. */
.tu-metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:12px;margin-bottom:18px}
.tu-metrics--balanced{grid-template-columns:repeat(3,minmax(0,1fr))}
@media(max-width:760px){.tu-metrics--balanced{grid-template-columns:repeat(2,minmax(0,1fr))}}
.tu-metrics .tu-metric{margin-bottom:0;padding:14px 16px}
.tu-metric-label{margin:0;font-size:12px;font-weight:600;color:var(--themar-text-muted)}
.tu-metric-value{margin-top:6px;font-size:24px;font-weight:800;line-height:1.1}
.tu-muted{color:var(--themar-text-muted)}
/* metric card footnote and its trend delta */
.tu-metric-foot{margin-top:4px;font-size:12px;color:var(--themar-text-muted)}
.tu-delta{display:inline-flex;align-items:center;gap:2px;font-weight:700}
.tu-delta--up{color:var(--themar-success)}
.tu-delta--down{color:var(--themar-danger)}
/* two column rows: the main panel next to a narrower side panel */
.tu-grid-2-1{display:grid;grid-template-columns:2fr 1fr;gap:16px;align-items:start}
@media (max-width:1100px){.tu-grid-2-1{grid-template-columns:1fr}}
/* label and value rows (payment methods, top items, branches) */
.tu-row-line{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:8px 0;border-bottom:1px solid var(--themar-border)}
.tu-row-line:last-child{border-bottom:none}
.tu-row-line-name{color:var(--themar-text-secondary)}
.tu-row-line-value{font-weight:700;white-space:nowrap}
.tu-row-thumb{display:flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:var(--themar-radius-md);background:var(--themar-surface-raised);color:var(--themar-primary)}

.tu-link{color:var(--themar-primary);text-decoration:none}
.tu-link:hover{text-decoration:underline}
.tu-table-wrap{overflow-x:auto}
/* DataTables runs on six wrapped legacy lists without its own stylesheet, so
   the 2026 shell dresses the generated chrome (length/filter/info/pager). */
.dataTables_wrapper{width:100%}
.dataTables_wrapper .dataTables_length,.dataTables_wrapper .dataTables_filter{margin:10px 0;font-size:12.5px;color:var(--themar-text-muted)}
.dataTables_wrapper .dataTables_length label,.dataTables_wrapper .dataTables_filter label{display:inline-flex;align-items:center;gap:8px;margin:0}
.dataTables_wrapper .dataTables_filter{text-align:end}
.dataTables_wrapper .dataTables_filter input,.dataTables_wrapper .dataTables_length select{min-height:38px;border:1px solid var(--themar-border);border-radius:8px;padding:4px 10px;font:inherit;font-size:13px;background:var(--themar-surface);color:var(--themar-text)}
.dataTables_wrapper .dataTables_info,.dataTables_wrapper .dataTables_paginate{margin-top:12px;font-size:12.5px;color:var(--themar-text-muted)}
.dataTables_wrapper .dataTables_paginate{text-align:end}
.dataTables_wrapper .dataTables_paginate ul.pagination{display:flex;gap:4px;align-items:center;justify-content:flex-end;flex-wrap:wrap;list-style:none;margin:0;padding:0}
.dataTables_wrapper .dataTables_paginate .page-item{list-style:none}
.dataTables_wrapper .dataTables_paginate .page-link,.dataTables_wrapper .paginate_button{display:inline-block;padding:6px 10px;border:1px solid var(--themar-border);border-radius:6px;cursor:pointer;background:var(--themar-surface);color:var(--themar-text);text-decoration:none}
.dataTables_wrapper .dataTables_paginate .page-item.active .page-link,.dataTables_wrapper .paginate_button.current{background:var(--themar-primary);border-color:var(--themar-primary);color:#fff}
.dataTables_wrapper .dataTables_paginate .page-item.disabled .page-link,.dataTables_wrapper .paginate_button.disabled{opacity:.45;cursor:default}
table.dataTable{width:100%;border-collapse:collapse}
table.dataTable thead th{padding:10px 12px;font-size:12.5px;font-weight:700;color:var(--themar-text-muted);border-bottom:1px solid var(--themar-border);text-align:start;white-space:nowrap}
table.dataTable tbody td{padding:10px 12px;border-bottom:1px solid var(--themar-border);font-size:13px;vertical-align:middle}
.tu-row-actions{display:flex;gap:6px;align-items:center}
.tu-btn-delete{background:rgba(218,42,33,.11);color:var(--themar-danger)}
.tu-btn-delete:hover{background:rgba(218,42,33,.18)}
/* table row actions: plain icons with no box, muted at rest and danger on
   hover — one look for every 2026 list, whatever class the screen uses. */
.tu-mini .tu-iconbtn,.tu-mini .mdel{width:44px;height:44px;border:none;background:none;color:var(--themar-text-muted);border-radius:8px}
.tu-mini .tu-iconbtn:hover,.tu-mini .tu-iconbtn:focus-visible,.tu-mini .mdel:hover{background:var(--themar-surface-subtle);color:var(--themar-text)}
.tu-mini .tu-iconbtn .material-symbols-outlined,.tu-mini .mdel .material-symbols-outlined{font-size:20px}
/* multi-select control: the native box needs room per option, otherwise the
   selected row paints over the option text (sections, taxes, users, branches). */
.tu-ff-control select[multiple]:not([data-multiselect-enhanced]){min-height:132px;padding:6px 10px;line-height:1.9}
.tu-ff-control select[multiple]:not([data-multiselect-enhanced]) option{padding:6px 8px;border-radius:4px}
/* assignment widget: a searchable, scrollable list of checkboxes shared by the
   sections, payment type and tax forms. */
.tu-assignment{border:1px solid var(--themar-border);border-radius:12px;overflow:hidden}
.tu-assignment-tools{display:flex;gap:8px;flex-wrap:wrap;padding:12px;background:var(--themar-surface-subtle);border-bottom:1px solid var(--themar-border)}
.tu-assignment-search{flex:1 1 220px;min-height:44px;border:1px solid var(--themar-border);border-radius:8px;padding:0 12px;background:var(--themar-surface);color:var(--themar-text);font:inherit}
.tu-assignment-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));max-height:340px;overflow:auto}
.tu-assignment-item{min-height:48px;display:flex;align-items:center;gap:10px;padding:8px 14px;border-bottom:1px solid var(--themar-border);overflow-wrap:anywhere}
.tu-assignment-item:nth-child(odd){border-inline-end:1px solid var(--themar-border)}
.tu-assignment-empty{padding:18px;text-align:center;color:var(--themar-text-muted)}
@media(max-width:760px){.tu-assignment-list{grid-template-columns:1fr}.tu-assignment-item:nth-child(odd){border-inline-end:0}}
/* checkbox list field (x-ui::checks) */
.tu-checks{border:1px solid var(--themar-border);border-radius:8px;background:var(--themar-surface);padding:4px;max-height:160px;overflow:auto}
.tu-checks-item{display:flex;align-items:center;gap:10px;min-height:40px;padding:4px 10px;border-radius:6px;font-size:13.5px;font-weight:600;cursor:pointer}
.tu-checks-item:hover{background:var(--themar-surface-subtle)}
.tu-checks-item input{flex:0 0 auto;width:18px;height:18px;accent-color:var(--themar-primary)}
.tu-checks-item input:not([type=checkbox],[type=radio]){width:8rem;height:auto;margin-inline-start:auto}
/* modal */
.tu-movl{position:fixed;inset:0;background:rgba(10,15,30,.5);display:grid;place-items:center;visibility:hidden;opacity:0;pointer-events:none;transition:opacity .16s ease-out,visibility 0s linear .16s;z-index:700;padding:16px}
.tu-movl.open{visibility:visible;opacity:1;pointer-events:auto;transition:opacity .16s ease-out,visibility 0s}
.tu-modal{background:var(--themar-surface-raised);border:1px solid var(--themar-border);border-radius:16px;max-width:620px;width:100%;max-height:88vh;overflow:auto;box-shadow:var(--tu-shadow-lg);opacity:0;transform:translateY(8px) scale(.99);transition:opacity .16s ease-out,transform .22s cubic-bezier(.22,1,.36,1)}
.tu-movl.open .tu-modal{opacity:1;transform:none}
.tu-modal-head{display:flex;align-items:center;gap:10px;padding:16px 20px;border-bottom:1px solid var(--themar-border);font-weight:800;font-size:15px}
.tu-modal-head .tu-iconbtn{margin-inline-start:auto}
.tu-modal-body{padding:20px}
.tu-modal-foot{display:flex;gap:10px;justify-content:flex-end;padding:14px 20px;border-top:1px solid var(--themar-border)}
/* AI photo tools */
.aibox{border:1px solid var(--themar-border);border-radius:14px;padding:12px 14px;margin-top:12px;background:var(--themar-surface)}
.aibox h6{font-size:13px;font-weight:800;color:var(--themar-primary);display:flex;align-items:center;gap:6px;margin-bottom:8px}
.aitools{display:flex;gap:6px;flex-wrap:wrap}
.ait{display:inline-flex;align-items:center;gap:5px;min-height:44px;padding:0 12px;border-radius:9px;font-size:12px;font-weight:700;font-family:inherit;cursor:pointer;border:1px solid}
.ait-y{background:#fef3c7;color:#92400e;border-color:#fde68a}
.ait-g{background:#d1fae5;color:#065f46;border-color:#a7f3d0}
.ait-v{background:#ede9fe;color:#5b21b6;border-color:#ddd6fe}
.ait:disabled{background:var(--themar-surface-subtle);color:var(--themar-text-muted);border-color:var(--themar-border);cursor:not-allowed}
/* #aiBusy is display:inline-flex when visible, so [hidden] needs to win. */
.aibox [hidden]{display:none}
.babox{display:none;align-items:center;gap:10px;margin-top:10px;font-size:12px;color:var(--themar-text-muted)}
.babox.show{display:flex}
.babox img{width:90px;height:90px;object-fit:cover;border-radius:10px}
.babox .before{border:2px solid #fca5a5}.babox .after{border:2px solid #6ee7b7}
/* responsive stacked tables: dense table on desktop, labeled cards on mobile (same DOM) */
@media(max-width:720px){
  table.tu-mini.tu-stack{min-width:0}
  table.tu-mini.tu-stack thead{display:none}
  table.tu-mini.tu-stack,table.tu-mini.tu-stack tbody,table.tu-mini.tu-stack tr,table.tu-mini.tu-stack td{display:block;width:100%}
  table.tu-mini.tu-stack tr{border:1px solid var(--themar-border);border-radius:12px;margin-bottom:10px;background:var(--themar-surface-raised);overflow:hidden}
  table.tu-mini.tu-stack td{border:none;border-bottom:1px dashed var(--themar-border);padding:10px 14px}
  table.tu-mini.tu-stack td:last-child{border-bottom:none}
  table.tu-mini.tu-stack td[data-label]::before{content:attr(data-label);display:block;font-size:11.5px;font-weight:700;color:var(--themar-text-muted);margin-bottom:5px}
  table.tu-mini.tu-stack td.no-label::before{display:none}
  .tu-item-editor table.tu-mini.tu-stack td{min-width:0}
  .tu-item-editor table.tu-mini.tu-stack.tu-component-table td[data-label="الاسم"]{background:var(--themar-surface-subtle);font-weight:700}
  .tu-item-editor table.tu-mini.tu-stack td:last-child{width:100%}
  .tu-item-editor table.tu-mini.tu-stack td.no-label{display:flex;justify-content:flex-end}
}
/* content-table polish: zebra, hover, compact custom names */
table.tu-mini tbody tr:nth-child(even) td{background:rgba(20,26,46,.018)}
table.tu-mini tbody tr:hover td{background:var(--themar-surface-hover)}
table.tu-mini td .tu-switch{justify-content:flex-start}
.custom-names{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin-top:6px}
.custom-names[hidden]{display:none}
.custom-names input{min-height:38px;border:1px solid var(--themar-border);border-radius:8px;padding:0 10px;font-family:inherit;font-size:13px;width:100%;background:var(--themar-surface);color:var(--themar-text)}
@media(max-width:720px){.custom-names{grid-template-columns:1fr}}
/* pick lists (batch dialog) */
.pick-row{display:flex;align-items:center;gap:10px;padding:8px 6px;font-size:13.5px;cursor:pointer;border-radius:8px}
.pick-row:hover{background:var(--themar-surface-subtle)}
.pick-row input{width:18px;height:18px;flex-shrink:0;accent-color:var(--themar-primary)}
.pick-group{display:flex;align-items:center;gap:8px;padding:10px 6px 4px;font-weight:800;font-size:13px;color:var(--themar-primary)}
.pick-group .tu-num{background:rgba(var(--themar-primary-rgb),.1);border-radius:999px;padding:1px 9px;font-size:11.5px}
/* stacked child dialogs (pickers inside other dialogs) */
#pickBranchesModal.open,#pickSectionsModal.open,#itemPickModal.open{z-index:720}
/* inline row actions (never stack) */
.tu-actions{display:flex;gap:4px;align-items:center;white-space:nowrap}
.tu-actions>:is(.delete,.danger,.tu-delete-action,.sc-delete),.tu-row-actions>:is(.delete,.danger,.tu-delete-action,.sc-delete){order:1}

/* themar-pagination (data-foot view) — new shell mirror of the .themar-ui scope */
.tu-shell .themar-pagination{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:0;padding:0;list-style:none}
.tu-shell .themar-pagination .page-btn{display:inline-flex;align-items:center;justify-content:center;min-inline-size:40px;min-block-size:40px;color:var(--themar-text-secondary);background:var(--themar-surface-raised);border:1px solid var(--themar-border);border-radius:8px;text-decoration:none;font-size:13px;font-weight:700}
.tu-shell .themar-pagination .page-btn:hover,.tu-shell .themar-pagination .page-btn:focus-visible{color:var(--themar-primary);background:var(--themar-primary-soft);border-color:var(--themar-primary)}
.tu-shell .themar-pagination .page-btn.active,.tu-shell .themar-pagination .page-btn[aria-current="page"]{color:var(--themar-on-primary);background:var(--themar-primary);border-color:var(--themar-primary)}
.tu-shell .themar-pagination .page-btn:disabled,.tu-shell .themar-pagination .page-btn[aria-disabled="true"]{color:var(--themar-text-muted);background:var(--themar-surface-subtle);cursor:not-allowed}
.tu-shell .themar-pagination__icon{font-size:18px}
.tu-shell .themar-pagination__ellipsis{opacity:.6;pointer-events:none}

/* Compact list cells and distinguish destructive row actions. */
.tu-main table.tu-mini:not(.tu-component-table) td,.tu-main table.data-table td,.tu-main table.dataTable td{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-inline-size:18rem}
.tu-main table.tu-mini td:has(.tu-actions),.tu-main table.tu-mini td:has(.tu-row-actions),.tu-main table.data-table td:has(.tu-row-actions),.tu-main table.dataTable td:has(.tu-actions){max-inline-size:none;overflow:visible}
.tu-main table.tu-mini td .em-name,.tu-main table.tu-mini td .cu-name,.tu-main table.tu-mini td a.name_link{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-inline-size:18rem}
.tu-actions .mdel.delete,.tu-actions .mdel.danger,.tu-row-actions .tu-delete-action,.tu-row-actions .sc-delete{color:var(--themar-danger);background:color-mix(in srgb,var(--themar-danger) 7%,transparent)}
.tu-actions .mdel.delete:hover,.tu-actions .mdel.delete:focus-visible,.tu-actions .mdel.danger:hover,.tu-actions .mdel.danger:focus-visible,.tu-row-actions .tu-delete-action:hover,.tu-row-actions .tu-delete-action:focus-visible,.tu-row-actions .sc-delete:hover,.tu-row-actions .sc-delete:focus-visible{color:var(--themar-danger);background:color-mix(in srgb,var(--themar-danger) 14%,transparent)}
.tu-crumb a{color:inherit;text-decoration:none}.tu-crumb a:hover,.tu-crumb a:focus-visible{color:var(--themar-primary);text-decoration:underline}
#provider-settings .pss-btn-configure{text-decoration:none}

.tu-items .data-table td:last-child .themar-row-action--danger,.tu-main .data-table td:last-child .delete{color:var(--themar-danger);background:color-mix(in srgb,var(--themar-danger) 7%,transparent)}
.tu-items .data-table td:last-child .themar-row-action--danger:hover,.tu-items .data-table td:last-child .themar-row-action--danger:focus-visible,.tu-main .data-table td:last-child .delete:hover,.tu-main .data-table td:last-child .delete:focus-visible{color:var(--themar-danger);background:color-mix(in srgb,var(--themar-danger) 14%,transparent)}
.tu-main .data-table td:last-child .edit_branch{color:var(--themar-text-muted);background:transparent}
.tu-main .data-table td:last-child .edit_branch:hover,.tu-main .data-table td:last-child .edit_branch:focus-visible{color:var(--themar-text);background:var(--themar-surface-subtle)}
.tu-sections #sections-table td:first-child .tu-muted{display:inline;margin-inline-start:6px}

/* Preserve the 26px switch track while the input itself has a 40px hit area. */
.tu-employees #employees-table .tu-switch input{block-size:40px;background:transparent}
.tu-employees #employees-table .tu-switch input::before{content:"";position:absolute;inset-inline:0;top:7px;block-size:26px;border-radius:999px;background:var(--themar-border-strong)}
.tu-employees #employees-table .tu-switch input:checked::before{background:var(--themar-primary)}
.tu-employees #employees-table .tu-switch input::after{top:10px}
#provider-settings .pss-marketplace-tabs .pss-tab-count{font-size:12px;color:var(--themar-text-secondary);background:var(--themar-surface-subtle)}
#provider-settings .pss-marketplace-tabs .pss-tab.active .pss-tab-count{color:var(--themar-on-primary);background:var(--themar-primary-strong)}

/* Dense index grids keep their tracks within the mobile content width. */
.tu-main :is(.tu-branchs,.tu-categories,.tu-customers) .kpi-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
@media(max-width:720px){.tu-main :is(.tu-branchs,.tu-categories,.tu-customers) .kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:390px){.tu-main :is(.tu-branchs,.tu-categories,.tu-customers) .kpi-grid .tu-card{min-inline-size:0}}
/* Press feedback begins on pointer down, with no delayed input handler. */
.tu-body :is(.tu-btn,.tu-iconbtn,.mdel,.dt-tab,.fb-reset,.tu-navi,.tu-userbtn):not(:disabled):not([aria-disabled="true"]):active{transform:scale(.97);transition:transform 100ms ease-out}
.tu-body :is(.tu-btn,.tu-iconbtn,.mdel,.dt-tab,.fb-reset,.tu-navi,.tu-userbtn):disabled{transform:none}
/* Popovers remain laid out while closed, allowing a reversed transition. */
.tu-body :is(.tu-drop,.tu-cu-cols-panel,.tu-cat-cols-panel){display:block;visibility:hidden;opacity:0;pointer-events:none;transform:translateY(-4px) scale(.96);transform-origin:top left;transition:opacity 120ms ease-out,transform 120ms ease-out,visibility 0s linear 120ms}
.tu-body :is(.tu-drop,.tu-cu-cols-panel,.tu-cat-cols-panel).open{visibility:visible;opacity:1;pointer-events:auto;transform:translateY(0) scale(1);transition:opacity 160ms ease-out,transform 160ms ease-out,visibility 0s}
[dir="ltr"] .tu-body :is(.tu-drop,.tu-cu-cols-panel,.tu-cat-cols-panel){transform-origin:top right}
@media(max-width:720px){[dir="rtl"] .tu-topbar #tu-langdrop,[dir="rtl"] .tu-pg-tools .tu-drop{transform-origin:top right}}
.tu-body .tu-card-head :is(h2,h3,.tu-card-title){letter-spacing:-.01em}
.tu-body :is(table.tu-mini,table.dataTable,table.data-table) :is(th,td){letter-spacing:0;line-height:1.5}
.tu-body :is(table.tu-mini,table.dataTable,table.data-table) th{font-weight:700;text-transform:none}
.tu-toast{display:flex;align-items:center;justify-content:center;gap:12px}
.tu-toast .tu-toast-undo{border:0;background:transparent;color:var(--themar-on-primary);font:inherit;font-weight:800;text-decoration:underline;cursor:pointer;min-block-size:40px;padding-inline:8px}
@media(prefers-reduced-motion:reduce){
  .tu-body :is(.tu-drop,.tu-cu-cols-panel,.tu-cat-cols-panel),.tu-body :is(.tu-drop,.tu-cu-cols-panel,.tu-cat-cols-panel).open{transform:none;transition:opacity 120ms ease-out,visibility 0s linear 120ms}
  .tu-body :is(.tu-drop,.tu-cu-cols-panel,.tu-cat-cols-panel).open{transition:opacity 120ms ease-out,visibility 0s}
  .tu-body :is(.tu-btn,.tu-iconbtn,.mdel,.dt-tab,.fb-reset,.tu-navi,.tu-userbtn):not(:disabled):not([aria-disabled="true"]):active{transform:none;background-color:var(--themar-surface-hover);transition:background-color 100ms ease-out,color 100ms ease-out}
  .tu-body .tu-btn-primary:not(:disabled):active{background-color:var(--themar-primary-strong)}
}
.tu-toast.show{pointer-events:auto}

/* Baseline for form controls no page stylesheet styles (bare inputs, tm-input,
   tu-ff-input, tm-btn): zero specificity so any page or component rule wins. */
:where(.tu-main,.tu-col>.shell-content,.tu-col>.page,.tu-col>.app-content) :where(input:not([type=checkbox],[type=radio],[type=hidden],[type=range],[type=file],[type=color]),select,textarea){min-height:40px;padding:6px 12px;border:1px solid var(--themar-border);border-radius:8px;background:var(--themar-surface-raised);color:var(--themar-text);font:inherit;font-size:14px}
:where(.tu-main,.tu-col>.shell-content,.tu-col>.page,.tu-col>.app-content) :where(input,select,textarea):where(:focus-visible){outline:2px solid var(--themar-primary);outline-offset:1px}
:where(.tu-main,.tu-col>.shell-content,.tu-col>.page,.tu-col>.app-content) :where(input,select,textarea):where(:disabled){background:var(--themar-surface-subtle);color:var(--themar-text-muted)}
:where(.tu-main,.tu-col>.shell-content,.tu-col>.page,.tu-col>.app-content) :where(button:not([class]),.tm-btn){display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:40px;padding:8px 16px;border:1px solid var(--themar-border);border-radius:8px;background:var(--themar-surface-raised);color:var(--themar-text);font:inherit;font-weight:700;cursor:pointer;transition:background-color 100ms ease-out,border-color 100ms ease-out,color 100ms ease-out,transform 100ms ease-out}
:where(.tu-main,.tu-col>.shell-content,.tu-col>.page,.tu-col>.app-content) :where(button[type=submit]:not([class]),.tm-btn-primary){background:var(--themar-primary);border-color:var(--themar-primary);color:var(--themar-on-primary)}
:where(.tu-main,.tu-col>.shell-content,.tu-col>.page,.tu-col>.app-content) :where(.tm-btn-block){width:100%}

/* Unified 2026: same head, cards and table sizes on every page inside .tu-main */
.tu-main .pg-title-row{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-block-end:12px!important}
.tu-main :is(h1.pg-title,h1.dd-title,h1.tu-perm-page-title,.tu-bulk .tu-pg-title,.tu-items .tu-pg-title){font-size:clamp(22px,2.4vw,26px)!important;font-weight:800!important;letter-spacing:-.02em;line-height:1.2;margin:0!important}
.tu-main .pg-subtitle{font-size:13px!important;margin:2px 0 0!important;line-height:1.4;color:var(--themar-text-secondary)}
.tu-main .card:not(.dataTables_processing):not(.modal-content){background:var(--themar-surface-raised);border:1px solid var(--themar-border);border-radius:12px;box-shadow:none;margin-block-end:12px}
.tu-main .card:not(.dataTables_processing):not(.modal-content)>.card-header{background:transparent;padding:18px 20px;border-bottom:1px solid var(--themar-border)}
.tu-main .card-header :is(.card-title,h4,h5){font-size:16px;font-weight:800;color:var(--themar-text);margin:0}
.tu-main .card:not(.dataTables_processing):not(.modal-content)>.card-body{padding:20px}
.tu-main table.table:not(.dataTable)>thead>tr>th{padding:10px 12px;font-size:12px;font-weight:700}
.tu-main table.table:not(.dataTable)>tbody>tr>td{padding:10px 12px;font-size:13px}
.tu-main table.data-table th{font-size:12px!important}
.tu-main table.data-table td{font-size:13px}
.tu-main .zatca-page .table :is(th,td){white-space:nowrap;vertical-align:middle}
.tu-main .zatca-page .table-responsive{overflow-x:auto}
/* A long breadcrumb shortens instead of pushing the user menu to a second line */
.tu-crumb{min-width:0;overflow:hidden;white-space:nowrap}
.tu-crumb>*{flex-shrink:0}
.tu-crumb>.cur,.tu-crumb>:last-child{flex-shrink:1;min-width:0;overflow:hidden;text-overflow:ellipsis}
@media(min-width:721px){.tu-topbar{flex-wrap:nowrap}.tu-topbar .tu-search{min-width:120px}}
