* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}
a {
    text-decoration: none;
}

:root {
    --license-bg: #f5f5f5;
    --license-detail-bg: #fff;
    --license-secondary-color: #555555;
    --license-description-p: #555555;
    --license-btn: #272d6b;
    --license-bottom-border: #e4e4e4;
    --license-primary-color: #2d2d2e;
    --cell-content-secondary: #272d6b;
    --license-description-h1: #272d6b;
    --license-table-border: #e4e4e4;
    --license-table-th: #f5f5f5;
    --license-card-btn: #f8f8ff;
    --license-select-bg: #fff;
    --license-grid-disable: #b5b5b5;
}

body.dark {
    --license-bg: #181d23;
    --license-detail-bg: #353b47;
    --license-primary-color: #fff;
    --license-secondary-color: #6d809f;
    --license-bottom-border: #232733;
    --license-btn: #1c7db0;
    --cell-content-secondary: #fff;
    --license-description-p: #fff;
    --license-description-h1: #fff;
    --license-table-border: #3f4653;
    --license-table-th: #232733;
    --license-card-btn: #232733;
    --license-select-bg: #232733;
    --license-grid-disable: #50596b;
}

.license-main-section {
    width: 100%;
    min-height: 100vh;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--license-bg);
    padding: 100px 20px 20px 20px;
}

.license-content-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    border-radius: 20px;
}
.map-image-wrapper {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.map-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

.license-details-wrapper {
    width: 100%;
    background: var(--license-detail-bg);
    height: 100%;
    border-radius: 20px;
    border-top-left-radius: 0px;
    border-top-right-radius: 0px;
    padding-bottom: 20px;
}

.license-header-section {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    padding: 0.8rem 2rem;
    border-bottom: 1px solid var(--license-bottom-border);
}

.license-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 1rem;
}

.license-header-left {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    position: relative;
}

.license-header-left-img {
    position: absolute;
    width: 100%;
    max-width: 120px;
    height: 120px;
    left: 0;
    top: -2.8rem;
}
.license-header-left-img img {
    width: 100%;
    height: 100%;
    border-radius: 20px;
}

.license-header-left h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--license-primary-color);
    padding-left: 130px;
}

.license-header-left p {
    font-size: 1rem;
    font-weight: 400;
    color: var(--license-secondary-color);
    padding-left: 130px;
    display: block;
}

.license-header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.license-header-right button {
    background: var(--license-btn);
    outline: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: none;
    color: #fff;
    font-size: 1rem;
    font-weight: 400;
    white-space: nowrap;
}
.header-right-option {
    display: flex;
    gap: 10px;
}
.header-right-option button {
    display: flex;
    align-items: center;
    gap: 5px;
    border: none;
    background: transparent;
    outline: none;
    padding: none;
    padding: 0;
    margin: 0;
}
.header-right-option button .delete-span {
    color: #ff1e1e;
}

.header-right-option img {
    width: 20px;
    height: 20px;
}
.header-right-option svg {
    stroke: var(--license-btn);
}

.header-right-option span {
    font-size: 20px;
    color: var(--license-btn);
}

.license-header-content {
    padding-top: 40px;
    padding: 0.5rem 0;
    display: flex;
    justify-content: space-between;
    width: 100%;
    flex-wrap: wrap;
    gap: 2rem;
}

.license-header-card {
    text-align: left;
    flex-wrap: wrap;
}

.license-header-card p {
    font-size: 1rem;
    color: var(--license-primary-color);
    padding-bottom: 6px;
}
.license-header-card h1 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--license-secondary-color);
    white-space: wrap;
}
.license-header-card h1.active {
    color: #5ca044;
}
.license-header-card h1.pending {
    color: #ffbf42;
}
.license-header-card h1.rejected {
    color: #ff1e1e;
}

.license-card-section {
    padding: 0.8rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    border-bottom: 1px solid var(--license-bottom-border);
}
.license-card-buttons-wrapper {
    display: flex;
    justify-content: flex-end;
    width: 100%;
}
.license-card-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--license-card-btn);
    border-radius: 10px;
    padding: 0.5rem;
}
.license-card-buttons button {
    padding: 0.6rem 0.8rem;
    border: none;
    background: transparent;
    outline: none;
    color: #a3a3a3;
    font-size: 0.9;
    border-radius: 12px;
}
.license-card-buttons button.active {
    color: #fff;
    background: var(--license-btn);
    font-size: 500;
}

.license-card-section .container-fluid {
    padding: 0;
}

.license-info-card {
    width: 100%;
    border: 1px solid var(--license-bottom-border);
    padding: 1rem;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.8rem;
}
.license-info-card-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 0.5rem;
}
.license-info-card-header img {
    width: 1.5rem;
    height: 1.5rem;
}

.license-info-card-header span {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--license-primary-color);
}

.license-info-card-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}
.license-info-card-content p {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--license-secondary-color);
}

.license-info-card-content h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #5ca044;
}
.license-info-card-content h1.ticketing {
    color: #ffbf42;
}
.license-info-card-content h1.commission {
    color: #3d459c;
}

.license-grid-section {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    padding: 1rem 2rem;
    width: 100%;
    border-bottom: 1px solid var(--license-bottom-border);
}

.license-grid-card {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    border-right: 1px solid var(--license-bottom-border);
    padding: 0 0.5rem;
    justify-content: space-between;
}

.license-grid-card:last-child {
    border-right: none;
}

.license-grid-card-header h1 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--license-primary-color);
    padding: 0;
    margin: 0;
}

.license-grid-card-content {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
}

.license-grid-card-content p {
    font-size: 1rem;
    color: var(--license-secondary-color);
}

.license-grid-card-content h5 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--license-secondary-color);
}
.last-card .license-grid-card-header h1,
.last-card .license-grid-card-content h5,
.last-card .license-grid-card-content p {
    color: var(--license-grid-disable);
}

.license-description-section {
    padding: 1rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    width: 100%;
    border-bottom: 1px solid var(--license-bottom-border);
    flex-wrap: wrap;
}
@media (max-width: 1200px) {
    .license-grid-section {
        grid-template-columns: repeat(3, 1fr);
    }
    .license-grid-card:nth-child(3) {
        border-right: none;
    }
}

@media (max-width: 992px) {
    .license-grid-section {
        grid-template-columns: repeat(2, 1fr);
    }
    .license-grid-card:nth-child(3) {
        border-right: 1px solid var(--license-bottom-border);
    }
    .license-grid-card:nth-child(2),
    .license-grid-card:nth-child(4) {
        border-right: none;
    }
}

@media (max-width: 768px) {
    .license-grid-section {
        grid-template-columns: 1fr;
    }
    .license-grid-card {
        align-items: center;
        border-right: none;
        border-bottom: 1px solid var(--license-bottom-border);
        padding-bottom: 10px;
    }
    .license-grid-card:last-child {
        border-bottom: none;
    }
    .license-grid-card:nth-child(3) {
        border-right: none;
    }
}
@media screen and (max-width: 400px) {
    .license-header-right {
        flex-direction: column;
        width: fit-content !important;
    }
}
.license-description-section h1 {
    color: var(--license-description-h1);
    font-size: 1.2rem;
    font-weight: 600;
    padding: 0;
    margin: 0;
}

.license-description-section p {
    color: var(--license-description-p);
    font-size: 1rem;
    font-weight: 400;
}

.license-table-section {
    padding: 1rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    width: 100%;
}
.license-table-header {
    display: flex;
    justify-content: space-between;
    gap: 0.8rem;
    align-items: center;
    width: 100%;
}

.license-table-section h1 {
    color: var(--license-primary-color);
    font-size: 1.2rem;
    font-weight: 600;
}

.license-table-header-right {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    width: 100%;
    max-width: 350px;
}

.license-table-select {
    display: flex;
    flex-grow: 1;
    position: relative;
}
.license-table-select select {
    appearance: none;
    width: 100%;
    padding: 0rem 1rem;
    border: 1px solid var(--license-table-border);
    border-radius: 14px;
    outline: none;
    height: 50px;
    font-size: 1rem;
    color: var(--license-secondary-color);
    background: var(--license-select-bg);
}

.license-table-select svg {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 1rem;
    stroke: var(--license-secondary-color);
    pointer-events: none;
}

.license-table-download button {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    border: none;
    margin: 0;
    padding: 0;
    outline: none;
    background: transparent;
}
.license-table-download img {
    width: 1.1rem;
    height: 1.1rem;
}
.license-table-download span {
    font-size: 1rem;
    font-weight: 600;
    color: #1c7db0;
}

.license-table {
    overflow-x: auto;
    border-radius: 10px;
    border: 1px solid var(--license-table-border);
}

.license-table table {
    width: 100%;
    border-collapse: collapse;
}

.license-table th,
.license-table td {
    min-width: 150px;
    min-height: 50px;
    padding: 15px;
    text-align: left;
    font-size: 1rem;
    color: #2d2d2e;
    transition: background-color 0.3s ease;
    color: var(--license-primary-color);
}

.license-table tr {
    border-bottom: 1px solid var(--license-table-border);
}

.license-table tr:last-child {
    border-bottom: none;
}

.license-table th {
    background-color: var(--license-table-th);
    font-weight: 600;
    color: var(--license-primary-color);
    font-size: 1rem;
}

.cell-content-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 2.5rem;
}

.table-status {
    font-size: 1rem;
    color: #5ca044;
}

.cell-content {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.cell-content-primary button,
.cell-content-secondary button {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    border: none;
    outline: none;
    background: transparent;
    padding: 0;
    margin: 0;
}
.cell-content-primary img {
    width: 1rem;
    height: 1rem;
}
.cell-content-primary span {
    font-size: 1rem;
    color: #1c7db0;
    white-space: nowrap;
}

.cell-content-secondary svg {
    stroke: var(--cell-content-secondary);
}
.cell-content-secondary span {
    font-size: 1rem;
    color: var(--cell-content-secondary);
    white-space: nowrap;
}
.cell-content-secondary span a {
    color: var(--cell-content-secondary);
}

@media (max-width: 840px) {
    .license-header {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 2.2rem;
    }
    .license-header-right {
        display: flex;
        align-items: center;
        gap: 16px;
        justify-content: space-between;
    }
}

@media (max-width: 576px) {
    .license-main-section {
        padding: 100px 10px 20px 10px;
    }

    .license-description-section,
    .license-table-section,
    .license-card-section {
        padding: 0.8rem 1rem;
    }
    .license-header-section {
        display: flex;
        flex-direction: column;
        gap: 3rem;
        padding: 0.8rem 1rem;
    }

    .license-header {
        gap: 1.8rem;
    }
    .license-table-header {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .license-table-header-right {
        width: 100%;
        max-width: 100%;
    }

    .license-header-right button {
        padding: 0.3rem 0.6rem;
        font-size: 0.9rem;
    }

    .license-header-left-img {
        width: 100%;
        max-width: 100px;
        height: 100px;
    }

    .license-header-left h1 {
        font-size: 1.3rem;
        padding-left: 110px;
    }

    .license-header-left p {
        font-size: 0.9rem;
        padding-left: 110px;
        word-break: break-all;
    }
    .header-right-option button {
        padding: 0;
        margin: 0;
    }
    .header-right-option img {
        width: 1.1rem;
        height: 1.1rem;
    }
    .license-header-right {
        width: 100%;
        justify-content: space-between;
    }

    .header-right-option span {
        font-size: 1.1rem;
    }
}
@media (max-width: 450px) {
    .license-header-right {
        flex-direction: column;
        align-items: start;
    }
}
.card-detail-sec{
    display: flex;
    align-items: center;
    justify-content: space-between;
}