/*
:root {
    --clr-primary: #81d4fa;
    --clr-primary-light: #e1f5fe;
    --clr-primary-dark: #4fc3f7;
    --clr-gray100: #f9fbff;
    --clr-gray150: #f4f6fb;
    --clr-gray200: #eef1f6;
    --clr-gray300: #e1e5ee;
    --clr-gray400: #767b91;
    --clr-gray500: #4f546c;
    --clr-gray600: #2a324b;
    --clr-gray700: #161d34;
    --clr-submitted-another: #ffcdd2;
    --clr-submitted-another-font: #c62828;
    --clr-submitted: #c8e6c9;
    --clr-submitted-font: #388e3c;
    --clr-link: #2962ff;
    --radius: 0.2rem;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Mukta, sans-serif;
    color: #3e4357;
    font-size: 1rem;
    background-color: var(--clr-gray100);
    padding: 20px;
}

.container {
    max-width: 1700px;
    min-width: 1600px;
    margin: 0 auto;
    padding: 20px;
}

.last-update {
    text-align: right;
}

table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    margin-top: 20px;
}

.header {
    text-align: center;
}

.header h1 {
    font-size: 1.5rem;
    margin: 0;
    word-wrap: break-word;
}

.header {
    font-size: 1rem;
    margin: 10px 0 30px;
}

table thead {
    box-shadow: 0 5px 10px var(--clr-gray300);
    position: sticky;
    top: 0;
    background-color: white;
    z-index: 1;
}

tbody::before {
    content: "";
    display: block;
    height: 10px;
}

table th, table td {
    padding: 1rem;
    text-align: center;
}

table th {
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    font-size: 0.7rem;
    white-space: nowrap;
}

table td {
    font-size: 0.9rem;
}

table a {
    text-decoration: none;
    color: var(--clr-link);
}

table a:hover {
    text-decoration: underline;
}

table .status-submitted, table .status-submitted-another {
    display: inline-block;
    border-radius: var(--radius);
    padding: 0.2rem 1rem;
    margin: 0.2rem 0;
    word-wrap: break-word;
}

table .status-submitted {
    background-color: var(--clr-submitted);
    color: var(--clr-submitted-font);
}

table .status-submitted-another {
    background-color: var(--clr-submitted-another);
    color: var(--clr-submitted-another-font);
}

table tr:nth-child(even) {
    background-color: var(--clr-gray150);
}

#applications td:nth-child(1), #applications td:nth-child(2), #applications td:nth-child(3),
td:nth-child(11), td:nth-child(12) {
    max-width: 60px;
}

table ul {
    list-style-type: none;
}

.submitted {
    position: relative;
    vertical-align: top;
}

.submitted::before {
    content: "";
    position: absolute;
    left: -1rem;
    top: 0.5rem;
    width: 0.5rem;
    height: 0.5rem;
    background-color: green;
    border-radius: 50%;
}

.back-button {
    padding: 10px 20px;
    background-color: var(--clr-primary);
    color: var(--clr-gray700);
    text-decoration: none;
    border-radius: var(--radius);
    border: 1px solid var(--clr-primary-dark);
    font-size: 1rem;
    font-weight: 600;
    display: inline-block;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.back-button:hover {
    background-color: var(--clr-primary-dark);
    border-color: var(--clr-primary-light);
    color: var(--clr-gray100);
    cursor: pointer;
}

#column-type {
    padding: 0 2rem;
}

#applications td:last-child {
    text-align: left;
}

.header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#designations {
    text-decoration: underline;
    color: var(--clr-link);
}

#info {
    margin-bottom: 50px;
}

#applications td:nth-child(4) {
    max-width: 50px;
}
*/

:root {
    --clr-primary: #81d4fa;
    --clr-primary-light: #e1f5fe;
    --clr-primary-dark: #4fc3f7;
    --clr-gray100: #f9fbff;
    --clr-gray150: #f4f6fb;
    --clr-gray200: #eef1f6;
    --clr-gray300: #e1e5ee;
    --clr-gray400: #767b91;
    --clr-gray500: #4f546c;
    --clr-gray600: #2a324b;
    --clr-gray700: #161d34;
    --clr-submitted-another: #ffcdd2;
    --clr-submitted-another-font: #c62828;
    --clr-submitted: #c8e6c9;
    --clr-submitted-font: #388e3c;
    --clr-link: #2962ff;
    --radius: 0.2rem;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Mukta, sans-serif;
    color: #3e4357;
    font-size: 1rem;
    background-color: var(--clr-gray100);
    padding: 20px;
}

.container {
    max-width: 1700px;
    min-width: 1600px;
    margin: 0 auto;
    padding: 20px;
}

.last-update {
    text-align: right;
}

table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    margin-top: 20px;
}

.header {
    text-align: center;
}

.header h1 {
    font-size: 1.5rem;
    margin: 0;
    word-wrap: break-word;
}

.header {
    font-size: 1rem;
    margin: 10px 0 30px;
}

table thead {
    box-shadow: 0 5px 10px var(--clr-gray300);
    position: sticky;
    top: 0;
    background-color: white;
    z-index: 1;
}

tbody::before {
    content: "";
    display: block;
    height: 10px;
}

table th, table td {
    padding: 1rem;
    text-align: center;
}

table th {
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    font-size: 0.7rem;
    white-space: nowrap;
}

table td {
    font-size: 0.9rem;
}

table a {
    text-decoration: none;
    color: var(--clr-link);
}

table a:hover {
    text-decoration: underline;
}

.status-submitted {
    display: inline-block;
    border-radius: var(--radius);
    padding: 0.2rem 1rem;
    margin: 0.2rem 0;
    word-wrap: break-word;
    height: 56px;
    width: 120px;
}

.highest-priority {
    background-color: var(--clr-submitted);
    color: var(--clr-submitted-font);
}

.low-priority {
    color: #a68b00;
    background-color: #fff0c2;
}

.submitted-another {
    color: #c62828;
    background-color: #ffcdd2;
}

table tr:nth-child(even) {
    background-color: var(--clr-gray150);
}

#applications td:nth-child(1), #applications td:nth-child(2), #applications td:nth-child(3),
td:nth-child(11), td:nth-child(12) {
    max-width: 60px;
}

table ul {
    list-style-type: none;
}

.submitted {
    position: relative;
    vertical-align: top;
}

.submitted::before {
    content: "";
    position: absolute;
    left: -1rem;
    top: 0.5rem;
    width: 0.5rem;
    height: 0.5rem;
    background-color: green;
    border-radius: 50%;
}

#column-type {
    padding: 0 2rem;
}

.header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#designations {
    text-decoration: underline;
    color: var(--clr-link);
}

#info {
    margin-bottom: 50px;
}

#applications td:nth-child(4){
    max-width: 50px;
}

.details-modal {
    background: #ffffff;
    border-radius: 0.5em;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    left: 50%;
    max-width: 90%;
    position: fixed;
    top: 50%;
    transform: translate(-50%, -50%);
    text-align: left;
    max-height: 90vh;
    display: none;
    flex-direction: column;
    z-index: 1001;
}

.details-modal-close {
    align-items: center;
    color: #111827;
    display: flex;
    height: 4.5em;
    justify-content: center;
    position: absolute;
    right: 0;
    top: 0;
    width: 4.5em;
    cursor: pointer;
    background: none;
    border: none;
    z-index: 1002;
}

.details-modal-close svg {
  display: block;
}

.details-modal-title {
  color: #111827;
  padding: 1.5em 2.5em;
  position: relative;
  width: calc(100% - 4.5em);
}

.details-modal-title h1 {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: normal;
}

.details-modal-content {
  border-top: 1px solid #e0e0e0;
  padding: 1.5em 2.5em;
  overflow: auto;
}

.details-modal-content ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.details-modal-content li {
  margin-bottom: 0.3em;
}

.close-icon {
    z-index: 1001;
}

.details-modal-overlay {
    transition: opacity 0.2s ease-out;
    background: rgba(15, 23, 42, 0.8);
    position: fixed;
    opacity: 0;
    bottom: 0;
    right: 0;
    left: 0;
    top: 0;
    z-index: 1000;
    pointer-events: none;
}

details[open] .details-modal-overlay {
  pointer-events: all;
  opacity: 0.5;
}

details[open] .details-modal {
    display: flex;
}

details summary {
    list-style: none;
}

details summary:focus {
    outline: none;
}

details summary::-webkit-details-marker {
    display: none;
}

.container > h1 {
  font-weight: 700;
  font-size: 2rem;
  line-height: normal;
  color: #111827;
}

.container > p {
  margin-top: 2em;
  margin-bottom: 2em;
}

.container sup {
  font-size: 1rem;
  margin-left: 0.25em;
  opacity: 0.5;
  position: relative;
}

.close-icon {
    width: 14px;
    height: 14px;
}

ul li {
    list-style-type: none;
}

a {
    text-decoration: none;
    color: var(--clr-link);
}

a:hover {
    text-decoration: underline;
}

.button {
    background: none;
    color: #2962ff;
    cursor: pointer;
    display: inline;
    padding: 0;
    border: none;
    font: inherit;
}

.button:hover {
    color: #2962ff;
    text-decoration: underline;
}

