/**
 * Fegyver és Lőszer Nyilvántartó Rendszer
 * Alkalmazás stílusok
 */

/* Dashboard kártyák */
.dashboard-card {
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}

.stat-card {
    display: flex;
    align-items: center;
}

.stat-icon {
    margin-right: 15px;
}

.stat-content {
    flex: 1;
}

.stat-value {
    font-size: 28px;
    font-weight: bold;
    color: #2c3e50;
    line-height: 1.2;
}

.stat-label {
    font-size: 14px;
    color: #7f8c8d;
    margin-top: 2px;
}

.stat-detail {
    font-size: 12px;
    color: #95a5a6;
    margin-top: 5px;
}

/* Grid sorok */
.x-grid-row-over .x-grid-cell {
    background-color: #ecf0f1 !important;
}

.x-grid-row-selected .x-grid-cell {
    background-color: #3498db !important;
    color: white;
}

/* Státusz színek */
.status-active {
    color: #27ae60;
    font-weight: bold;
}

.status-inactive {
    color: #95a5a6;
}

.status-warning {
    color: #f39c12;
    font-weight: bold;
}

.status-danger {
    color: #e74c3c;
    font-weight: bold;
}

/* Besorolás badge-ek */
.badge-hadi {
    background: #e74c3c;
    color: white;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: bold;
}

.badge-polgari {
    background: #3498db;
    color: white;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: bold;
}

/* Form mezők */
.x-form-item-label {
    font-weight: 500;
}

.x-form-invalid-field {
    border-color: #e74c3c !important;
}

/* Toolbar */
.x-toolbar {
    padding: 5px 10px;
}

/* Navigációs fa */
.x-treelist-item-text {
    font-size: 13px;
}

.x-treelist-item-selected .x-treelist-item-text {
    font-weight: bold;
}

/* Tabpanel */
.x-tab-bar {
    background: #ecf0f1;
}

.x-tab-active {
    background: #3498db !important;
    color: white !important;
}

/* Üzenetek */
.x-message-box .x-window-body {
    padding: 20px;
}

/* Exportálás gomb */
.export-menu .x-menu-item {
    padding: 8px 15px;
}

/* Responsive */
@media (max-width: 1200px) {
    .stat-value {
        font-size: 22px;
    }
    
    .stat-label {
        font-size: 12px;
    }
}

/* Nyomtatási stílus */
@media print {
    .x-toolbar,
    .x-panel-header,
    .x-tree-panel,
    .x-pagingtoolbar {
        display: none !important;
    }
    
    .x-grid-view {
        overflow: visible !important;
    }
}

/* Inaktív (logikailag törölt) grid sorok */
.row-inactive {
    color: #aaa !important;
    font-style: italic;
    background-color: #fafafa !important;
}
.row-inactive .x-grid-cell-inner {
    color: #aaa !important;
}

/* Action column Font Awesome ikonok */
.x-action-col-icon {
    overflow: visible !important;
    font-size: 14px;
    line-height: 16px;
    text-align: center;
}

/* Tooltipek */
.x-tip-body {
    padding: 8px 12px;
    font-size: 12px;
}

/* Loading mask */
.x-mask-msg-text {
    font-size: 13px;
    padding: 10px 15px;
}

/* Scrollbar stílus */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #bdc3c7;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #95a5a6;
}
