/* ==========================================================================
   Cabinet Demo Styles
   ========================================================================== */

/* Variables */
:root {
    --primary: #4a83b5;
    --primary-dark: #3c74a6;
    --primary-light: #29abe2;
    --bg: #f5f5f5;
    --white: #fff;
    --text: #333;
    --text-muted: #666;
    --border: #ddd;
    --success: #5cb85c;
    --warning: #f0ad4e;
    --danger: #d9534f;
    
    --sidebar-width: 250px;
    --sidebar-collapsed-width: 60px;
    --header-height: 60px;
}

/* Base */
* {
    box-sizing: border-box;
}

[x-cloak] {
    display: none !important;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Open Sans', Arial, sans-serif;
    background: var(--white);
    color: var(--text);
    overflow-x: hidden;
}

/* ==========================================================================
   Header
   ========================================================================== */

.cabinet-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: var(--white);
    border-bottom: 1px solid var(--border);
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    padding: 0;
    z-index: 100;
    -webkit-box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.cabinet-header-inner {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    width: 100%;
    max-width: 1170px;
    padding: 0 15px;
}

.header-logo {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    min-width: 0;
}

.header-logo img {
    height: 35px;
    width: auto;
}

.header-text {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    min-width: 0;
    margin-left: 12px;
}

.header-title {
    display: block;
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.2;
    white-space: nowrap;
}

.header-demo-note {
    display: block;
    margin-top: 2px;
    color: var(--text-muted);
    font-size: 11px;
    line-height: 1.2;
    white-space: nowrap;
}

.header-back {
    margin-left: auto;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    color: var(--primary);
    text-decoration: none;
    font-size: 14px;
    padding: 8px 12px;
    border-radius: 4px;
    -webkit-transition: all 0.2s;
    transition: all 0.2s;
}

.header-back:hover {
    background: var(--bg);
    color: var(--primary-light);
}

.header-back .glyphicon {
    margin-right: 6px;
}

/* Hamburger button (mobile) */
.hamburger-btn {
    display: none;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 20px;
    padding: 0;
    margin-right: 10px;
    border-radius: 4px;
    -webkit-transition: all 0.2s;
    transition: all 0.2s;
}

.hamburger-btn:hover {
    background: var(--bg);
    color: var(--primary);
}

/* ==========================================================================
   Sidebar
   ========================================================================== */

.cabinet-sidebar {
    position: fixed;
    top: var(--header-height);
    left: 0;
    bottom: 0;
    width: var(--sidebar-width);
    background: var(--primary);
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-transition: width 0.3s ease;
    transition: width 0.3s ease;
    z-index: 90;
}

.cabinet-sidebar.collapsed {
    width: var(--sidebar-collapsed-width);
}

/* Sidebar Header */
.sidebar-header {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    padding: 25px 15px;
    background: var(--primary-dark);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    height: 100px;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

.cabinet-sidebar.collapsed .sidebar-header {
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    padding: 10px 0;
}

.cabinet-sidebar.collapsed .sidebar-toggle {
    margin-right: 0;
}

.sidebar-logo {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    color: var(--white);
    opacity: 1;
    -webkit-transition: opacity 0.2s, width 0.2s;
    transition: opacity 0.2s, width 0.2s;
    overflow: hidden;
}

.cabinet-sidebar.collapsed .sidebar-logo {
    opacity: 0;
    width: 0;
    pointer-events: none;
}

.logo-image {
    max-width: 160px;
    max-height: 40px;
    width: auto;
    height: auto;
}

.logo-icon {
    font-size: 22px;
    opacity: 0.9;
}

.logo-text {
    margin-left: 10px;
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
}

.sidebar-toggle {
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(255,255,255,0.15);
    cursor: pointer;
    color: var(--primary-dark);
    font-size: 16px;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    border-radius: 50%;
    -webkit-transition: all 0.2s;
    transition: all 0.2s;
    -webkit-flex-shrink: 0;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    margin-right: 10px;
}

.sidebar-toggle:hover {
    background: rgba(255,255,255,0.2);
}

/* Sidebar Account */
.sidebar-account {
    padding: 10px 10px 12px;
    background: rgba(0,0,0,0.08);
    border-bottom: 1px solid rgba(255,255,255,0.12);
    color: var(--white);
}

.account-picker {
    position: relative;
    background: rgba(0,0,0,0.12);
}

.account-picker-button {
    position: relative;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    width: 100%;
    min-height: 42px;
    padding: 0;
    border: none;
    background: transparent;
    color: var(--white);
    text-align: left;
    cursor: pointer;
}

.account-picker-icon {
    width: 36px;
    color: #9fe5f2;
    font-size: 17px;
    text-align: center;
    -webkit-flex-shrink: 0;
    -ms-flex-negative: 0;
    flex-shrink: 0;
}

.account-picker-body {
    position: relative;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-flex: 1;
    -webkit-flex: 1 1 auto;
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
    min-width: 0;
    padding-right: 22px;
}

.account-picker-label {
    display: inline-block;
    margin: 0 5px 0 0;
    color: var(--white);
    font-size: 18px;
    font-weight: 700;
    line-height: 21px;
}

.account-picker-body strong {
    font-size: 21px;
    font-weight: 700;
    line-height: 21px;
}

.account-picker-button:focus {
    outline: none;
    -webkit-box-shadow: inset 0 0 0 2px rgba(255,255,255,0.22);
    box-shadow: inset 0 0 0 2px rgba(255,255,255,0.22);
}

.account-picker-arrow {
    position: absolute;
    right: 11px;
    top: 50%;
    margin-top: -6px;
    color: var(--white);
    font-size: 12px;
    pointer-events: none;
}

.account-picker.is-open .account-picker-arrow {
    -webkit-transform: rotate(180deg);
    -ms-transform: rotate(180deg);
    transform: rotate(180deg);
}

.account-dropdown {
    position: absolute;
    top: 42px;
    left: 0;
    right: 0;
    z-index: 105;
    overflow: hidden;
    background: #5aa280;
    border: 1px solid rgba(0,0,0,0.12);
    -webkit-box-shadow: 0 8px 18px rgba(0,0,0,0.18);
    box-shadow: 0 8px 18px rgba(0,0,0,0.18);
}

.account-dropdown-title {
    padding: 10px 10px;
    background: #83c9ad;
    color: var(--white);
    font-size: 12px;
    font-weight: 700;
}

.account-dropdown-item,
.account-dropdown-add {
    display: block;
    width: 100%;
    min-height: 48px;
    padding: 9px 12px;
    border: none;
    border-top: 1px dashed rgba(255,255,255,0.18);
    background: #5ba37f;
    color: var(--white);
    font-size: 13px;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
}

.account-dropdown-item:hover,
.account-dropdown-item.active,
.account-dropdown-add:hover {
    background: #73bb9a;
}

.account-dropdown-item small {
    display: block;
}

.account-dropdown-item span,
.account-dropdown-item strong {
    display: inline;
}

.account-dropdown-item strong {
    margin-left: 4px;
    font-size: 15px;
}

.account-dropdown-item small {
    margin-top: 2px;
    color: #edf8f3;
    font-size: 11px;
    font-weight: 400;
}

.account-dropdown-add {
    min-height: 38px;
    background: #88cdb3;
    font-weight: 700;
}

.account-dropdown-add .glyphicon {
    margin-right: 5px;
}

.account-meta {
    padding: 8px 4px 0 36px;
    color: var(--white);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.25;
    white-space: nowrap;
}

.account-meta_center {
    padding-top: 5px;
    color: #e9f5fc;
}

.cabinet-sidebar.collapsed .sidebar-account {
    padding: 8px 6px;
}

.cabinet-sidebar.collapsed .account-picker {
    display: block;
    min-height: 58px;
    text-align: center;
}

.cabinet-sidebar.collapsed .account-picker-button {
    display: block;
    min-height: 58px;
    padding-top: 6px;
    text-align: center;
}

.cabinet-sidebar.collapsed .account-picker-icon {
    display: block;
    width: auto;
    margin-bottom: 2px;
}

.cabinet-sidebar.collapsed .account-picker-body {
    display: block;
    padding-right: 0;
}

.cabinet-sidebar.collapsed .account-picker-label,
.cabinet-sidebar.collapsed .account-picker-arrow,
.cabinet-sidebar.collapsed .account-meta {
    display: none;
}

.cabinet-sidebar.collapsed .account-picker-body strong {
    font-size: 12px;
}

.cabinet-sidebar.collapsed .account-dropdown {
    display: none;
}

/* Sidebar Navigation */
.sidebar-nav {
    padding: 15px 0;
}

.nav-item {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    padding: 12px 20px;
    color: var(--white);
    text-decoration: none;
    -webkit-transition: all 0.2s;
    transition: all 0.2s;
    white-space: nowrap;
    overflow: hidden;
    opacity: 0.85;
}

.nav-item.active {
    background: var(--primary-dark);
    opacity: 1;
    font-weight: 600;
    border-left: 3px solid var(--white);
    padding-left: 17px;
    color: var(--white);
    text-decoration: none;
}

.nav-icon {
    font-size: 18px;
    width: 24px;
    text-align: center;
    -webkit-flex-shrink: 0;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    opacity: 0.75;
    -webkit-transition: opacity 0.2s;
    transition: opacity 0.2s;
}

.nav-item.active .nav-icon {
    opacity: 1;
    color: var(--white);
    text-decoration: none;
}

.nav-item:hover {
    background: rgba(0,0,0,0.12);
    color: var(--white);
    text-decoration: none;
}

.nav-item.active:hover {
    background: var(--primary-dark);
    color: var(--white);
    text-decoration: none;
}

.nav-text {
    margin-left: 12px;
    opacity: 1;
    -webkit-transition: opacity 0.2s;
    transition: opacity 0.2s;
}

.cabinet-sidebar.collapsed .nav-text {
    display: none;
}

.cabinet-sidebar.collapsed .nav-item {
    padding-left: 20px;
    padding-right: 20px;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
}

.cabinet-sidebar.collapsed .nav-item.active {
    padding-left: 17px;
}

.sidebar-bonus {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 10px 12px 10px 20px;
    border-top: 1px solid rgba(255,255,255,0.08);
    color: #ffdf33;
    font-size: 14px;
    font-weight: 600;
    opacity: 1;
    text-decoration: none;
}

.sidebar-bonus:hover {
    background: rgba(0,0,0,0.12);
    color: #ffdf33;
    text-decoration: none;
}

.bonus-icon {
    width: 24px;
    font-size: 18px;
    text-align: center;
}

.bonus-text {
    -webkit-box-flex: 1;
    -webkit-flex: 1 1 auto;
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
}

.bonus-value {
    min-width: 48px;
    padding: 3px 7px;
    border-radius: 0;
    background: #4d4d4d;
    color: #ffdf33;
    font-weight: 700;
    text-align: center;
}

.cabinet-sidebar.collapsed .sidebar-bonus {
    display: block;
    min-height: 58px;
    padding: 9px 6px;
    text-align: center;
}

.cabinet-sidebar.collapsed .bonus-icon {
    display: block;
    width: auto;
    margin-bottom: 5px;
}

.cabinet-sidebar.collapsed .bonus-text {
    display: none;
}

.cabinet-sidebar.collapsed .bonus-value {
    display: block;
    min-width: 0;
    padding: 2px 3px;
    font-size: 11px;
}

/* Mobile Overlay */
.sidebar-overlay {
    display: none;
}

/* ==========================================================================
   Main Content
   ========================================================================== */

.cabinet-main {
    margin-top: var(--header-height);
    margin-left: var(--sidebar-width);
    padding: 20px 30px;
    min-height: calc(100vh - var(--header-height));
    background: var(--white);
    -webkit-transition: margin-left 0.3s ease;
    transition: margin-left 0.3s ease;
}

.cabinet-main.collapsed {
    margin-left: var(--sidebar-collapsed-width);
}

/* Sections */
section {
    background: var(--white);
    border-radius: 4px;
    padding: 25px;
    -webkit-box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.section-header {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: justify;
    -webkit-justify-content: space-between;
    -ms-flex-pack: justify;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
}

.section-title {
    font-size: 22px;
    font-weight: 600;
    color: var(--text);
    margin: 0;
}

.period-select {
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 14px;
    color: var(--text);
    background: var(--white);
    cursor: pointer;
}

.period-select:focus {
    outline: none;
    border-color: var(--primary);
}

.section-placeholder {
    padding: 40px 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
}

/* ==========================================================================
   Charges Section
   ========================================================================== */

.charges-toolbar {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: justify;
    -webkit-justify-content: space-between;
    -ms-flex-pack: justify;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 18px;
}

.demo-notice {
    position: fixed;
    top: 76px;
    right: 24px;
    z-index: 140;
    max-width: 320px;
    padding: 12px 16px;
    border-radius: 4px;
    background: #3d4852;
    color: var(--white);
    font-size: 14px;
    -webkit-box-shadow: 0 8px 24px rgba(0,0,0,0.18);
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}

.charges-toolbar-left,
.charges-toolbar-right {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.charges-action,
.charges-icon-btn {
    height: 35px;
    padding: 7px 12px;
    border: 1px dashed #c8c8c8;
    border-radius: 4px;
    background: var(--white);
    color: #9a9a9a;
    font-size: 14px;
    line-height: 1.2;
    cursor: pointer;
    -webkit-transition: border-color 0.2s, color 0.2s;
    transition: border-color 0.2s, color 0.2s;
}

.charges-action:hover,
.charges-icon-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.charges-action .glyphicon {
    margin-right: 5px;
}

.charges-icon-btn {
    width: 35px;
    padding: 0;
}

.charges-settings {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-flex-wrap: wrap;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    gap: 10px 22px;
    margin: -4px 0 18px;
    padding: 14px 16px;
    border: 1px solid #d7e7f2;
    border-radius: 4px;
    background: #f7fbfd;
}

.charges-settings-option {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: var(--text);
    font-size: 13px;
    font-weight: 400;
    cursor: pointer;
}

.charges-settings-option input {
    margin: 0;
}

.charges-table-wrap {
    width: 100%;
    overflow-x: auto;
    border-radius: 6px;
}

.charges-table {
    width: 100%;
    min-width: 1260px;
    border-collapse: separate;
    border-spacing: 6px 0;
    color: var(--text);
    font-size: 12px;
}

.charges-table th {
    height: 74px;
    padding: 14px 10px;
    background: #d6eaf6;
    border: 1px solid #a9cfe6;
    border-bottom: none;
    border-radius: 4px 4px 0 0;
    color: #384858;
    font-weight: 600;
    text-align: center;
    vertical-align: middle;
}

.charges-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #d9d9d9;
    border-radius: 0 0 4px 4px;
    background: #f8f8f8;
    vertical-align: middle;
}

.charges-name-col {
    min-width: 330px;
    text-align: left !important;
}

.charges-tariff-col {
    min-width: 180px;
}

.charges-eye {
    display: inline-block;
    width: 31px;
    height: 31px;
    margin-right: 14px;
    padding-top: 8px;
    border: none;
    border-radius: 50%;
    background: #e9f4fb;
    color: var(--primary);
    text-align: center;
    line-height: 1;
    cursor: pointer;
}

.charges-eye:hover {
    background: #c7e3f4;
}

.charges-eye .glyphicon {
    margin: 0;
    font-size: 13px;
}

.charges-provider-row {
    cursor: pointer;
}

.charges-provider-row td {
    background: #e7f3f8;
}

.charges-provider-row .glyphicon {
    margin-right: 6px;
    color: #2d5876;
    font-size: 10px;
}

.charges-service-row td:first-child {
    padding-left: 26px;
}

.charges-service-row .muted-money {
    color: #c4c4c4;
}

.charges-table tfoot td {
    height: 66px;
    background: #d6eaf6;
    border-top: 1px solid #a9cfe6;
    border-bottom: 1px solid #a9cfe6;
}

.charges-total-label {
    font-weight: 600;
}

.charges-total-cell {
    color: #5f7382;
    line-height: 1.6;
}

.charges-total-cell strong,
.charges-total-cell b {
    color: var(--text);
}

.charges-subheader {
    margin-top: 48px;
}

.charges-table_penalties {
    min-width: 1120px;
}

/* ==========================================================================
   Online Payment Section
   ========================================================================== */

.payment-tabs {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: stretch;
    -webkit-align-items: stretch;
    -ms-flex-align: stretch;
    align-items: stretch;
    margin: -5px -5px 34px;
    border-bottom: 1px solid #e4e4e4;
}

.payment-tab {
    min-width: 185px;
    height: 50px;
    padding: 0 18px;
    border: none;
    border-right: 1px solid #dcdcdc;
    background: #e9e9e9;
    color: var(--text-muted);
    font-size: 14px;
    text-align: left;
    cursor: pointer;
    -webkit-transition: background 0.2s, color 0.2s;
    transition: background 0.2s, color 0.2s;
}

.payment-tab.active {
    background: var(--white);
    color: var(--text);
}

.payment-tab:hover {
    color: var(--primary);
}

.payment-tab .glyphicon {
    margin-right: 8px;
    color: #9cb7cc;
    font-size: 20px;
    vertical-align: middle;
}

.payment-tab.active .glyphicon {
    color: #5f829c;
}

.payment-title-row {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: justify;
    -webkit-justify-content: space-between;
    -ms-flex-pack: justify;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.payment-page-title {
    margin: 0;
    color: #777;
    font-size: 24px;
    font-weight: 300;
    line-height: 1.3;
}

.payment-summary-box {
    margin-bottom: 28px;
    padding: 16px;
    border: 1px solid #d6e0e8;
    border-radius: 4px;
    background: #f9fbfd;
}

.payment-summary-main {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 8px;
    color: #111;
    font-size: 16px;
    font-weight: 700;
}

.payment-summary-main strong {
    font-size: 17px;
}

.payment-summary-detail {
    margin-top: 8px;
    color: var(--text);
    font-size: 14px;
}

.payment-summary-detail strong {
    font-weight: 600;
}

.payment-summary-separator {
    margin-left: 22px;
}

.payment-recalc-warning {
    margin-top: 10px;
    color: #8a6d3b;
    font-size: 13px;
}

.payment-table-title {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    padding-left: 22px;
    color: var(--primary);
    font-size: 16px;
}

.payment-table-title .glyphicon {
    color: var(--success);
    font-size: 20px;
}

.online-payment-table-wrap {
    width: 100%;
    overflow-x: auto;
    border-left: 4px solid var(--primary);
    border-radius: 6px;
    padding-left: 18px;
}

.online-payment-table {
    width: 100%;
    min-width: 1120px;
    border-collapse: separate;
    border-spacing: 6px 0;
    color: var(--text);
    font-size: 12px;
}

.online-payment-table th {
    height: 74px;
    padding: 14px 10px;
    background: #d6eaf6;
    border: 1px solid #a9cfe6;
    border-bottom: none;
    border-radius: 4px 4px 0 0;
    color: #384858;
    font-weight: 600;
    text-align: center;
    vertical-align: middle;
}

.online-payment-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #d9d9d9;
    border-radius: 0 0 4px 4px;
    background: #f8f8f8;
    vertical-align: middle;
}

.payment-service-col {
    min-width: 430px;
    text-align: left !important;
}

.payment-eye {
    display: inline-block;
    width: 31px;
    height: 31px;
    margin-right: 14px;
    padding: 8px 0 0;
    border: none;
    border-radius: 50%;
    background: #e9f4fb;
    color: var(--primary);
    text-align: center;
    line-height: 1;
    cursor: pointer;
}

.payment-eye:hover {
    background: #c7e3f4;
}

.payment-eye .glyphicon {
    margin: 0;
    font-size: 13px;
}

.online-payment-provider-row {
    cursor: pointer;
}

.online-payment-provider-row td {
    background: #e7f3f8;
}

.online-payment-provider-row .glyphicon {
    margin-right: 6px;
    color: #2d5876;
    font-size: 10px;
}

.online-payment-service-row td:first-child {
    padding-left: 26px;
}

.online-payment-table tfoot td {
    height: 58px;
    background: #d6eaf6;
    border-top: 1px solid #a9cfe6;
    border-bottom: 1px solid #a9cfe6;
    font-weight: 600;
}

.payment-total-input {
    display: block;
    width: 100%;
    min-width: 130px;
    height: 32px;
    padding: 5px 8px;
    border: 1px solid #d9d9d9;
    border-radius: 0;
    background: #fff;
    color: var(--text);
    font-size: 13px;
    font-weight: 400;
    text-align: right;
}

.payment-total-input:focus {
    outline: none;
    border-color: var(--primary);
    -webkit-box-shadow: 0 0 0 2px rgba(74, 131, 181, 0.12);
    box-shadow: 0 0 0 2px rgba(74, 131, 181, 0.12);
}

.payment-actions {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: justify;
    -webkit-justify-content: space-between;
    -ms-flex-pack: justify;
    justify-content: space-between;
    gap: 14px;
    margin-top: 8px;
    padding-left: 26px;
}

.payment-bonus {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 10px;
    max-width: 360px;
    padding: 10px 14px;
    border-radius: 4px;
    background: #444;
    color: #ffc400;
    font-size: 13px;
    line-height: 1.25;
}

.payment-bonus .glyphicon {
    color: #ffc400;
    font-size: 27px;
}

.payment-action-buttons {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    gap: 8px;
}

.payment-recalculate-btn,
.payment-submit-btn {
    height: 42px;
    padding: 0 14px;
    border: none;
    border-radius: 4px;
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    -webkit-transition: opacity 0.2s, background 0.2s;
    transition: opacity 0.2s, background 0.2s;
}

.payment-recalculate-btn {
    background: #9a9a9a;
}

.payment-recalculate-btn:not(:disabled):hover {
    background: #7c7c7c;
}

.payment-recalculate-btn:disabled {
    cursor: default;
    opacity: 0.55;
}

.payment-recalculate-btn .glyphicon {
    margin-left: 6px;
}

.payment-submit-btn {
    min-width: 150px;
    background: #4CAF50;
}

.payment-submit-btn:hover {
    background: #43a047;
}

.payment-submit-btn:disabled {
    cursor: default;
    opacity: 0.55;
}

.payment-submit-btn:disabled:hover {
    background: #4CAF50;
}

/* ==========================================================================
   Operations Section
   ========================================================================== */

.operations-tabs {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: stretch;
    -webkit-align-items: stretch;
    -ms-flex-align: stretch;
    align-items: stretch;
    margin: -5px -5px 34px;
    border-bottom: 1px solid #e4e4e4;
}

.operations-tab {
    min-width: 185px;
    height: 50px;
    padding: 0 18px;
    border: none;
    border-right: 1px solid #dcdcdc;
    background: #e9e9e9;
    color: var(--text-muted);
    font-size: 14px;
    text-align: left;
    cursor: pointer;
    -webkit-transition: background 0.2s, color 0.2s;
    transition: background 0.2s, color 0.2s;
}

.operations-tab.active {
    background: var(--white);
    color: var(--text);
}

.operations-tab:hover {
    color: var(--primary);
}

.operations-tab .glyphicon {
    margin-right: 8px;
    color: #9cb7cc;
    font-size: 20px;
    vertical-align: middle;
}

.operations-tab.active .glyphicon {
    color: #5f829c;
}

.payments-panel {
    min-width: 0;
}

.payments-header {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: end;
    -webkit-align-items: flex-end;
    -ms-flex-align: end;
    align-items: flex-end;
    -webkit-box-pack: justify;
    -webkit-justify-content: space-between;
    -ms-flex-pack: justify;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 12px;
}

.payments-title {
    margin: 0;
    color: #777;
    font-size: 24px;
    font-weight: 300;
    line-height: 1.3;
}

.payments-summary {
    color: var(--text-muted);
    font-size: 13px;
    white-space: nowrap;
}

.payments-table-wrap {
    width: 100%;
    overflow-x: auto;
    border-radius: 6px;
}

.payments-table {
    width: 100%;
    min-width: 1120px;
    border-collapse: separate;
    border-spacing: 4px 0;
    color: var(--text);
    font-size: 12px;
}

.payments-table th {
    height: 55px;
    padding: 12px 14px;
    background: #d6eaf6;
    border: 1px solid #a9cfe6;
    border-bottom: none;
    border-radius: 4px 4px 0 0;
    color: #384858;
    font-weight: 600;
    text-align: center;
    vertical-align: middle;
}

.payments-table td {
    height: 37px;
    padding: 7px 12px;
    border-bottom: 1px solid #d8d8d8;
    border-radius: 0 0 4px 4px;
    background: #f8f8f8;
    vertical-align: middle;
}

.payment-row:hover td,
.payment-group.is-expanded .payment-row td {
    background: #eef6fb;
}

.payments-icon-col {
    width: 60px;
}

.payments-icon-cell {
    text-align: center;
}

.payment-detail-btn {
    width: 28px;
    height: 28px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: #6fa9d1;
    cursor: pointer;
    line-height: 28px;
    -webkit-transition: color 0.2s, background 0.2s;
    transition: color 0.2s, background 0.2s;
}

.payment-detail-btn:hover {
    background: #e4f1f9;
    color: var(--primary);
}

.payment-bank-cell {
    text-align: right;
}

.payment-bank-icon {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 3px;
    border-radius: 3px;
    background: #79a83b;
    color: var(--white);
    font-size: 10px;
}

.payment-muted {
    color: #b8c1c9;
}

.rub-badge {
    display: inline-block;
    margin-left: 5px;
    padding: 2px 5px;
    border-radius: 3px;
    background: #f5e8a8;
    color: #9a8220;
    font-size: 10px;
    line-height: 1;
    vertical-align: middle;
}

.payment-muted .rub-badge {
    background: #e6e6e6;
    color: #b3b3b3;
}

.payment-detail-row td {
    height: auto;
    padding: 0;
    background: #eef6fb;
}

.payment-detail {
    padding: 16px;
    border: 1px solid #c7e1f1;
    border-top: none;
    background: #f7fbfd;
}

.payment-detail-meta {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-flex-wrap: wrap;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    gap: 10px 30px;
    margin-bottom: 14px;
    color: var(--text-muted);
    font-size: 13px;
}

.payment-status {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.payment-status_success {
    background: #e8f5e8;
    color: #357a38;
}

.payment-status_processing {
    background: #fff3d8;
    color: #9a6a12;
}

.payment-detail-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--white);
    border: 1px solid #d7e7f2;
    border-radius: 5px;
    font-size: 12px;
    overflow: hidden;
}

.payment-detail-table th {
    height: 34px;
    padding: 8px 10px;
    background: #d6eaf6;
    border-bottom: 1px solid #bfdced;
    color: #384858;
    font-weight: 600;
    text-align: center;
}

.payment-detail-table th:first-child {
    text-align: left;
}

.payment-detail-table td {
    height: 32px;
    padding: 7px 10px;
    border-bottom: 1px solid #edf2f5;
    background: var(--white);
}

.payment-detail-table tfoot td {
    background: #d6eaf6;
    color: var(--text);
    font-weight: 600;
}

.payments-pagination {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 6px;
    min-height: 38px;
    padding: 7px 10px;
    background: #d6eaf6;
    border: 1px solid #a9cfe6;
    border-top: none;
    color: #5f7382;
    font-size: 12px;
}

.payments-pagination-label {
    margin-right: 4px;
    font-weight: 600;
}

.payment-page-btn {
    min-width: 28px;
    height: 27px;
    padding: 0 8px;
    border: 1px solid #9fc5df;
    border-radius: 4px;
    background: var(--white);
    color: var(--primary);
    font-weight: 600;
    cursor: pointer;
}

.payment-page-btn.active {
    background: var(--primary);
    color: var(--white);
}

.payment-page-btn:disabled {
    opacity: 0.45;
    cursor: default;
}

.payment-page-arrow .glyphicon {
    font-size: 10px;
}

/* ==========================================================================
   Settings Section
   ========================================================================== */

.settings-tabs {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: stretch;
    -webkit-align-items: stretch;
    -ms-flex-align: stretch;
    align-items: stretch;
    margin: -5px -5px 28px;
    border-bottom: 1px solid #e4e4e4;
}

.settings-tab {
    min-width: 220px;
    height: 50px;
    padding: 0 18px;
    border: none;
    border-right: 1px solid #dcdcdc;
    background: #e9e9e9;
    color: var(--text-muted);
    font-size: 14px;
    text-align: left;
    cursor: pointer;
    -webkit-transition: background 0.2s, color 0.2s;
    transition: background 0.2s, color 0.2s;
}

.settings-tab.active {
    background: var(--white);
    color: var(--text);
}

.settings-tab:hover {
    color: var(--primary);
}

.settings-tab .glyphicon {
    margin-right: 8px;
    color: #9cb7cc;
    font-size: 20px;
    vertical-align: middle;
}

.settings-tab.active .glyphicon {
    color: #5f829c;
}

.settings-panel {
    min-width: 0;
}

.settings-title-block {
    margin-bottom: 18px;
    text-align: center;
}

.settings-title-block h3 {
    margin: 0 0 8px;
    color: #111;
    font-size: 24px;
    font-weight: 700;
}

.settings-title-block p {
    margin: 0;
    color: var(--text-muted);
    font-size: 14px;
}

.settings-title-block .glyphicon {
    margin-right: 6px;
    color: #647382;
}

.settings-action-row {
    margin-bottom: 24px;
}

.settings-primary-btn,
.settings-secondary-btn,
.settings-muted-btn {
    min-height: 36px;
    padding: 8px 16px;
    border: 1px solid transparent;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.25;
    cursor: pointer;
    -webkit-transition: background 0.2s, border-color 0.2s, color 0.2s;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.settings-primary-btn {
    background: #43ad4b;
    border-color: #32993b;
    color: var(--white);
    text-transform: uppercase;
}

.settings-primary-btn:hover {
    background: #36983e;
    color: var(--white);
}

.settings-secondary-btn {
    background: var(--primary);
    border-color: var(--primary-dark);
    color: var(--white);
}

.settings-secondary-btn:hover {
    background: var(--primary-dark);
}

.settings-muted-btn {
    background: var(--white);
    border-color: #d6d6d6;
    color: var(--text-muted);
}

.settings-muted-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.account-add-form {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: end;
    -webkit-align-items: flex-end;
    -ms-flex-align: end;
    align-items: flex-end;
    gap: 12px;
    margin: -8px 0 18px;
    padding: 14px 16px;
    border: 1px solid #d7e7f2;
    border-radius: 6px;
    background: #f7fbfd;
}

.account-add-form label {
    display: block;
    -webkit-box-flex: 1;
    -webkit-flex: 1 1 240px;
    -ms-flex: 1 1 240px;
    flex: 1 1 240px;
    margin: 0;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 400;
}

.account-add-form span {
    display: block;
    margin-bottom: 6px;
}

.account-add-form input,
.account-note-input,
.profile-field input,
.profile-select {
    height: 34px;
    padding: 6px 10px;
    border: 1px solid #d9d9d9;
    border-radius: 3px;
    background: #f5f5f5;
    color: var(--text);
    font-size: 13px;
}

.account-add-form input {
    width: 100%;
}

.account-add-form input:focus,
.account-note-input:focus,
.profile-field input:focus,
.profile-select:focus {
    outline: none;
    border-color: var(--primary);
    -webkit-box-shadow: 0 0 0 2px rgba(74, 131, 181, 0.12);
    box-shadow: 0 0 0 2px rgba(74, 131, 181, 0.12);
}

.accounts-box {
    padding: 10px 48px;
    border: 1px solid #a9cfe6;
    border-radius: 8px;
    background: #eef8fd;
}

.account-row {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 14px;
    min-height: 50px;
    margin: 0 0 10px;
    padding: 10px 34px 10px 28px;
    border: 1px solid #a9cfe6;
    border-radius: 8px;
    background: var(--white);
}

.account-row:last-child {
    margin-bottom: 0;
}

.account-number {
    min-width: 220px;
    color: #444;
    font-size: 17px;
    white-space: nowrap;
}

.account-number .glyphicon {
    margin-right: 8px;
    color: #c8c8c8;
}

.account-number strong {
    font-size: 20px;
}

.account-note-input {
    -webkit-box-flex: 1;
    -webkit-flex: 1 1 auto;
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
    min-width: 220px;
}

.account-note-control {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-flex: 1;
    -webkit-flex: 1 1 auto;
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
    min-width: 260px;
}

.account-note-control .account-note-input {
    min-width: 0;
    border-radius: 3px 0 0 3px;
}

.account-save-btn {
    width: 36px;
    height: 34px;
    border: 1px solid #32993b;
    border-left: none;
    border-radius: 0 3px 3px 0;
    background: #43ad4b;
    color: var(--white);
    cursor: pointer;
    -webkit-flex-shrink: 0;
    -ms-flex-negative: 0;
    flex-shrink: 0;
}

.account-save-btn:hover {
    background: #36983e;
}

.account-link-btn {
    border: none;
    background: transparent;
    color: #666;
    font-size: 12px;
    text-decoration: underline;
    white-space: nowrap;
    cursor: pointer;
}

.account-link-btn:hover {
    color: var(--primary);
}

.account-remove-btn {
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 5px;
    background: #e2e2e2;
    color: #aaa;
    cursor: pointer;
    -webkit-flex-shrink: 0;
    -ms-flex-negative: 0;
    flex-shrink: 0;
}

.account-remove-btn:hover {
    background: #d6eaf6;
    color: var(--primary);
}

.settings-footer-actions {
    margin-top: 18px;
}

.settings-panel_profile {
    max-width: 860px;
}

.profile-form h3 {
    margin: 26px 0 16px;
    color: #555;
    font-size: 16px;
    font-weight: 400;
}

.profile-form h3:first-child {
    margin-top: 0;
}

.profile-row {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 18px;
    min-height: 38px;
    margin-bottom: 10px;
}

.profile-row > label:first-child {
    width: 240px;
    margin: 0;
    color: #888;
    font-size: 12px;
    font-weight: 400;
}

.profile-static {
    min-width: 230px;
    color: #888;
    font-size: 14px;
}

.profile-field {
    position: relative;
    width: 230px;
    -webkit-flex-shrink: 0;
    -ms-flex-negative: 0;
    flex-shrink: 0;
}

.profile-field input {
    width: 100%;
    padding-left: 42px;
}

.profile-input-icon {
    position: absolute;
    top: 0;
    left: 0;
    width: 32px;
    height: 34px;
    padding-top: 9px;
    border-right: 1px solid #d9d9d9;
    border-radius: 3px 0 0 3px;
    background: #dcdcdc;
    color: #888;
    text-align: center;
    z-index: 1;
}

.profile-inline-action,
.profile-link-action {
    border: none;
    background: transparent;
    color: #6d91b2;
    font-size: 12px;
    text-decoration: underline;
    cursor: pointer;
}

.profile-inline-action:hover,
.profile-link-action:hover {
    color: var(--primary);
}

.profile-confirmed {
    color: #6da74d;
    font-size: 12px;
}

.profile-confirmed .glyphicon {
    margin-right: 4px;
}

.profile-select {
    width: 230px;
    background: #f5f5f5;
    font-weight: 600;
}

.profile-row_switch {
    -webkit-box-align: start;
    -webkit-align-items: flex-start;
    -ms-flex-align: start;
    align-items: flex-start;
}

.settings-switch {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 24px;
    margin: 0;
}

.settings-switch input {
    position: absolute;
    opacity: 0;
}

.settings-switch span {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 12px;
    background: #c8ced5;
    cursor: pointer;
    -webkit-transition: background 0.2s;
    transition: background 0.2s;
}

.settings-switch span:before {
    position: absolute;
    content: "";
    width: 20px;
    height: 20px;
    left: 2px;
    top: 2px;
    border-radius: 50%;
    background: var(--white);
    -webkit-box-shadow: 0 1px 3px rgba(0,0,0,0.22);
    box-shadow: 0 1px 3px rgba(0,0,0,0.22);
    -webkit-transition: left 0.2s;
    transition: left 0.2s;
}

.settings-switch input:checked + span {
    background: var(--primary);
}

.settings-switch input:checked + span:before {
    left: 24px;
}

.profile-actions {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 16px;
    margin-top: 26px;
}

/* ==========================================================================
   News Section
   ========================================================================== */

.news-list {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    gap: 15px;
}

.news-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 20px;
    -webkit-transition: border-color 0.2s, box-shadow 0.2s;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.news-card:hover {
    border-color: var(--primary);
    -webkit-box-shadow: 0 2px 8px rgba(74,131,181,0.1);
    box-shadow: 0 2px 8px rgba(74,131,181,0.1);
}

.news-card-header {
    margin-bottom: 10px;
}

.news-date {
    font-size: 13px;
    color: var(--primary);
    margin-bottom: 8px;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 6px;
}

.news-date .glyphicon {
    font-size: 12px;
}

.news-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    margin: 0;
    line-height: 1.4;
}

.news-preview {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0 0 12px 0;
    line-height: 1.5;
}

.news-detail {
    margin-bottom: 12px;
}

.news-content {
    font-size: 14px;
    color: var(--text);
    margin: 0;
    line-height: 1.6;
    padding: 12px;
    background: var(--bg);
    border-radius: 4px;
}

.news-btn {
    display: inline-block;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    background: transparent;
    border: 1px solid var(--primary);
    border-radius: 4px;
    cursor: pointer;
    -webkit-transition: all 0.2s;
    transition: all 0.2s;
    text-decoration: none;
}

.news-btn:hover {
    background: var(--primary);
    color: var(--white);
}

/* ==========================================================================
   Counters Section
   ========================================================================== */

.counters-layout {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: start;
    -webkit-align-items: flex-start;
    -ms-flex-align: start;
    align-items: flex-start;
    gap: 0;
}

.counters-table-wrap {
    -webkit-box-flex: 1;
    -webkit-flex: 1 1 auto;
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
    min-width: 0;
    overflow-x: auto;
    border: 1px solid var(--border);
    background: #fafafa;
}

.counters-table {
    width: 100%;
    min-width: 1180px;
    border-collapse: collapse;
    font-size: 13px;
}

.counters-table th {
    padding: 12px 10px;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    color: var(--text);
    font-weight: 600;
    text-align: center;
    vertical-align: bottom;
}

.counters-table th[rowspan] {
    height: 98px;
}

.readings-panel-main-title {
    height: 58px;
    padding: 14px 18px 10px;
    background: #a9d0eb !important;
    border-left: 1px solid #6fb1dc;
    border-bottom: 1px solid #7fb7d9 !important;
    color: #305c80 !important;
    font-size: 22px;
    font-weight: 300 !important;
    text-align: center !important;
    vertical-align: middle !important;
}

.readings-panel-subtitle {
    height: 40px;
    padding: 8px 10px !important;
    background: #a9d0eb !important;
    border-left: 1px solid #8fc2e0;
    border-bottom: 1px solid #7fb7d9 !important;
    color: #315e82 !important;
    font-size: 12px;
    line-height: 1.25;
    text-align: center !important;
    vertical-align: middle !important;
}

.counters-table th:first-child,
.counters-table td:first-child {
    text-align: left;
}

.counters-table td {
    padding: 12px 10px;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    vertical-align: middle;
}

.reading-table-cell {
    position: relative;
    background: #a9d0eb;
    border-left: 1px solid #8fc2e0;
    border-bottom-color: #7fb7d9 !important;
    text-align: center;
}

.reading-table-cell_input {
    width: 150px;
}

.reading-table-cell_diff {
    width: 95px;
}

.reading-table-cell_action {
    width: 105px;
}

.counter-row {
    height: 72px;
    background: #f7f7f7;
    cursor: pointer;
    -webkit-transition: background 0.2s;
    transition: background 0.2s;
}

.counter-row:hover,
.counter-group.is-expanded .counter-row {
    background: #eef6fb;
}

.counter-name-cell {
    min-width: 190px;
}

.counter-row-icon {
    width: 18px;
    height: 18px;
    color: var(--primary);
    margin-right: 8px;
}

.counter-type {
    font-weight: 600;
}

.counter-note {
    color: var(--text-muted);
}

.service-badges {
    display: inline-block;
    white-space: nowrap;
}

.service-badge {
    display: inline-block;
    min-width: 32px;
    padding: 4px 7px;
    margin: 2px;
    border-radius: 4px;
    background: var(--primary);
    color: var(--white);
    font-size: 12px;
    line-height: 1.2;
    text-align: center;
}

.service-badge_cold {
    background: var(--primary);
}

.service-badge_hot {
    background: #d9534f;
}

.service-badge_drain {
    background: #9a5b28;
}

.service-badge_power {
    background: #f0ad4e;
    color: #4a3611;
}

.service-badge_default {
    background: #777;
}

.strong-value {
    font-weight: 600;
}

.counter-detail-row td {
    padding: 0;
    background: #f3f3f3;
}

.counter-detail {
    padding: 12px 14px 16px;
}

.counter-meta {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-flex-wrap: wrap;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    gap: 14px 34px;
    padding: 10px 12px;
    margin-bottom: 12px;
    background: var(--white);
    border: 1px solid #e5e5e5;
    border-radius: 5px;
    color: var(--text-muted);
}

.meta-label {
    color: #888;
    margin-right: 6px;
}

.counter-detail-grid {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    gap: 14px;
}

.counter-history {
    width: 230px;
    -webkit-flex-shrink: 0;
    -ms-flex-negative: 0;
    flex-shrink: 0;
}

.counter-chart {
    -webkit-box-flex: 1;
    -webkit-flex: 1 1 auto;
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
    min-width: 320px;
}

.detail-title {
    margin-bottom: 8px;
    color: #777;
    font-size: 13px;
}

.readings-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border: 1px solid #d7e7f2;
    font-size: 12px;
}

.readings-table th,
.readings-table td {
    padding: 7px 8px;
    border-bottom: 1px solid #edf2f5;
    text-align: right;
}

.readings-table th:first-child,
.readings-table td:first-child {
    text-align: left;
}

.readings-table th {
    background: #d7ebf8;
    color: var(--text);
    font-weight: 600;
}

.usage-chart {
    display: block;
    width: 100%;
    height: 225px;
    background: var(--white);
    border: 1px solid #e5e5e5;
    border-radius: 5px;
}

.chart-grid line {
    stroke: #e8eef2;
    stroke-width: 1;
}

.chart-axis line {
    stroke: #9db6c7;
    stroke-width: 1.4;
}

.chart-y-labels text,
.chart-x-labels text,
.chart-axis-title {
    fill: #667985;
    font-size: 11px;
}

.chart-axis-title {
    font-weight: 600;
}

.chart-area {
    stroke: none;
}

.chart-line {
    fill: none;
    stroke: #4a83b5;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.chart-point {
    fill: var(--white);
    stroke: var(--primary-light);
    stroke-width: 3;
}

.chart-caption {
    color: #777;
    font-size: 12px;
    margin-top: 6px;
    text-align: right;
}

.readings-panel {
    width: 335px;
    -webkit-flex: 0 0 335px;
    -ms-flex: 0 0 335px;
    flex: 0 0 335px;
    background: #a9d0eb;
    border: 1px solid #6fb1dc;
    border-radius: 8px;
    overflow: hidden;
    color: var(--text);
}

.readings-panel-title {
    height: 58px;
    padding: 16px 18px 10px;
    color: #305c80;
    font-size: 22px;
    font-weight: 300;
    text-align: center;
}

.readings-panel-head {
    height: 40px;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    padding: 0 18px;
    border-top: 1px solid rgba(255,255,255,0.45);
    border-bottom: 1px solid #7fb7d9;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
}

.readings-panel-head span:first-child {
    -webkit-box-flex: 1;
    -webkit-flex: 1 1 auto;
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
}

.readings-panel-head span:last-child {
    width: 88px;
    -webkit-flex-shrink: 0;
    -ms-flex-negative: 0;
    flex-shrink: 0;
}

.reading-form {
    position: relative;
    height: 72px;
    padding: 0 14px;
    border-bottom: 1px solid #7fb7d9;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
}

.reading-form:last-child {
    border-bottom: none;
}

.reading-counter-title {
    margin-bottom: 8px;
    color: #315e82;
    font-size: 13px;
    font-weight: 600;
}

.reading-controls {
    width: 100%;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
}

.reading-input {
    -webkit-box-flex: 1;
    -webkit-flex: 1 1 auto;
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
    width: 100%;
    min-width: 96px;
    height: 34px;
    padding: 6px 8px;
    border: 1px solid #8bbbd8;
    border-radius: 0;
    background: var(--white);
    text-align: center;
    font-weight: 600;
}

.reading-input:focus {
    outline: none;
    border-color: var(--primary);
    -webkit-box-shadow: 0 0 0 2px rgba(74,131,181,0.18);
    box-shadow: 0 0 0 2px rgba(74,131,181,0.18);
}

.reading-diff {
    width: 76px;
    margin-left: 0;
    -webkit-flex-shrink: 0;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    color: #315e82;
    font-size: 12px;
    text-align: center;
    white-space: nowrap;
}

.reading-diff strong {
    font-size: 15px;
}

.reading-submit {
    width: 84px;
    margin-left: 0;
    -webkit-flex-shrink: 0;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    height: 34px;
    border: none;
    border-radius: 4px;
    background: #43b24a;
    color: var(--white);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    -webkit-transition: background 0.2s;
    transition: background 0.2s;
}

.reading-submit:hover {
    background: #36963c;
}

.reading-message {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 4px;
    margin-top: 0;
    padding: 6px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.reading-message.is-error {
    background: #fbe9e7;
    color: var(--danger);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

/* Tablet */
@media (max-width: 991px) {
    .cabinet-sidebar {
        width: var(--sidebar-collapsed-width);
    }
    
    .cabinet-main {
        margin-left: var(--sidebar-collapsed-width);
    }
    
    .nav-text {
        opacity: 0;
    }
    
    .nav-item {
        padding-left: 18px;
        padding-right: 18px;
        -webkit-box-pack: center;
        -webkit-justify-content: center;
        -ms-flex-pack: center;
        justify-content: center;
    }
    
    .nav-item.active {
        padding-left: 15px;
    }
    
    .header-text {
        display: none;
    }
    
    .back-text {
        display: none;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .hamburger-btn {
        display: -webkit-box;
        display: -webkit-flex;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-align: center;
        -webkit-align-items: center;
        -ms-flex-align: center;
        align-items: center;
        -webkit-box-pack: center;
        -webkit-justify-content: center;
        -ms-flex-pack: center;
        justify-content: center;
    }
    
    .cabinet-sidebar {
        width: var(--sidebar-width);
        -webkit-transform: translateX(-100%);
        -ms-transform: translateX(-100%);
        transform: translateX(-100%);
    }
    
    .sidebar-open .cabinet-sidebar {
        -webkit-transform: translateX(0);
        -ms-transform: translateX(0);
        transform: translateX(0);
    }

    .sidebar-open .cabinet-sidebar.collapsed .sidebar-header {
        -webkit-box-pack: start;
        -webkit-justify-content: flex-start;
        -ms-flex-pack: start;
        justify-content: flex-start;
        padding: 25px 15px;
    }

    .sidebar-open .cabinet-sidebar.collapsed .sidebar-toggle {
        margin-right: 10px;
    }

    .sidebar-open .cabinet-sidebar.collapsed .sidebar-logo {
        opacity: 1;
        width: auto;
        pointer-events: auto;
    }
    
    .sidebar-open .nav-text {
        display: inline;
        opacity: 1;
    }

    .sidebar-open .cabinet-sidebar.collapsed .sidebar-account {
        padding: 10px 10px 12px;
    }

    .sidebar-open .cabinet-sidebar.collapsed .account-picker {
        min-height: 42px;
        text-align: left;
    }

    .sidebar-open .cabinet-sidebar.collapsed .account-picker-button {
        display: -webkit-box;
        display: -webkit-flex;
        display: -ms-flexbox;
        display: flex;
        min-height: 42px;
        padding-top: 0;
        text-align: left;
    }

    .sidebar-open .cabinet-sidebar.collapsed .account-picker-icon {
        display: inline-block;
        width: 36px;
        margin-bottom: 0;
    }

    .sidebar-open .cabinet-sidebar.collapsed .account-picker-body {
        display: -webkit-box;
        display: -webkit-flex;
        display: -ms-flexbox;
        display: flex;
        padding-right: 22px;
    }

    .sidebar-open .cabinet-sidebar.collapsed .account-picker-label,
    .sidebar-open .cabinet-sidebar.collapsed .account-picker-arrow,
    .sidebar-open .cabinet-sidebar.collapsed .account-meta {
        display: block;
    }

    .sidebar-open .cabinet-sidebar.collapsed .account-picker-label {
        display: inline-block;
    }

    .sidebar-open .cabinet-sidebar.collapsed .account-picker-body strong {
        font-size: 21px;
    }

    .sidebar-open .cabinet-sidebar.collapsed .account-dropdown {
        display: block;
    }

    .sidebar-open .cabinet-sidebar.collapsed .account-meta {
        white-space: normal;
    }

    .sidebar-open .cabinet-sidebar.collapsed .nav-item {
        -webkit-box-pack: start;
        -webkit-justify-content: flex-start;
        -ms-flex-pack: start;
        justify-content: flex-start;
        padding-left: 20px;
        padding-right: 20px;
    }

    .sidebar-open .cabinet-sidebar.collapsed .nav-item.active {
        padding-left: 17px;
    }

    .sidebar-open .cabinet-sidebar.collapsed .sidebar-bonus {
        display: -webkit-box;
        display: -webkit-flex;
        display: -ms-flexbox;
        display: flex;
        min-height: 48px;
        padding: 10px 12px 10px 20px;
        text-align: left;
    }

    .sidebar-open .cabinet-sidebar.collapsed .bonus-icon {
        display: inline-block;
        width: 24px;
        margin-bottom: 0;
    }

    .sidebar-open .cabinet-sidebar.collapsed .bonus-text {
        display: inline;
    }

    .sidebar-open .cabinet-sidebar.collapsed .bonus-value {
        display: inline-block;
        min-width: 48px;
        padding: 3px 7px;
        font-size: 14px;
    }
    
    .sidebar-overlay {
        display: block;
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.5);
        z-index: 80;
    }
    
    .cabinet-main {
        margin-left: 0;
        padding: 15px;
    }
    
    .cabinet-main.collapsed {
        margin-left: 0;
    }
    
    .section-header {
        -webkit-flex-direction: column;
        -ms-flex-direction: column;
        flex-direction: column;
        -webkit-box-align: start;
        -webkit-align-items: flex-start;
        -ms-flex-align: start;
        align-items: flex-start;
        gap: 10px;
    }
    
    .period-select {
        width: 100%;
    }

    .charges-toolbar,
    .charges-toolbar-left,
    .charges-toolbar-right {
        width: 100%;
        -webkit-flex-direction: column;
        -ms-flex-direction: column;
        flex-direction: column;
        -webkit-box-align: stretch;
        -webkit-align-items: stretch;
        -ms-flex-align: stretch;
        align-items: stretch;
    }

    .charges-action,
    .charges-icon-btn {
        width: 100%;
    }

    .charges-settings {
        -webkit-flex-direction: column;
        -ms-flex-direction: column;
        flex-direction: column;
    }

    .demo-notice {
        left: 15px;
        right: 15px;
        max-width: none;
    }

    .charges-table {
        min-width: 1180px;
    }

    .charges-table_penalties {
        min-width: 980px;
    }

    .payment-tabs {
        -webkit-flex-direction: column;
        -ms-flex-direction: column;
        flex-direction: column;
        margin-bottom: 22px;
    }

    .payment-tab {
        width: 100%;
        min-width: 0;
        border-right: none;
        border-bottom: 1px solid #dcdcdc;
    }

    .payment-title-row,
    .payment-actions,
    .payment-action-buttons {
        -webkit-flex-direction: column;
        -ms-flex-direction: column;
        flex-direction: column;
        -webkit-box-align: stretch;
        -webkit-align-items: stretch;
        -ms-flex-align: stretch;
        align-items: stretch;
    }

    .payment-page-title {
        font-size: 21px;
    }

    .payment-summary-detail span,
    .payment-summary-detail strong {
        display: inline-block;
        margin-bottom: 4px;
    }

    .payment-summary-separator {
        margin-left: 0;
    }

    .online-payment-table-wrap {
        padding-left: 10px;
    }

    .online-payment-table {
        min-width: 920px;
    }

    .payment-service-col {
        min-width: 320px;
    }

    .payment-actions {
        padding-left: 14px;
    }

    .payment-bonus {
        max-width: none;
    }

    .payment-recalculate-btn,
    .payment-submit-btn {
        width: 100%;
    }

    .operations-tabs,
    .settings-tabs {
        -webkit-flex-direction: column;
        -ms-flex-direction: column;
        flex-direction: column;
        margin-bottom: 22px;
    }

    .operations-tab,
    .settings-tab {
        width: 100%;
        min-width: 0;
        border-right: none;
        border-bottom: 1px solid #dcdcdc;
    }

    .payments-header {
        -webkit-flex-direction: column;
        -ms-flex-direction: column;
        flex-direction: column;
        -webkit-box-align: start;
        -webkit-align-items: flex-start;
        -ms-flex-align: start;
        align-items: flex-start;
    }

    .payments-title {
        font-size: 21px;
    }

    .payments-summary {
        white-space: normal;
    }

    .payments-table {
        min-width: 960px;
    }

    .payments-pagination {
        -webkit-flex-wrap: wrap;
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    }

    .settings-title-block {
        text-align: left;
    }

    .settings-title-block h3 {
        font-size: 21px;
    }

    .account-add-form,
    .account-row,
    .profile-row,
    .profile-actions {
        -webkit-flex-direction: column;
        -ms-flex-direction: column;
        flex-direction: column;
        -webkit-box-align: stretch;
        -webkit-align-items: stretch;
        -ms-flex-align: stretch;
        align-items: stretch;
    }

    .account-add-form {
        gap: 10px;
    }

    .account-add-form label {
        -webkit-box-flex: 0;
        -webkit-flex: none;
        -ms-flex: none;
        flex: none;
    }

    .accounts-box {
        padding: 10px;
    }

    .account-row {
        gap: 10px;
        padding: 14px;
    }

    .account-number,
    .account-note-control,
    .account-note-input,
    .profile-row > label:first-child,
    .profile-static,
    .profile-field,
    .profile-select {
        width: 100%;
        min-width: 0;
    }

    .account-link-btn {
        text-align: left;
        white-space: normal;
    }

    .account-remove-btn {
        width: 100%;
    }

    .settings-panel_profile {
        max-width: none;
    }

    .profile-row {
        gap: 7px;
        margin-bottom: 16px;
    }

    .profile-inline-action,
    .profile-link-action {
        text-align: left;
    }
    
    section {
        padding: 15px;
    }

    .counters-layout {
        -webkit-flex-direction: column;
        -ms-flex-direction: column;
        flex-direction: column;
    }

    .counters-table-wrap {
        width: 100%;
        border-right: 1px solid var(--border);
        -webkit-box-ordinal-group: 3;
        -webkit-order: 2;
        -ms-flex-order: 2;
        order: 2;
    }

    .readings-panel {
        width: 100%;
        -webkit-flex-basis: auto;
        -ms-flex-preferred-size: auto;
        flex-basis: auto;
        margin-bottom: 15px;
        -webkit-box-ordinal-group: 2;
        -webkit-order: 1;
        -ms-flex-order: 1;
        order: 1;
    }

    .counter-detail-grid {
        -webkit-flex-direction: column;
        -ms-flex-direction: column;
        flex-direction: column;
    }

    .counter-history,
    .counter-chart {
        width: 100%;
        min-width: 0;
    }

    .usage-chart {
        height: 190px;
    }

    .reading-controls {
        -webkit-flex-wrap: wrap;
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    }

    .reading-submit {
        width: 100%;
        margin-left: 0;
        margin-top: 8px;
    }

    .reading-table-cell_action .reading-submit {
        margin-top: 0;
    }
}
