Files
intra.cuitunet.fi/style.css
Jukka Lampikoski 297ba39c4f Add CuituNet Intra customer management CMS
Password-protected intranet for managing fiber internet customers:
- Customer table (company, address, speed, price)
- Click row to view full details (contact & billing info)
- Add, edit, delete customers
- Search and sortable columns
- Total billing summary
- PHP + vanilla JS + JSON storage

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-09 23:50:11 +02:00

475 lines
7.6 KiB
CSS

* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
background: #f0f2f5;
color: #1a1a2e;
min-height: 100vh;
}
/* Login */
.login-screen {
display: flex;
align-items: center;
justify-content: center;
min-height: 100vh;
background: linear-gradient(135deg, #0f3460, #16213e);
}
.login-box {
background: #fff;
padding: 3rem;
border-radius: 12px;
box-shadow: 0 20px 60px rgba(0,0,0,0.3);
text-align: center;
width: 100%;
max-width: 400px;
}
.login-box h1 {
font-size: 1.8rem;
margin-bottom: 0.5rem;
color: #0f3460;
}
.login-box p {
color: #666;
margin-bottom: 1.5rem;
}
.login-box input {
width: 100%;
padding: 12px 16px;
border: 2px solid #e0e0e0;
border-radius: 8px;
font-size: 1rem;
margin-bottom: 1rem;
transition: border-color 0.2s;
}
.login-box input:focus {
outline: none;
border-color: #0f3460;
}
.login-box button {
width: 100%;
padding: 12px;
background: #0f3460;
color: #fff;
border: none;
border-radius: 8px;
font-size: 1rem;
cursor: pointer;
transition: background 0.2s;
}
.login-box button:hover {
background: #16213e;
}
.error {
color: #e74c3c;
margin-top: 1rem;
font-size: 0.9rem;
}
/* Header */
header {
background: #0f3460;
color: #fff;
padding: 1rem 2rem;
display: flex;
justify-content: space-between;
align-items: center;
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.header-left h1 {
font-size: 1.4rem;
}
.subtitle {
font-size: 0.85rem;
opacity: 0.8;
}
.header-right {
display: flex;
gap: 0.75rem;
}
/* Buttons */
.btn-primary {
background: #2ecc71;
color: #fff;
border: none;
padding: 10px 20px;
border-radius: 8px;
cursor: pointer;
font-size: 0.9rem;
font-weight: 600;
transition: background 0.2s;
}
.btn-primary:hover {
background: #27ae60;
}
.btn-secondary {
background: transparent;
color: #fff;
border: 2px solid rgba(255,255,255,0.3);
padding: 8px 18px;
border-radius: 8px;
cursor: pointer;
font-size: 0.9rem;
transition: all 0.2s;
}
.btn-secondary:hover {
border-color: #fff;
background: rgba(255,255,255,0.1);
}
.btn-danger {
background: #e74c3c;
color: #fff;
border: none;
padding: 10px 20px;
border-radius: 8px;
cursor: pointer;
font-size: 0.9rem;
transition: background 0.2s;
}
.btn-danger:hover {
background: #c0392b;
}
/* Search */
.search-bar {
padding: 1rem 2rem;
}
.search-bar input {
width: 100%;
padding: 12px 16px;
border: 2px solid #e0e0e0;
border-radius: 8px;
font-size: 1rem;
background: #fff;
transition: border-color 0.2s;
}
.search-bar input:focus {
outline: none;
border-color: #0f3460;
}
/* Table */
.table-container {
padding: 0 2rem;
overflow-x: auto;
}
table {
width: 100%;
border-collapse: collapse;
background: #fff;
border-radius: 12px;
overflow: hidden;
box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}
thead th {
background: #16213e;
color: #fff;
padding: 14px 16px;
text-align: left;
font-weight: 600;
font-size: 0.9rem;
cursor: pointer;
user-select: none;
white-space: nowrap;
}
thead th:hover {
background: #1a2744;
}
tbody tr {
border-bottom: 1px solid #f0f0f0;
cursor: pointer;
transition: background 0.15s;
}
tbody tr:hover {
background: #f7f9fc;
}
tbody td {
padding: 12px 16px;
font-size: 0.95rem;
}
.price-cell {
font-weight: 600;
color: #0f3460;
}
.actions-cell {
white-space: nowrap;
}
.actions-cell button {
background: none;
border: none;
cursor: pointer;
padding: 4px 8px;
font-size: 1.1rem;
border-radius: 4px;
transition: background 0.15s;
}
.actions-cell button:hover {
background: #f0f0f0;
}
.empty-state {
text-align: center;
padding: 3rem;
color: #888;
font-size: 1.1rem;
}
/* Summary */
.summary-bar {
display: flex;
justify-content: space-between;
align-items: center;
padding: 1.25rem 2rem;
margin: 1rem 2rem 2rem;
background: #fff;
border-radius: 12px;
box-shadow: 0 2px 10px rgba(0,0,0,0.06);
font-weight: 600;
}
#total-billing {
font-size: 1.15rem;
color: #0f3460;
}
/* Modal */
.modal {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0,0,0,0.5);
display: flex;
align-items: center;
justify-content: center;
z-index: 1000;
padding: 1rem;
}
.modal-content {
background: #fff;
border-radius: 16px;
width: 100%;
max-width: 700px;
max-height: 90vh;
overflow-y: auto;
box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.modal-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 1.25rem 1.5rem;
border-bottom: 1px solid #eee;
}
.modal-header h2 {
font-size: 1.3rem;
color: #0f3460;
}
.modal-close {
background: none;
border: none;
font-size: 1.8rem;
cursor: pointer;
color: #999;
line-height: 1;
}
.modal-close:hover {
color: #333;
}
/* Form */
form {
padding: 1.5rem;
}
form h3 {
font-size: 1rem;
color: #0f3460;
margin: 1.25rem 0 0.75rem;
padding-bottom: 0.5rem;
border-bottom: 2px solid #f0f2f5;
}
form h3:first-child {
margin-top: 0;
}
.form-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 1rem;
}
.form-group {
display: flex;
flex-direction: column;
}
.form-group.full-width {
grid-column: 1 / -1;
}
.form-group label {
font-size: 0.85rem;
font-weight: 600;
color: #555;
margin-bottom: 0.3rem;
}
.form-group input,
.form-group textarea {
padding: 10px 12px;
border: 2px solid #e0e0e0;
border-radius: 8px;
font-size: 0.95rem;
transition: border-color 0.2s;
font-family: inherit;
}
.form-group input:focus,
.form-group textarea:focus {
outline: none;
border-color: #0f3460;
}
.form-actions {
display: flex;
gap: 0.75rem;
padding: 1.25rem 1.5rem;
border-top: 1px solid #eee;
justify-content: flex-end;
}
.form-actions .btn-secondary {
color: #666;
border-color: #ddd;
}
.form-actions .btn-secondary:hover {
color: #333;
border-color: #999;
}
/* Detail view */
#detail-body {
padding: 1.5rem;
}
.detail-section {
margin-bottom: 1.5rem;
}
.detail-section h3 {
font-size: 1rem;
color: #0f3460;
margin-bottom: 0.75rem;
padding-bottom: 0.5rem;
border-bottom: 2px solid #f0f2f5;
}
.detail-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 0.5rem 2rem;
}
.detail-item {
padding: 0.4rem 0;
}
.detail-label {
font-size: 0.8rem;
color: #888;
text-transform: uppercase;
letter-spacing: 0.5px;
}
.detail-value {
font-size: 0.95rem;
font-weight: 500;
color: #1a1a2e;
word-break: break-word;
}
.detail-value.empty {
color: #ccc;
font-style: italic;
}
/* Responsive */
@media (max-width: 768px) {
header {
flex-direction: column;
gap: 1rem;
text-align: center;
}
.form-grid,
.detail-grid {
grid-template-columns: 1fr;
}
.summary-bar {
flex-direction: column;
gap: 0.5rem;
text-align: center;
}
.table-container {
padding: 0 1rem;
}
.search-bar {
padding: 1rem;
}
.summary-bar {
margin: 1rem;
}
thead th,
tbody td {
padding: 10px 8px;
font-size: 0.85rem;
}
}