html { font-family: "Segoe UI", Arial, sans-serif; }

body {display: flex; justify-content: center; }
/* Centers horizontally */

textarea { color: #400000 ;background-color: transparent; }

input:focus, textarea:focus {
      border: 2px solid #0d6efd; /* Bootstrap primary color */
      outline: none; /* Remove default outline */
      box-shadow: 0 0 5px rgba(13, 110, 253, 0.5); /* Optional shadow */
}

select {
    line-height: 1.8rem;
    height: 1.8rem;
}

/* Stronger blue for select and date pickers */
select:focus,
input[type="date"]:focus,
input[type="datetime-local"]:focus {
    border: 2px solid #0c3c90; /* darker blue */
    box-shadow: 0 0 8px rgba(0, 65, 168, 0.8);
    outline: none;
}

input { border: 2px solid black; color: #400000 ;background-color: transparent }
/*table.center { margin-left: 5px; margin-right: 5px; }
table.form-table { width: 100%;}
*/
table.outer {
    max-width: 400px; /* upper limit */
    width: 100%; /* shrink on mobile */
    table-layout: fixed; /* prevents expansion */
    border: 1px solid #444;
}

table.inner {
    width: 100%; /* fills the outer table cell */
    border: 1px solid #999;
}


td {padding-top: 5px; font-size: 14px; }
td.center {margin-left: 5px; margin-right: 5px; padding-top: 5px; padding-bottom: 5px; text-align:center;}
td.left {margin-left: 5px; margin-left: 50px; padding-top: 5px; padding-bottom: 5px; text-align:left; color:blue}

button { background-color: blue; color: white; padding: 3px 10px; width:200px; text-align: center; font-size: 13px; border-radius: 12px; }

label.bold { font-weight: bold; font-size: 18px}
label.boldlg { font-weight: bold; font-size: 20px}
label.lg { font-size: 20px}
label.ital { font-style: italic }
/* When BOTH classes are applied */
label.bold.ital { font-weight: 700; font-size: 14px; } /* slightly less bold */



button.small, a.small {
    background-color: blue;
    color: white;
    padding: 3px 10px 3px 10px;
    width: 100px;
    text-align: center;
    font-size: 13px;
    border-radius: 12px;
    display: inline-block; /* important for <a> */
    text-decoration: none; /* remove underline */
}

button.trash {
    background-color: blue;
    color: white;
    padding: 3px 10px 3px 10px;
    width: 50px;
    text-align: center;
    font-size: 13px;
    border-radius: 12px;
    display: inline-block; /* important for <a> */
    text-decoration: none; /* remove underline */
}
span.small { /* mimic disabled button */
    background-color: blue;
    color: white;
    padding: 3px 10px 3px 10px;
    width: 100px;
    text-align: center;
    font-size: 13px;
    border-radius: 12px;
    display: inline-block; /* important for <a> */
    text-decoration: none; /* remove underline */
    opacity: 0.4;
    cursor: default;
}


button.long { background-color: blue; color: white; padding: 1px 10px 1px 10px; width:200px; text-align: center; font-size: 12px; border-radius: 12px; }


label { font-size: 11pt; font-weight: normal; }
label.bold { font-size: 12pt; font-weight: bold; padding-top: 5px;}
select {  color: #400000 ;background-color: transparent; }
option {  color: #400000 ;background-color: transparent; }
span.title {  font-size: 11pt;  font:bold; color: blue }
/*h5 {padding-top: 5px;}*/
h6 { font-size: 12pt; padding-top: 5px; font:bold; color: blue }

.validation-summary {
    background: #ffebee;
    border: 1px solid #ef9a9a;
    color: #b71c1c;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 4px;
}
.validation-error {
    color: #c62828; /* deep red */
    font-size: 0.9rem;
    margin-top: 2px;
    display: block; /* ensures it appears on its own line */
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
}


tbody.is-cancelled {
    position: relative; /* anchor for absolute overlay */
}

/* Only show overlay if the variable is set */
tbody.is-cancelled::after {
    content: var(--overlay-text);
    position: absolute;
    top: 50%;
    left: 0;
    transform: translate(10%, -50%) rotate(-25deg);
    font-size: 3rem;
    color: rgba(200, 0, 0, 0.25);
    font-weight: bold;
    pointer-events: none;
    white-space: nowrap;
    display: none; /* hidden by default */
    white-space: pre; /* <-- required for line breaks */
}


/* Show overlay only when text is non-empty */
tbody.is-cancelled[style*="--overlay-text"]::after {
    display: block;
}

/* Modal delete dialog */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    min-width: 280px;
    text-align: center;
    max-width: 400px; /* 👈 keeps it small */
    width: 90%; /* 👈 responsive on mobile */
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}

.modal-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem; /* space between buttons */
    margin-top: 1rem;
}
