/* ===================================
   MODAL COMPONENTS
   =================================== */

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
    opacity: 0;
    animation: fadeIn 0.2s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.modal-container {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    transform: scale(0.95);
    animation: scaleIn 0.2s ease forwards;
}

@keyframes scaleIn {
    to {
        transform: scale(1);
    }
}

.modal-container.modal-sm {
    max-width: 400px;
}

.modal-container.modal-lg {
    max-width: 600px;
}

.modal-container.modal-xl {
    max-width: 800px;
}

.modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 24px;
    border-bottom: 1px solid #E7E9E9;
}

.modal-title {
    font-size: 18px;
    font-weight: 700;
    color: #14201F;
    margin: 0;
}

.modal-subtitle {
    font-size: 14px;
    color: #61676B;
    margin: 4px 0 0 0;
}

.modal-close {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: #61676B;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.modal-close:hover {
    background-color: #F7F7F8;
    color: #14201F;
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.modal-footer {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding: 20px 24px;
    border-top: 1px solid #E7E9E9;
}

/* Modal Footer Buttons */
.modal-footer .btn-secondary {
    padding: 10px 20px;
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.20);
    border-radius: 6px;
    font-family: 'Archivo', -apple-system, sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #18191A;
    cursor: pointer;
    transition: all 200ms ease;
}

.modal-footer .btn-secondary:hover {
    background: #F3F4F6;
}

.modal-footer .btn-primary {
    padding: 10px 20px;
    background: #0068AB;
    border: none;
    border-radius: 6px;
    font-family: 'Archivo', -apple-system, sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #FFFFFF;
    cursor: pointer;
    transition: all 200ms ease;
}

.modal-footer .btn-primary:hover {
    background: #064974;
}

/* ===================================
   DRAWER/SHEET COMPONENTS
   =================================== */

.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    display: flex;
    align-items: stretch;
    justify-content: flex-end;
    opacity: 0;
    animation: fadeIn 0.3s ease forwards;
}

.drawer-container {
    position: relative;
    height: 100%;
    background-color: #ffffff;
    width: 480px;
    max-width: 90vw;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    animation: slideInRight 0.3s ease forwards;
}

@keyframes slideInRight {
    to {
        transform: translateX(0);
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(100%);
    }
}

/* Animation classes for slide in/out */
.drawer-container.slide-in {
    animation: slideInRight 0.3s ease forwards;
}

.drawer-container.slide-out {
    animation: slideOutRight 0.3s ease forwards;
}

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px;
    border-bottom: 1px solid #E7E9E9;
}

.drawer-title {
    font-size: 18px;
    font-weight: 700;
    color: #14201F;
    margin: 0;
}

.drawer-close {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: #61676B;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.drawer-close:hover {
    background-color: #F7F7F8;
    color: #14201F;
}

.drawer-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.drawer-footer {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: flex-start;
    padding: 16px 24px;
    border-top: 1px solid #E7E9E9;
    flex-wrap: nowrap;
}

.drawer-footer .btn-secondary {
    padding: 8px 16px;
    background: #FFFFFF;
    border: 1px solid #D1D5DB;
    border-radius: 4px;
    font-family: 'Archivo', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.drawer-footer .btn-secondary:hover {
    background: #F9FAFB;
}

.drawer-footer .btn-primary {
    padding: 8px 16px;
    background: #0068AB;
    border: none;
    border-radius: 4px;
    font-family: 'Archivo', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #FFFFFF;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.drawer-footer .btn-primary:hover {
    background: #005a94;
}

/* ===================================
   MODAL/DRAWER FORM GROUPS
   =================================== */

.modal-form-group,
.drawer-form-group {
    margin-bottom: 20px;
}

.modal-form-group:last-child,
.drawer-form-group:last-child {
    margin-bottom: 0;
}

/* Drawer Search Wrapper - Campo de busca com ícone à direita */
.drawer-search-wrapper {
    position: relative;
    width: 100%;
}

.drawer-search-input {
    width: 100%;
    height: 40px;
    padding: 10px 40px 10px 16px;
    border: 1px solid var(--figma-border-light, rgba(0, 0, 0, 0.10));
    border-radius: var(--radius-sm, 6px);
    background: var(--figma-surface-primary, #ffffff);
    font-family: 'Archivo', sans-serif;
    font-size: 13px;
    font-weight: 400;
    line-height: 20px;
    color: var(--figma-text-primary, #111827);
    transition: all 0.2s ease;
}

.drawer-search-input::placeholder {
    color: var(--figma-text-tertiary, #9ca3af);
}

.drawer-search-input:focus {
    outline: none;
    border-color: var(--figma-color-brand, #0068ab);
    box-shadow: 0 0 0 3px var(--surface-surface-brand-subdued, rgba(0, 104, 171, 0.1));
}

.drawer-search-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--figma-text-secondary, #6b7280);
    pointer-events: none;
}

/* Drawer Form Row - Campos lado a lado */
.drawer-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

.drawer-form-row .drawer-form-group {
    margin-bottom: 0;
}

.modal-form-label,
.drawer-form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #14201F;
    margin-bottom: 8px;
}

/* Label with help icon */
.drawer-form-label-with-icon {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.drawer-form-label-with-icon .drawer-form-label {
    margin-bottom: 0;
}

.drawer-help-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: transparent;
    border: none;
    border-radius: 50%;
    color: #9CA3AF;
    cursor: pointer;
    transition: all 200ms ease;
    padding: 0;
    flex-shrink: 0;
}

.drawer-help-icon:hover {
    color: #0068AB;
    background: rgba(0, 104, 171, 0.1);
}

.drawer-help-icon i {
    width: 16px;
    height: 16px;
}

.modal-form-input,
.drawer-form-input,
.modal-form-select,
.drawer-form-select,
.modal-form-textarea,
.drawer-form-textarea {
    width: 100%;
    padding: 10px 16px;
    border: 1px solid #E7E9E9;
    border-radius: 6px;
    font-size: 14px;
    font-family: 'Archivo', sans-serif;
    background: transparent;
    color: #14201F;
    transition: all 0.2s ease;
}

/* Specific styling for select elements */
.modal-form-select,
.drawer-form-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%2314201F' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
    cursor: pointer;
}

.modal-form-select:hover,
.drawer-form-select:hover {
    border-color: #C5C9CA;
}

/* Placeholder-like styling for default option */
.modal-form-select option:first-child,
.drawer-form-select option:first-child {
    color: #8B9393;
}

.modal-form-input:focus,
.drawer-form-input:focus,
.modal-form-select:focus,
.drawer-form-select:focus,
.modal-form-textarea:focus {
    outline: none;
    border-color: #064974;
    box-shadow: 0 0 0 3px rgba(6, 73, 116, 0.1);
}

.modal-form-textarea,
.drawer-form-textarea {
    resize: vertical;
    min-height: 80px;
}

/* Form hint text */
.form-hint {
    font-size: 12px;
    color: #61676B;
    margin-top: 4px;
}

/* Divider */
.modal-divider,
.drawer-divider {
    height: 1px;
    background-color: #E7E9E9;
    margin: 24px 0;
}

/* Filter sections */
.filter-section {
    margin-bottom: 24px;
}

.filter-section:last-child {
    margin-bottom: 0;
}

.filter-section-title {
    font-size: 13px;
    font-weight: 600;
    color: #61676B;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

/* Checkbox/Radio groups in modals */
.modal-checkbox-group,
.drawer-checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.modal-checkbox-label,
.drawer-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: background-color 0.15s ease;
}

.modal-checkbox-label:hover,
.drawer-checkbox-label:hover {
    background-color: #F7F7F8;
}

/* ===================================
   DRAWER CRIAR GRUPO - CUSTOM STYLES
   =================================== */

.drawer-criar-grupo {
    width: 600px;
    max-width: 90vw;
}

.drawer-header-content {
    flex: 1;
}

.drawer-subtitle {
    font-size: 14px;
    color: #61676B;
    margin: 4px 0 0 0;
}

.drawer-section {
    margin-bottom: 24px;
}

.drawer-section:last-child {
    margin-bottom: 0;
}

.drawer-section-title {
    font-size: 16px;
    font-weight: 600;
    color: #14201F;
    margin: 0 0 16px 0;
}

.required-asterisk {
    color: #DC2626;
    margin-left: 4px;
}

/* Search box inside drawer */
.search-box-drawer {
    position: relative;
    margin-bottom: 16px;
}

.search-box-drawer .search-input {
    width: 100%;
    height: 40px;
    padding: 10px 16px 10px 40px;
    border: 1px solid #E7E9E9;
    border-radius: 6px;
    font-size: 14px;
    font-family: 'Archivo', sans-serif;
    transition: all 0.2s ease;
}

.search-box-drawer .search-input:focus {
    outline: none;
    border-color: #064974;
    box-shadow: 0 0 0 3px rgba(6, 73, 116, 0.1);
}

.search-box-drawer .search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: #61676B;
    pointer-events: none;
}

/* Select all container */
.select-all-container {
    padding: 8px 0;
    margin-bottom: 12px;
    border-bottom: 1px solid #E7E9E9;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.checkbox-text {
    font-size: 14px;
    color: #14201F;
    font-weight: 500;
}

/* Lista de cadastros */
.cadastros-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 400px;
    overflow-y: auto;
}

.cadastro-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.15s ease;
    border: 1px solid transparent;
}

.cadastro-item:hover {
    background-color: #F7F7F8;
}

.cadastro-item:has(.checkbox-input:checked) {
    background-color: #EFF6FF;
    border-color: #DBEAFE;
}

.cadastro-avatar {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cadastro-avatar.pessoa-fisica {
    background-color: #DBEAFE;
    color: #1E40AF;
}

.cadastro-avatar.pessoa-juridica {
    background-color: #FED7AA;
    color: #9A3412;
}

.cadastro-avatar i {
    width: 16px;
    height: 16px;
}

.cadastro-info {
    flex: 1;
    min-width: 0;
}

.cadastro-nome {
    font-size: 14px;
    font-weight: 500;
    color: #14201F;
    margin: 0 0 2px 0;
}

.cadastro-documento {
    font-size: 12px;
    color: #61676B;
    margin: 0;
}

/* Checkbox custom styling */
.checkbox-input {
    position: relative;
    width: 16px;
    height: 16px;
    margin: 0;
    cursor: pointer;
    flex-shrink: 0;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border: 1.5px solid #D1D5D9;
    border-radius: 3px;
    background-color: #ffffff;
    transition: all 0.15s ease;
}

.checkbox-input:hover {
    border-color: #064974;
}

.checkbox-input:checked {
    background-color: #064974;
    border-color: #064974;
}

.checkbox-input:checked::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-custom {
    display: none;
}

/* ===================================
   DRAWER CRIAR RAMO
   =================================== */

.drawer-criar-ramo {
    width: 360px;
    max-width: 90vw;
}

.drawer .search-input,
.modal .search-input {
    width: 100%;
    padding: 10px 12px 10px 36px;
    border: 1px solid #E7E9E9;
    border-radius: 4px;
    font-size: 14px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23717182' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cpath d='m21 21-4.35-4.35'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 12px center;
    background-size: 16px 16px;
}

.drawer-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #E7E9E9;
}

.drawer-tab {
    padding: 6px 12px;
    background: transparent;
    border: none;
    font-family: 'Archivo', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #717182;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.drawer-tab.active {
    background: #F2F2F3;
    color: #181A1B;
    font-weight: 600;
}

.drawer-tab:hover:not(.active) {
    background: #F7F7F8;
}

.cadastrados-section {
    margin-top: 20px;
}

.cadastrados-header {
    margin-bottom: 12px;
}

.cadastrados-header h3 {
    font-family: 'Archivo', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #717182;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

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

.cadastrado-item-ramo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    background: #F7F7F8;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cadastrado-item-ramo:hover {
    background: #F2F2F3;
}

.cadastrado-badge {
    display: inline-flex;
    padding: 4px 12px;
    background: #0068AB;
    color: #FFFFFF;
    font-family: 'Archivo', sans-serif;
    font-size: 12px;
    font-weight: 600;
    border-radius: 4px;
}

.cadastrado-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-action-edit {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    background: transparent;
    border: none;
    font-family: 'Archivo', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: #717182;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-action-edit i {
    width: 14px;
    height: 14px;
}

.btn-action-edit:hover {
    color: #181A1B;
}

.cadastrado-input {
    padding: 4px 12px;
    background: #FFFFFF;
    border: 1px solid #E7E9E9;
    border-radius: 4px;
    font-family: 'Archivo', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #181A1B;
    outline: none;
}

.cadastrado-input:focus {
    border-color: #0068AB;
}

.cadastrado-edit-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-action-delete {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    background: #DC2626;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-action-delete i {
    width: 16px;
    height: 16px;
    color: #FFFFFF;
}

.btn-action-delete:hover {
    background: #B91C1C;
}

.btn-action-confirm {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    background: #16A34A;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-action-confirm i {
    width: 16px;
    height: 16px;
    color: #FFFFFF;
}

.btn-action-confirm:hover {
    background: #15803D;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 24px;
    margin: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #D1D5DB;
    transition: 0.3s;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
    background-color: #0068AB;
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(16px);
}

/* ===================================
   RANGE SLIDER
   =================================== */

.range-slider-container {
    width: 100%;
    margin-top: 8px;
    position: relative;
    padding-bottom: 30px;
}

.range-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    background: #E7E9E9;
    border-radius: 3px;
    outline: none;
    transition: all 0.2s ease;
}

.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: #0068AB;
    border: 2px solid #FFFFFF;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.range-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: #0068AB;
    border: 2px solid #FFFFFF;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.range-slider::-webkit-slider-thumb:hover {
    background: #005a94;
    transform: scale(1.1);
}

.range-slider::-moz-range-thumb:hover {
    background: #005a94;
    transform: scale(1.1);
}

.range-slider::-moz-range-track {
    height: 6px;
    background: #E7E9E9;
    border-radius: 3px;
}

.range-value-indicator {
    position: absolute;
    top: 20px;
    left: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 24px;
    padding: 0 8px;
    background: #0068AB;
    color: #FFFFFF;
    font-family: 'Archivo', -apple-system, sans-serif;
    font-size: 12px;
    font-weight: 600;
    border-radius: 4px;
    transition: left 0.1s ease, opacity 0.2s ease;
    pointer-events: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    opacity: 0;
}

.range-value-indicator.visible {
    opacity: 1;
}

.range-value-indicator::before {
    content: '';
    position: absolute;
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 5px solid #0068AB;
}

.range-values {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    font-family: 'Archivo', sans-serif;
    font-size: 12px;
    color: #61676B;
}

.range-values span:nth-child(2) {
    color: #0068AB;
    font-weight: 600;
    font-size: 14px;
}

/* ===================================
   FILTER CHIPS (Ordenar por)
   =================================== */

.filter-chips-group {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    margin-top: 8px;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    background: #F7F7F8;
    border: 1px solid #E7E9E9;
    border-radius: 6px;
    font-family: 'Archivo', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: #61676B;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
}

.filter-chip:hover {
    background: #F2F2F3;
    border-color: #D1D5D9;
    color: #14201F;
}

.filter-chip.active {
    background: #0068AB;
    border-color: #0068AB;
    color: #FFFFFF;
}

.filter-chip.active:hover {
    background: #005a94;
    border-color: #005a94;
}

/* Responsive */
@media (max-width: 768px) {
    .modal-container {
        max-width: 100%;
        max-height: 100vh;
        border-radius: 0;
    }

    .modal-overlay {
        padding: 0;
    }

    .drawer-container {
        width: 100%;
        max-width: 100%;
    }

    .drawer-criar-grupo {
        width: 100%;
        max-width: 100%;
    }
}

/* ========================================
   DRAWER: NOVA PRODUÇÃO - ETIQUETAS E TABS
   ======================================== */

/* Container de badges de etiquetas */
.etiqueta-badges-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

/* Badges de etiquetas */
.etiqueta-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border-radius: 4px;
    font-family: 'Archivo', -apple-system, sans-serif;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 200ms ease;
    background: #F3F4F6;
    color: #6B7280;
}

.etiqueta-badge:hover {
    background: #E5E7EB;
}

.etiqueta-badge.active {
    border-color: currentColor;
}

/* Badge Normal */
.etiqueta-badge[data-priority="normal"] {
    background: #EFF6FF;
    color: #1E40AF;
}

.etiqueta-badge[data-priority="normal"]:hover {
    background: #DBEAFE;
}

.etiqueta-badge[data-priority="normal"].active {
    border-color: #1E40AF;
}

/* Badge Prioritário */
.etiqueta-badge[data-priority="prioritario"] {
    background: #FEF3C7;
    color: #92400E;
}

.etiqueta-badge[data-priority="prioritario"]:hover {
    background: #FDE68A;
}

.etiqueta-badge[data-priority="prioritario"].active {
    border-color: #92400E;
}

/* Badge Urgente */
.etiqueta-badge[data-priority="urgente"] {
    background: #FEE2E2;
    color: #991B1B;
}

.etiqueta-badge[data-priority="urgente"]:hover {
    background: #FECACA;
}

.etiqueta-badge[data-priority="urgente"].active {
    border-color: #991B1B;
}

/* Botão Adicionar Etiqueta */
.btn-adicionar-etiqueta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: transparent;
    border: 1px dashed #D1D5DB;
    border-radius: 4px;
    font-family: 'Archivo', -apple-system, sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #6B7280;
    cursor: pointer;
    transition: all 200ms ease;
}

.btn-adicionar-etiqueta:hover {
    background: #F9FAFB;
    border-color: #9CA3AF;
    color: #374151;
}

.btn-adicionar-etiqueta i {
    width: 14px;
    height: 14px;
}

/* Tabs de navegação */
.drawer-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid #E7E9E9;
    margin: 24px -24px 0 -24px;
    padding: 0 24px;
    background: #FFFFFF;
    overflow: hidden;
}

.drawer-tab {
    position: relative;
    padding: 12px 10px;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    font-family: 'Archivo', -apple-system, sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #6B7280;
    cursor: pointer;
    transition: all 200ms ease;
    white-space: nowrap;
    flex: 1;
    text-align: center;
}

.drawer-tab:hover {
    color: #18191A;
}

.drawer-tab.active {
    color: #0068AB;
    border-bottom-color: #0068AB;
}

/* Conteúdo das tabs */
.drawer-tab-content {
    padding-top: 24px;
}

.drawer-tab-content.active {
    display: block;
}

/* Responsivo */
@media (max-width: 768px) {
    .etiqueta-badges-container {
        gap: 6px;
    }

    .etiqueta-badge,
    .btn-adicionar-etiqueta {
        font-size: 12px;
        padding: 5px 10px;
    }

    .drawer-tab {
        font-size: 12px;
        padding: 10px 6px;
    }
}

/* ========================================
   BOTÕES ESPECÍFICOS DAS TABS
   ======================================== */

/* Botão Iniciar Semeio */
.btn-iniciar-semeio {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    background: #0068AB;
    color: #FFFFFF;
    border: none;
    border-radius: 4px;
    font-family: 'Archivo', -apple-system, sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 200ms ease;
    margin-top: 16px;
}

.btn-iniciar-semeio:hover {
    background: #064974;
}

/* Botão Cancelar Operação */
.btn-cancelar-operacao {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: #FFFFFF;
    color: #DC2626;
    border: 1px solid #DC2626;
    border-radius: 4px;
    font-family: 'Archivo', -apple-system, sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 200ms ease;
    white-space: nowrap;
}

.btn-cancelar-operacao:hover {
    background: #FEF2F2;
}

.btn-cancelar-operacao i {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Botão Iniciar Semeio */
.btn-iniciar-semeio {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    background: #0068AB;
    color: #FFFFFF;
    border: none;
    border-radius: 4px;
    font-family: 'Archivo', -apple-system, sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 200ms ease;
    margin-top: 8px;
}

.btn-iniciar-semeio:hover {
    background: #005a94;
}

/* === TAB INSUMOS === */

/* Header com título e botão adicionar */
.insumos-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.btn-adicionar-insumo {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: transparent;
    color: #0EA5E9;
    border: 1px solid #E0F2FE;
    border-radius: 4px;
    font-family: 'Archivo', -apple-system, sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 200ms ease;
}

.btn-adicionar-insumo:hover {
    background: #F0F9FF;
}

.btn-adicionar-insumo i {
    width: 16px;
    height: 16px;
}

/* Formulário de insumo */
.insumo-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    gap: 12px;
    align-items: end;
    margin-bottom: 20px;
}

.insumo-form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.insumo-form-field .info-label {
    font-weight: 400;
    color: #6B7280;
}

.insumo-select,
.insumo-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #E5E7EB;
    border-radius: 4px;
    font-family: 'Archivo', -apple-system, sans-serif;
    font-size: 14px;
    color: #18191A;
    background: #FFFFFF;
    transition: all 200ms ease;
    height: 36px;
}

.insumo-select:focus,
.insumo-input:focus {
    outline: none;
    border-color: #0068AB;
}

.insumo-input::placeholder {
    color: #9CA3AF;
}

.insumo-form-actions {
    display: flex;
    gap: 4px;
    align-items: center;
}

.btn-confirmar-insumo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    background: #ECFDF5;
    color: #10B981;
    border: 1px solid #D1FAE5;
    border-radius: 4px;
    cursor: pointer;
    transition: all 200ms ease;
}

.btn-confirmar-insumo:hover {
    background: #D1FAE5;
}

.btn-confirmar-insumo i {
    width: 16px;
    height: 16px;
}

.btn-deletar-insumo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    background: #FEF2F2;
    color: #EF4444;
    border: 1px solid #FEE2E2;
    border-radius: 4px;
    cursor: pointer;
    transition: all 200ms ease;
}

.btn-deletar-insumo:hover {
    background: #FEE2E2;
}

.btn-deletar-insumo i {
    width: 16px;
    height: 16px;
}

/* Tabela de insumos */
.insumos-table-container {
    margin-top: 16px;
    border: 1px solid #E7E9E9;
    border-radius: 6px;
    overflow: hidden;
}

.insumos-table {
    width: 100%;
    border-collapse: collapse;
}

.insumos-table thead {
    background: #F9FAFB;
}

.insumos-table th {
    padding: 10px 12px;
    text-align: left;
    font-family: 'Archivo', -apple-system, sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #6B7280;
    border-bottom: 1px solid #E7E9E9;
}

.insumos-table tbody tr {
    border-bottom: 1px solid #E7E9E9;
}

.insumos-table tbody tr:last-child {
    border-bottom: none;
}

.insumos-table td {
    padding: 12px;
    font-family: 'Archivo', -apple-system, sans-serif;
    font-size: 14px;
    color: #18191A;
}

.insumo-actions {
    display: flex;
    gap: 4px;
    justify-content: flex-end;
}

.btn-editar-insumo,
.btn-remover-insumo,
.btn-confirmar-edicao {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    min-width: 28px;
    min-height: 28px;
    max-width: 28px;
    max-height: 28px;
    padding: 0;
    margin: 0;
    background: transparent;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 200ms ease;
    flex-shrink: 0;
    transform: none;
}

.btn-editar-insumo {
    color: #6B7280;
}

.btn-editar-insumo:hover {
    background: #F3F4F6;
    color: #18191A;
    transform: none;
}

.btn-remover-insumo {
    color: #EF4444;
}

.btn-remover-insumo:hover {
    background: #FEF2F2;
    transform: none;
}

.btn-confirmar-edicao {
    color: #10B981;
}

.btn-confirmar-edicao:hover {
    background: #ECFDF5;
    transform: none;
}

.btn-editar-insumo i,
.btn-remover-insumo i,
.btn-confirmar-edicao i {
    width: 14px !important;
    height: 14px !important;
    min-width: 14px !important;
    min-height: 14px !important;
    max-width: 14px !important;
    max-height: 14px !important;
    flex-shrink: 0 !important;
    transform: none !important;
    display: inline-block !important;
}

.btn-editar-insumo svg,
.btn-remover-insumo svg,
.btn-confirmar-edicao svg,
.btn-editar-insumo i svg,
.btn-remover-insumo i svg,
.btn-confirmar-edicao i svg {
    width: 14px !important;
    height: 14px !important;
    min-width: 14px !important;
    min-height: 14px !important;
    max-width: 14px !important;
    max-height: 14px !important;
    flex-shrink: 0 !important;
    transform: none !important;
    display: block !important;
}

/* Inputs inline na tabela */
.insumo-input-table {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid #0068AB;
    border-radius: 4px;
    font-family: 'Archivo', -apple-system, sans-serif;
    font-size: 14px;
    color: #18191A;
    background: #FFFFFF;
    transition: all 200ms ease;
}

.insumo-input-table:focus {
    outline: none;
    border-color: #005a94;
    box-shadow: 0 0 0 3px rgba(0, 104, 171, 0.1);
}

/* Linha em modo de edição */
.insumos-table tbody tr.editing {
    background: #F0F9FF;
}

.insumos-table tbody tr.editing td {
    padding: 8px 12px;
}


/* Estado vazio de insumos */
.empty-state-insumos {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
    background: #F9FAFB;
    border-radius: 8px;
    margin-top: 16px;
}

.empty-state-message {
    font-family: 'Archivo', -apple-system, sans-serif;
    font-size: 14px;
    color: #6B7280;
    margin: 0 0 16px 0;
}

/* Botão Adicionar Insumo */
.btn-adicionar-insumo {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: transparent;
    color: #0068AB;
    border: none;
    border-radius: 4px;
    font-family: 'Archivo', -apple-system, sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 200ms ease;
}

.btn-adicionar-insumo:hover {
    background: #EFF6FF;
}

.btn-adicionar-insumo i {
    width: 16px;
    height: 16px;
}

/* ========================================
   TAB OPERAÇÕES - LISTA DE STATUS
   ======================================== */

/* Lista de operações */
.operacoes-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 16px;
}

/* Item de operação */
.operacao-item {
    display: flex;
    gap: 12px;
    padding: 16px;
    background: #F9FAFB;
    border-radius: 8px;
    margin-bottom: 12px;
    transition: all 200ms ease;
}

.operacao-item:hover {
    background: #F3F4F6;
}

/* Ícone/dot da operação */
.operacao-icon {
    display: flex;
    align-items: flex-start;
    padding-top: 2px;
}

.operacao-dot {
    width: 12px;
    height: 12px;
    background: #D1D5DB;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Conteúdo da operação */
.operacao-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.operacao-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.operacao-titulo {
    font-family: 'Archivo', -apple-system, sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #18191A;
    margin: 0;
    line-height: 1.4;
}

.operacao-data {
    font-family: 'Archivo', -apple-system, sans-serif;
    font-size: 12px;
    font-weight: 400;
    color: #9CA3AF;
    white-space: nowrap;
}

.operacao-descricao {
    font-family: 'Archivo', -apple-system, sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: #6B7280;
    margin: 0;
    line-height: 1.5;
}

/* ===================================
   MODAL DE ETIQUETAS
   =================================== */

/* Campo de Busca de Etiquetas */
.etiquetas-search-group {
    width: 100%;
    margin-bottom: 16px;
}

.etiquetas-search-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #E7E9E9;
    border-radius: 6px;
    font-family: 'Archivo', -apple-system, sans-serif;
    font-size: 14px;
    color: #18191A;
    background: #FFFFFF;
    transition: all 200ms ease;
}

.etiquetas-search-input::placeholder {
    color: #9CA3AF;
}

.etiquetas-search-input:focus {
    outline: none;
    border-color: #0068AB;
    box-shadow: 0 0 0 3px rgba(0, 104, 171, 0.1);
}

/* Campo Nova Etiqueta */
.etiquetas-nova-group {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
}

.etiquetas-nova-input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #E7E9E9;
    border-radius: 6px;
    font-family: 'Archivo', -apple-system, sans-serif;
    font-size: 14px;
    color: #18191A;
    background: #FFFFFF;
    transition: all 200ms ease;
}

.etiquetas-nova-input::placeholder {
    color: #9CA3AF;
}

.etiquetas-nova-input:focus {
    outline: none;
    border-color: #0068AB;
    box-shadow: 0 0 0 3px rgba(0, 104, 171, 0.1);
}

/* Botão Adicionar Nova Etiqueta */
.btn-adicionar-nova-etiqueta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    background: #0068AB;
    color: #FFFFFF;
    border: none;
    border-radius: 6px;
    font-family: 'Archivo', -apple-system, sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 200ms ease;
    white-space: nowrap;
}

.btn-adicionar-nova-etiqueta:hover {
    background: #064974;
}

/* Seção de Etiquetas */
.etiquetas-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.etiquetas-section-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Archivo', -apple-system, sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #6B7280;
}

.etiquetas-section-header i {
    width: 14px;
    height: 14px;
    color: #9CA3AF;
}

/* Lista de Etiquetas */
.etiquetas-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Item de Etiqueta */
.etiqueta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: #F9FAFB;
    border-radius: 6px;
    transition: all 200ms ease;
}

.etiqueta-item:hover {
    background: #F3F4F6;
}

/* Dot de cor da etiqueta */
.etiqueta-item-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Cores dos dots */
.etiqueta-item-azul .etiqueta-item-dot {
    background: #3B82F6;
}

.etiqueta-item-verde .etiqueta-item-dot {
    background: #10B981;
}

.etiqueta-item-amarelo .etiqueta-item-dot {
    background: #F59E0B;
}

.etiqueta-item-vermelho .etiqueta-item-dot {
    background: #EF4444;
}

.etiqueta-item-roxo .etiqueta-item-dot {
    background: #8B5CF6;
}

/* Label da etiqueta */
.etiqueta-item-label {
    flex: 1;
    font-family: 'Archivo', -apple-system, sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #18191A;
}

/* Botão de remover etiqueta */
.etiqueta-item-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: transparent;
    border: none;
    border-radius: 4px;
    color: #9CA3AF;
    cursor: pointer;
    transition: all 200ms ease;
    flex-shrink: 0;
}

.etiqueta-item-remove:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #EF4444;
}

.etiqueta-item-remove i {
    width: 14px;
    height: 14px;
}

/* ===================================
   DRAWER DE INFORMAÇÕES DA OP
   =================================== */

/* Header com título e status */
#infoOPDrawer .drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 24px 16px 24px;
    border-bottom: none;
}

#infoOPDrawer .drawer-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

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

.drawer-subtitle-status {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 4px;
    font-family: 'Archivo', -apple-system, sans-serif;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
}

/* Tabs do Header */
.drawer-header-tabs {
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 0 24px 16px 24px;
    border-bottom: 1px solid #E7E9E9;
}

.drawer-header-text {
    display: inline-flex;
    align-items: center;
    padding: 0;
    background: transparent;
    border: none;
    font-family: 'Archivo', -apple-system, sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: #6B7280;
}

.drawer-header-tab {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    background: #F9FAFB;
    border: 1px solid #F9FAFB;
    border-radius: 4px;
    font-family: 'Archivo', -apple-system, sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: #6B7280;
    cursor: pointer;
    transition: all 200ms ease;
}

.drawer-header-tab:hover {
    background: #F3F4F6;
}

.drawer-header-tab.active {
    background: #FFFFFF;
    border: 1px solid #D1D5DB;
    color: #18191A;
    font-weight: 500;
}

/* Grid de informações com 2 colunas */
.info-grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

/* Item de informação */
.info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.info-label {
    font-family: 'Archivo', -apple-system, sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: #6B7280;
    margin: 0 0 6px 0;
}

.info-value {
    font-family: 'Archivo', -apple-system, sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #18191A;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 12px;
    background: #F9FAFB;
    border-radius: 6px;
    min-height: 40px;
}

.info-value i {
    width: 14px;
    height: 14px;
    color: #6B7280;
    flex-shrink: 0;
}

/* Seção com ícone - Drawer Info OP */
#infoOPDrawer .drawer-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Archivo', -apple-system, sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #18191A;
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 1px solid #E7E9E9;
}

#infoOPDrawer .drawer-section-title i {
    width: 18px;
    height: 18px;
    color: #6B7280;
}

/* Título sem ícone - Drawer Info OP */
#infoOPDrawer .drawer-section-title-plain {
    font-family: 'Archivo', -apple-system, sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #18191A;
    margin: 0 0 16px 0;
}

/* Tabs de navegação - Drawer Info OP */
#infoOPDrawer .drawer-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid #E7E9E9;
    margin: 24px -24px 0 -24px;
    padding: 0 24px;
    background: #FFFFFF;
    overflow-x: hidden;
}

#infoOPDrawer .drawer-tab {
    position: relative;
    padding: 10px 8px;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    font-family: 'Archivo', -apple-system, sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #9CA3AF;
    cursor: pointer;
    transition: all 200ms ease;
    white-space: nowrap;
    flex: 1;
    text-align: center;
}

#infoOPDrawer .drawer-tab:hover {
    color: #18191A;
}

#infoOPDrawer .drawer-tab.active {
    color: #0068AB;
    background: #EFF6FF;
    border-bottom-color: #0068AB;
    font-weight: 500;
}

/* === TAB OPERAÇÕES === */

/* Timeline de Operações */
.operacoes-timeline {
    position: relative;
    margin-top: 24px;
    padding-left: 0;
}

/* Item da Timeline */
.timeline-item {
    position: relative;
    display: flex;
    gap: 16px;
    padding-bottom: 24px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

/* Linha vertical da timeline */
.timeline-item:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 20px;
    bottom: 0;
    width: 1px;
    background: #E5E7EB;
}

/* Marcador (círculo) */
.timeline-marker {
    flex-shrink: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #9CA3AF;
    margin-top: 4px;
    position: relative;
    z-index: 1;
}

/* Conteúdo da Timeline */
.timeline-content {
    flex: 1;
    background: #F9FAFB;
    border-radius: 6px;
    padding: 12px 16px;
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 4px;
}

.timeline-titulo {
    font-family: 'Archivo', -apple-system, sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #18191A;
    line-height: 1.5;
    flex: 1;
}

.timeline-data {
    font-family: 'Archivo', -apple-system, sans-serif;
    font-size: 12px;
    font-weight: 400;
    color: #9CA3AF;
    white-space: nowrap;
    flex-shrink: 0;
}

.timeline-descricao {
    font-family: 'Archivo', -apple-system, sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: #6B7280;
    line-height: 1.5;
}

/* === TAB OBSERVAÇÕES === */

.observacoes-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #E5E7EB;
    border-radius: 6px;
    font-family: 'Archivo', -apple-system, sans-serif;
    font-size: 14px;
    color: #18191A;
    background: #FFFFFF;
    transition: all 200ms ease;
    resize: vertical;
    min-height: 200px;
    line-height: 1.5;
}

.observacoes-textarea:focus {
    outline: none;
    border-color: #0068AB;
    box-shadow: 0 0 0 3px rgba(0, 104, 171, 0.1);
}

.observacoes-textarea::placeholder {
    color: #9CA3AF;
    font-weight: 400;
}

/* === MODAL DE CONFIRMAÇÃO (Iniciar Semeio) === */

.modal-confirm {
    max-width: 400px;
    width: 100%;
    border-radius: 8px;
    background: #FFFFFF;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    padding: 0;
}

.modal-header-confirm {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 24px 24px 20px 24px;
    gap: 16px;
}

.modal-title-confirm {
    font-family: 'Archivo', -apple-system, sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #18191A;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.modal-subtitle-confirm {
    font-family: 'Archivo', -apple-system, sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #6B7280;
    margin: 0;
    line-height: 1.5;
}

.modal-close-confirm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    border-radius: 4px;
    color: #6B7280;
    cursor: pointer;
    transition: all 200ms ease;
    flex-shrink: 0;
    padding: 0;
}

.modal-close-confirm:hover {
    background: #F3F4F6;
    color: #18191A;
}

.modal-close-confirm i {
    width: 20px;
    height: 20px;
}

.modal-footer-confirm {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding: 20px 24px 24px 24px;
    border-top: none;
}

.btn-cancelar-confirm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 20px;
    background: #FFFFFF;
    border: 1px solid #D1D5DB;
    border-radius: 6px;
    font-family: 'Archivo', -apple-system, sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    transition: all 200ms ease;
    white-space: nowrap;
}

.btn-cancelar-confirm:hover {
    background: #F9FAFB;
    border-color: #9CA3AF;
}

.btn-confirmar-semeio {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 20px;
    background: #0068AB;
    border: none;
    border-radius: 6px;
    font-family: 'Archivo', -apple-system, sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #FFFFFF;
    cursor: pointer;
    transition: all 200ms ease;
    white-space: nowrap;
}

.btn-confirmar-semeio:hover {
    background: #064974;
}

/* Responsivo para grid de informações */
@media (max-width: 768px) {
    .info-grid-2col {
        grid-template-columns: 1fr;
    }

    .drawer-header-tabs {
        flex-wrap: wrap;
    }

    .operacao-item {
        flex-direction: column;
        gap: 8px;
    }

    .operacao-data {
        align-self: flex-start;
    }
}
