/* Modern Email Client Layout for Envios */
.envios-container {
    display: flex;
    height: calc(100vh - 150px);
    background: #fff;
    border: 1px solid #e7eaec;
    overflow: hidden;
}

/* Sidebar */
.envios-sidebar {
    width: 220px;
    border-right: 1px solid #e7eaec;
    background: #f8f9fa;
    display: flex;
    flex-direction: column;
}

.envios-sidebar .sidebar-header {
    padding: 20px;
    font-weight: 600;
    border-bottom: 1px solid #e7eaec;
}

.envios-sidebar .nav-pills > li > a {
    border-radius: 0;
    padding: 10px 20px;
    color: #676a6c;
}

.envios-sidebar .nav-pills > li.active > a,
.envios-sidebar .nav-pills > li.active > a:hover {
    background: #e7eaec;
    color: #1ab394;
    font-weight: 600;
    border-left: 3px solid #1ab394;
}

/* Main Content */
.envios-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.envios-toolbar {
    padding: 10px 20px;
    border-bottom: 1px solid #e7eaec;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
}

.envios-list-container {
    flex: 1;
    overflow-y: auto;
}

.envios-list-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    border-bottom: 1px solid #f3f3f4;
    cursor: pointer;
    transition: background 0.2s;
}

.envios-list-item:hover {
    background: #f9f9f9;
}

.envios-list-item.selected {
    background: #f0f7f4;
}

.envios-list-item .item-check {
    width: 30px;
}

.envios-list-item .item-status {
    width: 40px;
    text-align: center;
}

.envios-list-item .item-info {
    flex: 1;
    min-width: 0;
    padding: 0 15px;
}

.envios-list-item .item-subject {
    font-weight: 600;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.envios-list-item .item-meta {
    font-size: 11px;
    color: #999;
    margin-top: 3px;
}

.envios-list-item .item-recipients {
    font-size: 13px;
    color: #333;
}

.envios-list-item .item-body-preview {
    font-size: 11px;
    color: #888;
    margin-top: 2px;
}

.envios-list-item .item-date {
    width: 120px;
    text-align: right;
    font-size: 12px;
    color: #999;
}

/* Preview Panel */
.envios-preview {
    width: 0;
    border-left: 1px solid #e7eaec;
    background: #fff;
    transition: width 0.3s ease;
    display: flex;
    flex-direction: column;
}

.envios-preview.active {
    width: 450px;
}

.envios-preview-header {
    padding: 15px 20px;
    border-bottom: 1px solid #e7eaec;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.envios-preview-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.status-dot {
    height: 10px;
    width: 10px;
    border-radius: 50%;
    display: inline-block;
}

.status-dot-pending { background-color: #f8ac59; }
.status-dot-partial { background-color: #23c6c8; }
.status-dot-complete { background-color: #1ab394; }
.status-dot-error { background-color: #ed5565; }

.badge-channel {
    font-size: 10px;
    padding: 2px 5px;
    border-radius: 3px;
    background: #eee;
    color: #666;
}
