/* ===== BASE LAYOUT ===== */
body {
    background-color: #f7f7f7;
    margin: 0;
    display: flex;
    flex-direction: column;
	margin-top: 60px; /* only if header is fixed and overlapping content */
	overflow-y: scroll;
}
html, body {
    font-family: 'Poppins', sans-serif; /* or Roboto, Poppins, Nunito */
    font-size: 16px;
    font-weight: 400;
	
}

/* reset any old green fill for active cells */
#workTable td.day-cell,
#workTable td.day-cell.active,
#workTable td.day-cell.holiday{
  background: transparent !important;
}
#workTable col.col-weekend {
  background: #f3f3f3;
}
/* A = light blue */
#workTable td.day-cell[data-shift="A"]{
  background: #d9ecff !important;
}

/* S = yellow */
#workTable td.day-cell[data-shift="S"]{
  background: #fff3b0 !important;
}

/* ===== GENERIC FORM STYLES ===== */
.form-group input[type="text"],
.form-group input[type="password"] {
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.form-group input[type="submit"] {
    width: 100%;
    padding: 10px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.form-group input[type="submit"]:hover {
    background-color: #45a049;
}

.button-login {
    background-color: green;
}

.button:hover {
    opacity: 0.9;
}

/* ===== CREATE BUTTON ===== */
#createButton {
    display: block;
    margin: 20px auto;
    padding: 10px 20px;
    background-color: #2b76f0;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}

#createButton:hover {
    background-color: #104eb3;
}



/* ===== START RIDE BUTTON ===== */
#startRideBtn {
    margin-top: 10px;
    background-color: green;
    color: white;
    width: 100%;
    height: 40px;
    border: none !important;
    display: block;
    margin-left: auto;
    margin-right: auto;
    cursor: pointer;
    border-radius: 5px;
    font-size: 18px;
}

/* ===== TABLE STYLES ===== */
table {
    width: 100%;
    border-collapse: collapse;
}


th,
td {
    padding: 8px;
    text-align: left;
}


thead tr {
    background: #f2f2f2;
    border-radius: 4px;
    box-shadow: 0 0 8px rgba(0,0,0,0.12);
}

/* ===== LOGIN BLOCK ===== */
.login-container {
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 400px;
    text-align: center;
    margin: 100px auto;
}

.login-container h2 {
    margin-bottom: 20px;
}

.login-container input {
    width: calc(100% - 20px);
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.login-container button {
    width: 100%;
    padding: 10px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.login-container button:hover {
    background-color: #45a049;
}

/* ===== MESSAGES ===== */
.success {
    border: 1px solid green;
    color: green;
}

.error {
    border: 1px solid red;
    color: red;
    margin-bottom: 10px;
}

.exists {
    border: 1px solid orange;
    color: orange;
}

/* ===== MAP ===== */
#map {
    width: 100%;
    height: 600px;
    margin: 0 auto;
}

#distance {
    margin-top: 10px;
}

/* ===== TOP BAR / HEADER ===== */
.top-bar {
    background-color: #4CAF50;
    padding: 10px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    color: white;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.name {
    flex: 1;
    text-align: left;
    text-transform: uppercase;
    display: inline-block;
    max-width: 400px;
    overflow-wrap: break-word;
    white-space: normal;
}

/* ===== DELETE BUTTON ===== */
.delete-button {
    display: block;
    width: 100%;
    height: 100%;
    background-color: red;
    color: white;
    border: none;
    text-align: center;
    line-height: 1.5;
    cursor: pointer;
    border-radius: 8px;
}

/* ===== OVERLAYS ===== */
.overlay2 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
}

.overlay3 {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.confirmationBox1 {
    background: white;
    padding: 20px;
    border-radius: 5px;
    text-align: center;
}

/* Generic overlay */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 999;
}

/* ===== ICONS ===== */
.icon a i {
    font-size: 30px;
    color: purple;
    margin-right: 15px;
}

.icon a i:nth-child(2) {
    color: red;
}

/* ===== CONFIRMATION BOX ===== */
.confirmationBox {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    min-width: 300px;
}

.confirmationBox button {
    margin: 10px;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.confirmationBox #confirmBtn,
.confirmationBox #confirmBtn2,
.confirmationBox #okBtn,
.confirmationBox #okBtn2 {
    background: #4CAF50;
    color: white;
}

.confirmationBox #cancelBtn,
.confirmationBox #cancelBtn2 {
    background: #f44336;
    color: white;
}

/* ===== SEARCH FORM ===== */
#searchForm {
    margin-bottom: 20px;
}

#searchForm input {
    padding: 8px;
    margin-right: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* ===== VOTERS TABLE ===== */
#votersTable {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

#votersTable th,
#votersTable td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

#votersTable th {
    cursor: pointer;
    background-color: #f2f2f2;
    color: #333;
}

#votersTable tr:nth-child(even) {
    background-color: #f9f9f9;
}

#votersTable tr:hover {
    background-color: #f1f1f1;
}

/* Editable Cells */
.editable:focus {
    outline: none;
    background-color: #ffffcc;
}

/* ===== POPUP ===== */
.popup {
    display: none;
    position: fixed;
    left: 50%;
    top: 7%;
    transform: translate(-50%, -30%);
    background-color: #f9f9f9;
    border: 1px solid #ccc;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    text-align: center;
}

.popup.success {
    border-color: #4CAF50;
}

.popup.error {
    border-color: #F44336;
}

.popup.exists {
    border-color: #FF9800;
}

/* ===== MAIN CONTENT ===== */
main {
    top: 50px;
    flex: 1;
    margin: 50px auto;
    padding: 20px;
    padding-bottom: 60px;
    max-width: 1000px;
    justify-content: center;
    align-items: center;
}

/* ===== FORM CONTAINERS ===== */
.form-container {
    background-color: #fff;
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 900px;
    box-sizing: border-box;
    margin: 100px auto 2rem auto;
    position: relative;
}

.form-container1 {
    background-color: #fff;
    border: 1px solid #ddd;
    padding: 20px 30px; /* top-bottom left-right */
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 95%;
    max-width: 1200px;
    box-sizing: border-box;
    margin: 100px auto 2rem auto;
    position: relative;
}
.form-container2 {
    background-color: #fff;
    border: 1px solid #ddd;
    padding: 20px 30px; /* top-bottom left-right */
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 95%;
    box-sizing: border-box;
    margin: 100px auto 2rem auto;
    position: relative;
}

.form-container1::before {
    content: "";
    display: block;
    height: 40px;
    background-color: purple;
    border-radius: 10px 10px 0 0;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 0;
}
.form-container2::before {
    content: "";
    display: block;
    height: 40px;
    background-color: purple;
    border-radius: 10px 10px 0 0;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 0;
}
.form-container::before {
    content: "";
    display: block;
    height: 40px;
    background-color: purple;
    border-radius: 10px 10px 0 0;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 0;
}

#violeta_augsa {
    background-color: transparent;
    display: relative;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
}

#violeta_augsa h2 {
    color: white;
    margin-top: -20px;
}

/* General styles inside form */
.form-container h2 {
    margin-top: 0;
    color: #333;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #333;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box;
}

/* Import form */
.form-group-import {
    margin-bottom: 15px;
}

.form-group-import label {
    display: block;
    margin-bottom: 5px;
    color: #333;
}

.form-group-import input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box;
}

.form-group-import input[type="submit"] {
    background-color: #4CAF50;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

/* NUMBER INPUTS */
input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type=number] {
    -moz-appearance: textfield;
}

/* DATE INPUT */
input[type="date"] {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    width: 100%;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
    font-size: 16px;
    color: #333;
}

input[type="date"]:focus {
    border-color: #4CAF50;
    outline: none;
}

/* SELECT INPUT */
select {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    width: 100%;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
    font-size: 16px;
    color: #333;
}

select:focus {
    border-color: #4CAF50;
    outline: none;
}

/* ERROR MESSAGE UNDER FIELD */
.error-message {
    color: #f44336;
    font-size: 12px;
    margin-top: 5px;
}

/* ===== WRAPPER & FOOTER ===== */
.wrapper {
    display: grid;
    grid-template-rows: auto 1fr auto;
    max-height: 100vh;
    width: 100% !important;
}

footer {
    background-color: #333;
    color: white;
    text-align: center;
    position: sticky;
    bottom: 0;
}

header {
    background-color: #4CAF50;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

header .name,
header .icon {
    display: flex;
    align-items: center;
}

header nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: space-between;
}

header nav ul li {
    margin-right: 10px;
}

header nav ul li:last-child {
    margin-right: 0;
}

header nav ul li a {
    text-decoration: none;
    color: white;
    font-size: 18px;
    display: inline-block;
    padding: 10px 15px;
    background: #388E3C;
    border-radius: 10px;
    transition: background-color 0.3s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

header nav ul li a:hover {
    background-color: #45a049;
    color: purple;
}

header .name {
    font-size: 18px;
    font-weight: bold;
}

header .icon {
    margin-left: 20px;
}

header .icon img {
    width: 24px;
    height: 24px;
    margin-left: 10px;
}

header .button {
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

header .button:hover {
    background-color: #45a049;
}

/* FOOTER CONTENT */
.footer-content p {
    margin: 5px 0;
}

.footer-content a {
    color: #00aced;
    text-decoration: none;
}

.footer-content a:hover {
    text-decoration: underline;
}

/* LINKS */
a {
    text-decoration: none;
    color: white;
}

a.mailto-link {
    text-decoration: none !important;
    color: #07db3f !important;
}

/* ===== RESPONSIVE: LANDSCAPE MOBILE ===== */
@media (orientation: landscape) and (max-width: 767px) {
    footer {
        display: none;
    }

    .form-group label {
        font-size: 14px;
    }

    .form-group input {
        font-size: 14px;
    }

    .form-container h2 {
        font-size: 18px;
    }
}

/* ===== RESPONSIVE: PORTRAIT MOBILE ===== */
@media (orientation: portrait) and (max-width: 767px) {
	    .room-card {
        min-height: unset!important; /* or auto */
    }
	header .name {
    font-size: 6px;
    font-weight: bold;
}
    .login-container {
        background-color: #fff;
        padding: 20px;
        border-radius: 5px;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
        width: 300px;
        text-align: center;
        margin: 100px auto;
    }

    .confirmationBox {
        background: white;
        padding: 20px;
        max-width: 200px;
        border-radius: 5px;
        text-align: center;
        margin-top: 20px;
    }

    footer {
        font-size: 14px;
    }

    .form-group label {
        font-size: 14px;
    }

    .form-group input {
        font-size: 14px;
    }

    .form-container h2 {
        font-size: 18px;
    }

    table {
        width: auto;
        margin-top: 50px !important;
        margin-right: 0;
        margin-bottom: 0;
        margin-left: 0;
    }

    th,
    td {
        display: block;
        width: 100%;
    }

    main {
        margin-top: 50px !important;
        margin-right: 0;
        margin-bottom: 0;
        margin-left: 0;
    }

    #votersTable {
        width: 95%;
    }

    #votersTable table tr:nth-child(even) {
        background-color: #f2f2f2 !important;
    }
}

/* ===== CALENDAR ===== */
.container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
}

.calendar-container,
.weekly-view-container {
    background-color: white;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.weekly-view {
    background-color: #fff;
}

.weekly-view h2 {
    margin-top: 0;
}

.weekly-view .weekly-event {
    background-color: #d4edda;
    padding: 5px;
    margin: 5px 0;
    border-radius: 4px;
}

.nav-arrow {
    color: black;
    text-decoration: none;
    font-size: 20px;
}

@media (max-width: 768px) {
    #map {
        width: 100%;
        height: 200px !important;
        margin: 0 auto;
    }

    #saveButton,
    #showButton {
        margin-top: 20px;
    }

    #locationList {
        margin-top: 20px;
        text-align: left;
    }

    #locations li {
        cursor: pointer;
        color: blue;
        text-decoration: underline;
    }

    #locations li:hover {
        color: darkblue;
    }

    .container {
        grid-template-columns: 1fr;
    }

    .form-group-import {
        display: none;
    }

    table.calendar th,
    table.calendar td {
        padding: 5px;
        font-size: 0.8em;
    }

    table.calendar caption {
        font-size: 1.2em;
    }

    .weekly-view h2 {
        font-size: 1em;
    }



    .gallery-item img {
        max-width: 200px;
        height: auto;
        object-fit: cover;
    }
}

/* Default gallery item image styling for smaller screens */
@media only screen and (max-width: 600px) {
    .gallery-item img {
        max-width: 200px;
    }
}

/* ===== IMAGE / MODAL ===== */
.custom-file-input {
    display: none;
}

.file-label {
    display: inline-block;
    padding: 10px 20px;
    font-size: 16px;
    color: white !important;
    background-color: #007bff;
    border-radius: 5px;
    cursor: pointer;
}

.file-label:hover {
    background-color: #0056b3;
}

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
}


.modal-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 999;
}

.image-container {
    position: relative;
    display: inline-block;
    margin: 5px;
}

.close-button {
    position: absolute;
    top: 5px;
    right: 5px;
    background-color: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}

.close-button .fa-trash {
    color: red;
    font-size: 20px;
}

.image-container img {
    z-index: 1;
    cursor: pointer;
}

.delete-icon {
    position: absolute;
    top: 8px;
    right: 8px;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    padding: 5px;
    color: red;
}

/* Extra responsive tweaks */
@media (max-width: 600px) {
    .form-container1 {
        padding: 10px;
        margin: 20px auto;
    }

    .form-group input[type="text"],
    .form-group input[type="password"],
    .form-group input[type="submit"] {
        padding: 8px;
    }
}

/* ===== KLIENTI PAGE STYLES ===== */
.jauns_klients {
    background-color: white !important;
    margin: 100px auto 2rem auto !important;
    padding: 2rem !important;
    width: 100% !important;
    max-width: 1200px !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05) !important;
}

/* Inner Form Wrapper */
.forma {
    margin: auto !important;
    width: 90% !important;
}

/* Form Inputs & Selects (global) */
input,
select {
    width: 100% !important;
    padding: 10px !important;
    border: 1px solid #ccc !important;
    border-radius: 4px !important;
    box-sizing: border-box !important;
    font-size: 16px !important;
}

select {
    appearance: none !important;
    background-color: #fff !important;
}

/* Submit Button in jauns_klients */
.jauns_klients input[type="submit"] {
    background-color: #4CAF50 !important;
    color: white !important;
    padding: 14px 20px !important;
    margin: 16px 0 !important;
    border: none !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    font-size: 16px !important;
    transition: background-color 0.3s, transform 0.2s !important;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1) !important;
}

.jauns_klients input[type="submit"]:hover {
    background-color: #45a049 !important;
}

.jauns_klients input[type="submit"]:active {
    animation: pulse 1s infinite !important;
}

@keyframes pulse {
    0% {
        transform: scale(1) !important;
    }

    50% {
        transform: scale(1.05) !important;
    }

    100% {
        transform: scale(1) !important;
    }
}

/* Table inside klienti */
.klienti td {
    width: 20% !important;
}
.klienti table th {
    font-weight:700;
}
/* Special Container */
#palata1 {
    background-color: #ffffff !important;
    width: 100% !important;
}

/* Responsive Columns */
.column {
    float: left !important;
    width: 23% !important;
    padding: 10px !important;
    height: auto !important;
    border: 1px solid #ccc !important;
    box-sizing: border-box !important;
}


/* Headers */
h1 {
    color: #19245A !important;
    font-family: 'Poppins', sans-serif !important;
    font-weight: bold !important;
    font-size: 32px !important;
}

h3 {
    height: 30px !important;
}

/* Top Bar */
.augsa {
    width: 100% !important;
    height: 20px !important;
    background-color: #95e8e3 !important;
}




/* Media Queries for klienti */
@media only screen and (max-width: 767px) {
    .column {
        width: 47% !important;
    }

    h1 {
        font-size: 20px !important;
    }

    .jauns_klients {
        padding: 1rem !important;
        margin-top: 50px !important;
    }
}

/* Remove borders inside forma table */
.forma table,
.forma th,
.forma td {
    border: none !important;
}

/* VISI DATI Button */
.klienti a {
    display: inline-block !important;
    padding: 8px 18px !important;
    background: #28a745 !important;
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 6px !important;
    border: 2px solid #28a745 !important;
    font-size: 14px !important;
    cursor: pointer !important;
    font-weight: 600 !important;
    transition: all 0.25s ease !important;
}

.klienti a:hover {
    background: #fff !important;
    color: #28a745 !important;
}



   .overlay {
        position: fixed; top:0; left:0; width:100%; height:100%;
        background: rgba(0,0,0,0.5); justify-content:center; align-items:center; z-index:9999;
        opacity: 1; transition: opacity .3s ease;
    }
    .overlay.is-hidden { opacity: 0; pointer-events: none; }
    .confirmationBox { background:#fff; padding:20px; border-radius:8px; text-align:center; }
    .success { border:1px solid green; color:green; padding:10px; border-radius:6px; }
    .error { border:1px solid red; color:red; padding:10px; border-radius:6px; }
    .exists { border:1px solid orange; color:orange; padding:10px; border-radius:6px; }

    #violeta_augsa { text-align:center;}
    .form-group { margin-bottom: 14px; }
    .form-group label { display:block; margin-bottom:6px; font-weight:600; }
    .form-group input[type="text"],
    .form-group input[type="password"],
    .form-group input[type="tel"],
    .form-group input[type="number"],
    .form-group select {
        width:100%; padding:10px; box-sizing:border-box; border:1px solid #ccc; border-radius:6px;
    }
    .form-group input[type="submit"] {
        width:100%; padding:12px; background:#4CAF50; color:#fff; border:none; border-radius:6px; cursor:pointer; font-weight:700;
    }
    .form-group input[type="submit"]:hover { background:#45a049; }
    .error-message { color:#d00; font-size:13px; margin-top:4px; display:block; min-height:16px; }
    @media (max-width:600px) {
        .form-container1 { padding: 14px; margin: 20px auto; }
    }
	



.actions button {
    background-color: #4CAF50;
    color: white;
    padding: 12px 28px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.25s ease;
    box-shadow: 0px 3px 6px rgba(0,0,0,0.15);
}

.actions button:hover {
    background-color: #45a049;
    transform: translateY(-2px);
    box-shadow: 0px 6px 12px rgba(0,0,0,0.18);
}

.actions button:active {
    transform: translateY(0);
    box-shadow: 0px 3px 6px rgba(0,0,0,0.12);
}


/* Tabula iekš klientu bloka */
.form-container1 table.klienti {
    width: 100% !important;
    border-collapse: collapse !important;
    margin: 0 !important;
    font-size: 14px !important;
}

/* Galvenes rinda */
.form-container1 table.klienti tr:first-child th {
    background-color: #f5f5f5 !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.03em !important;
    border-bottom: 2px solid #e0e0e0 !important;
}

/* Visas šūnas */
.form-container1 table.klienti th,
.form-container1 table.klienti td {
    padding: 10px 16px !important;
    border: 1px solid #eeeeee !important;
    text-align: left !important;
    color: #333 !important;
}

/* Zebra rindas */
.form-container1 table.klienti tr:nth-child(even) td {
    background-color: #fafafa !important;
}

/* Hover efekts */
.form-container1 table.klienti tr:hover td {
    background-color: #f1f7ff !important;
}
/* === Form Container === */
.jauns_klients {
    background-color: #ffffff;
    margin: 100px auto 2rem auto;
    padding: 2rem;
    width: 100%;
    max-width: 1200px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

/* === Inner Form Wrapper === */
.forma {
    margin: auto;
    width: 90%;
}



select {
    appearance: none;
    background-color: #fff;
}

.jauns_klients input[type="submit"] {
    background-color: #4CAF50;
    color: white;
    padding: 14px 20px;
    margin: 16px 0;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s, transform 0.2s;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

.jauns_klients input[type="submit"]:hover {
    background-color: #45a049;
}

.jauns_klients input[type="submit"]:active {
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* === Table === */
.klienti td {
    width: 20%;
}

/* === Special Container === */
#palata1 {
    background-color: #ffffff !important;
    width: 100%;
}

/* === Responsive Columns === */
.column {
    float: left;
    width: 23%;
    padding: 10px;
    height: auto;
    border: 1px solid #ccc;
    box-sizing: border-box;
}



/* === Header Styling === */
h1 {
    color: #19245A;
    font-family: 'Poppins', sans-serif;
    font-weight: bold;
    font-size: 32px;
}

h3 {
    height: 30px !important;
}

/* === Top Bar === */
.augsa {
    width: 100%;
    height: 20px;
    background-color: #95e8e3;
}



/* === Media Queries === */
@media only screen and (max-width: 767px) {
    .column {
        width: 47%;
    }

    h1 {
        font-size: 20px;
    }

    .jauns_klients {
        padding: 1rem;
        margin-top: 50px;
    }
}
.forma table, th, td {
  border: none;
}
	.klienti a {
    display: inline-block;
    padding: 8px 18px;
    background: #28a745;
    color: #fff !important;
    text-decoration: none;
    border-radius: 6px;
    border: 2px solid #28a745;
    font-size: 14px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.25s ease;
}

.klienti a:hover {
    background: #fff;
    color: #28a745 !important;
}

  .step { display:none; }
  .step.active { display:block; }
.actions {
    margin-top: 12px;
    display: flex;
    gap: 12px;
    align-items: center; 
	padding:10px;/* vertical center */
}

  .progress { display:flex; align-items:center; gap:10px; margin: 10px 0 20px; justify-content:center; }
  .progress .dot { width:26px; height:26px; border-radius:50%; border:2px solid #999; display:flex; align-items:center; justify-content:center; font-weight:600; }
  .progress .dot.active { border-color:#2a7; box-shadow:0 0 0 3px rgba(34,170,119,.2); }
  .progress .line { height:2px; width:60px; background:#ccc; }
  button, input[type=submit] { padding:8px 14px; cursor:pointer; }
  .r-block { padding: 8px 0; }
.r-table { width: 100%; border-collapse: collapse; }
.r-table td { padding: 4px; vertical-align: top; }



/* Wrapper for all rooms */
.rooms-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    padding: 20px;
}

/* One room card — unified width */
.room-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    padding: 16px 18px 14px;

    /* 🔥 MAIN FIX: every card same width */
    width: 300px;          /* CHANGE this to any size you want */
    min-height: 240px;     /* equal height look */
    box-sizing: border-box;
}

/* Room header with single circle */
.room-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.numberCircle {
    width: 32px;
    height: 32px;
    background: #6c4ab6;
    color: #fff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 8px;
    font-size: 14px;
}

.room-title {
    font-weight: 600;
    font-size: 16px;
    color: #333;
}

/* Beds grid inside one room */
.beds-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Bed slot (occupied or empty) */
.bed-slot {
    flex: 1 1 45%;
    min-width: 120px;
    background: #f6f5ff;
    border-radius: 10px;
    padding: 8px 10px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    cursor: default;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
    transition: 0.15s ease-in-out;
}

.bed-slot.occupied {
    cursor: pointer;
}

.bed-slot.occupied:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.12);
}

/* Bed number + name */
.bed-number {
    font-size: 12px;
    font-weight: 600;
    color: #6c4ab6;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.bed-name {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

/* Empty bed styling */
.bed-slot.empty {
    background: #f4f4f4;
}

.bed-slot.empty .bed-name {
    color: #999;
    font-style: italic;
}
/* Floor buttons */
.floor-btn {
    display:inline-block;
    margin:0 5px;
    padding:8px 16px;
    border-radius:20px;
    border:1px solid #ccc;
    text-decoration:none;
    font-size:14px;
    background:#fff;
    color:#333;
}
.floor-btn.active {
    background:#7b4bff;
    color:#fff;
    border-color:#7b4bff;
}

/* Responsive */
@media (max-width: 700px) {
    .room-card {
        width: 100%;
    }
    .bed-slot {
        flex: 1 1 100%;
    }
}
/* ------------------------------------------------ */
/*  COMMON GRID LAYOUT (TOP FORM + HEADER + ROWS)   */
/* ------------------------------------------------ */

#palataForm,
.palata-row-header,
.palata-row-form {
    display: grid;
    /* 3 flexible columns + 1 auto-sized actions column */
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) auto;
    column-gap: 16px;
}

/* spacing per block */
#palataForm {
    margin-bottom: 20px;
}

.palata-row-header {
    margin-top: 10px;
    margin-bottom: 6px;
    font-weight: 500;
}

.palata-row-form {
    margin-bottom: 8px;
}

/* ------------------------------------------------ */
/*  TOP FORM (ADD NEW PALĀTA)                       */
/* ------------------------------------------------ */

#palataForm label {
    display: flex;
    flex-direction: column;
    font-size: 14px;
    width: 100%;              /* fill full grid cell */
}

#palataForm input[type="number"] {
    width: 100%;
    height: 42px;
    padding: 0 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
}

/* actions in top form */
#palataForm .palata-actions {
    display: flex;
    justify-content: flex-start;
    gap: 10px;
}

/* ------------------------------------------------ */
/*  HEADER ROW                                      */
/* ------------------------------------------------ */

.palata-row-header span {
    display: block;
    width: 100%;              /* fill full grid cell */
    font-size: 14px;
    text-align: left;         /* text starts at left edge of column */
}

/* ------------------------------------------------ */
/*  INPUTS IN ROWS                                  */
/* ------------------------------------------------ */

.palata-row-form input[type="number"],
.palata-row-form input[disabled] {
    width: 100%;
    height: 42px;
    padding: 0 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
}

/* ------------------------------------------------ */
/*  ACTION BUTTONS IN ROWS                          */
/* ------------------------------------------------ */

.palata-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-start;
}

/* ------------------------------------------------ */
/*  SAVE BUTTON                                     */
/* ------------------------------------------------ */

.btn-save {
    height: 42px;
    padding: 0 18px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: 0.25s ease;
    box-shadow: 0px 3px 6px rgba(0,0,0,0.15);
}

.btn-save:hover {
    background-color: #45a049;
    transform: translateY(-2px);
    box-shadow: 0px 6px 12px rgba(0,0,0,0.18);
}

.btn-save:active {
    transform: translateY(0);
    box-shadow: 0px 3px 6px rgba(0,0,0,0.12);
}

.finance-action-row {
    margin: 0 0 14px 0;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.finance-action-btn {
    border-radius: 10px;
    padding: 0 16px;
}

.finance-action-show {
    background-color: #2f80ed;
}

.finance-action-show:hover {
    background-color: #1c68cf;
}

.finance-action-export {
    background-color: #27ae60;
}

.finance-action-export:hover {
    background-color: #1f8f4f;
}

.finance-action-jurmala {
    background-color: #f2994a;
}

.finance-action-jurmala:hover {
    background-color: #db7d2c;
}

.comment-cell {
    width: 56px;
    text-align: center;
}

.comment-trigger-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.comment-trigger {
    width: 34px;
    height: 34px;
    padding: 0;
    margin: 0;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #ffffff;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    vertical-align: middle;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.comment-trigger:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.12);
    border-color: #94a3b8;
}

.comment-trigger.has-comment {
    background: #fff7d6;
    border-color: #f59e0b;
}

.comment-preview {
    display: none;
    position: absolute;
    left: 42px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 30;
    width: 260px;
    max-width: 260px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #111827;
    color: #ffffff;
    text-align: left;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.28);
    white-space: normal;
    word-break: break-word;
}

.comment-trigger-wrap:hover .comment-preview {
    display: block;
}

.comment-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.42);
    z-index: 9998;
}

.comment-modal {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(520px, calc(100vw - 32px));
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22);
    padding: 18px;
    box-sizing: border-box;
    z-index: 9999;
}

.comment-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.comment-modal__close {
    width: 34px;
    height: 34px;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 10px;
    background: #eef2ff;
    color: #1f2937;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    flex: 0 0 34px;
}

.comment-modal__input {
    display: block;
    width: 100%;
    min-height: 160px;
    resize: vertical;
    margin: 0;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    padding: 12px 14px;
    font: inherit;
    outline: none;
    box-sizing: border-box;
}

.comment-modal__input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.16);
}

.comment-modal__footer {
    margin-top: 10px;
    min-height: 20px;
}

.comment-modal__status {
    font-size: 13px;
    color: #2563eb;
}

.comment-modal__status.is-error {
    color: #dc2626;
}

.comment-modal.is-saving .comment-modal__input,
.comment-modal.is-saving .comment-modal__close {
    opacity: .7;
}

/* ------------------------------------------------ */
/*  DELETE BUTTON                                   */
/* ------------------------------------------------ */

.btn-delete {
    height: 42px;
    padding: 0 14px;
    background-color: #e34848;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: .25s;
}

.btn-delete:hover {
    background-color: #cc3030;
    transform: translateY(-2px);
}

/* ------------------------------------------------ */
/*  SECTION TITLE (UNDERLINE)                       */
/* ------------------------------------------------ */

.section-title {
    border-bottom: 2px solid #ddd;
    padding-bottom: 6px;
    margin-bottom: 12px;
    font-weight: 600;
}

/* ------------------------------------------------ */
/*  SAVE BUTTON                                     */
/* ------------------------------------------------ */

.btn-open {
    padding: 0 18px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: 0.25s ease;
    box-shadow: 0px 3px 6px rgba(0,0,0,0.15);
}

.btn-open:hover {
    background-color: #45a049;
    transform: translateY(-2px);
    box-shadow: 0px 6px 12px rgba(0,0,0,0.18);
}

.btn-open:active {
    transform: translateY(0);
    box-shadow: 0px 3px 6px rgba(0,0,0,0.12);
}


/* =========================
   Dokumenti – kopējais bloks
   ========================= */

.doc-section {

    margin: 2rem auto;


}

.doc-section__title {
    font-size: 1.5rem;
    margin: 0 0 1.5rem;
    font-weight: 600;
    color: #111827;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 0.75rem;
}

/* =========================
   Forma
   ========================= */

.doc-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.doc-form__row {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.doc-form__label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #374151;
}

.doc-form__required {
    color: #dc2626;
    margin-left: 0.25rem;
}

.doc-form__input,
.doc-form__file {
    padding: 0.6rem 0.75rem;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
    background-color: #f9fafb;
}

.doc-form__input:focus,
.doc-form__file:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.18);
    background-color: #ffffff;
}

.doc-form__actions {
    margin-top: 0.5rem;
    display: flex;
    justify-content: flex-start;
}

/* =========================
   Pogas
   ========================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 1.1rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition:
        background-color 0.15s ease,
        border-color 0.15s ease,
        color 0.15s ease,
        box-shadow 0.15s ease,
        transform 0.05s ease;
}

.btn--primary {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.35);
}

.btn--primary:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
    transform: translateY(-1px);
}

.btn--secondary {
    background: #f3f4f6;
    border-color: #d1d5db;
    color: #111827;
}

.btn--secondary:hover {
    background: #e5e7eb;
}

.btn--danger {
    background: #dc2626;
    border-color: #dc2626;
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(220, 38, 38, 0.3);
}

.btn--danger:hover {
    background: #b91c1c;
    border-color: #b91c1c;
}

.btn--sm {
    padding: 0.4rem 0.85rem;
    font-size: 0.8rem;
}

/* =========================
   Dokumentu saraksts
   ========================= */

.doc-list {
    margin-top: 1rem;
}

.doc-list__title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #111827;
    margin: 0 0 0.75rem;
}

.doc-list__empty {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #6b7280;
}

/* =========================
   Tabula
   ========================= */

.doc-table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.doc-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    min-width: 640px;
}

.doc-table thead {
    background-color: #f3f4f6;
}

.doc-table th,
.doc-table td {
    padding: 0.75rem 0.75rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.doc-table th {
    font-weight: 600;
    color: #374151;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.doc-table tbody tr:nth-child(even) {
    background-color: #f9fafb;
}

.doc-table tbody tr:hover {
    background-color: #eff6ff;
}

.doc-table__actions-col {
    width: 180px;
}

.doc-table__actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.doc-table__delete-form {
    display: inline-block;
}

/* =========================
   Responsivitāte
   ========================= */

@media (max-width: 768px) {
    .doc-section {
        padding: 1.5rem 1.25rem;
        margin: 1.5rem 0.75rem;
    }

    .doc-table {
        min-width: 0;
        font-size: 0.8rem;
    }

    .doc-table th,
    .doc-table td {
        padding: 0.6rem 0.5rem;
    }

    .doc-table__actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .btn--sm {
        width: 100%;
        justify-content: center;
    }
}
/* VIENĀDS 6-KOLONU GRID priekš header + rindām */
.users-block .users-grid-header,
.users-block .users-grid-row {
    display: grid;
    grid-template-columns: 1fr 1.4fr 1.2fr 1.2fr 0.9fr auto;
    column-gap: 10px;
    align-items: center;
}

/* lai header span patiešām aizņem visu kolonnu */
.users-block .users-grid-header span {
    display: block;
    width: 100%;
    padding: 8px 12px;      /* tāds pats kā inputiem */
    box-sizing: border-box;
}


#userForm {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* two columns */
    gap: 0px 40px; /* row gap + column gap */
    max-width: 1200px;
}

#userForm .form-group {
    display: flex;
    flex-direction: column;
}

/* Make the submit button span both columns */
#userForm .form-group:last-child {
    grid-column: span 2;
    text-align: center;
}
.menu-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
	margin-top:2px;
}

.menu-buttons button {
    padding: 10px 14px;
    background: #003b89;
    color: white;
    font-size: 14px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: 0.2s;
}

.menu-buttons button:hover {
    background: #5c7fad;
}

.menu-buttons button.active {
    background: #5c7fad; /* violet */
    color: white;
}
.finances-row-form {
    display: flex;
    gap: 25px;
    align-items: flex-end;
    flex-wrap: nowrap;   /* all in one row */
}

.finances-row-form .form-group {
    display: flex;
    flex-direction: column;
}

.finances-row-form input[type="number"] {
    width: 140px; /* adjust if needed */
}

.finances-row-form button {
    height: 40px;
    padding: 0 20px;
}
.sum-row {
    background: #f2f2f2;
    box-shadow: 0 0 10px rgba(0,0,0,0.12);
}

.sum-row td {
    padding: 8px 10px;
	text-align: center;
}

/* rounded corners for the whole row */
.sum-row td:first-child {
    border-top-left-radius: 6px;
    border-bottom-left-radius: 6px;
	text-align: center; /* keep the “Kopsummas” label aligned right */
}

.sum-row td:last-child {
    border-top-right-radius: 6px;
    border-bottom-right-radius: 6px;
}
/* HEADER STYLE (from your palata-row-header) */
.klienti-header {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    font-weight: 700;
    padding: 12px 10px;
    border-bottom: 2px solid #ddd;
    margin-bottom: 6px;
}

/* ONE ROW (clickable) */
.klienti-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    padding: 12px 10px;
    border-bottom: 1px solid #eee;
    background: #fff;
    transition: 0.2s ease;
    cursor: pointer;
    border-radius: 6px;
}

/* Hover effect */
.klienti-row:hover {
    background: #f0eaff; /* soft purple */
}

/* Keep text aligned nicely */
.klienti-row span,
.klienti-header span {
    display: flex;
    align-items: center;
    font-size: 15px;
}

/* Wrapper for file row content */
.doc-form__file-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Hide default ugly file input */
.doc-form__file {
    display: none;
}

/* Custom file button */
.file-upload-label {
    display: inline-block;
    padding: 8px 16px;
    background: #6c4ab6;
    color: #fff;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.2s ease;
    white-space: nowrap;
}

.file-upload-label:hover {
    background: #593aa1;
}

/* Selected file name text */
#selected-file-name {
    font-size: 14px;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 280px; /* adjust if needed */
}
.file-btn {
    background: #008CBA !important;   /* your custom color */
    border-color: #008CBA !important;
}

.file-btn:hover {
    background: #0079A3 !important;
    border-color: #0079A3 !important;
}
.negative-cell {
    background: #ff8a8a !important;
    color: #900 !important;
    font-weight: bold;
}
.walk-controls{
  display:flex; gap:12px; align-items:center; margin:14px 0 6px; flex-wrap:wrap;
  position: relative;
}
.walk-controls select{
  padding:12px 14px;
  border-radius:12px;
  border:1px solid #ddd;
  min-width: 240px;
  background:#fff;
  cursor:pointer;
}

.debug-box{
	display:none;
  margin:0 0 14px;
  padding:10px 12px;
  border:1px solid #eee;
  background:#f7f7ff;
  border-radius:12px;
  font-size:14px;
}

.walk-table-wrap{ overflow:auto; border-radius:14px; border:1px solid #eee; background:#fff; }
.walk-table{ border-collapse:collapse; width:max-content; min-width:100%; }
.walk-table th, .walk-table td{ border:1px solid #eee; padding:6px 8px; text-align:center; }

.walk-table th.sticky, .walk-table td.sticky{ position:sticky; left:0; background:#fff; z-index:3; }
.walk-table th.sticky2, .walk-table td.sticky2{ position:sticky; left:180px; background:#fff; z-index:3; }

.walk-name{ min-width:180px; text-align:left; }
.walk-surname{ min-width:180px; text-align:left; }

.walk-table td.day-cell{ width:26px; height:26px; cursor:pointer; user-select:none; font-weight:800; }
.walk-table td.day-cell.active{ background:#39b54a !important; color:#fff !important; }
.walk-table td.day-cell:hover{ outline:2px solid rgba(0,0,0,.08); }

.chart-box{ margin-top:18px; padding:14px; border:1px solid #eee; border-radius:14px; background:#fff; }

/* only icon look */
.walk-table td.day-cell .mark-x{ color:#d11; font-weight:900; }
.walk-table td.day-cell .mark-check{ font-weight:900; }

/* locked cursor */
.walk-table td.day-cell.locked{ cursor:not-allowed; opacity:0.92; }

/* a bit darker weekend columns */
.walk-table th.weekend,
.walk-table td.weekend{
  background: rgba(0,0,0,0.11);
}
/* if locked + weekend, slightly darker */
.walk-table td.locked.weekend{
  background: rgba(0,0,0,0.10);
}



.menu-btn {
padding: 7px 14px;
    background: #003b89;
    color: white;
    font-size: 14px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: 0.2s;
}

.menu-btn.active {
    background: #5c7fad;
    color: white;
}

.shift-toolbar{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:12px 0}
.shift-btn{padding:8px 12px;border:1px solid #bbb;border-radius:10px;background:#fff;cursor:pointer;font-weight:700}
.shift-btn.active{border-color:#6a35ff;box-shadow:0 0 0 2px rgba(106,53,255,.15)}
.shift-input{padding:8px 10px;border:1px solid #bbb;border-radius:10px;max-width:120px}
.small-note{font-size:12px;opacity:.75}
.day-cell{user-select:none}
.day-cell .cell-text{font-weight:700;font-size:13px}
.day-cell.locked{opacity:.55;pointer-events:none}
.day-cell.painting{outline:2px solid rgba(106,53,255,.35)}
/* ✅ important for touch drag */
#workTable{touch-action:none}

/* STANDARD state */
.shift-btn.btn-delete {
    background-color: #fff;
    color: #e74c3c;
    border: 1px solid #e74c3c;
}

/* HOVER state */
.shift-btn.btn-delete:hover {
    background-color: #e74c3c;
    color: #fff;
}

/* STANDARD state */
.shift-btn.btn-save {
    background-color: #fff;
    color: #2ecc71;
    border: 1px solid #2ecc71;
}

/* HOVER state */
.shift-btn.btn-save:hover {
    background-color: #2ecc71;
    color: #fff;
}
th.holiday,
td.day-cell.holiday{
  background: #ffe5e5 !important;
}

/* ✅ Horizontal header text, wrapped into TWO rows */
th.vhead{
  writing-mode: horizontal-tb;
  transform: none;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
  text-align: center;
  vertical-align: middle;
  padding: 6px 6px;
  min-width: 70px;
  max-width: 90px;
  line-height: 1.2;
}

th.nrcol, td.nrcol{
  text-align:center;
  min-width: 38px;
}

/* ✅ ALWAYS black text in cells */
td.day-cell,
td.day-cell .cell-text{
  color: #000 !important;
}

/* ✅ Remove any “active” background (only A/S get color) */
td.day-cell.active{
  background: transparent;
}

/* ✅ Shift colors */
td.day-cell.shift-s{
  background: #fff3b0 !important; /* yellow */
}

td.day-cell.shift-a{
  background: #d9ecff !important; /* light blue */
}
/* Color the row by coloring ALL TDs (works even if table styles ignore TR background) */
.finance-table tbody tr.row-bg-lightblue td{
    background-color: rgba(126, 203, 255, 0.22) !important; /* light blue */
}
.finance-table tbody tr.row-bg-blue td{
    background-color: rgba(196, 164, 132, 0.4) !important; /* blue */
}
.finance-table tbody tr.row-bg-lightgreen td{
    background-color: #93C572 !important; /* blue */
}
/* ✅ Outer border only (whole row) */
.finance-table tbody tr.row-border-multiapg{
    outline: 1px solid rgba(255, 140, 0, 0.75);
    outline-offset: -2px; /* keeps it tight on the row edge */
}

/* scroll container */
.finance-table-wrap{
  max-height: 70vh;          /* choose height */
  overflow: auto;
}

/* sticky header */
#finance-table thead th{
  position: sticky;
  top: 50px;
  z-index: 5;
  background: #fff;          /* IMPORTANT so rows don't show through */
}
.wrap { max-width: 1000px; margin: 24px auto; padding: 12px; }
.grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .grid { grid-template-columns: 1fr 1fr; } }
.card { border:1px solid #ddd; border-radius:12px; padding:16px; }
.row { display:flex; gap:10px; flex-wrap:wrap; align-items:center; }
.small-note { color:#666; font-size:13px; }
.error-note { color:#b00020; font-size:13px; }
.doughnut-wrap { max-width: 520px; margin: 0 auto; }

.lv-month { display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
select.lv-select {
  padding:8px 10px;
  border:1px solid #ccc;
  border-radius:10px;
  background:#fff;
}

/* ✅ Hide Amats toggle (inline + smaller checkbox) */
.toggle-amats{
  display:inline-flex;
  align-items:center;
  gap:8px;
  user-select:none;
  cursor:pointer;
  font-size:14px;
  font-weight:600;
  line-height:1;
}

.toggle-amats input[type="checkbox"]{
  width:16px!important;
  height:16px;
  margin:0;
  vertical-align:middle;
  transform: scale(0.9);      /* makes it smaller even if browser renders it big */
  transform-origin:left center;
}
/* percent column */
.fin-percent-cell{ white-space:nowrap; }
.fin-percent-text{ line-height:1.8; font-weight:600; font-size:14px; }

/* radio column */
.fin-radio-cell{
  display:flex;
  flex-direction:column;
  gap:12px;
}

/* label wrapper */
.fin-radio-wrap{
  position:relative;
  display:inline-flex;
  align-items:center;
  cursor:pointer;
  line-height:1;
}

/* ✅ IMPORTANT: remove input from layout and kill global styles */
.fin-radio-wrap > input.fin-radio{
  position:absolute !important;
  left:-9999px !important;
  top:auto !important;
  width:1px !important;
  height:1px !important;
  padding:0 !important;
  margin:0 !important;
  border:0 !important;
  outline:0 !important;
  box-shadow:none !important;
  background:transparent !important;
  appearance:none !important;
  -webkit-appearance:none !important;
}

/* custom radio size */
.fin-radio-ui{
  width:12px !important;
  height:12px !important;
  border:2px solid #0b4aa2;
  border-radius:50%;
  background:#fff;
  box-sizing:border-box;
  display:inline-block;
  position:relative;
}

/* checked dot */
.fin-radio:checked + .fin-radio-ui::after{
  content:"";
  width:6px;
  height:6px;
  background:#0b4aa2;
  border-radius:50%;
  position:absolute;
  top:50%;
  left:50%;
  transform:translate(-50%,-50%);
}
