Files
multigranja/multigranja/apps/entities/static/farm/css/farm_home.css
T
Eberton 8dd945798a Salvando estado atual
Diversas modificações
2026-06-27 03:02:56 -03:00

254 lines
4.1 KiB
CSS

.header {
display: flex;
justify-content: space-between;
align-items: center;
gap: 20px;
margin-bottom: 30px;
}
.header-left p {
color: #6c757d;
}
/* Containers */
.farm-config-container,
.batch-type-config-container,
.allowed-users-container,
.available-farms-container {
background: white;
overflow: hidden;
padding: 22px;
margin-bottom: 20px;
border-radius: 12px;
box-shadow: 0 2px 8px rgba(0,0,0,.05);
}
/* Headers */
.allowed-users-header,
.batch-type-config-header,
.section-header,
.available-farms-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 18px;
}
.allowed-users-title,
.available-farms-title,
.batch-type-title,
.farm-config-title {
margin: 0;
}
.allowed-users-header a,
.batch-type-config-header a,
.available-farms-header a {
display: flex;
align-items: center;
gap: 6px;
text-decoration: none;
font-size: 14px;
font-weight: 600;
color: white;
background-color: #198754;
border-radius: 5px;
padding: 3px 6px;
width: 120px;
justify-content: center;
}
/* Consumptions */
.farm-config-container form {
display: flex;
gap: 12px;
}
.config-card {
flex: 1;
background: #f8f9fa;
border-radius: 10px;
padding: 14px;
}
.config-card-title {
display: flex;
justify-content: space-between;
align-items: center;
padding: 0 3px;
margin-bottom: 5px;
font-size: 14px;
color: #6c757d;
}
.metric-question {
cursor: pointer;
}
.config-card input {
width: 100%;
padding: 10px;
border: 1px solid #dee2e6;
border-radius: 8px;
color: #44494e;
}
.config-card input:focus {
color: #000000;
outline-color: #6c757d;
}
.config-submit {
flex: .5;
display: flex;
}
.config-submit button {
width: 100%;
height: 50%;
margin: auto;
border: none;
border-radius: 10px;
background: #198754;
color: white;
font-weight: 600;
cursor: pointer;
transition: .15s ease;
}
.config-submit button:hover {
opacity: .92;
}
/* Batchtypes */
.batch-type-card {
display: flex;
justify-content: space-between;
align-items: center;
overflow: hidden;
padding: 14px;
margin-bottom: 10px;
background: #f8f9fa;
border-radius: 10px;
}
.type-title {
font-weight: 600;
}
.type-consumption-factor {
color: #6c757d;
font-size: .9rem;
}
.batch-type-right {
display: flex;
gap: 14px;
}
.edit-type,
.delete-type {
text-decoration: none;
font-size: .9rem;
}
.edit-type {
color: #0d6efd;
}
.delete-type {
color: #dc3545;
}
/* Allowed Users */
.allowed-user-card {
display: flex;
justify-content: space-between;
align-items: center;
padding: 14px;
margin-bottom: 10px;
background: #f8f9fa;
border-radius: 10px;
}
.user-remove {
color: #dc3545;
text-decoration: none;
}
/* Farms */
.available-farms-container {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
gap: 14px;
}
.available-farms-header {
grid-column: 1 / -1;
}
.available-farm-card {
background: #f8f9fa;
border-radius: 10px;
padding: 16px;
}
.available-farm-name {
font-weight: 600;
font-size: 1rem;
margin-bottom: 10px;
}
.available-farm-ifo {
display: flex;
gap: 16px;
color: #6c757d;
margin-bottom: 14px;
}
.available-farm-options {
display: flex;
justify-content: space-between;
}
.available-farm-select {
text-decoration: none;
color: #198754;
font-weight: 600;
}
.available-farm-delete {
text-decoration: none;
cursor: pointer;
color: #dc3545;
}
@media (max-width: 900px) {
.header {
flex-direction: column;
align-items: stretch;
}
.header-right {
width: 100%;
flex-wrap: wrap;
}
.farm-info {
flex: 1;
}
.farm-config-container form {
flex-direction: column;
}
.config-submit button {
min-height: 48px;
width: 100%;
}
.allowed-users-header, .batch-type-config-header {
flex-wrap: wrap;
gap: 10px;
}
}