/*----------------------------------------------
Author : www.webthemez.com
License: Commons Attribution 3.0
http://creativecommons.org/licenses/by/3.0/
------------------------------------------------*/
/*
color shades from darkest to brightest
#1f1f1f
#454545
#707070
#9d9d9d
#cdcdcd

*/
.klasa_testowa_do_podglądu_kolorów{
  color: #0051b6; /*adminhost - blue*/
  color: #7db1d3; /*adminhost - blue - hover*/
  color: #1f1f1f; /*tło*/
  color: #4a4a4a; /*panele + górny pasek menu + boczne menu*/
  color: #cccccc; /*tekst + napis w brandingu + nagłówki h*/
  color: #353535; /*drugi poziom menu*/
  color: #707070; /*menu "hover"*/
  color: #999999; /*kolor tekstu w formularzach*/
  color: #4d804e; /*elementy ui - zielony*/
  color: #31708f; /*elementy ui - niebieski*/
  color: #966f2b; /*elementy ui - pomarańczowy*/
  color: #a94442; /*elementy ui - czerwony*/
  color: #1a1a1a; /*elementy ui - tekst w guzikach*/
}

/*
LOGIN
MEDIA QUERIES  
COMMON STYLES
MENU STYLES
DASHBOARD STYLES
UI ELEMENTS STYLES
CHARTS
TABS AND PANELS
RESPONSIE TABLES
FORMS
*/

/*----------------------------------------------
    LOGIN
------------------------------------------------*/

#wrapper-login {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 90vh;
}
.panel-login {
  width: 80%;
  max-width: 400px;
  text-align: center;
  background: #1f1f1f !important;
}
.panel-login-header {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 400px;
  gap: 10px;
  margin-bottom: 15px;
}
.panel-login-header img:first-child {
  /* Ograniczenie dla kółka (logo) */
  max-height: 50px; /* lub inna wartość, którą uznasz za odpowiednią */
  width: auto;
}
.panel-login-header img:last-child {
  /* Ograniczenie dla napisu */
  max-width: calc(100% - 60px); /* 50px dla logo + 10px gap */
  height: auto;
}
.panel-login-footer {
  border: 0px;
  padding-bottom: 30px;
}
.panel-login-footer .btn-login{
  width: 49%;
  background-color: #0051b6;
}
.btn-login {
  color: #cecece;
  background-color: #0051b6;
}
.btn-login:hover {
  background-color: #7db1d3;
}

/*----------------------------------------------
    LOGIN
------------------------------------------------*/

/*----------------------------------------------
    MEDIA QUERIES     
------------------------------------------------*/
 
@media(min-width:768px) {
  #page-wrapper{
    margin: 0 0 0 260px;
    padding: 15px 30px;
    min-height: 1200px;
 }
 .navbar-side {
    width: 260px;
    z-index: 1;
 }
  .navbar {
    border-radius: 0px; 
  }
}
@media(max-width:480px) {
  .page-header small {
    display: block;
    padding-top: 14px;
    font-size: 19px;
  }
  .panel-left {
    width: 85px;
    height: 85px; 
    border-radius: 100%;
    overflow: hidden;
    margin: 14px;
  }
}

/*----------------------------------------------
 MEDIA QUERIES     
------------------------------------------------*/

/*----------------------------------------------
    COMMON  STYLES    
------------------------------------------------*/
@font-face {
  font-family: 'Roboto';
  src: url('/assets/fonts/roboto/Roboto-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

html, body {
  font-family: 'Roboto', Roboto;
  /* font-family: 'Open Sans', sans-serif; */
  background: #1f1f1f !important;
  color: #cccccc;
  /* overflow-x: hidden; */
  max-width: 100%;
}
#wrapper {
  width: 100%;
}
#page-wrapper {
  min-height: 600px;
  background: #1f1f1f;
}
#page-inner {
  width:100%;
  margin: 10px 0 !important;
  background-color:transparent;
  padding:10px;
  min-height:1200px;
}
.text-center {
  text-align:center;
}
.no-boder {
  border:0px;
}
a, a:visited, a:active, a:hover {
  color: #cccccc;
}
h1, .h1, h2, .h2, h3, .h3 {
margin-top: 7px;
margin-bottom: -5px;
color: #cccccc;
}
h2 {
  color: #cccccc;
}
h4 {
  padding-top:10px;
  color: #cccccc;
}
.square-btn-adjust {
  border: 0px solid transparent; 
  -webkit-border-radius: 0px;
  -moz-border-radius: 0px;
  border-radius: 0px;
}
p {
  font-size:16px;
  line-height:25px;
  padding-top:20px;
}
.navbar-side {
  z-index: 0; 
}
.panel {
  border:0px;
  background-color: #4a4a4a;
}
.navbar-side .nav > li > a > i {
  color: #FFFFFF;
  padding: 8px;
  width: 30px;
  text-align: center;
}
.top-navbar {
  position: fixed;
  width: 100%;
  z-index: 300;
}
.navbar-side {
  z-index: 1;
  position: fixed;
  width: 260px;
}
#page-wrapper {
  position: relative;
  top: 55px;
}
.top-navbar .nav > li > a:hover, .top-navbar .nav > li > a:focus {
  text-decoration: none;
  background-color: #2497BA;
  color: #fff;
}
.nav .open > a, .nav .open > a:hover, .nav .open > a:focus {
  background-color: #23C1CD;
  border-color: #24C2CD;
}
.breadcrumb {
  padding: 18px;
  margin-bottom: 20px;
  list-style: none;
  background-color: #4a4a4a;
  border-radius: 0;
  -webkit-box-shadow: 0 1px 1px rgba(0,0,0,.05);    box-shadow: 0 1px 1px rgba(0,0,0,.05);
}
.dropdown-menu>li>a {
  display: block;
  padding: 3px 20px;
  clear: both;
  font-weight: 400;
  line-height: 1.42857143;
  color: #333;
  white-space: nowrap;
  font-size: 13px;
}
.dropdown-menu>li>a i {
  color: #24C2CE;
}
.text-muted {
  color: #FB5651;
}
.badge {
  display: inline-block;
  min-width: 10px;
  padding: 4px 7px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
  background-color: #24C2CE;
  border-radius: 10px;
}
.btn, a.btn {
  color: #1a1a1a;
}
.modal-content {
background-color: #4a4a4a;
border: 0px;
}
.modal-header{
  border: 0px;
}
.modal-body{
  border: 0px;
}
.modal-footer{
  border: 0px;
}

/* Styl suwaka (kompaktowy) */
.switch {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 20px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0;
  right: 0; bottom: 0;
  background-color: #ccc;
  transition: .3s;
  border-radius: 20px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #4CAF50;
}

input:checked + .slider:before {
  transform: translateX(16px);
}

/* Zaokrąglony suwak */
.slider.round {
  border-radius: 20px;
}


/*----------------------------------------------
    COMMON  STYLES    
------------------------------------------------*/

/*----------------------------------------------
    MENU STYLES    
------------------------------------------------*/
.user-image {
  margin: 25px auto;
  -webkit-border-radius: 10px;
  -moz-border-radius: 10px;
  border-radius: 10px;
  max-height:170px;
  max-width:170px;
}
.top-navbar {
  margin:0px;
}
.top-navbar .navbar-brand {
  color: #cccccc;
  width: 260px;
  text-align: center;
  height: 60px;
  font-size: 24px;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 30px;
  background: #1f1f1f;
}
.navbar-brand b {
  color: #4BD28C;
}
.top-navbar .nav > li {
  position: relative;
  display: inline-block;
  margin: 0px;
  padding: 0px;
}
.top-navbar .nav > li > a {
  position: relative;
  display: block;
  padding: 20px;
  color: #FFFFFF;
  margin: 0px;
}
.top-navbar .nav > li > a:hover, .top-navbar .nav > li > a:focus {
  text-decoration: none;
  color: #319DB5 !important;
  background: transparent;
}
.top-navbar .dropdown-menu {
  min-width: 230px;
  border-radius: 0 0 4px 4px;
}
.top-navbar .dropdown-menu > li > a:hover, .top-navbar .dropdown-menu > li > a:focus {
  color: #225081;
  background:none;
}
.dropdown-tasks {
  width: 255px;
}
.dropdown-tasks .progress {
  height: 8px;
  margin-bottom: 8px;
  overflow: hidden;
  background-color: #f5f5f5;
  border-radius: 0px;
}
.dropdown-tasks > li > a { 
  padding: 0px 15px;
}
.dropdown-tasks p {
  font-size: 13px;
  line-height: 21px;
  padding-top: 4px;
}
.active-menu {
  background-color: #707070 !important;
  color: #fff !important;
}
.active-menu i {
  color: #fff !important;
}
.arrow {
  float: right;
  margin-top: 8px;
}
.fa.arrow:before {
  content: "\f104";
}
.active > a > .fa.arrow:before {
  content: "\f107";
}
.nav-second-level li,
.nav-third-level li {
  border-bottom: none !important;
}
.nav-second-level li a {
  padding-left: 37px;
}
.nav-third-level li a {
  padding-left: 55px;
}
.sidebar-collapse , .sidebar-collapse .nav {
	background:none;
}
.sidebar-collapse .nav {
	padding:0;
}
.sidebar-collapse .nav > li > a {
	color: #FFFFFF;
	background:transparent;
	text-shadow:none;
}
.sidebar-collapse > .nav > li > a {
	padding: 12px 10px;
}
.sidebar-collapse > .nav > li {
	border-bottom: 1px solid rgba(107, 108, 109, 0.19);
}
ul.nav.nav-second-level.collapse.in {
  background: #353535;
}
.sidebar-collapse .nav > li > a:hover,
.sidebar-collapse .nav > li > a:focus {
  background: #707070;
	outline:0;
}
/* Styl aktywnego elementu menu */
.sidebar-collapse .nav > li.active > a,
.sidebar-collapse .nav li.active > a {
    background-color: #909090 !important; /* lekko jaśniejszy niż hover */
    color: #ffffff !important;
}

/* Styl aktywnego podmenu */
.sidebar-collapse .nav .nav-second-level li.active > a {
    background-color: #a9a9a9 !important;
    color: #ffffff !important;
}

/* Ikonki aktywne też na biało */
.sidebar-collapse .nav li.active > a > i {
    color: #ffffff !important;
}
.navbar-side {
	border:none;
	background: #4A4A4A !important;
}
.top-navbar {
	background: #4A4A4A;
	border-bottom:none;
}
.top-navbar .nav > li > a > i {
  margin-right: 2px;
}
.top-navbar .navbar-brand:hover { 
  color: #cccccc;
  background: #1f1f1f;
}
.dropdown-user li {
  margin: 8px 0;
}
.navbar-default {
  border:0px solid black;   
}
.navbar-header {
  background: transparent;
  position: relative;
}
.navbar-default .navbar-toggle:hover, .navbar-default .navbar-toggle:focus {
  background-color: #283643;
}
.navbar-default .navbar-toggle {
  border-color: #fff;
  position: absolute;
  right: 10px;
  top: 15px;
  margin: 0 !important;
}
.navbar-default .navbar-toggle .icon-bar {
  background-color: #FFF;
}
.nav > li > a > i {
  margin-right:10px;
  color: #FFF;
}
.dropdown-menu>li>a>strong {
  color: #1CC09F;
  padding: 5px 0;
  display: inline-block;
  font-weight: 500;
}
#sideNav {
  position: absolute;
  right: -28px;
  z-index: 3;
  background-color: #CFCECE;
  padding: 3px 9px;
  top: -11px;
  color: #283643;
  cursor:pointer;
  border-radius: 0 15px 15px 0;
  width: 28px;
  font-size: 16px;
}
ul.dropdown-menu.dropdown-messages li a div {
  padding: 2px 0;
}

/* =========================================================
   TOP NAV DROPDOWNS: stały tekst + hover tło, bez zmiany koloru
   Wklej NA KOŃCU pliku CSS (po Twoich regułach)
   ========================================================= */

/* 1) Linki w dropdownach – stały kolor zawsze */
.top-navbar .dropdown-menu > li > a,
.top-navbar .dropdown-menu > li > a:hover,
.top-navbar .dropdown-menu > li > a:focus,
.top-navbar .dropdown-menu > li > a:active,
.top-navbar .dropdown-menu > li.active > a,
.top-navbar .dropdown-menu > li.active > a:hover,
.top-navbar .dropdown-menu > li.active > a:focus {
  color: #cccccc !important;
  background: transparent;
  text-decoration: none;
}

/* 2) Tło po najechaniu / focus (klawiatura) */
.top-navbar .dropdown-menu > li > a:hover,
.top-navbar .dropdown-menu > li > a:focus {
  background-color: #707070 !important;
}

/* 3) Wymuś stały kolor dla elementów w środku (strong/em/span/i itd.) */
.top-navbar .dropdown-menu > li > a *,
.top-navbar .dropdown-menu > li > a:hover *,
.top-navbar .dropdown-menu > li > a:focus *,
.top-navbar .dropdown-menu > li > a:active * {
  color: #cccccc !important;
}

/* 4) Jeśli bootstrap dodaje "active" po kliknięciu – też bez zmiany koloru tła/tekstu */
.top-navbar .dropdown-menu > .active > a,
.top-navbar .dropdown-menu > .active > a:hover,
.top-navbar .dropdown-menu > .active > a:focus {
  color: #cccccc !important;
  background-color: #707070 !important;
}

/* (opcjonalnie) divider pod Twój motyw */
.top-navbar .dropdown-menu .divider {
  background-color: #707070;
}
/* TOP NAV: nie zmieniaj tła ikonki (user/envelope/bell) po kliknięciu/otwarciu dropdowna */
.top-navbar .nav > li.open > a,
.top-navbar .nav > li.open > a:hover,
.top-navbar .nav > li.open > a:focus,
.top-navbar .nav > li > a:active {
  background-color: transparent !important;
  color: #cccccc !important;
}

/* Jeśli dropdown jest w <ul class="navbar-top-links ..."> */
.navbar-top-links > li.open > a,
.navbar-top-links > li.open > a:hover,
.navbar-top-links > li.open > a:focus {
  background-color: transparent !important;
  color: #cccccc !important;
}

/*----------------------------------------------
    MENU STYLES    
------------------------------------------------*/

/*----------------------------------------------
   DASHBOARD STYLES    
------------------------------------------------*/
.page-header {
  padding-bottom: 9px;
  margin: 10px 0 20px;
  border-bottom: 1px solid transparent;
  text-align: left;
}
.panel-left {  
  width: 100px;
  height: 100px;
  background: #32D088;
  border: 0px solid white;
  border-radius: 100%;
  overflow: hidden;
  margin: 12px;
}
.panel-left .fa-5x {
  font-size: 3em;
  color: rgba(255, 255, 255, 0.69);
  padding: 29px 0;
  margin-bottom:30px;
}
.panel-right {  
  height: 124px;
  background: transparent;
  margin-bottom: 0;
  color: #999999;
  background-color: #4a4a4a;
  float: left;text-align: left;padding-left: 20px;
}
.panel-right h3 {  
  font-size: 40px;
  padding: 18px 10px 13px 0;
  color: #cccccc;
}
.panel-back {
  background-color:#4a4a4a;
}
.jumbotron {
  padding:20px;
}
.jumbotron p {
  margin-bottom: 15px;
  font-size: 15px;
  font-weight: 200;
}
.jumbotron, .well {
  background:#4a4a4a;
}
.noti-box {
  min-height: 100px;
  padding: 20px;
}
.noti-box .icon-box {
  display: block;
  float: left;
  margin: 0 15px 10px 0;
  width: 70px;
  height: 70px;
  line-height: 75px;
  /*vertical-align: middle;*/
  text-align: center;
  font-size: 40px;
}
.text-box p {
  margin: 0 0 3px;
}
.main-text {
  font-size: 25px;
  font-weight:600;
}
.set-icon {
  -webkit-border-radius: 50px;
  -moz-border-radius: 50px;
  border-radius: 50px;
}
.panel-primary {
  display:inline-block;
  margin-bottom: 30px;
  width:100%;
  background-color: #4a4a4a;
}
.green {
  /* background-color: #1CC09F; */
  color: #353535;
}
.blue {
  background-color: #32CEE4;
  color: #fff
}
.red {
  background-color: #FB6E51;
  color:#fff;
}
.brown {
  background-color: #F5B252;
  color:#fff;
}
.back-footer-red {
  background-color: #F0433D;
  color:#fff;
  border-top: 0px solid #fff;
}
.icon-box-right {
  display: block;
  float: right;
  margin: 0 15px 10px 0;
  width: 70px;
  height: 70px;
  line-height: 75px;
  /*vertical-align: middle;*/
  text-align: center;
  font-size: 40px;
}
.main-temp-back {
  background: #8702A8;
  color: #FFFFFF;
  font-size: 16px;
  font-weight: 300;
  text-align: center;
}
.main-temp-back .text-temp {
  font-size: 40px;
}
.back-dash {
  padding:20px;
  font-size:20px;
  font-weight:500;
  -webkit-border-radius: 0px;
  -moz-border-radius: 0px;
  border-radius: 0px;
  background-color:#2EA7EB;
  color:#fff;
}
.back-dash p {
  padding-top:16px;
  font-size:13px;
  color:#fff;
  line-height:25px;
  text-align:justify;
}
.color-bottom-txt {
  color: #000;
  font-size: 16px;
  line-height: 30px;
}
     /*CHAT PANEL*/
/*Charts*/

.main-chart {
	background: #fff;
}
.easypiechart-panel {
	text-align: center;
	padding: 1px 0;
	margin-bottom: 20px;
}
.placeholder h2 {
	margin-bottom: 0px;
}
.donut {
	width: 100%;
}
.easypiechart {
	position: relative;
	text-align: center;
	width: 120px;
	height: 120px;
	margin: 20px auto 10px auto;
}
.easypiechart .percent {
	display: block;
	position: absolute;
	font-size: 26px;
	top: 38px;
	width: 120px;
}
#easypiechart-blue .percent { 
  color: #30a5ff;
}
#easypiechart-teal .percent { 
  color: #1ebfae;
}
#easypiechart-orange .percent { 
  color: #ffb53e;
}
#easypiechart-red .percent { 
  color: #ef4040;
}
.chat-box {
  margin: 0;
  padding: 0;
  list-style: none;
}
.chat-box li {
  margin-bottom: 15px;
  padding-bottom: 5px;
  border-bottom: 1px dotted #808080;
}
.chat-box li.left .chat-body {
  margin-left: 90px;
}
.chat-box li .chat-body p {
  margin: 0;
  color: #8d8888;
}
.chat-img>img {
  margin-left:20px;
}
footer p {
  font-size: 14px;
}
.list-group-item, a.list-group-item {
  color: #cccccc;
  background-color: #4a4a4a;
}
a.list-group-item:hover, a.list-group-item:active {
  color: #cccccc;
  background-color: #707070;
}
/*----------------------------------------------
   DASHBOARD STYLES    
------------------------------------------------*/

/*----------------------------------------------
    UI ELEMENTS STYLES     
------------------------------------------------*/
.btn-circle {
  width: 50px;
  height: 50px;
  padding: 6px 0;
  -webkit-border-radius: 25px;
  -moz-border-radius: 25px;
  border-radius: 25px;
  text-align: center;
  font-size: 12px;
  line-height: 1.428571429;
}
.alert {
  border: 0px;
}
.alert-success {
  color: #dff0d8;
  background-color: #4d804e;
}
.alert-info {
  color: #d9edf7;
  background-color: #31708f;
}
.alert-warning {
  color: #fcf8e3;
  background-color: #966f2b;
}
.alert-danger {
  color: #f2dede;
  background-color: #a94442;
}
.open>.dropdown-menu {
  background-color: #4a4a4a;
}
.dropdown-menu>li>a {
  color: #cccccc;
}
.dropdown-menu>li>a:hover, .dropdown-menu>li>a:active {
  background-color: #707070;
}
/*----------------------------------------------
    UI ELEMENTS STYLES     
------------------------------------------------*/


/*----------------------------------------------
    CHARTS   
------------------------------------------------*/


/*----------------------------------------------
    CHARTS   
------------------------------------------------*/

/*----------------------------------------------
    TABS AND PANELS   
------------------------------------------------*/
.panel-default > .panel-heading {
  color: #cccccc;
  font-weight:bold;
  background: #4a4a4a;
  font-size: 16px;
  padding: 15px 15px 0;
  border: 0px;
}
.chat-panel .panel-body {
  height: 450px;
  overflow-y: scroll;
}
.panel-footer {
  background-color: #4a4a4a;
  border: 0px;
}

.nav>li>a:hover {
  background-color: #4e6fa1;
  opacity: 0.9;
}
.nav-tabs>li>a:hover {
  color: #cccccc;
  opacity: 1;
}
.nav-tabs>li.active>a, .nav-tabs>li.active>a:focus {
  color: #cccccc;
  background-color: #4e6fa1;
  opacity: 1;
}


/*----------------------------------------------
    TABS AND PANELS   
------------------------------------------------*/

/*----------------------------------------------
    RESPONSIVE TABLES   
------------------------------------------------*/
table, table th, table td {
  color: #fff;
}
.table.table-striped > tbody > tr:nth-of-type(odd) {
  background-color: #353535;
}
.table.table-hover > tbody > tr:hover {
  background-color: #1f1f1f;
}
.table tr.success td,
.table tr.info td,
.table tr.warning td,
.table tr.danger td {
  color: #000 !important;
}
.pagination > li > a {
  background-color: #444;    /* kolor tła */
  color: #fff;               /* kolor tekstu */
  border: 1px solid #444;    /* kolor obramowania (opcjonalnie) */
}
/* Stan przycisków po najechaniu (hover) lub w fokusa */
.pagination > li > a:hover,
.pagination > li > a:focus {
  background-color: #555;    /* kolor tła na hover */
  color: #fff;               /* kolor tekstu na hover */
  border-color: #555;        /* opcjonalnie */
}
/* Aktywny przycisk paginacji */
.pagination > li.active > a,
.pagination > li.active > a:hover,
.pagination > li.active > a:focus {
  background-color: #222;    /* kolor tła dla aktywnego guzika */
  color: #fff;               /* kolor tekstu */
  border-color: #222;        /* opcjonalnie */
}
.pagination > li.disabled > a,
.pagination > li.disabled > a:hover,
.pagination > li.disabled > a:focus {
  background-color: #555;    /* kolor tła na disabled */
  color: #fff;               /* kolor tekstu na disabled */
  border-color: #555;        /* opcjonalnie */
}
/*----------------------------------------------
    RESPONSIVE TABLES   
------------------------------------------------*/

/*----------------------------------------------
    FORMS   
------------------------------------------------*/

.input-group-addon {
  background-color: #181818;
  border: 0px;
}
.form-control {
  background-color: #181818;
  border: 0px;
  color: #999999;
}
.form-control:disabled::placeholder {
  color: #e4e4e4;
  background-color: #707070;
}
#disabledInput, #disabledInput input, #disabledSelect, #readonly{
  background-color: #707070;
  color: #e4e4e4;
}
.help-block {
  color: #999999;
}


/*----------------------------------------------
    FORMS   
------------------------------------------------*/

/*----------------------------------------------
    FORM
------------------------------------------------*/

#wrapper-form {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 10%;
}
.panel-form {
  width: 80%;
  max-width: 400px;
  text-align: center;
  background: #1f1f1f !important;
}
.panel-form-header {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 400px;
  gap: 10px;
  margin-bottom: 15px;
}
.panel-form-header img:first-child {
  /* Ograniczenie dla kółka (logo) */
  max-height: 50px; /* lub inna wartość, którą uznasz za odpowiednią */
  width: auto;
}
.panel-form-header img:last-child {
  /* Ograniczenie dla napisu */
  max-width: calc(100% - 60px); /* 50px dla logo + 10px gap */
  height: auto;
}
.panel-form-footer {
  border: 0px;
  padding-bottom: 30px;
}
.panel-form-footer .btn-form{
  width: 49%;
  background-color: #0051b6;
}
.btn-form {
  color: #cecece;
  background-color: #0051b6;
}
.btn-form:hover {
  background-color: #7db1d3;
}
.panel-form-footer .btn-form-final{
  width: 49%;
  background-color: #4d804e;
}
.btn-form-final {
  color: #cecece;
  background-color: #4d804e;
}
.btn-form-final:hover {
  background-color: #2fc131;
}
.required-star {
  color: red;
  margin-left: 4px;
}
/* Nawigation Section */
.navigation-section {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  flex-direction: row; /* ← wymuś poziomo */
  margin-top: 20px;
}
.navigation-section .btn-form {
  flex: 1 1 auto;
  padding: 10px 16px;
  min-width: 60px;
  max-width: 100px;
  text-align: center;
  background-color: #2a2a2a;
  color: #cecece;
  border: 1px solid #444;
  border-radius: 6px;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.navigation-section .btn-form:hover {
  background-color: #0051b6;
  color: #ffffff;
  border-color: #0051b6;
}
/* Nawigation Section */

/* PopUp Section */
.tooltip-box {
  position: absolute;
  background-color: #333;
  color: #fff;
  padding: 8px 12px;
  border-radius: 5px;
  font-size: 14px;
  z-index: 9999;
  max-width: 90vw; /* ważne! ogranicza szerokość do ekranu */
  word-wrap: break-word;
  white-space: normal; /* pozwala na łamanie linii */
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
}
/* PopUp Section */

/*----------------------------------------------
    FORM
------------------------------------------------*/
/*----------------------------------------------
    MOBILE UX HOTFIX
    Stage18: poprawa pracy na telefonach bez zmiany widoków desktopowych.
------------------------------------------------*/
@media(max-width:767px) {
  html, body {
    overflow-x: hidden;
  }

  body {
    font-size: 15px;
  }

  .top-navbar {
    min-height: 128px;
  }

  .top-navbar .navbar-header {
    min-height: 70px;
    width: 100%;
  }

  .top-navbar .navbar-brand {
    width: auto;
    max-width: calc(100% - 92px);
    height: 70px;
    padding: 18px 10px;
    font-size: 24px;
    line-height: 32px;
    text-align: left;
  }

  .top-navbar .navbar-brand img {
    max-height: 34px !important;
    margin-right: 6px;
  }

  .navbar-default .navbar-toggle {
    right: 10px;
    top: 18px;
    width: 58px;
    height: 44px;
    border-radius: 6px;
  }

  .navbar-default .navbar-toggle .icon-bar {
    width: 28px;
    margin-left: auto;
    margin-right: auto;
  }

  .navbar-top-links {
    float: none !important;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    min-height: 58px;
    margin: 0;
    padding: 0 8px;
    clear: both;
    border-top: 1px solid rgba(255,255,255,0.05);
  }

  .top-navbar .nav > li > a {
    padding: 17px 12px;
    min-height: 56px;
  }

  .top-navbar .badge {
    min-width: 26px;
    height: 26px;
    padding: 5px 7px;
    font-size: 13px;
    line-height: 16px;
    border-radius: 14px;
  }

  .top-navbar .dropdown-menu {
    position: fixed;
    top: 128px;
    left: 10px;
    right: 10px;
    width: auto;
    min-width: 0;
    max-width: none;
    max-height: calc(100vh - 148px);
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    z-index: 420;
    border: 0;
    box-shadow: 0 8px 20px rgba(0,0,0,0.35);
  }

  .top-navbar .dropdown-menu > li > a {
    white-space: normal;
    line-height: 1.35;
    padding: 12px 14px;
  }

  .navbar-side {
    position: fixed;
    top: 128px;
    left: 0;
    right: 0;
    width: 100% !important;
    max-height: calc(100vh - 128px);
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    z-index: 360;
    box-shadow: 0 8px 20px rgba(0,0,0,0.35);
  }

  .sidebar-collapse.collapse:not(.in) {
    display: none !important;
  }

  .sidebar-collapse.collapse.in,
  .sidebar-collapse.collapsing {
    display: block !important;
  }

  .sidebar-collapse > .nav > li > a,
  .nav-second-level li a,
  .nav-third-level li a {
    min-height: 52px;
    padding-top: 15px;
    padding-bottom: 15px;
    font-size: 18px;
  }

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

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

  .arrow {
    margin-top: 4px;
  }

  #page-wrapper {
    top: 128px;
    margin: 0 !important;
    padding: 0 10px 20px;
  }

  #page-inner {
    padding: 10px 0;
    min-height: auto;
  }

  .page-header {
    font-size: 28px;
    line-height: 1.2;
    margin: 12px 0 16px;
    word-break: break-word;
  }

  .page-header small {
    display: block;
    padding-top: 8px;
    font-size: 16px;
    line-height: 1.3;
  }

  .breadcrumb {
    padding: 12px;
    font-size: 14px;
  }

  .panel {
    margin-bottom: 16px;
  }

  .panel-heading {
    word-break: break-word;
  }

  .panel-body {
    padding: 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .row {
    margin-left: -5px;
    margin-right: -5px;
  }

  [class*="col-xs-"],
  [class*="col-sm-"],
  [class*="col-md-"],
  [class*="col-lg-"] {
    padding-left: 5px;
    padding-right: 5px;
  }

  .btn,
  a.btn,
  button.btn {
    max-width: 100%;
    white-space: normal;
    margin-bottom: 6px;
  }

  .btn-group,
  .btn-toolbar {
    max-width: 100%;
    white-space: normal;
  }

  .form-control,
  .input-group,
  .input-group .form-control {
    max-width: 100%;
  }

  .dataTables_wrapper .row {
    margin-left: 0;
    margin-right: 0;
  }

  .dataTables_length,
  .dataTables_filter,
  .dataTables_info,
  .dataTables_paginate {
    float: none !important;
    text-align: left !important;
    width: 100%;
    margin: 6px 0;
  }

  .dataTables_filter label,
  .dataTables_length label {
    width: 100%;
    display: block;
  }

  .dataTables_filter input,
  .dataTables_length select {
    display: block;
    width: 100% !important;
    max-width: 100%;
    margin: 6px 0 0;
  }

  .pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
  }

  .pagination > li > a,
  .pagination > li > span {
    margin-left: 0;
  }

  .table-responsive {
    border: 0;
    margin-bottom: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  table.table {
    table-layout: auto;
    word-break: normal;
  }

  table.rosanet-mobile-table {
    border: 0;
  }

  table.rosanet-mobile-table thead {
    display: none;
  }

  table.rosanet-mobile-table,
  table.rosanet-mobile-table tbody,
  table.rosanet-mobile-table tr,
  table.rosanet-mobile-table td {
    display: block;
    width: 100% !important;
  }

  table.rosanet-mobile-table tbody tr {
    margin: 0 0 12px;
    padding: 10px;
    border: 1px solid #707070;
    border-radius: 4px;
    background-color: #353535;
  }

  table.rosanet-mobile-table tbody tr:nth-of-type(odd) {
    background-color: #2b2b2b;
  }

  table.rosanet-mobile-table tbody td {
    position: relative;
    min-height: 34px;
    padding: 8px 0 8px 42% !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(204,204,204,0.18) !important;
    white-space: normal !important;
    overflow-wrap: anywhere;
  }

  table.rosanet-mobile-table tbody td:last-child {
    border-bottom: 0 !important;
  }

  table.rosanet-mobile-table tbody td:before {
    content: attr(data-label);
    position: absolute;
    left: 0;
    top: 8px;
    width: 38%;
    padding-right: 10px;
    color: #cccccc;
    font-weight: 700;
    overflow-wrap: anywhere;
  }

  table.rosanet-mobile-table tbody td form {
    display: block !important;
    margin-top: 6px;
  }

  table.rosanet-mobile-table tbody td .btn {
    display: inline-block;
    margin: 2px 2px 4px 0;
  }

  .nowrap {
    white-space: normal !important;
  }

  .dash-value,
  .kpi-value,
  .main-text {
    font-size: 22px;
  }

  #morris-finance-chart,
  canvas,
  svg {
    max-width: 100%;
  }
}

@media(max-width:420px) {
  .top-navbar .navbar-brand {
    font-size: 20px;
  }

  .top-navbar .navbar-brand img {
    max-height: 30px !important;
  }

  .top-navbar .nav > li > a {
    padding-left: 9px;
    padding-right: 9px;
  }

  table.rosanet-mobile-table tbody td {
    padding-left: 0 !important;
  }

  table.rosanet-mobile-table tbody td:before {
    position: static;
    display: block;
    width: 100%;
    margin-bottom: 4px;
    padding-right: 0;
  }
}
/*----------------------------------------------
    MOBILE UX HOTFIX
------------------------------------------------*/

/*----------------------------------------------
    MOBILE UX HOTFIX 2
    Stage21: poprawki menu, topbara i tabel na telefonach.
    Reguły są celowo ograniczone do mobile, żeby nie ruszać desktopu.
------------------------------------------------*/
@media(max-width:767px) {
  :root {
    --rosanet-mobile-topbar-height: 118px;
  }

  body {
    min-width: 0;
  }

  body.rosanet-mobile-menu-open {
    overflow: hidden;
  }

  #wrapper {
    padding-top: var(--rosanet-mobile-topbar-height, 118px);
  }

  .top-navbar {
    top: 0;
    left: 0;
    right: 0;
    min-height: auto !important;
    z-index: 1200;
  }

  .top-navbar .navbar-header {
    min-height: 64px;
    width: 100%;
  }

  .top-navbar .navbar-brand {
    width: 100%;
    max-width: 100%;
    height: 64px;
    padding: 16px 78px 12px 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .top-navbar .navbar-brand strong {
    display: inline;
    font-size: 20px;
    vertical-align: middle;
  }

  .top-navbar .navbar-brand img {
    max-height: 32px !important;
    vertical-align: middle;
  }

  .navbar-default .navbar-toggle {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 58px;
    height: 44px;
    padding: 9px 10px;
    z-index: 1210;
    touch-action: manipulation;
  }

  .navbar-top-links {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    min-height: 52px;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  .navbar-top-links > li {
    flex: 0 0 auto;
  }

  .top-navbar .nav > li > a {
    min-height: 52px;
    padding: 15px 12px;
    touch-action: manipulation;
  }

  .top-navbar .dropdown-menu {
    position: fixed !important;
    top: var(--rosanet-mobile-topbar-height, 118px);
    left: 8px;
    right: 8px;
    width: auto !important;
    max-height: calc(100vh - var(--rosanet-mobile-topbar-height, 118px) - 16px);
    z-index: 1300;
  }

  .navbar-side {
    top: var(--rosanet-mobile-topbar-height, 118px);
    bottom: 0;
    left: 0;
    right: 0;
    width: 100% !important;
    height: auto;
    max-height: none;
    z-index: 1150;
    border-top: 1px solid rgba(255,255,255,0.08);
  }

  .sidebar-collapse {
    max-height: calc(100vh - var(--rosanet-mobile-topbar-height, 118px));
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 88px;
  }

  .sidebar-collapse > .nav {
    margin: 0;
    padding: 6px 0 24px;
  }

  .sidebar-collapse > .nav > li:first-child > a {
    margin-top: 0;
  }

  .sidebar-collapse > .nav > li > a,
  .nav-second-level li a,
  .nav-third-level li a {
    position: relative;
    z-index: 1;
    min-height: 54px;
    padding-top: 16px;
    padding-bottom: 16px;
    line-height: 22px;
    touch-action: manipulation;
  }

  .sidebar-collapse > .nav > li > a > i,
  .nav-second-level li a > i,
  .nav-third-level li a > i {
    line-height: 22px;
  }

  #page-wrapper {
    top: 0 !important;
    margin: 0 !important;
    padding: 10px 10px 24px;
    min-height: auto;
  }

  #page-inner {
    margin: 0 !important;
    padding: 10px 0 20px;
    min-height: auto;
  }

  .page-header {
    font-size: 26px;
    margin-top: 8px;
    margin-bottom: 14px;
  }

  .panel-body {
    overflow-x: visible;
  }

  .table-responsive,
  .dataTables_wrapper {
    overflow: visible;
  }

  table.rosanet-mobile-table {
    margin-bottom: 0;
  }

  table.rosanet-mobile-table tbody tr {
    box-shadow: 0 2px 8px rgba(0,0,0,0.22);
  }

  table.rosanet-mobile-table tbody td {
    min-height: 32px;
    padding-top: 9px !important;
    padding-bottom: 9px !important;
  }

  table.rosanet-mobile-table tbody td[data-label=""],
  table.rosanet-mobile-table tbody td:not([data-label]) {
    padding-left: 0 !important;
  }

  table.rosanet-mobile-table tbody td[data-label=""]:before,
  table.rosanet-mobile-table tbody td:not([data-label]):before {
    content: none;
  }

  table.rosanet-mobile-table tbody td.rosanet-mobile-actions,
  table.rosanet-mobile-table tbody td[data-label="Akcje"],
  table.rosanet-mobile-table tbody td[data-label="Opcje"] {
    padding-left: 0 !important;
  }

  table.rosanet-mobile-table tbody td.rosanet-mobile-actions:before,
  table.rosanet-mobile-table tbody td[data-label="Akcje"]:before,
  table.rosanet-mobile-table tbody td[data-label="Opcje"]:before {
    position: static;
    display: block;
    width: 100%;
    margin-bottom: 6px;
  }

  table.rosanet-mobile-table tbody td.rosanet-mobile-actions .btn,
  table.rosanet-mobile-table tbody td[data-label="Akcje"] .btn,
  table.rosanet-mobile-table tbody td[data-label="Opcje"] .btn {
    width: 100%;
    margin: 3px 0;
    text-align: center;
  }

  table.rosanet-mobile-table tbody td.rosanet-mobile-actions form,
  table.rosanet-mobile-table tbody td[data-label="Akcje"] form,
  table.rosanet-mobile-table tbody td[data-label="Opcje"] form {
    width: 100%;
  }

  .form-inline .form-group,
  .form-inline .form-control,
  .form-inline .btn {
    display: block;
    width: 100%;
    margin-right: 0;
  }

  .input-group {
    display: table;
    width: 100%;
  }

  .alert,
  .well,
  .list-group-item {
    overflow-wrap: anywhere;
  }
}

@media(max-width:420px) {
  :root {
    --rosanet-mobile-topbar-height: 112px;
  }

  .top-navbar .navbar-brand {
    height: 60px;
    padding-top: 14px;
    padding-right: 72px;
  }

  .top-navbar .navbar-brand strong {
    font-size: 18px;
  }

  .navbar-default .navbar-toggle {
    top: 8px;
  }

  .navbar-top-links {
    min-height: 50px;
  }
}

/*----------------------------------------------
    MOBILE MENU VISIBILITY HOTFIX
    Stage26: ukrywa sam kontener menu, gdy Bootstrap collapse jest zamknięty.
    Poprawka jest celowo ograniczona do mobile, żeby nie ruszać desktopu.
------------------------------------------------*/
@media(max-width:767px) {
  .navbar-side {
    display: none !important;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
  }

  body.rosanet-mobile-menu-open .navbar-side,
  .navbar-side.rosanet-mobile-menu-visible {
    display: block !important;
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
  }

  body:not(.rosanet-mobile-menu-open) .sidebar-collapse,
  body:not(.rosanet-mobile-menu-open) .sidebar-collapse.collapse,
  body:not(.rosanet-mobile-menu-open) .sidebar-collapse.collapsing {
    display: none !important;
    height: 0 !important;
    max-height: 0 !important;
    overflow: hidden !important;
  }

  body.rosanet-mobile-menu-open .sidebar-collapse,
  body.rosanet-mobile-menu-open .sidebar-collapse.collapse.in,
  body.rosanet-mobile-menu-open .sidebar-collapse.collapsing {
    display: block !important;
    height: auto !important;
    max-height: calc(100vh - var(--rosanet-mobile-topbar-height, 118px));
    overflow-y: auto !important;
    overflow-x: hidden !important;
  }
}



/*----------------------------------------------
    MOBILE MENU AND TABLE HOTFIX
    Stage27: poprawka regresji menu oraz bezpieczny fallback tabel na telefonach.
    Reguły są celowo ograniczone do mobile, żeby nie ruszać desktopu.
------------------------------------------------*/
@media(max-width:767px) {
  .navbar-side {
    display: block !important;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateX(-105%);
    transition: transform 180ms ease, opacity 140ms ease;
    top: var(--rosanet-mobile-topbar-height, 118px);
    bottom: 0;
    left: 0;
    right: auto;
    width: min(88vw, 340px) !important;
    max-width: 340px;
    height: auto;
    max-height: calc(100vh - var(--rosanet-mobile-topbar-height, 118px));
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    background-color: #4a4a4a;
    z-index: 1250;
    box-shadow: 8px 0 24px rgba(0,0,0,0.35);
  }

  body.rosanet-mobile-menu-open .navbar-side,
  .navbar-side.rosanet-mobile-menu-visible {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
  }

  .sidebar-collapse,
  .sidebar-collapse.collapse,
  .sidebar-collapse.collapse.in,
  .sidebar-collapse.collapsing,
  body:not(.rosanet-mobile-menu-open) .sidebar-collapse,
  body:not(.rosanet-mobile-menu-open) .sidebar-collapse.collapse,
  body:not(.rosanet-mobile-menu-open) .sidebar-collapse.collapsing,
  body.rosanet-mobile-menu-open .sidebar-collapse,
  body.rosanet-mobile-menu-open .sidebar-collapse.collapse.in,
  body.rosanet-mobile-menu-open .sidebar-collapse.collapsing {
    display: block !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }

  body.rosanet-mobile-menu-open:after {
    content: '';
    position: fixed;
    top: var(--rosanet-mobile-topbar-height, 118px);
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0,0,0,0.35);
    z-index: 1240;
    pointer-events: none;
  }

  body.rosanet-mobile-menu-open {
    overflow: hidden;
  }

  .panel-body,
  .table-responsive,
  .dataTables_wrapper,
  .dataTables_scroll,
  .dataTables_scrollBody {
    overflow-x: auto !important;
    overflow-y: visible !important;
    -webkit-overflow-scrolling: touch;
  }

  table.table,
  table.rosanet-mobile-table {
    display: table !important;
    width: auto !important;
    min-width: 720px;
    max-width: none;
    table-layout: auto;
  }

  table.table thead,
  table.rosanet-mobile-table thead {
    display: table-header-group !important;
  }

  table.table tbody,
  table.rosanet-mobile-table tbody {
    display: table-row-group !important;
  }

  table.table tr,
  table.rosanet-mobile-table tr,
  table.rosanet-mobile-table tbody tr,
  table.rosanet-mobile-table tbody tr:nth-of-type(odd) {
    display: table-row !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background-color: transparent !important;
  }

  table.table th,
  table.table td,
  table.rosanet-mobile-table th,
  table.rosanet-mobile-table td,
  table.rosanet-mobile-table tbody td,
  table.rosanet-mobile-table tbody td.rosanet-mobile-actions,
  table.rosanet-mobile-table tbody td[data-label="Akcje"],
  table.rosanet-mobile-table tbody td[data-label="Opcje"] {
    display: table-cell !important;
    width: auto !important;
    min-height: 0 !important;
    padding: 8px 10px !important;
    border: 1px solid #dddddd !important;
    white-space: nowrap !important;
    overflow-wrap: normal;
    vertical-align: middle;
  }

  table.rosanet-mobile-table tbody td:before,
  table.rosanet-mobile-table tbody td.rosanet-mobile-actions:before,
  table.rosanet-mobile-table tbody td[data-label="Akcje"]:before,
  table.rosanet-mobile-table tbody td[data-label="Opcje"]:before {
    content: none !important;
    display: none !important;
  }

  table.rosanet-mobile-table tbody td .btn,
  table.rosanet-mobile-table tbody td.rosanet-mobile-actions .btn,
  table.rosanet-mobile-table tbody td[data-label="Akcje"] .btn,
  table.rosanet-mobile-table tbody td[data-label="Opcje"] .btn {
    width: auto !important;
    display: inline-block;
    margin: 2px;
    white-space: nowrap;
  }

  table.rosanet-mobile-table tbody td form,
  table.rosanet-mobile-table tbody td.rosanet-mobile-actions form,
  table.rosanet-mobile-table tbody td[data-label="Akcje"] form,
  table.rosanet-mobile-table tbody td[data-label="Opcje"] form {
    width: auto !important;
    display: inline-block !important;
  }
}
