

/* vehiculos*/
.page-content {
    padding: 20px;
}

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

.page-header h2 {
    margin: 0;
}

.text-center {
    text-align: center;
    padding: 30px;
    color: #999;
}

.btn-sm {
    padding: 5px 10px;
    font-size: 12px;
}

.btn-info {
    background: #17a2b8;
    color: white;
}

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

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

/*informacion del sistema*/
.system-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.system-card {
    background: #FFFFFF;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    overflow: hidden;
}

.system-card-header {
    background: #F8F9FA;
    padding: 15px 20px;
    border-bottom: 1px solid #E9ECEF;
    display: flex;
    align-items: center;
    gap: 12px;
}

.system-card-header i {
    font-size: 20px;
    color: #714B67;
}

.system-card-header h3 {
    margin: 0;
    font-size: 16px;
    color: #2C2C2C;
}

.system-card-body {
    padding: 15px 20px;
}

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

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

.info-row .label {
    color: #6C6C6C;
    font-weight: 500;
    font-size: 13px;
}

.info-row .value {
    color: #2C2C2C;
    font-size: 13px;
    text-align: right;
    max-width: 60%;
    word-break: break-all;
}

.info-row .value a {
    color: #714B67;
    text-decoration: none;
}

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

.system-section {
    background: #FFFFFF;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    padding: 20px;
    margin-top: 20px;
}

.system-section h3 {
    margin: 0 0 20px 0;
    color: #2C2C2C;
    display: flex;
    align-items: center;
    gap: 10px;
}

.system-section h3 i {
    color: #714B67;
}

code {
    background: #F8F9FA;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 12px;
    color: #E83E8C;
}

@media (max-width: 768px) {
    .system-grid {
        grid-template-columns: 1fr;
    }
    
    .info-row {
        flex-direction: column;
        gap: 2px;
    }
    
    .info-row .value {
        text-align: left;
        max-width: 100%;
    }
}
/*fin informacion*/

/*vehiculos view principal*/
/* Estadísticas */
.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.stat-item {
    background: #FFFFFF;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.stat-number {
    display: block;
    font-size: 24px;
    font-weight: 600;
    color: #714B67;
}

.stat-label {
    font-size: 12px;
    color: #6C6C6C;
}

/* Grid de vehículos */
.vehicles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.vehicle-card {
    background: #FFFFFF;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    transition: all 0.2s;
    cursor: pointer;
}

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

.vehicle-photo {
    height: 180px;
    background: #F8F9FA;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vehicle-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vehicle-placeholder {
    font-size: 48px;
    color: #ADB5BD;
}

.vehicle-info {
    padding: 15px;
}

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

.vehicle-plate {
    font-weight: 600;
    font-size: 16px;
    color: #2C2C2C;
}

.vehicle-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 13px;
    color: #6C6C6C;
    margin-bottom: 12px;
}

.vehicle-details i {
    width: 16px;
    color: #714B67;
}

.vehicle-actions {
    display: flex;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid #F0F0F0;
}

/* Empty state */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #6C6C6C;
}

.empty-state i {
    font-size: 48px;
    color: #ADB5BD;
    display: block;
    margin-bottom: 15px;
}

.empty-state p {
    font-size: 16px;
    margin-bottom: 15px;
}
/*fin de view vehiculos*/

/*vista mostrar detalle de vehiculo*/
/* Estadísticas */
.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.stat-item {
    background: #FFFFFF;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.stat-number {
    display: block;
    font-size: 24px;
    font-weight: 600;
    color: #714B67;
}

.stat-label {
    font-size: 12px;
    color: #6C6C6C;
}

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

.btn-sm {
    padding: 5px 10px;
    font-size: 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    transition: all 0.2s;
}

.btn-sm:hover {
    transform: scale(1.05);
}

.btn-primary {
    background: #714B67;
    color: white;
}

.btn-primary:hover {
    background: #875A7B;
}

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

.btn-warning:hover {
    background: #e0a800;
}

.btn-danger {
    background: #C4585A;
    color: white;
}

.btn-danger:hover {
    background: #a04547;
}

.text-muted {
    color: #6C6C6C;
}

.text-center {
    text-align: center;
    padding: 40px 20px;
}
/*fin detalle*/

/*view de create vehicle*/
.vehicle-form {
    background: #FFFFFF;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.form-grid-full {
    margin-top: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

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

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

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #DDD;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.2s;
    box-sizing: border-box;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #714B67;
    box-shadow: 0 0 0 3px rgba(113, 75, 103, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 60px;
}

.form-group .text-muted {
    display: block;
    margin-top: 5px;
    color: #6C6C6C;
    font-size: 12px;
}

.file-input {
    padding: 8px 0;
    cursor: pointer;
}

.form-actions {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #E0E0E0;
    display: flex;
    gap: 10px;
}

.btn {
    padding: 10px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: #714B67;
    color: #FFFFFF !important;
}

.btn-primary:hover {
    background: #875A7B;
    color: #FFFFFF !important;
}

.btn-secondary {
    background: #6C757D;
    color: #FFFFFF !important;
}

.btn-secondary:hover {
    background: #5A6268;
    color: #FFFFFF !important;
}

@media (max-width: 768px) {
    .form-grid-2,
    .form-grid-full {
        grid-template-columns: 1fr;
        gap: 0;
    }
}
/*fin de view create vehicle*/

/*view de show vehicle*/
.vehicle-card-detail {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
    background: #FFFFFF;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.vehicle-photo-detail {
    background: #F8F9FA;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.vehicle-photo-detail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vehicle-placeholder-detail {
    text-align: center;
    color: #ADB5BD;
}

.vehicle-placeholder-detail i {
    font-size: 64px;
    display: block;
    margin-bottom: 10px;
}

.vehicle-data {
    position: relative;
}

.status-badge {
    position: absolute;
    top: 0;
    right: 0;
}

.vehicle-title {
    font-size: 28px;
    margin: 0 0 5px 0;
    color: #2C2C2C;
}

.vehicle-subtitle {
    font-size: 18px;
    color: #6C6C6C;
    margin: 0 0 20px 0;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 20px;
    margin-bottom: 20px;
}

.info-item {
    padding: 8px 0;
    border-bottom: 1px solid #F0F0F0;
}

.info-label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    color: #6C6C6C;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.info-value {
    display: block;
    font-size: 14px;
    color: #2C2C2C;
    margin-top: 2px;
}

.color-dot {
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1px solid #DDD;
    vertical-align: middle;
    margin-right: 5px;
}

.info-section {
    margin-top: 20px;
}

.info-section h4 {
    font-size: 14px;
    color: #6C6C6C;
    margin: 0 0 8px 0;
}

.info-section p {
    font-size: 14px;
    color: #2C2C2C;
    margin: 0;
    line-height: 1.6;
}

.badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.badge-success {
    background: #D4EDDA;
    color: #155724;
}

.badge-danger {
    background: #F8D7DA;
    color: #721C24;
}

.badge-warning {
    background: #FFF3CD;
    color: #856404;
}

.badge-secondary {
    background: #E9ECEF;
    color: #6C757D;
}

@media (max-width: 768px) {
    .vehicle-card-detail {
        grid-template-columns: 1fr;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .status-badge {
        position: relative;
        text-align: right;
        margin-bottom: 10px;
    }
}
/*fin de view vehicle*/

/*PAGINACION*/
/* Paginación */
.pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding: 15px 0;
    flex-wrap: wrap;
    gap: 15px;
}

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

.pagination {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}

.page-numbers {
    display: flex;
    gap: 5px;
}

.per-page-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #6C6C6C;
}

.per-page-selector select {
    padding: 5px 10px;
    border: 1px solid #DDD;
    border-radius: 4px;
    background: white;
    cursor: pointer;
}

.btn-sm {
    padding: 5px 12px;
    font-size: 13px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-sm.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.btn-primary {
    background: #714B67;
    color: white;
}

.btn-primary:hover {
    background: #875A7B;
    color: white;
}

.btn-secondary {
    background: #E9ECEF;
    color: #2C2C2C;
}

.btn-secondary:hover {
    background: #DEE2E6;
    color: #2C2C2C;
}

@media (max-width: 768px) {
    .pagination-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .pagination {
        justify-content: center;
    }
    
    .page-numbers {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .per-page-selector {
        justify-content: center;
    }
}
/*FIN PAGINACION*/

/* view de talleres */
/* Estilos ya existentes + agregar */

.action-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #E9ECEF;
}

.btn {
    padding: 10px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: #714B67;
    color: #FFFFFF !important;
}
.btn-primary:hover {
    background: #875A7B;
    color: #FFFFFF !important;
}

.btn-success {
    background: #7C9C6E;
    color: #FFFFFF !important;
}
.btn-success:hover {
    background: #6B8A5E;
    color: #FFFFFF !important;
}

.btn-warning {
    background: #F0A446;
    color: #FFFFFF !important;
}
.btn-warning:hover {
    background: #D9912E;
    color: #FFFFFF !important;
}

.btn-info {
    background: #17A2B8;
    color: #FFFFFF !important;
}
.btn-info:hover {
    background: #138496;
    color: #FFFFFF !important;
}

.btn-secondary {
    background: #6C757D;
    color: #FFFFFF !important;
}
.btn-secondary:hover {
    background: #5A6268;
    color: #FFFFFF !important;
}

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

.items-table {
    width: 100%;
    border-collapse: collapse;
}
.items-table th {
    background: #F8F9FA;
    padding: 10px 12px;
    text-align: left;
    font-weight: 600;
    color: #6C6C6C;
    font-size: 12px;
    text-transform: uppercase;
}
.items-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #F0F0F0;
}
.items-table tfoot tr {
    border-top: 2px solid #E9ECEF;
}
.total-row td {
    padding-top: 15px;
}

.history-timeline {
    max-height: 300px;
    overflow-y: auto;
}
.history-item {
    display: flex;
    gap: 15px;
    padding: 10px 0;
    border-bottom: 1px solid #F0F0F0;
}
.history-time {
    min-width: 140px;
    font-size: 12px;
    color: #6C6C6C;
}
.history-content {
    flex: 1;
}
.history-user {
    font-weight: 600;
    color: #714B67;
}
.history-action {
    color: #2C2C2C;
}
.history-notes {
    color: #6C6C6C;
    font-style: italic;
}

@media (max-width: 768px) {
    .history-item {
        flex-direction: column;
        gap: 5px;
    }
    .history-time {
        min-width: auto;
    }
    .action-buttons {
        flex-direction: column;
    }
    .action-buttons .btn {
        width: 100%;
        justify-content: center;
    }
}
/*fin view talleres*/

/*talleres*/
.workshop-form {
    max-width: 1200px;
    margin: 0 auto;
}
.status-banner {
    text-align: center;
    margin-bottom: 20px;
}
.status-banner .badge {
    font-size: 18px;
    padding: 8px 24px;
}
.vehicle-info-card {
    background: #FFFFFF;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    margin-bottom: 20px;
}
.vehicle-info-card h3 {
    margin: 0 0 15px 0;
    color: #2C2C2C;
    border-bottom: 1px solid #E9ECEF;
    padding-bottom: 10px;
}
.vehicle-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 30px;
}
.form-card {
    background: #FFFFFF;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    margin-bottom: 20px;
}
.form-card h3 {
    margin: 0 0 15px 0;
    color: #2C2C2C;
    border-bottom: 1px solid #E9ECEF;
    padding-bottom: 10px;
}
.form-group {
    margin-bottom: 15px;
}
.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #2C2C2C;
}
.form-group textarea,
.form-group input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #DDD;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.2s;
    box-sizing: border-box;
    font-family: inherit;
}
.form-group textarea:focus,
.form-group input:focus {
    outline: none;
    border-color: #714B67;
    box-shadow: 0 0 0 3px rgba(113, 75, 103, 0.1);
}
.items-container {
    overflow-x: auto;
}
.items-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 10px;
}
.items-table th {
    background: #F8F9FA;
    padding: 10px 12px;
    text-align: left;
    font-weight: 600;
    color: #6C6C6C;
    font-size: 12px;
    text-transform: uppercase;
}
.items-table td {
    padding: 8px 12px;
    border-bottom: 1px solid #F0F0F0;
    vertical-align: middle;
}
.items-table .form-control {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid #DDD;
    border-radius: 4px;
    font-size: 13px;
    box-sizing: border-box;
}
.items-table .form-control:focus {
    outline: none;
    border-color: #714B67;
}
.items-table .item-total {
    font-weight: 500;
    color: #2C2C2C;
}
.items-table .total-row td {
    border-top: 2px solid #714B67;
    padding-top: 15px;
}
.items-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}
.text-center {
    text-align: center;
}
.text-muted {
    color: #6C6C6C;
}
.form-actions {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #E0E0E0;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.btn {
    padding: 10px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn-primary {
    background: #714B67;
    color: #FFFFFF !important;
}
.btn-primary:hover {
    background: #875A7B;
    color: #FFFFFF !important;
}
.btn-success {
    background: #7C9C6E;
    color: #FFFFFF !important;
}
.btn-success:hover {
    background: #6B8A5E;
    color: #FFFFFF !important;
}
.btn-secondary {
    background: #6C757D;
    color: #FFFFFF !important;
}
.btn-secondary:hover {
    background: #5A6268;
    color: #FFFFFF !important;
}
.btn-danger {
    background: #C4585A;
    color: #FFFFFF !important;
}
.btn-danger:hover {
    background: #A04547;
    color: #FFFFFF !important;
}
.btn-sm {
    padding: 5px 10px;
    font-size: 12px;
}
@media (max-width: 768px) {
    .vehicle-grid {
        grid-template-columns: 1fr;
    }
    .items-table {
        font-size: 13px;
    }
    .items-table th,
    .items-table td {
        padding: 6px 8px;
    }
    .form-actions {
        flex-direction: column;
    }
    .form-actions .btn {
        width: 100%;
        justify-content: center;
    }
}