/* --- Aggressive CSS Reset for the App Container --- */
.isuzu-contract-app-container, .isuzu-contract-app-container * {
    all: revert; /* Start by reverting all properties */
    box-sizing: border-box;
    font-family: 'Cairo', 'Inter', sans-serif; /* Re-apply the desired font family */
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
    line-height: 1.5;
    color: #1f2937; /* Default text color */
}

/* --- Re-apply basic HTML element styles within the container --- */
.isuzu-contract-app-container div, .isuzu-contract-app-container main, .isuzu-contract-app-container aside, .isuzu-contract-app-container nav, .isuzu-contract-app-container section, .isuzu-contract-app-container header, .isuzu-contract-app-container footer {
    display: block;
}

.isuzu-contract-app-container h1 {
    font-size: 2em;
    font-weight: bold;
}

.isuzu-contract-app-container h2 {
    font-size: 1.5em;
    font-weight: bold;
}

.isuzu-contract-app-container a {
    color: #3b82f6;
    text-decoration: none;
}

.isuzu-contract-app-container ul {
    list-style: disc;
    margin-left: 20px;
}

/* --- App Specific Styles --- */
.isuzu-contract-app-container .a4-page {
    width: 210mm;
    height: 297mm;
    margin: 1rem auto;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    background: white;
}
.isuzu-contract-app-container .form-section {
    background-color: #f9fafb;
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid #e5e7eb;
}
.isuzu-contract-app-container .form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #374151;
    font-size: 0.875rem;
}
.isuzu-contract-app-container .form-input, 
.isuzu-contract-app-container .form-select {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    border: 1px solid #d1d5db;
    transition: border-color: 0.2s;
    background-color: white;
}
.isuzu-contract-app-container .form-input:focus, 
.isuzu-contract-app-container .form-select:focus {
    outline: none;
    border-color: #981a2e;
    box-shadow: 0 0 0 2px rgba(152, 26, 46, 0.2);
}
.isuzu-contract-app-container .sidebar { 
    transition: width 0.3s; 
}
.isuzu-contract-app-container .sidebar-nav a {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    color: #cbd5e1;
    font-weight: 500;
    margin-bottom: 0.5rem;
    transition: background-color 0.2s, color 0.2s;
    cursor: pointer;
}
.isuzu-contract-app-container .sidebar-nav a:hover { 
    background-color: #334155; 
    color: white; 
}
.isuzu-contract-app-container .sidebar-nav a.active { 
    background-color: #981a2e; 
    color: white; 
    font-weight: 600; 
}
.isuzu-contract-app-container .sidebar-nav a i { 
    margin-right: 0.75rem; 
    width: 20px; 
    text-align: center; 
}
.isuzu-contract-app-container .contract-list-item {
    padding: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    background-color: white;
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}
.isuzu-contract-app-container .bg-isuzu-red { 
    background-color: #981a2e !important; 
}
.isuzu-contract-app-container .bordered-cell { 
    border: 1px solid #e5e7eb; 
    padding: 2px 4px; 
}
.isuzu-contract-app-container .bordered-cell-strong { 
    border: 1px solid #000; 
    padding: 2px 4px; 
}
.isuzu-contract-app-container .bg-gray-200-t { 
    background-color: #f3f4f6 !important; 
}
.isuzu-contract-app-container .bg-yellow-100-t { 
    background-color: #fef9c3 !important; 
}
.isuzu-contract-app-container .bg-red-100-t { 
    background-color: #fee2e2 !important; 
}
