/* DashboardPack Admindek, preset-1, mapped to UzunlarWEB's existing controls. */
@media screen{
html[data-admindek]{--ad-primary:#4680ff;--ad-link:#3866cc;--ad-primary-soft:#edf2ff;--ad-bg:#f3f5f7;--ad-surface:#fff;--ad-ink:#3e4853;--ad-heading:#1d2630;--ad-muted:#5b6b79;--ad-line:#dbe0e5;--ad-card-shadow:0 1px 20px rgba(69,90,100,.08);--ad-radius:4px;--ad-action:var(--site-accent,var(--ad-primary));--ad-strong:var(--ad-custom-accent,#284eab);--ad-stripe:#f8f9fa}
html[data-admindek][data-theme=dark]{--ad-bg:#131920;--ad-surface:#1d2630;--ad-ink:#dee2e6;--ad-heading:#f3f5f7;--ad-muted:#a9b7d0;--ad-line:#3e4853;--ad-card-shadow:0 1px 16px rgba(0,0,0,.24);--ad-primary-soft:#23385a;--ad-link:#9abaff;--ad-strong:var(--ad-custom-accent,#3763c5);--ad-stripe:#232e3a;color-scheme:dark}
html[data-admindek] body .main-sidebar{font-family:"Segoe UI",Arial,sans-serif}
html[data-admindek] body:is(.layout-fixed,.sidebar-mini,.login-page){color:var(--ad-ink);background-color:var(--ad-bg);font-family:Inter,"Segoe UI",Arial,sans-serif}
html[data-admindek] body :is(.content-wrapper,.main-footer,.login-page,.login-v5-page){background-color:var(--ad-bg)!important;color:var(--ad-ink)}
html[data-admindek] body .main-header{background-color:var(--ad-surface)!important;color:var(--ad-ink);border-color:var(--ad-line);box-shadow:var(--ad-card-shadow)}
html[data-admindek] body .main-header .nav-link{color:var(--ad-muted)}
html[data-admindek] body :is(.content-header h1,.content-header h2,.login-box-msg){color:var(--ad-heading)}
html[data-admindek] body .card:not(.bg-primary):not(.bg-success):not(.bg-warning):not(.bg-danger):not(.bg-info):not(.bg-dark){background-color:var(--ad-surface);color:var(--ad-ink);box-shadow:var(--ad-card-shadow);border-radius:var(--ad-radius)}
html[data-admindek] body :is(.card-header,.card-footer,.modal-header,.modal-footer,.main-footer){border-color:var(--ad-line)}
html[data-admindek] body .card-header:not([class*="bg-"]){background-color:transparent;color:var(--ad-heading)}
html[data-admindek] body .card-title{font-weight:600}
html[data-admindek] body :is(.modal-content,.dropdown-menu){background-color:var(--ad-surface);color:var(--ad-ink);border-color:var(--ad-line);border-radius:var(--ad-radius)}
html[data-admindek] body :is(.btn,.form-control,.custom-select,.form-select,.dropdown-item){border-radius:var(--ad-radius)}
html[data-admindek] body :is(.btn-primary,.bg-primary,.nav-pills .nav-link.active):not(.main-sidebar *){background-color:var(--ad-strong)!important;border-color:var(--ad-strong)!important;color:#fff!important}
html[data-admindek] body .btn-primary:hover:not(:disabled){background-color:var(--ad-link)!important;border-color:var(--ad-link)!important}
html[data-admindek][data-theme=dark] body .btn-primary:hover:not(:disabled){background-color:#254da6!important;border-color:#254da6!important}
html[data-admindek] body .btn-outline-primary:not(:hover):not(:active):not(.active){color:var(--ad-link);border-color:var(--ad-primary)}
html[data-admindek] body .btn-outline-primary:hover:not(:disabled){background-color:var(--ad-strong);border-color:var(--ad-strong);color:#fff}
html[data-admindek] body :is(.form-control,.custom-select,.form-select):not([type=color]){border-color:var(--ad-line);color:var(--ad-ink);background-color:var(--ad-surface)}
html[data-admindek] body :is(.form-control,.custom-select,.form-select):is(:disabled,[readonly]){background-color:var(--ad-bg)}
html[data-admindek] body :is(.form-control,.custom-select,.form-select):focus{border-color:var(--ad-primary);box-shadow:0 0 0 .15rem rgba(70,128,255,.2)}
html[data-admindek] body .text-muted:not(.main-sidebar *){color:var(--ad-muted)!important}
html[data-admindek] body :is(.bg-primary,.bg-dark,.bg-danger,.bg-success,.bg-info) .text-muted:not(.main-sidebar *){color:#f3f5f7!important}
html[data-admindek] body :is(.standard-grid,.fiks-table) thead th,html[data-admindek] body #thead th{background-color:var(--ad-strong)!important;color:#fff!important}
html[data-admindek] body :is(.standard-grid,.fiks-table) :is(th,td){border-color:var(--ad-line)}
html[data-admindek] body :is(.table,.table-hover){color:inherit}
html[data-admindek] body .table-hover tbody tr:hover{background-color:var(--ad-primary-soft)}
html[data-admindek] body .nav-tabs .nav-link.active:not(.main-sidebar *){color:var(--ad-link);border-bottom-color:var(--ad-primary);background-color:var(--ad-surface)}
html[data-admindek] body .grid-pager{border-color:var(--ad-line)}
html[data-admindek] body [role=tablist] button[aria-selected=true]{border-color:var(--ad-primary);color:#fff;background-color:var(--ad-strong)}
html[data-admindek] body :is(.price-tool,.price-action,.pv-run-controls button){border-radius:var(--ad-radius)}
html[data-admindek] body :is(.btn,.drawer-close,.nav-link):focus-visible:not(.main-sidebar *){outline:2px solid var(--ad-primary);outline-offset:2px}
/* Shared loading card: Admindek surfaces and an indeterminate activity bar. */
html[data-admindek] body .app-loading>.overlay{padding:16px;background:rgba(19,25,32,.4)!important;backdrop-filter:blur(2px)}
html[data-admindek][data-theme=dark] body .app-loading>.overlay{background:rgba(8,12,18,.64)!important}
html[data-admindek] body .app-loading .loading-card-v32{box-sizing:border-box;width:min(100%,420px);padding:24px;min-height:0;background:var(--ad-surface);border:1px solid var(--ad-line);border-radius:var(--ad-radius);box-shadow:0 16px 48px rgba(17,24,39,.25)}
html[data-admindek] body .loading-card-v32::before{height:3px;background:var(--ad-primary)}
html[data-admindek] body .loading-card-v32 .loading-top{gap:16px}
html[data-admindek] body .loading-card-v32 .loading-emblem{width:48px;height:48px;flex:0 0 48px;border-radius:var(--ad-radius);background:var(--ad-primary-soft);color:var(--ad-link)}
html[data-admindek] body .loading-card-v32 .loading-copy{min-width:0;text-align:left}
html[data-admindek] body .loading-card-v32 strong{font-size:18px;font-weight:600;color:var(--ad-heading);margin-bottom:4px}
html[data-admindek] body .loading-card-v32 .loading-description{font-size:13px;color:var(--ad-muted);line-height:1.45}
html[data-admindek] body .loading-card-v32 .loading-progress{height:4px;margin-top:20px;background:var(--ad-primary-soft);border-radius:var(--ad-radius)}
html[data-admindek] body .loading-card-v32 .loading-progress i{background:var(--ad-primary);border-radius:var(--ad-radius)}
@media(max-width:400px){html[data-admindek] body .app-loading .loading-card-v32{padding:18px}html[data-admindek] body .loading-card-v32 .loading-top{gap:12px}}
@media(prefers-reduced-motion:reduce){html[data-admindek] body .loading-card-v32 .loading-progress i{animation:none;width:100%;opacity:.65}}
}

/* Keep the full text inside report cells while respecting saved column widths. */
:root { --report-cell-max-width: 22rem; }
@media (max-width: 767px) {
  :root { --report-cell-max-width: 13rem; }
}

html[data-admindek] body table:not(:where(.label-preview, .label-sheet, .print-sheet, .label-preview table, .label-sheet table, .print-sheet table)) :is(th, td) {
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  word-break: normal !important;
  text-overflow: clip !important;
}

html[data-admindek] body table:not(:where(.label-preview, .label-sheet, .print-sheet, .label-preview table, .label-sheet table, .print-sheet table)) :is(th, td):not([colspan]:not([colspan="1"])) {
  max-width: var(--report-cell-max-width);
}

html[data-admindek] body table :is(th, td) :is(.text-nowrap, .text-truncate, .grid-sort-label, .fiks-sort, .firm-sort, a, .badge) {
  min-width: 0;
  max-width: 100%;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  word-break: normal !important;
}

html[data-admindek] body table :is(th, td) .text-truncate {
  overflow: visible !important;
  text-overflow: clip !important;
}
