/* Basic Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f0f2f5;
    color: #333;
}

.container {
    display: flex;
    min-height: 100vh;
    width: 100%;
    overflow: hidden;
}

/* Sidebar */
.sidebar {
    width: 240px;
    min-width: 240px;
    flex-shrink: 0;
    background-color: #fff;
    border-right: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 12px 20px;
    border-bottom: 1px solid #e0e0e0;
    text-align: center;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-header .logo-link {
    display: block;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.sidebar-header .logo-link:hover {
    opacity: 0.8;
}

.sidebar-header .logo {
    max-width: 80%;
    max-height: 36px;
    height: auto;
    width: auto;
    object-fit: contain;
}

.sidebar-header h2 {
    font-weight: bold;
    color: #007bff;
}

.sidebar-nav ul {
    list-style: none;
    padding: 10px 0;
}

.sidebar-nav li.nav-header {
    padding: 20px 20px 10px 20px;
    font-size: 12px;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sidebar-nav li a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    text-decoration: none;
    color: #555;
    font-weight: 500;
}

.sidebar-nav li a i {
    width: 24px;
    margin-right: 12px;
    text-align: center;
    font-size: 16px;
    color: #888;
}

.sidebar-nav li.active a {
    background-color: #e6f2ff;
    color: #007bff;
    border-right: 3px solid #007bff;
}

.sidebar-nav li.active a i {
    color: #007bff;
}

.sidebar-nav li a:hover {
    background-color: #f0f2f5;
}


/* Main Content */
.main-content {
    flex-grow: 1;
    flex-shrink: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    background-color: #fff;
    border-bottom: 1px solid #e0e0e0;
    height: 60px;
    min-height: 60px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.timezone-selector {
    display: flex;
    align-items: center;
    gap: 8px;
}

.timezone-selector label {
    font-size: 14px;
    font-weight: 500;
    color: #666;
}

.timezone-select {
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    background-color: #fff;
    cursor: pointer;
}

.timezone-select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.header-controls .dropdown {
    position: relative;
}

.dropdown-toggle {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 8px 12px;
    cursor: pointer;
    font-weight: 500;
}

.dropdown-toggle .fa-chevron-down {
    margin-left: 8px;
    font-size: 12px;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 1000;
    min-width: 180px;
    padding: 8px 0;
}

.dropdown-item {
    display: block;
    padding: 10px 16px;
    color: #333;
    text-decoration: none;
}

.dropdown-item:hover {
    background-color: #f0f2f5;
}

.content {
    padding: 20px;
    flex-grow: 1;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.card {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.charger-status-card {
    grid-column: span 2;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.card-header h3 {
    font-size: 18px;
    font-weight: 600;
}

.btn.btn-secondary {
    background-color: #f0f2f5;
    color: #333;
    border: 1px solid #ddd;
    padding: 6px 12px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
}

.card-body {
    display: flex;
    gap: 20px;
    align-items: center;
}

.chart-container {
    width: 200px;
    height: 200px;
}

.chart-legend ul {
    list-style: none;
    font-weight: 600;
}

.chart-legend li {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: 14px;
}

.legend-color {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 3px;
    margin-right: 10px;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    grid-column: span 1;
}

.summary-card h4 {
    font-size: 14px;
    color: #555;
    margin-bottom: 8px;
    font-weight: 500;
}

.summary-card p {
    font-size: 24px;
    font-weight: 600;
}

/* Analytics Card */
.analytics-card {
    grid-column: 1 / -1; /* Span all columns */
    margin-top: 20px;
}

.analytics-card .card-header {
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 15px;
}

.tabs {
    display: inline-flex;
    background-color: #f0f2f5;
    border-radius: 20px;
    padding: 4px;
}

.tab-button {
    border: none;
    background-color: transparent;
    padding: 8px 16px;
    border-radius: 16px;
    cursor: pointer;
    font-weight: 500;
    color: #555;
    transition: all 0.2s ease-in-out;
}

.tab-button.active {
    background-color: #fff;
    color: #0d6efd;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.date-range {
    font-weight: 500;
    color: #555;
}

.chart-card-body {
    height: 300px;
    position: relative;
}

/* Logs Page Styles */
.log-controls {
    display: flex;
    gap: 15px;
    align-items: center;
}

.search-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    min-width: 250px;
}

.search-btn {
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 14px;
}

.search-btn:hover {
    background-color: #0056b3;
}

.log-filters {
    display: flex;
    gap: 10px;
}

.filter-select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    background-color: white;
}

.logs-container {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    overflow: hidden;
}

.logs-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.logs-info h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
}

.logs-info p {
    color: #666;
    font-size: 14px;
}

.logs-actions {
    display: flex;
    gap: 10px;
}

.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-primary {
    background-color: #007bff;
    color: white;
}

.btn-primary:hover {
    background-color: #0056b3;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background-color: #545b62;
}

.btn-secondary:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.btn-sm {
    padding: 4px 8px;
    font-size: 12px;
}

.logs-content {
    padding: 20px;
    min-height: 400px;
    position: relative;
    width: 100%;
    overflow: hidden;
}

.logs-table-container {
    overflow-x: auto;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.logs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    min-width: 600px;
}

.logs-table th {
    background-color: #f8f9fa;
    padding: 12px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #e0e0e0;
}

.logs-table th:nth-child(1) { /* Timestamp */
    width: 180px;
    min-width: 180px;
    max-width: 180px;
}

.logs-table th:nth-child(2) { /* Level */
    width: 100px;
    min-width: 100px;
    max-width: 100px;
}

.logs-table th:nth-child(3) { /* Message */
    min-width: 200px;
    width: auto;
}

.logs-table th:nth-child(4) { /* Actions */
    width: 80px;
    min-width: 80px;
    max-width: 80px;
}

.logs-table td {
    padding: 12px;
    border-bottom: 1px solid #e0e0e0;
    vertical-align: top;
}

.logs-table tr:hover {
    background-color: #f8f9fa;
}

.log-level-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.log-level-info {
    background-color: #d1ecf1;
    color: #0c5460;
}

.log-level-warning {
    background-color: #fff3cd;
    color: #856404;
}

.log-level-error {
    background-color: #f8d7da;
    color: #721c24;
}

.log-level-debug {
    background-color: #e2e3e5;
    color: #383d41;
}

.log-message {
    word-wrap: break-word;
    line-height: 1.4;
}

.no-logs-message {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.no-logs-message i {
    font-size: 48px;
    margin-bottom: 20px;
    color: #ccc;
}

.no-logs-message h4 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
}

.loading-message {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.loading-message i {
    font-size: 32px;
    margin-bottom: 15px;
    color: #007bff;
}

.logs-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-top: 1px solid #e0e0e0;
    background-color: #f8f9fa;
}

.pagination-info {
    font-size: 14px;
    color: #666;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.pagination-controls span {
    font-size: 14px;
    color: #666;
}

.copy-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #28a745;
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    z-index: 1000;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Token Management Styles */
.token-controls {
    display: flex;
    gap: 15px;
    align-items: center;
}

.token-filters {
    display: flex;
    gap: 10px;
}

.tokens-container {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    overflow: hidden;
}

.tokens-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.tokens-info h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
}

.tokens-info p {
    color: #666;
    font-size: 14px;
}

.tokens-content {
    padding: 20px;
    min-height: 400px;
    position: relative;
    width: 100%;
    overflow: hidden;
}

.tokens-table-container {
    width: 100%;
    overflow-x: auto;
}

.tokens-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.tokens-table th,
.tokens-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.tokens-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.tokens-table tr:hover {
    background-color: #f8f9fa;
}

.tokens-table code {
    background-color: #f1f3f4;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
}

.status-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.status-active {
    background-color: #d4edda;
    color: #155724;
}

.status-inactive {
    background-color: #f8d7da;
    color: #721c24;
}

.status-expired {
    background-color: #fff3cd;
    color: #856404;
}

.no-tokens-message {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.no-tokens-message i {
    font-size: 48px;
    margin-bottom: 20px;
    color: #ccc;
}

.no-tokens-message h4 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
}

.no-tokens-message p {
    font-size: 14px;
    color: #666;
}

.tokens-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-top: 1px solid #e0e0e0;
    background-color: #f8f9fa;
}

/* User Management Styles */
.user-controls {
    display: flex;
    gap: 15px;
    align-items: center;
}

.user-actions {
    display: flex;
    gap: 10px;
}

.users-container {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    overflow: hidden;
}

.users-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.users-info h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
}

.users-info p {
    color: #666;
    font-size: 14px;
}

.users-content {
    padding: 20px;
    min-height: 400px;
    position: relative;
    width: 100%;
    overflow: hidden;
}

.users-table-container {
    width: 100%;
    overflow-x: auto;
}

.users-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.users-table th,
.users-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.users-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.users-table tr:hover {
    background-color: #f8f9fa;
}

.no-users-message {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.no-users-message i {
    font-size: 48px;
    margin-bottom: 20px;
    color: #ccc;
}

.no-users-message h4 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
}

.no-users-message p {
    font-size: 14px;
    color: #666;
}

.users-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-top: 1px solid #e0e0e0;
    background-color: #f8f9fa;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    overflow-y: auto;
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 0;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 10;
}

.modal-header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.close:hover {
    color: #000;
}

.modal-body {
    padding: 20px;
    max-height: calc(90vh - 140px);
    overflow-y: auto;
}

.modal-footer {
    padding: 20px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    position: sticky;
    bottom: 0;
    background: #fff;
    z-index: 10;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0,123,255,0.25);
}

.form-group small {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #666;
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    z-index: 1001;
    animation: slideIn 0.3s ease-out;
}

.notification-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.notification-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.notification-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.header-user {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    color: #333;
}

.logout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #f8f9fa;
    color: #6c757d;
    text-decoration: none;
    transition: all 0.2s ease;
}

.logout-btn:hover {
    background-color: #e9ecef;
    color: #495057;
    transform: scale(1.1);
}

/* Section Bar */
.section-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
}

.section-left {
    display: flex;
    align-items: center;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.section-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-title h1 {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

/* Sites Page Styles */
.sites-container {
    padding: 20px;
}

.sites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.site-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.site-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.site-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.site-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
    flex: 1;
    line-height: 1.3;
}

.site-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    margin-left: 12px;
}

.site-status.active {
    background-color: #d4edda;
    color: #155724;
}

.site-status.inactive {
    background-color: #f8d7da;
    color: #721c24;
}

.site-status.maintenance {
    background-color: #fff3cd;
    color: #856404;
}

.site-info {
    margin-bottom: 16px;
    flex: 1;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.info-value {
    font-size: 14px;
    color: #333;
    font-weight: 600;
    text-align: right;
}

.site-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: auto;
}

.site-actions .btn {
    flex: 1;
    min-width: 0;
    font-size: 12px;
    padding: 8px 12px;
    white-space: nowrap;
}

/* Chargers Modal Styles */
.modal-large {
    max-width: 90%;
    width: 1200px;
}

.chargers-container {
    max-height: 500px;
    overflow-y: auto;
}

.chargers-table-container {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.chargers-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    background: #fff;
}

.chargers-table th,
.chargers-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
    vertical-align: middle;
}

.chargers-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #333;
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 2px solid #dee2e6;
}

.chargers-table th:first-child {
    border-top-left-radius: 8px;
}

.chargers-table th:last-child {
    border-top-right-radius: 8px;
}

.chargers-table tr:hover {
    background-color: #f8f9fa;
}

.chargers-table tr:last-child td {
    border-bottom: none;
}

.chargers-table tr:last-child td:first-child {
    border-bottom-left-radius: 8px;
}

.chargers-table tr:last-child td:last-child {
    border-bottom-right-radius: 8px;
}

.status-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    min-width: 60px;
    text-align: center;
}

.status-badge.active {
    background-color: #d4edda;
    color: #155724;
}

.status-badge.inactive {
    background-color: #f8d7da;
    color: #721c24;
}

.status-badge.maintenance {
    background-color: #fff3cd;
    color: #856404;
}

.status-badge.error {
    background-color: #f8d7da;
    color: #721c24;
}

.status-badge.unregistered {
    background-color: #e2e3e5;
    color: #383d41;
}

.status-badge.online {
    background-color: #d4edda;
    color: #155724;
}

.status-badge.offline {
    background-color: #f8d7da;
    color: #721c24;
}

/* Form Row Styles */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .sites-grid {
        grid-template-columns: 1fr;
    }
    
    .site-actions {
        flex-direction: column;
    }
    
    .modal-large {
        max-width: 95%;
        width: 95%;
    }
}

/* Session Row Hover Effect */
.session-row:hover {
    background-color: #f8f9fa;
    transition: background-color 0.2s ease;
}

/* Metering Modal Styles */
.metering-container {
    max-height: 600px;
    overflow-y: auto;
}

.metering-info {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.info-item .info-label {
    font-size: 12px;
    color: #666;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-item .info-value {
    font-size: 16px;
    color: #333;
    font-weight: 600;
}

.metering-table-container {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.metering-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    background: #fff;
}

.metering-table th,
.metering-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
    vertical-align: middle;
}

.metering-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #333;
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 2px solid #dee2e6;
}

.metering-table th:first-child {
    border-top-left-radius: 8px;
}

.metering-table th:last-child {
    border-top-right-radius: 8px;
}

.metering-table tr:hover {
    background-color: #f8f9fa;
}

.metering-table tr:last-child td {
    border-bottom: none;
}

.metering-table tr:last-child td:first-child {
    border-bottom-left-radius: 8px;
}

.metering-table tr:last-child td:last-child {
    border-bottom-right-radius: 8px;
} 
