body {
    background-color: #f8f8f8;
}

#wrapper {
    width: 100%;
}

#page-wrapper {
    padding: 0 15px;
    min-height: 568px;
    background-color: #fff;
}

@media(min-width:768px) {
    #page-wrapper {
        position: inherit;
        margin: 0 0 0 250px;
        padding: 0 30px;
        border-left: 1px solid #e7e7e7;
    }
}

.navbar-top-links {
    margin-right: 0;
	max-height: 50px;
}

.navbar-top-links li {
    display: inline-block;
}

.navbar-top-links li:last-child {
    margin-right: 15px;
}

.navbar-top-links li a {
    padding: 15px;
    min-height: 50px;
}

.navbar-top-links .dropdown-menu li {
    display: block;
}

.navbar-top-links .dropdown-menu li:last-child {
    margin-right: 0;
}

.navbar-top-links .dropdown-menu li a {
    padding: 3px 20px;
    min-height: 0;
}

.navbar-top-links .dropdown-menu li a div {
    white-space: normal;
}

.navbar-top-links .dropdown-messages,
.navbar-top-links .dropdown-tasks,
.navbar-top-links .dropdown-alerts {
    width: 310px;
    min-width: 0;
}

.navbar-top-links .dropdown-messages {
    margin-left: 5px;
}

.navbar-top-links .dropdown-tasks {
    margin-left: -59px;
}

.navbar-top-links .dropdown-alerts {
    margin-left: -123px;
}

.navbar-top-links .dropdown-user {
    right: 0;
    left: auto;
}

.sidebar .sidebar-nav.navbar-collapse {
    padding-right: 0;
    padding-left: 0;
}

.sidebar .sidebar-search {
    padding: 15px;
}

.sidebar ul li {
    border-bottom: 1px solid #e7e7e7;
}

.sidebar ul li a.active {
    background-color: #eee;
}

.sidebar .arrow {
    float: right;
}

.sidebar .fa.arrow:before {
    content: "\f104";
}

.sidebar .active>a>.fa.arrow:before {
    content: "\f107";
}

.sidebar .nav-second-level li,
.sidebar .nav-third-level li {
    border-bottom: 0!important;
}

.sidebar .nav-second-level li a {
    padding-left: 37px;
}

.sidebar .nav-third-level li a {
    padding-left: 52px;
}

@media(min-width:768px) {
    .sidebar {
        z-index: 1;
        position: absolute;
        width: 250px;
        margin-top: 51px;
    }

    .navbar-top-links .dropdown-messages,
    .navbar-top-links .dropdown-tasks,
    .navbar-top-links .dropdown-alerts {
        margin-left: auto;
    }
}

.btn-outline {
    color: inherit;
    background-color: transparent;
    transition: all .5s;
}

.btn-primary.btn-outline {
    color: #428bca;
}

.btn-success.btn-outline {
    color: #5cb85c;
}

.btn-info.btn-outline {
    color: #5bc0de;
}

.btn-warning.btn-outline {
    color: #f0ad4e;
}

.btn-danger.btn-outline {
    color: #d9534f;
}

.btn-primary.btn-outline:hover,
.btn-success.btn-outline:hover,
.btn-info.btn-outline:hover,
.btn-warning.btn-outline:hover,
.btn-danger.btn-outline:hover {
    color: #fff;
}

.chat {
    margin: 0;
    padding: 0;
    list-style: none;
}

.chat li {
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 1px dotted #999;
}

.chat li.left .chat-body {
    margin-left: 60px;
}

.chat li.right .chat-body {
    margin-right: 60px;
}

.chat li .chat-body p {
    margin: 0;
}

.panel .slidedown .glyphicon,
.chat .glyphicon {
    margin-right: 5px;
}

.chat-panel .panel-body {
    height: 350px;
    overflow-y: scroll;
}

.login-panel {
    margin-top: 25%;
}

.flot-chart {
    display: block;
    height: 400px;
}

.flot-chart-content {
    width: 100%;
    height: 100%;
}

.dataTables_wrapper {
    position: relative;
    clear: both;
}

table.dataTable thead .sorting,
table.dataTable thead .sorting_asc,
table.dataTable thead .sorting_desc,
table.dataTable thead .sorting_asc_disabled,
table.dataTable thead .sorting_desc_disabled {
    background: 0 0;
}

table.dataTable thead .sorting_asc:after {
    content: "\f0de";
    float: right;
    font-family: fontawesome;
}

table.dataTable thead .sorting_desc:after {
    content: "\f0dd";
    float: right;
    font-family: fontawesome;
}

table.dataTable thead .sorting:after {
    content: "\f0dc";
    float: right;
    font-family: fontawesome;
    color: rgba(50,50,50,.5);
}

.btn-circle {
    width: 30px;
    height: 30px;
    padding: 6px 0;
    border-radius: 15px;
    text-align: center;
    font-size: 12px;
    line-height: 1.428571429;
}

.btn-circle.btn-lg {
    width: 50px;
    height: 50px;
    padding: 10px 16px;
    border-radius: 25px;
    font-size: 18px;
    line-height: 1.33;
}

.btn-circle.btn-xl {
    width: 70px;
    height: 70px;
    padding: 10px 16px;
    border-radius: 35px;
    font-size: 24px;
    line-height: 1.33;
}

.show-grid [class^=col-] {
    padding-top: 10px;
    padding-bottom: 10px;
    border: 1px solid #ddd;
    background-color: #eee!important;
}

.show-grid {
    margin: 15px 0;
}

.huge {
    font-size: 40px;
}

.panel-green {
    border-color: #5cb85c;
}

.panel-green .panel-heading {
    border-color: #5cb85c;
    color: #fff;
    background-color: #5cb85c;
}

.panel-green a {
    color: #5cb85c;
}

.panel-green a:hover {
    color: #3d8b3d;
}

.panel-red {
    border-color: #d9534f;
}

.panel-red .panel-heading {
    border-color: #d9534f;
    color: #fff;
    background-color: #d9534f;
}

.panel-red a {
    color: #d9534f;
}

.panel-red a:hover {
    color: #b52b27;
}

.panel-yellow {
    border-color: #f0ad4e;
}

.panel-yellow .panel-heading {
    border-color: #f0ad4e;
    color: #fff;
    background-color: #f0ad4e;
}

.panel-yellow a {
    color: #f0ad4e;
}

.panel-yellow a:hover {
    color: #df8a13;
}
.alert {
  top: 0%;
  margin-top: 2%;
  position: fixed;
  left: 20%;
  z-index: 9999;
  width: 60%;
  opacity: 0.9;
   /* box-shadow: 5px 5px 5px #888888; */
}
.required {
    color:red;
	zoom: 1.3;
}
.riskoveTable th{
	text-align: center;
}
.wrapper{
	width: 1100px; 
	margin:0 auto
}

.green .active a,
.green .active a:hover {
    background-color: #3c763d!important;
	color:#fff;
}
.green  a,
.green  a:hover{
	color:#3c763d;
}
.red{
	color: red;
}
.yelow{
	color: orange;
}
.paging_simple_numbers, .dataTables_filter{
	float: right;
}
.tab-close, .tab-close-contact {
  position: absolute;
  top: 0px;
  right: 3px;
  cursor: pointer;
  z-index: 20;
}
.black-lenta{
	height:20px;
}
.dn{
	display: none;
}
.singleImageGallery {
	/* width: 150px; 
	height: 150px; */
	float: left;
	margin-right: 8px;
}
.singleImageGallery img {
	width: 150px;
}
.singleImageGallery div {
	padding-top: 2px;
}
.searchProduct {
	cursor: pointer;
}
.searchProduct:hover {
	background: #eee;
}

span.categoryTooltip a > span {
    padding: 2px;
	width: 108px;
	position: absolute;
	top: -78px;
	left: -84px;
	z-index: 1003;
    opacity: 0;
    visibility: hidden;
	position: absolute;
    font-family: Arial;
	font-size: 12px;
    font-style: normal;
    border-radius: 3px;
    box-shadow: 2px 2px 2px #999;
    -webkit-transition-property: opacity, margin-top, visibility, margin-left;
    -webkit-transition-duration: 0.4s, 0.3s, 0.4s, 0.3s;
    -webkit-transition-timing-function: ease-in-out, ease-in-out, ease-in-out, ease-in-out;
    transition-property: opacity, margin-top, visibility, margin-left;
    transition-duration: 0.4s, 0.3s, 0.4s, 0.3s;
    transition-timing-function: 
	ease-in-out, ease-in-out, ease-in-out, ease-in-out;
}
span.categoryTooltip:hover a > span {
    opacity: 1;
    text-decoration: none;
    visibility: visible;
    overflow: visible;
    display: inline;
}

span.categoryTooltip a > span {
	color: #000000; 
	background: #FBF5E6;
	background: -webkit-linear-gradient(top, #FBF5E6, #FFFFFF);
	background: linear-gradient(top, #FBF5E6, #FFFFFF);	    
	border: 1px solid #CFB57C;	     
}    


.catEditButtonsGroup {
	position: absolute;
	right: 6px;
	top: 3px;
	color: #fff;
}
.catEditButtonsGroup span{
	margin:2px;
}
.catEditButtonsGroup  a{ 
	color: #fff;
}

.categoriesSelect{
	border-radius: 5px;
	border: 1px solid #ccc;
}
.categoriesSelect input.searchInput{
	border: none;
	padding: 5px;
	border-top-left-radius: 5px;
	border-top-right-radius: 5px;
	border-bottom: 1px solid #ccc;
	width: 100%;
	height: 35px;
}
.categoriesSelect .categoriesContent{
	padding: 5px;
	max-height: 300px;
	overflow: auto;
}
.border-top:before {
    border-bottom: 1px solid #eae1e1;
    width: 98%;
    margin: 0 auto;
    margin-top: 0px;
    top: 10px;
    position: relative;
}
.border-bottom:after {
    border-bottom: 1px solid #eae1e1;
    width: 98%;
    margin: 0 auto;
    margin-bottom: 25px;
    top: 7px;
    position: relative;
}

.text-bold {
	font-weight: bold;
}
/* ERP document/payment status labels */
.payment-status-badge,
.document-status-badge,
.table .label {
    display: inline-block;
    min-width: 82px;
    padding: 5px 9px;
    font-size: 12px;
    line-height: 1.1;
    border-radius: 12px;
    text-align: center;
}
#payment-ajax-message {
    margin-bottom: 8px;
    padding: 8px 10px;
}


.product-search-wrapper {
    position: relative;
    display: flex;
    width: 100%;
}

.product-search-wrapper input {
    flex: 1;
    min-width: 0;
}

.product-search-wrapper .product-picker-btn {
    width: 38px;
    flex: 0 0 38px;
    height: 34px;
}

.ui-autocomplete,
.product-search-results {
    z-index: 99999 !important;
    max-height: 420px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 6px 18px rgba(0,0,0,.12);
}

.modal .ui-autocomplete,
.modal .product-search-results {
    z-index: 100000 !important;
}

.table-responsive,
.document-products,
.document-products-wrapper {
    overflow: visible !important;
}



.input-group-btn,
.input-group-append {
    width: auto;
    white-space: nowrap;
}
/* ERP top navigation quick actions */
.erp-topbar { margin-bottom: 0; }
.erp-header-actions { margin-left: 18px; }
.erp-create-dropdown { display: inline-block; }
.erp-create-menu { min-width: 260px; max-height: 520px; overflow-y: auto; }
.erp-create-menu > li > a { padding: 8px 14px; }
.erp-nav-search { position: relative; margin-left: 12px; }
.erp-nav-search .input-group { width: 360px; }
.erp-nav-search-results {
    display: none;
    position: absolute;
    top: 42px;
    left: 0;
    width: 420px;
    z-index: 3000;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,.18);
}
.erp-search-group {
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    background: #f5f7fa;
    color: #7b8794;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
}
.erp-search-item {
    display: flex !important;
    align-items: center;
    gap: 6px;
}
.erp-search-item.active,
.erp-search-item:hover {
    background: #337ab7 !important;
    color: #fff !important;
}
@media (max-width: 991px) {
    .erp-header-actions { margin-left: 10px; }
    .erp-nav-search .input-group { width: 260px; }
    .erp-nav-search-results { width: 320px; }
}

/* ERP documentation/version UI */
.erp-version-footer{position:fixed;right:14px;bottom:8px;z-index:999;background:rgba(255,255,255,.94);border:1px solid #ddd;border-radius:14px;padding:4px 10px;font-size:11px;color:#666;box-shadow:0 2px 8px rgba(0,0,0,.08)}
.erp-version-footer a{color:#337ab7}
.erp-help-page .page-header .label{margin-left:8px}
.erp-doc-menu .list-group-item.active{background:#337ab7;border-color:#337ab7}
.erp-doc-content{font-size:14px;line-height:1.65;color:#333}
.erp-doc-content h1{font-size:26px;margin-top:0;margin-bottom:18px}
.erp-doc-content h2{font-size:20px;margin-top:22px;border-bottom:1px solid #eee;padding-bottom:8px}
.erp-doc-content h3{font-size:16px;margin-top:18px;font-weight:700}
.erp-doc-content ul{padding-left:22px;margin-bottom:16px}
.erp-doc-content pre{background:#f7f7f7;border:1px solid #e5e5e5;border-radius:4px;padding:12px;white-space:pre-wrap}
.erp-doc-content code{background:#f7f7f7;color:#c7254e;padding:2px 4px;border-radius:3px}
.erp-changelog-box{max-height:420px;overflow:auto}
@media (max-width: 767px){.erp-version-footer{position:static;margin:10px 15px;text-align:center}.erp-doc-content h1{font-size:22px}}


/* ERP v1.10 UI Refresh */
body.erp-theme-dark{background:#111827;color:#d1d5db}
body.erp-theme-dark #page-wrapper{background:#111827;color:#d1d5db}
body.erp-theme-dark .panel,body.erp-theme-dark .modal-content,body.erp-theme-dark .dropdown-menu,body.erp-theme-dark .table,body.erp-theme-dark .form-control{background:#1f2937;color:#e5e7eb;border-color:#374151}
body.erp-theme-dark .table>thead>tr>th,body.erp-theme-dark .table>tbody>tr>td{border-color:#374151}
body.erp-theme-dark .table-striped>tbody>tr:nth-of-type(odd){background:#172033}
body.erp-theme-dark .navbar-default{background:#111827;border-color:#374151}
body.erp-theme-dark .navbar-default .navbar-brand,body.erp-theme-dark .navbar-default .navbar-nav>li>a,body.erp-theme-dark .navbar-default .navbar-text{color:#e5e7eb}
body.erp-theme-dark .dropdown-menu>li>a{color:#e5e7eb}
body.erp-theme-dark .dropdown-menu>li>a:hover,body.erp-theme-dark .dropdown-menu>li>a:focus{background:#374151;color:#fff}
body.erp-theme-dark .page-header{border-color:#374151}
body.erp-theme-dark .erp-search-group{background:#111827;color:#9ca3af;border-color:#374151}
body.erp-theme-dark .erp-version-footer{background:rgba(17,24,39,.95);border-color:#374151;color:#9ca3af}

.erp-topbar{border-radius:0;min-height:56px;box-shadow:0 1px 6px rgba(0,0,0,.06)}
.erp-main-sections{margin-left:10px}
.erp-main-sections>li>a{font-weight:600}
.erp-section-menu{min-width:240px}
.erp-section-menu>li>a{padding:9px 14px}
.erp-header-actions{margin-left:10px}
.erp-theme-toggle{margin-left:6px}
.navbar-default .navbar-nav>.open>a,.navbar-default .navbar-nav>.open>a:focus,.navbar-default .navbar-nav>.open>a:hover{background:#eef4fb}
body.erp-theme-dark .navbar-default .navbar-nav>.open>a,body.erp-theme-dark .navbar-default .navbar-nav>.open>a:focus,body.erp-theme-dark .navbar-default .navbar-nav>.open>a:hover{background:#1f2937;color:#fff}
#page-wrapper{margin-left:0!important;border-left:0!important}
.sidebar{display:none!important}

.erp-help-box{position:relative;z-index:1;margin:0 0 15px;padding:10px 14px;border-radius:6px;border:1px solid #d9edf7;border-left:4px solid #5bc0de;background:#f7fbfd;color:#3b5360}
.erp-help-box-title{font-weight:700;margin-bottom:4px;color:#24627a}
.erp-help-box-warning{border-color:#faebcc;border-left-color:#f0ad4e;background:#fffaf0;color:#6b4b12}
body.erp-theme-dark .erp-help-box{background:#172033;border-color:#374151;color:#cbd5e1}
body.erp-theme-dark .erp-help-box-title{color:#93c5fd}
.logContainer{position:fixed;top:62px;right:18px;z-index:1030;max-width:460px;pointer-events:none}.logContainer .alert{pointer-events:auto;box-shadow:0 8px 22px rgba(0,0,0,.12)}
.modal{z-index:1050}.modal-backdrop{z-index:1040}.erp-nav-search-results{z-index:1035}.ui-autocomplete{z-index:1065!important}.erp-product-picker-modal,.product-picker-modal{z-index:1060!important}
.erp-column-tools{display:flex;justify-content:flex-end;gap:8px;margin:8px 0}.erp-columns-panel{display:none;position:absolute;right:0;top:34px;z-index:1042;width:260px;max-height:360px;overflow:auto;background:#fff;border:1px solid #ddd;border-radius:6px;box-shadow:0 10px 28px rgba(0,0,0,.18);padding:10px}.erp-columns-wrap{position:relative;display:inline-block}.erp-columns-panel label{display:block;font-weight:400;margin:5px 0}.erp-columns-panel .erp-columns-actions{border-top:1px solid #eee;margin-top:8px;padding-top:8px}.erp-col-hidden{display:none!important}body.erp-theme-dark .erp-columns-panel{background:#1f2937;border-color:#374151}body.erp-theme-dark .erp-columns-panel .erp-columns-actions{border-color:#374151}
@media(max-width:991px){.erp-main-sections{clear:both;margin-left:0}.erp-nav-search .input-group{width:220px}.navbar-top-links li a{padding-left:8px;padding-right:8px}}


/* ERP v1.10.1 UI patch */
.erp-profile-menu .erp-profile-toggle{display:flex!important;align-items:center;gap:7px;padding-top:10px!important;padding-bottom:10px!important}
.erp-profile-avatar{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:50%;background:#337ab7;color:#fff;font-weight:700;font-size:12px;line-height:12px;letter-spacing:.2px}
.erp-profile-avatar-lg{width:42px;height:42px;font-size:15px;flex:0 0 42px}
.erp-profile-name{max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.erp-profile-dropdown{min-width:245px}
.erp-profile-summary{display:flex !important;gap:10px;align-items:center;padding:10px 14px}
.erp-profile-summary strong{display:block;color:#333}
.erp-profile-summary small{display:block;color:#777;max-width:160px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

.modal-backdrop{z-index:1040!important}
.modal{z-index:1060!important}
.modal-dialog{z-index:1061!important}
.modal-content{position:relative;z-index:1062!important}
body.modal-open .modal{display:block}
.ui-autocomplete,.datepicker,.datetimepicker,.bootstrap-datetimepicker-widget{z-index:1080!important}
.erp-product-picker-modal,.product-picker-modal,#productPickerModal{z-index:1070!important}
.erp-nav-search-results,.dropdown-menu{z-index:1030}

body.erp-theme-dark .navbar-default .navbar-nav>li.active>a,
body.erp-theme-dark .navbar-default .navbar-nav>li>a.active,
body.erp-theme-dark .navbar-default .navbar-nav>.active>a,
body.erp-theme-dark .navbar-default .navbar-nav>.active>a:focus,
body.erp-theme-dark .navbar-default .navbar-nav>.active>a:hover{
    background:#2563eb!important;
    color:#fff!important;
}
body.erp-theme-dark .navbar-default .navbar-nav>li>a:hover,
body.erp-theme-dark .navbar-default .navbar-nav>li>a:focus{
    background:#1f2937!important;
    color:#fff!important;
}
body.erp-theme-dark .erp-profile-summary strong{color:#e5e7eb}
body.erp-theme-dark .erp-profile-summary small{color:#9ca3af}
body.erp-theme-dark .erp-profile-avatar{background:#2563eb;color:#fff}
body.erp-theme-dark .list-group-item,
body.erp-theme-dark .well,
body.erp-theme-dark .breadcrumb{background:#1f2937;color:#e5e7eb;border-color:#374151}
body.erp-theme-dark .btn-default{background:#374151;border-color:#4b5563;color:#e5e7eb}
body.erp-theme-dark .btn-default:hover{background:#4b5563;color:#fff}
body.erp-theme-dark .erp-columns-toggle{background:#374151;border-color:#4b5563;color:#e5e7eb}

#documentForm .erp-column-tools{display:none!important}


/* ERP v1.10.2 UI hotfix */
.erp-topbar.navbar{min-height:50px}
.erp-topbar .navbar-brand{height:50px;line-height:20px;padding-top:15px;padding-bottom:15px}

.erp-topbar .navbar-brand.erp-navbar-brand{
    display:flex;
    align-items:center;
    max-width:220px;
    height:50px;
    padding-top:8px;
    padding-bottom:8px;
    line-height:1;
    overflow:hidden;
}
.erp-navbar-logo{
    display:block;
    max-width:180px;
    max-height:34px;
    width:auto;
    height:auto;
    object-fit:contain;
}
.erp-navbar-brand-text{
    display:inline-block;
    line-height:34px;
}
@media(max-width:767px){
    .erp-topbar .navbar-brand.erp-navbar-brand{max-width:170px}
    .erp-navbar-logo{max-width:140px}
}
.erp-topbar .navbar-nav>li>a{min-height:50px;display:flex;align-items:center;padding-top:0!important;padding-bottom:0!important}
.erp-topbar .navbar-form{margin-top:8px;margin-bottom:8px}
.erp-topbar .navbar-btn{margin-top:8px;margin-bottom:8px}
.erp-topbar .erp-profile-menu .erp-profile-toggle{min-height:50px;padding-top:0!important;padding-bottom:0!important}
.erp-topbar .dropdown-menu{margin-top:0}

body.erp-theme-dark .table-hover>tbody>tr:hover,
body.erp-theme-dark table.table-hover>tbody>tr:hover>td,
body.erp-theme-dark table.table-hover>tbody>tr:hover>th,
body.erp-theme-dark .table>tbody>tr:hover>td,
body.erp-theme-dark .table>tbody>tr:hover>th{
    background-color:#243244!important;
    color:#f9fafb!important;
}
body.erp-theme-dark .table-striped>tbody>tr:nth-of-type(odd)>td,
body.erp-theme-dark .table-striped>tbody>tr:nth-of-type(odd)>th{
    background-color:#111827;
}
body.erp-theme-dark .table-bordered>thead>tr>th,
body.erp-theme-dark .table-bordered>tbody>tr>td,
body.erp-theme-dark .table>thead>tr>th,
body.erp-theme-dark .table>tbody>tr>td{
    border-color:#374151;
}
body.erp-theme-dark .table>thead>tr>th{
    background:#1f2937;
    color:#e5e7eb;
}
body.erp-theme-dark .navbar-default .navbar-nav>li.active>a,
body.erp-theme-dark .navbar-default .navbar-nav>.active>a,
body.erp-theme-dark .navbar-default .navbar-nav>li.open>a{
    background:#2563eb!important;
    color:#fff!important;
}
body.erp-theme-dark .navbar-default .navbar-nav>li.open>a .caret,
body.erp-theme-dark .navbar-default .navbar-nav>li.active>a .caret{border-top-color:#fff;border-bottom-color:#fff}


/* ERP v1.10.3 inventory/credit-control UI polish */
body.erp-theme-dark .panel-heading,
body.erp-theme-dark .panel-default>.panel-heading,
body.erp-theme-dark .panel-primary>.panel-heading,
body.erp-theme-dark .panel-info>.panel-heading,
body.erp-theme-dark .panel-success>.panel-heading,
body.erp-theme-dark .panel-warning>.panel-heading{
    background:#1f2937!important;
    color:#dbeafe!important;
    border-color:#374151!important;
}
body.erp-theme-dark .panel-heading a{color:#bfdbfe!important}
body.erp-theme-dark .table-hover>tbody>tr.danger:hover>td,
body.erp-theme-dark .table-hover>tbody>tr.warning:hover>td{background:#2b384b!important;color:#fff!important}
.product-picker-results td[title], .stock-real-qty[title]{cursor:help}


/* ERP v1.11.2 modal/stock/docs/transfers hotfix */
body.modal-open .modal-backdrop{z-index:1040!important;pointer-events:auto!important}
body.modal-open .modal{z-index:1060!important;pointer-events:auto!important}
body.modal-open .modal .modal-dialog{z-index:1065!important;pointer-events:auto!important}
body.modal-open .modal .modal-content{z-index:1070!important;pointer-events:auto!important}
#sourcePickerModal,#productPickerModal{z-index:1060!important;pointer-events:auto!important}
#sourcePickerModal .modal-dialog,#productPickerModal .modal-dialog{z-index:1065!important;pointer-events:auto!important}
#sourcePickerModal .modal-content,#productPickerModal .modal-content{z-index:1070!important;pointer-events:auto!important}
body.modal-open .erp-nav-search-results,body.modal-open .dropdown-menu:not(.datepicker):not(.datetimepicker){z-index:1030!important}

/* Stock status colors via CSS variables - light + dark themes */
:root,
body.erp-theme-light{
    --stock-status-border:#d1d5db;
    --stock-status-text:#111827;
    --stock-good-bg:#ecfdf5;
    --stock-good-text:#065f46;
    --stock-good-hover-bg:#d1fae5;
    --stock-good-hover-text:#064e3b;
    --stock-low-bg:#fffbeb;
    --stock-low-text:#92400e;
    --stock-low-hover-bg:#fde68a;
    --stock-low-hover-text:#78350f;
    --stock-empty-bg:#fef2f2;
    --stock-empty-text:#991b1b;
    --stock-empty-hover-bg:#fecaca;
    --stock-empty-hover-text:#7f1d1d;
    --stock-good-label-bg:#10b981;
    --stock-low-label-bg:#f59e0b;
    --stock-empty-label-bg:#ef4444;
    --stock-label-text:#fff;
}
body.erp-theme-dark{
    --stock-status-border:#374151;
    --stock-status-text:#f9fafb;
    --stock-good-bg:#102417;
    --stock-good-text:#d1fae5;
    --stock-good-hover-bg:#17351f;
    --stock-good-hover-text:#ecfdf5;
    --stock-low-bg:#2b230f;
    --stock-low-text:#fef3c7;
    --stock-low-hover-bg:#3b3014;
    --stock-low-hover-text:#fff7ed;
    --stock-empty-bg:#2b1518;
    --stock-empty-text:#fee2e2;
    --stock-empty-hover-bg:#3b1d22;
    --stock-empty-hover-text:#fff1f2;
    --stock-good-label-bg:#047857;
    --stock-low-label-bg:#b45309;
    --stock-empty-label-bg:#b91c1c;
    --stock-label-text:#fff;
}
.stock-status-good,
.stock-status-low,
.stock-status-empty{border-color:var(--stock-status-border)!important;color:var(--stock-status-text)!important}
tr.stock-row-good>td{background:var(--stock-good-bg)!important;color:var(--stock-good-text)!important}
tr.stock-row-low>td{background:var(--stock-low-bg)!important;color:var(--stock-low-text)!important}
tr.stock-row-empty>td{background:var(--stock-empty-bg)!important;color:var(--stock-empty-text)!important}
tr.stock-row-good:hover>td{background:var(--stock-good-hover-bg)!important;color:var(--stock-good-hover-text)!important}
tr.stock-row-low:hover>td{background:var(--stock-low-hover-bg)!important;color:var(--stock-low-hover-text)!important}
tr.stock-row-empty:hover>td{background:var(--stock-empty-hover-bg)!important;color:var(--stock-empty-hover-text)!important}
.label-success.stock-status-good{background:var(--stock-good-label-bg)!important;color:var(--stock-label-text)!important}
.label-warning.stock-status-low{background:var(--stock-low-label-bg)!important;color:var(--stock-label-text)!important}
.label-danger.stock-status-empty{background:var(--stock-empty-label-bg)!important;color:var(--stock-label-text)!important}

body.erp-theme-dark .erp-doc-content,
body.erp-theme-dark .erp-help-page,
body.erp-theme-dark .erp-doc-content p,
body.erp-theme-dark .erp-doc-content li{color:#d1d5db!important}
body.erp-theme-dark .erp-doc-content h1,
body.erp-theme-dark .erp-doc-content h2,
body.erp-theme-dark .erp-doc-content h3{color:#f3f4f6!important;border-color:#374151!important}
body.erp-theme-dark .erp-doc-content pre,
body.erp-theme-dark .erp-doc-content code{background:#111827!important;color:#f9fafb!important;border-color:#374151!important}
body.erp-theme-dark .erp-doc-menu .list-group-item{background:#1f2937!important;color:#e5e7eb!important;border-color:#374151!important}
body.erp-theme-dark .erp-doc-menu .list-group-item:hover{background:#243244!important;color:#fff!important}
body.erp-theme-dark .erp-doc-menu .list-group-item.active{background:#2563eb!important;border-color:#2563eb!important;color:#fff!important}

.transfer-items-preview{margin-top:6px;font-size:12px;line-height:1.45}.transfer-items-preview .label{margin-right:4px}.transfer-items-row{background:#f9fbfd}.transfer-items-table{margin:0}.sortable-link{color:inherit;text-decoration:none}.sortable-link:hover{text-decoration:underline}.sort-indicator{font-size:10px;color:#777;margin-left:3px}body.erp-theme-dark .transfer-items-row{background:#111827!important}body.erp-theme-dark .transfer-items-preview{color:#d1d5db}

/* ERP v1.13.2 dark theme polish: Bootstrap 3 leftovers */
body.erp-theme-dark .input-group-addon{
    background:#111827!important;
    color:#d1d5db!important;
    border-color:#374151!important;
}
body.erp-theme-dark .input-group-addon .fa,
body.erp-theme-dark .input-group-addon .glyphicon{
    color:#d1d5db!important;
}

body.erp-theme-dark .table>tfoot>tr>td,
body.erp-theme-dark .table>tfoot>tr>th,
body.erp-theme-dark .table-bordered>tfoot>tr>td,
body.erp-theme-dark .table-bordered>tfoot>tr>th{
    background:#1f2937!important;
    color:#e5e7eb!important;
    border-color:#374151!important;
}
body.erp-theme-dark .table tfoot a{color:#bfdbfe!important}

body.erp-theme-dark .pagination>li>a,
body.erp-theme-dark .pagination>li>span,
body.erp-theme-dark .page-numbers,
body.erp-theme-dark a.page-numbers,
body.erp-theme-dark span.page-numbers{
    background:#1f2937!important;
    color:#e5e7eb!important;
    border-color:#374151!important;
}
body.erp-theme-dark .pagination>li>a:hover,
body.erp-theme-dark .pagination>li>a:focus,
body.erp-theme-dark .pagination>li>span:hover,
body.erp-theme-dark .pagination>li>span:focus,
body.erp-theme-dark .page-numbers:hover,
body.erp-theme-dark .page-numbers:focus{
    background:#374151!important;
    color:#fff!important;
    border-color:#4b5563!important;
}
body.erp-theme-dark .pagination>.active>a,
body.erp-theme-dark .pagination>.active>a:hover,
body.erp-theme-dark .pagination>.active>a:focus,
body.erp-theme-dark .pagination>.active>span,
body.erp-theme-dark .pagination>.active>span:hover,
body.erp-theme-dark .pagination>.active>span:focus,
body.erp-theme-dark .page-numbers.current,
body.erp-theme-dark span.page-numbers.current{
    background:#2563eb!important;
    color:#fff!important;
    border-color:#2563eb!important;
}
body.erp-theme-dark .pagination>.disabled>a,
body.erp-theme-dark .pagination>.disabled>a:hover,
body.erp-theme-dark .pagination>.disabled>a:focus,
body.erp-theme-dark .pagination>.disabled>span,
body.erp-theme-dark .pagination>.disabled>span:hover,
body.erp-theme-dark .pagination>.disabled>span:focus{
    background:#111827!important;
    color:#6b7280!important;
    border-color:#374151!important;
}

body.erp-theme-dark .navbar-top-links .dropdown-menu,
body.erp-theme-dark .navbar-right .dropdown-menu,
body.erp-theme-dark .erp-topbar .dropdown-menu{
    background:#1f2937!important;
    border-color:#374151!important;
}
body.erp-theme-dark .navbar-top-links .dropdown-menu>li>a,
body.erp-theme-dark .navbar-right .dropdown-menu>li>a,
body.erp-theme-dark .erp-topbar .dropdown-menu>li>a{
    color:#e5e7eb!important;
}
body.erp-theme-dark .navbar-top-links .dropdown-menu>li>a:hover,
body.erp-theme-dark .navbar-top-links .dropdown-menu>li>a:focus,
body.erp-theme-dark .navbar-right .dropdown-menu>li>a:hover,
body.erp-theme-dark .navbar-right .dropdown-menu>li>a:focus,
body.erp-theme-dark .erp-topbar .dropdown-menu>li>a:hover,
body.erp-theme-dark .erp-topbar .dropdown-menu>li>a:focus{
    background:#374151!important;
    color:#fff!important;
}
body.erp-theme-dark .navbar-top-links .dropdown-menu .divider,
body.erp-theme-dark .navbar-right .dropdown-menu .divider,
body.erp-theme-dark .erp-topbar .dropdown-menu .divider{
    background-color:#374151!important;
}
body.erp-theme-dark .navbar-top-links .dropdown-menu li,
body.erp-theme-dark .navbar-right .dropdown-menu li,
body.erp-theme-dark .erp-topbar .dropdown-menu li{
    border-color:#374151!important;
}

body.erp-theme-dark .panel-footer,
body.erp-theme-dark .modal-header,
body.erp-theme-dark .modal-footer{
    background:#1f2937!important;
    color:#e5e7eb!important;
    border-color:#374151!important;
}
body.erp-theme-dark .close{color:#f9fafb!important;text-shadow:none!important;opacity:.85}
body.erp-theme-dark .close:hover{opacity:1}

/* ERP v1.13.2 dark theme hotfix: payment totals table + top-right navbar */
body.erp-theme-dark .table,
body.erp-theme-dark .table-bordered{
    border-color:#374151!important;
}
body.erp-theme-dark .table>tbody>tr>th,
body.erp-theme-dark .table-bordered>tbody>tr>th,
body.erp-theme-dark .table-condensed>tbody>tr>th,
body.erp-theme-dark .table-condensed>tbody>tr>td{
    background:#1f2937!important;
    color:#e5e7eb!important;
    border-color:#374151!important;
}
body.erp-theme-dark .table>tbody>tr>th strong,
body.erp-theme-dark .table>tbody>tr>td strong{
    color:#f9fafb!important;
}

body.erp-theme-dark .erp-topbar .nav.navbar-top-links>li>a,
body.erp-theme-dark .erp-topbar .nav.navbar-top-links>li>a:visited{
    background:transparent!important;
    color:#e5e7eb!important;
    border-color:transparent!important;
}
body.erp-theme-dark .erp-topbar .nav.navbar-top-links>li>a .fa,
body.erp-theme-dark .erp-topbar .nav.navbar-top-links>li>a .erp-profile-name{
    color:inherit!important;
}
body.erp-theme-dark .erp-topbar .nav.navbar-top-links>li>a:hover,
body.erp-theme-dark .erp-topbar .nav.navbar-top-links>li>a:focus,
body.erp-theme-dark .erp-topbar .nav.navbar-top-links>li.open>a,
body.erp-theme-dark .erp-topbar .nav.navbar-top-links>li.open>a:hover,
body.erp-theme-dark .erp-topbar .nav.navbar-top-links>li.open>a:focus{
    background:#243244!important;
    color:#fff!important;
    border-color:#374151!important;
}
body.erp-theme-dark .erp-topbar .nav.navbar-top-links .dropdown-menu>li>a,
body.erp-theme-dark .erp-topbar .nav.navbar-top-links .dropdown-user>li>a{
    background:transparent!important;
    color:#e5e7eb!important;
}
body.erp-theme-dark .erp-topbar .nav.navbar-top-links .dropdown-menu>li>a:hover,
body.erp-theme-dark .erp-topbar .nav.navbar-top-links .dropdown-menu>li>a:focus,
body.erp-theme-dark .erp-topbar .nav.navbar-top-links .dropdown-user>li>a:hover,
body.erp-theme-dark .erp-topbar .nav.navbar-top-links .dropdown-user>li>a:focus{
    background:#374151!important;
    color:#fff!important;
}
body.erp-theme-dark .erp-topbar .nav.navbar-top-links .dropdown-menu>.active>a,
body.erp-theme-dark .erp-topbar .nav.navbar-top-links .dropdown-menu>.active>a:hover,
body.erp-theme-dark .erp-topbar .nav.navbar-top-links .dropdown-menu>.active>a:focus{
    background:#2563eb!important;
    color:#fff!important;
}


/* ERP v1.13.3 dark theme polish: payment summary tables + topbar dropdowns */
body.erp-theme-dark table.table,
body.erp-theme-dark table.table-bordered,
body.erp-theme-dark .table-bordered{
    border-color:#374151!important;
}
body.erp-theme-dark .table-bordered>thead>tr>th,
body.erp-theme-dark .table-bordered>thead>tr>td,
body.erp-theme-dark .table-bordered>tbody>tr>th,
body.erp-theme-dark .table-bordered>tbody>tr>td,
body.erp-theme-dark .table-bordered>tfoot>tr>th,
body.erp-theme-dark .table-bordered>tfoot>tr>td,
body.erp-theme-dark .table-condensed>thead>tr>th,
body.erp-theme-dark .table-condensed>thead>tr>td,
body.erp-theme-dark .table-condensed>tbody>tr>th,
body.erp-theme-dark .table-condensed>tbody>tr>td,
body.erp-theme-dark .table-condensed>tfoot>tr>th,
body.erp-theme-dark .table-condensed>tfoot>tr>td{
    border-color:#374151!important;
}
body.erp-theme-dark .table>tbody>tr>th,
body.erp-theme-dark .table-bordered>tbody>tr>th,
body.erp-theme-dark .table-condensed>tbody>tr>th{
    background:#1f2937!important;
    color:#e5e7eb!important;
}
body.erp-theme-dark .table>tbody>tr>td strong,
body.erp-theme-dark .table>tfoot>tr>td strong{
    color:#f9fafb!important;
}

body.erp-theme-dark .navbar-top-links>li>a,
body.erp-theme-dark .navbar-top-links.navbar-right>li>a,
body.erp-theme-dark .erp-topbar .navbar-top-links>li>a,
body.erp-theme-dark .erp-topbar .navbar-right>li>a{
    background:transparent!important;
    color:#e5e7eb!important;
}
body.erp-theme-dark .navbar-top-links>li>a:hover,
body.erp-theme-dark .navbar-top-links>li>a:focus,
body.erp-theme-dark .navbar-top-links>.open>a,
body.erp-theme-dark .navbar-top-links>.open>a:hover,
body.erp-theme-dark .navbar-top-links>.open>a:focus,
body.erp-theme-dark .erp-topbar .navbar-top-links>li>a:hover,
body.erp-theme-dark .erp-topbar .navbar-top-links>li>a:focus,
body.erp-theme-dark .erp-topbar .navbar-top-links>.open>a,
body.erp-theme-dark .erp-topbar .navbar-top-links>.open>a:hover,
body.erp-theme-dark .erp-topbar .navbar-top-links>.open>a:focus,
body.erp-theme-dark .nav .open>a,
body.erp-theme-dark .nav .open>a:hover,
body.erp-theme-dark .nav .open>a:focus{
    background:#1f2937!important;
    color:#fff!important;
    border-color:#374151!important;
}
body.erp-theme-dark .navbar-top-links>li>a .fa,
body.erp-theme-dark .navbar-top-links>li>a .glyphicon,
body.erp-theme-dark .navbar-top-links>li>a:hover .fa,
body.erp-theme-dark .navbar-top-links>li>a:focus .fa,
body.erp-theme-dark .navbar-top-links>.open>a .fa{
    color:inherit!important;
}
body.erp-theme-dark .navbar-top-links>li>a .caret,
body.erp-theme-dark .navbar-top-links>.open>a .caret{
    border-top-color:currentColor!important;
    border-bottom-color:currentColor!important;
}
body.erp-theme-dark .navbar-top-links .dropdown-menu a,
body.erp-theme-dark .navbar-right .dropdown-menu a,
body.erp-theme-dark .erp-profile-dropdown a{
    background:transparent!important;
    color:#e5e7eb!important;
}
body.erp-theme-dark .navbar-top-links .dropdown-menu a:hover,
body.erp-theme-dark .navbar-top-links .dropdown-menu a:focus,
body.erp-theme-dark .navbar-right .dropdown-menu a:hover,
body.erp-theme-dark .navbar-right .dropdown-menu a:focus,
body.erp-theme-dark .erp-profile-dropdown a:hover,
body.erp-theme-dark .erp-profile-dropdown a:focus{
    background:#374151!important;
    color:#fff!important;
}
body.erp-theme-dark .navbar-top-links .dropdown-menu .erp-profile-summary,
body.erp-theme-dark .navbar-right .dropdown-menu .erp-profile-summary{
    background:#1f2937!important;
    color:#e5e7eb!important;
}
body.erp-theme-dark .erp-theme-toggle,
body.erp-theme-dark .navbar-top-links .erp-theme-toggle{
    background:#374151!important;
    border-color:#4b5563!important;
    color:#e5e7eb!important;
}
body.erp-theme-dark .erp-theme-toggle:hover,
body.erp-theme-dark .erp-theme-toggle:focus,
body.erp-theme-dark .navbar-top-links .erp-theme-toggle:hover,
body.erp-theme-dark .navbar-top-links .erp-theme-toggle:focus{
    background:#4b5563!important;
    border-color:#6b7280!important;
    color:#fff!important;
}

body.erp-theme-dark .erp-navbar-logo,
body.erp-theme-dark .erp-brand-logo,
body.erp-theme-dark .erp-header-logo,
body.erp-theme-dark .navbar-brand img {
    filter: grayscale(1) brightness(0) invert(1);
    opacity: .96;
}

/* Dark theme: native date/time input calendar icon */
body.erp-theme-dark input[type="date"],
body.erp-theme-dark input[type="time"],
body.erp-theme-dark input[type="datetime-local"],
body.erp-theme-dark input[type="month"],
body.erp-theme-dark input[type="week"] {
    color-scheme: dark;
}

body.erp-theme-dark input[type="date"]::-webkit-calendar-picker-indicator,
body.erp-theme-dark input[type="time"]::-webkit-calendar-picker-indicator,
body.erp-theme-dark input[type="datetime-local"]::-webkit-calendar-picker-indicator,
body.erp-theme-dark input[type="month"]::-webkit-calendar-picker-indicator,
body.erp-theme-dark input[type="week"]::-webkit-calendar-picker-indicator {
    opacity: .85;
    cursor: pointer;
	color: #e5e7eb;
}

body.erp-theme-dark input[type="date"]::-webkit-calendar-picker-indicator:hover,
body.erp-theme-dark input[type="time"]::-webkit-calendar-picker-indicator:hover,
body.erp-theme-dark input[type="datetime-local"]::-webkit-calendar-picker-indicator:hover,
body.erp-theme-dark input[type="month"]::-webkit-calendar-picker-indicator:hover,
body.erp-theme-dark input[type="week"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

/* ERP v1.15.5 dark theme polish: Bootstrap contextual table rows */
body.erp-theme-dark .table>tbody>tr.active>td,
body.erp-theme-dark .table>tbody>tr.active>th,
body.erp-theme-dark .table>tbody>tr>td.active,
body.erp-theme-dark .table>tbody>tr>th.active{
    background-color:#243244!important;
    color:#e5e7eb!important;
}
body.erp-theme-dark .table>tbody>tr.success>td,
body.erp-theme-dark .table>tbody>tr.success>th,
body.erp-theme-dark .table>tbody>tr>td.success,
body.erp-theme-dark .table>tbody>tr>th.success{
    background-color:#153524!important;
    color:#d1fae5!important;
}
body.erp-theme-dark .table>tbody>tr.info>td,
body.erp-theme-dark .table>tbody>tr.info>th,
body.erp-theme-dark .table>tbody>tr>td.info,
body.erp-theme-dark .table>tbody>tr>th.info{
    background-color:#173247!important;
    color:#dbeafe!important;
}
body.erp-theme-dark .table>tbody>tr.warning>td,
body.erp-theme-dark .table>tbody>tr.warning>th,
body.erp-theme-dark .table>tbody>tr>td.warning,
body.erp-theme-dark .table>tbody>tr>th.warning{
    background-color:#3a2f16!important;
    color:#fde68a!important;
}
body.erp-theme-dark .table>tbody>tr.danger>td,
body.erp-theme-dark .table>tbody>tr.danger>th,
body.erp-theme-dark .table>tbody>tr>td.danger,
body.erp-theme-dark .table>tbody>tr>th.danger{
    background-color:#3b1d23!important;
    color:#fecdd3!important;
}
body.erp-theme-dark .table-hover>tbody>tr.active:hover>td,
body.erp-theme-dark .table-hover>tbody>tr.active:hover>th,
body.erp-theme-dark .table-hover>tbody>tr.success:hover>td,
body.erp-theme-dark .table-hover>tbody>tr.success:hover>th,
body.erp-theme-dark .table-hover>tbody>tr.info:hover>td,
body.erp-theme-dark .table-hover>tbody>tr.info:hover>th,
body.erp-theme-dark .table-hover>tbody>tr.warning:hover>td,
body.erp-theme-dark .table-hover>tbody>tr.warning:hover>th,
body.erp-theme-dark .table-hover>tbody>tr.danger:hover>td,
body.erp-theme-dark .table-hover>tbody>tr.danger:hover>th{
    background-color:#2b384b!important;
    color:#fff!important;
}
body.erp-theme-dark .table>tbody>tr.active a,
body.erp-theme-dark .table>tbody>tr.success a,
body.erp-theme-dark .table>tbody>tr.info a,
body.erp-theme-dark .table>tbody>tr.warning a,
body.erp-theme-dark .table>tbody>tr.danger a{
    color:#bfdbfe!important;
}
body.erp-theme-dark .table>tbody>tr.active .text-muted,
body.erp-theme-dark .table>tbody>tr.success .text-muted,
body.erp-theme-dark .table>tbody>tr.info .text-muted,
body.erp-theme-dark .table>tbody>tr.warning .text-muted,
body.erp-theme-dark .table>tbody>tr.danger .text-muted{
    color:#cbd5e1!important;
}

/* Online shop order view */
.shop-order-product-thumb{width:58px;height:58px;object-fit:contain;background:#fff;border:1px solid #ddd;border-radius:6px;padding:3px}
.shop-order-items>tbody>tr>td{vertical-align:middle!important}
.shop-order-totals .table{margin-bottom:0}
.shop-order-totals .table>tbody>tr>th,.shop-order-totals .table>tbody>tr>td{border-top:0;border-bottom:1px solid #eee}
body.erp-theme-dark .shop-order-product-thumb{background:#111827;border-color:#374151}
body.erp-theme-dark .shop-order-totals .table>tbody>tr>th,body.erp-theme-dark .shop-order-totals .table>tbody>tr>td{border-color:#374151}

/* ERP v1.20.5 stock overview refinements */
.erp-stock-table .stock-total-cell{font-size:14px;white-space:nowrap}
.erp-stock-table .supplier-price-cell{white-space:nowrap;cursor:help}
.erp-stock-table td.stock-cell-good{background:var(--stock-good-hover-bg)!important;color:var(--stock-good-hover-text)!important;font-weight:700}
.erp-stock-table td.stock-cell-low{background:var(--stock-low-hover-bg)!important;color:var(--stock-low-hover-text)!important;font-weight:700}
.erp-stock-table td.stock-cell-empty{background:var(--stock-empty-hover-bg)!important;color:var(--stock-empty-hover-text)!important;font-weight:700}
.erp-stock-table tr:hover td.stock-cell-good{background:var(--stock-good-label-bg)!important;color:var(--stock-label-text)!important}
.erp-stock-table tr:hover td.stock-cell-low{background:var(--stock-low-label-bg)!important;color:var(--stock-label-text)!important}
.erp-stock-table tr:hover td.stock-cell-empty{background:var(--stock-empty-label-bg)!important;color:var(--stock-label-text)!important}
.stock-legend-box{margin-bottom:12px;padding:8px 12px;font-size:12px}
.stock-filter-row .form-control{margin-bottom:4px}

/* ERP v1.22.8 ACL UX */
.acl-page{padding-bottom:82px}
.acl-page-head{display:flex;justify-content:space-between;align-items:flex-end;gap:20px}
.acl-page-subtitle{margin-top:-12px;margin-bottom:22px;font-size:13px}
.acl-role-panel{border:0;box-shadow:0 1px 3px rgba(0,0,0,.08);margin-bottom:14px}
.acl-role-panel .panel-body{padding:18px}
.acl-role-form label{font-size:12px;text-transform:uppercase;letter-spacing:.04em;color:#6b7280;margin-bottom:7px}
.acl-role-form .help-block{margin-bottom:0;font-size:12px}
.acl-role-row{display:flex;align-items:center;flex-wrap:wrap}
.acl-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(110px,1fr));gap:10px}
.acl-summary-card{border:1px solid #e5e7eb;border-radius:8px;padding:12px 14px;background:#fafafa;min-height:72px;display:flex;flex-direction:column;justify-content:center}
.acl-summary-value{font-size:21px;font-weight:700;line-height:1.1;color:#1f2937}
.acl-summary-label{font-size:11px;color:#6b7280;margin-top:5px}
.acl-summary-risk.has-risk{border-color:#f3c7c7;background:#fff7f7}
.acl-summary-risk.has-risk .acl-summary-value{color:#b91c1c}
.acl-toolbar{position:sticky;top:51px;z-index:20;margin-bottom:18px;box-shadow:0 2px 8px rgba(0,0,0,.07)}
.acl-toolbar .panel-body{padding:11px 12px}
.acl-toolbar-actions .btn{margin-left:4px;margin-bottom:4px}
.acl-toolbar-note{font-size:11px;color:#6b7280;margin-top:7px;padding-top:7px;border-top:1px solid #f0f0f0}
.acl-toolbar-note i{margin-right:5px}
.acl-search-wrap .input-group-addon{background:#fff}
.acl-section{margin-bottom:24px}
.acl-section-title{display:flex;align-items:center;gap:11px;margin:0 0 10px 2px}
.acl-section-icon{width:34px;height:34px;border-radius:8px;background:#edf4fb;color:#337ab7;display:inline-flex;align-items:center;justify-content:center;font-size:15px;flex:0 0 auto}
.acl-section-title h3{font-size:15px;margin:0 0 2px;font-weight:700}
.acl-section-title p{font-size:11px;color:#6b7280;margin:0}
.acl-module-grid{display:flex;flex-wrap:wrap}
.acl-module-col{display:flex}
.acl-module{width:100%;border-color:#e5e7eb;border-radius:8px;overflow:hidden;box-shadow:0 1px 2px rgba(0,0,0,.04);transition:border-color .15s,box-shadow .15s}
.acl-module.has-access{border-color:#c9dff1}
.acl-module.is-open{box-shadow:0 4px 13px rgba(0,0,0,.07)}
.acl-module-heading{padding:0!important;background:#fff!important;display:flex;align-items:stretch;min-height:70px;border-color:#edf0f2!important}
.acl-module-open{border:0;background:transparent;text-align:left;display:flex;align-items:center;gap:10px;flex:1;padding:11px 12px;min-width:0;color:inherit}
.acl-module-open:hover,.acl-module-open:focus{background:#f8fafc;outline:0}
.acl-module-icon{width:36px;height:36px;border-radius:8px;background:#f3f4f6;color:#4b5563;display:flex;align-items:center;justify-content:center;flex:0 0 auto}
.acl-module.has-access .acl-module-icon{background:#eaf4fb;color:#337ab7}
.acl-module-title-wrap{min-width:0;flex:1;display:flex;flex-direction:column}
.acl-module-title{font-size:13px;color:#1f2937}
.acl-module-title-wrap small{display:block;font-size:10px;color:#7b8490;font-weight:400;margin-top:3px;white-space:normal;line-height:1.3}
.acl-module-count{font-size:11px;font-weight:700;background:#f3f4f6;color:#6b7280;padding:3px 7px;border-radius:10px;white-space:nowrap}
.acl-module.has-access .acl-module-count{background:#eaf4fb;color:#27648f}
.acl-module-chevron{font-size:11px;color:#9ca3af;transition:transform .18s}
.acl-module.is-open .acl-module-chevron{transform:rotate(180deg)}
.acl-module-toggle-wrap{display:flex;align-items:center;gap:6px;border-left:1px solid #edf0f2;padding:0 12px;margin:0;white-space:nowrap;font-size:11px;font-weight:600;color:#4b5563;cursor:pointer;background:#fafafa}
.acl-module-toggle-wrap:hover{background:#f3f6f8}
.acl-module-toggle-wrap input{margin:0}
.acl-module-body{padding:8px 12px 10px!important;background:#fff}
.acl-action-list{display:grid;grid-template-columns:1fr;gap:2px}
.acl-action-row{display:flex;align-items:flex-start;gap:9px;margin:0!important;padding:8px 8px;border-radius:6px;font-weight:400;cursor:pointer;border:1px solid transparent}
.acl-action-row:hover{background:#f8fafc;border-color:#edf0f2}
.acl-action-row.acl-risk-danger{background:#fffafa}
.acl-action-row.acl-risk-warning{background:#fffdf6}
.acl-check{padding-top:2px;flex:0 0 auto}
.acl-check input{margin:0}
.acl-action-main{min-width:0;flex:1;display:flex;flex-direction:column}
.acl-action-label{font-size:12px;font-weight:600;color:#374151;line-height:1.35}
.acl-action-main small{font-size:10px;color:#7b8490;margin-top:2px;font-weight:400;line-height:1.35}
.acl-action-badges{display:flex;gap:4px;align-items:center;flex:0 0 auto;padding-top:1px}
.acl-action-badges .label{font-size:9px;font-weight:600;padding:3px 5px}
.acl-tech-code{display:none;margin-top:4px;width:max-content;max-width:100%;font-size:9px;color:#6b7280;background:#f3f4f6;border:0;padding:2px 5px}
#acl-toggle-technical.active{background:#e9f2f9;border-color:#b9d2e6;color:#245b82}
#acl-toggle-technical.active ~ *{}
.acl-page.acl-show-tech .acl-tech-code{display:inline-block}
.acl-module-footnote{font-size:10px;color:#9ca3af;border-top:1px solid #f3f4f6;margin-top:6px;padding-top:7px}
.acl-empty-state{text-align:center;padding:38px 20px;border:1px dashed #d1d5db;border-radius:8px;color:#6b7280;margin-bottom:20px}
.acl-empty-state i{display:block;font-size:22px;margin-bottom:8px;color:#9ca3af}
.acl-empty-state strong,.acl-empty-state span{display:block}
.acl-empty-state span{font-size:11px;margin-top:4px}
.acl-savebar{position:fixed;left:0;right:0;bottom:0;z-index:35;background:rgba(255,255,255,.97);border-top:1px solid #e5e7eb;box-shadow:0 -3px 12px rgba(0,0,0,.06);padding:9px 24px;display:flex;align-items:center;justify-content:space-between;gap:15px}
.acl-save-status{display:flex;align-items:center;gap:8px;font-size:12px;color:#6b7280}
.acl-save-dot{width:8px;height:8px;border-radius:50%;background:#9ca3af;display:inline-block}
.acl-savebar.is-dirty .acl-save-dot{background:#f0ad4e;box-shadow:0 0 0 3px rgba(240,173,78,.15)}
.acl-savebar.is-dirty #acl-save-status-text{color:#8a5d14;font-weight:600}
.acl-save-role{margin-right:12px;font-size:11px}
@media(max-width:991px){.acl-summary-grid{grid-template-columns:repeat(2,1fr);margin-top:12px}.acl-toolbar{position:static}.acl-toolbar-actions{text-align:left!important;margin-top:9px}.acl-module-toggle-wrap span{display:none}.acl-savebar{left:0}.acl-role-row{display:block}}
@media(max-width:600px){.acl-summary-grid{grid-template-columns:1fr 1fr}.acl-module-col{width:100%}.acl-module-heading{min-height:60px}.acl-module-toggle-wrap{padding:0 10px}.acl-savebar{padding:8px 12px}.acl-save-status{font-size:10px}.acl-action-badges{flex-direction:column;align-items:flex-end}}
body.erp-theme-dark .acl-role-panel,body.erp-theme-dark .acl-toolbar,body.erp-theme-dark .acl-module,body.erp-theme-dark .acl-module-heading,body.erp-theme-dark .acl-module-body{background:#1f2937!important;border-color:#374151!important;color:#e5e7eb}
body.erp-theme-dark .acl-summary-card{background:#18212f;border-color:#374151}
body.erp-theme-dark .acl-summary-value,body.erp-theme-dark .acl-module-title,body.erp-theme-dark .acl-action-label{color:#e5e7eb}
body.erp-theme-dark .acl-summary-label,body.erp-theme-dark .acl-role-form label,body.erp-theme-dark .acl-section-title p,body.erp-theme-dark .acl-module-title-wrap small,body.erp-theme-dark .acl-action-main small,body.erp-theme-dark .acl-toolbar-note{color:#9ca3af}
body.erp-theme-dark .acl-section-icon,body.erp-theme-dark .acl-module.has-access .acl-module-icon,body.erp-theme-dark .acl-module.has-access .acl-module-count{background:#173247;color:#bfdbfe}
body.erp-theme-dark .acl-module-icon,body.erp-theme-dark .acl-module-count,body.erp-theme-dark .acl-module-toggle-wrap,body.erp-theme-dark .acl-tech-code{background:#263244;color:#cbd5e1;border-color:#374151}
body.erp-theme-dark .acl-module-open:hover,body.erp-theme-dark .acl-module-open:focus,body.erp-theme-dark .acl-module-toggle-wrap:hover,body.erp-theme-dark .acl-action-row:hover{background:#263244}
body.erp-theme-dark .acl-action-row.acl-risk-danger{background:#321f25}
body.erp-theme-dark .acl-action-row.acl-risk-warning{background:#312b1c}
body.erp-theme-dark .acl-action-row:hover{border-color:#3f4d60}
body.erp-theme-dark .acl-savebar{background:rgba(17,24,39,.97);border-color:#374151}
body.erp-theme-dark .acl-search-wrap .input-group-addon{background:#111827;border-color:#4b5563;color:#d1d5db}
body.erp-theme-dark .acl-summary-risk.has-risk{background:#321f25;border-color:#7f1d1d}

/* ERP v1.22.9 Dynamic ACL roles */
.acl-system-role-note{display:flex;align-items:center;gap:10px;padding:10px 12px;margin:-4px 0 16px;border:1px solid #d9e8f5;border-radius:8px;background:#f6fbff}
.acl-system-role-icon{width:34px;height:34px;display:flex;align-items:center;justify-content:center;border-radius:50%;background:#337ab7;color:#fff;flex:0 0 auto}
.acl-system-role-copy{display:flex;flex-direction:column;min-width:0;flex:1}
.acl-system-role-copy strong{font-size:13px;color:#1f2937}
.acl-system-role-copy span{font-size:11px;color:#6b7280;margin-top:2px}
.acl-role-manager{border-left:1px solid #edf0f2;padding-left:18px;min-height:82px;display:flex;flex-direction:column;justify-content:center}
.acl-role-manager-title{font-size:12px;text-transform:uppercase;letter-spacing:.04em;color:#6b7280;font-weight:600;margin-bottom:8px}
.acl-role-actions{display:flex;gap:6px;flex-wrap:wrap}
.acl-role-meta{display:flex;gap:14px;flex-wrap:wrap;color:#7b8490;font-size:11px;margin-top:5px}
.acl-role-meta i{margin-right:4px}
.acl-role-delete-help{margin:7px 0 0!important;font-size:10px!important}
.acl-summary-grid-role{margin-top:16px;padding-top:16px;border-top:1px solid #edf0f2}
.acl-empty-role{margin-top:16px}
#aclRoleCreateModal .help-block{font-size:11px}
@media(max-width:991px){.acl-role-manager{border-left:0;border-top:1px solid #edf0f2;padding:14px 0 0;margin-top:14px;min-height:0}.acl-summary-grid-role{margin-top:14px}}
body.erp-theme-dark .acl-system-role-note{background:#17263a;border-color:#294a68}
body.erp-theme-dark .acl-system-role-copy strong{color:#e5e7eb}
body.erp-theme-dark .acl-system-role-copy span,body.erp-theme-dark .acl-role-manager-title,body.erp-theme-dark .acl-role-meta{color:#9ca3af}
body.erp-theme-dark .acl-role-manager,body.erp-theme-dark .acl-summary-grid-role{border-color:#374151}

/* ERP v1.22.16 Dark Theme Compatibility for modern admin UI */
body.erp-theme-dark{
    --erp-dark-surface:#1f2937;
    --erp-dark-surface-alt:#18212f;
    --erp-dark-surface-soft:#263244;
    --erp-dark-surface-deep:#111827;
    --erp-dark-border:#374151;
    --erp-dark-border-strong:#4b5563;
    --erp-dark-text:#e5e7eb;
    --erp-dark-muted:#9ca3af;
    --erp-dark-accent:#60a5fa;
    --erp-dark-accent-soft:#173247;
}
body.erp-theme-dark .text-muted{color:var(--erp-dark-muted)!important}
body.erp-theme-dark .input-group-addon{
    background:var(--erp-dark-surface-deep);
    border-color:var(--erp-dark-border-strong);
    color:#d1d5db;
}
body.erp-theme-dark .form-control:focus{
    border-color:#3b82f6;
    box-shadow:0 0 0 2px rgba(59,130,246,.18);
}
body.erp-theme-dark .form-control::placeholder{color:#6b7280}
body.erp-theme-dark select.form-control option{background:var(--erp-dark-surface);color:var(--erp-dark-text)}
body.erp-theme-dark .close{color:#f9fafb;text-shadow:none;opacity:.72}
body.erp-theme-dark .close:hover,body.erp-theme-dark .close:focus{color:#fff;opacity:1}
body.erp-theme-dark hr{border-color:var(--erp-dark-border)}

/* Settings UX */
body.erp-theme-dark .settings-overview-card{
    background:var(--erp-dark-surface-alt);
    border-color:var(--erp-dark-border);
    box-shadow:0 1px 2px rgba(0,0,0,.18);
}
body.erp-theme-dark .settings-overview-card .ico{
    background:var(--erp-dark-surface-soft);
    color:#bfdbfe;
}
body.erp-theme-dark .settings-overview-card .k,
body.erp-theme-dark .settings-section-title p,
body.erp-theme-dark .settings-page .help-block{color:var(--erp-dark-muted)}
body.erp-theme-dark .settings-overview-card .v,
body.erp-theme-dark .settings-section-title h3,
body.erp-theme-dark .settings-panel-title .title-main,
body.erp-theme-dark .settings-subcard-title{color:var(--erp-dark-text)}
body.erp-theme-dark .settings-panel-title .title-main i{color:#93c5fd}
body.erp-theme-dark .settings-nav{
    background:rgba(24,33,47,.97);
    border-color:var(--erp-dark-border);
    box-shadow:0 2px 7px rgba(0,0,0,.22);
}
body.erp-theme-dark .settings-nav a{color:#cbd5e1}
body.erp-theme-dark .settings-nav a:hover,
body.erp-theme-dark .settings-nav a:focus{
    background:var(--erp-dark-surface-soft);
    color:#bfdbfe;
}
body.erp-theme-dark .settings-section-title{border-color:var(--erp-dark-border)}
body.erp-theme-dark .settings-page .panel{border-color:var(--erp-dark-border);box-shadow:0 1px 2px rgba(0,0,0,.16)}
body.erp-theme-dark .settings-subcard{
    background:var(--erp-dark-surface-alt);
    border-color:var(--erp-dark-border);
}
body.erp-theme-dark .settings-editor-panel{border-color:#355a78!important;box-shadow:0 3px 12px rgba(0,0,0,.25)!important}
body.erp-theme-dark .settings-editor-close{color:var(--erp-dark-muted)}
body.erp-theme-dark .settings-editor-close:hover{color:#fff}
body.erp-theme-dark .settings-page .table>thead>tr>th{background:var(--erp-dark-surface-deep)!important;color:#cbd5e1!important}

/* Nomenclatures UX */
body.erp-theme-dark .nom-summary-card,
body.erp-theme-dark .nom-copy-box,
body.erp-theme-dark .nom-card{
    background:var(--erp-dark-surface);
    border-color:var(--erp-dark-border);
    color:var(--erp-dark-text);
    box-shadow:0 2px 8px rgba(0,0,0,.20);
}
body.erp-theme-dark .nom-summary-icon{
    background:var(--erp-dark-surface-soft);
    color:#bfdbfe;
}
body.erp-theme-dark .nom-summary-card small,
body.erp-theme-dark .nom-card-head small,
body.erp-theme-dark .nom-usage,
body.erp-theme-dark .supplier-partner-muted,
body.erp-theme-dark .nom-copy-help{color:var(--erp-dark-muted)!important}
body.erp-theme-dark .nom-toolbar{
    background:rgba(24,33,47,.97);
    border-color:var(--erp-dark-border);
    box-shadow:0 2px 8px rgba(0,0,0,.24);
}
body.erp-theme-dark .nom-search-wrap>i{color:var(--erp-dark-muted)}
body.erp-theme-dark .nom-quick-nav a{
    background:var(--erp-dark-surface);
    border-color:var(--erp-dark-border-strong);
    color:#d1d5db;
}
body.erp-theme-dark .nom-quick-nav a:hover,
body.erp-theme-dark .nom-quick-nav a:focus{
    background:var(--erp-dark-surface-soft);
    border-color:#64748b;
    color:#fff;
}
body.erp-theme-dark .nom-card-head{
    background:var(--erp-dark-surface-alt);
    border-color:var(--erp-dark-border);
}
body.erp-theme-dark .nom-card-head h3,
body.erp-theme-dark .nom-card-head h3 i{color:var(--erp-dark-text)}
body.erp-theme-dark .nom-editor{
    background:var(--erp-dark-surface-alt);
    border-color:#3b4b60;
}
body.erp-theme-dark .nom-editor-title,
body.erp-theme-dark .nom-editor label{color:#d1d5db}
body.erp-theme-dark .nom-editor-actions{border-color:var(--erp-dark-border)}
body.erp-theme-dark .nom-table>thead>tr>th{
    background:var(--erp-dark-surface-deep)!important;
    color:#cbd5e1!important;
    border-color:var(--erp-dark-border)!important;
}
body.erp-theme-dark .supplier-partner-results{
    background:var(--erp-dark-surface);
    border-color:var(--erp-dark-border-strong);
    box-shadow:0 6px 18px rgba(0,0,0,.36);
}
body.erp-theme-dark .supplier-partner-item{
    color:var(--erp-dark-text);
    border-color:var(--erp-dark-border);
}
body.erp-theme-dark .supplier-partner-item:hover{
    background:var(--erp-dark-surface-soft);
    color:#fff;
}

/* ACL final dark-theme gaps */
body.erp-theme-dark .acl-toolbar-note,
body.erp-theme-dark .acl-module-footnote,
body.erp-theme-dark .acl-summary-grid-role,
body.erp-theme-dark .acl-role-manager{border-color:var(--erp-dark-border)}
body.erp-theme-dark .acl-empty-state{
    border-color:var(--erp-dark-border-strong);
    color:var(--erp-dark-muted);
    background:rgba(31,41,55,.35);
}
body.erp-theme-dark .acl-empty-state i{color:#64748b}
body.erp-theme-dark #acl-toggle-technical.active{
    background:var(--erp-dark-accent-soft);
    border-color:#315b7b;
    color:#bfdbfe;
}
body.erp-theme-dark .acl-savebar.is-dirty #acl-save-status-text{color:#fbbf24}
body.erp-theme-dark .acl-role-manager .help-block{color:var(--erp-dark-muted)}

/* Keep sticky modern admin surfaces visually separated from the dark page */
body.erp-theme-dark .settings-nav,
body.erp-theme-dark .nom-toolbar,
body.erp-theme-dark .acl-toolbar{backdrop-filter:blur(4px)}

/* ERP v1.23.1 Translations UI polish */
.translation-page{padding-bottom:72px}
.translation-header{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-top:40px;padding:4px 0 12px;border-bottom:1px solid #e5e7eb}
.translation-header .page-header{margin:0 0 4px;padding:0;border:0}
.translation-header-copy{min-width:0;flex:1}
.translation-header-copy p{margin:0;max-width:880px;font-size:12px}
.translation-head-actions{display:flex;align-items:center;justify-content:flex-end;gap:7px;flex-wrap:wrap}
.translation-sync-form{display:inline-block;margin:0}
.translation-language-help{margin-top:12px}
.translation-language-help-inner{display:flex;align-items:flex-start;gap:10px;padding:10px 12px;border:1px solid #d9e2ec;border-radius:7px;background:#f8fafc;color:#52606d;font-size:11px;line-height:1.55}
.translation-language-help-icon{width:28px;height:28px;display:flex;align-items:center;justify-content:center;flex:0 0 auto;border-radius:50%;background:#e9f2fb;color:#337ab7;font-size:14px}
.translation-language-help-inner strong{display:block;color:#334e68;margin-bottom:1px}
.translation-summary-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:10px;margin:14px 0}
.translation-summary-card{display:flex;align-items:center;gap:10px;min-height:64px;padding:10px 12px;background:#fff;border:1px solid #e4e7eb;border-radius:8px;box-shadow:0 1px 2px rgba(15,23,42,.04)}
.translation-summary-card.has-missing{border-color:#f0c36d;background:#fffcf3}
.translation-summary-icon{width:36px;height:36px;display:flex;align-items:center;justify-content:center;flex:0 0 auto;border-radius:8px;background:#eef5fb;color:#337ab7;font-size:15px}
.translation-summary-card.has-missing .translation-summary-icon{background:#fff2cc;color:#9a6700}
.translation-summary-copy{display:flex;flex-direction:column;min-width:0}
.translation-summary-card .v{font-size:20px;line-height:1.05;font-weight:700;color:#243b53}
.translation-summary-card .k{margin-top:3px;font-size:10px;text-transform:uppercase;letter-spacing:.035em;color:#7b8794;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.translation-toolbar{position:sticky;top:50px;z-index:25;display:grid;grid-template-columns:minmax(260px,2fr) minmax(170px,1fr) minmax(150px,.8fr) minmax(160px,.8fr);gap:10px;align-items:end;margin:0 0 12px;padding:10px 12px;background:rgba(255,255,255,.97);border:1px solid #dfe3e8;border-radius:8px;box-shadow:0 2px 7px rgba(15,23,42,.07);backdrop-filter:blur(4px)}
.translation-filter label{display:block;margin:0 0 4px;color:#6b7280;font-size:10px;text-transform:uppercase;letter-spacing:.035em;font-weight:600}
.translation-results-row{display:flex;align-items:center;justify-content:space-between;gap:7px;min-height:34px}
.translation-visible-count{display:inline-flex;align-items:center;justify-content:center;min-width:74px;height:30px;padding:0 9px;border-radius:15px;background:#f1f5f9;color:#64748b;font-size:11px;white-space:nowrap}
.translation-visible-count strong{font-size:13px;color:#334155;margin-right:3px}
.translation-savebar{position:sticky;bottom:10px;z-index:26;display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 10px;padding:8px 10px;border:1px solid #dfe3e8;border-radius:8px;background:rgba(255,255,255,.97);box-shadow:0 4px 18px rgba(15,23,42,.10);backdrop-filter:blur(4px)}
.translation-save-status{display:flex;align-items:center;color:#7b8794;font-size:11px}
.translation-dirty-dot{display:inline-block;width:8px;height:8px;margin-right:7px;border-radius:50%;background:#cbd5e1;box-shadow:0 0 0 3px rgba(203,213,225,.20)}
.translation-savebar.is-dirty{border-color:#e7c66d}
.translation-savebar.is-dirty .translation-dirty-dot{background:#f0ad4e;box-shadow:0 0 0 3px rgba(240,173,78,.18)}
.translation-savebar.is-dirty .translation-save-status{color:#8a640f}
.translation-table-wrap{margin-bottom:6px;border:1px solid #dde3e8;border-radius:8px;background:#fff;overflow:auto;box-shadow:0 1px 2px rgba(15,23,42,.04)}
.translation-table{margin:0;min-width:760px;background:#fff}
.translation-table>thead>tr>th{position:sticky;top:0;z-index:8;padding:9px 10px;background:#f8fafc!important;border-bottom:1px solid #dfe3e8!important;color:#52606d;font-size:10px;text-transform:uppercase;letter-spacing:.035em;vertical-align:middle}
.translation-table>tbody>tr>td{padding:9px 10px;border-top:1px solid #edf0f2;vertical-align:top;background:#fff}
.translation-table>tbody>tr:nth-child(even)>td{background:#fbfcfd}
.translation-table>tbody>tr:hover>td{background:#f5f9fc}
.translation-source-col{width:34%;min-width:290px}
.translation-lang-col{min-width:320px}
.translation-source-cell{position:relative}
.translation-source-text{font-size:12px;line-height:1.45;font-weight:600;color:#263238;word-break:break-word}
.translation-meta{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:5px;color:#8b96a3;font-size:10px}
.translation-meta .label{font-size:9px;font-weight:500;padding:3px 5px}
.translation-file-count{white-space:nowrap}
.translation-key{display:block;margin-top:5px;padding:0;background:transparent;border:0;color:#9aa5b1;font-size:9px;line-height:1.35;white-space:normal;word-break:break-all}
.translation-value-cell{min-width:320px}
.translation-input{font-size:12px}
textarea.translation-input{resize:vertical;min-height:68px}
.translation-input.translation-changed{border-color:#e0a800;background:#fffdf3;box-shadow:0 0 0 2px rgba(224,168,0,.10)}
.translation-value-cell.is-missing{background:#fffdf6!important}
.translation-missing-note{display:block;margin-top:4px;font-size:9px}
.translation-flag{width:18px;height:auto;margin-right:4px;vertical-align:-2px}
.translation-empty-state{display:flex;align-items:center;justify-content:center;gap:8px;min-height:150px;border:1px dashed #cbd5e1;border-radius:8px;background:#fafbfc;color:#7b8794;font-size:12px}
.translation-empty-state i{font-size:18px;color:#a0aec0}
@media(max-width:991px){
    .translation-header{align-items:flex-start;flex-direction:column}
    .translation-head-actions{width:100%;justify-content:flex-start}
    .translation-toolbar{position:static;grid-template-columns:1fr 1fr}
    .translation-filter-search{grid-column:1/-1}
    .translation-page{padding-bottom:18px}
}
@media(max-width:600px){
    .translation-toolbar{grid-template-columns:1fr}
    .translation-filter-search{grid-column:auto}
    .translation-summary-grid{grid-template-columns:1fr 1fr}
    .translation-savebar{bottom:5px}
    .translation-head-actions .btn{width:100%}
    .translation-sync-form{width:100%}
    .translation-sync-form .btn{width:100%}
}

/* Translations UI - dark theme */
body.erp-theme-dark .translation-header{border-color:var(--erp-dark-border,#374151)}
body.erp-theme-dark .translation-language-help-inner{background:var(--erp-dark-surface-alt,#18212f);border-color:var(--erp-dark-border,#374151);color:var(--erp-dark-muted,#9ca3af)}
body.erp-theme-dark .translation-language-help-icon{background:var(--erp-dark-accent-soft,#173247);color:#bfdbfe}
body.erp-theme-dark .translation-language-help-inner strong{color:var(--erp-dark-text,#e5e7eb)}
body.erp-theme-dark .translation-summary-card{background:var(--erp-dark-surface,#1f2937);border-color:var(--erp-dark-border,#374151);box-shadow:0 1px 2px rgba(0,0,0,.18)}
body.erp-theme-dark .translation-summary-card.has-missing{background:#312b1c;border-color:#665827}
body.erp-theme-dark .translation-summary-icon{background:var(--erp-dark-surface-soft,#263244);color:#bfdbfe}
body.erp-theme-dark .translation-summary-card.has-missing .translation-summary-icon{background:#4b3d17;color:#fcd34d}
body.erp-theme-dark .translation-summary-card .v{color:var(--erp-dark-text,#e5e7eb)}
body.erp-theme-dark .translation-summary-card .k{color:var(--erp-dark-muted,#9ca3af)}
body.erp-theme-dark .translation-toolbar{background:rgba(24,33,47,.97);border-color:var(--erp-dark-border,#374151);box-shadow:0 2px 8px rgba(0,0,0,.24)}
body.erp-theme-dark .translation-filter label{color:var(--erp-dark-muted,#9ca3af)}
body.erp-theme-dark .translation-visible-count{background:var(--erp-dark-surface-soft,#263244);color:#aeb8c5}
body.erp-theme-dark .translation-visible-count strong{color:#e5e7eb}
body.erp-theme-dark .translation-savebar{background:rgba(17,24,39,.97);border-color:var(--erp-dark-border,#374151);box-shadow:0 4px 18px rgba(0,0,0,.30)}
body.erp-theme-dark .translation-save-status{color:var(--erp-dark-muted,#9ca3af)}
body.erp-theme-dark .translation-savebar.is-dirty{border-color:#735f22}
body.erp-theme-dark .translation-savebar.is-dirty .translation-save-status{color:#fbbf24}
body.erp-theme-dark .translation-table-wrap{background:var(--erp-dark-surface,#1f2937);border-color:var(--erp-dark-border,#374151);box-shadow:0 1px 2px rgba(0,0,0,.18)}
body.erp-theme-dark .translation-table{background:var(--erp-dark-surface,#1f2937)}
body.erp-theme-dark .translation-table>thead>tr>th{background:var(--erp-dark-surface-deep,#111827)!important;border-color:var(--erp-dark-border,#374151)!important;color:#cbd5e1}
body.erp-theme-dark .translation-table>tbody>tr>td{background:var(--erp-dark-surface,#1f2937);border-color:var(--erp-dark-border,#374151);color:var(--erp-dark-text,#e5e7eb)}
body.erp-theme-dark .translation-table>tbody>tr:nth-child(even)>td{background:var(--erp-dark-surface-alt,#18212f)}
body.erp-theme-dark .translation-table>tbody>tr:hover>td{background:var(--erp-dark-surface-soft,#263244)}
body.erp-theme-dark .translation-source-text{color:var(--erp-dark-text,#e5e7eb)}
body.erp-theme-dark .translation-meta,body.erp-theme-dark .translation-key{color:var(--erp-dark-muted,#9ca3af)}
body.erp-theme-dark .translation-value-cell.is-missing{background:#312b1c!important}
body.erp-theme-dark .translation-input.translation-changed{background:#332d1c;border-color:#806b25;color:#f9fafb;box-shadow:0 0 0 2px rgba(251,191,36,.08)}
body.erp-theme-dark .translation-empty-state{background:rgba(31,41,55,.35);border-color:var(--erp-dark-border-strong,#4b5563);color:var(--erp-dark-muted,#9ca3af)}
body.erp-theme-dark .translation-empty-state i{color:#64748b}

/* ERP v1.23.2 - sticky admin header + fixed action bar stacking */
.erp-topbar{
    position:-webkit-sticky;
    position:sticky;
    top:0;
    z-index:1030;
}
html{scroll-padding-top:62px}

@media(min-width:768px){
    .settings-nav,
    .nom-toolbar{top:51px!important}
    .settings-section-anchor,
    .nom-card{scroll-margin-top:118px!important}
}

.acl-savebar{z-index:1000}
body.erp-has-acl-savebar .erp-version-footer{bottom:60px}
@media(max-width:767px){
    body.erp-has-acl-savebar .erp-version-footer{bottom:auto}
}


/* ERP v1.24.0 - global data search */
.erp-search-data-item span{display:block;min-width:0}.erp-search-data-item strong{display:block;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.erp-search-data-item small{display:block;color:#777;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.erp-search-data-group{border-top:1px solid #eee}.erp-nav-search-results{max-height:70vh;overflow-y:auto}
body.erp-dark .erp-search-data-item small{color:#9ca3af}body.erp-dark .erp-search-data-group{border-top-color:#374151}

/* ERP v1.24.0 - Users UX */
.erp-page-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px}.erp-page-head .page-header{margin-bottom:4px}.erp-page-actions{padding-top:22px;white-space:nowrap}.erp-user-stats{margin-bottom:15px}.erp-mini-stat{background:#fff;border:1px solid #ddd;border-radius:4px;padding:12px 15px;display:flex;align-items:center;justify-content:space-between}.erp-mini-stat span{color:#777}.erp-mini-stat strong{font-size:22px}.erp-user-toolbar{background:#f8f8f8;border:1px solid #ddd;border-radius:4px;padding:10px;margin-bottom:15px}.erp-users-table>thead>tr>th{white-space:nowrap}.erp-user-subline{display:block;color:#888;margin-top:3px}.erp-user-access{font-size:12px;line-height:1.7;color:#555;max-width:320px}.erp-empty-state{padding:35px!important;font-size:14px}.erp-empty-state .fa{font-size:28px;margin-bottom:8px}.erp-copy-access-panel{border-left:4px solid #5bc0de}.erp-access-checklist{max-height:220px;overflow:auto}.erp-access-checklist label{display:block;padding:5px 7px;border-radius:3px;font-weight:normal;margin:0}.erp-access-checklist label:hover{background:#f5f5f5}.erp-form-actions{position:sticky;bottom:0;background:rgba(255,255,255,.96);border-top:1px solid #ddd;padding:10px 0;z-index:30}
body.erp-dark .erp-mini-stat,body.erp-dark .erp-user-toolbar,body.erp-dark .erp-form-actions{background:#18212f;border-color:#374151}body.erp-dark .erp-mini-stat span,body.erp-dark .erp-user-subline,body.erp-dark .erp-user-access{color:#9ca3af}body.erp-dark .erp-access-checklist label:hover{background:#263244}body.erp-dark .erp-copy-access-panel{background:#18212f;border-color:#374151;border-left-color:#5bc0de}
@media(max-width:767px){.erp-page-head{display:block}.erp-page-actions{padding-top:5px;margin-bottom:10px}.erp-user-toolbar .form-control,.erp-user-toolbar .btn{margin-bottom:5px}.erp-user-stats .col-sm-3{margin-bottom:8px}}

/* ERP v1.24.1 - Dashboard v2 & Notification Center */
.erp-dashboard-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:15px;margin-bottom:18px}.erp-dashboard-heading .page-header{margin-bottom:4px}.erp-dashboard-heading p{margin:0}.erp-dashboard-kpis{margin-bottom:18px}.erp-kpi-card{display:block;position:relative;min-height:126px;padding:18px 18px 16px 72px;margin-bottom:15px;background:#fff;border:1px solid #e5e7eb;border-radius:6px;color:#1f2937;box-shadow:0 1px 2px rgba(0,0,0,.03);text-decoration:none!important;transition:.15s ease}.erp-kpi-card:hover{border-color:#cbd5e1;box-shadow:0 4px 12px rgba(0,0,0,.07);transform:translateY(-1px);color:#111827}.erp-kpi-icon{position:absolute;left:18px;top:22px;width:40px;height:40px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#eef2f7;color:#4b5563;font-size:18px}.erp-kpi-label{display:block;font-size:12px;text-transform:uppercase;letter-spacing:.03em;color:#6b7280;font-weight:600}.erp-kpi-card strong{display:block;font-size:25px;line-height:1.15;margin-top:7px}.erp-kpi-card small{display:block;margin-top:6px;color:#6b7280}.erp-kpi-danger{border-left:4px solid #d9534f}.erp-kpi-danger .erp-kpi-icon{background:#fbe9e7;color:#c9302c}.erp-kpi-warning{border-left:4px solid #f0ad4e}.erp-kpi-warning .erp-kpi-icon{background:#fff4dc;color:#c77c11}.erp-kpi-ok{border-left:4px solid #5cb85c}.erp-kpi-ok .erp-kpi-icon{background:#eaf7ea;color:#3c763d}.erp-dashboard-panel>.panel-heading{font-weight:600}.erp-dashboard-attention{padding:0}.erp-dashboard-notification{display:flex;align-items:center;gap:12px;padding:13px 15px;border-bottom:1px solid #eee;text-decoration:none!important;color:#333}.erp-dashboard-notification:last-child{border-bottom:0}.erp-dashboard-notification:hover{background:#f8fafc}.erp-dashboard-notification-icon{width:34px;height:34px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#eef2f7;color:#4b5563;flex:0 0 34px}.erp-dashboard-notification-text{min-width:0;flex:1}.erp-dashboard-notification-text strong,.erp-dashboard-notification-text small{display:block}.erp-dashboard-notification-text small{color:#777;margin-top:2px;white-space:normal}.erp-dashboard-notification-count{font-size:17px;font-weight:700}.erp-dashboard-notification.erp-notification-danger .erp-dashboard-notification-icon{background:#fbe9e7;color:#c9302c}.erp-dashboard-notification.erp-notification-warning .erp-dashboard-notification-icon{background:#fff4dc;color:#c77c11}.erp-dashboard-notification.erp-notification-info .erp-dashboard-notification-icon{background:#eaf4fb;color:#31708f}.erp-dashboard-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.erp-dashboard-actions>a{display:flex;align-items:center;gap:10px;min-height:58px;padding:11px 13px;border:1px solid #e5e7eb;border-radius:5px;color:#333;text-decoration:none;background:#fff}.erp-dashboard-actions>a:hover{background:#f8fafc;border-color:#cbd5e1}.erp-dashboard-actions>a i{width:28px;height:28px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#eef2f7;color:#4b5563}.erp-dashboard-group-form{margin-top:-4px}.erp-dashboard-chart-panel{margin-bottom:28px}.erp-empty-state-compact{padding:30px 15px;text-align:center;color:#6b7280}.erp-empty-state-compact i,.erp-empty-state-compact strong,.erp-empty-state-compact span{display:block}.erp-empty-state-compact strong{margin-top:8px;color:#374151}.erp-empty-state-compact span{margin-top:4px}

.erp-notification-dropdown{width:390px;max-width:calc(100vw - 20px);padding:0}.erp-notification-dropdown>li>span{display:block;padding:12px 14px}.erp-notification-badge{position:absolute;top:6px;right:2px;background:#d9534f;color:#fff;font-size:9px;min-width:17px;padding:3px 4px}.erp-header-notification{display:flex!important;align-items:flex-start;gap:9px;padding:10px 12px!important;white-space:normal!important}.erp-header-notification>i{margin-top:3px}.erp-header-notification>span{flex:1;min-width:0}.erp-header-notification strong,.erp-header-notification small{display:block}.erp-header-notification small{color:#777;margin-top:2px;line-height:1.25}.erp-header-notification>b{font-size:14px}.erp-header-notification.erp-notification-danger>i{color:#d9534f}.erp-header-notification.erp-notification-warning>i{color:#f0ad4e}.erp-header-notification.erp-notification-info>i{color:#31708f}.erp-notification-empty span{color:#3c763d}

.erp-notifications-page .erp-page-heading-row{margin-bottom:18px}.erp-notification-summary{margin-bottom:15px}.erp-summary-card{background:#fff;border:1px solid #e5e7eb;border-radius:5px;padding:14px 16px;margin-bottom:10px}.erp-summary-card span{display:block;color:#6b7280;font-size:12px;text-transform:uppercase}.erp-summary-card strong{display:block;font-size:24px;margin-top:3px}.erp-summary-card-danger{border-left:4px solid #d9534f}.erp-notification-list{border:1px solid #e5e7eb;border-radius:6px;overflow:hidden;background:#fff}.erp-notification-card{display:flex;align-items:center;gap:12px;padding:14px 16px;border-bottom:1px solid #eee;color:#333;text-decoration:none!important}.erp-notification-card:last-child{border-bottom:0}.erp-notification-card:hover{background:#f8fafc}.erp-notification-card .erp-notification-icon{width:38px;height:38px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#eef2f7;flex:0 0 38px}.erp-notification-card .erp-notification-main{flex:1;min-width:0}.erp-notification-card .erp-notification-main strong,.erp-notification-card .erp-notification-main small{display:block}.erp-notification-card .erp-notification-main small{color:#777;margin-top:3px}.erp-notification-card .erp-notification-count{font-size:20px;font-weight:700}.erp-notification-card .erp-notification-arrow{color:#9ca3af}.erp-notification-card.erp-notification-danger .erp-notification-icon{background:#fbe9e7;color:#c9302c}.erp-notification-card.erp-notification-warning .erp-notification-icon{background:#fff4dc;color:#c77c11}.erp-notification-card.erp-notification-info .erp-notification-icon{background:#eaf4fb;color:#31708f}

body.erp-dark .erp-kpi-card,body.erp-dark .erp-dashboard-actions>a,body.erp-dark .erp-summary-card,body.erp-dark .erp-notification-list{background:#18212f;border-color:#374151;color:#e5e7eb}.erp-dark .erp-kpi-card:hover,.erp-dark .erp-dashboard-actions>a:hover,.erp-dark .erp-dashboard-notification:hover,.erp-dark .erp-notification-card:hover{background:#1f2937;color:#fff}.erp-dark .erp-kpi-label,.erp-dark .erp-kpi-card small,.erp-dark .erp-dashboard-notification-text small,.erp-dark .erp-notification-card .erp-notification-main small,.erp-dark .erp-summary-card span{color:#9ca3af}.erp-dark .erp-dashboard-notification{color:#e5e7eb;border-color:#374151}.erp-dark .erp-dashboard-notification-icon,.erp-dark .erp-dashboard-actions>a i,.erp-dark .erp-kpi-icon,.erp-dark .erp-notification-card .erp-notification-icon{background:#263244;color:#d1d5db}.erp-dark .erp-notification-list,.erp-dark .erp-notification-card{border-color:#374151}.erp-dark .erp-notification-card{color:#e5e7eb}.erp-dark .erp-notification-dropdown{background:#18212f;border-color:#374151}.erp-dark .erp-header-notification{color:#e5e7eb}.erp-dark .erp-header-notification:hover{background:#1f2937}.erp-dark .erp-header-notification small{color:#9ca3af}

@media(max-width:767px){.erp-dashboard-heading{display:block}.erp-dashboard-heading-actions{margin-top:10px}.erp-dashboard-actions{grid-template-columns:1fr}.erp-notification-dropdown{position:fixed!important;left:10px!important;right:10px!important;top:52px!important;width:auto!important}.erp-dashboard-group-form{float:none!important;margin-top:8px}.erp-dashboard-group-form select{width:100%}}

/* ERP v1.24.2 - Global search polish, Dashboard/Users dark theme completion */
.erp-nav-search-results{
    background:#fff;
    border:1px solid #d9dee5;
    box-shadow:0 12px 28px rgba(15,23,42,.16);
}
.erp-nav-search-results .list-group-item{border-left:0;border-right:0;color:#334155;background:#fff}
.erp-nav-search-results .list-group-item:first-of-type{border-top:0}
.erp-search-item{transition:background-color .12s ease,color .12s ease,border-color .12s ease}
.erp-search-item:hover{
    background:#f3f6f9!important;
    color:#1f2937!important;
}
.erp-search-item.active,
.erp-search-item.active:hover{
    background:#e6f0f8!important;
    color:#245777!important;
    border-color:#c9dce9!important;
}
.erp-search-item:hover .fa,
.erp-search-item.active .fa{color:#337ab7}
.erp-search-data-item small{color:#64748b}
.erp-search-group{background:#f7f9fb;color:#64748b;border-color:#d9dee5}
.erp-search-data-group{border-top-color:#d9dee5}

body.erp-dark .erp-nav-search-results{
    background:#18212f;
    border-color:#374151;
    box-shadow:0 14px 32px rgba(0,0,0,.42);
}
body.erp-dark .erp-nav-search-results .list-group-item{
    background:#18212f;
    border-color:#374151;
    color:#e5e7eb;
}
body.erp-dark .erp-search-group{
    background:#111827;
    color:#9ca3af;
    border-color:#374151;
}
body.erp-dark .erp-search-item:hover{
    background:#263244!important;
    color:#f9fafb!important;
}
body.erp-dark .erp-search-item.active,
body.erp-dark .erp-search-item.active:hover{
    background:#31415a!important;
    border-color:#465b78!important;
    color:#fff!important;
}
body.erp-dark .erp-search-item:hover .fa,
body.erp-dark .erp-search-item.active .fa{color:#7db7e2}
body.erp-dark .erp-search-data-item small{color:#aab4c2}
body.erp-dark .erp-search-data-group{border-top-color:#374151}
body.erp-dark .erp-nav-search-results .text-muted{color:#9ca3af!important}

/* tighter and better aligned dashboard cards */
.erp-kpi-card{min-height:108px;padding:15px 16px 14px 68px}
.erp-kpi-icon{left:16px;top:50%;transform:translateY(-50%);width:38px;height:38px}
.erp-kpi-card strong{font-size:23px;margin-top:5px}
.erp-kpi-card small{margin-top:4px;line-height:1.3}
.erp-dashboard-kpis>[class*="col-"]{display:flex}
.erp-dashboard-kpis .erp-kpi-card{width:100%}
.erp-dashboard-panel .panel-heading a{font-weight:normal}
.erp-dashboard-actions>a{min-height:54px}

/* complete dark surfaces introduced in 1.24.0/1.24.1 */
body.erp-dark .erp-dashboard-v2 .panel,
body.erp-dark .erp-notifications-page .panel,
body.erp-dark .erp-users-page .panel,
body.erp-dark .erp-user-edit-page .panel{
    background:#18212f;
    border-color:#374151;
    color:#e5e7eb;
}
body.erp-dark .erp-dashboard-v2 .panel-heading,
body.erp-dark .erp-notifications-page .panel-heading,
body.erp-dark .erp-users-page .panel-heading,
body.erp-dark .erp-user-edit-page .panel-heading{
    background:#1f2937;
    border-color:#374151;
    color:#f3f4f6;
}
body.erp-dark .erp-dashboard-v2 .panel-heading a,
body.erp-dark .erp-notifications-page .panel-heading a{color:#8fc4ea}
body.erp-dark .erp-dashboard-v2 .panel-footer,
body.erp-dark .erp-notifications-page .panel-footer{
    background:#151e2b;
    border-color:#374151;
}
body.erp-dark .erp-kpi-card{box-shadow:none}
body.erp-dark .erp-kpi-card:hover{border-color:#4b5f78;box-shadow:0 5px 16px rgba(0,0,0,.22)}
body.erp-dark .erp-kpi-danger .erp-kpi-icon{background:#432526;color:#ef9a9a}
body.erp-dark .erp-kpi-warning .erp-kpi-icon{background:#45361f;color:#f2c66d}
body.erp-dark .erp-kpi-ok .erp-kpi-icon{background:#203b2b;color:#91d49a}
body.erp-dark .erp-dashboard-notification.erp-notification-danger .erp-dashboard-notification-icon,
body.erp-dark .erp-notification-card.erp-notification-danger .erp-notification-icon{background:#432526;color:#ef9a9a}
body.erp-dark .erp-dashboard-notification.erp-notification-warning .erp-dashboard-notification-icon,
body.erp-dark .erp-notification-card.erp-notification-warning .erp-notification-icon{background:#45361f;color:#f2c66d}
body.erp-dark .erp-dashboard-notification.erp-notification-info .erp-dashboard-notification-icon,
body.erp-dark .erp-notification-card.erp-notification-info .erp-notification-icon{background:#203649;color:#8ec7ee}
body.erp-dark .erp-empty-state-compact{color:#9ca3af}
body.erp-dark .erp-empty-state-compact strong{color:#e5e7eb}
body.erp-dark .erp-notification-dropdown .divider{background:#374151}
body.erp-dark .erp-notification-dropdown>li>a.text-center{color:#8fc4ea;background:#151e2b}
body.erp-dark .erp-notification-dropdown>li>a.text-center:hover{background:#263244;color:#fff}
body.erp-dark .erp-user-toolbar .form-control,
body.erp-dark .erp-copy-access-panel .form-control{background:#111827;border-color:#4b5563;color:#e5e7eb}
body.erp-dark .erp-users-table>thead>tr>th{background:#1f2937;color:#f3f4f6;border-color:#374151}
body.erp-dark .erp-users-table>tbody>tr>td{border-color:#374151}
body.erp-dark .erp-users-table>tbody>tr:hover>td{background:#202b3b}

@media(max-width:991px){.erp-dashboard-kpis>[class*="col-"]{display:block}}


/* ============================================================
 * ERP 1.24.3 - Dashboard / notifications / users dark UX fixes
 * ============================================================ */

/* Bootstrap .panel-body clearfix pseudo-elements become grid items.
 * Disable them in the quick-actions grid so the first action starts
 * in the first column and the actions fill left-to-right. */
.erp-dashboard-actions:before,
.erp-dashboard-actions:after{
    display:none!important;
    content:none!important;
}
.erp-dashboard-actions{
    grid-auto-flow:row;
    align-items:stretch;
}
.erp-dashboard-actions>a{
    width:100%;
    min-width:0;
}

/* Notification dropdown: stable icon/content/count columns. */
.erp-notification-dropdown .erp-header-notification{
    display:grid!important;
    grid-template-columns:20px minmax(0,1fr) auto;
    align-items:center;
    column-gap:10px;
    min-height:58px;
    padding:10px 12px!important;
}
.erp-notification-dropdown .erp-header-notification>i{
    width:20px;
    margin:0;
    text-align:center;
    align-self:start;
    padding-top:3px;
}
.erp-notification-dropdown .erp-header-notification>span{
    min-width:0;
}
.erp-notification-dropdown .erp-header-notification strong{
    line-height:1.25;
}
.erp-notification-dropdown .erp-header-notification small{
    margin-top:3px;
    line-height:1.35;
    white-space:normal;
}
.erp-notification-dropdown .erp-header-notification>b{
    min-width:28px;
    text-align:right;
    align-self:center;
}
.erp-notification-footer{
    border-top:1px solid #e5e7eb;
}
.erp-notification-footer>a{
    display:flex!important;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    padding:11px 13px!important;
    font-weight:600;
    text-align:left!important;
}
.erp-notification-footer>a:hover,
.erp-notification-footer>a:focus{
    text-decoration:none;
}

/* 1.24.0/1.24.1 components use the real ERP dark class:
 * body.erp-theme-dark (not the obsolete .erp-dark alias). */
body.erp-theme-dark .erp-mini-stat,
body.erp-theme-dark .erp-user-toolbar,
body.erp-theme-dark .erp-form-actions,
body.erp-theme-dark .erp-copy-access-panel{
    background:#18212f!important;
    border-color:#374151!important;
    color:#e5e7eb!important;
}
body.erp-theme-dark .erp-mini-stat span,
body.erp-theme-dark .erp-user-subline,
body.erp-theme-dark .erp-user-access,
body.erp-theme-dark .erp-user-edit-page .text-muted,
body.erp-theme-dark .erp-users-page .text-muted{
    color:#9ca3af!important;
}
body.erp-theme-dark .erp-mini-stat strong{color:#f3f4f6!important}
body.erp-theme-dark .erp-access-checklist label:hover{background:#263244!important}
body.erp-theme-dark .erp-copy-access-panel{border-left-color:#5bc0de!important}
body.erp-theme-dark .erp-form-actions{
    box-shadow:0 -5px 16px rgba(0,0,0,.16);
}
body.erp-theme-dark .erp-user-toolbar .form-control,
body.erp-theme-dark .erp-copy-access-panel .form-control,
body.erp-theme-dark .erp-user-edit-page .form-control{
    background:#111827!important;
    border-color:#4b5563!important;
    color:#e5e7eb!important;
}
body.erp-theme-dark .erp-user-toolbar .input-group-addon{
    background:#111827!important;
    border-color:#4b5563!important;
    color:#cbd5e1!important;
}
body.erp-theme-dark .erp-users-table>thead>tr>th{
    background:#1f2937!important;
    color:#f3f4f6!important;
    border-color:#374151!important;
}
body.erp-theme-dark .erp-users-table>tbody>tr>td{border-color:#374151!important}
body.erp-theme-dark .erp-users-table>tbody>tr:hover>td{background:#263244!important;color:#fff!important}

body.erp-theme-dark .erp-dashboard-v2 .panel,
body.erp-theme-dark .erp-notifications-page .panel,
body.erp-theme-dark .erp-users-page .panel,
body.erp-theme-dark .erp-user-edit-page .panel{
    background:#18212f!important;
    border-color:#374151!important;
    color:#e5e7eb!important;
}
body.erp-theme-dark .erp-dashboard-v2 .panel-heading,
body.erp-theme-dark .erp-notifications-page .panel-heading,
body.erp-theme-dark .erp-users-page .panel-heading,
body.erp-theme-dark .erp-user-edit-page .panel-heading{
    background:#1f2937!important;
    border-color:#374151!important;
    color:#f3f4f6!important;
}
body.erp-theme-dark .erp-dashboard-v2 .panel-heading a,
body.erp-theme-dark .erp-notifications-page .panel-heading a{color:#93c5fd!important}
body.erp-theme-dark .erp-dashboard-v2 .panel-footer,
body.erp-theme-dark .erp-notifications-page .panel-footer{
    background:#151e2b!important;
    border-color:#374151!important;
}
body.erp-theme-dark .erp-kpi-card,
body.erp-theme-dark .erp-dashboard-actions>a,
body.erp-theme-dark .erp-summary-card,
body.erp-theme-dark .erp-notification-list{
    background:#18212f!important;
    border-color:#374151!important;
    color:#e5e7eb!important;
    box-shadow:none;
}
body.erp-theme-dark .erp-kpi-card:hover,
body.erp-theme-dark .erp-dashboard-actions>a:hover,
body.erp-theme-dark .erp-dashboard-notification:hover,
body.erp-theme-dark .erp-notification-card:hover{
    background:#263244!important;
    border-color:#4b5f78!important;
    color:#fff!important;
}
body.erp-theme-dark .erp-kpi-label,
body.erp-theme-dark .erp-kpi-card small,
body.erp-theme-dark .erp-dashboard-notification-text small,
body.erp-theme-dark .erp-notification-card .erp-notification-main small,
body.erp-theme-dark .erp-summary-card span{
    color:#9ca3af!important;
}
body.erp-theme-dark .erp-kpi-card strong,
body.erp-theme-dark .erp-dashboard-notification-text strong,
body.erp-theme-dark .erp-dashboard-notification-count{
    color:#f3f4f6!important;
}
body.erp-theme-dark .erp-dashboard-notification{
    color:#e5e7eb!important;
    border-color:#374151!important;
}
body.erp-theme-dark .erp-dashboard-notification-icon,
body.erp-theme-dark .erp-dashboard-actions>a i,
body.erp-theme-dark .erp-kpi-icon,
body.erp-theme-dark .erp-notification-card .erp-notification-icon{
    background:#263244!important;
    color:#d1d5db!important;
}
body.erp-theme-dark .erp-kpi-danger .erp-kpi-icon,
body.erp-theme-dark .erp-dashboard-notification.erp-notification-danger .erp-dashboard-notification-icon,
body.erp-theme-dark .erp-notification-card.erp-notification-danger .erp-notification-icon{
    background:#432526!important;color:#ef9a9a!important;
}
body.erp-theme-dark .erp-kpi-warning .erp-kpi-icon,
body.erp-theme-dark .erp-dashboard-notification.erp-notification-warning .erp-dashboard-notification-icon,
body.erp-theme-dark .erp-notification-card.erp-notification-warning .erp-notification-icon{
    background:#45361f!important;color:#f2c66d!important;
}
body.erp-theme-dark .erp-kpi-ok .erp-kpi-icon{
    background:#203b2b!important;color:#91d49a!important;
}
body.erp-theme-dark .erp-dashboard-notification.erp-notification-info .erp-dashboard-notification-icon,
body.erp-theme-dark .erp-notification-card.erp-notification-info .erp-notification-icon{
    background:#203649!important;color:#8ec7ee!important;
}
body.erp-theme-dark .erp-empty-state-compact{color:#9ca3af!important}
body.erp-theme-dark .erp-empty-state-compact strong{color:#e5e7eb!important}

/* Header notification dropdown and footer in both themes. */
body.erp-theme-dark .erp-notification-dropdown{
    background:#18212f!important;
    border-color:#374151!important;
}
body.erp-theme-dark .erp-notification-dropdown .divider{background:#374151!important}
body.erp-theme-dark .erp-header-notification{color:#e5e7eb!important}
body.erp-theme-dark .erp-header-notification:hover,
body.erp-theme-dark .erp-header-notification:focus{background:#263244!important;color:#fff!important}
body.erp-theme-dark .erp-header-notification small{color:#9ca3af!important}
body.erp-theme-dark .erp-notification-footer{border-color:#374151!important}
body.erp-theme-dark .erp-notification-footer>a{
    background:#151e2b!important;
    color:#93c5fd!important;
}
body.erp-theme-dark .erp-notification-footer>a:hover,
body.erp-theme-dark .erp-notification-footer>a:focus{
    background:#263244!important;
    color:#fff!important;
}

/* Search dropdown: correct hover in the actual dark theme. */
body.erp-theme-dark .erp-nav-search-results{
    background:#18212f!important;
    border-color:#374151!important;
}
body.erp-theme-dark .erp-search-item{
    background:#18212f!important;
    color:#e5e7eb!important;
    border-color:#374151!important;
}
body.erp-theme-dark .erp-search-item:hover,
body.erp-theme-dark .erp-search-item:focus{
    background:#263244!important;
    color:#fff!important;
}
body.erp-theme-dark .erp-search-item.active,
body.erp-theme-dark .erp-search-item.active:hover{
    background:#31415a!important;
    border-color:#465b78!important;
    color:#fff!important;
}
body.erp-theme-dark .erp-search-data-item small{color:#aab4c2!important}
body.erp-theme-dark .erp-search-data-group{border-top-color:#374151!important}
body.erp-theme-dark .erp-nav-search-results .text-muted{color:#9ca3af!important}

/* Keep light-theme notification footer subtle and consistent. */
body:not(.erp-theme-dark) .erp-notification-footer>a{background:#fafafa;color:#337ab7}
body:not(.erp-theme-dark) .erp-notification-footer>a:hover,
body:not(.erp-theme-dark) .erp-notification-footer>a:focus{background:#f1f5f9;color:#23527c}

/* ERP 1.24.4 - Notification dropdown gap + notification center dark readability */
.erp-notification-dropdown>.erp-notification-footer:first-child,
.erp-notification-dropdown>.erp-notification-footer{
    margin:0!important;
}
.erp-notification-footer{border-top:1px solid #e5e7eb!important}

body.erp-theme-dark .erp-notification-card{
    background:#18212f!important;
    color:#e5e7eb!important;
    border-color:#374151!important;
}
body.erp-theme-dark .erp-notification-card .erp-notification-main strong,
body.erp-theme-dark .erp-notification-card .erp-notification-count{
    color:#f3f4f6!important;
}
body.erp-theme-dark .erp-notification-card .erp-notification-main small{
    color:#aab4c2!important;
}
body.erp-theme-dark .erp-notification-card .erp-notification-arrow{
    color:#718096!important;
}
body.erp-theme-dark .erp-notification-card:hover,
body.erp-theme-dark .erp-notification-card:focus{
    background:#263244!important;
    color:#fff!important;
}
body.erp-theme-dark .erp-notification-card:hover .erp-notification-main strong,
body.erp-theme-dark .erp-notification-card:focus .erp-notification-main strong,
body.erp-theme-dark .erp-notification-card:hover .erp-notification-count,
body.erp-theme-dark .erp-notification-card:focus .erp-notification-count{
    color:#fff!important;
}
body.erp-theme-dark .erp-notification-card:hover .erp-notification-arrow,
body.erp-theme-dark .erp-notification-card:focus .erp-notification-arrow{
    color:#cbd5e1!important;
}
body.erp-theme-dark .erp-notifications-page .erp-summary-card strong{
    color:#f3f4f6!important;
}
body.erp-theme-dark .erp-notifications-page .erp-summary-card span,
body.erp-theme-dark .erp-notifications-page>.erp-page-heading-row .text-muted{
    color:#9ca3af!important;
}

/* ERP v1.25.0 - Activity / Audit Center */
.erp-activity-stats{margin-bottom:16px}.erp-activity-stat{min-height:76px;border:1px solid #e5e7eb;border-radius:4px;background:#fff;padding:14px 16px;display:flex;align-items:center;gap:12px}.erp-activity-stat>i{font-size:22px;color:#6b7280;width:28px;text-align:center}.erp-activity-stat span{display:block;font-size:11px;text-transform:uppercase;color:#7b8794}.erp-activity-stat strong{display:block;font-size:22px;line-height:1.15;color:#263238}.erp-activity-filters .panel-body{padding:12px}.erp-activity-filters label{font-size:11px;color:#687582}.erp-activity-table>tbody>tr>td{vertical-align:top}.erp-activity-table .nowrap{white-space:nowrap}.erp-audit-changes{margin-top:8px;min-width:260px}.erp-audit-changes>div{padding:6px 0;border-top:1px solid #eee;font-size:12px}.erp-audit-old{color:#a94442;text-decoration:line-through}.erp-audit-new{color:#3c763d;font-weight:600}
body.erp-theme-dark .erp-activity-stat{background:#1f2937;border-color:#374151}body.erp-theme-dark .erp-activity-stat strong{color:#e5e7eb}body.erp-theme-dark .erp-activity-stat span,body.erp-theme-dark .erp-activity-stat>i,body.erp-theme-dark .erp-activity-filters label{color:#9ca3af}body.erp-theme-dark .erp-audit-changes>div{border-color:#374151}body.erp-theme-dark .erp-audit-old{color:#fca5a5}body.erp-theme-dark .erp-audit-new{color:#86efac}

/* ERP v1.26.0 - Documents UX v2 */
.erp-document-head{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin-bottom:12px}
.erp-document-head .page-header{margin-bottom:4px;padding-bottom:0;border-bottom:0}.erp-document-number{font-weight:400;color:#667085}
.erp-document-head-sub{display:flex;flex-wrap:wrap;gap:8px 18px;color:#667085;font-size:12px}.erp-document-head-sub i{width:14px;text-align:center;margin-right:3px}
.erp-document-head-status{display:flex;gap:6px;align-items:center;padding-bottom:5px}.erp-document-head-status .label{font-size:11px;padding:5px 8px}
.erp-document-summary{margin-bottom:8px}.erp-document-summary-card{min-height:74px;margin-bottom:10px;padding:11px 13px;border:1px solid #e1e5ea;border-radius:6px;background:#fff}
.erp-document-summary-card>span{display:block;color:#77818c;font-size:10px;font-weight:600;text-transform:uppercase;letter-spacing:.035em}.erp-document-summary-card>strong{display:block;margin-top:6px;color:#263238;font-size:19px;line-height:1.2}
.erp-document-summary-card .erp-document-summary-text{font-size:14px;padding-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.erp-document-summary-card.is-due{border-left:3px solid #f0ad4e}.erp-document-summary-card.is-paid{border-left:3px solid #5cb85c}
.erp-document-toolbar{position:sticky;top:50px;z-index:35;display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 14px;padding:7px 9px;border:1px solid #dfe3e8;border-radius:6px;background:rgba(255,255,255,.97);box-shadow:0 2px 8px rgba(15,23,42,.08);backdrop-filter:blur(4px)}
.erp-document-nav{display:flex;align-items:center;gap:3px;min-width:0;overflow-x:auto}.erp-document-nav>a{display:inline-flex;align-items:center;gap:5px;padding:6px 8px;border-radius:4px;color:#52606d;font-size:12px;text-decoration:none;white-space:nowrap}.erp-document-nav>a:hover,.erp-document-nav>a:focus{background:#f1f5f9;color:#263238}
.erp-document-tools{display:flex;align-items:center;gap:5px;flex:0 0 auto}
.erp-document-meta{display:flex;flex-wrap:wrap;gap:0;margin-bottom:12px;border:1px solid #e4e7eb;border-radius:6px;background:#f8fafc}.erp-document-meta>div{min-width:190px;flex:1;padding:9px 12px;border-right:1px solid #e4e7eb}.erp-document-meta>div:last-child{border-right:0}.erp-document-meta span,.erp-document-meta small{display:block;color:#7b8794;font-size:10px}.erp-document-meta strong{display:block;margin:2px 0;color:#374151;font-size:12px}
.erp-document-relations{margin:0 0 12px;padding:10px 12px;border:1px solid #dfe3e8;border-radius:6px;background:#fff}.erp-document-relations-title{margin-bottom:8px;color:#52606d;font-size:11px;font-weight:700;text-transform:uppercase}.erp-document-relation-flow{display:flex;align-items:center;gap:7px;overflow-x:auto;padding-bottom:2px}.erp-document-relation{display:block;min-width:145px;padding:7px 9px;border:1px solid #dfe3e8;border-radius:5px;background:#f8fafc;color:#374151;text-decoration:none!important}.erp-document-relation:hover{border-color:#b9c4cf;background:#f1f5f9}.erp-document-relation.current{border-color:#9ec5e5;background:#eef6fc}.erp-document-relation small{display:block;color:#7b8794;font-size:9px;text-transform:uppercase}.erp-document-relation strong{display:block;margin-top:2px;font-size:11px;white-space:nowrap}.erp-document-relation-arrow{color:#a0aab5;flex:0 0 auto}.erp-document-relation.cancelled{position:relative;border:2px solid #dc3545;background:#fff5f5;padding-top:24px}.erp-document-relation.cancelled:hover{border-color:#bd2130;background:#fff0f0}.erp-document-relation-cancelled-label{position:absolute;top:0;left:0;right:0;padding:3px 8px;background:#dc3545;color:#fff;font-size:9px;font-weight:800;line-height:14px;text-align:center;letter-spacing:.5px;border-radius:3px 3px 0 0}.erp-document-relation.current.cancelled{border-color:#dc3545;background:#fff5f5}
.erp-document-note{display:flex;gap:10px;margin-bottom:12px;padding:9px 12px;border-left:3px solid #5bc0de;background:#f5fbfe;border-radius:3px;color:#455a64}.erp-document-note>i{margin-top:3px;color:#5bc0de}
.erp-document-section{scroll-margin-top:105px;margin-bottom:18px}.erp-document-section-title{margin:8px 0 10px;padding-bottom:7px;border-bottom:1px solid #e5e7eb;color:#374151;font-size:16px;font-weight:600}.erp-document-section-title>i{width:20px;color:#718096;text-align:center;margin-right:4px}.erp-document-lines-table>thead>tr>th{white-space:nowrap}
.erp-document-history-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.erp-document-history-head .erp-document-section-title{flex:1}.erp-document-timeline{position:relative;margin:2px 0 12px;padding-left:24px}.erp-document-timeline:before{content:"";position:absolute;left:7px;top:5px;bottom:5px;width:2px;background:#e5e7eb}.erp-document-timeline-item{position:relative;padding:0 0 14px 8px}.erp-document-timeline-dot{position:absolute;left:-22px;top:2px;width:14px;height:14px;border-radius:50%;background:#fff;color:#9aa5b1;font-size:8px;text-align:center;line-height:13px}.erp-document-timeline-content{padding:9px 11px;border:1px solid #e5e7eb;border-radius:5px;background:#fff}.erp-document-timeline-top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:3px}.erp-document-timeline-top span{color:#7b8794;font-size:11px;white-space:nowrap}.erp-document-timeline-note{margin-top:6px;color:#52606d;font-size:12px}
body.erp-theme-dark .erp-document-number,body.erp-theme-dark .erp-document-head-sub{color:var(--erp-dark-muted,#9ca3af)}body.erp-theme-dark .erp-document-summary-card{background:var(--erp-dark-surface,#1f2937);border-color:var(--erp-dark-border,#374151)}body.erp-theme-dark .erp-document-summary-card>span{color:var(--erp-dark-muted,#9ca3af)}body.erp-theme-dark .erp-document-summary-card>strong{color:var(--erp-dark-text,#e5e7eb)}
body.erp-theme-dark .erp-document-toolbar{background:rgba(24,33,47,.97);border-color:var(--erp-dark-border,#374151);box-shadow:0 2px 8px rgba(0,0,0,.28)}body.erp-theme-dark .erp-document-nav>a{color:#cbd5e1}body.erp-theme-dark .erp-document-nav>a:hover,body.erp-theme-dark .erp-document-nav>a:focus{background:var(--erp-dark-surface-soft,#263244);color:#fff}
body.erp-theme-dark .erp-document-meta{background:var(--erp-dark-surface-alt,#18212f);border-color:var(--erp-dark-border,#374151)}body.erp-theme-dark .erp-document-meta>div{border-color:var(--erp-dark-border,#374151)}body.erp-theme-dark .erp-document-meta span,body.erp-theme-dark .erp-document-meta small{color:var(--erp-dark-muted,#9ca3af)}body.erp-theme-dark .erp-document-meta strong{color:var(--erp-dark-text,#e5e7eb)}
body.erp-theme-dark .erp-document-relations{background:var(--erp-dark-surface,#1f2937);border-color:var(--erp-dark-border,#374151)}body.erp-theme-dark .erp-document-relations-title{color:#cbd5e1}body.erp-theme-dark .erp-document-relation{background:var(--erp-dark-surface-alt,#18212f);border-color:var(--erp-dark-border,#374151);color:var(--erp-dark-text,#e5e7eb)}body.erp-theme-dark .erp-document-relation:hover{background:var(--erp-dark-surface-soft,#263244);border-color:var(--erp-dark-border-strong,#4b5563)}body.erp-theme-dark .erp-document-relation.current{background:var(--erp-dark-accent-soft,#173247);border-color:#315b7a}body.erp-theme-dark .erp-document-relation small{color:var(--erp-dark-muted,#9ca3af)}body.erp-theme-dark .erp-document-relation.cancelled,body.erp-theme-dark .erp-document-relation.current.cancelled{background:#3a1f24;border-color:#ef4444}body.erp-theme-dark .erp-document-relation.cancelled:hover{background:#45232a;border-color:#f87171}body.erp-theme-dark .erp-document-relation-cancelled-label{background:#b91c1c;color:#fff}
body.erp-theme-dark .erp-document-note{background:#172b36;color:#d6e5ec;border-color:#4ca3c7}body.erp-theme-dark .erp-document-section-title{color:var(--erp-dark-text,#e5e7eb);border-color:var(--erp-dark-border,#374151)}body.erp-theme-dark .erp-document-section-title>i{color:var(--erp-dark-muted,#9ca3af)}body.erp-theme-dark .erp-document-timeline:before{background:var(--erp-dark-border,#374151)}body.erp-theme-dark .erp-document-timeline-dot{background:var(--erp-dark-surface-deep,#111827);color:#64748b}body.erp-theme-dark .erp-document-timeline-content{background:var(--erp-dark-surface,#1f2937);border-color:var(--erp-dark-border,#374151)}body.erp-theme-dark .erp-document-timeline-top span,body.erp-theme-dark .erp-document-timeline-note{color:var(--erp-dark-muted,#9ca3af)}
@media(max-width:767px){.erp-document-head{align-items:flex-start;flex-direction:column}.erp-document-head-status{padding:0}.erp-document-summary-card{min-height:62px}.erp-document-toolbar{top:50px;align-items:stretch;flex-direction:column}.erp-document-tools{justify-content:flex-end}.erp-document-meta{display:block}.erp-document-meta>div{border-right:0;border-bottom:1px solid #e4e7eb}.erp-document-meta>div:last-child{border-bottom:0}.erp-document-timeline-top{align-items:flex-start;flex-direction:column;gap:2px}}

/* ERP v1.26.2 - Documents section actions & audit diff cleanup */
.erp-document-section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:8px 0 10px;padding-bottom:7px;border-bottom:1px solid #e5e7eb}
.erp-document-section-head .erp-document-section-title{flex:1;margin:0;padding:0;border:0}
.erp-document-section-actions{display:flex;align-items:center;justify-content:flex-end;gap:6px;margin:0;flex:0 0 auto}
.erp-document-section-actions .btn{white-space:nowrap}
body.erp-theme-dark .erp-document-section-head{border-color:var(--erp-dark-border,#374151)}
body.erp-theme-dark .erp-document-section-actions .btn-default{background:var(--erp-dark-surface-alt,#18212f);border-color:var(--erp-dark-border,#374151);color:#cbd5e1}
body.erp-theme-dark .erp-document-section-actions .btn-default:hover,body.erp-theme-dark .erp-document-section-actions .btn-default:focus{background:var(--erp-dark-surface-soft,#263244);border-color:var(--erp-dark-border-strong,#4b5563);color:#fff}
@media(max-width:767px){.erp-document-section-head{align-items:flex-start;flex-wrap:wrap}.erp-document-section-head .erp-document-section-title{min-width:100%}.erp-document-section-actions{justify-content:flex-start;width:100%}.erp-document-section-actions .btn{white-space:normal}}
