.rim-box {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    max-width: 900px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

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

.rim-search-wrap {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}

.rim-input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    font-size: 15px;
}

.rim-btn {
    background: #0073aa;
    color: #fff;
    padding: 12px 25px;
    font-weight: 600;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.rim-btn:hover {
    background: #005177;
}

.rim-btn-success {
    background: #46b450;
    width: 100%;
    font-size: 16px;
    margin-top: 20px;
}

.rim-btn-success:hover {
    background: #37953f;
}

.rim-msg {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    display: none;
    font-weight: 500;
}

.rim-msg.error {
    background: #fcf0f1;
    color: #d63638;
    border-left: 4px solid #d63638;
    display: block;
}

.rim-msg.success {
    background: #edfaef;
    color: #007017;
    border-left: 4px solid #46b450;
    display: block;
}

.rim-summary {
    display: none;
}

.rim-section {
    background: #fff;
    border: 1px solid #dcdde1;
    border-radius: 5px;
    margin-bottom: 20px;
    overflow: hidden;
}

.rim-section-header {
    background: #f6f7f7;
    padding: 12px 20px;
    font-weight: 600;
    border-bottom: 1px solid #dcdde1;
    color: #1e1e1e;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.rim-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    padding: 20px;
}

.rim-form-group label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #555;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rim-form-group input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #dcdde1;
    border-radius: 3px;
    background-color: #f1f2f6 !important;
    color: #2f3640 !important;
    font-size: 14px;
    cursor: not-allowed;
    box-sizing: border-box;
}

.rim-data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
}

.rim-data-table th {
    text-align: left;
    font-size: 11px;
    text-transform: uppercase;
    color: #555;
    padding: 0 10px 8px 10px;
    border-bottom: 1px solid #eee;
}

.rim-data-table td {
    padding: 8px 10px;
}

.rim-data-table input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #dcdde1;
    border-radius: 3px;
    background-color: #f1f2f6 !important;
    color: #2f3640 !important;
    font-size: 13px;
    box-sizing: border-box;
    cursor: not-allowed;
}

.rim-badge {
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
}

.rim-badge.COMPLETED {
    background: #46b450;
}

.rim-badge.PENDING {
    background: #ffb900;
}

.rim-badge.DRAFT {
    background: #666;
}

.rim-badge.FAILED,
.rim-badge.CANCELLED {
    background: #d63638;
}