* {
  box-sizing: border-box;
}


*{
  margin:0px;
  padding:0px;
}

h1{
  margin:0px;
  padding:20px;
  font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-weight: 800;
  color:rgb(239, 53, 227);
  text-align: center;
}

body{
    xbackground: rgb(170, 207, 237);
    
    color: rgb(207, 234, 207);
    font-family: Tahoma, Geneva, sans-serif;

    font-size: 12px;
    font-weight: normal;
    line-height: 1.1em;
    margin-left: 5px;
    margin-right: 5px;
}

label{
    display: block;
}


.container{
    width:100%;
    margin:auto;
    
}

.button_2 {
    background-color: #4CAF50; /* Green */
    border: none;
    color: white;
    padding: 15px 32px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
  }

.box-1{
    background-color:rgb(234, 228, 225); 
    color: black;

    border-top:1px blue solid;
    border-bottom:1px blue solid;
    border-left:1px blue solid;
    border-right:1px blue solid;
    border-collapse: collapse;

    margin-bottom: 0px;
}


table{
  border-collapse: collapse;
  caption-side: bottom;

}

.table-row-main{
    color: blue;
}



.table-row-basic{
    color: green;
    line-height: 1.9em;
}


.table-row-3{
    color: purple;
}

.table-row-4{
    color: rgb(93, 20, 239);
}

.table-cell-1{
    border-top:1px rgb(86, 180, 244) solid;
    border-bottom:1px rgb(86, 180, 244) solid;
    border-left:1px rgb(86, 180, 244) solid;
    border-right:1px rgb(86, 180, 244) solid;

    padding-top:1px;
    padding-bottom:1px;
    padding-left:2px;
    padding-right:2px;

    line-height:100%;
    color: rgb(60, 60, 255);
    color: rgb(60, 60, 2);
    vertical-align: top;
}

.table-cell-special-1{
    border-top:1px rgb(86, 180, 244) solid;
    border-bottom:1px rgb(86, 180, 244) solid;
    border-left:1px rgb(86, 180, 244) solid;
    border-right:1px rgb(86, 180, 244) solid;

    padding-top:1px;
    padding-bottom:1px;
    padding-left:2px;
    padding-right:2px;
    color:rgb(0, 0, 255);
    font-weight:400;
    font-size: 1.0em;
}

.table-cell-special-2{
    border-top:1px rgb(86, 180, 244) solid;
    border-bottom:1px rgb(86, 180, 244) solid;
    border-left:1px rgb(86, 180, 244) solid;
    border-right:1px rgb(86, 180, 244) solid;

    padding-top:1px;
    padding-bottom:1px;
    padding-left:2px;
    padding-right:2px;
    color:darkmagenta;

    font-weight:600;
    font-size: 1.4em;
    
}

    caption{
    color: red;
    font-size: 1em;
    margin-top: 0px;
    padding-top: 0px;
    text-align: left;
}

/* Removed from muster management page */
body {
    font-family: Arial, sans-serif;
    margin: 20px;
}
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}
th, td {
    border: 1px solid #ccc;
    padding: 10px;
    text-align: left;
}
th {
    background-color: #f2f2f2;
}
button {
    padding: 10px 20px;
    background-color: #1c87c9;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}
button:hover {
    background-color: lightgreen; /* Change background color on hover */
    transition: 0.1s;
}

button.link_button:disabled,
.link_button:disabled {
    background-color: #bdbdbd;
    color: #f5f5f5;
    cursor: not-allowed;
    opacity: 0.8;
}

@media print {
    * {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

.filter-box-heading {
    font-weight: 800;
    font-size: 1.15em;
    color: #007bff;
    margin-bottom: 6px;
}

.info-icon[data-tooltip] {
    position: relative;
    outline: none;
}

.info-icon[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 10px);
    transform: translateX(-50%) translateY(2px);
    background: rgba(51, 65, 85, 0.96);
    color: #fff;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.35;
    width: max-content;
    max-width: min(420px, 80vw);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.18);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 120ms ease, transform 120ms ease, visibility 120ms ease;
    z-index: 2000;
}

.info-icon[data-tooltip]::before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: calc(100% + 4px);
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: rgba(51, 65, 85, 0.96) transparent transparent transparent;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 120ms ease, visibility 120ms ease;
    z-index: 2000;
}

.info-icon[data-tooltip]:hover::after,
.info-icon[data-tooltip]:focus::after,
.info-icon[data-tooltip]:hover::before,
.info-icon[data-tooltip]:focus::before {
    opacity: 1;
    visibility: visible;
}

.info-icon[data-tooltip]:hover::after,
.info-icon[data-tooltip]:focus::after {
    transform: translateX(-50%) translateY(0);
}

.hm-buttonbar-box {
    border: 1px solid rgba(0,0,0,0.18);
    border-radius: 10px;
    padding: 12px 14px;
    background: rgba(255, 247, 204, 0.95);
    margin-top: 10px;
    margin-bottom: 16px;
}

.hm-buttonbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-start;
    align-items: center;
}

.button-box-standard {
    border: 1px solid rgba(0,0,0,0.2);
    border-radius: 10px;
    padding: 12px 14px;
    background: rgba(255,255,255,0.95);
    margin-top: 10px;
    margin-bottom: 16px;
}

.button-box-blue-buttons button,
.button-box-blue-buttons .link_button {
    padding: 10px 20px;
    background-color: #1c87c9;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.button-box-blue-buttons button:hover,
.button-box-blue-buttons .link_button:hover {
    background-color: lightgreen;
    transition: 0.1s;
}

.tag-number-cell {
    font-weight: 900;
    font-size: 1.4em;
    color: rgb(17, 78, 245);
}

.consignment-box,
.consignment-details-box-standard {
    border: 1px solid rgba(0,0,0,0.2);
    border-radius: 10px;
    padding: 12px 14px;
    background: rgba(255,255,255,0.95);
    background-color: rgba(255,255,255,0.95) !important;
    margin-top: 10px;
    margin-bottom: 16px;
    color: #333 !important;
}

.consignment-box table,
.consignment-details-box-standard table {
    width: 100%;
    border-collapse: collapse;
    background-color: transparent !important;
}

.consignment-box td,
.consignment-details-box-standard td {
    padding: 3px 6px;
    vertical-align: top;
    background-color: transparent !important;
    color: #333 !important;
}

.consignment-box td:first-child,
.consignment-details-box-standard td:first-child {
    font-weight: 800;
    width: 180px;
}

.consignment-details-box-2 {
    border: 1px solid rgba(0,0,0,0.2);
    border-radius: 10px;
    padding: 12px 14px;
    background: rgba(255,255,255,0.95);
    background-color: rgba(255,255,255,0.95) !important;
    margin-top: 10px;
    margin-bottom: 16px;
    color: purple !important;
    font-size: 12px;
    line-height: 1.6em;
}

.consignment-details-box-2 table {
    width: 100%;
    border-collapse: collapse;
    background-color: transparent !important;
}

.consignment-details-box-2 td {
    padding: 3px 6px;
    vertical-align: top;
    background-color: transparent !important;
    color: purple !important;
    line-height: 1.6em;
}

.consignment-details-box-2 td:first-child {
    font-weight: 800;
    width: 180px;
}

@media print {
    body {
        background: none !important;
        background-color: #fff !important;
    }
}

/* Tighter line spacing for muster management table */
table.muster-table {
    margin-bottom: 15px;
}

table.muster-table th, 
table.muster-table td {
    padding: 5px 8px;
    line-height: 1.2;
}

table.muster-table tr {
    height: auto;
}

/* Keep buttons properly spaced */
.action-buttons {
    margin-top: 5px;
    margin-bottom: 5px;
}

/* Make sure form elements are compact */
.form-group {
    margin-bottom: 10px;
}

label {
    margin-bottom: 3px;
}

input, textarea, select {
    padding: 5px;
    line-height: 1.2;
}

.name-used-overlay {
    display: flex;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}
.name-used-box {
    background: #fff;
    color: #111;
    border-radius: 10px;
    width: min(520px, 95vw);
    padding: 14px 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}
.name-used-title {
    font-weight: 800;
    font-size: 1.15em;
    margin-bottom: 10px;
    color: #0f2744;
}
.name-used-box p {
    margin: 0;
    line-height: 1.45;
}
.name-used-actions {
    margin-top: 14px;
    text-align: right;
}
.name-used-actions button {
    background: #1c87c9;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 8px 18px;
    cursor: pointer;
    font-weight: 700;
}

.tag-cell-prominent {
    font-size: 1.6em;
    font-weight: 800;
    color: #0b1f4d;
}
