.uelegal-form-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-top: 22px;
}

.uelegal-field label {
    display: block !important;
    margin-bottom: 8px !important;
    font-weight: 700 !important;
    color: #10233f !important;
}

.uelegal-field input,
.uelegal-field select {
    width: 100% !important;
    height: 48px !important;
    padding: 0 14px !important;
    border: 1px solid #b8c2d1 !important;
    border-radius: 10px !important;
    background: #f8fafc !important;
    font-size: 16px !important;
    box-sizing: border-box !important;
}

.uelegal-btn {
    display: inline-block !important;
    width: auto !important;
    min-width: 180px !important;
    margin-top: 22px !important;
    padding: 14px 24px !important;
    border: none !important;
    border-radius: 10px !important;
    background: linear-gradient(135deg, #12395a, #0b2740) !important;
    color: #ffffff !important;
    font-size: 17px !important;
    font-weight: 800 !important;
    cursor: pointer !important;
}

@media (max-width: 768px) {
    .uelegal-form-grid {
        grid-template-columns: 1fr;
    }

    .uelegal-btn {
        width: 100% !important;
    }
}
.uelegal-status{
background:#22c55e;
color:white;
padding:18px;
border-radius:12px;
font-size:22px;
font-weight:bold;
text-align:center;
margin-top:30px;
margin-bottom:25px;
}

.uelegal-cards{

display:grid;

grid-template-columns:repeat(auto-fit,minmax(220px,1fr));

gap:20px;

margin-bottom:30px;

}

.uelegal-card{

background:white;

border-radius:15px;

padding:22px;

box-shadow:0 10px 25px rgba(0,0,0,.08);

border-left:6px solid #12395a;

}

.uelegal-card.green{

border-left:6px solid #16a34a;

}

.uelegal-card span{

display:block;

font-size:15px;

color:#64748b;

margin-bottom:8px;

}

.uelegal-card h2{

margin:0;

font-size:34px;

color:#10233f;

}

.uelegal-info{

background:#eff6ff;

border-left:6px solid #2563eb;

padding:22px;

border-radius:14px;

margin-top:25px;

}

.uelegal-warning{

background:#fff7ed;

border-left:6px solid #f97316;

padding:22px;

border-radius:14px;

margin-top:25px;

}

.uelegal-warning ul{

margin-top:12px;

padding-left:20px;

}
.ue-card{

background:#fff;

border-radius:18px;

padding:25px;

box-shadow:0 10px 25px rgba(0,0,0,.08);

border-left:6px solid #12395a;

transition:.25s;

}

.ue-card:hover{

transform:translateY(-4px);

box-shadow:0 20px 40px rgba(0,0,0,.15);

}

.ue-card-icon{

font-size:42px;

margin-bottom:10px;

}

.ue-card-title{

font-size:16px;

color:#64748b;

}

.ue-card-value{

font-size:34px;

font-weight:bold;

margin-top:8px;

color:#10233f;

}
.ue-field{

display:flex;

flex-direction:column;

gap:8px;

}

.ue-field label{

font-weight:700;

color:#10233f;

font-size:15px;

}

.ue-field input,
.ue-field select{

width:100%;

padding:14px;

border-radius:10px;

border:1px solid #cbd5e1;

background:#fff;

font-size:16px;

transition:.2s;

}

.ue-field input:focus,
.ue-field select:focus{

outline:none;

border-color:#12395a;

box-shadow:0 0 0 3px rgba(18,57,90,.15);

}
.ue-alert{

padding:18px;

border-radius:14px;

font-size:17px;

font-weight:600;

margin:20px 0;

box-shadow:0 8px 20px rgba(0,0,0,.08);

}

.ue-success{

background:#dcfce7;

border-left:6px solid #16a34a;

color:#14532d;

}

.ue-warning{

background:#fff7ed;

border-left:6px solid #ea580c;

color:#9a3412;

}

.ue-danger{

background:#fee2e2;

border-left:6px solid #dc2626;

color:#7f1d1d;

}

.ue-info{

background:#dbeafe;

border-left:6px solid #2563eb;

color:#1e3a8a;

}
.ue-result-grid{

display:grid;

grid-template-columns:repeat(auto-fit,minmax(230px,1fr));

gap:20px;

margin-top:25px;

margin-bottom:25px;

}
.uelegal-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 18px;
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
}

.uelegal-table th {
    background: #10233f;
    color: #ffffff;
    padding: 14px;
    text-align: left;
    font-weight: 800;
}

.uelegal-table td {
    padding: 14px;
    border-bottom: 1px solid #e5e7eb;
    color: #334155;
}

.uelegal-table tr:last-child td {
    border-bottom: none;
}

.uelegal-status.warning {
    background: #f97316;
}

.uelegal-status.danger {
    background: #dc2626;
}
.uelegal-cards {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
    gap: 20px !important;
    margin: 25px 0 !important;
}

.uelegal-card {
    background: #ffffff !important;
    border-radius: 16px !important;
    padding: 22px !important;
    border-left: 6px solid #12395a !important;
    box-shadow: 0 10px 25px rgba(0,0,0,.08) !important;
}

.uelegal-card.green {
    border-left-color: #16a34a !important;
}

.uelegal-card span {
    display: block !important;
    color: #64748b !important;
    font-size: 15px !important;
    margin-bottom: 8px !important;
}

.uelegal-card h2 {
    margin: 0 !important;
    color: #10233f !important;
    font-size: 32px !important;
    line-height: 1.2 !important;
}

.uelegal-info {
    background: #eff6ff !important;
    border-left: 6px solid #2563eb !important;
    padding: 22px !important;
    border-radius: 14px !important;
    margin-top: 25px !important;
}

.uelegal-warning {
    background: #fff7ed !important;
    border-left: 6px solid #f97316 !important;
    padding: 22px !important;
    border-radius: 14px !important;
    margin-top: 25px !important;
}
.uelegal-actions {
    display: flex !important;
    gap: 14px !important;
    flex-wrap: wrap !important;
    margin-top: 24px !important;
}

.uelegal-action-btn {
    padding: 12px 18px !important;
    border-radius: 10px !important;
    border: none !important;
    cursor: pointer !important;
    font-weight: 800 !important;
    background: #10233f !important;
    color: #ffffff !important;
}

.uelegal-action-btn.secondary {
    background: #e5e7eb !important;
    color: #10233f !important;
}
.uelegal-calc-explain {
    background: #ffffff !important;
    border-left: 6px solid #16a34a !important;
    padding: 22px !important;
    border-radius: 14px !important;
    margin-top: 24px !important;
    box-shadow: 0 10px 25px rgba(0,0,0,.06) !important;
}

.uelegal-calc-explain h3 {
    margin-top: 0 !important;
    color: #10233f !important;
}

.uelegal-calc-row {
    display: flex !important;
    justify-content: space-between !important;
    gap: 20px !important;
    padding: 12px 0 !important;
    border-bottom: 1px solid #e5e7eb !important;
}

.uelegal-calc-row.final {
    border-bottom: none !important;
    font-size: 18px !important;
    color: #14532d !important;
}

.uelegal-calc-row span {
    color: #475569 !important;
}

.uelegal-calc-row strong {
    color: #10233f !important;
}
.uelegal-legal-report {
    background: #f8fafc !important;
    border-left: 6px solid #10233f !important;
    padding: 24px !important;
    border-radius: 16px !important;
    margin-top: 26px !important;
    box-shadow: 0 10px 25px rgba(0,0,0,.06) !important;
}

.uelegal-legal-report h3 {
    margin-top: 0 !important;
    color: #10233f !important;
}

.uelegal-legal-report p {
    font-size: 16px !important;
    line-height: 1.7 !important;
    color: #334155 !important;
}

.uelegal-law-box {
    background: #fff7ed !important;
    border-left: 6px solid #d4af37 !important;
    padding: 24px !important;
    border-radius: 16px !important;
    margin-top: 24px !important;
}

.uelegal-law-box h3 {
    margin-top: 0 !important;
    color: #10233f !important;
}

.uelegal-law-box ul {
    margin: 0 !important;
    padding-left: 20px !important;
}

.uelegal-law-box li {
    margin-bottom: 8px !important;
    color: #334155 !important;
}
@media print {

    @page {
        size: A4;
        margin: 12mm;
    }

    body * {
        visibility: hidden !important;
    }

    .uelegal-print-area,
    .uelegal-print-area * {
        visibility: visible !important;
    }

    .uelegal-print-area {
        position: absolute !important;
        left: 0 !important;
        top: 0 !important;
        width: 100% !important;
        background: #ffffff !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .uelegal-actions {
        display: none !important;
    }
}

.uelegal-version-badge {
    display: flex !important;
    justify-content: space-between !important;
    gap: 12px !important;
    flex-wrap: wrap !important;
    background: #f8fafc !important;
    border: 1px solid #e5e7eb !important;
    border-left: 5px solid #d4af37 !important;
    padding: 12px 16px !important;
    border-radius: 12px !important;
    margin-bottom: 18px !important;
    color: #475569 !important;
    font-size: 13px !important;
    font-weight: 700 !important;
}
.uelegal-calculators-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 15px;
}

.uelegal-calculators-hero {
    background: linear-gradient(135deg, #12395a, #1f5b89);
    color: #fff;
    border-radius: 18px;
    padding: 35px;
    margin-bottom: 30px;
}

.uelegal-calculators-hero h1 {
    color: #fff;
    font-size: 38px;
    margin: 0 0 10px;
}

.uelegal-calculators-hero p {
    color: #e5eef7;
    font-size: 17px;
    margin: 0;
}

.uelegal-calculators-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.uelegal-calculator-card {
    background: #fff;
    border-radius: 18px;
    padding: 28px;
    border-left: 6px solid #16a34a;
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.10);
    min-height: 230px;
}

.uelegal-calculator-card h2 {
    font-size: 22px;
    margin: 0 0 14px;
    color: #071b3a;
}

.uelegal-calculator-card p {
    color: #475569;
    min-height: 55px;
}

.uelegal-calculator-status {
    display: inline-block;
    background: #dcfce7;
    color: #166534;
    padding: 8px 14px;
    border-radius: 999px;
    font-weight: 700;
    margin: 15px 0;
}

.uelegal-calculator-card .uelegal-btn {
    display: inline-block;
    text-decoration: none;
    margin-top: 10px;
}