.elementor-3018 .elementor-element.elementor-element-fd7b223{--display:flex;}@media(min-width:768px){.elementor-3018 .elementor-element.elementor-element-fd7b223{--content-width:1600px;}}/* Start custom CSS for shortcode, class: .elementor-element-d98e259 */.mad-crm-public-wrapper {
    max-width: 100%;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: #f8f9fa;
    min-height: 100vh;
}

.mad-crm-login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    background: #f8f9fa;
}

.mad-crm-login-box {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
}

.mad-crm-login-header {
    text-align: center;
    margin-bottom: 30px;
}

.mad-crm-login-header h2 {
    color: #0072BB;
    margin-bottom: 10px;
    font-size: 24px;
}

.mad-crm-login-header p {
    color: #666;
    font-size: 14px;
}

.mad-crm-error {
    background: #f8d7da;
    color: #721c24;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 20px;
    text-align: center;
    border: 1px solid #f5c6cb;
}

.mad-crm-login-form {
    margin-top: 20px;
}

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

.mad-crm-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.mad-crm-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
    background: white;
}

.mad-crm-input:focus {
    border-color: #0072BB;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 114, 187, 0.1);
}

.mad-crm-login-btn {
    width: 100%;
    padding: 14px;
    background: #0072BB;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.mad-crm-login-btn:hover {
    background: #005a9c;
}

.mad-crm-header {
    background: white;
    border-radius: 12px;
    padding: 20px 25px !important;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.mad-crm-header-left h1 {
    color: #0072BB;
    margin: 0 0 5px 0;
    font-size: 22px;
    font-weight: 600;
}

.mad-crm-subtitle {
    color: #666;
    margin: 0;
    font-size: 14px;
    opacity: 0.8;
}

.mad-crm-user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}

.mad-crm-user-info .user-role {
    background: #e8f4fd;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    color: #0072BB;
}

.mad-crm-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.mad-crm-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
    line-height: 1;
    height: 40px;
}

.mad-crm-btn-primary {
    background: #0072BB;
    color: white;
}

.mad-crm-btn-primary:hover {
    background: #005a9c;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 114, 187, 0.2);
}

.mad-crm-btn-secondary {
    background: #6c757d;
    color: white !important;
}

.mad-crm-btn-secondary:hover {
    background: #5a6268;
    color: white !important;
    transform: translateY(-1px);
}

.mad-crm-btn-danger {
    background: #dc3545;
    color: white !important;
}

.mad-crm-btn-danger:hover {
    background: #c82333;
    color: white !important;
    transform: translateY(-1px);
}

.mad-crm-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 0 0 20px 0;
}

.mad-crm-stat-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 1px solid #f0f0f0;
}

.mad-crm-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.mad-crm-stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    background: #f8f9fa;
}

.total-students .mad-crm-stat-icon {
    background: #e3f2fd;
    color: #0072BB;
}

.active-students .mad-crm-stat-icon {
    background: #d4edda;
    color: #28a745;
}

.premium-students .mad-crm-stat-icon {
    background: #fff3cd;
    color: #ffc107;
}

.cpe-available .mad-crm-stat-icon {
    background: #e8f4fd;
    color: #17a2b8;
}

.courses-completed .mad-crm-stat-icon {
    background: #f8f9fa;
    color: #6c757d;
}

.mad-crm-stat-content {
    flex: 1;
}

.mad-crm-stat-value {
    font-size: 28px;
    font-weight: bold;
    color: #333;
    line-height: 1;
    margin-bottom: 2px;
}

.mad-crm-stat-label {
    color: #666;
    font-size: 13px;
}

.mad-crm-filters {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin: 0 0 20px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 1px solid #f0f0f0;
}

.mad-crm-filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    align-items: end;
}

.mad-crm-filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mad-crm-filter-group .filter-label {
    font-weight: 600;
    color: #333;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.mad-crm-filter-group .invisible-label {
    visibility: hidden;
}

.mad-crm-select {
    width: 100%;
    padding: 10px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    cursor: pointer;
    color: #333;
    height: 44px;
}

.mad-crm-select:focus {
    border-color: #0072BB;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 114, 187, 0.1);
}

.filter-buttons {
    display: flex;
    gap: 10px;
}

.apply-btn, .reset-btn, .export-btn, .logout-btn {
    flex: 1;
}

.reset-btn {
    background: #f8f9fa;
    color: #666;
    border: 1px solid #e0e0e0;
}

.reset-btn:hover {
    background: #e9ecef;
    color: #333;
}

.mad-crm-table-container {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 1px solid #f0f0f0;
    margin-bottom: 20px;
}

.table-header {
    padding: 20px 25px;
    border-bottom: 1px solid #f0f0f0;
    background: #f8f9fa;
}

.table-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.table-title h3 {
    margin: 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.total-count {
    background: #e9ecef;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    color: #666;
}

.table-responsive {
    overflow-x: auto;
}

.mad-crm-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 1000px;
}

.mad-crm-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
    text-align: left;
    padding: 16px 15px;
    border-bottom: 2px solid #e9ecef;
    white-space: nowrap;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mad-crm-table td {
    padding: 15px;
    border-bottom: 1px solid #f8f9fa;
    vertical-align: middle;
    font-size: 14px;
}

.mad-crm-table tr.student-row:hover {
    background: #f8f9fa;
}

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

.student-info-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.student-avatar-mini img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #f0f0f0;
}

.student-details-mini {
    min-width: 0;
    flex: 1;
}

.student-details-mini .student-name {
    display: block;
    margin-bottom: 3px;
    color: #333;
    font-size: 14px;
    font-weight: 600;
}

.student-email-mini {
    font-size: 13px;
    color: #666;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.student-ptin-cell .ptin-display {
    font-size: 14px;
    color: #222222;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
}

.level-badge, .status-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    min-width: 90px;
}

.level-badge.level-базовый {
    background: #e3f2fd;
    color: #0d47a1;
    border: 1px solid #bbdefb;
}

.level-badge.level-профессионал {
    background: #e8f5e9;
    color: #1b5e20;
    border: 1px solid #c8e6c9;
}

.status-badge.status-active {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-badge.status-inactive {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.cpe-display {
    text-align: center;
}

.cpe-value {
    font-size: 16px;
    font-weight: bold;
    color: #0072BB;
}

.cpe-available-display small {
    font-size: 12px;
    color: #999;
}

.cpe-earned-display {
    font-size: 20px !important;
    color: #28a745;
    margin-top: 2px;
}

.courses-display {
    text-align: center;
}

.courses-count-display, .courses-completed-display {
    font-size: 13px;
    margin-bottom: 2px;
    color: #666;
}

.registration-display {
    font-size: 13px;
    color: #333;
}

.last-login-display {
    font-size: 11px;
    color: #888;
    margin-top: 2px;
}

.actions-cell {
    white-space: nowrap;
}

.action-icons-mini {
    display: flex;
    gap: 5px !important;
}

.icon-btn {
    width: 30px;
    height: 30px;
    border: 1px solid #ddd;
    background: #f8f9fa !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    padding: 0;
    border-radius: 4px;
}

.icon-btn:hover {
    background: #e9ecef !important;
    transform: translateY(-1px);
}

.icon-btn:active {
    transform: translateY(0);
}

.icon-img {
    width: 30px;
    height: 30px;
    object-fit: contain;
    transition: filter 0.2s;
}

.icon-btn:hover .icon-img {
    filter: invert(27%) sepia(95%) saturate(2081%) hue-rotate(183deg) brightness(96%) contrast(101%);
}

.no-results {
    text-align: center;
    padding: 60px 20px !important;
}

.no-results-content {
    max-width: 300px;
    margin: 0 auto;
}

.no-results-icon {
    font-size: 48px;
    margin-bottom: 15px;
    color: #ccc;
}

.no-results-content p {
    color: #666;
    margin-bottom: 15px;
    font-size: 16px;
}

.no-data {
    color: #999;
    font-style: italic;
    font-size: 13px;
}

.mad-crm-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-top: 1px solid #f0f0f0;
    background: #f8f9fa;
}

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

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

.pagination-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background: white;
    color: #333;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
    min-width: 36px;
    height: 36px;
}

.pagination-btn:hover {
    background: #f8f9fa;
    border-color: #0072BB;
    color: #0072BB;
}

.pagination-btn.active {
    background: #0072BB;
    color: white;
    border-color: #0072BB;
}

.mad-crm-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    overflow: auto;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

body.modal-open {
    overflow: hidden;
}

.modal-content {
    background: white;
    border-radius: 16px;
    width: 100%;
    max-width: 1100px;
    max-height: 85vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: slideUp 0.3s ease;
    margin: 40px auto;
    position: relative;
}

@keyframes slideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

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

.modal-header h3 {
    margin: 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #666;
    line-height: 1;
    padding: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.modal-close:hover {
    color: #333;
    background: #f0f0f0;
}

.modal-body {
    padding: 25px;
    overflow-y: auto;
    max-height: calc(85vh - 70px);
    flex: 1;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #0072BB;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #f5c6cb;
}

.student-details-modal {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.details-tabs {
    display: flex;
    gap: 5px;
    margin-bottom: 25px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 5px;
    flex-wrap: wrap;
    overflow-x: auto;
}

.tab-btn {
    padding: 12px 20px;
    background: #f8f9fa;
    border: 1px solid #f0f0f0;
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
    white-space: nowrap;
    color: #666;
    font-weight: 500;
}

.tab-btn:hover {
    background: #e9ecef;
    color: #333;
}

.tab-btn.active {
    background: #0072BB;
    color: white;
    border-color: #0072BB;
}

.tab-pane {
    display: none;
    padding: 15px 0;
}

.tab-pane.active {
    display: block;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.info-section {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    border: 1px solid #f0f0f0;
    transition: all 0.3s;
}

.info-section.edit-mode {
    background: #fffde7;
    border-color: #ffd54f;
}

.info-section h4 {
    margin-top: 0;
    color: #0072BB;
    border-bottom: 2px solid #0072BB;
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-size: 16px;
    font-weight: 600;
}

.info-row {
    display: flex;
    margin-bottom: 12px;
    align-items: flex-start;
    line-height: 1.4;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.info-label {
    font-weight: 600;
    min-width: 180px;
    color: #495057;
    font-size: 14px;
}

.info-value {
    flex: 1;
    color: #212529;
    font-size: 14px;
    word-break: break-word;
}

.info-value input,
.info-value select,
.info-value textarea {
    width: 100%;
    padding: 8px 10px;
    border: none;
    background: transparent;
    font-size: 14px;
    color: #212529;
    transition: all 0.3s;
}

.info-value input:disabled,
.info-value select:disabled,
.info-value textarea:disabled {
    background: transparent;
    color: #212529;
    border: none;
    cursor: default;
}

.info-value input:not(:disabled),
.info-value select:not(:disabled),
.info-value textarea:not(:disabled) {
    background: white;
    border: 1px solid #ccc !important;
    border-radius: 4px;
    cursor: text;
}

.info-value a {
    color: #0072BB;
    text-decoration: none;
}

.info-value a:hover {
    text-decoration: underline;
}

.info-value-editable,
.status-editable,
.level-editable {
    transition: all 0.3s;
}

.info-value-editable:disabled,
.status-editable:disabled,
.level-editable:disabled {
    border: none !important;
    background: transparent !important;
}

.cpe-progress {
    margin: 20px 0 10px;
}

.progress-bar {
    height: 10px;
    background: #e9ecef;
    border-radius: 5px;
    overflow: hidden;
    margin: 5px 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #28a745, #20c997);
    transition: width 0.3s;
}

.progress-text {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6c757d;
    margin-top: 5px;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

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

.close-modal-btn:hover {
    background: #545b62;
}

.edit-details-btn {
    background: #ffc107;
    color: #212529;
}

.edit-details-btn:hover {
    background: #e0a800;
    color: #212529;
}

.save-edit-btn {
    background: #28a745;
    color: white;
}

.save-edit-btn:hover {
    background: #218838;
    color: white;
}

.cancel-edit-btn {
    background: #dc3545;
    color: white;
}

.cancel-edit-btn:hover {
    background: #c82333;
    color: white;
}

.edit-student-form {
    padding: 10px 0;
}

.order-edit-form {
    padding: 10px 0;
}

.order-edit-form h4 {
    margin-top: 0;
    color: #0072BB;
    border-bottom: 2px solid #0072BB;
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 600;
}

.order-edit-form h5 {
    margin-top: 0;
    color: #333;
    padding-bottom: 8px;
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 600;
    border-bottom: 1px solid #f0f0f0;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.form-section {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    border: 1px solid #f0f0f0;
}

.form-section h4 {
    margin-top: 0;
    color: #0072BB;
    border-bottom: 2px solid #0072BB;
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-size: 16px;
    font-weight: 600;
}

.form-row {
    margin-bottom: 15px;
}

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

.form-row label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #495057;
    font-size: 14px;
}

.form-input {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s;
    background: white;
}

.form-input:focus {
    border-color: #0072BB;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 114, 187, 0.1);
}

.form-input:disabled {
    background: #f8f9fa;
    color: #6c757d;
    cursor: not-allowed;
}

.form-select {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    background: white;
    cursor: pointer;
    color: #333;
}

.form-select:focus {
    border-color: #0072BB;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 114, 187, 0.1);
}

.form-help {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #6c757d;
}

.status-display {
    padding: 10px 0;
}

.order-items {
    margin: 25px 0;
}

.items-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    margin-top: 10px;
}

.items-table th {
    background: #f8f9fa;
    padding: 12px;
    text-align: left;
    border-bottom: 2px solid #e9ecef;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
}

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

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

.courses-table-container {
    overflow-x: auto;
    margin-top: 15px;
}

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

.courses-table th {
    background: #f8f9fa;
    padding: 12px;
    text-align: left;
    border-bottom: 2px solid #e9ecef;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
}

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

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

.course-link {
    font-size: 12px;
    color: #0072BB;
    text-decoration: none;
}

.course-link:hover {
    text-decoration: underline;
}

.status-completed {
    color: #28a745;
    font-weight: 600;
}

.status-in-progress {
    color: #ffc107;
    font-weight: 600;
}

.action-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    color: #666;
    text-decoration: none;
    transition: all 0.2s;
}

.action-link:hover {
    background: #f8f9fa;
    border-color: #0072BB;
    color: #0072BB;
}

.orders-table-container {
    overflow-x: auto;
    margin-top: 15px;
}

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

.orders-table th {
    background: #f8f9fa;
    padding: 12px;
    text-align: left;
    border-bottom: 2px solid #e9ecef;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
}

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

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

.order-status {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.order-status-processing {
    background: #cce5ff;
    color: #004085;
}

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

.order-actions {
    display: flex;
    gap: 5px;
}

.order-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background: white !important;
    color: #666 !important;
    cursor: pointer;
    transition: all 0.2s;
}

.order-action-btn:hover:not(:disabled) {
    background: #f8f9fa;
    border-color: #0072BB;
    color: #0072BB;
}

.order-action-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.refund-btn:hover:not(:disabled) {
    border-color: #28a745;
    color: #28a745;
}

.cancel-order-btn:hover:not(:disabled) {
    border-color: #dc3545;
    color: #dc3545;
}

.update-order-btn:hover:not(:disabled) {
    border-color: #ffc107;
    color: #ffc107;
}

.cpe-summary {
    background: #e8f4fd;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    border: 1px solid #d1ecf1;
}

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

.cpe-summary-item {
    text-align: center;
}

.cpe-summary-label {
    font-size: 13px;
    color: #6c757d;
    margin-bottom: 5px;
}

.cpe-summary-value {
    font-size: 28px;
    font-weight: bold;
    color: #0072BB;
}

.used-cpe {
    color: #dc3545;
}

.available-cpe {
    color: #28a745;
}

.earned-cpe {
    color: #17a2b8;
}

.cpe-progress-bar {
    height: 10px;
    background: #f8f9fa;
    border-radius: 5px;
    overflow: hidden;
}

.cpe-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #dc3545, #ffc107);
    transition: width 0.3s;
}

.cpe-actions {
    margin-bottom: 25px;
}

.cpe-actions h5 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 15px;
    font-weight: 600;
}

.cpe-action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.cpe-action-item label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #495057;
    font-size: 14px;
}

.cpe-input-group {
    display: flex;
    gap: 8px;
}

.cpe-input {
    flex: 1;
    padding: 10px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    background: white;
}

.cpe-input:focus {
    border-color: #0072BB;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 114, 187, 0.1);
}

.cpe-action-btn {
    padding: 10px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    background: #f8f9fa;
    color: #333;
    border: 1px solid #e0e0e0;
}

.cpe-action-btn:hover:not(:disabled) {
    background: #e9ecef;
    border-color: #0072BB;
    color: #0072BB;
}

.cpe-action-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.add-cpe-btn:hover:not(:disabled) {
    border-color: #28a745;
    color: #28a745;
}

.set-cpe-btn:hover:not(:disabled) {
    border-color: #ffc107;
    color: #ffc107;
}

.reset-cpe-btn {
    width: 100%;
    background: #dc3545;
    color: white;
    border: none;
}

.reset-cpe-btn:hover:not(:disabled) {
    background: #c82333;
    color: white;
}

.cpe-history h5 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 15px;
    font-weight: 600;
}

.history-table-container {
    overflow-x: auto;
}

.cpe-history-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.cpe-history-table th {
    background: #f8f9fa;
    padding: 12px;
    text-align: left;
    border-bottom: 2px solid #e9ecef;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
}

.cpe-history-table td {
    padding: 12px;
    border-bottom: 1px solid #f8f9fa;
    vertical-align: top;
}

.cpe-history-table tr:hover {
    background: #f8f9fa;
}

.cpe-negative {
    color: #dc3545;
    font-weight: 600;
}

.cpe-positive {
    color: #28a745;
    font-weight: 600;
}

.no-data-message {
    text-align: center;
    padding: 40px 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 2px dashed #e9ecef;
}

.no-data-message p {
    color: #666;
    margin: 0;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

@media (max-width: 1200px) {
    .modal-content {
        max-width: 95%;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 992px) {
    .mad-crm-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .mad-crm-filter-grid {
        grid-template-columns: 1fr;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .cpe-action-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .mad-crm-public-wrapper {
        padding: 15px;
    }
    
    .mad-crm-header {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }
    
    .mad-crm-header-left {
        text-align: center;
        margin-bottom: 10px;
    }
    
    .mad-crm-actions {
        justify-content: center;
    }
    
    .mad-crm-stats {
        grid-template-columns: 1fr;
    }
    
    .modal-body {
        padding: 15px;
    }
    
    .modal-content {
        margin: 20px auto;
        max-height: 90vh;
    }
    
    .modal-header {
        padding: 15px;
    }
    
    .details-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 0;
    }
    
    .tab-btn {
        padding: 10px 15px;
        font-size: 13px;
    }
    
    .info-row {
        flex-direction: column;
        gap: 5px;
    }
    
    .info-label {
        min-width: auto;
    }
    
    .table-header {
        padding: 15px;
    }
    
    .mad-crm-pagination {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        padding: 15px;
    }
    
    .modal-actions {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .modal-actions .mad-crm-btn {
        flex: 1;
        min-width: 120px;
    }
    
    .action-icons-mini {
        flex-direction: column;
        gap: 5px;
    }
}

@media (max-width: 576px) {
    .mad-crm-btn {
        padding: 8px 12px;
        font-size: 13px;
        height: 36px;
    }
    
    .mad-crm-stat-card {
        padding: 15px;
    }
    
    .mad-crm-stat-value {
        font-size: 24px;
    }
    
    .modal-content {
        max-width: 100%;
        border-radius: 0;
        margin: 0;
        max-height: 100vh;
    }
    
    .mad-crm-modal {
        padding: 0;
    }
    
    .icon-btn {
        width: 28px;
        height: 28px;
    }
    
    .icon-img {
        width: 18px;
        height: 18px;
    }
}/* End custom CSS */