#pt-form, #pt-module {
    --pt-ink: #193640;
    --pt-muted: #49636c;
    --pt-line: #cddcdf;
    --pt-accent: #006777;
    color: var(--pt-ink);
    font: 14px/1.45 Arial, Helvetica, sans-serif;
    text-align: left;
}
#pt-form *, #pt-module * { box-sizing: border-box; }
#pt-form {
    padding: 0;
    margin: 0;
    background: #fff;
    border: 1px solid #d8e4e6;
    border-radius: 10px;
    overflow: hidden;
}
#pt-form .pt-fields {
    max-height: max(180px, calc(100dvh - 170px));
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 0 20px;
}
#pt-form .pt-card {
    display: block;
    position: relative;
    float: none;
    border: 0;
    padding: 0 0 15px;
    margin: 0;
    min-width: 0;
}
#pt-form .pt-card + .pt-card { border-top: 1px solid #e0e9eb; }
#pt-form legend {
    float: left;
    width: 100%;
    margin: 0 0 10px;
    padding: 13px 0 0;
    border: 0;
    font: 700 16px/1.3 Arial, Helvetica, sans-serif;
    color: var(--pt-ink);
}
#pt-form legend + * { clear: both; }
#pt-form .pt-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 8px 14px;
}
#pt-form label {
    display: block;
    margin: 0;
    color: var(--pt-muted);
    font: 600 13px/1.4 Arial, Helvetica, sans-serif;
}
#pt-form .pt-field { grid-column: span 6; min-width: 0; }
#pt-form .pt-field-street { grid-column: span 9; }
#pt-form .pt-field-house_number, #pt-form .pt-field-postal_code, #pt-form .pt-field-country_code { grid-column: span 3; }
#pt-form .pt-field small { font: inherit; font-weight: 400; }
#pt-form .form-control {
    display: block;
    width: 100%;
    min-width: 0;
    height: 38px;
    margin: 3px 0 0;
    padding: 7px 10px;
    border: 1px solid #b9cbcf;
    border-radius: 6px;
    background: #fff;
    box-shadow: none;
    color: var(--pt-ink);
    font: 400 14px/1.35 Arial, Helvetica, sans-serif;
}
#pt-form .form-control:focus, #pt-form button:focus-visible, #pt-module button:focus-visible {
    outline: 2px solid #008898;
    outline-offset: 2px;
}
#pt-form .pt-device-card .pt-picker { display: flex; gap: 8px; margin-top: 4px; }
#pt-form .pt-picker select { margin: 0; flex: 1 1 0; }
#pt-form button, #pt-module button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 14px;
    border: 1px solid #b9cbcf;
    border-radius: 6px;
    background: #fff;
    color: var(--pt-ink);
    font: 600 14px/1.35 Arial, Helvetica, sans-serif;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: none;
}
#pt-form button:hover:enabled, #pt-module button:hover:enabled { background: #edf5f5; }
#pt-form .pt-submit, #pt-module .pt-new {
    background: var(--pt-accent);
    border-color: var(--pt-accent);
    color: #fff;
}
#pt-form .pt-submit:hover:enabled, #pt-module .pt-new:hover { background: #004e5c; }
#pt-form .pt-add { background: #e3f3f3; border-color: #9ec8cc; color: #005c67; }
#pt-form .pt-add span { font-size: 19px; line-height: 14px; }
#pt-form button:disabled { opacity: 1; color: #52676d; background: #e4eced; border-color: #d6e1e3; cursor: default; }
#pt-form .pt-selected, #pt-module .pt-devices { list-style: none; margin: 0; padding: 0; }
#pt-form .pt-selected li {
    margin: 7px 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 11px;
    border: 1px solid #c6e0e1;
    border-left: 3px solid #008394;
    border-radius: 5px;
    background: #f1f8f8;
}
#pt-form .pt-device-info { display: grid; gap: 1px; min-width: 0; overflow-wrap: anywhere; }
#pt-form .pt-device-info strong { font: 600 14px/1.4 Consolas, monospace; color: var(--pt-ink); }
#pt-form .pt-device-info span { color: var(--pt-muted); font-size: 13px; }
#pt-form .pt-remove { background: transparent; padding: 6px 9px; color: #495d64; font-size: 12px; }
#pt-form .pt-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 12px 20px;
    border-top: 1px solid #d8e4e6;
    background: #f4f8f8;
}
#pt-form .pt-message, #pt-module .pt-feedback { padding: 10px 14px; margin: 0; background: #eef6f7; }
#pt-module .pt-feedback:empty, #pt-form .pt-message:empty { display: none; }
#pt-module .panel { border: 1px solid #d1dfe1; border-radius: 10px; background: #fff; overflow: hidden; }
#pt-module .panel-body { padding: 0; }
#pt-module .pt-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 18px; }
#pt-module h2 { margin: 0; font: 700 21px/1.25 Arial, Helvetica, sans-serif; color: var(--pt-ink); }
#pt-module .table-responsive { width: 100%; overflow-x: auto; margin: 0; border: 0; }
#pt-module table { width: 100%; border-collapse: collapse; margin: 0; }
#pt-module th, #pt-module td { text-align: left; vertical-align: top; padding: 11px 14px; border: 0; border-top: 1px solid #e1e9ea; }
#pt-module th { background: #edf4f5; font-size: 13px; color: #3e5b64; }
#pt-module td { overflow-wrap: anywhere; }
#pt-module .pt-devices li + li { margin-top: 5px; }
#pt-module .pt-state { display: inline-block; padding: 3px 8px; border-radius: 5px; background: #e9eff0; color: #344e56; font-size: 12px; font-weight: 600; }
#pt-module .pt-state-sent { background: #e1f3ed; color: #146246; }
#pt-module .pt-state-failed, #pt-module .pt-state-unknown { background: #fff1dc; color: #795319; }
#pt-module .pt-retry, #pt-module .pt-pager button { font-size: 12px; padding: 5px 9px; }
#pt-module .pt-retry { margin-top: 6px; }
#pt-module .pt-pager { display: flex; justify-content: flex-end; align-items: center; gap: 12px; padding: 12px 18px; }
@media (max-width: 600px) {
    #pt-form .pt-fields { padding: 0 12px; }
    #pt-form .pt-grid { gap: 8px; }
    #pt-form .pt-field-email, #pt-form .pt-field-company { grid-column: span 12; }
    #pt-form .pt-field-street, #pt-form .pt-field-city { grid-column: span 8; }
    #pt-form .pt-field-house_number, #pt-form .pt-field-postal_code, #pt-form .pt-field-country_code { grid-column: span 4; }
    #pt-form .form-control { font-size: 16px; height: 42px; }
    #pt-form .pt-buttons { padding: 10px 12px; }
    #pt-form .pt-buttons button, #pt-form .pt-add { min-height: 42px; }
    #pt-module table { min-width: 640px; }
}
