/*==========  Non-Mobile First Method  ==========*/

@media only screen and (max-width : 1279px) {
    .dashboard #energyunits, .dashboard #onlinepayment {max-width: 370px;}

    .dashboard #energyunits #energyChart { height: 166px !important;}
    .dashboard #energyunits #energyunits-form { margin: -20px -20px 20px !important; padding: 20px; }
    .dashboard #energyunits #energyunits-form .energy_units-title #energy_units-active-month {font-size: 16px;}
    .dashboard #energyunits #energyunits-form .energy_units-title a {width: 28px; height: 28px;font-size: 18px;}
    .dashboard #energyunits_content ul > li > span.row-value {font-size: 13px;}
    .dashboard #energyunits_content ul > li > span.row-title {font-size: 13px;}
    .dashboard .dash-block .dash-block-wr {padding: 20px;}
    .dashboard #energyunits_content #energy-inner {bottom: 65px;}
    .dashboard #energyunits_content #energy-inner .energy-inner-value {font-size: 14px;}

    .dashboard #accountstate_content ul > li > span.row-title {font-size: 13px;}
    .dashboard #accountstate_content ul > li > span.row-value {font-size: 15px;}
    .dashboard #accountstate_content ul > li {margin: 15px 0;}

    .dashboard #mydetails_content ul > li {margin: 15px 0;}
    .dashboard #mydetails_content ul > li > span.row-title {font-size: 13px;}
    .dashboard #mydetails_content ul > li > span.row-value {font-size: 13px;text-align: right;}

    .dashboard #annualconsumption .dash-block-title-wr h2 {font-size: 18px;}

}

/* Large Devices, Wide Screens */
@media only screen and (max-width : 1023px) {
    body {padding-left: 0;}
    h1 {font-size: 22px;}

    .container { max-width: 1140px; }

    .btn {height: 40px;}

    #mainmenu-button {display: block; margin-right: 15px;}
    #mainmenu-close {display: block;}

    nav {display: none; width: 230px;left: -230px;z-index: 10000; overflow-y: auto;}
    nav .moduletable_menu > h3 {padding-right: 50px;}

    #contract {margin-right: auto; margin-left: 30px;}

    body .chzn-container {min-width: 230px;}

    div .nksbilling_info {overflow: visible;}

    body .nksbilling_info table,
    body .nksbilling_info table thead,
    body .nksbilling_info table tbody,
    body .nksbilling_info table tr,
    body .nksbilling_info table td,
    body .nksbilling_info table th {display: block; width: 100% !important;border: none;}

    body .nksbilling_info table thead {display: none;}

    body .nksbilling_info table tr {border: 1px solid #D8D9E4; margin-bottom: 28px; border-radius: 8px;padding: 12px 11px 7px;position: relative;}
    body .nksbilling_info table td[data-title]:not([data-title=""]) {display: flex; justify-content: flex-end; align-items: center;font-weight: bold; font-size: 13px;padding: 8px; text-align: right; }
    body .nksbilling_info table td[data-title]:not([data-title=""])::before {content: attr(data-title);display: block; margin-right: auto;font-weight: normal;padding-right: 5px;}
    body .nksbilling_info table td.stick-title {position: absolute; top: -18px; left: 14px; display: block; background: #FFF;color: #747982; width: auto !important;}
    body .nksbilling_info table td.stick-title::before {display: none;}

    body .nksbilling_info table tbody:last-child tr:last-child {margin-bottom: 0;}

    /* #main .all-content {padding: 26px 24px 24px 24px;} */

    .rangeform label {font-size: 13px;}
    .rangeform input {height: 40px; width: 125px;font-size: 13px;}

    body .nksbilling_info table tr.gray, body .nksbilling_info table tr.gray td {background: #F6F6FB;}
    body .nksbilling_info table tr.last-total {display: flex; justify-content: space-between;}
    body .nksbilling_info table tr.last-total > td {justify-content: flex-start;}
    body .nksbilling_info table tr.last-total > td::before {display: none;}
    body .nksbilling_info table tr.last-total > td:last-child {justify-content: flex-end;}

    body #settlements table td::before {content: attr(data-title); margin-right: 5px;font-weight: normal;order: 1;}
    body #settlements table td::after {content: attr(data-subtitle); display: block; margin-right: auto;font-weight: normal;order: 2;color: #747982;}
    body #settlements table td > span {order: 3;}

    body #meteringdevices table td.TypeOfDevice.stick-title {left: 100px;}
    body #meteringdevices table td.InstallationLlocation.stick-title {}

    body #meteringdevices table td::before {content: attr(data-subtitle) " " attr(data-title) ; }

    .dashboard #energyunits, .dashboard #onlinepayment { max-width: 360px; }

    .devices_content .reading_submit.rline {margin-top: 20px;}

    .js-calendar .calendar-container table {display: table; width: auto !important;}
    .js-calendar .calendar-container table thead {display: table;}
    .js-calendar .calendar-container table thead tr {display: table-row;margin-bottom: 0; border-radius: 0; padding: 0;border: none;}
    .js-calendar .calendar-container table tbody {display: table;}
    .js-calendar .calendar-container table td {display: table-cell;width: auto !important;}
    .js-calendar .calendar-container table th {display: table-cell;}
    .js-calendar .calendar-container table td::before {display: none;}
    .js-calendar .calendar-container table tbody tr {display: table-row;margin-bottom: 0; border-radius: 0; padding: 0;border: none;}

    .dashboard .dash-block { padding: 5px; }
    .dashboard .dash-wr {margin: -5px;}

    #registrationrequest-form h2 { font-size: 16px; }
    #registrationrequest-form h4 { margin-bottom: 11px; }
    .registrationrequest-form-wr { padding: 20px; }
    .registrationrequest-form-wr, #registrationrequest-form > .control-group { max-width: 100%; }
    .registrationrequest-form-wr .control-group:nth-child(6) .control-label { display: none; }

    .path-dodatkovo-kontakty h2 { font-size: 15px; }
    .path-dodatkovo-kontakty .grafik + p { font-size: 12px; }

    .path-potochnyi-rakhunok #bills > #container > div.btl-labelsubmit { border: none; width: auto; position: absolute; left: 0; }
    .path-potochnyi-rakhunok #bills > #container > div.btl-labelsubmit > #pay_sum { text-align: left; background: none; }
    .path-potochnyi-rakhunok #main .all-content .nksbilling_info.plain { padding: 20px; }
}

/* Medium Devices, Desktops */
@media only screen and (max-width : 992px) {
    .container { max-width: 960px; }

    .path-dodatkovo-kontakty .contact-misc, .path-dodatkovo-kontakty #contact-form { padding: 20px; }
    .path-dodatkovo-kontakty #contact-form button { margin-bottom: 20px;     margin-left: auto; margin-right: 0; }
    .path-dodatkovo-kontakty .grafik { padding: 16px; }
    .path-dodatkovo-kontakty .grafik > .row.bold { margin-top: 20px; }
}

/* Small Devices, Tablets */
@media only screen and (max-width : 767px) {

    input[type="text"],
    input[type="password"],
    input[type="number"],
    input[type="email"] {height: 42px;font-size: 13px;}

    .container { max-width: 720px; }

    .rangeform {margin-left: 0 !important;}

    header > .container-fluid {padding-left: 15px; padding-right: 15px;}
    #content > .container-fluid {padding-left: 15px; padding-right: 15px;}

    #login-form .user-notification {display: none;}
    #login-form .user-menu-link .u-name {display: none;}
    #login-form .user-menu-link .icon {display: none;}

    #mainmenu-button {margin-right: 5px;}

    .nksbilling_acc_info > #container {position: relative;}
    .nksbilling_acc_info > #container > .btl-label {position: absolute; background: #FFF; padding: 0px 5px; font-size: 11px; z-index: 10; top: -3px; left: 22px;}
    .nksbilling_acc_info > #container > .btl-label h4 {margin: 0;font-size: 11px;}
    .nksbilling_acc_info .btl-contract-data {width: 100%;}

    #contract .chzn-container {width: 100% !important;min-width: auto;}
    #contract {margin-right: 15px; margin-left: 15px; width: 100%;}

    #login-form .avatar {margin-left: 0;margin-right: 0;}
    #login-form .user-submenu::before {transform: unset; left: unset; right: 15px;}
    #login-form .user-submenu > li > a {padding: 7px 10px;}
    #login-form .user-submenu .logout-button {padding: 7px 10px;}

    #main h1 {width: 100%;}
    /* #main .all-content {padding: 26px 16px 20px 16px;} */

    .rangeform div.btl-labelsubmit {width: 100%;}
    .rangeform > fieldset > #container {flex-wrap: wrap;}
    .rangeform > fieldset > #container .btn-wrapper .btn {padding: 0; width: 40px;}
    .rangeform > fieldset > #container .btn-wrapper .btn i {display: block;}
    .rangeform > fieldset > #container .btn-wrapper .btn span {display: none;}
    .rangeform > fieldset > #container .btl-submit-form {margin-left: -10px;}

    body .nksbilling_info table tr {padding: 12px 5px 7px;}
    body .nksbilling_info table td {font-size: 12px}

    .cab {margin-left: -15px; margin-right: -15px;font-size: 13px; min-height: unset;}
    .cab .cab-left-side {position: relative; width: 100%;padding: 30px; align-items: flex-end; justify-content: space-between; }
    .cab .cab-left-side .copyright { position: unset; margin-top: 10px; }
    .cab .cab-left-side .copyright a { font-size: 10px; }
    .cab .cab-left-side .cab-left-side-wr {max-width: 100%;display: flex; flex-wrap: wrap;justify-content: space-between;}
    #main .cab .cab-left-side h1 {font-size: 28px;}
    .cab .cab-left-side .btn {height: 40px; font-size: 13px;padding: 0 24px;}
    .cab .cab-left-side .description {width: calc(100% - 200px);margin-bottom: 0;margin-right: 10px;}

    .cab .cab-right-side {width: 100%;padding: 30px;margin-left: 0;}
    .cab .cab-right-side .cab-left-side-title h2 {font-size: 26px;}
    .cab .cab-right-side .btn {height: 50px;}
    .cab .cab-right-side form .control-group {margin-bottom: 20px;}

    .accruals_content #slide-accruals .accordion-group {padding: 0px 20px}
    .accruals_content #slide-accruals .accordion-group .accordion-body {margin-top: 10px;}

    .devices_content #slide-services .accordion-group {padding: 0px 20px}
    .devices_content #slide-services .accordion-group .accordion-body {margin-top: 10px;}

    #main #accruals tr.gray td:first-child {text-indent: -9999px;}
    #main #accruals tr.gray td:first-child::before {text-indent: 0;}
    .accordion a.accordion-toggle {padding: 14px 0;}

    .item-page div[itemprop="articleBody"] {padding: 24px;}

    .profile #member-profile .control-group {flex-wrap: wrap;}
    .profile #member-profile .control-group.radio {flex-wrap: nowrap;}
    .profile #member-profile .control-group .control-label {width: 100%; margin-bottom: 10px;}
    .profile #member-profile .control-group.radio .control-label {margin-bottom: 0;}
    .profile #member-profile .control-group .controls {width: 100%;}

    .devices_content .reading_submit.rline {flex-wrap: wrap;padding: 0px 16px 16px 16px;}
    .devices_content .reading_submit.rline .device_photo {padding-right: 0;margin-bottom: 10px;}
    .devices_content .reading_submit.rline .btl-labelsubmit label {font-size: 13px;}
    .devices_content .reading_submit.rline .device_photo .btl-photosubmit input[type="file"] {min-height: 150px;}
    .devices_content .reading_submit.rline .device_photo .btl-photosubmit .gallery {min-height: 150px;}
    .devices_content .reading_submit.rline .device_photo .btl-photosubmit .photosubmit-overlay {min-height: 150px;}
    .devices_content .reading_submit.rline .device_photo .btl-photosubmit .gallery > div {padding: 2px;}

    .dashboard .dash-block {padding: 6px 10px;}
    .dashboard .dash-wr {flex: unset;width: 100%;margin: 0;padding: 0;}
    .dashboard .dash-block .dash-block-wr {padding: 16px;}

    .dashboard #accountstate_content ul > li:last-child {margin-bottom: 0;}
    .dashboard #mydetails_content ul > li:last-child {margin-bottom: 0;}

    .dashboard .dashboard-wr { flex-direction: column; }

    .dashboard #energyunits #energyChart {height: 200px !important;}
    .dashboard #energyunits_content #energy-inner {bottom: 82px;}

    .dashboard #energyunits, .dashboard #onlinepayment { max-width: 100%; }

    .dashboard #energyunits { order: 1; }
    .dashboard #annualconsumption { order: 2; }

    #month-day-select {margin-top: 10px;}
    #month-day-select .month {width: 100%;}
    .btn-back {margin-top: 10px;}

    #registrationrequest-form h4 { font-size: 15px; }
    .registrationrequest-form-wr .control-group:nth-child(3), .registrationrequest-form-wr .control-group:nth-child(4) { width: 100%; max-width: 100%; margin-bottom: 16px; }
    .registrationrequest-form-wr .control-group:nth-child(3) { margin-right: 0px; }

    .path-dodatkovo-kontakty .contact-wr { display: flex; margin: -12px; flex-direction: column;}
    .path-dodatkovo-kontakty .contact-miscinfo, .path-dodatkovo-kontakty .contact-form { padding: 12px; width: 100%; }
    .path-dodatkovo-kontakty .contact-misc, .path-dodatkovo-kontakty #contact-form { padding: 16px; }
    .path-dodatkovo-kontakty #contact-form button { float: none; margin-bottom: 0px; }
    .path-dodatkovo-kontakty #contact-form .control-group:last-child { margin-bottom: 8px; }

    .path-potochnyi-rakhunok #bills > #container { justify-content: flex-start; }
    .path-potochnyi-rakhunok #bills > #container > div.btl-labelsubmit { position: inherit; width: 100%; padding-bottom: 0; padding-left: 0; }
    button.liqpay, button.portmone { margin-bottom: 0px; }
    button.liqpay { margin-left: 0px; }

    .path-potochnyi-rakhunok #main .all-content .nksbilling_info.plain { padding: 20px 16px; }

    .nksbilling_info .bills_pays {flex-direction: column; align-items: flex-end; }
    .nksbilling_info .bills_pays div.payments_buttons { display: inline-flex; flex-wrap: wrap; margin-top: 0; justify-content: flex-end; }
}

/* Extra Small Devices, Phones */
@media only screen and (max-width : 479px) {
    .rangeform input {width: 110px;padding: 0 10px;}
    .rangeform > fieldset > #container div.btl-datesubmit {margin: 0 5px;}
    .rangeform > fieldset > #container .btl-submit-form {margin-left: -5px;}
    .rangeform .btn-wrapper {margin-left: 8px;}

    body #settlements table td {flex-wrap: wrap; justify-content: flex-start;}
    body #settlements table td::before {order: 1; margin-right: auto;}
    body #settlements table td::after {order: 3; width: 100%;}
    body #settlements table td > span {order: 2;}

    .cab .cab-left-side {padding: 20px 16px;}
    .cab .cab-left-side .description { width: 100%; margin-bottom: 15px; margin-right: 0; }
    #main .cab .cab-left-side h1 {font-size: 22px;}
    .cab .cab-right-side .cab-left-side-title h2 {font-size: 22px;}
    .cab .cab-right-side {padding: 15px;}
    .cab .cab-right-side .cab-left-side-title {margin-bottom: 24px;}
    .cab .cab-right-side .cab-links {}
    .cab .cab-right-side .cab-links .remember {order: 3;}
    .cab .cab-right-side .cab-links .cab-reset {margin-left: 0;}

    #account, #account #container {width: 100%;}
    #account #container .chzn-container {width: 100% !important; min-width: 150px;}
    #account #container .btl-accound-data {margin: 6px 10px 0px 10px;width: 100%;}

    .item-page div[itemprop="articleBody"] {padding: 20px;}

    .item-page div[itemprop="articleBody"] h3 {margin-top: 15px;}

    #main .profile.profile-edit .all-content {padding: 16px;}

    .profile #member-profile .submit a.btn {width: 120px;}
    .profile #member-profile .submit button.btn {width: 120px;}

    .devices_content .reading_submit.rline .input-append input {width: 100%;}
    .devices_content .reading_submit.rline .reading_submit_right .btnsubmit {width: 100%;}
    .devices_content .reading_submit.rline .reading_submit_right {width: 100%;}

    .registrationrequest-form.times .times-table .time-wr {min-width: 50%;}

    .fancybox-content { padding: 30px; }
    .receipt > table { width: 290px; }

    .registrationrequest-form-wr { padding: 16px; margin-bottom: 16px; }

    .dashboard #onlinepayment button#liqpay_submit, .dashboard #onlinepayment button#portmone_submit, .dashboard #onlinepayment button:hover#portmone_submit, .dashboard #onlinepayment button:focus#portmone_submit { width: 125px; padding-left: 20px; padding-right: 20px; }
}

/* Custom, iPhone Retina */
@media only screen and (max-width : 320px) {
    .registrationrequest-form.times .times-table .time-wr {min-width: 100%;}
}

/*IE 10+ only */
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
  body {overflow-x: hidden;}
}
