.pt-layout {
    max-width: 1100px;
    margin: 30px auto;
    font-family: Arial, sans-serif;
    font-size: 14px;
    color: #333;
}

.pt-page-title {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #004b54;
}

.pt-card {
    border: 1px solid #ddd;
    background-color: #fff;
    border-radius: 3px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.08);
    margin-bottom: 20px;
}

.pt-card-header {
    padding: 10px 15px;
    border-bottom: 1px solid #ddd;
    background: #f5f7f8;
}

.pt-card-header h2 {
    margin: 0;
    font-size: 16px;
    font-weight: bold;
    color: #004b54;
}

.pt-card-body {
    padding: 15px;
    background: #fafafa;
}

.pt-section {
    margin-bottom: 18px;
    border-top: 1px solid #e0e0e0;
    padding-top: 10px;
}

.pt-section:first-of-type {
    border-top: none;
    padding-top: 0;
}

.pt-section-title {
    font-size: 15px;
    font-weight: bold;
    color: #4e7c8d;
    margin-bottom: 8px;
}

.pt-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 8px;
}

.pt-field {
    flex: 1 1 45%;
    min-width: 240px;
}

.pt-field-full {
    flex: 1 1 100%;
}

.pt-label {
    display: block;
    font-weight: bold;
    margin-bottom: 3px;
}

.pt-input,
.pt-select,
.pt-textarea {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid #ccc;
    border-radius: 3px;
    box-sizing: border-box;
    font-size: 13px;
    background: #fff;
}

.pt-input[readonly] {
    background: #f3f3f3;
    color: #555;
}

.pt-textarea {
    resize: vertical;
    min-height: 60px;
}

.pt-checkbox-group label {
    font-weight: normal;
    margin-right: 12px;
}

.pt-help {
    font-size: 12px;
    color: #666;
    margin-bottom: 8px;
}

/* APR */
.pt-apr-wrapper {
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 3px;
    overflow: hidden;
}

.pt-apr-header {
    display: grid;
    grid-template-columns: 1.2fr 1.2fr 1.2fr 1.2fr;
    background: #4e7c8d;
    color: #fff;
    font-weight: bold;
    font-size: 13px;
    text-align: center;
}

.pt-apr-header div {
    padding: 6px 4px;
    border-right: 1px solid #fff;
}

.pt-apr-header div:last-child {
    border-right: none;
}

.pt-apr-row {
    display: grid;
    grid-template-columns: 1.2fr 1.2fr 1.2fr 1.2fr;
    background: #fafafa;
    border-top: 1px solid #eee;
}

.pt-apr-cell {
    padding: 4px;
    border-right: 1px solid #eee;
}

.pt-apr-cell:last-child {
    border-right: none;
}

.pt-apr-cell .pt-input,
.pt-apr-cell .pt-select {
    width: 100%;
    font-size: 12px;
    padding: 4px 6px;
}

.pt-apr-note {
    font-size: 11px;
    color: #777;
    margin-top: 4px;
}

/* Firmas */
.pt-sign-box {
    border: 1px solid #ccc;
    background: #fff;
    height: 120px;
    border-radius: 3px;
    margin-bottom: 6px;
}

.pt-sign-buttons button {
    display: inline-block;
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 3px;
    border: 1px solid transparent;
    cursor: pointer;
    margin-right: 6px;
    margin-bottom: 4px;
}

.pt-btn-firma {
    background: #4e7c8d;
    border-color: #4e7c8d;
    color: #fff;
}

.pt-btn-borrar {
    background: #95a5a6;
    border-color: #95a5a6;
    color: #fff;
}

/* Botones */
.pt-actions {
    text-align: right;
    margin-top: 15px;
}

.pt-actions button,
.pt-actions a {
    padding: 7px 16px;
    font-size: 13px;
    border-radius: 3px;
    border: 1px solid transparent;
    cursor: pointer;
    margin-left: 6px;
    text-decoration: none;
    display: inline-block;
}

.pt-btn-save {
    background: #0073aa;
    border-color: #0073aa;
    color: #fff;
}

.pt-btn-save:hover {
    background: #005f8a;
}

.pt-btn-cancel {
    background: #444;
    border-color: #444;
    color: #fff;
}

.pt-btn-cancel:hover {
    background: #333;
}

@media (max-width: 768px) {
    .pt-row { flex-direction: column; }
    .pt-field { min-width: 100%; }

    .pt-apr-header,
    .pt-apr-row {
        grid-template-columns: 1fr;
    }
    .pt-apr-cell {
        border-right: none;
        border-bottom: 1px solid #eee;
    }
    .pt-apr-cell:last-child {
        border-bottom: none;
    }
}
