
/* ==========================================================
   GÖTEBORG MARINE LIVE - SMART FARTYGSKORT
   ========================================================== */

.msmart-vessel {
    cursor: pointer !important;
}

.msmart-vessel:hover {
    color: #a7d8ff !important;
    text-decoration: underline dotted !important;
    text-underline-offset: 3px;
}


/* ==========================================================
   MODAL / FARTYGSDOSSIER
   ========================================================== */

#msmartModal {
    position: fixed;

    inset: 0;

    z-index: 999999;

    display: none;

    align-items: center;
    justify-content: center;

    padding: 16px;

    background:
        rgba(0, 7, 13, .92);

    backdrop-filter:
        blur(5px);
}

#msmartModal.open {
    display: flex;
}


.msmart-window {
    width:
        min(1380px, 97vw);

    max-height:
        96vh;

    overflow-y: auto;

    color: #eef8ff;

    border:
        1px solid
        rgba(72, 183, 255, .30);

    border-radius: 15px;

    background:
        linear-gradient(
            145deg,
            #0c1c29,
            #07131d
        );

    box-shadow:
        0 35px 110px
        rgba(0,0,0,.72);

    font-family: inherit;
}


.msmart-header {
    padding:
        15px
        17px;

    display: flex;

    justify-content:
        space-between;

    align-items:
        flex-start;

    gap: 12px;

    border-bottom:
        1px solid
        rgba(255,255,255,.08);
}


.msmart-kicker {
    color: #708ba3;

    font-size: 9px;

    font-weight: 900;
}


.msmart-name {
    margin-top: 5px;

    color: #6db8ff;

    font-size:
        clamp(27px, 3vw, 46px);

    line-height: 1;

    font-weight: 950;
}


.msmart-close {
    width: 41px;
    height: 41px;

    flex: 0 0 auto;

    border:
        1px solid
        rgba(255,255,255,.13);

    border-radius: 8px;

    background:
        rgba(255,255,255,.04);

    color: #fff;

    font-size: 22px;

    cursor: pointer;
}


.msmart-body {
    padding: 13px;

    display: grid;

    grid-template-columns:
        390px
        minmax(0,1fr);

    gap: 12px;
}


.msmart-card {
    min-width: 0;

    padding: 12px;

    border:
        1px solid
        rgba(255,255,255,.08);

    border-radius: 10px;

    background:
        rgba(255,255,255,.025);
}


.msmart-card-title {
    margin:
        0
        0
        10px;

    color: #59d9ff;

    font-size: 13px;

    font-weight: 900;
}


.msmart-grid {
    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 7px;
}


.msmart-field {
    min-width: 0;

    padding: 7px;

    border-radius: 6px;

    background:
        rgba(255,255,255,.026);
}


.msmart-field span {
    display: block;

    color: #6b859c;

    font-size: 7px;

    font-weight: 900;

    text-transform: uppercase;
}


.msmart-field strong {
    display: block;

    margin-top: 3px;

    overflow-wrap: anywhere;

    color: #f5f9fc;

    font-size: 11px;
}


.msmart-route {
    margin-top: 10px;

    padding: 10px;

    color: #a7bac9;

    border:
        1px solid
        rgba(255,210,50,.14);

    border-radius: 7px;

    background:
        rgba(255,210,50,.035);

    font-size: 9px;

    line-height: 1.55;
}


.msmart-highlight {
    color: #ffd946;
}


.msmart-actions {
    margin-top: 10px;

    display: flex;

    flex-wrap: wrap;

    gap: 6px;
}


.msmart-button {
    min-height: 33px;

    padding:
        0
        9px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    border:
        1px solid
        rgba(255,205,40,.21);

    border-radius: 7px;

    background:
        rgba(255,205,40,.055);

    color: #ffe183;

    text-decoration: none;

    font: inherit;

    font-size: 9px;

    font-weight: 900;

    cursor: pointer;
}


.msmart-button.blue {
    border-color:
        rgba(80,180,255,.22);

    background:
        rgba(80,180,255,.055);

    color: #8dccff;
}


#msmartMap {
    width: 100%;

    height: 520px;

    overflow: hidden;

    border-radius: 8px;

    background: #06111a;
}


.msmart-wait {
    min-height: 360px;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 30px;

    color: #758fa7;

    text-align: center;

    font-size: 13px;
}


/* ==========================================================
   RUTTFÖRKLARING
   ========================================================== */

.msmart-mapnote {
    margin-top: 8px;

    color: #70899f;

    font-size: 8px;

    line-height: 1.4;
}


/* ==========================================================
   LITEN SMART-STATUS
   ========================================================== */

#msmartStatus {
    position: fixed;

    right: 10px;
    bottom: 10px;

    z-index: 9990;

    padding:
        6px
        8px;

    border:
        1px solid
        rgba(80,220,150,.18);

    border-radius: 7px;

    background:
        rgba(5,18,27,.88);

    color: #67e99e;

    font-size: 7px;

    font-weight: 900;

    pointer-events: none;

    opacity: .72;
}


/* ==========================================================
   MOBIL
   ========================================================== */

@media (max-width: 800px) {

    #msmartModal {
        padding: 4px;
    }

    .msmart-window {
        width: 100%;

        max-height: 99vh;
    }

    .msmart-body {
        grid-template-columns:
            1fr;
    }

    .msmart-name {
        font-size: 29px;
    }

    .msmart-field strong {
        font-size: 12px;
    }

    #msmartMap {
        height: 365px;
    }
}


/* MARIN_DOSSIER_MAX_BEGIN */

/* ==========================================================
   FARTYGSDOSSIER MAX
   Nästan hela skärmen och betydligt större text
   ========================================================== */

#msmartModal {
    padding: 8px !important;

    align-items: center !important;
    justify-content: center !important;
}


.msmart-window {
    width: 98vw !important;
    height: 96vh !important;

    max-width: none !important;
    max-height: 96vh !important;

    display: flex !important;
    flex-direction: column !important;

    border-radius: 14px !important;
}


/* ==========================================================
   RUBRIK
   ========================================================== */

.msmart-header {
    flex: 0 0 auto !important;

    padding:
        17px
        22px !important;
}


.msmart-kicker {
    font-size: 11px !important;

    letter-spacing: .3px !important;
}


.msmart-name {
    margin-top: 6px !important;

    font-size:
        clamp(
            34px,
            3.4vw,
            58px
        ) !important;

    line-height: 1 !important;

    letter-spacing: .4px !important;
}


.msmart-close {
    width: 50px !important;
    height: 50px !important;

    font-size: 27px !important;

    border-radius: 10px !important;
}


/* ==========================================================
   HUVUDLAYOUT
   ========================================================== */

.msmart-body {
    flex: 1 1 auto !important;

    min-height: 0 !important;

    padding: 14px !important;

    display: grid !important;

    grid-template-columns:
        minmax(500px, 38%)
        minmax(0, 62%) !important;

    gap: 14px !important;

    overflow: hidden !important;
}


.msmart-card {
    min-height: 0 !important;

    padding: 15px !important;

    border-radius: 11px !important;
}


.msmart-body > .msmart-card:first-child {
    overflow-y: auto !important;
}


.msmart-body > .msmart-card:last-child {
    display: flex !important;

    flex-direction: column !important;

    overflow: hidden !important;
}


/* ==========================================================
   SEKTIONSRUBRIKER
   ========================================================== */

.msmart-card-title {
    margin-bottom: 13px !important;

    font-size: 16px !important;

    line-height: 1.2 !important;

    letter-spacing: .2px !important;
}


/* ==========================================================
   AIS-FÄLT
   ========================================================== */

.msmart-grid {
    grid-template-columns:
        repeat(
            2,
            minmax(0,1fr)
        ) !important;

    gap: 9px !important;
}


.msmart-field {
    padding:
        10px
        11px !important;

    min-height: 60px !important;

    display: flex !important;

    flex-direction: column !important;

    justify-content: center !important;

    border-radius: 8px !important;
}


.msmart-field span {
    font-size: 10px !important;

    line-height: 1.15 !important;

    letter-spacing: .3px !important;
}


.msmart-field strong {
    margin-top: 5px !important;

    font-size: 15px !important;

    line-height: 1.25 !important;
}


/* ==========================================================
   RUTT / SPÅR
   ========================================================== */

.msmart-route {
    margin-top: 12px !important;

    padding: 13px !important;

    font-size: 13px !important;

    line-height: 1.65 !important;

    border-radius: 9px !important;
}


.msmart-route strong {
    font-size: 13px !important;
}


.msmart-highlight {
    font-size: 14px !important;

    font-weight: 950 !important;
}


/* ==========================================================
   KNAPPAR
   ========================================================== */

.msmart-actions {
    margin-top: 12px !important;

    gap: 8px !important;
}


.msmart-button {
    min-height: 41px !important;

    padding:
        0
        13px !important;

    font-size: 11px !important;

    border-radius: 8px !important;
}


/* ==========================================================
   KARTA
   ========================================================== */

#msmartMap {
    flex: 1 1 auto !important;

    width: 100% !important;

    height: auto !important;
    min-height: 0 !important;

    border-radius: 10px !important;
}


.msmart-mapnote {
    flex: 0 0 auto !important;

    margin-top: 9px !important;

    font-size: 10px !important;

    line-height: 1.45 !important;
}


/* Leaflets kartknappar lite större */

#msmartMap .leaflet-control-zoom a {
    width: 34px !important;
    height: 34px !important;

    line-height: 34px !important;

    font-size: 22px !important;
}


#msmartMap .leaflet-popup-content {
    font-size: 14px !important;

    line-height: 1.4 !important;
}


/* ==========================================================
   2560 / STORA SKÄRMAR
   ========================================================== */

@media (min-width: 1900px) {

    .msmart-body {
        grid-template-columns:
            600px
            minmax(0,1fr) !important;
    }


    .msmart-field span {
        font-size: 11px !important;
    }


    .msmart-field strong {
        font-size: 17px !important;
    }


    .msmart-route {
        font-size: 14px !important;
    }


    .msmart-card-title {
        font-size: 18px !important;
    }
}


/* ==========================================================
   MINDRE LAPTOP
   ========================================================== */

@media (
    min-width: 801px
)
and (
    max-width: 1350px
) {

    .msmart-body {
        grid-template-columns:
            440px
            minmax(0,1fr) !important;
    }


    .msmart-field strong {
        font-size: 13px !important;
    }
}


/* ==========================================================
   MOBIL / PLATTA
   ========================================================== */

@media (max-width: 800px) {

    #msmartModal {
        padding: 2px !important;
    }


    .msmart-window {
        width: 100vw !important;
        height: 99vh !important;

        max-height: 99vh !important;

        border-radius: 6px !important;
    }


    .msmart-header {
        padding:
            12px
            13px !important;
    }


    .msmart-name {
        font-size: 30px !important;
    }


    .msmart-close {
        width: 44px !important;
        height: 44px !important;
    }


    .msmart-body {
        display: block !important;

        padding: 8px !important;

        overflow-y: auto !important;
    }


    .msmart-card {
        margin-bottom: 9px !important;

        overflow: visible !important;
    }


    .msmart-grid {
        grid-template-columns:
            repeat(
                2,
                minmax(0,1fr)
            ) !important;
    }


    .msmart-field {
        min-height: 58px !important;

        padding: 9px !important;
    }


    .msmart-field span {
        font-size: 9px !important;
    }


    .msmart-field strong {
        font-size: 13px !important;
    }


    .msmart-route {
        font-size: 12px !important;
    }


    #msmartMap {
        height: 62vh !important;

        min-height: 450px !important;
    }


    .msmart-button {
        flex: 1 1 auto !important;

        font-size: 10px !important;
    }
}


/* MARIN_DOSSIER_MAX_END */


/* FRIBERG_CSS_BEGIN */

#msmart-friberg-status {
    position: fixed;

    left: 14px;
    bottom: 14px;

    z-index: 9500;

    padding:
        8px
        12px;

    border-radius: 9px;

    font-family:
        ui-monospace,
        SFMono-Regular,
        Menlo,
        Consolas,
        monospace;

    font-size: 11px;

    font-weight: 800;

    letter-spacing: .2px;

    backdrop-filter:
        blur(10px);

    box-shadow:
        0 8px 28px
        rgba(0,0,0,.35);
}


#msmart-friberg-status.msmart-friberg-online {
    border:
        1px solid
        rgba(78,255,160,.45);

    background:
        rgba(8,40,28,.93);

    color:
        #8effbd;
}


#msmart-friberg-status.msmart-friberg-offline {
    border:
        1px solid
        rgba(255,184,74,.45);

    background:
        rgba(48,31,8,.93);

    color:
        #ffd18b;
}


#msmart-friberg-dossier {
    margin-top: 10px;

    display: flex;

    align-items: center;

    gap: 12px;

    flex-wrap: wrap;

    font-family:
        ui-monospace,
        SFMono-Regular,
        Menlo,
        Consolas,
        monospace;

    font-size: 11px;
}


#msmart-friberg-dossier strong {
    display: inline-block;

    padding:
        6px
        9px;

    border-radius: 7px;

    border:
        1px solid
        rgba(78,255,160,.45);

    background:
        rgba(12,54,37,.75);

    color:
        #8effbd;

    font-size: 12px;
}


#msmart-friberg-dossier span {
    color:
        rgba(255,255,255,.72);
}


@media (max-width: 800px) {

    #msmart-friberg-status {
        left: 6px;
        bottom: 6px;

        max-width:
            calc(100vw - 12px);

        font-size: 9px;
    }


    #msmart-friberg-dossier {
        font-size: 9px;

        gap: 6px;
    }


    #msmart-friberg-dossier strong {
        font-size: 10px;
    }
}

/* FRIBERG_CSS_END */


