body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding: 10px;
    margin: 0;
    background-color: #f3f2f1;
    font-size: 10px;
}

.status {
    padding: 8px;
    background-color: #e7f3e7;
    border-left: 3px solid #107c10;
    margin-bottom: 10px;
    border-radius: 3px;
    font-size: 10px;
}

.status.success {
    background-color: #e7f3e7;
    border-left-color: #107c10;
}

.status.loading {
    background-color: #fff4ce;
    border-left-color: #ffb900;
}

.status.error {
    background-color: #fde7e9;
    border-left-color: #d13438;
}

.status.warning {
    background-color: #fff4ce;
    border-left-color: #ffb900;
}

.status-message {
    display: flex;
    align-items: flex-start;
    gap: 6px;
}

.status-icon {
    font-size: 14px;
    line-height: 1;
    flex-shrink: 0;
}

.status-text {
    flex: 1;
    line-height: 1.3;
}

.warning-details {
    margin-top: 6px;
}

.warning-buttons {
    display: flex;
    gap: 6px;
    margin-top: 8px;
}

.warning-buttons button {
    flex: 1;
    padding: 6px 12px;
    border: none;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.btn-continue {
    background-color: #0078d4;
    color: white;
}

.btn-continue:hover {
    background-color: #106ebe;
}

.btn-cancel {
    background-color: #f3f2f1;
    color: #323130;
    border: 1px solid #8a8886;
}

.btn-cancel:hover {
    background-color: #e1dfdd;
}

form {
    background: white;
    padding: 10px;
    border-radius: 3px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.label {
    font-weight: bold;
    color: #323130;
    margin-bottom: 3px;
    margin-top: 8px;
    display: block;
    font-size: 10px;
}

.label:first-child {
    margin-top: 0;
}

textarea {
    width: 100%;
    padding: 6px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 10px;
    resize: vertical;
    box-sizing: border-box;
    line-height: 1.3;
}

textarea.invalid {
    border-color: #d13438;
    background-color: #fff6f6;
}

#descripcion {
    height: 60px;
}

#comentarios {
    height: 45px;
}

#expedientes {
    height: 100px;
}

#internet-message-id {
    height: 50px;
}

#mailbox {
    height: 30px;
}

textarea[readonly] {
    background-color: #e9ecef;
    color: #6c757d;
    cursor: not-allowed;
}

.btn-primary {
    background-color: #0078d4;
    color: white;
    border: none;
    padding: 8px 16px;
    font-size: 10px;
    font-weight: 600;
    border-radius: 3px;
    cursor: pointer;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: background-color 0.2s ease;
    width: 100%;
    margin-top: 8px;
}

.btn-primary:hover {
    background-color: #106ebe;
}

.btn-primary:active {
    background-color: #005a9e;
}

.btn-primary:disabled {
    background-color: #d1d1d1;
    color: #a0a0a0;
    cursor: not-allowed;
}

.btn-primary:focus {
    outline: 2px solid #0078d4;
    outline-offset: 1px;
}

.invalid-items {
    margin-top: 6px;
    padding: 6px;
    background-color: #fff6f6;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 10px;
    max-height: 80px;
    overflow-y: auto;
}

.tooltip-trigger {
    position: relative;
    text-decoration: underline dotted;
    cursor: help;
    color: #0066cc;
}

.tooltip-content {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: #fff;
    padding: 6px 10px;
    border-radius: 3px;
    white-space: nowrap;
    font-size: 10px;
    font-weight: normal;
    z-index: 1000;
    transition: opacity 0.3s;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.tooltip-content::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -4px;
    border-width: 4px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

.tooltip-trigger:hover .tooltip-content {
    visibility: visible;
    opacity: 1;
}

select {
    width: 100%;
    padding: 6px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 10px;
    box-sizing: border-box;
    background-color: white;
    cursor: pointer;
}

select:hover {
    border-color: #0078d4;
}

select:focus {
    outline: none;
    border-color: #0078d4;
    box-shadow: 0 0 0 1px #0078d4;
}

.radio-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 3px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 4px;
}

.radio-option input[type="radio"] {
    width: 14px;
    height: 14px;
    cursor: pointer;
    accent-color: #0078d4;
    margin: 0;
}

.radio-option label {
    cursor: pointer;
    font-weight: normal;
    margin: 0;
    color: #323130;
    font-size: 10px;
}

dialog {
    width: 600px;
    max-width: 90vw;
    border: none;
    border-radius: 6px;
    padding: 0;
}

dialog>div {
    padding: 12px;
}

/* Reducir espacio entre elementos */
.compact-group {
    margin-bottom: 6px;
}

.example::before {
    content: "✓";
    color: #107c10;
    /* verde estilo Microsoft */
    font-weight: bold;
    margin-right: 3px;
}

.example {
    display: inline-block;
    margin-right: 8px;
}

.fieldset-modern {
    border: 1px solid #d1d1d1;
    border-radius: 6px;
    padding: 12px;
    margin: 10px 0;

    background-color: #ffffff;
}

.fieldset-modern legend {
    padding: 0 6px;
    font-weight: 600;
    font-size: 11px;
    color: #323130;
}

.fieldset-modern label {
    display: block;
    margin-top: 8px;
    font-size: 10px;
    font-weight: 600;
    color: #323130;
}

.fieldset-modern input,
.fieldset-modern textarea {
    width: 100%;
    margin-top: 4px;
    padding: 6px;
    font-size: 10px;

    border: 1px solid #c8c6c4;
    border-radius: 4px;
    box-sizing: border-box;
}

.fieldset-modern input:focus,
.fieldset-modern textarea:focus {
    border-color: #0078d4;
    outline: none;
    box-shadow: 0 0 0 1px #0078d4;
}

/* Estilos para botones pequeños y layout optimizado */
.button-row {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.btn-small {
    flex: 1;
    min-width: 120px;
    padding: 8px 12px;
    font-size: 13px;
    background-color: #0078d4;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
    white-space: nowrap;
}

.btn-small:hover {
    background-color: #106ebe;
}

.btn-small:active {
    background-color: #005a9e;
}

.btn-small:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}