body {
    background: #f0f2f5;
}

.ip-app {
    display: flex;
    max-width: 1200px;
    margin: 40px auto;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.ip-sidebar {
    width: 260px;
    background: #1e293b;
    color: #fff;
    padding: 20px;
}

.ip-sidebar h3 {
    margin: 0 0 15px;
}

.ip-new-inventory-form {
    display: grid;
    gap: 10px;
    margin-bottom: 20px;
}

.ip-sidebar input,
.ip-sidebar button {
    width: 100%;
}

.ip-sidebar input {
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #334155;
    background: #fff;
    color: #111827;
}

.ip-sidebar button {
    padding: 10px;
    background: #3b82f6;
    border: none;
    color: #fff;
    border-radius: 8px;
    cursor: pointer;
}

.ip-sidebar button:hover {
    background: #2563eb;
}

.ip-inventory-list {
    margin-top: 20px;
    list-style: none;
    padding: 0;
}

.ip-inventory-list li {
    margin-bottom: 10px;
    border-radius: 8px;
}

.ip-inventory-list li.is-active {
    background: rgba(255, 255, 255, 0.12);
}

.ip-inventory-list a {
    display: block;
    color: #cbd5e1;
    text-decoration: none;
    padding: 10px 12px;
}

.ip-inventory-list li.is-active a {
    color: #fff;
    font-weight: 700;
}

.ip-main {
    flex: 1;
    padding: 30px;
}

.ip-inventario-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 18px;
    margin-bottom: 26px;
}

.ip-inventario-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.ip-inventario-header h2 {
    margin: 0 0 6px;
}

.ip-inventario-header p {
    margin: 0;
    color: #64748b;
}

.ip-inventario-id {
    background: #0f172a;
    color: #fff;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 14px;
    white-space: nowrap;
}

.ip-form {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.ip-inventario-form {
    grid-template-columns: repeat(2, 1fr);
}

.ip-form input,
.ip-form select,
.ip-form textarea {
    padding: 10px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    width: 100%;
    box-sizing: border-box;
}

.ip-form textarea {
    min-height: 90px;
    grid-column: 1 / -1;
    resize: vertical;
}

.ip-form button {
    background: #10b981;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px;
    cursor: pointer;
    grid-column: 1 / -1;
}

.ip-form button:hover {
    background: #059669;
}

.ip-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 0;
    color: #334155;
    grid-column: 1 / -1;
}

.ip-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 15px;
}

.ip-card {
    background: #f9fafb;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
    display: grid;
    gap: 6px;
}

.ip-card strong {
    font-size: 16px;
}

.ip-card small {
    color: #64748b;
}

.ip-card .tag {
    display: inline-block;
    width: fit-content;
    background: #ef4444;
    color: #fff;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 12px;
}

.ip-actions {
    margin-top: 8px;
}

.ip-actions a {
    color: #ef4444;
    font-size: 12px;
    text-decoration: none;
}

@media (max-width: 900px) {
    .ip-app {
        flex-direction: column;
    }

    .ip-sidebar {
        width: 100%;
    }

    .ip-form,
    .ip-inventario-form {
        grid-template-columns: 1fr;
    }
}