/* Dashboard */
.warranty-stats {
    display: flex;
    gap: 20px;
    margin: 20px 0;
}

.stat-box {
    background: white;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 4px;
    text-align: center;
    min-width: 150px;
}

.stat-number {
    font-size: 32px;
    font-weight: bold;
    margin: 10px 0;
}

.stat-number.active {
    color: #28a745;
}

.stat-number.expired {
    color: #dc3545;
}

/* Brand menu */
.brand-management {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
    margin-top: 20px;
}

.brand-form {
    background: white;
    padding: 20px;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
}

.brand-form-inner fieldset {
    border: none;
    padding: 0;
}

.brand-form-inner fieldset label {
    margin-right: 15px;
    display: inline-block;
}

.brands-list {
    background: white;
    padding: 20px;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
}

.product-count {
    font-weight: bold;
    color: #0073aa;
}

.editing {
    background-color: #fff9c4;
}

.row-actions {
    color: #ddd;
}

.row-actions span {
    display: inline;
}

.row-actions .delete.disabled {
    opacity: 0.6;
}

@media (max-width: 782px) {
    .brand-management {
        grid-template-columns: 1fr;
    }
}

/* Category menu */
.category-management {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
    margin-top: 20px;
}

.category-form {
    background: white;
    padding: 20px;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
}

.category-form-inner fieldset {
    border: none;
    padding: 0;
}

.category-form-inner fieldset label {
    margin-right: 15px;
    display: inline-block;
}

.categories-list {
    background: white;
    padding: 20px;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
}

.product-count {
    font-weight: bold;
    color: #0073aa;
}

.editing {
    background-color: #fff9c4;
}

.row-actions {
    color: #ddd;
}

.row-actions span {
    display: inline;
}

.row-actions .delete.disabled {
    opacity: 0.6;
}

@media (max-width: 782px) {
    .category-management {
        grid-template-columns: 1fr;
    }
}

/* Products menu */
.search-form .search-box {
    display: flex;
    gap: 10px;
    align-items: center;
    margin: 20px 0;
}

.search-form input[type="search"] {
    width: 300px;
}

.warranty-status {
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
}

.status-active {
    background: #d4edda;
    color: #155724;
}

.status-expired {
    background: #f8d7da;
    color: #721c24;
}

.status-claimed {
    background: #d1ecf1;
    color: #0c5460;
}

.warranty-remaining {
    color: #28a745;
    font-weight: bold;
}

.expired-warranty {
    background-color: #fff5f5;
}

#product-details-modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
    border-radius: 5px;
    position: relative;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 10px;
    top: 5px;
}

.close:hover {
    color: black;
}

.pagination-links {
    display: inline-block;
}

.pagination-links .button {
    margin: 0 2px;
}
/* Product details modal */
#product-details-modal {
    position: fixed;
    z-index: 100000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
}
#product-details-modal .modal-content {
    background: #fff;
    margin: 5% auto;
    padding: 20px 30px;
    border-radius: 4px;
    max-width: 640px;
    position: relative;
    max-height: 80vh;
    overflow: auto;
}
#product-details-modal .close {
    position: absolute;
    right: 16px;
    top: 10px;
    font-size: 28px;
    cursor: pointer;
}
.warranty-status.status-active { color: #046b00; font-weight: 600; }
.warranty-status.status-expired { color: #b32d2e; font-weight: 600; }
.warranty-status.status-claimed { color: #996800; font-weight: 600; }
.warranty-status.status-void { color: #666; font-weight: 600; }
.expired-warranty { background: #fef7f1; }
.prodwasy-admin-form .form-table th { width: 200px; }
.select2-container { max-width: 500px; }
