/**{box-sizing:border-box;font-family:Inter,Segoe UI,Roboto,Arial,Helvetica,sans-serif}*/
body{margin:0;background:linear-gradient(180deg,#f5f7fb 0%,#eef2f7 100%);color:#1f2937}
.demo_pnlouter{background:linear-gradient(180deg,#f5f7fb 0%,#eef2f7 100%);color:#1f2937;}
.container-wrap{max-width:1100px;margin:28px auto;padding:20px}
.container-wrap h1{margin:0 0 18px;font-size: 1.8em;color:#0f1724;text-align: center;}
.container-wrap h2{font-size: 1.2em;}
.container-wrap .cols{display:flex;gap:18px}
.card{background:#fff;padding:16px;border-radius:10px;flex:1;margin-bottom:18px;box-shadow:0 6px 18px rgba(15,23,42,0.06)}
.row{margin-bottom:10px}
label{display:block;margin-bottom:6px;font-size:13px;color:#334155}
input,textarea,select{width:100%;padding:10px;border:1px solid #e6eef6;border-radius:8px;background:#fbfdff}
textarea{resize:vertical}
button, .btn{padding:10px 14px;border:none;border-radius:8px;cursor:pointer;font-weight:600;text-decoration: none;}
button[disabled]{opacity:.6}
.btn-primary {
    background: #014cff;
    color: #fff;
}
.btn-primary:hover {
    background: #0139bc;
}
.btn-info {
    background: #0b79d0;
    color: #fff;
}
.btn-info:hover {
    background: #085c9c;
}
.btn-secondary {
    background: #e5e7eb;
    color: #1f2937;
}
.btn-secondary:hover {
    background: #d1d5db;
}
#items-table{width:100%;border-collapse:collapse;margin-bottom:12px}
#items-table th,#items-table td{border:1px solid #edf2f7;padding:10px;text-align:left}
#items-table thead th{background:#f8fafc;color:#334155;font-weight:600}
#items-table tbody tr:nth-child(even){background:#fbfdff}
#items-table input{width:100%;padding: 7px;border-radius: 6px;font-size: 14px;}
.totals{display:flex;flex-direction:column;gap:8px}
.line{display:flex;justify-content:space-between;margin-left: auto;margin-right: 0;}
.line.total{font-weight:800;font-size:16px}
.actions{text-align:right}

.summary {
    max-width: 340px;
    margin-left: auto;
}
.summary div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.summary div label {
    font-size: 15px;
    color: #555;
    margin-bottom: 0;
    display: block;
}
.summary input {
    width: 100px;
}
.total {
    font-size: 18px;
    font-weight: bold;
}

.remove-item{background:#e24b4b;color:#fff;padding:6px 8px;border-radius:6px}
.remove-item:hover{background:#c03939}
.small{width:90px}

/* Logo preview */
.logo-input-wrap{display:flex;align-items:center;gap:12px}
.logo-preview{display:flex;align-items:center;gap:8px}
.logo-preview img{max-height:64px;max-width:160px;border-radius:6px;border:1px solid #e6eef6;padding:4px;background:#fff}
.remove-logo{background:#ef4444;color:#fff;border-radius:6px;padding:6px 8px;border:none}

/* form header */
.form-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}
.subtitle{color:#64748b;font-size:13px}

/* Inline fields (invoice number/date/due) */
.field-inline{display:flex;gap:12px;align-items:flex-start}
.field-inline label{flex:1;display:flex;flex-direction:column}
.field-inline input{min-width:0}

/* Tax input styling */
.tax-label{display:inline-flex;align-items:center;gap:8px}
.tax-input{width:100px;padding:8px}

@media(max-width:900px){.cols{flex-direction:column}}
@media (max-width: 600px) {
    .summary {
        margin-left: 0;
        max-width: 100%;
    }
}

