/* --- Rosea Drawing Transmittal (RDT) Styles --- */

.rdt-wrapper {
    max-width: 1200px;
    margin: 30px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    font-size: 14px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    padding: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border-radius: 8px;
    overflow: hidden;
}

.rdt-notice {
    padding: 12px 20px;
    margin: 20px;
    border-left-width: 4px;
    border-left-style: solid;
}
.rdt-notice.error {
    background: #fff0f0;
    border-left-color: #DC3232;
}

.rdt-project-selector {
    padding: 20px 25px;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 15px;
}
.rdt-project-selector select {
    min-width: 300px;
    padding: 8px 12px;
}

.rdt-form {
    padding: 25px;
}

.rdt-form-section {
    border: 1px solid #eee;
    padding: 15px 20px 20px 20px;
    border-radius: 4px;
    margin-bottom: 20px;
}
.rdt-form-section legend {
    font-size: 18px;
    font-weight: 600;
    padding: 0 10px;
    margin-left: -10px;
}

.rdt-form-row {
    display: grid;
    gap: 20px;
}
.rdt-form-row.two-col { grid-template-columns: 1fr 1fr; }
.rdt-form-row.three-col { grid-template-columns: 1fr 1fr 1fr; }
.rdt-form-row.three-col-checkbox { 
    grid-template-columns: repeat(3, 1fr);
    gap: 15px 20px;
}
.rdt-form-row.three-col-checkbox label {
    font-weight: normal;
    display: flex;
    align-items: center;
    gap: 5px;
}
.rdt-others-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.rdt-others-field label {
    font-weight: normal;
}

.rdt-form-row label input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.rdt-form p {
    margin: 0;
}
.rdt-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
}
.rdt-form input[type="text"],
.rdt-form input[type="date"],
.rdt-form select,
.rdt-form textarea {
    width: 100%;
    padding: 10px 12px;
    box-sizing: border-box;
    border-radius: 4px;
    border: 1px solid #ced4da;
}
.rdt-form input[type="number"] {
    padding: 10px 12px;
    box-sizing: border-box;
    border-radius: 4px;
    border: 1px solid #ced4da;
}

.rdt-drawing-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}
.rdt-drawing-table th, 
.rdt-drawing-table td {
    padding: 4px;
    text-align: left;
    border: none;
}
.rdt-drawing-table th {
    border-bottom: 2px solid #eee;
    padding-bottom: 8px;
    font-size: 13px;
}
.rdt-drawing-table td {
    border-bottom: 1px dashed #f0f0f0;
    vertical-align: top;
    padding-top: 8px;
    padding-bottom: 8px;
}
.rdt-drawing-table input[type="text"],
.rdt-drawing-table input[type="number"],
.rdt-drawing-table select {
    width: 100%;
    padding: 6px 8px;
    font-size: 13px;
    box-sizing: border-box;
}
.rdt-drawing-table .rdt-sl-no {
    font-weight: bold;
    text-align: center;
    padding-top: 15px;
}
.rdt-drawing-table .rdt-remove-drawing-row {
    background: #fff;
    color: #a00;
    border: 1px solid #a00;
    border-radius: 50%;
    width: 26px;
    height: 26px;
    padding: 0;
    font-weight: bold;
    cursor: pointer;
}

/* New column widths */
.rdt-drawing-table .col-sl { width: 5%; }
.rdt-drawing-table .col-no { width: 20%; }
.rdt-drawing-table .col-rev { width: 10%; }
.rdt-drawing-table .col-title { width: 40%; }
.rdt-drawing-table .col-status { width: 15%; }
.rdt-drawing-table .col-copies { width: 10%; }
.rdt-drawing-table .col-act { width: 5%; }


.rdt-submit-button {
    margin-top: 20px;
    text-align: right;
}
.button-primary {
    background: #007cba;
    border-color: #007cba;
    color: #fff;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 4px;
    text-decoration: none;
    cursor: pointer;
}
.button-secondary {
    background: #f7f7f7;
    border: 1px solid #ccc;
    color: #555;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 4px;
    text-decoration: none;
    cursor: pointer;
}

.rdt-divider {
    margin: 30px 25px;
    border: 0;
    border-top: 2px solid #eee;
}

.rdt-log-wrapper {
    padding: 0 25px 25px 25px;
}
.rdt-log-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}
.rdt-log-table th,
.rdt-log-table td {
    padding: 12px 15px;
    border: none;
    border-bottom: 1px solid #e0e0e0;
}
.rdt-log-table th {
    background: #f8f9fa;
}
.rdt-log-table .rdt-delete-transmittal-btn {
    background: none;
    border: none;
    color: #a00;
    cursor: pointer;
    font-size: 13px;
    text-decoration: underline;
}
