* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    background-color: #e8f7ff;
    padding: 0;
    margin: 0;
}

/* Header */
.header {
    background: linear-gradient(to right, #003399, #0055cc);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 12px 16px;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    height: 48px;
    background: white;
    border-radius: 8px;
    padding: 4px 8px;
}

.title {
    font-size: 24px;
    font-weight: bold;
    color: white;
    margin: 0;
}

.subtitle {
    font-size: 14px;
    color: #FFCC00;
    font-weight: 600;
}

.button-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.btn {
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s;
}

.btn-white {
    background: white;
    color: #003399;
}

.btn-white:hover {
    background: #f0f0f0;
}

.btn-yellow {
    background: #FFCC00;
    color: #003399;
}

.btn-yellow:hover {
    background: #FFD700;
}

/* Lista */
.list-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 16px;
}

.list-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 16px;
}

.list-title {
    font-size: 24px;
    font-weight: bold;
    color: #003399;
    margin-bottom: 16px;
}

.operations-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.operation-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: #f5f5f5;
    border-radius: 8px;
    transition: background 0.2s;
}

.operation-item:hover {
    background: #e5e5e5;
}

.operation-info h3 {
    font-size: 16px;
    font-weight: bold;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.operation-info p {
    font-size: 14px;
    color: #666;
}

.operation-actions {
    display: flex;
    gap: 8px;
}

.btn-small {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 4px;
}

.btn-danger {
    background: #dc2626;
    color: white;
}

.btn-danger:hover {
    background: #b91c1c;
}

/* Export Container */
.export-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px;
    aspect-ratio: 3 / 3.5;
}

.main-title {
    text-align: center;
    margin-bottom: 12px;
    padding: 8px;
    background: linear-gradient(to right, #003399, #0055cc);
    border-radius: 8px;
}

.main-title h2 {
    font-size: 20px;
    font-weight: bold;
    color: white;
    letter-spacing: 0.05em;
}

/* Top Fields */
.top-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    background: #D4AF37;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 12px;
    margin-bottom: 12px;
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.card {
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.card-yellow {
    background: #B8860B;
}

.card-blue {
    background: #003399;
}

.card-gray {
    background: #4A5568;
}

.card-green {
    background: #2F855A;
}

.card-title {
    font-size: 20px;
    font-weight: bold;
    color: white;
    padding-bottom: 4px;
    border-bottom: 2px solid #FFCC00;
    margin-bottom: 8px;
}

/* Fields */
.field-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.field-label {
    font-size: 16px;
    font-weight: 600;
    color: white;
}

.field-label-dark {
    font-size: 16px;
    font-weight: bold;
    color: #1a1a1a;
}

.field-input {
    padding: 10px 12px;
    font-size: 18px;
    font-weight: 600;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: white;
    color: #1a1a1a;
}

.field-textarea {
    padding: 10px 12px;
    font-size: 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: white;
    color: #1a1a1a;
    min-height: 65px;
    resize: none;
    font-family: inherit;
}

.money-input {
    position: relative;
}

.money-prefix {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    font-weight: 600;
    color: #666;
}

.money-input .field-input {
    padding-left: 48px;
}

.dual-select {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.subtitle-box {
    background: #374151;
    padding: 8px;
    border-radius: 6px;
}

.subtitle-box p {
    font-size: 12px;
    font-weight: bold;
    color: #FFCC00;
    font-style: italic;
}

/* Share BB */
.share-box {
    background: #FEF3C7;
    padding: 8px;
    border-radius: 8px;
    border: 2px solid #FFCC00;
}

.share-label {
    font-size: 14px;
    font-weight: 500;
    color: #1f2937;
}

.share-value {
    font-size: 24px;
    font-weight: bold;
    color: #003399;
    margin: 4px 0;
}

.share-info {
    font-size: 12px;
    color: #6b7280;
    font-style: italic;
}

/* Preview Mode */
.preview-mode input,
.preview-mode textarea,
.preview-mode select {
    pointer-events: none;
    background: white !important;
}

@media print {
    .header, .list-container {
        display: none !important;
    }
    
    .export-container {
        max-width: 100%;
        padding: 0;
    }
}