:root {
  --bs-primary: #023f63;
  --bs-primary-rgb: 2, 63, 99;
  --bs-btn-bg: #023f63;
}

html,
body {
  height: 100%;
  padding: 0px;
  margin: 0px;
  color: #000004;
}

div.dataTables_wrapper div.dataTables_length select {
  min-width: 60px !important;
}

.btn-primary {
  background-color: var(--bs-primary);
  border-color: var(--bs-primary);
  color: #ffffff;
}

.fl {
  float: left;
}

/* ************ LOGIN PAGE ************ */
div#login {
  height: 100%;
}

div#login div#top {
  height: 50%;
  text-align: center;
  vertical-align: bottom;
  position: relative;
  background: #333333;
  border: 1px solid #353535;
}

#login div.logobox {
  position: relative;
  height: 100%;
  bottom: 20px;
  text-align: center;

}

#login div#bottom {
  text-align: center;
  vertical-align: bottom;
  position: relative;
  background: #FFFFFF;
  border-top: 1px solid #000;
}

#login .loginForm {
  margin: 0 auto 0 auto;
  padding-top: 50px;
  text-align: center;
  width: 450px;
}

#login .loginForm input[type='text'],
#login .loginForm input[type='password'] {
  border: 0px;
  padding: 4px 4px 4px 6px;
  width: 202px;
  color: #545557;
  height: 20px;
  background: url('images/design_login_input.png') no-repeat;
}

#login .loginForm input[type='image'] {
  border: 0px;
  text-align: right;
  margin: 20px 0px 0 145px;
}

#login div {
  vertical-align: top;
  padding: 0px;
  font-family: Arial;
  font-size: 10pt;
}

#login img {
  border-width: 0px;
}

#login td img,
embed {
  display: block;
}

#login td img.inline {
  display: inline;
}

/* ************ ADMIN PAGE ************ */
body {
  height: 100%;
  padding: 0px;
  margin: 0px;
}

div#container {
  min-width: 960px;
  /* max-width:1600px; */
  margin: 0 auto;
}

#header {
  width: 100%;
  height: 130px;
}

#header #top {
  display: block;
  width: 100%;
  height: 83px;
}

#header #top div.menu {
  background: url('images/design_bg_top.png') repeat-x;
  height: 30px;
}

#header #top div.menu div a,
#header #top div.menu div span {
  color: #E6E6E4;
  float: right;
  padding-top: 6px;
  margin-right: 5px;
}

#header #top div.logo {
  /* background: url('images/design_bg_logo.png') repeat-x; */
  height: 42px;
}

#header #top div.navbar {
  background: url('images/design_bg_menu.png') repeat-x;
  height: 44px;
  padding-left: 20px;
}

#header #top div.navbar a {
  float: left;
  border-left: 1px solid #F6F6F6;
  border-right: 1px solid #D0D0D0;
  color: #454545;
  font-family: Tahoma;
  padding: 11px 30px 11px 10px;
  background: url('images/bg_button_menu.png') right 17px no-repeat;
  text-decoration: none;
}

#cursorMessageDiv {
  position: absolute;
  z-index: 99999;
  border: solid 1px #CCC;
  background: #EEE;
  padding: 2px;
  margin: 0px;
  display: none;
}

/* Admin menu buttons styling */
.admin-btn {
  display: inline-flex;
  padding: 0.5rem 1rem;
  margin: 0 0.25rem 5px;
  border: 1px solid #023f63;
  border-radius: 0.375rem;
  background-color: #fff;
  color: #023f63;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.8rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.admin-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background-color: #023f63;
  transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
}

.admin-btn:hover {
  color: #fff;
  box-shadow: 0 8px 16px rgba(13, 110, 253, 0.3);
  transform: translateY(-2px);
}

.admin-btn:hover::before {
  left: 0;
}

/* Adjust navbar for button spacing */
.navbar-nav .admin-btn {
  margin: 0.25rem 0 0 5px;
  padding: 0.45rem 0.85rem;
  font-size: 0.8rem;
}

#content {
  padding: 0 10px 50px 10px;
  clear: both;
}

#content div.contentBox {
  background: #F9F9F9;
  border: 1px solid #DDDDDD;
  padding: 10px;
  -moz-border-radius: 4px;
  -webkit-border-radius: 4px;
  border-radius: 4px;
}

#content div.contentHeader {
  color: #444348;
  border-bottom: 1px dotted #DADADA;
  padding-bottom: 10px;
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: bold;
}

#content div.header {
  background: #DEDEDE;
  color: #61625D;
  padding: 5px 0 5px 5px;
  font-size: 13px;
  font-weight: bold;
}

#content form div.formField {
  margin-top: 15px;
}

#content form div.fieldDesc {
  font-size: 11px;
  font-weight: bold;
}

#content form div.fieldForm {
  margin-top: 5px;
}

#content form div.fieldForm input,
#content form div.fieldForm textarea {
  padding: 4px 0 4px 2px;
  font-family: Tahoma;
  font-size: 12px;
}

#content form input[type='button'],
#content form input[type='reset'],
#content form input[type='submit'] {
  background-image: url('images/bg_button.png');
  border: 1px solid #DFDFDF;
  color: #0075E9;
  font-weight: bold;
  font-family: Arial;
  padding: 3px 5px 3px 5px;
  margin-right: 5px;
  -moz-border-radius: 3px;
  -webkit-border-radius: 3px;
  border-radius: 3px;
}

table {
  border-width: 0px;
  border-collapse: collapse;
  clear: both;
}

table tr.header th {
  background: #E6E6E6;
  color: #61625D;
  border: 1px solid #CCCCCC;
  font-size: 13px;
  padding: 10px 0 10px 0;
}

table tr td {
  background: #FFF;
  color: #4A4444;
  /* border: 1px solid #CCCCCC; padding: 10px 5px 10px 5px; */
}

table.basic tr td {
  padding: 2px 4px 2px 4px;
}

td,
div {
  vertical-align: top;
  padding: 0px;
}

div.navbar {
  font-size: 13px;
}

img {
  border-width: 0px;
}

td img,
embed {
  display: block;
}

td img.inline {
  display: inline;
}

div.menu {
  color: #FFF8E7;
  font-size: 10pt;
}

a {
  color: #0075E9;
  text-decoration: none;
}

a.button {
  display: inline-block;
  border: 1px solid #DDDDDD;
  padding: 3px 10px 3px 10px;
  background: url('/style/images/design_bg_button.png') repeat-x;
}

a.button_active {
  font-weight: bold;
  display: inline-block;
  border: 1px solid #DDDDDD;
  padding: 3px 10px 3px 10px;
  background: url('/style/images/design_bg_button.png') repeat-x;
}

a:hover {
  text-decoration: underline;
}

a.button_active:hover,
a.button:hover {
  text-decoration: none;
}

a.cc {
  color: #820001;
}

a:hover.cc {
  color: #FFFFFF;
  background: #E10000;
  text-decoration: none;
}

a.cc2 {
  color: #FFFFFF;
  background: #E10000;
  text-decoration: none;
}

tr#table_tr {
  background: #6665FE;
  border-top: 1px solid #FFFFFF;
  border-bottom: 1px solid #FFFFFF;
}

tr#table_tr td {
  padding: 10px 0 10px 0;
  color: #FFFFFF;
  border: 1px solid #FFFFFF;
  text-align: center;
}

tr.grey {
  background: #787878;
  border-bottom: 1px solid #FFFFFF;
}

tr.grey td {
  padding: 10px 0 10px 0;
  color: #FFFFFF;
  border: 1px solid #FFFFFF;
  text-align: center;
}

span.red {
  color: #C5130E;
}

tr.listItems {
  border-top: 1px solid #FFFFFF;
  border-bottom: 1px solid #FFFFFF;
}

tr.listItems td {
  padding: 3px;
  border: 1px solid #FFFFFF;
}

tr.listItemsB td {
  padding: 3px;
  border: 1px solid #000;
}

.editable {
  background-color: #ffffd3;
}

img.progress {
  vertical-align: middle;
  padding: 0 10px;
}

tr.lightblue {
  background: #EFEEFE;
}

tr.lightblue td {
  border: 1px solid #FFFFFF;
  padding: 3px;
}

div.likOp {
  float: left;
  width: 150px;
}

div.likOp div {
  padding-right: 5px;
  text-align: right;
  position: relative;
  top: 2px;
}

body.print {
  text-align: center;
  background: #FFFFFF;
}

div.p_container {
  margin: auto;
  width: 800px;
  padding-top: 20px;
}

div.p_container div,
div.p_container span,
div.p_container td {
  font-family: Times;
  font-size: 10pt;
}

div.p_container div.rodzaj {
  margin: 10px 0;
  font-family: Times;
  font-size: 12pt;
  clear: both;
}

div.p_container div.daty {
  clear: both;
  font-size: 12pt;
}

div.p_container div.nazwaJednostki,
div.p_container div.osOdp {
  margin: 10px 0;
  font-size: 12pt;
  float: left;
  font-weight: bold;
  width: 400px;
}

div.p_container div.skladZespolu div.lewa {
  margin: 10px 0;
  font-size: 12pt;
  float: left;
}

div.p_container div.skladZespolu div.prawa {
  margin: 10px 0;
  font-size: 12pt;
  width: 370px;
  float: right;
}

div.p_container div.osOdp {
  font-weight: normal;
  padding-top: 20px;
  width: 370px;
  float: right;
}

div.p_container div.podpis {
  font-weight: normal;
  font-size: 10pt;
}

span#p_title {
  font-size: 12pt;
  font-weight: bold;
}

table#p_dates td {
  margin: auto;
  text-align: left;
}

table#p_dates td {
  float: left;
  width: 400px;
  font-size: 12pt;
}

tr#p_tableHeader td {
  padding: 10px 0 10px 0;
  text-align: center;
  border: 2px solid #000000;
  border-bottom: 1px solid #000000;
}

tr#p_tableHeader2 td {
  font-size: 8pt;
  text-align: center;
  border: 2px solid #000000;
  border-top: 1px solid #000000;
}

tr.p_tableBottom td {
  border-top: 2px solid #000000;
}

tr.p_tableBottom td.b {
  border: 2px solid #000000;
}

tr.p_break td {
  border-bottom: 2px solid #000000;
  height: 15px;
}

tr.p_items td {
  font-size: 8pt;
  text-align: center;
  border: 2px solid #000000;
  border-top: 1px solid #000000;
  border-bottom: 1px solid #000000;
}

@media screen {
  .print_bg {
    background: url('images/bg_print.jpg') no-repeat;
    width: 500px;
    height: 500px;
  }
}

@media print {
  .print_bg {
    background: none;
  }
}