feat: adicionar gerenciamento de clínicas e tokens
This commit is contained in:
+15
-451
@@ -705,14 +705,11 @@ body {
|
||||
gap: 12px;
|
||||
height: 100%;
|
||||
align-items: stretch;
|
||||
overflow: hidden;
|
||||
padding: 6px;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
/* ---- HORIZONTAL (paisagem) ---- */
|
||||
.transform-grid.grid-landscape {
|
||||
grid-template-columns: 2fr 1.3fr 1.3fr;
|
||||
grid-template-columns: 2fr 1.3fr 1fr 1fr;
|
||||
grid-template-rows: 1fr 1fr;
|
||||
}
|
||||
/* Original: col 1, 2 linhas */
|
||||
@@ -721,10 +718,10 @@ body {
|
||||
.transform-grid.grid-landscape .transform-option:nth-child(2) { grid-column: 2; grid-row: 1; }
|
||||
/* Flip V: col 2, linha 2 (empilhado sob Flip H) */
|
||||
.transform-grid.grid-landscape .transform-option:nth-child(3) { grid-column: 2; grid-row: 2; }
|
||||
/* +90°: col 3, linha 1 */
|
||||
.transform-grid.grid-landscape .transform-option:nth-child(4) { grid-column: 3; grid-row: 1; }
|
||||
/* -90°: col 3, linha 2 (empilhado sob +90°) */
|
||||
.transform-grid.grid-landscape .transform-option:nth-child(5) { grid-column: 3; grid-row: 2; }
|
||||
/* +90°: col 3, 2 linhas (lado a lado com -90°) */
|
||||
.transform-grid.grid-landscape .transform-option:nth-child(4) { grid-column: 3; grid-row: 1 / span 2; }
|
||||
/* -90°: col 4, 2 linhas (lado a lado com +90°) */
|
||||
.transform-grid.grid-landscape .transform-option:nth-child(5) { grid-column: 4; grid-row: 1 / span 2; }
|
||||
|
||||
/* ---- VERTICAL (retrato) ---- */
|
||||
.transform-grid.grid-portrait {
|
||||
@@ -757,9 +754,10 @@ body {
|
||||
grid-column: auto !important;
|
||||
grid-row: auto !important;
|
||||
}
|
||||
.selection-mode .transform-image-wrapper {
|
||||
.selection-mode .transform-option img {
|
||||
height: 35vh !important;
|
||||
max-height: 420px;
|
||||
max-height: 400px;
|
||||
object-fit: contain;
|
||||
}
|
||||
/* -90°: col 4, linha 2 (empilhado sob +90°) */
|
||||
.transform-grid.grid-portrait .transform-option:nth-child(5) { grid-column: 4; grid-row: 2; }
|
||||
@@ -788,7 +786,6 @@ body {
|
||||
align-items: center;
|
||||
min-height: 0;
|
||||
overflow: hidden;
|
||||
position: relative; /* Para posicionar o ajuste fino absoluto */
|
||||
}
|
||||
|
||||
.transform-option:hover {
|
||||
@@ -801,38 +798,13 @@ body {
|
||||
background: rgba(81, 207, 102, 0.08);
|
||||
}
|
||||
|
||||
/* Novo Wrapper para a Imagem */
|
||||
.transform-image-wrapper {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
height: 20vh;
|
||||
min-height: 160px;
|
||||
max-height: 320px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
overflow: hidden;
|
||||
border-radius: 4px;
|
||||
background: #000000;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
.transform-image-wrapper img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
.transform-option img {
|
||||
max-width: 100%;
|
||||
flex: 1;
|
||||
min-height: 0;
|
||||
object-fit: contain;
|
||||
border-radius: 4px;
|
||||
transition: transform 0.15s ease-out; /* Transição para ajuste fino suave */
|
||||
}
|
||||
|
||||
/* Evita cortes nas rotações de 90° e -90° causados pelo comportamento de rotação 2D do CSS */
|
||||
.transform-option:nth-child(4) .transform-image-wrapper img,
|
||||
.transform-option:nth-child(5) .transform-image-wrapper img {
|
||||
max-width: 100% !important;
|
||||
max-height: 100% !important;
|
||||
width: 100% !important;
|
||||
height: 100% !important;
|
||||
object-fit: contain !important;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
.transform-name {
|
||||
@@ -842,99 +814,6 @@ body {
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
/* Nova Barra Inferior de Ajuste Fino para o Card Selecionado */
|
||||
#fineTuneContainer {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding: 5px 8px;
|
||||
background: rgba(0, 0, 0, 0.03);
|
||||
border-radius: 20px;
|
||||
border: 1px solid rgba(0, 0, 0, 0.08);
|
||||
box-sizing: border-box;
|
||||
margin-top: 10px;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.fine-tune-left-btns,
|
||||
.fine-tune-right-btns {
|
||||
display: flex;
|
||||
gap: 4px;
|
||||
}
|
||||
|
||||
#fineTuneContainer button {
|
||||
background: #ffffff;
|
||||
border: 1px solid #ced4da;
|
||||
border-radius: 12px;
|
||||
padding: 4px 8px;
|
||||
font-size: 0.75rem;
|
||||
font-weight: 700;
|
||||
color: #495057;
|
||||
cursor: pointer;
|
||||
transition: all 0.15s ease;
|
||||
min-width: 32px;
|
||||
height: 24px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
#fineTuneContainer button:hover {
|
||||
background: #e9ecef;
|
||||
border-color: #adb5bd;
|
||||
color: #212529;
|
||||
}
|
||||
|
||||
#fineTuneContainer button:active {
|
||||
transform: scale(0.95);
|
||||
}
|
||||
|
||||
/* Centralização do Título/Legenda */
|
||||
#fineTuneLabelPlaceholder {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
padding: 0 5px;
|
||||
min-width: 0; /* Permite truncar se necessário */
|
||||
}
|
||||
|
||||
#fineTuneLabelPlaceholder .transform-name {
|
||||
margin-bottom: 0;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
font-size: 0.85rem;
|
||||
}
|
||||
|
||||
/* Botão Reset Flutuante no Canto Superior Direito do Card */
|
||||
#btnResetFineTune {
|
||||
position: absolute !important;
|
||||
top: 10px;
|
||||
right: 10px;
|
||||
background: rgba(229, 62, 62, 0.9) !important;
|
||||
border: 1px solid #e53e3e !important;
|
||||
color: #ffffff !important;
|
||||
border-radius: 50% !important;
|
||||
width: 28px !important;
|
||||
height: 28px !important;
|
||||
padding: 0 !important;
|
||||
display: flex !important;
|
||||
align-items: center !important;
|
||||
justify-content: center !important;
|
||||
font-size: 0.7rem !important;
|
||||
cursor: pointer;
|
||||
z-index: 100;
|
||||
box-shadow: 0 2px 6px rgba(0,0,0,0.15);
|
||||
}
|
||||
|
||||
#btnResetFineTune:hover {
|
||||
background: #c53030 !important;
|
||||
border-color: #c53030 !important;
|
||||
transform: scale(1.05);
|
||||
}
|
||||
|
||||
|
||||
|
||||
/* ================================================================
|
||||
@@ -1057,11 +936,7 @@ body {
|
||||
}
|
||||
|
||||
.sidebar-header {
|
||||
height: 70px !important;
|
||||
box-sizing: border-box;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 0 20px !important;
|
||||
padding: 20px;
|
||||
border-bottom: 1px solid rgba(255,255,255,0.15);
|
||||
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
||||
}
|
||||
@@ -1129,11 +1004,6 @@ body {
|
||||
}
|
||||
|
||||
.main-content .header {
|
||||
height: 70px !important;
|
||||
box-sizing: border-box;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 0 20px !important;
|
||||
border-radius: 0;
|
||||
margin: 0;
|
||||
border-bottom: 1px solid rgba(255,255,255,0.2);
|
||||
@@ -1153,14 +1023,7 @@ body {
|
||||
.app-container .container { display: none; }
|
||||
|
||||
/* Header padding */
|
||||
.main-content .header .header-content {
|
||||
padding: 0 !important;
|
||||
width: 100%;
|
||||
margin: 0;
|
||||
flex-direction: row !important;
|
||||
justify-content: space-between !important;
|
||||
align-items: center !important;
|
||||
}
|
||||
.header-content { padding: 14px 20px; }
|
||||
|
||||
/* ---------------------------------------------------------------
|
||||
IMAGES GRID — grid puro sem flex tricks
|
||||
@@ -1209,302 +1072,3 @@ body {
|
||||
#toggleDisabledBtn { font-size: 0; padding: 10px; }
|
||||
#toggleDisabledBtn::before { content: '👁'; font-size: 1.1rem; }
|
||||
}
|
||||
|
||||
/* ================================================================
|
||||
SYNC & UPLOAD MODAL STYLES
|
||||
================================================================ */
|
||||
|
||||
.sync-tabs {
|
||||
display: flex;
|
||||
border-bottom: 2px solid var(--border-color);
|
||||
margin-bottom: 20px;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.sync-tab-btn {
|
||||
padding: 12px 20px;
|
||||
background: none;
|
||||
border: none;
|
||||
border-bottom: 3px solid transparent;
|
||||
font-size: 1rem;
|
||||
font-weight: 600;
|
||||
color: var(--text-secondary);
|
||||
cursor: pointer;
|
||||
transition: all 0.25s ease;
|
||||
}
|
||||
|
||||
.sync-tab-btn:hover {
|
||||
color: var(--primary-color);
|
||||
}
|
||||
|
||||
.sync-tab-btn.active {
|
||||
color: var(--primary-color);
|
||||
border-bottom-color: var(--primary-color);
|
||||
}
|
||||
|
||||
.sync-tab-content {
|
||||
display: none;
|
||||
animation: slideDown 0.25s ease;
|
||||
}
|
||||
|
||||
.sync-tab-content.active {
|
||||
display: block;
|
||||
}
|
||||
|
||||
/* Área de Drag & Drop */
|
||||
.drag-drop-zone {
|
||||
border: 3px dashed var(--border-color);
|
||||
border-radius: var(--radius);
|
||||
padding: 40px 20px;
|
||||
text-align: center;
|
||||
background: #fdfdfd;
|
||||
cursor: pointer;
|
||||
transition: all 0.2s ease;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.drag-drop-zone:hover,
|
||||
.drag-drop-zone.drag-active {
|
||||
border-color: var(--primary-color);
|
||||
background: rgba(102, 126, 234, 0.04);
|
||||
}
|
||||
|
||||
.drag-drop-icon {
|
||||
font-size: 3rem;
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
|
||||
.drag-drop-text {
|
||||
font-size: 1rem;
|
||||
color: var(--text-color);
|
||||
font-weight: 500;
|
||||
margin-bottom: 6px;
|
||||
}
|
||||
|
||||
.drag-drop-subtext {
|
||||
font-size: 0.82rem;
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
|
||||
/* Preview de arquivos selecionados */
|
||||
.upload-previews {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
|
||||
gap: 10px;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.preview-item {
|
||||
position: relative;
|
||||
aspect-ratio: 1;
|
||||
border-radius: 6px;
|
||||
overflow: hidden;
|
||||
border: 1px solid var(--border-color);
|
||||
}
|
||||
|
||||
.preview-item img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
}
|
||||
|
||||
.preview-remove {
|
||||
position: absolute;
|
||||
top: 4px;
|
||||
right: 4px;
|
||||
background: rgba(220, 53, 69, 0.85);
|
||||
color: white;
|
||||
border: none;
|
||||
border-radius: 50%;
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
font-size: 10px;
|
||||
cursor: pointer;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.preview-remove:hover {
|
||||
background: #dc3545;
|
||||
}
|
||||
|
||||
/* Barra de Progresso */
|
||||
.upload-progress-container {
|
||||
background: #f8f9fa;
|
||||
border-radius: 8px;
|
||||
padding: 15px;
|
||||
margin-bottom: 20px;
|
||||
border: 1px solid var(--border-color);
|
||||
}
|
||||
|
||||
.progress-bar-label {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
font-size: 0.85rem;
|
||||
font-weight: 600;
|
||||
margin-bottom: 8px;
|
||||
color: var(--dark-color);
|
||||
}
|
||||
|
||||
.progress-bar-track {
|
||||
background: #e2e8f0;
|
||||
border-radius: 10px;
|
||||
height: 8px;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.progress-bar-fill {
|
||||
background: linear-gradient(90deg, var(--primary-color) 0%, #764ba2 100%);
|
||||
height: 100%;
|
||||
width: 0%;
|
||||
transition: width 0.2s ease;
|
||||
}
|
||||
|
||||
/* Lista de dispositivos online */
|
||||
.sync-device-list {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 12px;
|
||||
margin: 20px 0;
|
||||
}
|
||||
|
||||
.sync-device-card {
|
||||
background: #f8f9fa;
|
||||
border: 1px solid var(--border-color);
|
||||
border-radius: var(--radius-sm);
|
||||
padding: 15px;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
|
||||
.sync-device-card:hover {
|
||||
border-color: var(--primary-color);
|
||||
background: #fff;
|
||||
box-shadow: 0 4px 12px rgba(0,0,0,0.03);
|
||||
}
|
||||
|
||||
.device-card-left {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 4px;
|
||||
}
|
||||
|
||||
.device-card-title {
|
||||
font-weight: 700;
|
||||
font-size: 0.95rem;
|
||||
color: var(--dark-color);
|
||||
}
|
||||
|
||||
.device-card-subtitle {
|
||||
font-size: 0.78rem;
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
|
||||
.device-card-badge {
|
||||
padding: 5px 12px;
|
||||
border-radius: 20px;
|
||||
font-size: 0.72rem;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.badge-connected {
|
||||
background: rgba(81, 207, 102, 0.15);
|
||||
color: var(--success-color);
|
||||
}
|
||||
|
||||
.badge-disconnected {
|
||||
background: rgba(220, 53, 69, 0.1);
|
||||
color: var(--danger-color);
|
||||
}
|
||||
|
||||
/* Botão de Excluir Paciente nos cards iniciais */
|
||||
.delete-patient-btn {
|
||||
position: absolute;
|
||||
top: 10px;
|
||||
right: 10px;
|
||||
background: rgba(220, 53, 69, 0.85);
|
||||
color: white;
|
||||
border: none;
|
||||
border-radius: 50%;
|
||||
width: 34px;
|
||||
height: 34px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
cursor: pointer;
|
||||
z-index: 5;
|
||||
transition: all 0.2s ease;
|
||||
font-size: 1.05rem;
|
||||
box-shadow: 0 2px 6px rgba(0,0,0,0.25);
|
||||
}
|
||||
|
||||
.delete-patient-btn:hover {
|
||||
background: #dc3545;
|
||||
transform: scale(1.1);
|
||||
}
|
||||
|
||||
/* ================================================================
|
||||
Ajuste de Altura Uniforme para o Header da Galeria e da Sidebar (Desktop)
|
||||
================================================================ */
|
||||
@media (min-width: 768px) {
|
||||
.sidebar-header {
|
||||
height: 70px !important;
|
||||
display: flex !important;
|
||||
align-items: center !important;
|
||||
padding: 0 20px !important;
|
||||
box-sizing: border-box !important;
|
||||
}
|
||||
|
||||
.main-content .header {
|
||||
padding: 0 !important;
|
||||
box-sizing: border-box !important;
|
||||
}
|
||||
|
||||
.main-content .header .header-content {
|
||||
height: 70px !important;
|
||||
padding: 0 20px !important;
|
||||
display: flex !important;
|
||||
align-items: center !important;
|
||||
justify-content: space-between !important;
|
||||
box-sizing: border-box !important;
|
||||
}
|
||||
}
|
||||
|
||||
/* Submenu de Clientes na Sidebar */
|
||||
.sidebar-submenu {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 2px;
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
|
||||
.submenu-item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 6px 15px 6px 42px; /* Alinha o texto do submenu abaixo do ícone do menu pai */
|
||||
color: var(--text-color);
|
||||
text-decoration: none;
|
||||
font-size: 0.82rem;
|
||||
font-weight: 500;
|
||||
transition: all 0.2s ease;
|
||||
border-left: 3px solid transparent;
|
||||
cursor: pointer;
|
||||
border-radius: 4px;
|
||||
margin: 0 15px;
|
||||
}
|
||||
|
||||
.submenu-item:hover {
|
||||
background-color: rgba(102, 126, 234, 0.06);
|
||||
color: var(--primary-color);
|
||||
}
|
||||
|
||||
.submenu-item.active {
|
||||
background-color: rgba(102, 126, 234, 0.1);
|
||||
color: var(--primary-color);
|
||||
border-left-color: var(--primary-color);
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user