/**
 * PsmElta Module Styles
 *
 * @author    Christos A. Daggas
 * @copyright 2015-2024 HotWebDesign.gr
 * @license   Commercial License
 */

/* Configuration Panel */
.psm_elta-config .panel {
    margin-bottom: 20px;
}

.psm_elta-config .panel-heading {
    background-color: #4b5563;
    color: #fff;
    padding: 10px 15px;
    border-radius: 4px 4px 0 0;
}

.psm_elta-config .panel-heading i {
    margin-right: 8px;
}

/* Print Button */
button.psm_elta-print-btn,
.btn.psm_elta-print-btn {
    padding: 10px 20px !important;
    width: 200px;
    height: 60px;
    font-size: 14px;
}

/* Module Info Header */
.psm_elta-module-info h1 {
    margin-top: 0 !important;
}

/* Orders Table */
.psm_elta-orders-table {
    width: 100%;
    margin-bottom: 1rem;
}

.psm_elta-orders-table th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
}

.psm_elta-orders-table td {
    vertical-align: middle;
}

/* Voucher Status Badges */
.psm_elta-status-badge {
    display: inline-block;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 4px;
}

.psm_elta-status-pending {
    background-color: #ffc107;
    color: #000;
}

.psm_elta-status-printed {
    background-color: #28a745;
    color: #fff;
}

.psm_elta-status-canceled {
    background-color: #dc3545;
    color: #fff;
}

.psm_elta-status-delivered {
    background-color: #17a2b8;
    color: #fff;
}

/* Price Input */
.psm_elta-price-input {
    width: 100px;
    text-align: right;
}

.psm_elta-price-cell {
    cursor: pointer;
    text-align: right;
}

.psm_elta-price-cell:hover {
    background-color: #f5f5f5;
}

/* Comment Field */
.psm_elta-comment-input {
    width: 100%;
    min-height: 60px;
    resize: vertical;
}

.psm_elta-comment-cell {
    cursor: pointer;
    max-width: 200px;
}

.psm_elta-comment-cell:hover {
    background-color: #f5f5f5;
}

/* Order ID Column */
.psm_elta-orderid {
    font-weight: bold;
}

/* Action Buttons */
.psm_elta-action-btn {
    margin: 2px;
}

.psm_elta-btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

/* Tracking Result */
.psm_elta-tracking .tracking-result {
    margin-bottom: 20px;
}

.psm_elta-tracking .alert i {
    vertical-align: middle;
    margin-right: 8px;
}

/* Header Tracking Link */
#psm_elta_tracking_link {
    display: inline-block;
}

#psm_elta_tracking_link a {
    display: flex;
    align-items: center;
    color: inherit;
    text-decoration: none;
}

#psm_elta_tracking_link a:hover {
    color: #2fb5d2;
}

#psm_elta_tracking_link i {
    margin-right: 5px;
}

/* Dashboard Widgets */
.psm_elta-dashboard-widget {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 20px;
}

.psm_elta-dashboard-widget h3 {
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

/* Stats Cards */
.psm_elta-stats-row {
    display: flex;
    flex-wrap: wrap;
    margin: -10px;
}

.psm_elta-stat-card {
    flex: 1;
    min-width: 150px;
    margin: 10px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 4px;
    text-align: center;
}

.psm_elta-stat-card .stat-value {
    font-size: 2em;
    font-weight: bold;
    color: #333;
}

.psm_elta-stat-card .stat-label {
    color: #666;
    font-size: 0.9em;
    margin-top: 5px;
}

/* Loading Spinner */
.psm_elta-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    animation: psm_elta-spin 1s linear infinite;
}

@keyframes psm_elta-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .psm_elta-orders-table {
        font-size: 12px;
    }
    
    button.psm_elta-print-btn,
    .btn.psm_elta-print-btn {
        width: 100%;
        height: auto;
    }
    
    .psm_elta-stat-card {
        min-width: 100%;
    }
}

/* Order Panel in Order View */
.psm_elta-order-panel {
    margin-bottom: 20px;
}

.psm_elta-order-panel .panel-heading {
    background-color: #25b9d7;
    color: #fff;
}

.psm_elta-voucher-info {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
}

.psm_elta-voucher-info .info-item {
    flex: 1;
    min-width: 120px;
}

.psm_elta-voucher-info .info-label {
    font-weight: bold;
    color: #666;
    font-size: 0.9em;
}

.psm_elta-voucher-info .info-value {
    font-size: 1.1em;
    color: #333;
}

/* Form Styling */
.psm_elta-form .form-group {
    margin-bottom: 15px;
}

.psm_elta-form label {
    font-weight: 500;
}

.psm_elta-form .help-block {
    color: #666;
    font-size: 0.85em;
    margin-top: 5px;
}

/* Alert Messages */
.psm_elta-alert {
    padding: 12px 15px;
    border-radius: 4px;
    margin-bottom: 15px;
}

.psm_elta-alert-success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.psm_elta-alert-error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.psm_elta-alert-info {
    background-color: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
}

.psm_elta-alert-warning {
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    color: #856404;
}